1 ------------------------------------------------------------------------------
3 -- GNAT COMPILER COMPONENTS --
9 -- Copyright (C) 1992-2015, Free Software Foundation, Inc. --
11 -- GNAT is free software; you can redistribute it and/or modify it under --
12 -- terms of the GNU General Public License as published by the Free Soft- --
13 -- ware Foundation; either version 3, or (at your option) any later ver- --
14 -- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
15 -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
16 -- or FITNESS FOR A PARTICULAR PURPOSE. --
18 -- As a special exception under Section 7 of GPL version 3, you are granted --
19 -- additional permissions described in the GCC Runtime Library Exception, --
20 -- version 3.1, as published by the Free Software Foundation. --
22 -- You should have received a copy of the GNU General Public License and --
23 -- a copy of the GCC Runtime Library Exception along with this program; --
24 -- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see --
25 -- <http://www.gnu.org/licenses/>. --
27 -- GNAT was originally developed by the GNAT team at New York University. --
28 -- Extensive contributions were provided by Ada Core Technologies Inc. --
30 ------------------------------------------------------------------------------
32 pragma Style_Checks
(All_Checks
);
33 -- Turn off subprogram ordering, not used for this unit
35 with Atree
; use Atree
;
36 with Elists
; use Elists
;
37 with Namet
; use Namet
;
38 with Nlists
; use Nlists
;
39 with Output
; use Output
;
40 with Sinfo
; use Sinfo
;
41 with Stand
; use Stand
;
45 use Atree
.Unchecked_Access
;
46 -- This is one of the packages that is allowed direct untyped access to
47 -- the fields in a node, since it provides the next level abstraction
48 -- which incorporates appropriate checks.
50 ----------------------------------------------
51 -- Usage of Fields in Defining Entity Nodes --
52 ----------------------------------------------
54 -- Four of these fields are defined in Sinfo, since they in are the base
55 -- part of the node. The access routines for these four fields and the
56 -- corresponding set procedures are defined in Sinfo. These fields are
57 -- present in all entities. Note that Homonym is also in the base part of
58 -- the node, but has access routines that are more properly part of Einfo,
59 -- which is why they are defined here.
66 -- Remaining fields are present only in extended nodes (i.e. entities)
68 -- The following fields are present in all entities
71 -- First_Rep_Item Node6
74 -- The usage of other fields (and the entity kinds to which it applies)
75 -- depends on the particular field (see Einfo spec for details).
77 -- Associated_Node_For_Itype Node8
78 -- Dependent_Instances Elist8
79 -- Hiding_Loop_Variable Node8
80 -- Mechanism Uint8 (but returns Mechanism_Type)
81 -- Normalized_First_Bit Uint8
82 -- Refinement_Constituents Elist8
83 -- Return_Applies_To Node8
84 -- First_Exit_Statement Node8
86 -- Class_Wide_Type Node9
87 -- Current_Value Node9
88 -- Part_Of_Constituents Elist9
91 -- Encapsulating_State Node10
92 -- Direct_Primitive_Operations Elist10
93 -- Discriminal_Link Node10
94 -- Float_Rep Uint10 (but returns Float_Rep_Kind)
95 -- Handler_Records List10
96 -- Normalized_Position_Max Uint10
98 -- Component_Bit_Offset Uint11
100 -- Entry_Component Node11
101 -- Enumeration_Pos Uint11
102 -- Generic_Homonym Node11
103 -- Protected_Body_Subprogram Node11
106 -- Barrier_Function Node12
107 -- Enumeration_Rep Uint12
109 -- Next_Inlined_Subprogram Node12
111 -- Component_Clause Node13
112 -- Elaboration_Entity Node13
113 -- Extra_Accessibility Node13
117 -- Normalized_Position Uint14
118 -- Postconditions_Proc Node14
119 -- Shadow_Entities List14
121 -- Discriminant_Number Uint15
122 -- DT_Position Uint15
123 -- DT_Entry_Count Uint15
124 -- Entry_Parameters_Type Node15
125 -- Extra_Formal Node15
126 -- Pending_Access_Types Elist15
127 -- Related_Instance Node15
128 -- Status_Flag_Or_Transient_Decl Node15
130 -- Access_Disp_Table Elist16
131 -- Body_References Elist16
132 -- Cloned_Subtype Node16
134 -- Entry_Formal Node16
135 -- First_Private_Entity Node16
136 -- Lit_Strings Node16
137 -- Scale_Value Uint16
138 -- String_Literal_Length Uint16
139 -- Unset_Reference Node16
141 -- Actual_Subtype Node17
142 -- Digits_Value Uint17
143 -- Discriminal Node17
144 -- First_Entity Node17
145 -- First_Index Node17
146 -- First_Literal Node17
149 -- Non_Limited_View Node17
153 -- Corresponding_Concurrent_Type Node18
154 -- Corresponding_Protected_Entry Node18
155 -- Corresponding_Record_Type Node18
156 -- Delta_Value Ureal18
157 -- Enclosing_Scope Node18
158 -- Equivalent_Type Node18
159 -- Lit_Indexes Node18
160 -- Private_Dependents Elist18
161 -- Renamed_Entity Node18
162 -- Renamed_Object Node18
163 -- String_Literal_Low_Bound Node18
165 -- Body_Entity Node19
166 -- Corresponding_Discriminant Node19
167 -- Default_Aspect_Component_Value Node19
168 -- Default_Aspect_Value Node19
169 -- Entry_Bodies_Array Node19
170 -- Extra_Accessibility_Of_Result Node19
171 -- Parent_Subtype Node19
172 -- Size_Check_Code Node19
173 -- Spec_Entity Node19
174 -- Underlying_Full_View Node19
176 -- Component_Type Node20
177 -- Default_Value Node20
178 -- Directly_Designated_Type Node20
179 -- Discriminant_Checking_Func Node20
180 -- Discriminant_Default_Value Node20
181 -- Last_Entity Node20
182 -- Prival_Link Node20
183 -- Register_Exception_Call Node20
184 -- Scalar_Range Node20
186 -- Accept_Address Elist21
187 -- Default_Expr_Function Node21
188 -- Discriminant_Constraint Elist21
189 -- Interface_Name Node21
190 -- Original_Array_Type Node21
191 -- Small_Value Ureal21
193 -- Associated_Storage_Pool Node22
194 -- Component_Size Uint22
195 -- Corresponding_Remote_Type Node22
196 -- Enumeration_Rep_Expr Node22
197 -- Original_Record_Component Node22
198 -- Private_View Node22
199 -- Protected_Formal Node22
200 -- Scope_Depth_Value Uint22
201 -- Shared_Var_Procs_Instance Node22
203 -- CR_Discriminant Node23
204 -- Entry_Cancel_Parameter Node23
205 -- Enum_Pos_To_Rep Node23
206 -- Extra_Constrained Node23
207 -- Finalization_Master Node23
208 -- Generic_Renamings Elist23
209 -- Inner_Instances Elist23
210 -- Limited_View Node23
211 -- Packed_Array_Impl_Type Node23
212 -- Protection_Object Node23
213 -- Stored_Constraint Elist23
215 -- Related_Expression Node24
216 -- Uplevel_References Elist24
217 -- Subps_Index Uint24
219 -- Interface_Alias Node25
220 -- Interfaces Elist25
221 -- Debug_Renaming_Link Node25
222 -- DT_Offset_To_Top_Func Node25
223 -- PPC_Wrapper Node25
224 -- Related_Array_Object Node25
225 -- Static_Discrete_Predicate List25
226 -- Static_Real_Or_String_Predicate Node25
227 -- Task_Body_Procedure Node25
229 -- Dispatch_Table_Wrappers Elist26
230 -- Last_Assignment Node26
231 -- Overridden_Operation Node26
232 -- Package_Instantiation Node26
233 -- Storage_Size_Variable Node26
235 -- Current_Use_Clause Node27
236 -- Related_Type Node27
237 -- Wrapped_Entity Node27
239 -- Extra_Formals Node28
241 -- Initialization_Statements Node28
242 -- Original_Access_Type Node28
243 -- Relative_Deadline_Variable Node28
244 -- Underlying_Record_View Node28
246 -- BIP_Initialization_Call Node29
247 -- Subprograms_For_Type Node29
249 -- Corresponding_Equality Node30
250 -- Last_Aggregate_Assignment Node30
251 -- Static_Initialization Node30
253 -- Derived_Type_Link Node31
254 -- Thunk_Entity Node31
255 -- Activation_Record_Component Node31
257 -- SPARK_Pragma Node32
258 -- No_Tagged_Streams_Pragma Node32
260 -- Linker_Section_Pragma Node33
261 -- SPARK_Aux_Pragma Node33
265 -- Import_Pragma Node35
274 ---------------------------------------------
275 -- Usage of Flags in Defining Entity Nodes --
276 ---------------------------------------------
278 -- All flags are unique, there is no overlaying, so each flag is physically
279 -- present in every entity. However, for many of the flags, it only makes
280 -- sense for them to be set true for certain subsets of entity kinds. See
281 -- the spec of Einfo for further details.
283 -- Is_Inlined_Always Flag1
284 -- Is_Hidden_Non_Overridden_Subpgm Flag2
285 -- Has_Default_Init_Cond Flag3
287 -- Has_Discriminants Flag5
288 -- Is_Dispatching_Operation Flag6
289 -- Is_Immediately_Visible Flag7
291 -- Is_Potentially_Use_Visible Flag9
295 -- Is_Constrained Flag12
296 -- Is_Generic_Type Flag13
297 -- Depends_On_Private Flag14
299 -- Is_Volatile Flag16
300 -- Is_Internal Flag17
301 -- Has_Delayed_Freeze Flag18
302 -- Is_Abstract_Subprogram Flag19
303 -- Is_Concurrent_Record_Type Flag20
305 -- Has_Master_Entity Flag21
306 -- Needs_No_Actuals Flag22
307 -- Has_Storage_Size_Clause Flag23
308 -- Is_Imported Flag24
309 -- Is_Limited_Record Flag25
310 -- Has_Completion Flag26
311 -- Has_Pragma_Controlled Flag27
312 -- Is_Statically_Allocated Flag28
313 -- Has_Size_Clause Flag29
316 -- Checks_May_Be_Suppressed Flag31
317 -- Kill_Elaboration_Checks Flag32
318 -- Kill_Range_Checks Flag33
319 -- Has_Independent_Components Flag34
320 -- Is_Class_Wide_Equivalent_Type Flag35
321 -- Referenced_As_LHS Flag36
322 -- Is_Known_Non_Null Flag37
323 -- Can_Never_Be_Null Flag38
324 -- Has_Default_Aspect Flag39
325 -- Body_Needed_For_SAL Flag40
327 -- Treat_As_Volatile Flag41
328 -- Is_Controlled Flag42
329 -- Has_Controlled_Component Flag43
331 -- In_Private_Part Flag45
332 -- Has_Alignment_Clause Flag46
334 -- In_Package_Body Flag48
336 -- Delay_Subprogram_Descriptors Flag50
339 -- Is_Entry_Formal Flag52
340 -- Is_Private_Descendant Flag53
341 -- Return_Present Flag54
342 -- Is_Tagged_Type Flag55
343 -- Has_Homonym Flag56
345 -- Non_Binary_Modulus Flag58
346 -- Is_Preelaborated Flag59
347 -- Is_Shared_Passive Flag60
349 -- Is_Remote_Types Flag61
350 -- Is_Remote_Call_Interface Flag62
351 -- Is_Character_Type Flag63
352 -- Is_Intrinsic_Subprogram Flag64
353 -- Has_Record_Rep_Clause Flag65
354 -- Has_Enumeration_Rep_Clause Flag66
355 -- Has_Small_Clause Flag67
356 -- Has_Component_Size_Clause Flag68
357 -- Is_Access_Constant Flag69
358 -- Is_First_Subtype Flag70
360 -- Has_Completion_In_Body Flag71
361 -- Has_Unknown_Discriminants Flag72
362 -- Is_Child_Unit Flag73
363 -- Is_CPP_Class Flag74
364 -- Has_Non_Standard_Rep Flag75
365 -- Is_Constructor Flag76
366 -- Static_Elaboration_Desired Flag77
368 -- Has_All_Calls_Remote Flag79
369 -- Is_Constr_Subt_For_U_Nominal Flag80
371 -- Is_Asynchronous Flag81
372 -- Has_Gigi_Rep_Item Flag82
373 -- Has_Machine_Radix_Clause Flag83
374 -- Machine_Radix_10 Flag84
376 -- Has_Atomic_Components Flag86
377 -- Has_Volatile_Components Flag87
378 -- Discard_Names Flag88
379 -- Is_Interrupt_Handler Flag89
380 -- Returns_By_Ref Flag90
383 -- Size_Known_At_Compile_Time Flag92
384 -- Reverse_Storage_Order Flag93
385 -- Is_Generic_Actual_Type Flag94
386 -- Uses_Sec_Stack Flag95
387 -- Warnings_Off Flag96
388 -- Is_Controlling_Formal Flag97
389 -- Has_Controlling_Result Flag98
390 -- Is_Exported Flag99
391 -- Has_Specified_Layout Flag100
393 -- Has_Nested_Block_With_Handler Flag101
395 -- Is_Completely_Hidden Flag103
396 -- Address_Taken Flag104
397 -- Suppress_Initialization Flag105
398 -- Is_Limited_Composite Flag106
399 -- Is_Private_Composite Flag107
400 -- Default_Expressions_Processed Flag108
401 -- Is_Non_Static_Subtype Flag109
402 -- Has_Out_Or_In_Out_Parameter Flag110
404 -- Is_Formal_Subprogram Flag111
405 -- Is_Renaming_Of_Object Flag112
407 -- Delay_Cleanups Flag114
408 -- Never_Set_In_Source Flag115
409 -- Is_Visible_Lib_Unit Flag116
410 -- Is_Unchecked_Union Flag117
411 -- Is_For_Access_Subtype Flag118
412 -- Has_Convention_Pragma Flag119
413 -- Has_Primitive_Operations Flag120
415 -- Has_Pragma_Pack Flag121
416 -- Is_Bit_Packed_Array Flag122
417 -- Has_Unchecked_Union Flag123
418 -- Is_Eliminated Flag124
419 -- C_Pass_By_Copy Flag125
420 -- Is_Instantiated Flag126
421 -- Is_Valued_Procedure Flag127
422 -- (used for Component_Alignment) Flag128
423 -- (used for Component_Alignment) Flag129
424 -- Is_Generic_Instance Flag130
426 -- No_Pool_Assigned Flag131
427 -- Is_Default_Init_Cond_Procedure Flag132
428 -- Has_Inherited_Default_Init_Cond Flag133
429 -- Returns_Limited_View Flag134
430 -- Has_Aliased_Components Flag135
431 -- No_Strict_Aliasing Flag136
432 -- Is_Machine_Code_Subprogram Flag137
433 -- Is_Packed_Array_Impl_Type Flag138
434 -- Has_Biased_Representation Flag139
435 -- Has_Complex_Representation Flag140
437 -- Is_Constr_Subt_For_UN_Aliased Flag141
438 -- Has_Missing_Return Flag142
439 -- Has_Recursive_Call Flag143
440 -- Is_Unsigned_Type Flag144
441 -- Strict_Alignment Flag145
442 -- Is_Abstract_Type Flag146
443 -- Needs_Debug_Info Flag147
444 -- Suppress_Elaboration_Warnings Flag148
445 -- Is_Compilation_Unit Flag149
446 -- Has_Pragma_Elaborate_Body Flag150
448 -- Has_Private_Ancestor Flag151
449 -- Entry_Accepted Flag152
450 -- Is_Obsolescent Flag153
451 -- Has_Per_Object_Constraint Flag154
452 -- Has_Private_Declaration Flag155
453 -- Referenced Flag156
454 -- Has_Pragma_Inline Flag157
455 -- Finalize_Storage_Only Flag158
456 -- From_Limited_With Flag159
457 -- Is_Package_Body_Entity Flag160
459 -- Has_Qualified_Name Flag161
460 -- Nonzero_Is_True Flag162
461 -- Is_True_Constant Flag163
462 -- Reverse_Bit_Order Flag164
463 -- Suppress_Style_Checks Flag165
464 -- Debug_Info_Off Flag166
465 -- Sec_Stack_Needed_For_Return Flag167
466 -- Materialize_Entity Flag168
467 -- Has_Pragma_Thread_Local_Storage Flag169
468 -- Is_Known_Valid Flag170
470 -- Is_Hidden_Open_Scope Flag171
471 -- Has_Object_Size_Clause Flag172
472 -- Has_Fully_Qualified_Name Flag173
473 -- Elaboration_Entity_Required Flag174
474 -- Has_Forward_Instantiation Flag175
475 -- Is_Discrim_SO_Function Flag176
476 -- Size_Depends_On_Discriminant Flag177
477 -- Is_Null_Init_Proc Flag178
478 -- Has_Pragma_Pure_Function Flag179
479 -- Has_Pragma_Unreferenced Flag180
481 -- Has_Contiguous_Rep Flag181
482 -- Has_Xref_Entry Flag182
483 -- Must_Be_On_Byte_Boundary Flag183
484 -- Has_Stream_Size_Clause Flag184
485 -- Is_Ada_2005_Only Flag185
486 -- Is_Interface Flag186
487 -- Has_Constrained_Partial_View Flag187
488 -- Uses_Lock_Free Flag188
489 -- Is_Pure_Unit_Access_Type Flag189
490 -- Has_Specified_Stream_Input Flag190
492 -- Has_Specified_Stream_Output Flag191
493 -- Has_Specified_Stream_Read Flag192
494 -- Has_Specified_Stream_Write Flag193
495 -- Is_Local_Anonymous_Access Flag194
496 -- Is_Primitive_Wrapper Flag195
497 -- Was_Hidden Flag196
498 -- Is_Limited_Interface Flag197
499 -- Has_Pragma_Ordered Flag198
500 -- Is_Ada_2012_Only Flag199
502 -- Has_Delayed_Aspects Flag200
503 -- Has_Pragma_No_Inline Flag201
504 -- Itype_Printed Flag202
505 -- Has_Pragma_Pure Flag203
506 -- Is_Known_Null Flag204
507 -- Low_Bound_Tested Flag205
508 -- Is_Visible_Formal Flag206
509 -- Known_To_Have_Preelab_Init Flag207
510 -- Must_Have_Preelab_Init Flag208
511 -- Is_Return_Object Flag209
512 -- Elaborate_Body_Desirable Flag210
514 -- Has_Static_Discriminants Flag211
515 -- Has_Pragma_Unreferenced_Objects Flag212
516 -- Requires_Overriding Flag213
518 -- Has_Uplevel_Reference Flag215
519 -- Universal_Aliasing Flag216
520 -- Suppress_Value_Tracking_On_Call Flag217
521 -- Is_Primitive Flag218
522 -- Has_Initial_Value Flag219
523 -- Has_Dispatch_Table Flag220
525 -- Has_Pragma_Preelab_Init Flag221
526 -- Used_As_Generic_Actual Flag222
527 -- Is_Descendent_Of_Address Flag223
530 -- Is_Only_Out_Parameter Flag226
531 -- Referenced_As_Out_Parameter Flag227
532 -- Has_Thunks Flag228
533 -- Can_Use_Internal_Rep Flag229
534 -- Has_Pragma_Inline_Always Flag230
536 -- Renamed_In_Spec Flag231
537 -- Has_Invariants Flag232
538 -- Has_Pragma_Unmodified Flag233
539 -- Is_Dispatch_Table_Entity Flag234
540 -- Is_Trivial_Subprogram Flag235
541 -- Warnings_Off_Used Flag236
542 -- Warnings_Off_Used_Unmodified Flag237
543 -- Warnings_Off_Used_Unreferenced Flag238
544 -- OK_To_Reorder_Components Flag239
545 -- Has_Expanded_Contract Flag240
547 -- Optimize_Alignment_Space Flag241
548 -- Optimize_Alignment_Time Flag242
549 -- Overlays_Constant Flag243
550 -- Is_RACW_Stub_Type Flag244
551 -- Is_Private_Primitive Flag245
552 -- Is_Underlying_Record_View Flag246
553 -- OK_To_Rename Flag247
554 -- Has_Inheritable_Invariants Flag248
555 -- Is_Safe_To_Reevaluate Flag249
556 -- Has_Predicates Flag250
558 -- Has_Implicit_Dereference Flag251
559 -- Is_Processed_Transient Flag252
560 -- Has_Anonymous_Master Flag253
561 -- Is_Implementation_Defined Flag254
562 -- Is_Predicate_Function Flag255
563 -- Is_Predicate_Function_M Flag256
564 -- Is_Invariant_Procedure Flag257
565 -- Has_Dynamic_Predicate_Aspect Flag258
566 -- Has_Static_Predicate_Aspect Flag259
567 -- Has_Loop_Entry_Attributes Flag260
569 -- Has_Delayed_Rep_Aspects Flag261
570 -- May_Inherit_Delayed_Rep_Aspects Flag262
571 -- Has_Visible_Refinement Flag263
572 -- Is_Discriminant_Check_Function Flag264
573 -- SPARK_Pragma_Inherited Flag265
574 -- SPARK_Aux_Pragma_Inherited Flag266
575 -- Has_Shift_Operator Flag267
576 -- Is_Independent Flag268
577 -- Has_Static_Predicate Flag269
578 -- Stores_Attribute_Old_Prefix Flag270
580 -- Has_Protected Flag271
581 -- SSO_Set_Low_By_Default Flag272
582 -- SSO_Set_High_By_Default Flag273
583 -- Is_Generic_Actual_Subprogram Flag274
584 -- No_Predicate_On_Actual Flag275
585 -- No_Dynamic_Predicate_On_Actual Flag276
586 -- Is_Checked_Ghost_Entity Flag277
587 -- Is_Ignored_Ghost_Entity Flag278
588 -- Contains_Ignored_Ghost_Code Flag279
589 -- Partial_View_Has_Unknown_Discr Flag280
591 -- Is_Static_Type Flag281
592 -- Has_Nested_Subprogram Flag282
593 -- Uplevel_Reference_Noted Flag283
594 -- Is_Unimplemented Flag284
613 -- Note: Flag310-317 are defined in atree.ads/adb, but not yet in atree.h
615 -----------------------
616 -- Local subprograms --
617 -----------------------
620 (State_Id
: Entity_Id
;
621 Option_Nam
: Name_Id
) return Boolean;
622 -- Determine whether abstract state State_Id has particular option denoted
623 -- by the name Option_Nam.
629 function Float_Rep
(Id
: E
) return F
is
630 pragma Assert
(Is_Floating_Point_Type
(Id
));
632 return F
'Val (UI_To_Int
(Uint10
(Base_Type
(Id
))));
640 (State_Id
: Entity_Id
;
641 Option_Nam
: Name_Id
) return Boolean
643 Decl
: constant Node_Id
:= Parent
(State_Id
);
648 pragma Assert
(Ekind
(State_Id
) = E_Abstract_State
);
650 -- The declaration of abstract states with options appear as an
651 -- extension aggregate. If this is not the case, the option is not
654 if Nkind
(Decl
) /= N_Extension_Aggregate
then
660 Opt
:= First
(Expressions
(Decl
));
661 while Present
(Opt
) loop
663 -- Currently the only simple option allowed is External
665 if Nkind
(Opt
) = N_Identifier
666 and then Chars
(Opt
) = Name_External
667 and then Chars
(Opt
) = Option_Nam
675 -- Complex options with various specifiers
677 Opt
:= First
(Component_Associations
(Decl
));
678 while Present
(Opt
) loop
679 Opt_Nam
:= First
(Choices
(Opt
));
681 if Nkind
(Opt_Nam
) = N_Identifier
682 and then Chars
(Opt_Nam
) = Option_Nam
693 --------------------------------
694 -- Attribute Access Functions --
695 --------------------------------
697 function Abstract_States
(Id
: E
) return L
is
699 pragma Assert
(Ekind_In
(Id
, E_Generic_Package
, E_Package
));
703 function Accept_Address
(Id
: E
) return L
is
708 function Access_Disp_Table
(Id
: E
) return L
is
710 pragma Assert
(Ekind_In
(Id
, E_Record_Type
,
712 return Elist16
(Implementation_Base_Type
(Id
));
713 end Access_Disp_Table
;
715 function Activation_Record_Component
(Id
: E
) return E
is
717 pragma Assert
(Ekind_In
(Id
, E_Constant
,
724 end Activation_Record_Component
;
726 function Actual_Subtype
(Id
: E
) return E
is
729 (Ekind_In
(Id
, E_Constant
, E_Variable
, E_Generic_In_Out_Parameter
)
730 or else Is_Formal
(Id
));
734 function Address_Taken
(Id
: E
) return B
is
739 function Alias
(Id
: E
) return E
is
742 (Is_Overloadable
(Id
) or else Ekind
(Id
) = E_Subprogram_Type
);
746 function Alignment
(Id
: E
) return U
is
748 pragma Assert
(Is_Type
(Id
)
749 or else Is_Formal
(Id
)
750 or else Ekind_In
(Id
, E_Loop_Parameter
,
757 function Associated_Formal_Package
(Id
: E
) return E
is
759 pragma Assert
(Ekind
(Id
) = E_Package
);
761 end Associated_Formal_Package
;
763 function Associated_Node_For_Itype
(Id
: E
) return N
is
766 end Associated_Node_For_Itype
;
768 function Associated_Storage_Pool
(Id
: E
) return E
is
770 pragma Assert
(Is_Access_Type
(Id
));
771 return Node22
(Root_Type
(Id
));
772 end Associated_Storage_Pool
;
774 function Barrier_Function
(Id
: E
) return N
is
776 pragma Assert
(Is_Entry
(Id
));
778 end Barrier_Function
;
780 function Block_Node
(Id
: E
) return N
is
782 pragma Assert
(Ekind
(Id
) = E_Block
);
786 function Body_Entity
(Id
: E
) return E
is
788 pragma Assert
(Ekind_In
(Id
, E_Package
, E_Generic_Package
));
792 function Body_Needed_For_SAL
(Id
: E
) return B
is
795 (Ekind
(Id
) = E_Package
796 or else Is_Subprogram
(Id
)
797 or else Is_Generic_Unit
(Id
));
799 end Body_Needed_For_SAL
;
801 function Body_References
(Id
: E
) return L
is
803 pragma Assert
(Ekind
(Id
) = E_Abstract_State
);
807 function BIP_Initialization_Call
(Id
: E
) return N
is
809 pragma Assert
(Ekind_In
(Id
, E_Constant
, E_Variable
));
811 end BIP_Initialization_Call
;
813 function C_Pass_By_Copy
(Id
: E
) return B
is
815 pragma Assert
(Is_Record_Type
(Id
));
816 return Flag125
(Implementation_Base_Type
(Id
));
819 function Can_Never_Be_Null
(Id
: E
) return B
is
822 end Can_Never_Be_Null
;
824 function Checks_May_Be_Suppressed
(Id
: E
) return B
is
827 end Checks_May_Be_Suppressed
;
829 function Class_Wide_Type
(Id
: E
) return E
is
831 pragma Assert
(Is_Type
(Id
));
835 function Cloned_Subtype
(Id
: E
) return E
is
837 pragma Assert
(Ekind_In
(Id
, E_Record_Subtype
, E_Class_Wide_Subtype
));
841 function Component_Bit_Offset
(Id
: E
) return U
is
843 pragma Assert
(Ekind_In
(Id
, E_Component
, E_Discriminant
));
845 end Component_Bit_Offset
;
847 function Component_Clause
(Id
: E
) return N
is
849 pragma Assert
(Ekind_In
(Id
, E_Component
, E_Discriminant
));
851 end Component_Clause
;
853 function Component_Size
(Id
: E
) return U
is
855 pragma Assert
(Is_Array_Type
(Id
));
856 return Uint22
(Implementation_Base_Type
(Id
));
859 function Component_Type
(Id
: E
) return E
is
861 pragma Assert
(Is_Array_Type
(Id
) or else Is_String_Type
(Id
));
862 return Node20
(Implementation_Base_Type
(Id
));
865 function Corresponding_Concurrent_Type
(Id
: E
) return E
is
867 pragma Assert
(Ekind
(Id
) = E_Record_Type
);
869 end Corresponding_Concurrent_Type
;
871 function Corresponding_Discriminant
(Id
: E
) return E
is
873 pragma Assert
(Ekind
(Id
) = E_Discriminant
);
875 end Corresponding_Discriminant
;
877 function Corresponding_Equality
(Id
: E
) return E
is
880 (Ekind
(Id
) = E_Function
881 and then not Comes_From_Source
(Id
)
882 and then Chars
(Id
) = Name_Op_Ne
);
884 end Corresponding_Equality
;
886 function Corresponding_Protected_Entry
(Id
: E
) return E
is
888 pragma Assert
(Ekind
(Id
) = E_Subprogram_Body
);
890 end Corresponding_Protected_Entry
;
892 function Corresponding_Record_Type
(Id
: E
) return E
is
894 pragma Assert
(Is_Concurrent_Type
(Id
));
896 end Corresponding_Record_Type
;
898 function Corresponding_Remote_Type
(Id
: E
) return E
is
901 end Corresponding_Remote_Type
;
903 function Current_Use_Clause
(Id
: E
) return E
is
905 pragma Assert
(Ekind
(Id
) = E_Package
or else Is_Type
(Id
));
907 end Current_Use_Clause
;
909 function Current_Value
(Id
: E
) return N
is
911 pragma Assert
(Ekind
(Id
) in Object_Kind
);
915 function CR_Discriminant
(Id
: E
) return E
is
920 function Debug_Info_Off
(Id
: E
) return B
is
925 function Debug_Renaming_Link
(Id
: E
) return E
is
928 end Debug_Renaming_Link
;
930 function Default_Aspect_Component_Value
(Id
: E
) return N
is
932 pragma Assert
(Is_Array_Type
(Id
));
933 return Node19
(Base_Type
(Id
));
934 end Default_Aspect_Component_Value
;
936 function Default_Aspect_Value
(Id
: E
) return N
is
938 pragma Assert
(Is_Scalar_Type
(Id
));
939 return Node19
(Base_Type
(Id
));
940 end Default_Aspect_Value
;
942 function Default_Expr_Function
(Id
: E
) return E
is
944 pragma Assert
(Is_Formal
(Id
));
946 end Default_Expr_Function
;
948 function Default_Expressions_Processed
(Id
: E
) return B
is
951 end Default_Expressions_Processed
;
953 function Default_Value
(Id
: E
) return N
is
955 pragma Assert
(Is_Formal
(Id
));
959 function Delay_Cleanups
(Id
: E
) return B
is
964 function Delay_Subprogram_Descriptors
(Id
: E
) return B
is
967 end Delay_Subprogram_Descriptors
;
969 function Delta_Value
(Id
: E
) return R
is
971 pragma Assert
(Is_Fixed_Point_Type
(Id
));
975 function Dependent_Instances
(Id
: E
) return L
is
977 pragma Assert
(Is_Generic_Instance
(Id
));
979 end Dependent_Instances
;
981 function Depends_On_Private
(Id
: E
) return B
is
983 pragma Assert
(Nkind
(Id
) in N_Entity
);
985 end Depends_On_Private
;
987 function Derived_Type_Link
(Id
: E
) return E
is
989 pragma Assert
(Is_Type
(Id
));
990 return Node31
(Base_Type
(Id
));
991 end Derived_Type_Link
;
993 function Digits_Value
(Id
: E
) return U
is
996 (Is_Floating_Point_Type
(Id
)
997 or else Is_Decimal_Fixed_Point_Type
(Id
));
1001 function Direct_Primitive_Operations
(Id
: E
) return L
is
1003 pragma Assert
(Is_Tagged_Type
(Id
));
1004 return Elist10
(Id
);
1005 end Direct_Primitive_Operations
;
1007 function Directly_Designated_Type
(Id
: E
) return E
is
1009 pragma Assert
(Is_Access_Type
(Id
));
1011 end Directly_Designated_Type
;
1013 function Discard_Names
(Id
: E
) return B
is
1018 function Discriminal
(Id
: E
) return E
is
1020 pragma Assert
(Ekind
(Id
) = E_Discriminant
);
1024 function Discriminal_Link
(Id
: E
) return N
is
1027 end Discriminal_Link
;
1029 function Discriminant_Checking_Func
(Id
: E
) return E
is
1031 pragma Assert
(Ekind
(Id
) = E_Component
);
1033 end Discriminant_Checking_Func
;
1035 function Discriminant_Constraint
(Id
: E
) return L
is
1037 pragma Assert
(Is_Composite_Type
(Id
) and then Has_Discriminants
(Id
));
1038 return Elist21
(Id
);
1039 end Discriminant_Constraint
;
1041 function Discriminant_Default_Value
(Id
: E
) return N
is
1043 pragma Assert
(Ekind
(Id
) = E_Discriminant
);
1045 end Discriminant_Default_Value
;
1047 function Discriminant_Number
(Id
: E
) return U
is
1049 pragma Assert
(Ekind
(Id
) = E_Discriminant
);
1051 end Discriminant_Number
;
1053 function Dispatch_Table_Wrappers
(Id
: E
) return L
is
1055 pragma Assert
(Ekind_In
(Id
, E_Record_Type
,
1057 return Elist26
(Implementation_Base_Type
(Id
));
1058 end Dispatch_Table_Wrappers
;
1060 function DT_Entry_Count
(Id
: E
) return U
is
1062 pragma Assert
(Ekind
(Id
) = E_Component
and then Is_Tag
(Id
));
1066 function DT_Offset_To_Top_Func
(Id
: E
) return E
is
1068 pragma Assert
(Ekind
(Id
) = E_Component
and then Is_Tag
(Id
));
1070 end DT_Offset_To_Top_Func
;
1072 function DT_Position
(Id
: E
) return U
is
1074 pragma Assert
(Ekind_In
(Id
, E_Function
, E_Procedure
)
1075 and then Present
(DTC_Entity
(Id
)));
1079 function DTC_Entity
(Id
: E
) return E
is
1081 pragma Assert
(Ekind_In
(Id
, E_Function
, E_Procedure
));
1085 function Elaborate_Body_Desirable
(Id
: E
) return B
is
1087 pragma Assert
(Ekind
(Id
) = E_Package
);
1088 return Flag210
(Id
);
1089 end Elaborate_Body_Desirable
;
1091 function Elaboration_Entity
(Id
: E
) return E
is
1096 Ekind
(Id
) = E_Package
1098 Is_Generic_Unit
(Id
));
1100 end Elaboration_Entity
;
1102 function Elaboration_Entity_Required
(Id
: E
) return B
is
1107 Ekind
(Id
) = E_Package
1109 Is_Generic_Unit
(Id
));
1110 return Flag174
(Id
);
1111 end Elaboration_Entity_Required
;
1113 function Encapsulating_State
(Id
: E
) return N
is
1115 pragma Assert
(Ekind_In
(Id
, E_Abstract_State
, E_Variable
));
1117 end Encapsulating_State
;
1119 function Enclosing_Scope
(Id
: E
) return E
is
1122 end Enclosing_Scope
;
1124 function Entry_Accepted
(Id
: E
) return B
is
1126 pragma Assert
(Is_Entry
(Id
));
1127 return Flag152
(Id
);
1130 function Entry_Bodies_Array
(Id
: E
) return E
is
1133 end Entry_Bodies_Array
;
1135 function Entry_Cancel_Parameter
(Id
: E
) return E
is
1138 end Entry_Cancel_Parameter
;
1140 function Entry_Component
(Id
: E
) return E
is
1143 end Entry_Component
;
1145 function Entry_Formal
(Id
: E
) return E
is
1150 function Entry_Index_Constant
(Id
: E
) return N
is
1152 pragma Assert
(Ekind
(Id
) = E_Entry_Index_Parameter
);
1154 end Entry_Index_Constant
;
1156 function Contains_Ignored_Ghost_Code
(Id
: E
) return B
is
1159 (Ekind_In
(Id
, E_Block
,
1163 E_Generic_Procedure
,
1167 E_Subprogram_Body
));
1168 return Flag279
(Id
);
1169 end Contains_Ignored_Ghost_Code
;
1171 function Contract
(Id
: E
) return N
is
1174 (Ekind_In
(Id
, E_Entry
,
1181 or else Is_Subprogram_Or_Generic_Subprogram
(Id
));
1185 function Entry_Parameters_Type
(Id
: E
) return E
is
1188 end Entry_Parameters_Type
;
1190 function Enum_Pos_To_Rep
(Id
: E
) return E
is
1192 pragma Assert
(Ekind
(Id
) = E_Enumeration_Type
);
1194 end Enum_Pos_To_Rep
;
1196 function Enumeration_Pos
(Id
: E
) return Uint
is
1198 pragma Assert
(Ekind
(Id
) = E_Enumeration_Literal
);
1200 end Enumeration_Pos
;
1202 function Enumeration_Rep
(Id
: E
) return U
is
1204 pragma Assert
(Ekind
(Id
) = E_Enumeration_Literal
);
1206 end Enumeration_Rep
;
1208 function Enumeration_Rep_Expr
(Id
: E
) return N
is
1210 pragma Assert
(Ekind
(Id
) = E_Enumeration_Literal
);
1212 end Enumeration_Rep_Expr
;
1214 function Equivalent_Type
(Id
: E
) return E
is
1217 (Ekind_In
(Id
, E_Class_Wide_Type
,
1218 E_Class_Wide_Subtype
,
1219 E_Access_Subprogram_Type
,
1220 E_Access_Protected_Subprogram_Type
,
1221 E_Anonymous_Access_Protected_Subprogram_Type
,
1222 E_Access_Subprogram_Type
,
1225 end Equivalent_Type
;
1227 function Esize
(Id
: E
) return Uint
is
1232 function Extra_Accessibility
(Id
: E
) return E
is
1235 (Is_Formal
(Id
) or else Ekind_In
(Id
, E_Variable
, E_Constant
));
1237 end Extra_Accessibility
;
1239 function Extra_Accessibility_Of_Result
(Id
: E
) return E
is
1241 pragma Assert
(Ekind_In
(Id
, E_Function
, E_Operator
, E_Subprogram_Type
));
1243 end Extra_Accessibility_Of_Result
;
1245 function Extra_Constrained
(Id
: E
) return E
is
1247 pragma Assert
(Is_Formal
(Id
) or else Ekind
(Id
) = E_Variable
);
1249 end Extra_Constrained
;
1251 function Extra_Formal
(Id
: E
) return E
is
1256 function Extra_Formals
(Id
: E
) return E
is
1259 (Is_Overloadable
(Id
)
1260 or else Ekind_In
(Id
, E_Entry_Family
,
1262 E_Subprogram_Type
));
1266 function Can_Use_Internal_Rep
(Id
: E
) return B
is
1268 pragma Assert
(Is_Access_Subprogram_Type
(Base_Type
(Id
)));
1269 return Flag229
(Base_Type
(Id
));
1270 end Can_Use_Internal_Rep
;
1272 function Finalization_Master
(Id
: E
) return E
is
1274 pragma Assert
(Is_Access_Type
(Id
));
1275 return Node23
(Root_Type
(Id
));
1276 end Finalization_Master
;
1278 function Finalize_Storage_Only
(Id
: E
) return B
is
1280 pragma Assert
(Is_Type
(Id
));
1281 return Flag158
(Base_Type
(Id
));
1282 end Finalize_Storage_Only
;
1284 function Finalizer
(Id
: E
) return E
is
1286 pragma Assert
(Ekind_In
(Id
, E_Package
, E_Package_Body
));
1290 function First_Entity
(Id
: E
) return E
is
1295 function First_Exit_Statement
(Id
: E
) return N
is
1297 pragma Assert
(Ekind
(Id
) = E_Loop
);
1299 end First_Exit_Statement
;
1301 function First_Index
(Id
: E
) return N
is
1303 pragma Assert
(Is_Array_Type
(Id
) or else Is_String_Type
(Id
));
1307 function First_Literal
(Id
: E
) return E
is
1309 pragma Assert
(Is_Enumeration_Type
(Id
));
1313 function First_Private_Entity
(Id
: E
) return E
is
1315 pragma Assert
(Ekind_In
(Id
, E_Package
, E_Generic_Package
)
1316 or else Ekind
(Id
) in Concurrent_Kind
);
1318 end First_Private_Entity
;
1320 function First_Rep_Item
(Id
: E
) return E
is
1325 function Freeze_Node
(Id
: E
) return N
is
1330 function From_Limited_With
(Id
: E
) return B
is
1332 return Flag159
(Id
);
1333 end From_Limited_With
;
1335 function Full_View
(Id
: E
) return E
is
1337 pragma Assert
(Is_Type
(Id
) or else Ekind
(Id
) = E_Constant
);
1341 function Generic_Homonym
(Id
: E
) return E
is
1343 pragma Assert
(Ekind
(Id
) = E_Generic_Package
);
1345 end Generic_Homonym
;
1347 function Generic_Renamings
(Id
: E
) return L
is
1349 return Elist23
(Id
);
1350 end Generic_Renamings
;
1352 function Handler_Records
(Id
: E
) return S
is
1355 end Handler_Records
;
1357 function Has_Aliased_Components
(Id
: E
) return B
is
1359 return Flag135
(Implementation_Base_Type
(Id
));
1360 end Has_Aliased_Components
;
1362 function Has_Alignment_Clause
(Id
: E
) return B
is
1365 end Has_Alignment_Clause
;
1367 function Has_All_Calls_Remote
(Id
: E
) return B
is
1370 end Has_All_Calls_Remote
;
1372 function Has_Anonymous_Master
(Id
: E
) return B
is
1375 (Ekind_In
(Id
, E_Function
, E_Package
, E_Package_Body
, E_Procedure
));
1376 return Flag253
(Id
);
1377 end Has_Anonymous_Master
;
1379 function Has_Atomic_Components
(Id
: E
) return B
is
1381 return Flag86
(Implementation_Base_Type
(Id
));
1382 end Has_Atomic_Components
;
1384 function Has_Biased_Representation
(Id
: E
) return B
is
1386 return Flag139
(Id
);
1387 end Has_Biased_Representation
;
1389 function Has_Completion
(Id
: E
) return B
is
1394 function Has_Completion_In_Body
(Id
: E
) return B
is
1396 pragma Assert
(Is_Type
(Id
));
1398 end Has_Completion_In_Body
;
1400 function Has_Complex_Representation
(Id
: E
) return B
is
1402 pragma Assert
(Is_Type
(Id
));
1403 return Flag140
(Implementation_Base_Type
(Id
));
1404 end Has_Complex_Representation
;
1406 function Has_Component_Size_Clause
(Id
: E
) return B
is
1408 pragma Assert
(Is_Array_Type
(Id
));
1409 return Flag68
(Implementation_Base_Type
(Id
));
1410 end Has_Component_Size_Clause
;
1412 function Has_Constrained_Partial_View
(Id
: E
) return B
is
1414 pragma Assert
(Is_Type
(Id
));
1415 return Flag187
(Id
);
1416 end Has_Constrained_Partial_View
;
1418 function Has_Controlled_Component
(Id
: E
) return B
is
1420 return Flag43
(Base_Type
(Id
));
1421 end Has_Controlled_Component
;
1423 function Has_Contiguous_Rep
(Id
: E
) return B
is
1425 return Flag181
(Id
);
1426 end Has_Contiguous_Rep
;
1428 function Has_Controlling_Result
(Id
: E
) return B
is
1431 end Has_Controlling_Result
;
1433 function Has_Convention_Pragma
(Id
: E
) return B
is
1435 return Flag119
(Id
);
1436 end Has_Convention_Pragma
;
1438 function Has_Default_Aspect
(Id
: E
) return B
is
1440 return Flag39
(Base_Type
(Id
));
1441 end Has_Default_Aspect
;
1443 function Has_Default_Init_Cond
(Id
: E
) return B
is
1446 end Has_Default_Init_Cond
;
1448 function Has_Delayed_Aspects
(Id
: E
) return B
is
1450 pragma Assert
(Nkind
(Id
) in N_Entity
);
1451 return Flag200
(Id
);
1452 end Has_Delayed_Aspects
;
1454 function Has_Delayed_Freeze
(Id
: E
) return B
is
1456 pragma Assert
(Nkind
(Id
) in N_Entity
);
1458 end Has_Delayed_Freeze
;
1460 function Has_Delayed_Rep_Aspects
(Id
: E
) return B
is
1462 pragma Assert
(Nkind
(Id
) in N_Entity
);
1463 return Flag261
(Id
);
1464 end Has_Delayed_Rep_Aspects
;
1466 function Has_Discriminants
(Id
: E
) return B
is
1468 pragma Assert
(Nkind
(Id
) in N_Entity
);
1470 end Has_Discriminants
;
1472 function Has_Dispatch_Table
(Id
: E
) return B
is
1474 pragma Assert
(Is_Tagged_Type
(Id
));
1475 return Flag220
(Id
);
1476 end Has_Dispatch_Table
;
1478 function Has_Dynamic_Predicate_Aspect
(Id
: E
) return B
is
1480 pragma Assert
(Is_Type
(Id
));
1481 return Flag258
(Id
);
1482 end Has_Dynamic_Predicate_Aspect
;
1484 function Has_Enumeration_Rep_Clause
(Id
: E
) return B
is
1486 pragma Assert
(Is_Enumeration_Type
(Id
));
1488 end Has_Enumeration_Rep_Clause
;
1490 function Has_Exit
(Id
: E
) return B
is
1495 function Has_Expanded_Contract
(Id
: E
) return B
is
1497 pragma Assert
(Is_Subprogram
(Id
));
1498 return Flag240
(Id
);
1499 end Has_Expanded_Contract
;
1501 function Has_Forward_Instantiation
(Id
: E
) return B
is
1503 return Flag175
(Id
);
1504 end Has_Forward_Instantiation
;
1506 function Has_Fully_Qualified_Name
(Id
: E
) return B
is
1508 return Flag173
(Id
);
1509 end Has_Fully_Qualified_Name
;
1511 function Has_Gigi_Rep_Item
(Id
: E
) return B
is
1514 end Has_Gigi_Rep_Item
;
1516 function Has_Homonym
(Id
: E
) return B
is
1521 function Has_Implicit_Dereference
(Id
: E
) return B
is
1523 return Flag251
(Id
);
1524 end Has_Implicit_Dereference
;
1526 function Has_Independent_Components
(Id
: E
) return B
is
1528 return Flag34
(Implementation_Base_Type
(Id
));
1529 end Has_Independent_Components
;
1531 function Has_Inheritable_Invariants
(Id
: E
) return B
is
1533 pragma Assert
(Is_Type
(Id
));
1534 return Flag248
(Id
);
1535 end Has_Inheritable_Invariants
;
1537 function Has_Inherited_Default_Init_Cond
(Id
: E
) return B
is
1539 pragma Assert
(Is_Type
(Id
));
1540 return Flag133
(Id
);
1541 end Has_Inherited_Default_Init_Cond
;
1543 function Has_Initial_Value
(Id
: E
) return B
is
1545 pragma Assert
(Ekind
(Id
) = E_Variable
or else Is_Formal
(Id
));
1546 return Flag219
(Id
);
1547 end Has_Initial_Value
;
1549 function Has_Invariants
(Id
: E
) return B
is
1551 pragma Assert
(Is_Type
(Id
));
1552 return Flag232
(Id
);
1555 function Has_Loop_Entry_Attributes
(Id
: E
) return B
is
1557 pragma Assert
(Ekind
(Id
) = E_Loop
);
1558 return Flag260
(Id
);
1559 end Has_Loop_Entry_Attributes
;
1561 function Has_Machine_Radix_Clause
(Id
: E
) return B
is
1563 pragma Assert
(Is_Decimal_Fixed_Point_Type
(Id
));
1565 end Has_Machine_Radix_Clause
;
1567 function Has_Master_Entity
(Id
: E
) return B
is
1570 end Has_Master_Entity
;
1572 function Has_Missing_Return
(Id
: E
) return B
is
1574 pragma Assert
(Ekind_In
(Id
, E_Function
, E_Generic_Function
));
1575 return Flag142
(Id
);
1576 end Has_Missing_Return
;
1578 function Has_Nested_Block_With_Handler
(Id
: E
) return B
is
1580 return Flag101
(Id
);
1581 end Has_Nested_Block_With_Handler
;
1583 function Has_Nested_Subprogram
(Id
: E
) return B
is
1585 pragma Assert
(Is_Subprogram
(Id
));
1586 return Flag282
(Id
);
1587 end Has_Nested_Subprogram
;
1589 function Has_Non_Standard_Rep
(Id
: E
) return B
is
1591 return Flag75
(Implementation_Base_Type
(Id
));
1592 end Has_Non_Standard_Rep
;
1594 function Has_Object_Size_Clause
(Id
: E
) return B
is
1596 pragma Assert
(Is_Type
(Id
));
1597 return Flag172
(Id
);
1598 end Has_Object_Size_Clause
;
1600 function Has_Out_Or_In_Out_Parameter
(Id
: E
) return B
is
1602 pragma Assert
(Ekind_In
(Id
, E_Function
, E_Generic_Function
));
1603 return Flag110
(Id
);
1604 end Has_Out_Or_In_Out_Parameter
;
1606 function Has_Per_Object_Constraint
(Id
: E
) return B
is
1608 return Flag154
(Id
);
1609 end Has_Per_Object_Constraint
;
1611 function Has_Pragma_Controlled
(Id
: E
) return B
is
1613 pragma Assert
(Is_Access_Type
(Id
));
1614 return Flag27
(Implementation_Base_Type
(Id
));
1615 end Has_Pragma_Controlled
;
1617 function Has_Pragma_Elaborate_Body
(Id
: E
) return B
is
1619 return Flag150
(Id
);
1620 end Has_Pragma_Elaborate_Body
;
1622 function Has_Pragma_Inline
(Id
: E
) return B
is
1624 return Flag157
(Id
);
1625 end Has_Pragma_Inline
;
1627 function Has_Pragma_Inline_Always
(Id
: E
) return B
is
1629 return Flag230
(Id
);
1630 end Has_Pragma_Inline_Always
;
1632 function Has_Pragma_No_Inline
(Id
: E
) return B
is
1634 return Flag201
(Id
);
1635 end Has_Pragma_No_Inline
;
1637 function Has_Pragma_Ordered
(Id
: E
) return B
is
1639 pragma Assert
(Is_Enumeration_Type
(Id
));
1640 return Flag198
(Implementation_Base_Type
(Id
));
1641 end Has_Pragma_Ordered
;
1643 function Has_Pragma_Pack
(Id
: E
) return B
is
1645 pragma Assert
(Is_Record_Type
(Id
) or else Is_Array_Type
(Id
));
1646 return Flag121
(Implementation_Base_Type
(Id
));
1647 end Has_Pragma_Pack
;
1649 function Has_Pragma_Preelab_Init
(Id
: E
) return B
is
1651 return Flag221
(Id
);
1652 end Has_Pragma_Preelab_Init
;
1654 function Has_Pragma_Pure
(Id
: E
) return B
is
1656 return Flag203
(Id
);
1657 end Has_Pragma_Pure
;
1659 function Has_Pragma_Pure_Function
(Id
: E
) return B
is
1661 return Flag179
(Id
);
1662 end Has_Pragma_Pure_Function
;
1664 function Has_Pragma_Thread_Local_Storage
(Id
: E
) return B
is
1666 return Flag169
(Id
);
1667 end Has_Pragma_Thread_Local_Storage
;
1669 function Has_Pragma_Unmodified
(Id
: E
) return B
is
1671 return Flag233
(Id
);
1672 end Has_Pragma_Unmodified
;
1674 function Has_Pragma_Unreferenced
(Id
: E
) return B
is
1676 return Flag180
(Id
);
1677 end Has_Pragma_Unreferenced
;
1679 function Has_Pragma_Unreferenced_Objects
(Id
: E
) return B
is
1681 pragma Assert
(Is_Type
(Id
));
1682 return Flag212
(Id
);
1683 end Has_Pragma_Unreferenced_Objects
;
1685 function Has_Predicates
(Id
: E
) return B
is
1687 pragma Assert
(Is_Type
(Id
));
1688 return Flag250
(Id
);
1691 function Has_Primitive_Operations
(Id
: E
) return B
is
1693 pragma Assert
(Is_Type
(Id
));
1694 return Flag120
(Base_Type
(Id
));
1695 end Has_Primitive_Operations
;
1697 function Has_Private_Ancestor
(Id
: E
) return B
is
1699 return Flag151
(Id
);
1700 end Has_Private_Ancestor
;
1702 function Has_Private_Declaration
(Id
: E
) return B
is
1704 return Flag155
(Id
);
1705 end Has_Private_Declaration
;
1707 function Has_Protected
(Id
: E
) return B
is
1709 return Flag271
(Base_Type
(Id
));
1712 function Has_Qualified_Name
(Id
: E
) return B
is
1714 return Flag161
(Id
);
1715 end Has_Qualified_Name
;
1717 function Has_RACW
(Id
: E
) return B
is
1719 pragma Assert
(Ekind
(Id
) = E_Package
);
1720 return Flag214
(Id
);
1723 function Has_Record_Rep_Clause
(Id
: E
) return B
is
1725 pragma Assert
(Is_Record_Type
(Id
));
1726 return Flag65
(Implementation_Base_Type
(Id
));
1727 end Has_Record_Rep_Clause
;
1729 function Has_Recursive_Call
(Id
: E
) return B
is
1731 pragma Assert
(Is_Subprogram
(Id
));
1732 return Flag143
(Id
);
1733 end Has_Recursive_Call
;
1735 function Has_Shift_Operator
(Id
: E
) return B
is
1737 pragma Assert
(Is_Integer_Type
(Id
));
1738 return Flag267
(Base_Type
(Id
));
1739 end Has_Shift_Operator
;
1741 function Has_Size_Clause
(Id
: E
) return B
is
1744 end Has_Size_Clause
;
1746 function Has_Small_Clause
(Id
: E
) return B
is
1749 end Has_Small_Clause
;
1751 function Has_Specified_Layout
(Id
: E
) return B
is
1753 pragma Assert
(Is_Type
(Id
));
1754 return Flag100
(Implementation_Base_Type
(Id
));
1755 end Has_Specified_Layout
;
1757 function Has_Specified_Stream_Input
(Id
: E
) return B
is
1759 pragma Assert
(Is_Type
(Id
));
1760 return Flag190
(Id
);
1761 end Has_Specified_Stream_Input
;
1763 function Has_Specified_Stream_Output
(Id
: E
) return B
is
1765 pragma Assert
(Is_Type
(Id
));
1766 return Flag191
(Id
);
1767 end Has_Specified_Stream_Output
;
1769 function Has_Specified_Stream_Read
(Id
: E
) return B
is
1771 pragma Assert
(Is_Type
(Id
));
1772 return Flag192
(Id
);
1773 end Has_Specified_Stream_Read
;
1775 function Has_Specified_Stream_Write
(Id
: E
) return B
is
1777 pragma Assert
(Is_Type
(Id
));
1778 return Flag193
(Id
);
1779 end Has_Specified_Stream_Write
;
1781 function Has_Static_Discriminants
(Id
: E
) return B
is
1783 pragma Assert
(Is_Type
(Id
));
1784 return Flag211
(Id
);
1785 end Has_Static_Discriminants
;
1787 function Has_Static_Predicate
(Id
: E
) return B
is
1789 pragma Assert
(Is_Type
(Id
));
1790 return Flag269
(Id
);
1791 end Has_Static_Predicate
;
1793 function Has_Static_Predicate_Aspect
(Id
: E
) return B
is
1795 pragma Assert
(Is_Type
(Id
));
1796 return Flag259
(Id
);
1797 end Has_Static_Predicate_Aspect
;
1799 function Has_Storage_Size_Clause
(Id
: E
) return B
is
1801 pragma Assert
(Is_Access_Type
(Id
) or else Is_Task_Type
(Id
));
1802 return Flag23
(Implementation_Base_Type
(Id
));
1803 end Has_Storage_Size_Clause
;
1805 function Has_Stream_Size_Clause
(Id
: E
) return B
is
1807 return Flag184
(Id
);
1808 end Has_Stream_Size_Clause
;
1810 function Has_Task
(Id
: E
) return B
is
1812 return Flag30
(Base_Type
(Id
));
1815 function Has_Thunks
(Id
: E
) return B
is
1817 return Flag228
(Id
);
1820 function Has_Unchecked_Union
(Id
: E
) return B
is
1822 return Flag123
(Base_Type
(Id
));
1823 end Has_Unchecked_Union
;
1825 function Has_Unknown_Discriminants
(Id
: E
) return B
is
1827 pragma Assert
(Is_Type
(Id
));
1829 end Has_Unknown_Discriminants
;
1831 function Has_Uplevel_Reference
(Id
: E
) return B
is
1833 return Flag215
(Id
);
1834 end Has_Uplevel_Reference
;
1836 function Has_Visible_Refinement
(Id
: E
) return B
is
1838 pragma Assert
(Ekind
(Id
) = E_Abstract_State
);
1839 return Flag263
(Id
);
1840 end Has_Visible_Refinement
;
1842 function Has_Volatile_Components
(Id
: E
) return B
is
1844 return Flag87
(Implementation_Base_Type
(Id
));
1845 end Has_Volatile_Components
;
1847 function Has_Xref_Entry
(Id
: E
) return B
is
1849 return Flag182
(Id
);
1852 function Hiding_Loop_Variable
(Id
: E
) return E
is
1854 pragma Assert
(Ekind
(Id
) = E_Variable
);
1856 end Hiding_Loop_Variable
;
1858 function Homonym
(Id
: E
) return E
is
1863 function Import_Pragma
(Id
: E
) return E
is
1865 pragma Assert
(Is_Subprogram
(Id
));
1869 function Interface_Alias
(Id
: E
) return E
is
1871 pragma Assert
(Is_Subprogram
(Id
));
1873 end Interface_Alias
;
1875 function Interfaces
(Id
: E
) return L
is
1877 pragma Assert
(Is_Record_Type
(Id
));
1878 return Elist25
(Id
);
1881 function In_Package_Body
(Id
: E
) return B
is
1884 end In_Package_Body
;
1886 function In_Private_Part
(Id
: E
) return B
is
1889 end In_Private_Part
;
1891 function In_Use
(Id
: E
) return B
is
1893 pragma Assert
(Nkind
(Id
) in N_Entity
);
1897 function Initialization_Statements
(Id
: E
) return N
is
1899 pragma Assert
(Ekind_In
(Id
, E_Constant
, E_Variable
));
1901 end Initialization_Statements
;
1903 function Inner_Instances
(Id
: E
) return L
is
1905 return Elist23
(Id
);
1906 end Inner_Instances
;
1908 function Interface_Name
(Id
: E
) return N
is
1913 function Is_Abstract_Subprogram
(Id
: E
) return B
is
1915 pragma Assert
(Is_Overloadable
(Id
));
1917 end Is_Abstract_Subprogram
;
1919 function Is_Abstract_Type
(Id
: E
) return B
is
1921 pragma Assert
(Is_Type
(Id
));
1922 return Flag146
(Id
);
1923 end Is_Abstract_Type
;
1925 function Is_Local_Anonymous_Access
(Id
: E
) return B
is
1927 pragma Assert
(Is_Access_Type
(Id
));
1928 return Flag194
(Id
);
1929 end Is_Local_Anonymous_Access
;
1931 function Is_Access_Constant
(Id
: E
) return B
is
1933 pragma Assert
(Is_Access_Type
(Id
));
1935 end Is_Access_Constant
;
1937 function Is_Ada_2005_Only
(Id
: E
) return B
is
1939 return Flag185
(Id
);
1940 end Is_Ada_2005_Only
;
1942 function Is_Ada_2012_Only
(Id
: E
) return B
is
1944 return Flag199
(Id
);
1945 end Is_Ada_2012_Only
;
1947 function Is_Aliased
(Id
: E
) return B
is
1949 pragma Assert
(Nkind
(Id
) in N_Entity
);
1953 function Is_Asynchronous
(Id
: E
) return B
is
1955 pragma Assert
(Ekind
(Id
) = E_Procedure
or else Is_Type
(Id
));
1957 end Is_Asynchronous
;
1959 function Is_Atomic
(Id
: E
) return B
is
1964 function Is_Bit_Packed_Array
(Id
: E
) return B
is
1966 return Flag122
(Implementation_Base_Type
(Id
));
1967 end Is_Bit_Packed_Array
;
1969 function Is_Called
(Id
: E
) return B
is
1971 pragma Assert
(Ekind_In
(Id
, E_Procedure
, E_Function
));
1972 return Flag102
(Id
);
1975 function Is_Character_Type
(Id
: E
) return B
is
1978 end Is_Character_Type
;
1980 function Is_Checked_Ghost_Entity
(Id
: E
) return B
is
1982 pragma Assert
(Nkind
(Id
) in N_Entity
);
1983 return Flag277
(Id
);
1984 end Is_Checked_Ghost_Entity
;
1986 function Is_Child_Unit
(Id
: E
) return B
is
1991 function Is_Class_Wide_Equivalent_Type
(Id
: E
) return B
is
1994 end Is_Class_Wide_Equivalent_Type
;
1996 function Is_Compilation_Unit
(Id
: E
) return B
is
1998 return Flag149
(Id
);
1999 end Is_Compilation_Unit
;
2001 function Is_Completely_Hidden
(Id
: E
) return B
is
2003 pragma Assert
(Ekind
(Id
) = E_Discriminant
);
2004 return Flag103
(Id
);
2005 end Is_Completely_Hidden
;
2007 function Is_Constr_Subt_For_U_Nominal
(Id
: E
) return B
is
2010 end Is_Constr_Subt_For_U_Nominal
;
2012 function Is_Constr_Subt_For_UN_Aliased
(Id
: E
) return B
is
2014 return Flag141
(Id
);
2015 end Is_Constr_Subt_For_UN_Aliased
;
2017 function Is_Constrained
(Id
: E
) return B
is
2019 pragma Assert
(Nkind
(Id
) in N_Entity
);
2023 function Is_Constructor
(Id
: E
) return B
is
2028 function Is_Controlled
(Id
: E
) return B
is
2030 return Flag42
(Base_Type
(Id
));
2033 function Is_Controlling_Formal
(Id
: E
) return B
is
2035 pragma Assert
(Is_Formal
(Id
));
2037 end Is_Controlling_Formal
;
2039 function Is_CPP_Class
(Id
: E
) return B
is
2044 function Is_Default_Init_Cond_Procedure
(Id
: E
) return B
is
2046 pragma Assert
(Ekind_In
(Id
, E_Function
, E_Procedure
));
2047 return Flag132
(Id
);
2048 end Is_Default_Init_Cond_Procedure
;
2050 function Is_Descendent_Of_Address
(Id
: E
) return B
is
2052 return Flag223
(Id
);
2053 end Is_Descendent_Of_Address
;
2055 function Is_Discrim_SO_Function
(Id
: E
) return B
is
2057 return Flag176
(Id
);
2058 end Is_Discrim_SO_Function
;
2060 function Is_Discriminant_Check_Function
(Id
: E
) return B
is
2062 return Flag264
(Id
);
2063 end Is_Discriminant_Check_Function
;
2065 function Is_Dispatch_Table_Entity
(Id
: E
) return B
is
2067 return Flag234
(Id
);
2068 end Is_Dispatch_Table_Entity
;
2070 function Is_Dispatching_Operation
(Id
: E
) return B
is
2072 pragma Assert
(Nkind
(Id
) in N_Entity
);
2074 end Is_Dispatching_Operation
;
2076 function Is_Eliminated
(Id
: E
) return B
is
2078 return Flag124
(Id
);
2081 function Is_Entry_Formal
(Id
: E
) return B
is
2084 end Is_Entry_Formal
;
2086 function Is_Exported
(Id
: E
) return B
is
2091 function Is_First_Subtype
(Id
: E
) return B
is
2094 end Is_First_Subtype
;
2096 function Is_For_Access_Subtype
(Id
: E
) return B
is
2098 pragma Assert
(Ekind_In
(Id
, E_Record_Subtype
, E_Private_Subtype
));
2099 return Flag118
(Id
);
2100 end Is_For_Access_Subtype
;
2102 function Is_Formal_Subprogram
(Id
: E
) return B
is
2104 return Flag111
(Id
);
2105 end Is_Formal_Subprogram
;
2107 function Is_Frozen
(Id
: E
) return B
is
2112 function Is_Generic_Actual_Subprogram
(Id
: E
) return B
is
2114 pragma Assert
(Ekind
(Id
) = E_Function
or else Ekind
(Id
) = E_Procedure
);
2115 return Flag274
(Id
);
2116 end Is_Generic_Actual_Subprogram
;
2118 function Is_Generic_Actual_Type
(Id
: E
) return B
is
2120 pragma Assert
(Is_Type
(Id
));
2122 end Is_Generic_Actual_Type
;
2124 function Is_Generic_Instance
(Id
: E
) return B
is
2126 return Flag130
(Id
);
2127 end Is_Generic_Instance
;
2129 function Is_Generic_Type
(Id
: E
) return B
is
2131 pragma Assert
(Nkind
(Id
) in N_Entity
);
2133 end Is_Generic_Type
;
2135 function Is_Hidden
(Id
: E
) return B
is
2140 function Is_Hidden_Non_Overridden_Subpgm
(Id
: E
) return B
is
2143 end Is_Hidden_Non_Overridden_Subpgm
;
2145 function Is_Hidden_Open_Scope
(Id
: E
) return B
is
2147 return Flag171
(Id
);
2148 end Is_Hidden_Open_Scope
;
2150 function Is_Ignored_Ghost_Entity
(Id
: E
) return B
is
2152 pragma Assert
(Nkind
(Id
) in N_Entity
);
2153 return Flag278
(Id
);
2154 end Is_Ignored_Ghost_Entity
;
2156 function Is_Immediately_Visible
(Id
: E
) return B
is
2158 pragma Assert
(Nkind
(Id
) in N_Entity
);
2160 end Is_Immediately_Visible
;
2162 function Is_Implementation_Defined
(Id
: E
) return B
is
2164 return Flag254
(Id
);
2165 end Is_Implementation_Defined
;
2167 function Is_Imported
(Id
: E
) return B
is
2172 function Is_Independent
(Id
: E
) return B
is
2174 return Flag268
(Id
);
2177 function Is_Inlined
(Id
: E
) return B
is
2182 function Is_Inlined_Always
(Id
: E
) return B
is
2184 pragma Assert
(Ekind
(Id
) = E_Function
or else Ekind
(Id
) = E_Procedure
);
2186 end Is_Inlined_Always
;
2188 function Is_Interface
(Id
: E
) return B
is
2190 return Flag186
(Id
);
2193 function Is_Instantiated
(Id
: E
) return B
is
2195 return Flag126
(Id
);
2196 end Is_Instantiated
;
2198 function Is_Internal
(Id
: E
) return B
is
2200 pragma Assert
(Nkind
(Id
) in N_Entity
);
2204 function Is_Interrupt_Handler
(Id
: E
) return B
is
2206 pragma Assert
(Nkind
(Id
) in N_Entity
);
2208 end Is_Interrupt_Handler
;
2210 function Is_Intrinsic_Subprogram
(Id
: E
) return B
is
2213 end Is_Intrinsic_Subprogram
;
2215 function Is_Invariant_Procedure
(Id
: E
) return B
is
2217 pragma Assert
(Ekind_In
(Id
, E_Function
, E_Procedure
));
2218 return Flag257
(Id
);
2219 end Is_Invariant_Procedure
;
2221 function Is_Itype
(Id
: E
) return B
is
2226 function Is_Known_Non_Null
(Id
: E
) return B
is
2229 end Is_Known_Non_Null
;
2231 function Is_Known_Null
(Id
: E
) return B
is
2233 return Flag204
(Id
);
2236 function Is_Known_Valid
(Id
: E
) return B
is
2238 return Flag170
(Id
);
2241 function Is_Limited_Composite
(Id
: E
) return B
is
2243 return Flag106
(Id
);
2244 end Is_Limited_Composite
;
2246 function Is_Limited_Interface
(Id
: E
) return B
is
2248 return Flag197
(Id
);
2249 end Is_Limited_Interface
;
2251 function Is_Limited_Record
(Id
: E
) return B
is
2254 end Is_Limited_Record
;
2256 function Is_Machine_Code_Subprogram
(Id
: E
) return B
is
2258 pragma Assert
(Is_Subprogram
(Id
));
2259 return Flag137
(Id
);
2260 end Is_Machine_Code_Subprogram
;
2262 function Is_Non_Static_Subtype
(Id
: E
) return B
is
2264 pragma Assert
(Is_Type
(Id
));
2265 return Flag109
(Id
);
2266 end Is_Non_Static_Subtype
;
2268 function Is_Null_Init_Proc
(Id
: E
) return B
is
2270 pragma Assert
(Ekind
(Id
) = E_Procedure
);
2271 return Flag178
(Id
);
2272 end Is_Null_Init_Proc
;
2274 function Is_Obsolescent
(Id
: E
) return B
is
2276 return Flag153
(Id
);
2279 function Is_Only_Out_Parameter
(Id
: E
) return B
is
2281 pragma Assert
(Is_Formal
(Id
));
2282 return Flag226
(Id
);
2283 end Is_Only_Out_Parameter
;
2285 function Is_Package_Body_Entity
(Id
: E
) return B
is
2287 return Flag160
(Id
);
2288 end Is_Package_Body_Entity
;
2290 function Is_Packed
(Id
: E
) return B
is
2292 return Flag51
(Implementation_Base_Type
(Id
));
2295 function Is_Packed_Array_Impl_Type
(Id
: E
) return B
is
2297 return Flag138
(Id
);
2298 end Is_Packed_Array_Impl_Type
;
2300 function Is_Potentially_Use_Visible
(Id
: E
) return B
is
2302 pragma Assert
(Nkind
(Id
) in N_Entity
);
2304 end Is_Potentially_Use_Visible
;
2306 function Is_Predicate_Function
(Id
: E
) return B
is
2308 pragma Assert
(Ekind
(Id
) = E_Function
or else Ekind
(Id
) = E_Procedure
);
2309 return Flag255
(Id
);
2310 end Is_Predicate_Function
;
2312 function Is_Predicate_Function_M
(Id
: E
) return B
is
2314 pragma Assert
(Ekind
(Id
) = E_Function
or else Ekind
(Id
) = E_Procedure
);
2315 return Flag256
(Id
);
2316 end Is_Predicate_Function_M
;
2318 function Is_Preelaborated
(Id
: E
) return B
is
2321 end Is_Preelaborated
;
2323 function Is_Primitive
(Id
: E
) return B
is
2326 (Is_Overloadable
(Id
)
2327 or else Ekind_In
(Id
, E_Generic_Function
, E_Generic_Procedure
));
2328 return Flag218
(Id
);
2331 function Is_Primitive_Wrapper
(Id
: E
) return B
is
2333 pragma Assert
(Ekind_In
(Id
, E_Function
, E_Procedure
));
2334 return Flag195
(Id
);
2335 end Is_Primitive_Wrapper
;
2337 function Is_Private_Composite
(Id
: E
) return B
is
2339 pragma Assert
(Is_Type
(Id
));
2340 return Flag107
(Id
);
2341 end Is_Private_Composite
;
2343 function Is_Private_Descendant
(Id
: E
) return B
is
2346 end Is_Private_Descendant
;
2348 function Is_Private_Primitive
(Id
: E
) return B
is
2350 pragma Assert
(Ekind_In
(Id
, E_Function
, E_Procedure
));
2351 return Flag245
(Id
);
2352 end Is_Private_Primitive
;
2354 function Is_Processed_Transient
(Id
: E
) return B
is
2356 pragma Assert
(Ekind_In
(Id
, E_Constant
, E_Loop_Parameter
, E_Variable
));
2357 return Flag252
(Id
);
2358 end Is_Processed_Transient
;
2360 function Is_Public
(Id
: E
) return B
is
2362 pragma Assert
(Nkind
(Id
) in N_Entity
);
2366 function Is_Pure
(Id
: E
) return B
is
2371 function Is_Pure_Unit_Access_Type
(Id
: E
) return B
is
2373 pragma Assert
(Is_Access_Type
(Id
));
2374 return Flag189
(Id
);
2375 end Is_Pure_Unit_Access_Type
;
2377 function Is_RACW_Stub_Type
(Id
: E
) return B
is
2379 pragma Assert
(Is_Type
(Id
));
2380 return Flag244
(Id
);
2381 end Is_RACW_Stub_Type
;
2383 function Is_Raised
(Id
: E
) return B
is
2385 pragma Assert
(Ekind
(Id
) = E_Exception
);
2386 return Flag224
(Id
);
2389 function Is_Remote_Call_Interface
(Id
: E
) return B
is
2392 end Is_Remote_Call_Interface
;
2394 function Is_Remote_Types
(Id
: E
) return B
is
2397 end Is_Remote_Types
;
2399 function Is_Renaming_Of_Object
(Id
: E
) return B
is
2401 return Flag112
(Id
);
2402 end Is_Renaming_Of_Object
;
2404 function Is_Return_Object
(Id
: E
) return B
is
2406 return Flag209
(Id
);
2407 end Is_Return_Object
;
2409 function Is_Safe_To_Reevaluate
(Id
: E
) return B
is
2411 return Flag249
(Id
);
2412 end Is_Safe_To_Reevaluate
;
2414 function Is_Shared_Passive
(Id
: E
) return B
is
2417 end Is_Shared_Passive
;
2419 function Is_Static_Type
(Id
: E
) return B
is
2421 pragma Assert
(Is_Type
(Id
));
2422 return Flag281
(Id
);
2425 function Is_Statically_Allocated
(Id
: E
) return B
is
2428 end Is_Statically_Allocated
;
2430 function Is_Tag
(Id
: E
) return B
is
2432 pragma Assert
(Nkind
(Id
) in N_Entity
);
2436 function Is_Tagged_Type
(Id
: E
) return B
is
2441 function Is_Thunk
(Id
: E
) return B
is
2443 return Flag225
(Id
);
2446 function Is_Trivial_Subprogram
(Id
: E
) return B
is
2448 return Flag235
(Id
);
2449 end Is_Trivial_Subprogram
;
2451 function Is_True_Constant
(Id
: E
) return B
is
2453 return Flag163
(Id
);
2454 end Is_True_Constant
;
2456 function Is_Unchecked_Union
(Id
: E
) return B
is
2458 return Flag117
(Implementation_Base_Type
(Id
));
2459 end Is_Unchecked_Union
;
2461 function Is_Underlying_Record_View
(Id
: E
) return B
is
2463 return Flag246
(Id
);
2464 end Is_Underlying_Record_View
;
2466 function Is_Unimplemented
(Id
: E
) return B
is
2468 return Flag284
(Id
);
2469 end Is_Unimplemented
;
2471 function Is_Unsigned_Type
(Id
: E
) return B
is
2473 pragma Assert
(Is_Type
(Id
));
2474 return Flag144
(Id
);
2475 end Is_Unsigned_Type
;
2477 function Is_Valued_Procedure
(Id
: E
) return B
is
2479 pragma Assert
(Ekind
(Id
) = E_Procedure
);
2480 return Flag127
(Id
);
2481 end Is_Valued_Procedure
;
2483 function Is_Visible_Formal
(Id
: E
) return B
is
2485 return Flag206
(Id
);
2486 end Is_Visible_Formal
;
2488 function Is_Visible_Lib_Unit
(Id
: E
) return B
is
2490 return Flag116
(Id
);
2491 end Is_Visible_Lib_Unit
;
2493 function Is_Volatile
(Id
: E
) return B
is
2495 pragma Assert
(Nkind
(Id
) in N_Entity
);
2497 if Is_Type
(Id
) then
2498 return Flag16
(Base_Type
(Id
));
2504 function Itype_Printed
(Id
: E
) return B
is
2506 pragma Assert
(Is_Itype
(Id
));
2507 return Flag202
(Id
);
2510 function Kill_Elaboration_Checks
(Id
: E
) return B
is
2513 end Kill_Elaboration_Checks
;
2515 function Kill_Range_Checks
(Id
: E
) return B
is
2518 end Kill_Range_Checks
;
2520 function Known_To_Have_Preelab_Init
(Id
: E
) return B
is
2522 pragma Assert
(Is_Type
(Id
));
2523 return Flag207
(Id
);
2524 end Known_To_Have_Preelab_Init
;
2526 function Last_Aggregate_Assignment
(Id
: E
) return N
is
2528 pragma Assert
(Ekind_In
(Id
, E_Constant
, E_Variable
));
2530 end Last_Aggregate_Assignment
;
2532 function Last_Assignment
(Id
: E
) return N
is
2534 pragma Assert
(Is_Assignable
(Id
));
2536 end Last_Assignment
;
2538 function Last_Entity
(Id
: E
) return E
is
2543 function Limited_View
(Id
: E
) return E
is
2545 pragma Assert
(Ekind
(Id
) = E_Package
);
2549 function Linker_Section_Pragma
(Id
: E
) return N
is
2552 (Is_Type
(Id
) or else Is_Object
(Id
) or else Is_Subprogram
(Id
));
2554 end Linker_Section_Pragma
;
2556 function Lit_Indexes
(Id
: E
) return E
is
2558 pragma Assert
(Is_Enumeration_Type
(Id
));
2562 function Lit_Strings
(Id
: E
) return E
is
2564 pragma Assert
(Is_Enumeration_Type
(Id
));
2568 function Low_Bound_Tested
(Id
: E
) return B
is
2570 return Flag205
(Id
);
2571 end Low_Bound_Tested
;
2573 function Machine_Radix_10
(Id
: E
) return B
is
2575 pragma Assert
(Is_Decimal_Fixed_Point_Type
(Id
));
2577 end Machine_Radix_10
;
2579 function Master_Id
(Id
: E
) return E
is
2581 pragma Assert
(Is_Access_Type
(Id
));
2585 function Materialize_Entity
(Id
: E
) return B
is
2587 return Flag168
(Id
);
2588 end Materialize_Entity
;
2590 function May_Inherit_Delayed_Rep_Aspects
(Id
: E
) return B
is
2592 return Flag262
(Id
);
2593 end May_Inherit_Delayed_Rep_Aspects
;
2595 function Mechanism
(Id
: E
) return M
is
2597 pragma Assert
(Ekind
(Id
) = E_Function
or else Is_Formal
(Id
));
2598 return UI_To_Int
(Uint8
(Id
));
2601 function Modulus
(Id
: E
) return Uint
is
2603 pragma Assert
(Is_Modular_Integer_Type
(Id
));
2604 return Uint17
(Base_Type
(Id
));
2607 function Must_Be_On_Byte_Boundary
(Id
: E
) return B
is
2609 pragma Assert
(Is_Type
(Id
));
2610 return Flag183
(Id
);
2611 end Must_Be_On_Byte_Boundary
;
2613 function Must_Have_Preelab_Init
(Id
: E
) return B
is
2615 pragma Assert
(Is_Type
(Id
));
2616 return Flag208
(Id
);
2617 end Must_Have_Preelab_Init
;
2619 function Needs_Debug_Info
(Id
: E
) return B
is
2621 return Flag147
(Id
);
2622 end Needs_Debug_Info
;
2624 function Needs_No_Actuals
(Id
: E
) return B
is
2627 (Is_Overloadable
(Id
)
2628 or else Ekind_In
(Id
, E_Subprogram_Type
, E_Entry_Family
));
2630 end Needs_No_Actuals
;
2632 function Never_Set_In_Source
(Id
: E
) return B
is
2634 return Flag115
(Id
);
2635 end Never_Set_In_Source
;
2637 function Next_Inlined_Subprogram
(Id
: E
) return E
is
2640 end Next_Inlined_Subprogram
;
2642 function No_Dynamic_Predicate_On_Actual
(Id
: E
) return Boolean is
2644 pragma Assert
(Is_Discrete_Type
(Id
));
2645 return Flag276
(Id
);
2646 end No_Dynamic_Predicate_On_Actual
;
2648 function No_Pool_Assigned
(Id
: E
) return B
is
2650 pragma Assert
(Is_Access_Type
(Id
));
2651 return Flag131
(Root_Type
(Id
));
2652 end No_Pool_Assigned
;
2654 function No_Predicate_On_Actual
(Id
: E
) return Boolean is
2656 pragma Assert
(Is_Discrete_Type
(Id
));
2657 return Flag275
(Id
);
2658 end No_Predicate_On_Actual
;
2660 function No_Return
(Id
: E
) return B
is
2662 return Flag113
(Id
);
2665 function No_Strict_Aliasing
(Id
: E
) return B
is
2667 pragma Assert
(Is_Access_Type
(Id
));
2668 return Flag136
(Base_Type
(Id
));
2669 end No_Strict_Aliasing
;
2671 function No_Tagged_Streams_Pragma
(Id
: E
) return N
is
2673 pragma Assert
(Is_Tagged_Type
(Id
));
2675 end No_Tagged_Streams_Pragma
;
2677 function Non_Binary_Modulus
(Id
: E
) return B
is
2679 pragma Assert
(Is_Type
(Id
));
2680 return Flag58
(Base_Type
(Id
));
2681 end Non_Binary_Modulus
;
2683 function Non_Limited_View
(Id
: E
) return E
is
2686 (Ekind
(Id
) in Incomplete_Kind
or else Ekind
(Id
) = E_Abstract_State
);
2688 end Non_Limited_View
;
2690 function Nonzero_Is_True
(Id
: E
) return B
is
2692 pragma Assert
(Root_Type
(Id
) = Standard_Boolean
);
2693 return Flag162
(Base_Type
(Id
));
2694 end Nonzero_Is_True
;
2696 function Normalized_First_Bit
(Id
: E
) return U
is
2698 pragma Assert
(Ekind_In
(Id
, E_Component
, E_Discriminant
));
2700 end Normalized_First_Bit
;
2702 function Normalized_Position
(Id
: E
) return U
is
2704 pragma Assert
(Ekind_In
(Id
, E_Component
, E_Discriminant
));
2706 end Normalized_Position
;
2708 function Normalized_Position_Max
(Id
: E
) return U
is
2710 pragma Assert
(Ekind_In
(Id
, E_Component
, E_Discriminant
));
2712 end Normalized_Position_Max
;
2714 function OK_To_Rename
(Id
: E
) return B
is
2716 pragma Assert
(Ekind
(Id
) = E_Variable
);
2717 return Flag247
(Id
);
2720 function OK_To_Reorder_Components
(Id
: E
) return B
is
2722 pragma Assert
(Is_Record_Type
(Id
));
2723 return Flag239
(Base_Type
(Id
));
2724 end OK_To_Reorder_Components
;
2726 function Optimize_Alignment_Space
(Id
: E
) return B
is
2729 (Is_Type
(Id
) or else Ekind_In
(Id
, E_Constant
, E_Variable
));
2730 return Flag241
(Id
);
2731 end Optimize_Alignment_Space
;
2733 function Optimize_Alignment_Time
(Id
: E
) return B
is
2736 (Is_Type
(Id
) or else Ekind_In
(Id
, E_Constant
, E_Variable
));
2737 return Flag242
(Id
);
2738 end Optimize_Alignment_Time
;
2740 function Original_Access_Type
(Id
: E
) return E
is
2742 pragma Assert
(Ekind
(Id
) = E_Access_Subprogram_Type
);
2744 end Original_Access_Type
;
2746 function Original_Array_Type
(Id
: E
) return E
is
2748 pragma Assert
(Is_Array_Type
(Id
) or else Is_Modular_Integer_Type
(Id
));
2750 end Original_Array_Type
;
2752 function Original_Record_Component
(Id
: E
) return E
is
2754 pragma Assert
(Ekind_In
(Id
, E_Void
, E_Component
, E_Discriminant
));
2756 end Original_Record_Component
;
2758 function Overlays_Constant
(Id
: E
) return B
is
2760 return Flag243
(Id
);
2761 end Overlays_Constant
;
2763 function Overridden_Operation
(Id
: E
) return E
is
2766 end Overridden_Operation
;
2768 function Package_Instantiation
(Id
: E
) return N
is
2770 pragma Assert
(Ekind_In
(Id
, E_Package
, E_Generic_Package
));
2772 end Package_Instantiation
;
2774 function Packed_Array_Impl_Type
(Id
: E
) return E
is
2776 pragma Assert
(Is_Array_Type
(Id
));
2778 end Packed_Array_Impl_Type
;
2780 function Parent_Subtype
(Id
: E
) return E
is
2782 pragma Assert
(Is_Record_Type
(Id
));
2783 return Node19
(Base_Type
(Id
));
2786 function Part_Of_Constituents
(Id
: E
) return L
is
2788 pragma Assert
(Ekind
(Id
) = E_Abstract_State
);
2790 end Part_Of_Constituents
;
2792 function Partial_View_Has_Unknown_Discr
(Id
: E
) return B
is
2794 pragma Assert
(Is_Type
(Id
));
2795 return Flag280
(Id
);
2796 end Partial_View_Has_Unknown_Discr
;
2798 function Pending_Access_Types
(Id
: E
) return L
is
2800 pragma Assert
(Is_Type
(Id
));
2801 return Elist15
(Id
);
2802 end Pending_Access_Types
;
2804 function Postconditions_Proc
(Id
: E
) return E
is
2806 pragma Assert
(Ekind_In
(Id
, E_Entry
,
2811 end Postconditions_Proc
;
2813 function PPC_Wrapper
(Id
: E
) return E
is
2815 pragma Assert
(Ekind_In
(Id
, E_Entry
, E_Entry_Family
));
2819 function Prival
(Id
: E
) return E
is
2821 pragma Assert
(Is_Protected_Component
(Id
));
2825 function Prival_Link
(Id
: E
) return E
is
2827 pragma Assert
(Ekind_In
(Id
, E_Constant
, E_Variable
));
2831 function Private_Dependents
(Id
: E
) return L
is
2833 pragma Assert
(Is_Incomplete_Or_Private_Type
(Id
));
2834 return Elist18
(Id
);
2835 end Private_Dependents
;
2837 function Private_View
(Id
: E
) return N
is
2839 pragma Assert
(Is_Private_Type
(Id
));
2843 function Protected_Body_Subprogram
(Id
: E
) return E
is
2845 pragma Assert
(Is_Subprogram
(Id
) or else Is_Entry
(Id
));
2847 end Protected_Body_Subprogram
;
2849 function Protected_Formal
(Id
: E
) return E
is
2851 pragma Assert
(Is_Formal
(Id
));
2853 end Protected_Formal
;
2855 function Protection_Object
(Id
: E
) return E
is
2858 (Ekind_In
(Id
, E_Entry
, E_Entry_Family
, E_Function
, E_Procedure
));
2860 end Protection_Object
;
2862 function Reachable
(Id
: E
) return B
is
2867 function Referenced
(Id
: E
) return B
is
2869 return Flag156
(Id
);
2872 function Referenced_As_LHS
(Id
: E
) return B
is
2875 end Referenced_As_LHS
;
2877 function Referenced_As_Out_Parameter
(Id
: E
) return B
is
2879 return Flag227
(Id
);
2880 end Referenced_As_Out_Parameter
;
2882 function Refinement_Constituents
(Id
: E
) return L
is
2884 pragma Assert
(Ekind
(Id
) = E_Abstract_State
);
2886 end Refinement_Constituents
;
2888 function Register_Exception_Call
(Id
: E
) return N
is
2890 pragma Assert
(Ekind
(Id
) = E_Exception
);
2892 end Register_Exception_Call
;
2894 function Related_Array_Object
(Id
: E
) return E
is
2896 pragma Assert
(Is_Array_Type
(Id
));
2898 end Related_Array_Object
;
2900 function Related_Expression
(Id
: E
) return N
is
2902 pragma Assert
(Ekind
(Id
) in Type_Kind
2903 or else Ekind_In
(Id
, E_Constant
, E_Variable
));
2905 end Related_Expression
;
2907 function Related_Instance
(Id
: E
) return E
is
2909 pragma Assert
(Ekind_In
(Id
, E_Package
, E_Package_Body
));
2911 end Related_Instance
;
2913 function Related_Type
(Id
: E
) return E
is
2915 pragma Assert
(Ekind_In
(Id
, E_Component
, E_Constant
, E_Variable
));
2919 function Relative_Deadline_Variable
(Id
: E
) return E
is
2921 pragma Assert
(Is_Task_Type
(Id
));
2922 return Node28
(Implementation_Base_Type
(Id
));
2923 end Relative_Deadline_Variable
;
2925 function Renamed_Entity
(Id
: E
) return N
is
2930 function Renamed_In_Spec
(Id
: E
) return B
is
2932 pragma Assert
(Ekind
(Id
) = E_Package
);
2933 return Flag231
(Id
);
2934 end Renamed_In_Spec
;
2936 function Renamed_Object
(Id
: E
) return N
is
2941 function Renaming_Map
(Id
: E
) return U
is
2946 function Requires_Overriding
(Id
: E
) return B
is
2948 pragma Assert
(Is_Overloadable
(Id
));
2949 return Flag213
(Id
);
2950 end Requires_Overriding
;
2952 function Return_Present
(Id
: E
) return B
is
2957 function Return_Applies_To
(Id
: E
) return N
is
2960 end Return_Applies_To
;
2962 function Returns_By_Ref
(Id
: E
) return B
is
2967 function Returns_Limited_View
(Id
: E
) return B
is
2969 pragma Assert
(Ekind
(Id
) = E_Function
);
2970 return Flag134
(Id
);
2971 end Returns_Limited_View
;
2973 function Reverse_Bit_Order
(Id
: E
) return B
is
2975 pragma Assert
(Is_Record_Type
(Id
));
2976 return Flag164
(Base_Type
(Id
));
2977 end Reverse_Bit_Order
;
2979 function Reverse_Storage_Order
(Id
: E
) return B
is
2981 pragma Assert
(Is_Record_Type
(Id
) or else Is_Array_Type
(Id
));
2982 return Flag93
(Base_Type
(Id
));
2983 end Reverse_Storage_Order
;
2985 function RM_Size
(Id
: E
) return U
is
2987 pragma Assert
(Is_Type
(Id
));
2991 function Scalar_Range
(Id
: E
) return N
is
2996 function Scale_Value
(Id
: E
) return U
is
3001 function Scope_Depth_Value
(Id
: E
) return U
is
3004 end Scope_Depth_Value
;
3006 function Sec_Stack_Needed_For_Return
(Id
: E
) return B
is
3008 return Flag167
(Id
);
3009 end Sec_Stack_Needed_For_Return
;
3011 function Shadow_Entities
(Id
: E
) return S
is
3013 pragma Assert
(Ekind_In
(Id
, E_Package
, E_Generic_Package
));
3015 end Shadow_Entities
;
3017 function Shared_Var_Procs_Instance
(Id
: E
) return E
is
3019 pragma Assert
(Ekind
(Id
) = E_Variable
);
3021 end Shared_Var_Procs_Instance
;
3023 function Size_Check_Code
(Id
: E
) return N
is
3025 pragma Assert
(Ekind_In
(Id
, E_Constant
, E_Variable
));
3027 end Size_Check_Code
;
3029 function Size_Depends_On_Discriminant
(Id
: E
) return B
is
3031 return Flag177
(Id
);
3032 end Size_Depends_On_Discriminant
;
3034 function Size_Known_At_Compile_Time
(Id
: E
) return B
is
3037 end Size_Known_At_Compile_Time
;
3039 function Small_Value
(Id
: E
) return R
is
3041 pragma Assert
(Is_Fixed_Point_Type
(Id
));
3042 return Ureal21
(Id
);
3045 function SPARK_Aux_Pragma
(Id
: E
) return N
is
3048 (Ekind_In
(Id
, E_Generic_Package
, -- package variants
3052 end SPARK_Aux_Pragma
;
3054 function SPARK_Aux_Pragma_Inherited
(Id
: E
) return B
is
3057 (Ekind_In
(Id
, E_Generic_Package
, -- package variants
3060 return Flag266
(Id
);
3061 end SPARK_Aux_Pragma_Inherited
;
3063 function SPARK_Pragma
(Id
: E
) return N
is
3066 (Ekind_In
(Id
, E_Function
, -- subprogram variants
3068 E_Generic_Procedure
,
3072 Ekind_In
(Id
, E_Generic_Package
, -- package variants
3078 function SPARK_Pragma_Inherited
(Id
: E
) return B
is
3081 (Ekind_In
(Id
, E_Function
, -- subprogram variants
3083 E_Generic_Procedure
,
3087 Ekind_In
(Id
, E_Generic_Package
, -- package variants
3090 return Flag265
(Id
);
3091 end SPARK_Pragma_Inherited
;
3093 function Spec_Entity
(Id
: E
) return E
is
3095 pragma Assert
(Ekind
(Id
) = E_Package_Body
or else Is_Formal
(Id
));
3099 function SSO_Set_High_By_Default
(Id
: E
) return B
is
3101 pragma Assert
(Is_Record_Type
(Id
) or else Is_Array_Type
(Id
));
3102 return Flag273
(Base_Type
(Id
));
3103 end SSO_Set_High_By_Default
;
3105 function SSO_Set_Low_By_Default
(Id
: E
) return B
is
3107 pragma Assert
(Is_Record_Type
(Id
) or else Is_Array_Type
(Id
));
3108 return Flag272
(Base_Type
(Id
));
3109 end SSO_Set_Low_By_Default
;
3111 function Static_Discrete_Predicate
(Id
: E
) return S
is
3113 pragma Assert
(Is_Discrete_Type
(Id
));
3115 end Static_Discrete_Predicate
;
3117 function Static_Real_Or_String_Predicate
(Id
: E
) return N
is
3119 pragma Assert
(Is_Real_Type
(Id
) or else Is_String_Type
(Id
));
3121 end Static_Real_Or_String_Predicate
;
3123 function Status_Flag_Or_Transient_Decl
(Id
: E
) return N
is
3125 pragma Assert
(Ekind_In
(Id
, E_Constant
, E_Variable
));
3127 end Status_Flag_Or_Transient_Decl
;
3129 function Storage_Size_Variable
(Id
: E
) return E
is
3131 pragma Assert
(Is_Access_Type
(Id
) or else Is_Task_Type
(Id
));
3132 return Node26
(Implementation_Base_Type
(Id
));
3133 end Storage_Size_Variable
;
3135 function Static_Elaboration_Desired
(Id
: E
) return B
is
3137 pragma Assert
(Ekind
(Id
) = E_Package
);
3139 end Static_Elaboration_Desired
;
3141 function Static_Initialization
(Id
: E
) return N
is
3144 (Ekind
(Id
) = E_Procedure
and then not Is_Dispatching_Operation
(Id
));
3146 end Static_Initialization
;
3148 function Stored_Constraint
(Id
: E
) return L
is
3151 (Is_Composite_Type
(Id
) and then not Is_Array_Type
(Id
));
3152 return Elist23
(Id
);
3153 end Stored_Constraint
;
3155 function Stores_Attribute_Old_Prefix
(Id
: E
) return B
is
3157 return Flag270
(Id
);
3158 end Stores_Attribute_Old_Prefix
;
3160 function Strict_Alignment
(Id
: E
) return B
is
3162 return Flag145
(Implementation_Base_Type
(Id
));
3163 end Strict_Alignment
;
3165 function String_Literal_Length
(Id
: E
) return U
is
3168 end String_Literal_Length
;
3170 function String_Literal_Low_Bound
(Id
: E
) return N
is
3173 end String_Literal_Low_Bound
;
3175 function Subprograms_For_Type
(Id
: E
) return E
is
3177 pragma Assert
(Is_Type
(Id
) or else Is_Subprogram
(Id
));
3179 end Subprograms_For_Type
;
3181 function Subps_Index
(Id
: E
) return U
is
3183 pragma Assert
(Is_Subprogram
(Id
));
3187 function Suppress_Elaboration_Warnings
(Id
: E
) return B
is
3189 return Flag148
(Id
);
3190 end Suppress_Elaboration_Warnings
;
3192 function Suppress_Initialization
(Id
: E
) return B
is
3194 pragma Assert
(Is_Type
(Id
) or else Ekind
(Id
) = E_Variable
);
3195 return Flag105
(Id
);
3196 end Suppress_Initialization
;
3198 function Suppress_Style_Checks
(Id
: E
) return B
is
3200 return Flag165
(Id
);
3201 end Suppress_Style_Checks
;
3203 function Suppress_Value_Tracking_On_Call
(Id
: E
) return B
is
3205 return Flag217
(Id
);
3206 end Suppress_Value_Tracking_On_Call
;
3208 function Task_Body_Procedure
(Id
: E
) return N
is
3210 pragma Assert
(Ekind
(Id
) in Task_Kind
);
3212 end Task_Body_Procedure
;
3214 function Thunk_Entity
(Id
: E
) return E
is
3216 pragma Assert
(Ekind_In
(Id
, E_Function
, E_Procedure
)
3217 and then Is_Thunk
(Id
));
3221 function Treat_As_Volatile
(Id
: E
) return B
is
3224 end Treat_As_Volatile
;
3226 function Underlying_Full_View
(Id
: E
) return E
is
3228 pragma Assert
(Ekind
(Id
) in Private_Kind
);
3230 end Underlying_Full_View
;
3232 function Underlying_Record_View
(Id
: E
) return E
is
3235 end Underlying_Record_View
;
3237 function Universal_Aliasing
(Id
: E
) return B
is
3239 pragma Assert
(Is_Type
(Id
));
3240 return Flag216
(Implementation_Base_Type
(Id
));
3241 end Universal_Aliasing
;
3243 function Unset_Reference
(Id
: E
) return N
is
3246 end Unset_Reference
;
3248 function Uplevel_Reference_Noted
(Id
: E
) return B
is
3250 return Flag283
(Id
);
3251 end Uplevel_Reference_Noted
;
3253 function Uplevel_References
(Id
: E
) return L
is
3255 pragma Assert
(Is_Subprogram
(Id
));
3256 return Elist24
(Id
);
3257 end Uplevel_References
;
3259 function Used_As_Generic_Actual
(Id
: E
) return B
is
3261 return Flag222
(Id
);
3262 end Used_As_Generic_Actual
;
3264 function Uses_Lock_Free
(Id
: E
) return B
is
3266 pragma Assert
(Is_Protected_Type
(Id
));
3267 return Flag188
(Id
);
3270 function Uses_Sec_Stack
(Id
: E
) return B
is
3275 function Warnings_Off
(Id
: E
) return B
is
3280 function Warnings_Off_Used
(Id
: E
) return B
is
3282 return Flag236
(Id
);
3283 end Warnings_Off_Used
;
3285 function Warnings_Off_Used_Unmodified
(Id
: E
) return B
is
3287 return Flag237
(Id
);
3288 end Warnings_Off_Used_Unmodified
;
3290 function Warnings_Off_Used_Unreferenced
(Id
: E
) return B
is
3292 return Flag238
(Id
);
3293 end Warnings_Off_Used_Unreferenced
;
3295 function Wrapped_Entity
(Id
: E
) return E
is
3297 pragma Assert
(Ekind_In
(Id
, E_Function
, E_Procedure
)
3298 and then Is_Primitive_Wrapper
(Id
));
3302 function Was_Hidden
(Id
: E
) return B
is
3304 return Flag196
(Id
);
3307 ------------------------------
3308 -- Classification Functions --
3309 ------------------------------
3311 function Is_Access_Type
(Id
: E
) return B
is
3313 return Ekind
(Id
) in Access_Kind
;
3316 function Is_Access_Protected_Subprogram_Type
(Id
: E
) return B
is
3318 return Ekind
(Id
) in Access_Protected_Kind
;
3319 end Is_Access_Protected_Subprogram_Type
;
3321 function Is_Access_Subprogram_Type
(Id
: E
) return B
is
3323 return Ekind
(Id
) in Access_Subprogram_Kind
;
3324 end Is_Access_Subprogram_Type
;
3326 function Is_Aggregate_Type
(Id
: E
) return B
is
3328 return Ekind
(Id
) in Aggregate_Kind
;
3329 end Is_Aggregate_Type
;
3331 function Is_Array_Type
(Id
: E
) return B
is
3333 return Ekind
(Id
) in Array_Kind
;
3336 function Is_Assignable
(Id
: E
) return B
is
3338 return Ekind
(Id
) in Assignable_Kind
;
3341 function Is_Class_Wide_Type
(Id
: E
) return B
is
3343 return Ekind
(Id
) in Class_Wide_Kind
;
3344 end Is_Class_Wide_Type
;
3346 function Is_Composite_Type
(Id
: E
) return B
is
3348 return Ekind
(Id
) in Composite_Kind
;
3349 end Is_Composite_Type
;
3351 function Is_Concurrent_Body
(Id
: E
) return B
is
3353 return Ekind
(Id
) in
3354 Concurrent_Body_Kind
;
3355 end Is_Concurrent_Body
;
3357 function Is_Concurrent_Record_Type
(Id
: E
) return B
is
3360 end Is_Concurrent_Record_Type
;
3362 function Is_Concurrent_Type
(Id
: E
) return B
is
3364 return Ekind
(Id
) in Concurrent_Kind
;
3365 end Is_Concurrent_Type
;
3367 function Is_Decimal_Fixed_Point_Type
(Id
: E
) return B
is
3369 return Ekind
(Id
) in
3370 Decimal_Fixed_Point_Kind
;
3371 end Is_Decimal_Fixed_Point_Type
;
3373 function Is_Digits_Type
(Id
: E
) return B
is
3375 return Ekind
(Id
) in Digits_Kind
;
3378 function Is_Discrete_Or_Fixed_Point_Type
(Id
: E
) return B
is
3380 return Ekind
(Id
) in Discrete_Or_Fixed_Point_Kind
;
3381 end Is_Discrete_Or_Fixed_Point_Type
;
3383 function Is_Discrete_Type
(Id
: E
) return B
is
3385 return Ekind
(Id
) in Discrete_Kind
;
3386 end Is_Discrete_Type
;
3388 function Is_Elementary_Type
(Id
: E
) return B
is
3390 return Ekind
(Id
) in Elementary_Kind
;
3391 end Is_Elementary_Type
;
3393 function Is_Entry
(Id
: E
) return B
is
3395 return Ekind
(Id
) in Entry_Kind
;
3398 function Is_Enumeration_Type
(Id
: E
) return B
is
3400 return Ekind
(Id
) in
3402 end Is_Enumeration_Type
;
3404 function Is_Fixed_Point_Type
(Id
: E
) return B
is
3406 return Ekind
(Id
) in
3408 end Is_Fixed_Point_Type
;
3410 function Is_Floating_Point_Type
(Id
: E
) return B
is
3412 return Ekind
(Id
) in Float_Kind
;
3413 end Is_Floating_Point_Type
;
3415 function Is_Formal
(Id
: E
) return B
is
3417 return Ekind
(Id
) in Formal_Kind
;
3420 function Is_Formal_Object
(Id
: E
) return B
is
3422 return Ekind
(Id
) in Formal_Object_Kind
;
3423 end Is_Formal_Object
;
3425 function Is_Generic_Subprogram
(Id
: E
) return B
is
3427 return Ekind
(Id
) in Generic_Subprogram_Kind
;
3428 end Is_Generic_Subprogram
;
3430 function Is_Generic_Unit
(Id
: E
) return B
is
3432 return Ekind
(Id
) in Generic_Unit_Kind
;
3433 end Is_Generic_Unit
;
3435 function Is_Incomplete_Or_Private_Type
(Id
: E
) return B
is
3437 return Ekind
(Id
) in
3438 Incomplete_Or_Private_Kind
;
3439 end Is_Incomplete_Or_Private_Type
;
3441 function Is_Incomplete_Type
(Id
: E
) return B
is
3443 return Ekind
(Id
) in
3445 end Is_Incomplete_Type
;
3447 function Is_Integer_Type
(Id
: E
) return B
is
3449 return Ekind
(Id
) in Integer_Kind
;
3450 end Is_Integer_Type
;
3452 function Is_Modular_Integer_Type
(Id
: E
) return B
is
3454 return Ekind
(Id
) in
3455 Modular_Integer_Kind
;
3456 end Is_Modular_Integer_Type
;
3458 function Is_Named_Number
(Id
: E
) return B
is
3460 return Ekind
(Id
) in Named_Kind
;
3461 end Is_Named_Number
;
3463 function Is_Numeric_Type
(Id
: E
) return B
is
3465 return Ekind
(Id
) in Numeric_Kind
;
3466 end Is_Numeric_Type
;
3468 function Is_Object
(Id
: E
) return B
is
3470 return Ekind
(Id
) in Object_Kind
;
3473 function Is_Ordinary_Fixed_Point_Type
(Id
: E
) return B
is
3475 return Ekind
(Id
) in
3476 Ordinary_Fixed_Point_Kind
;
3477 end Is_Ordinary_Fixed_Point_Type
;
3479 function Is_Overloadable
(Id
: E
) return B
is
3481 return Ekind
(Id
) in Overloadable_Kind
;
3482 end Is_Overloadable
;
3484 function Is_Private_Type
(Id
: E
) return B
is
3486 return Ekind
(Id
) in Private_Kind
;
3487 end Is_Private_Type
;
3489 function Is_Protected_Type
(Id
: E
) return B
is
3491 return Ekind
(Id
) in Protected_Kind
;
3492 end Is_Protected_Type
;
3494 function Is_Real_Type
(Id
: E
) return B
is
3496 return Ekind
(Id
) in Real_Kind
;
3499 function Is_Record_Type
(Id
: E
) return B
is
3501 return Ekind
(Id
) in Record_Kind
;
3504 function Is_Scalar_Type
(Id
: E
) return B
is
3506 return Ekind
(Id
) in Scalar_Kind
;
3509 function Is_Signed_Integer_Type
(Id
: E
) return B
is
3511 return Ekind
(Id
) in Signed_Integer_Kind
;
3512 end Is_Signed_Integer_Type
;
3514 function Is_Subprogram
(Id
: E
) return B
is
3516 return Ekind
(Id
) in Subprogram_Kind
;
3519 function Is_Subprogram_Or_Generic_Subprogram
(Id
: E
) return B
is
3521 return Ekind
(Id
) in Subprogram_Kind
3523 Ekind
(Id
) in Generic_Subprogram_Kind
;
3524 end Is_Subprogram_Or_Generic_Subprogram
;
3526 function Is_Task_Type
(Id
: E
) return B
is
3528 return Ekind
(Id
) in Task_Kind
;
3531 function Is_Type
(Id
: E
) return B
is
3533 return Ekind
(Id
) in Type_Kind
;
3536 ------------------------------
3537 -- Attribute Set Procedures --
3538 ------------------------------
3540 -- Note: in many of these set procedures an "obvious" assertion is missing.
3541 -- The reason for this is that in many cases, a field is set before the
3542 -- Ekind field is set, so that the field is set when Ekind = E_Void. It
3543 -- it is possible to add assertions that specifically include the E_Void
3544 -- possibility, but in some cases, we just omit the assertions.
3546 procedure Set_Abstract_States
(Id
: E
; V
: L
) is
3548 pragma Assert
(Ekind_In
(Id
, E_Generic_Package
, E_Package
));
3549 Set_Elist25
(Id
, V
);
3550 end Set_Abstract_States
;
3552 procedure Set_Accept_Address
(Id
: E
; V
: L
) is
3554 Set_Elist21
(Id
, V
);
3555 end Set_Accept_Address
;
3557 procedure Set_Access_Disp_Table
(Id
: E
; V
: L
) is
3559 pragma Assert
(Ekind
(Id
) = E_Record_Type
3560 and then Id
= Implementation_Base_Type
(Id
));
3561 pragma Assert
(V
= No_Elist
or else Is_Tagged_Type
(Id
));
3562 Set_Elist16
(Id
, V
);
3563 end Set_Access_Disp_Table
;
3565 procedure Set_Associated_Formal_Package
(Id
: E
; V
: E
) is
3568 end Set_Associated_Formal_Package
;
3570 procedure Set_Associated_Node_For_Itype
(Id
: E
; V
: E
) is
3573 end Set_Associated_Node_For_Itype
;
3575 procedure Set_Associated_Storage_Pool
(Id
: E
; V
: E
) is
3577 pragma Assert
(Is_Access_Type
(Id
) and then Is_Base_Type
(Id
));
3579 end Set_Associated_Storage_Pool
;
3581 procedure Set_Activation_Record_Component
(Id
: E
; V
: E
) is
3583 pragma Assert
(Ekind_In
(Id
, E_Constant
,
3590 end Set_Activation_Record_Component
;
3592 procedure Set_Actual_Subtype
(Id
: E
; V
: E
) is
3595 (Ekind_In
(Id
, E_Constant
, E_Variable
, E_Generic_In_Out_Parameter
)
3596 or else Is_Formal
(Id
));
3598 end Set_Actual_Subtype
;
3600 procedure Set_Address_Taken
(Id
: E
; V
: B
:= True) is
3602 Set_Flag104
(Id
, V
);
3603 end Set_Address_Taken
;
3605 procedure Set_Alias
(Id
: E
; V
: E
) is
3608 (Is_Overloadable
(Id
) or else Ekind
(Id
) = E_Subprogram_Type
);
3612 procedure Set_Alignment
(Id
: E
; V
: U
) is
3614 pragma Assert
(Is_Type
(Id
)
3615 or else Is_Formal
(Id
)
3616 or else Ekind_In
(Id
, E_Loop_Parameter
,
3623 procedure Set_Barrier_Function
(Id
: E
; V
: N
) is
3625 pragma Assert
(Is_Entry
(Id
));
3627 end Set_Barrier_Function
;
3629 procedure Set_Block_Node
(Id
: E
; V
: N
) is
3631 pragma Assert
(Ekind
(Id
) = E_Block
);
3635 procedure Set_Body_Entity
(Id
: E
; V
: E
) is
3637 pragma Assert
(Ekind_In
(Id
, E_Package
, E_Generic_Package
));
3639 end Set_Body_Entity
;
3641 procedure Set_Body_Needed_For_SAL
(Id
: E
; V
: B
:= True) is
3644 (Ekind
(Id
) = E_Package
3645 or else Is_Subprogram
(Id
)
3646 or else Is_Generic_Unit
(Id
));
3648 end Set_Body_Needed_For_SAL
;
3650 procedure Set_Body_References
(Id
: E
; V
: L
) is
3652 pragma Assert
(Ekind
(Id
) = E_Abstract_State
);
3653 Set_Elist16
(Id
, V
);
3654 end Set_Body_References
;
3656 procedure Set_BIP_Initialization_Call
(Id
: E
; V
: N
) is
3658 pragma Assert
(Ekind_In
(Id
, E_Constant
, E_Variable
));
3660 end Set_BIP_Initialization_Call
;
3662 procedure Set_C_Pass_By_Copy
(Id
: E
; V
: B
:= True) is
3664 pragma Assert
(Is_Record_Type
(Id
) and then Is_Base_Type
(Id
));
3665 Set_Flag125
(Id
, V
);
3666 end Set_C_Pass_By_Copy
;
3668 procedure Set_Can_Never_Be_Null
(Id
: E
; V
: B
:= True) is
3671 end Set_Can_Never_Be_Null
;
3673 procedure Set_Can_Use_Internal_Rep
(Id
: E
; V
: B
:= True) is
3676 (Is_Access_Subprogram_Type
(Id
) and then Is_Base_Type
(Id
));
3677 Set_Flag229
(Id
, V
);
3678 end Set_Can_Use_Internal_Rep
;
3680 procedure Set_Checks_May_Be_Suppressed
(Id
: E
; V
: B
:= True) is
3683 end Set_Checks_May_Be_Suppressed
;
3685 procedure Set_Class_Wide_Type
(Id
: E
; V
: E
) is
3687 pragma Assert
(Is_Type
(Id
));
3689 end Set_Class_Wide_Type
;
3691 procedure Set_Cloned_Subtype
(Id
: E
; V
: E
) is
3693 pragma Assert
(Ekind_In
(Id
, E_Record_Subtype
, E_Class_Wide_Subtype
));
3695 end Set_Cloned_Subtype
;
3697 procedure Set_Component_Bit_Offset
(Id
: E
; V
: U
) is
3699 pragma Assert
(Ekind_In
(Id
, E_Component
, E_Discriminant
));
3701 end Set_Component_Bit_Offset
;
3703 procedure Set_Component_Clause
(Id
: E
; V
: N
) is
3705 pragma Assert
(Ekind_In
(Id
, E_Component
, E_Discriminant
));
3707 end Set_Component_Clause
;
3709 procedure Set_Component_Size
(Id
: E
; V
: U
) is
3711 pragma Assert
(Is_Array_Type
(Id
) and then Is_Base_Type
(Id
));
3713 end Set_Component_Size
;
3715 procedure Set_Component_Type
(Id
: E
; V
: E
) is
3717 pragma Assert
(Is_Array_Type
(Id
) and then Is_Base_Type
(Id
));
3719 end Set_Component_Type
;
3721 procedure Set_Contains_Ignored_Ghost_Code
(Id
: E
; V
: B
:= True) is
3724 (Ekind_In
(Id
, E_Block
,
3728 E_Generic_Procedure
,
3732 E_Subprogram_Body
));
3733 Set_Flag279
(Id
, V
);
3734 end Set_Contains_Ignored_Ghost_Code
;
3736 procedure Set_Contract
(Id
: E
; V
: N
) is
3739 (Ekind_In
(Id
, E_Entry
,
3747 or else Is_Subprogram_Or_Generic_Subprogram
(Id
));
3751 procedure Set_Corresponding_Concurrent_Type
(Id
: E
; V
: E
) is
3754 (Ekind
(Id
) = E_Record_Type
and then Is_Concurrent_Type
(V
));
3756 end Set_Corresponding_Concurrent_Type
;
3758 procedure Set_Corresponding_Discriminant
(Id
: E
; V
: E
) is
3760 pragma Assert
(Ekind
(Id
) = E_Discriminant
);
3762 end Set_Corresponding_Discriminant
;
3764 procedure Set_Corresponding_Equality
(Id
: E
; V
: E
) is
3767 (Ekind
(Id
) = E_Function
3768 and then not Comes_From_Source
(Id
)
3769 and then Chars
(Id
) = Name_Op_Ne
);
3771 end Set_Corresponding_Equality
;
3773 procedure Set_Corresponding_Protected_Entry
(Id
: E
; V
: E
) is
3775 pragma Assert
(Ekind_In
(Id
, E_Void
, E_Subprogram_Body
));
3777 end Set_Corresponding_Protected_Entry
;
3779 procedure Set_Corresponding_Record_Type
(Id
: E
; V
: E
) is
3781 pragma Assert
(Is_Concurrent_Type
(Id
));
3783 end Set_Corresponding_Record_Type
;
3785 procedure Set_Corresponding_Remote_Type
(Id
: E
; V
: E
) is
3788 end Set_Corresponding_Remote_Type
;
3790 procedure Set_Current_Use_Clause
(Id
: E
; V
: E
) is
3792 pragma Assert
(Ekind
(Id
) = E_Package
or else Is_Type
(Id
));
3794 end Set_Current_Use_Clause
;
3796 procedure Set_Current_Value
(Id
: E
; V
: N
) is
3798 pragma Assert
(Ekind
(Id
) in Object_Kind
or else Ekind
(Id
) = E_Void
);
3800 end Set_Current_Value
;
3802 procedure Set_CR_Discriminant
(Id
: E
; V
: E
) is
3805 end Set_CR_Discriminant
;
3807 procedure Set_Debug_Info_Off
(Id
: E
; V
: B
:= True) is
3809 Set_Flag166
(Id
, V
);
3810 end Set_Debug_Info_Off
;
3812 procedure Set_Debug_Renaming_Link
(Id
: E
; V
: E
) is
3815 end Set_Debug_Renaming_Link
;
3817 procedure Set_Default_Aspect_Component_Value
(Id
: E
; V
: E
) is
3819 pragma Assert
(Is_Array_Type
(Id
) and then Is_Base_Type
(Id
));
3821 end Set_Default_Aspect_Component_Value
;
3823 procedure Set_Default_Aspect_Value
(Id
: E
; V
: E
) is
3825 pragma Assert
(Is_Scalar_Type
(Id
) and then Is_Base_Type
(Id
));
3827 end Set_Default_Aspect_Value
;
3829 procedure Set_Default_Expr_Function
(Id
: E
; V
: E
) is
3831 pragma Assert
(Is_Formal
(Id
));
3833 end Set_Default_Expr_Function
;
3835 procedure Set_Default_Expressions_Processed
(Id
: E
; V
: B
:= True) is
3837 Set_Flag108
(Id
, V
);
3838 end Set_Default_Expressions_Processed
;
3840 procedure Set_Default_Value
(Id
: E
; V
: N
) is
3842 pragma Assert
(Is_Formal
(Id
));
3844 end Set_Default_Value
;
3846 procedure Set_Delay_Cleanups
(Id
: E
; V
: B
:= True) is
3850 or else Is_Task_Type
(Id
)
3851 or else Ekind
(Id
) = E_Block
);
3852 Set_Flag114
(Id
, V
);
3853 end Set_Delay_Cleanups
;
3855 procedure Set_Delay_Subprogram_Descriptors
(Id
: E
; V
: B
:= True) is
3858 (Is_Subprogram
(Id
) or else Ekind_In
(Id
, E_Package
, E_Package_Body
));
3861 end Set_Delay_Subprogram_Descriptors
;
3863 procedure Set_Delta_Value
(Id
: E
; V
: R
) is
3865 pragma Assert
(Is_Fixed_Point_Type
(Id
));
3866 Set_Ureal18
(Id
, V
);
3867 end Set_Delta_Value
;
3869 procedure Set_Dependent_Instances
(Id
: E
; V
: L
) is
3871 pragma Assert
(Is_Generic_Instance
(Id
));
3873 end Set_Dependent_Instances
;
3875 procedure Set_Depends_On_Private
(Id
: E
; V
: B
:= True) is
3877 pragma Assert
(Nkind
(Id
) in N_Entity
);
3879 end Set_Depends_On_Private
;
3881 procedure Set_Derived_Type_Link
(Id
: E
; V
: E
) is
3883 pragma Assert
(Is_Type
(Id
) and then Is_Base_Type
(Id
));
3885 end Set_Derived_Type_Link
;
3887 procedure Set_Digits_Value
(Id
: E
; V
: U
) is
3890 (Is_Floating_Point_Type
(Id
)
3891 or else Is_Decimal_Fixed_Point_Type
(Id
));
3893 end Set_Digits_Value
;
3895 procedure Set_Directly_Designated_Type
(Id
: E
; V
: E
) is
3898 end Set_Directly_Designated_Type
;
3900 procedure Set_Discard_Names
(Id
: E
; V
: B
:= True) is
3903 end Set_Discard_Names
;
3905 procedure Set_Discriminal
(Id
: E
; V
: E
) is
3907 pragma Assert
(Ekind
(Id
) = E_Discriminant
);
3909 end Set_Discriminal
;
3911 procedure Set_Discriminal_Link
(Id
: E
; V
: E
) is
3914 end Set_Discriminal_Link
;
3916 procedure Set_Discriminant_Checking_Func
(Id
: E
; V
: E
) is
3918 pragma Assert
(Ekind
(Id
) = E_Component
);
3920 end Set_Discriminant_Checking_Func
;
3922 procedure Set_Discriminant_Constraint
(Id
: E
; V
: L
) is
3924 pragma Assert
(Nkind
(Id
) in N_Entity
);
3925 Set_Elist21
(Id
, V
);
3926 end Set_Discriminant_Constraint
;
3928 procedure Set_Discriminant_Default_Value
(Id
: E
; V
: N
) is
3931 end Set_Discriminant_Default_Value
;
3933 procedure Set_Discriminant_Number
(Id
: E
; V
: U
) is
3936 end Set_Discriminant_Number
;
3938 procedure Set_Dispatch_Table_Wrappers
(Id
: E
; V
: L
) is
3940 pragma Assert
(Ekind
(Id
) = E_Record_Type
3941 and then Id
= Implementation_Base_Type
(Id
));
3942 pragma Assert
(V
= No_Elist
or else Is_Tagged_Type
(Id
));
3943 Set_Elist26
(Id
, V
);
3944 end Set_Dispatch_Table_Wrappers
;
3946 procedure Set_DT_Entry_Count
(Id
: E
; V
: U
) is
3948 pragma Assert
(Ekind
(Id
) = E_Component
);
3950 end Set_DT_Entry_Count
;
3952 procedure Set_DT_Offset_To_Top_Func
(Id
: E
; V
: E
) is
3954 pragma Assert
(Ekind
(Id
) = E_Component
and then Is_Tag
(Id
));
3956 end Set_DT_Offset_To_Top_Func
;
3958 procedure Set_DT_Position
(Id
: E
; V
: U
) is
3960 pragma Assert
(Ekind_In
(Id
, E_Function
, E_Procedure
));
3962 end Set_DT_Position
;
3964 procedure Set_DTC_Entity
(Id
: E
; V
: E
) is
3966 pragma Assert
(Ekind_In
(Id
, E_Function
, E_Procedure
));
3970 procedure Set_Elaborate_Body_Desirable
(Id
: E
; V
: B
:= True) is
3972 pragma Assert
(Ekind
(Id
) = E_Package
);
3973 Set_Flag210
(Id
, V
);
3974 end Set_Elaborate_Body_Desirable
;
3976 procedure Set_Elaboration_Entity
(Id
: E
; V
: E
) is
3981 Ekind
(Id
) = E_Package
3983 Is_Generic_Unit
(Id
));
3985 end Set_Elaboration_Entity
;
3987 procedure Set_Elaboration_Entity_Required
(Id
: E
; V
: B
:= True) is
3992 Ekind
(Id
) = E_Package
3994 Is_Generic_Unit
(Id
));
3995 Set_Flag174
(Id
, V
);
3996 end Set_Elaboration_Entity_Required
;
3998 procedure Set_Encapsulating_State
(Id
: E
; V
: E
) is
4000 pragma Assert
(Ekind_In
(Id
, E_Abstract_State
, E_Variable
));
4002 end Set_Encapsulating_State
;
4004 procedure Set_Enclosing_Scope
(Id
: E
; V
: E
) is
4007 end Set_Enclosing_Scope
;
4009 procedure Set_Entry_Accepted
(Id
: E
; V
: B
:= True) is
4011 pragma Assert
(Is_Entry
(Id
));
4012 Set_Flag152
(Id
, V
);
4013 end Set_Entry_Accepted
;
4015 procedure Set_Entry_Bodies_Array
(Id
: E
; V
: E
) is
4018 end Set_Entry_Bodies_Array
;
4020 procedure Set_Entry_Cancel_Parameter
(Id
: E
; V
: E
) is
4023 end Set_Entry_Cancel_Parameter
;
4025 procedure Set_Entry_Component
(Id
: E
; V
: E
) is
4028 end Set_Entry_Component
;
4030 procedure Set_Entry_Formal
(Id
: E
; V
: E
) is
4033 end Set_Entry_Formal
;
4035 procedure Set_Entry_Index_Constant
(Id
: E
; V
: E
) is
4037 pragma Assert
(Ekind
(Id
) = E_Entry_Index_Parameter
);
4039 end Set_Entry_Index_Constant
;
4041 procedure Set_Entry_Parameters_Type
(Id
: E
; V
: E
) is
4044 end Set_Entry_Parameters_Type
;
4046 procedure Set_Enum_Pos_To_Rep
(Id
: E
; V
: E
) is
4048 pragma Assert
(Ekind
(Id
) = E_Enumeration_Type
);
4050 end Set_Enum_Pos_To_Rep
;
4052 procedure Set_Enumeration_Pos
(Id
: E
; V
: U
) is
4054 pragma Assert
(Ekind
(Id
) = E_Enumeration_Literal
);
4056 end Set_Enumeration_Pos
;
4058 procedure Set_Enumeration_Rep
(Id
: E
; V
: U
) is
4060 pragma Assert
(Ekind
(Id
) = E_Enumeration_Literal
);
4062 end Set_Enumeration_Rep
;
4064 procedure Set_Enumeration_Rep_Expr
(Id
: E
; V
: N
) is
4066 pragma Assert
(Ekind
(Id
) = E_Enumeration_Literal
);
4068 end Set_Enumeration_Rep_Expr
;
4070 procedure Set_Equivalent_Type
(Id
: E
; V
: E
) is
4073 (Ekind_In
(Id
, E_Class_Wide_Type
,
4074 E_Class_Wide_Subtype
,
4075 E_Access_Protected_Subprogram_Type
,
4076 E_Anonymous_Access_Protected_Subprogram_Type
,
4077 E_Access_Subprogram_Type
,
4080 end Set_Equivalent_Type
;
4082 procedure Set_Esize
(Id
: E
; V
: U
) is
4087 procedure Set_Extra_Accessibility
(Id
: E
; V
: E
) is
4090 (Is_Formal
(Id
) or else Ekind_In
(Id
, E_Variable
, E_Constant
));
4092 end Set_Extra_Accessibility
;
4094 procedure Set_Extra_Accessibility_Of_Result
(Id
: E
; V
: E
) is
4096 pragma Assert
(Ekind_In
(Id
, E_Function
, E_Operator
, E_Subprogram_Type
));
4098 end Set_Extra_Accessibility_Of_Result
;
4100 procedure Set_Extra_Constrained
(Id
: E
; V
: E
) is
4102 pragma Assert
(Is_Formal
(Id
) or else Ekind
(Id
) = E_Variable
);
4104 end Set_Extra_Constrained
;
4106 procedure Set_Extra_Formal
(Id
: E
; V
: E
) is
4109 end Set_Extra_Formal
;
4111 procedure Set_Extra_Formals
(Id
: E
; V
: E
) is
4114 (Is_Overloadable
(Id
)
4115 or else Ekind_In
(Id
, E_Entry_Family
,
4117 E_Subprogram_Type
));
4119 end Set_Extra_Formals
;
4121 procedure Set_Finalization_Master
(Id
: E
; V
: E
) is
4123 pragma Assert
(Is_Access_Type
(Id
) and then Is_Base_Type
(Id
));
4125 end Set_Finalization_Master
;
4127 procedure Set_Finalize_Storage_Only
(Id
: E
; V
: B
:= True) is
4129 pragma Assert
(Is_Type
(Id
) and then Is_Base_Type
(Id
));
4130 Set_Flag158
(Id
, V
);
4131 end Set_Finalize_Storage_Only
;
4133 procedure Set_Finalizer
(Id
: E
; V
: E
) is
4135 pragma Assert
(Ekind_In
(Id
, E_Package
, E_Package_Body
));
4139 procedure Set_First_Entity
(Id
: E
; V
: E
) is
4142 end Set_First_Entity
;
4144 procedure Set_First_Exit_Statement
(Id
: E
; V
: N
) is
4146 pragma Assert
(Ekind
(Id
) = E_Loop
);
4148 end Set_First_Exit_Statement
;
4150 procedure Set_First_Index
(Id
: E
; V
: N
) is
4152 pragma Assert
(Is_Array_Type
(Id
) or else Is_String_Type
(Id
));
4154 end Set_First_Index
;
4156 procedure Set_First_Literal
(Id
: E
; V
: E
) is
4158 pragma Assert
(Is_Enumeration_Type
(Id
));
4160 end Set_First_Literal
;
4162 procedure Set_First_Private_Entity
(Id
: E
; V
: E
) is
4164 pragma Assert
(Ekind_In
(Id
, E_Package
, E_Generic_Package
)
4165 or else Ekind
(Id
) in Concurrent_Kind
);
4167 end Set_First_Private_Entity
;
4169 procedure Set_First_Rep_Item
(Id
: E
; V
: N
) is
4172 end Set_First_Rep_Item
;
4174 procedure Set_Float_Rep
(Id
: E
; V
: F
) is
4175 pragma Assert
(Ekind
(Id
) = E_Floating_Point_Type
);
4177 Set_Uint10
(Id
, UI_From_Int
(F
'Pos (V
)));
4180 procedure Set_Freeze_Node
(Id
: E
; V
: N
) is
4183 end Set_Freeze_Node
;
4185 procedure Set_From_Limited_With
(Id
: E
; V
: B
:= True) is
4188 (Is_Type
(Id
) or else Ekind_In
(Id
, E_Abstract_State
, E_Package
));
4189 Set_Flag159
(Id
, V
);
4190 end Set_From_Limited_With
;
4192 procedure Set_Full_View
(Id
: E
; V
: E
) is
4194 pragma Assert
(Is_Type
(Id
) or else Ekind
(Id
) = E_Constant
);
4198 procedure Set_Generic_Homonym
(Id
: E
; V
: E
) is
4201 end Set_Generic_Homonym
;
4203 procedure Set_Generic_Renamings
(Id
: E
; V
: L
) is
4205 Set_Elist23
(Id
, V
);
4206 end Set_Generic_Renamings
;
4208 procedure Set_Handler_Records
(Id
: E
; V
: S
) is
4211 end Set_Handler_Records
;
4213 procedure Set_Has_Aliased_Components
(Id
: E
; V
: B
:= True) is
4215 pragma Assert
(Id
= Base_Type
(Id
));
4216 Set_Flag135
(Id
, V
);
4217 end Set_Has_Aliased_Components
;
4219 procedure Set_Has_Alignment_Clause
(Id
: E
; V
: B
:= True) is
4222 end Set_Has_Alignment_Clause
;
4224 procedure Set_Has_All_Calls_Remote
(Id
: E
; V
: B
:= True) is
4227 end Set_Has_All_Calls_Remote
;
4229 procedure Set_Has_Anonymous_Master
(Id
: E
; V
: B
:= True) is
4232 (Ekind_In
(Id
, E_Function
, E_Package
, E_Package_Body
, E_Procedure
));
4233 Set_Flag253
(Id
, V
);
4234 end Set_Has_Anonymous_Master
;
4236 procedure Set_Has_Atomic_Components
(Id
: E
; V
: B
:= True) is
4238 pragma Assert
(not Is_Type
(Id
) or else Is_Base_Type
(Id
));
4240 end Set_Has_Atomic_Components
;
4242 procedure Set_Has_Biased_Representation
(Id
: E
; V
: B
:= True) is
4245 ((V
= False) or else (Is_Discrete_Type
(Id
) or else Is_Object
(Id
)));
4246 Set_Flag139
(Id
, V
);
4247 end Set_Has_Biased_Representation
;
4249 procedure Set_Has_Completion
(Id
: E
; V
: B
:= True) is
4252 end Set_Has_Completion
;
4254 procedure Set_Has_Completion_In_Body
(Id
: E
; V
: B
:= True) is
4256 pragma Assert
(Is_Type
(Id
));
4258 end Set_Has_Completion_In_Body
;
4260 procedure Set_Has_Complex_Representation
(Id
: E
; V
: B
:= True) is
4262 pragma Assert
(Ekind
(Id
) = E_Record_Type
);
4263 Set_Flag140
(Id
, V
);
4264 end Set_Has_Complex_Representation
;
4266 procedure Set_Has_Component_Size_Clause
(Id
: E
; V
: B
:= True) is
4268 pragma Assert
(Ekind
(Id
) = E_Array_Type
);
4270 end Set_Has_Component_Size_Clause
;
4272 procedure Set_Has_Constrained_Partial_View
(Id
: E
; V
: B
:= True) is
4274 pragma Assert
(Is_Type
(Id
));
4275 Set_Flag187
(Id
, V
);
4276 end Set_Has_Constrained_Partial_View
;
4278 procedure Set_Has_Contiguous_Rep
(Id
: E
; V
: B
:= True) is
4280 Set_Flag181
(Id
, V
);
4281 end Set_Has_Contiguous_Rep
;
4283 procedure Set_Has_Controlled_Component
(Id
: E
; V
: B
:= True) is
4285 pragma Assert
(Id
= Base_Type
(Id
));
4287 end Set_Has_Controlled_Component
;
4289 procedure Set_Has_Controlling_Result
(Id
: E
; V
: B
:= True) is
4292 end Set_Has_Controlling_Result
;
4294 procedure Set_Has_Convention_Pragma
(Id
: E
; V
: B
:= True) is
4296 Set_Flag119
(Id
, V
);
4297 end Set_Has_Convention_Pragma
;
4299 procedure Set_Has_Default_Aspect
(Id
: E
; V
: B
:= True) is
4302 ((Is_Scalar_Type
(Id
) or else Is_Array_Type
(Id
))
4303 and then Is_Base_Type
(Id
));
4305 end Set_Has_Default_Aspect
;
4307 procedure Set_Has_Default_Init_Cond
(Id
: E
; V
: B
:= True) is
4309 pragma Assert
(Is_Type
(Id
));
4311 end Set_Has_Default_Init_Cond
;
4313 procedure Set_Has_Delayed_Aspects
(Id
: E
; V
: B
:= True) is
4315 pragma Assert
(Nkind
(Id
) in N_Entity
);
4316 Set_Flag200
(Id
, V
);
4317 end Set_Has_Delayed_Aspects
;
4319 procedure Set_Has_Delayed_Freeze
(Id
: E
; V
: B
:= True) is
4321 pragma Assert
(Nkind
(Id
) in N_Entity
);
4323 end Set_Has_Delayed_Freeze
;
4325 procedure Set_Has_Delayed_Rep_Aspects
(Id
: E
; V
: B
:= True) is
4327 pragma Assert
(Nkind
(Id
) in N_Entity
);
4328 Set_Flag261
(Id
, V
);
4329 end Set_Has_Delayed_Rep_Aspects
;
4331 procedure Set_Has_Discriminants
(Id
: E
; V
: B
:= True) is
4333 pragma Assert
(Nkind
(Id
) in N_Entity
);
4335 end Set_Has_Discriminants
;
4337 procedure Set_Has_Dispatch_Table
(Id
: E
; V
: B
:= True) is
4339 pragma Assert
(Ekind
(Id
) = E_Record_Type
4340 and then Is_Tagged_Type
(Id
));
4341 Set_Flag220
(Id
, V
);
4342 end Set_Has_Dispatch_Table
;
4344 procedure Set_Has_Dynamic_Predicate_Aspect
(Id
: E
; V
: B
:= True) is
4346 pragma Assert
(Is_Type
(Id
));
4347 Set_Flag258
(Id
, V
);
4348 end Set_Has_Dynamic_Predicate_Aspect
;
4350 procedure Set_Has_Enumeration_Rep_Clause
(Id
: E
; V
: B
:= True) is
4352 pragma Assert
(Is_Enumeration_Type
(Id
));
4354 end Set_Has_Enumeration_Rep_Clause
;
4356 procedure Set_Has_Exit
(Id
: E
; V
: B
:= True) is
4361 procedure Set_Has_Expanded_Contract
(Id
: E
; V
: B
:= True) is
4363 pragma Assert
(Ekind_In
(Id
, E_Entry
,
4367 Set_Flag240
(Id
, V
);
4368 end Set_Has_Expanded_Contract
;
4370 procedure Set_Has_Forward_Instantiation
(Id
: E
; V
: B
:= True) is
4372 Set_Flag175
(Id
, V
);
4373 end Set_Has_Forward_Instantiation
;
4375 procedure Set_Has_Fully_Qualified_Name
(Id
: E
; V
: B
:= True) is
4377 Set_Flag173
(Id
, V
);
4378 end Set_Has_Fully_Qualified_Name
;
4380 procedure Set_Has_Gigi_Rep_Item
(Id
: E
; V
: B
:= True) is
4383 end Set_Has_Gigi_Rep_Item
;
4385 procedure Set_Has_Homonym
(Id
: E
; V
: B
:= True) is
4388 end Set_Has_Homonym
;
4390 procedure Set_Has_Implicit_Dereference
(Id
: E
; V
: B
:= True) is
4392 Set_Flag251
(Id
, V
);
4393 end Set_Has_Implicit_Dereference
;
4395 procedure Set_Has_Independent_Components
(Id
: E
; V
: B
:= True) is
4397 pragma Assert
(not Is_Type
(Id
) or else Is_Base_Type
(Id
));
4399 end Set_Has_Independent_Components
;
4401 procedure Set_Has_Inheritable_Invariants
(Id
: E
; V
: B
:= True) is
4403 pragma Assert
(Is_Type
(Id
));
4404 Set_Flag248
(Id
, V
);
4405 end Set_Has_Inheritable_Invariants
;
4407 procedure Set_Has_Inherited_Default_Init_Cond
(Id
: E
; V
: B
:= True) is
4409 pragma Assert
(Is_Type
(Id
));
4410 Set_Flag133
(Id
, V
);
4411 end Set_Has_Inherited_Default_Init_Cond
;
4413 procedure Set_Has_Initial_Value
(Id
: E
; V
: B
:= True) is
4415 pragma Assert
(Ekind_In
(Id
, E_Variable
, E_Out_Parameter
));
4416 Set_Flag219
(Id
, V
);
4417 end Set_Has_Initial_Value
;
4419 procedure Set_Has_Invariants
(Id
: E
; V
: B
:= True) is
4421 pragma Assert
(Is_Type
(Id
));
4422 Set_Flag232
(Id
, V
);
4423 end Set_Has_Invariants
;
4425 procedure Set_Has_Loop_Entry_Attributes
(Id
: E
; V
: B
:= True) is
4427 pragma Assert
(Ekind
(Id
) = E_Loop
);
4428 Set_Flag260
(Id
, V
);
4429 end Set_Has_Loop_Entry_Attributes
;
4431 procedure Set_Has_Machine_Radix_Clause
(Id
: E
; V
: B
:= True) is
4433 pragma Assert
(Is_Decimal_Fixed_Point_Type
(Id
));
4435 end Set_Has_Machine_Radix_Clause
;
4437 procedure Set_Has_Master_Entity
(Id
: E
; V
: B
:= True) is
4440 end Set_Has_Master_Entity
;
4442 procedure Set_Has_Missing_Return
(Id
: E
; V
: B
:= True) is
4444 pragma Assert
(Ekind_In
(Id
, E_Function
, E_Generic_Function
));
4445 Set_Flag142
(Id
, V
);
4446 end Set_Has_Missing_Return
;
4448 procedure Set_Has_Nested_Block_With_Handler
(Id
: E
; V
: B
:= True) is
4450 Set_Flag101
(Id
, V
);
4451 end Set_Has_Nested_Block_With_Handler
;
4453 procedure Set_Has_Nested_Subprogram
(Id
: E
; V
: B
:= True) is
4455 pragma Assert
(Is_Subprogram
(Id
));
4456 Set_Flag282
(Id
, V
);
4457 end Set_Has_Nested_Subprogram
;
4459 procedure Set_Has_Uplevel_Reference
(Id
: E
; V
: B
:= True) is
4461 Set_Flag215
(Id
, V
);
4462 end Set_Has_Uplevel_Reference
;
4464 procedure Set_Has_Non_Standard_Rep
(Id
: E
; V
: B
:= True) is
4466 pragma Assert
(Id
= Base_Type
(Id
));
4468 end Set_Has_Non_Standard_Rep
;
4470 procedure Set_Has_Object_Size_Clause
(Id
: E
; V
: B
:= True) is
4472 pragma Assert
(Is_Type
(Id
));
4473 Set_Flag172
(Id
, V
);
4474 end Set_Has_Object_Size_Clause
;
4476 procedure Set_Has_Out_Or_In_Out_Parameter
(Id
: E
; V
: B
:= True) is
4478 pragma Assert
(Ekind_In
(Id
, E_Function
, E_Generic_Function
));
4479 Set_Flag110
(Id
, V
);
4480 end Set_Has_Out_Or_In_Out_Parameter
;
4482 procedure Set_Has_Per_Object_Constraint
(Id
: E
; V
: B
:= True) is
4484 Set_Flag154
(Id
, V
);
4485 end Set_Has_Per_Object_Constraint
;
4487 procedure Set_Has_Pragma_Controlled
(Id
: E
; V
: B
:= True) is
4489 pragma Assert
(Is_Access_Type
(Id
));
4490 Set_Flag27
(Base_Type
(Id
), V
);
4491 end Set_Has_Pragma_Controlled
;
4493 procedure Set_Has_Pragma_Elaborate_Body
(Id
: E
; V
: B
:= True) is
4495 Set_Flag150
(Id
, V
);
4496 end Set_Has_Pragma_Elaborate_Body
;
4498 procedure Set_Has_Pragma_Inline
(Id
: E
; V
: B
:= True) is
4500 Set_Flag157
(Id
, V
);
4501 end Set_Has_Pragma_Inline
;
4503 procedure Set_Has_Pragma_Inline_Always
(Id
: E
; V
: B
:= True) is
4505 Set_Flag230
(Id
, V
);
4506 end Set_Has_Pragma_Inline_Always
;
4508 procedure Set_Has_Pragma_No_Inline
(Id
: E
; V
: B
:= True) is
4510 Set_Flag201
(Id
, V
);
4511 end Set_Has_Pragma_No_Inline
;
4513 procedure Set_Has_Pragma_Ordered
(Id
: E
; V
: B
:= True) is
4515 pragma Assert
(Is_Enumeration_Type
(Id
));
4516 pragma Assert
(Id
= Base_Type
(Id
));
4517 Set_Flag198
(Id
, V
);
4518 end Set_Has_Pragma_Ordered
;
4520 procedure Set_Has_Pragma_Pack
(Id
: E
; V
: B
:= True) is
4522 pragma Assert
(Is_Array_Type
(Id
) or else Is_Record_Type
(Id
));
4523 pragma Assert
(Id
= Base_Type
(Id
));
4524 Set_Flag121
(Id
, V
);
4525 end Set_Has_Pragma_Pack
;
4527 procedure Set_Has_Pragma_Preelab_Init
(Id
: E
; V
: B
:= True) is
4529 Set_Flag221
(Id
, V
);
4530 end Set_Has_Pragma_Preelab_Init
;
4532 procedure Set_Has_Pragma_Pure
(Id
: E
; V
: B
:= True) is
4534 Set_Flag203
(Id
, V
);
4535 end Set_Has_Pragma_Pure
;
4537 procedure Set_Has_Pragma_Pure_Function
(Id
: E
; V
: B
:= True) is
4539 Set_Flag179
(Id
, V
);
4540 end Set_Has_Pragma_Pure_Function
;
4542 procedure Set_Has_Pragma_Thread_Local_Storage
(Id
: E
; V
: B
:= True) is
4544 Set_Flag169
(Id
, V
);
4545 end Set_Has_Pragma_Thread_Local_Storage
;
4547 procedure Set_Has_Pragma_Unmodified
(Id
: E
; V
: B
:= True) is
4549 Set_Flag233
(Id
, V
);
4550 end Set_Has_Pragma_Unmodified
;
4552 procedure Set_Has_Pragma_Unreferenced
(Id
: E
; V
: B
:= True) is
4554 Set_Flag180
(Id
, V
);
4555 end Set_Has_Pragma_Unreferenced
;
4557 procedure Set_Has_Pragma_Unreferenced_Objects
(Id
: E
; V
: B
:= True) is
4559 pragma Assert
(Is_Type
(Id
));
4560 Set_Flag212
(Id
, V
);
4561 end Set_Has_Pragma_Unreferenced_Objects
;
4563 procedure Set_Has_Predicates
(Id
: E
; V
: B
:= True) is
4565 pragma Assert
(Is_Type
(Id
) or else Ekind
(Id
) = E_Void
);
4566 Set_Flag250
(Id
, V
);
4567 end Set_Has_Predicates
;
4569 procedure Set_Has_Primitive_Operations
(Id
: E
; V
: B
:= True) is
4571 pragma Assert
(Id
= Base_Type
(Id
));
4572 Set_Flag120
(Id
, V
);
4573 end Set_Has_Primitive_Operations
;
4575 procedure Set_Has_Private_Ancestor
(Id
: E
; V
: B
:= True) is
4577 pragma Assert
(Is_Type
(Id
));
4578 Set_Flag151
(Id
, V
);
4579 end Set_Has_Private_Ancestor
;
4581 procedure Set_Has_Private_Declaration
(Id
: E
; V
: B
:= True) is
4583 Set_Flag155
(Id
, V
);
4584 end Set_Has_Private_Declaration
;
4586 procedure Set_Has_Protected
(Id
: E
; V
: B
:= True) is
4588 Set_Flag271
(Id
, V
);
4589 end Set_Has_Protected
;
4591 procedure Set_Has_Qualified_Name
(Id
: E
; V
: B
:= True) is
4593 Set_Flag161
(Id
, V
);
4594 end Set_Has_Qualified_Name
;
4596 procedure Set_Has_RACW
(Id
: E
; V
: B
:= True) is
4598 pragma Assert
(Ekind
(Id
) = E_Package
);
4599 Set_Flag214
(Id
, V
);
4602 procedure Set_Has_Record_Rep_Clause
(Id
: E
; V
: B
:= True) is
4604 pragma Assert
(Id
= Base_Type
(Id
));
4606 end Set_Has_Record_Rep_Clause
;
4608 procedure Set_Has_Recursive_Call
(Id
: E
; V
: B
:= True) is
4610 pragma Assert
(Is_Subprogram
(Id
));
4611 Set_Flag143
(Id
, V
);
4612 end Set_Has_Recursive_Call
;
4614 procedure Set_Has_Shift_Operator
(Id
: E
; V
: B
:= True) is
4616 pragma Assert
(Is_Integer_Type
(Id
) and then Is_Base_Type
(Id
));
4617 Set_Flag267
(Id
, V
);
4618 end Set_Has_Shift_Operator
;
4620 procedure Set_Has_Size_Clause
(Id
: E
; V
: B
:= True) is
4623 end Set_Has_Size_Clause
;
4625 procedure Set_Has_Small_Clause
(Id
: E
; V
: B
:= True) is
4628 end Set_Has_Small_Clause
;
4630 procedure Set_Has_Specified_Layout
(Id
: E
; V
: B
:= True) is
4632 pragma Assert
(Id
= Base_Type
(Id
));
4633 Set_Flag100
(Id
, V
);
4634 end Set_Has_Specified_Layout
;
4636 procedure Set_Has_Specified_Stream_Input
(Id
: E
; V
: B
:= True) is
4638 pragma Assert
(Is_Type
(Id
));
4639 Set_Flag190
(Id
, V
);
4640 end Set_Has_Specified_Stream_Input
;
4642 procedure Set_Has_Specified_Stream_Output
(Id
: E
; V
: B
:= True) is
4644 pragma Assert
(Is_Type
(Id
));
4645 Set_Flag191
(Id
, V
);
4646 end Set_Has_Specified_Stream_Output
;
4648 procedure Set_Has_Specified_Stream_Read
(Id
: E
; V
: B
:= True) is
4650 pragma Assert
(Is_Type
(Id
));
4651 Set_Flag192
(Id
, V
);
4652 end Set_Has_Specified_Stream_Read
;
4654 procedure Set_Has_Specified_Stream_Write
(Id
: E
; V
: B
:= True) is
4656 pragma Assert
(Is_Type
(Id
));
4657 Set_Flag193
(Id
, V
);
4658 end Set_Has_Specified_Stream_Write
;
4660 procedure Set_Has_Static_Discriminants
(Id
: E
; V
: B
:= True) is
4662 Set_Flag211
(Id
, V
);
4663 end Set_Has_Static_Discriminants
;
4665 procedure Set_Has_Static_Predicate
(Id
: E
; V
: B
:= True) is
4667 pragma Assert
(Is_Type
(Id
));
4668 Set_Flag269
(Id
, V
);
4669 end Set_Has_Static_Predicate
;
4671 procedure Set_Has_Static_Predicate_Aspect
(Id
: E
; V
: B
:= True) is
4673 pragma Assert
(Is_Type
(Id
));
4674 Set_Flag259
(Id
, V
);
4675 end Set_Has_Static_Predicate_Aspect
;
4677 procedure Set_Has_Storage_Size_Clause
(Id
: E
; V
: B
:= True) is
4679 pragma Assert
(Is_Access_Type
(Id
) or else Is_Task_Type
(Id
));
4680 pragma Assert
(Id
= Base_Type
(Id
));
4682 end Set_Has_Storage_Size_Clause
;
4684 procedure Set_Has_Stream_Size_Clause
(Id
: E
; V
: B
:= True) is
4686 pragma Assert
(Is_Elementary_Type
(Id
));
4687 Set_Flag184
(Id
, V
);
4688 end Set_Has_Stream_Size_Clause
;
4690 procedure Set_Has_Task
(Id
: E
; V
: B
:= True) is
4692 pragma Assert
(Id
= Base_Type
(Id
));
4696 procedure Set_Has_Thunks
(Id
: E
; V
: B
:= True) is
4698 pragma Assert
(Is_Tag
(Id
));
4699 Set_Flag228
(Id
, V
);
4702 procedure Set_Has_Unchecked_Union
(Id
: E
; V
: B
:= True) is
4704 pragma Assert
(Id
= Base_Type
(Id
));
4705 Set_Flag123
(Id
, V
);
4706 end Set_Has_Unchecked_Union
;
4708 procedure Set_Has_Unknown_Discriminants
(Id
: E
; V
: B
:= True) is
4710 pragma Assert
(Is_Type
(Id
));
4712 end Set_Has_Unknown_Discriminants
;
4714 procedure Set_Has_Visible_Refinement
(Id
: E
; V
: B
:= True) is
4716 pragma Assert
(Ekind
(Id
) = E_Abstract_State
);
4717 Set_Flag263
(Id
, V
);
4718 end Set_Has_Visible_Refinement
;
4720 procedure Set_Has_Volatile_Components
(Id
: E
; V
: B
:= True) is
4722 pragma Assert
(not Is_Type
(Id
) or else Is_Base_Type
(Id
));
4724 end Set_Has_Volatile_Components
;
4726 procedure Set_Has_Xref_Entry
(Id
: E
; V
: B
:= True) is
4728 Set_Flag182
(Id
, V
);
4729 end Set_Has_Xref_Entry
;
4731 procedure Set_Hiding_Loop_Variable
(Id
: E
; V
: E
) is
4733 pragma Assert
(Ekind
(Id
) = E_Variable
);
4735 end Set_Hiding_Loop_Variable
;
4737 procedure Set_Homonym
(Id
: E
; V
: E
) is
4739 pragma Assert
(Id
/= V
);
4743 procedure Set_Import_Pragma
(Id
: E
; V
: E
) is
4745 pragma Assert
(Is_Subprogram
(Id
));
4747 end Set_Import_Pragma
;
4749 procedure Set_Interface_Alias
(Id
: E
; V
: E
) is
4753 and then Is_Hidden
(Id
)
4754 and then (Ekind_In
(Id
, E_Procedure
, E_Function
)));
4756 end Set_Interface_Alias
;
4758 procedure Set_Interfaces
(Id
: E
; V
: L
) is
4760 pragma Assert
(Is_Record_Type
(Id
));
4761 Set_Elist25
(Id
, V
);
4764 procedure Set_In_Package_Body
(Id
: E
; V
: B
:= True) is
4767 end Set_In_Package_Body
;
4769 procedure Set_In_Private_Part
(Id
: E
; V
: B
:= True) is
4772 end Set_In_Private_Part
;
4774 procedure Set_In_Use
(Id
: E
; V
: B
:= True) is
4776 pragma Assert
(Nkind
(Id
) in N_Entity
);
4780 procedure Set_Initialization_Statements
(Id
: E
; V
: N
) is
4782 -- Tolerate an E_Void entity since this can be called while resolving
4783 -- an aggregate used as the initialization expression for an object
4784 -- declaration, and this occurs before the Ekind for the object is set.
4786 pragma Assert
(Ekind_In
(Id
, E_Void
, E_Constant
, E_Variable
));
4788 end Set_Initialization_Statements
;
4790 procedure Set_Inner_Instances
(Id
: E
; V
: L
) is
4792 Set_Elist23
(Id
, V
);
4793 end Set_Inner_Instances
;
4795 procedure Set_Interface_Name
(Id
: E
; V
: N
) is
4798 end Set_Interface_Name
;
4800 procedure Set_Is_Abstract_Subprogram
(Id
: E
; V
: B
:= True) is
4802 pragma Assert
(Is_Overloadable
(Id
));
4804 end Set_Is_Abstract_Subprogram
;
4806 procedure Set_Is_Abstract_Type
(Id
: E
; V
: B
:= True) is
4808 pragma Assert
(Is_Type
(Id
));
4809 Set_Flag146
(Id
, V
);
4810 end Set_Is_Abstract_Type
;
4812 procedure Set_Is_Local_Anonymous_Access
(Id
: E
; V
: B
:= True) is
4814 pragma Assert
(Is_Access_Type
(Id
));
4815 Set_Flag194
(Id
, V
);
4816 end Set_Is_Local_Anonymous_Access
;
4818 procedure Set_Is_Access_Constant
(Id
: E
; V
: B
:= True) is
4820 pragma Assert
(Is_Access_Type
(Id
));
4822 end Set_Is_Access_Constant
;
4824 procedure Set_Is_Ada_2005_Only
(Id
: E
; V
: B
:= True) is
4826 Set_Flag185
(Id
, V
);
4827 end Set_Is_Ada_2005_Only
;
4829 procedure Set_Is_Ada_2012_Only
(Id
: E
; V
: B
:= True) is
4831 Set_Flag199
(Id
, V
);
4832 end Set_Is_Ada_2012_Only
;
4834 procedure Set_Is_Aliased
(Id
: E
; V
: B
:= True) is
4836 pragma Assert
(Nkind
(Id
) in N_Entity
);
4840 procedure Set_Is_Asynchronous
(Id
: E
; V
: B
:= True) is
4843 (Ekind
(Id
) = E_Procedure
or else Is_Type
(Id
));
4845 end Set_Is_Asynchronous
;
4847 procedure Set_Is_Atomic
(Id
: E
; V
: B
:= True) is
4852 procedure Set_Is_Bit_Packed_Array
(Id
: E
; V
: B
:= True) is
4854 pragma Assert
((not V
)
4855 or else (Is_Array_Type
(Id
) and then Is_Base_Type
(Id
)));
4856 Set_Flag122
(Id
, V
);
4857 end Set_Is_Bit_Packed_Array
;
4859 procedure Set_Is_Called
(Id
: E
; V
: B
:= True) is
4861 pragma Assert
(Ekind_In
(Id
, E_Procedure
, E_Function
));
4862 Set_Flag102
(Id
, V
);
4865 procedure Set_Is_Character_Type
(Id
: E
; V
: B
:= True) is
4868 end Set_Is_Character_Type
;
4870 procedure Set_Is_Checked_Ghost_Entity
(Id
: E
; V
: B
:= True) is
4872 pragma Assert
(Is_Formal
(Id
)
4873 or else Is_Object
(Id
)
4874 or else Is_Package_Or_Generic_Package
(Id
)
4875 or else Is_Subprogram_Or_Generic_Subprogram
(Id
)
4876 or else Is_Type
(Id
)
4877 or else Ekind
(Id
) = E_Abstract_State
4878 or else Ekind
(Id
) = E_Component
4879 or else Ekind
(Id
) = E_Discriminant
4880 or else Ekind
(Id
) = E_Exception
4881 or else Ekind
(Id
) = E_Package_Body
4882 or else Ekind
(Id
) = E_Subprogram_Body
4884 -- Allow this attribute to appear on non-analyzed entities
4886 or else Ekind
(Id
) = E_Void
);
4887 Set_Flag277
(Id
, V
);
4888 end Set_Is_Checked_Ghost_Entity
;
4890 procedure Set_Is_Child_Unit
(Id
: E
; V
: B
:= True) is
4893 end Set_Is_Child_Unit
;
4895 procedure Set_Is_Class_Wide_Equivalent_Type
(Id
: E
; V
: B
:= True) is
4898 end Set_Is_Class_Wide_Equivalent_Type
;
4900 procedure Set_Is_Compilation_Unit
(Id
: E
; V
: B
:= True) is
4902 Set_Flag149
(Id
, V
);
4903 end Set_Is_Compilation_Unit
;
4905 procedure Set_Is_Completely_Hidden
(Id
: E
; V
: B
:= True) is
4907 pragma Assert
(Ekind
(Id
) = E_Discriminant
);
4908 Set_Flag103
(Id
, V
);
4909 end Set_Is_Completely_Hidden
;
4911 procedure Set_Is_Concurrent_Record_Type
(Id
: E
; V
: B
:= True) is
4914 end Set_Is_Concurrent_Record_Type
;
4916 procedure Set_Is_Constr_Subt_For_U_Nominal
(Id
: E
; V
: B
:= True) is
4919 end Set_Is_Constr_Subt_For_U_Nominal
;
4921 procedure Set_Is_Constr_Subt_For_UN_Aliased
(Id
: E
; V
: B
:= True) is
4923 Set_Flag141
(Id
, V
);
4924 end Set_Is_Constr_Subt_For_UN_Aliased
;
4926 procedure Set_Is_Constrained
(Id
: E
; V
: B
:= True) is
4928 pragma Assert
(Nkind
(Id
) in N_Entity
);
4930 end Set_Is_Constrained
;
4932 procedure Set_Is_Constructor
(Id
: E
; V
: B
:= True) is
4935 end Set_Is_Constructor
;
4937 procedure Set_Is_Controlled
(Id
: E
; V
: B
:= True) is
4939 pragma Assert
(Id
= Base_Type
(Id
));
4941 end Set_Is_Controlled
;
4943 procedure Set_Is_Controlling_Formal
(Id
: E
; V
: B
:= True) is
4945 pragma Assert
(Is_Formal
(Id
));
4947 end Set_Is_Controlling_Formal
;
4949 procedure Set_Is_CPP_Class
(Id
: E
; V
: B
:= True) is
4952 end Set_Is_CPP_Class
;
4954 procedure Set_Is_Default_Init_Cond_Procedure
(Id
: E
; V
: B
:= True) is
4956 pragma Assert
(Ekind
(Id
) = E_Procedure
);
4957 Set_Flag132
(Id
, V
);
4958 end Set_Is_Default_Init_Cond_Procedure
;
4960 procedure Set_Is_Descendent_Of_Address
(Id
: E
; V
: B
:= True) is
4962 pragma Assert
(Is_Type
(Id
));
4963 Set_Flag223
(Id
, V
);
4964 end Set_Is_Descendent_Of_Address
;
4966 procedure Set_Is_Discrim_SO_Function
(Id
: E
; V
: B
:= True) is
4968 Set_Flag176
(Id
, V
);
4969 end Set_Is_Discrim_SO_Function
;
4971 procedure Set_Is_Discriminant_Check_Function
(Id
: E
; V
: B
:= True) is
4973 Set_Flag264
(Id
, V
);
4974 end Set_Is_Discriminant_Check_Function
;
4976 procedure Set_Is_Dispatch_Table_Entity
(Id
: E
; V
: B
:= True) is
4978 Set_Flag234
(Id
, V
);
4979 end Set_Is_Dispatch_Table_Entity
;
4981 procedure Set_Is_Dispatching_Operation
(Id
: E
; V
: B
:= True) is
4986 Is_Overloadable
(Id
)
4988 Ekind
(Id
) = E_Subprogram_Type
);
4991 end Set_Is_Dispatching_Operation
;
4993 procedure Set_Is_Eliminated
(Id
: E
; V
: B
:= True) is
4995 Set_Flag124
(Id
, V
);
4996 end Set_Is_Eliminated
;
4998 procedure Set_Is_Entry_Formal
(Id
: E
; V
: B
:= True) is
5001 end Set_Is_Entry_Formal
;
5003 procedure Set_Is_Exported
(Id
: E
; V
: B
:= True) is
5006 end Set_Is_Exported
;
5008 procedure Set_Is_First_Subtype
(Id
: E
; V
: B
:= True) is
5011 end Set_Is_First_Subtype
;
5013 procedure Set_Is_For_Access_Subtype
(Id
: E
; V
: B
:= True) is
5015 pragma Assert
(Ekind_In
(Id
, E_Record_Subtype
, E_Private_Subtype
));
5016 Set_Flag118
(Id
, V
);
5017 end Set_Is_For_Access_Subtype
;
5019 procedure Set_Is_Formal_Subprogram
(Id
: E
; V
: B
:= True) is
5021 Set_Flag111
(Id
, V
);
5022 end Set_Is_Formal_Subprogram
;
5024 procedure Set_Is_Frozen
(Id
: E
; V
: B
:= True) is
5026 pragma Assert
(Nkind
(Id
) in N_Entity
);
5030 procedure Set_Is_Generic_Actual_Subprogram
(Id
: E
; V
: B
:= True) is
5032 pragma Assert
(Ekind_In
(Id
, E_Function
, E_Procedure
));
5033 Set_Flag274
(Id
, V
);
5034 end Set_Is_Generic_Actual_Subprogram
;
5036 procedure Set_Is_Generic_Actual_Type
(Id
: E
; V
: B
:= True) is
5038 pragma Assert
(Is_Type
(Id
));
5040 end Set_Is_Generic_Actual_Type
;
5042 procedure Set_Is_Generic_Instance
(Id
: E
; V
: B
:= True) is
5044 Set_Flag130
(Id
, V
);
5045 end Set_Is_Generic_Instance
;
5047 procedure Set_Is_Generic_Type
(Id
: E
; V
: B
:= True) is
5049 pragma Assert
(Nkind
(Id
) in N_Entity
);
5051 end Set_Is_Generic_Type
;
5053 procedure Set_Is_Hidden
(Id
: E
; V
: B
:= True) is
5058 procedure Set_Is_Hidden_Non_Overridden_Subpgm
(Id
: E
; V
: B
:= True) is
5060 pragma Assert
(Ekind_In
(Id
, E_Function
, E_Procedure
));
5062 end Set_Is_Hidden_Non_Overridden_Subpgm
;
5064 procedure Set_Is_Hidden_Open_Scope
(Id
: E
; V
: B
:= True) is
5066 Set_Flag171
(Id
, V
);
5067 end Set_Is_Hidden_Open_Scope
;
5069 procedure Set_Is_Ignored_Ghost_Entity
(Id
: E
; V
: B
:= True) is
5071 pragma Assert
(Is_Formal
(Id
)
5072 or else Is_Object
(Id
)
5073 or else Is_Package_Or_Generic_Package
(Id
)
5074 or else Is_Subprogram_Or_Generic_Subprogram
(Id
)
5075 or else Is_Type
(Id
)
5076 or else Ekind
(Id
) = E_Abstract_State
5077 or else Ekind
(Id
) = E_Component
5078 or else Ekind
(Id
) = E_Discriminant
5079 or else Ekind
(Id
) = E_Exception
5080 or else Ekind
(Id
) = E_Package_Body
5081 or else Ekind
(Id
) = E_Subprogram_Body
5083 -- Allow this attribute to appear on non-analyzed entities
5085 or else Ekind
(Id
) = E_Void
);
5086 Set_Flag278
(Id
, V
);
5087 end Set_Is_Ignored_Ghost_Entity
;
5089 procedure Set_Is_Immediately_Visible
(Id
: E
; V
: B
:= True) is
5091 pragma Assert
(Nkind
(Id
) in N_Entity
);
5093 end Set_Is_Immediately_Visible
;
5095 procedure Set_Is_Implementation_Defined
(Id
: E
; V
: B
:= True) is
5097 Set_Flag254
(Id
, V
);
5098 end Set_Is_Implementation_Defined
;
5100 procedure Set_Is_Imported
(Id
: E
; V
: B
:= True) is
5103 end Set_Is_Imported
;
5105 procedure Set_Is_Independent
(Id
: E
; V
: B
:= True) is
5107 Set_Flag268
(Id
, V
);
5108 end Set_Is_Independent
;
5110 procedure Set_Is_Inlined
(Id
: E
; V
: B
:= True) is
5115 procedure Set_Is_Inlined_Always
(Id
: E
; V
: B
:= True) is
5117 pragma Assert
(Ekind
(Id
) = E_Function
or else Ekind
(Id
) = E_Procedure
);
5119 end Set_Is_Inlined_Always
;
5121 procedure Set_Is_Interface
(Id
: E
; V
: B
:= True) is
5123 pragma Assert
(Is_Record_Type
(Id
));
5124 Set_Flag186
(Id
, V
);
5125 end Set_Is_Interface
;
5127 procedure Set_Is_Instantiated
(Id
: E
; V
: B
:= True) is
5129 Set_Flag126
(Id
, V
);
5130 end Set_Is_Instantiated
;
5132 procedure Set_Is_Internal
(Id
: E
; V
: B
:= True) is
5134 pragma Assert
(Nkind
(Id
) in N_Entity
);
5136 end Set_Is_Internal
;
5138 procedure Set_Is_Interrupt_Handler
(Id
: E
; V
: B
:= True) is
5140 pragma Assert
(Nkind
(Id
) in N_Entity
);
5142 end Set_Is_Interrupt_Handler
;
5144 procedure Set_Is_Intrinsic_Subprogram
(Id
: E
; V
: B
:= True) is
5147 end Set_Is_Intrinsic_Subprogram
;
5149 procedure Set_Is_Invariant_Procedure
(Id
: E
; V
: B
:= True) is
5151 pragma Assert
(Ekind
(Id
) = E_Procedure
);
5152 Set_Flag257
(Id
, V
);
5153 end Set_Is_Invariant_Procedure
;
5155 procedure Set_Is_Itype
(Id
: E
; V
: B
:= True) is
5160 procedure Set_Is_Known_Non_Null
(Id
: E
; V
: B
:= True) is
5163 end Set_Is_Known_Non_Null
;
5165 procedure Set_Is_Known_Null
(Id
: E
; V
: B
:= True) is
5167 Set_Flag204
(Id
, V
);
5168 end Set_Is_Known_Null
;
5170 procedure Set_Is_Known_Valid
(Id
: E
; V
: B
:= True) is
5172 Set_Flag170
(Id
, V
);
5173 end Set_Is_Known_Valid
;
5175 procedure Set_Is_Limited_Composite
(Id
: E
; V
: B
:= True) is
5177 pragma Assert
(Is_Type
(Id
));
5178 Set_Flag106
(Id
, V
);
5179 end Set_Is_Limited_Composite
;
5181 procedure Set_Is_Limited_Interface
(Id
: E
; V
: B
:= True) is
5183 pragma Assert
(Is_Interface
(Id
));
5184 Set_Flag197
(Id
, V
);
5185 end Set_Is_Limited_Interface
;
5187 procedure Set_Is_Limited_Record
(Id
: E
; V
: B
:= True) is
5190 end Set_Is_Limited_Record
;
5192 procedure Set_Is_Machine_Code_Subprogram
(Id
: E
; V
: B
:= True) is
5194 pragma Assert
(Is_Subprogram
(Id
));
5195 Set_Flag137
(Id
, V
);
5196 end Set_Is_Machine_Code_Subprogram
;
5198 procedure Set_Is_Non_Static_Subtype
(Id
: E
; V
: B
:= True) is
5200 pragma Assert
(Is_Type
(Id
));
5201 Set_Flag109
(Id
, V
);
5202 end Set_Is_Non_Static_Subtype
;
5204 procedure Set_Is_Null_Init_Proc
(Id
: E
; V
: B
:= True) is
5206 pragma Assert
(Ekind
(Id
) = E_Procedure
);
5207 Set_Flag178
(Id
, V
);
5208 end Set_Is_Null_Init_Proc
;
5210 procedure Set_Is_Obsolescent
(Id
: E
; V
: B
:= True) is
5212 Set_Flag153
(Id
, V
);
5213 end Set_Is_Obsolescent
;
5215 procedure Set_Is_Only_Out_Parameter
(Id
: E
; V
: B
:= True) is
5217 pragma Assert
(Ekind
(Id
) = E_Out_Parameter
);
5218 Set_Flag226
(Id
, V
);
5219 end Set_Is_Only_Out_Parameter
;
5221 procedure Set_Is_Package_Body_Entity
(Id
: E
; V
: B
:= True) is
5223 Set_Flag160
(Id
, V
);
5224 end Set_Is_Package_Body_Entity
;
5226 procedure Set_Is_Packed
(Id
: E
; V
: B
:= True) is
5228 pragma Assert
(Id
= Base_Type
(Id
));
5232 procedure Set_Is_Packed_Array_Impl_Type
(Id
: E
; V
: B
:= True) is
5234 Set_Flag138
(Id
, V
);
5235 end Set_Is_Packed_Array_Impl_Type
;
5237 procedure Set_Is_Potentially_Use_Visible
(Id
: E
; V
: B
:= True) is
5239 pragma Assert
(Nkind
(Id
) in N_Entity
);
5241 end Set_Is_Potentially_Use_Visible
;
5243 procedure Set_Is_Predicate_Function
(Id
: E
; V
: B
:= True) is
5245 pragma Assert
(Ekind
(Id
) = E_Function
or else Ekind
(Id
) = E_Procedure
);
5246 Set_Flag255
(Id
, V
);
5247 end Set_Is_Predicate_Function
;
5249 procedure Set_Is_Predicate_Function_M
(Id
: E
; V
: B
:= True) is
5251 pragma Assert
(Ekind
(Id
) = E_Function
or else Ekind
(Id
) = E_Procedure
);
5252 Set_Flag256
(Id
, V
);
5253 end Set_Is_Predicate_Function_M
;
5255 procedure Set_Is_Preelaborated
(Id
: E
; V
: B
:= True) is
5258 end Set_Is_Preelaborated
;
5260 procedure Set_Is_Primitive
(Id
: E
; V
: B
:= True) is
5263 (Is_Overloadable
(Id
)
5264 or else Ekind_In
(Id
, E_Generic_Function
, E_Generic_Procedure
));
5265 Set_Flag218
(Id
, V
);
5266 end Set_Is_Primitive
;
5268 procedure Set_Is_Primitive_Wrapper
(Id
: E
; V
: B
:= True) is
5270 pragma Assert
(Ekind_In
(Id
, E_Function
, E_Procedure
));
5271 Set_Flag195
(Id
, V
);
5272 end Set_Is_Primitive_Wrapper
;
5274 procedure Set_Is_Private_Composite
(Id
: E
; V
: B
:= True) is
5276 pragma Assert
(Is_Type
(Id
));
5277 Set_Flag107
(Id
, V
);
5278 end Set_Is_Private_Composite
;
5280 procedure Set_Is_Private_Descendant
(Id
: E
; V
: B
:= True) is
5283 end Set_Is_Private_Descendant
;
5285 procedure Set_Is_Private_Primitive
(Id
: E
; V
: B
:= True) is
5287 pragma Assert
(Ekind_In
(Id
, E_Function
, E_Procedure
));
5288 Set_Flag245
(Id
, V
);
5289 end Set_Is_Private_Primitive
;
5291 procedure Set_Is_Processed_Transient
(Id
: E
; V
: B
:= True) is
5293 pragma Assert
(Ekind_In
(Id
, E_Constant
, E_Loop_Parameter
, E_Variable
));
5294 Set_Flag252
(Id
, V
);
5295 end Set_Is_Processed_Transient
;
5297 procedure Set_Is_Public
(Id
: E
; V
: B
:= True) is
5299 pragma Assert
(Nkind
(Id
) in N_Entity
);
5303 procedure Set_Is_Pure
(Id
: E
; V
: B
:= True) is
5308 procedure Set_Is_Pure_Unit_Access_Type
(Id
: E
; V
: B
:= True) is
5310 pragma Assert
(Is_Access_Type
(Id
));
5311 Set_Flag189
(Id
, V
);
5312 end Set_Is_Pure_Unit_Access_Type
;
5314 procedure Set_Is_RACW_Stub_Type
(Id
: E
; V
: B
:= True) is
5316 pragma Assert
(Is_Type
(Id
));
5317 Set_Flag244
(Id
, V
);
5318 end Set_Is_RACW_Stub_Type
;
5320 procedure Set_Is_Raised
(Id
: E
; V
: B
:= True) is
5322 pragma Assert
(Ekind
(Id
) = E_Exception
);
5323 Set_Flag224
(Id
, V
);
5326 procedure Set_Is_Remote_Call_Interface
(Id
: E
; V
: B
:= True) is
5329 end Set_Is_Remote_Call_Interface
;
5331 procedure Set_Is_Remote_Types
(Id
: E
; V
: B
:= True) is
5334 end Set_Is_Remote_Types
;
5336 procedure Set_Is_Renaming_Of_Object
(Id
: E
; V
: B
:= True) is
5338 Set_Flag112
(Id
, V
);
5339 end Set_Is_Renaming_Of_Object
;
5341 procedure Set_Is_Return_Object
(Id
: E
; V
: B
:= True) is
5343 Set_Flag209
(Id
, V
);
5344 end Set_Is_Return_Object
;
5346 procedure Set_Is_Safe_To_Reevaluate
(Id
: E
; V
: B
:= True) is
5348 pragma Assert
(Ekind
(Id
) = E_Variable
);
5349 Set_Flag249
(Id
, V
);
5350 end Set_Is_Safe_To_Reevaluate
;
5352 procedure Set_Is_Shared_Passive
(Id
: E
; V
: B
:= True) is
5355 end Set_Is_Shared_Passive
;
5357 procedure Set_Is_Static_Type
(Id
: E
; V
: B
:= True) is
5359 pragma Assert
(Is_Type
(Id
));
5360 Set_Flag281
(Id
, V
);
5361 end Set_Is_Static_Type
;
5363 procedure Set_Is_Statically_Allocated
(Id
: E
; V
: B
:= True) is
5367 or else Ekind_In
(Id
, E_Exception
,
5372 end Set_Is_Statically_Allocated
;
5374 procedure Set_Is_Tag
(Id
: E
; V
: B
:= True) is
5376 pragma Assert
(Ekind_In
(Id
, E_Component
, E_Constant
, E_Variable
));
5380 procedure Set_Is_Tagged_Type
(Id
: E
; V
: B
:= True) is
5383 end Set_Is_Tagged_Type
;
5385 procedure Set_Is_Thunk
(Id
: E
; V
: B
:= True) is
5387 pragma Assert
(Is_Subprogram
(Id
));
5388 Set_Flag225
(Id
, V
);
5391 procedure Set_Is_Trivial_Subprogram
(Id
: E
; V
: B
:= True) is
5393 Set_Flag235
(Id
, V
);
5394 end Set_Is_Trivial_Subprogram
;
5396 procedure Set_Is_True_Constant
(Id
: E
; V
: B
:= True) is
5398 Set_Flag163
(Id
, V
);
5399 end Set_Is_True_Constant
;
5401 procedure Set_Is_Unchecked_Union
(Id
: E
; V
: B
:= True) is
5403 pragma Assert
(Id
= Base_Type
(Id
));
5404 Set_Flag117
(Id
, V
);
5405 end Set_Is_Unchecked_Union
;
5407 procedure Set_Is_Underlying_Record_View
(Id
: E
; V
: B
:= True) is
5409 pragma Assert
(Ekind
(Id
) = E_Record_Type
);
5410 Set_Flag246
(Id
, V
);
5411 end Set_Is_Underlying_Record_View
;
5413 procedure Set_Is_Unimplemented
(Id
: E
; V
: B
:= True) is
5415 Set_Flag284
(Id
, V
);
5416 end Set_Is_Unimplemented
;
5418 procedure Set_Is_Unsigned_Type
(Id
: E
; V
: B
:= True) is
5420 pragma Assert
(Is_Discrete_Or_Fixed_Point_Type
(Id
));
5421 Set_Flag144
(Id
, V
);
5422 end Set_Is_Unsigned_Type
;
5424 procedure Set_Is_Valued_Procedure
(Id
: E
; V
: B
:= True) is
5426 pragma Assert
(Ekind
(Id
) = E_Procedure
);
5427 Set_Flag127
(Id
, V
);
5428 end Set_Is_Valued_Procedure
;
5430 procedure Set_Is_Visible_Formal
(Id
: E
; V
: B
:= True) is
5432 Set_Flag206
(Id
, V
);
5433 end Set_Is_Visible_Formal
;
5435 procedure Set_Is_Visible_Lib_Unit
(Id
: E
; V
: B
:= True) is
5437 Set_Flag116
(Id
, V
);
5438 end Set_Is_Visible_Lib_Unit
;
5440 procedure Set_Is_Volatile
(Id
: E
; V
: B
:= True) is
5442 pragma Assert
(Nkind
(Id
) in N_Entity
);
5444 end Set_Is_Volatile
;
5446 procedure Set_Itype_Printed
(Id
: E
; V
: B
:= True) is
5448 pragma Assert
(Is_Itype
(Id
));
5449 Set_Flag202
(Id
, V
);
5450 end Set_Itype_Printed
;
5452 procedure Set_Kill_Elaboration_Checks
(Id
: E
; V
: B
:= True) is
5455 end Set_Kill_Elaboration_Checks
;
5457 procedure Set_Kill_Range_Checks
(Id
: E
; V
: B
:= True) is
5460 end Set_Kill_Range_Checks
;
5462 procedure Set_Known_To_Have_Preelab_Init
(Id
: E
; V
: B
:= True) is
5464 pragma Assert
(Is_Type
(Id
));
5465 Set_Flag207
(Id
, V
);
5466 end Set_Known_To_Have_Preelab_Init
;
5468 procedure Set_Last_Aggregate_Assignment
(Id
: E
; V
: N
) is
5470 pragma Assert
(Ekind_In
(Id
, E_Constant
, E_Variable
));
5472 end Set_Last_Aggregate_Assignment
;
5474 procedure Set_Last_Assignment
(Id
: E
; V
: N
) is
5476 pragma Assert
(Is_Assignable
(Id
));
5478 end Set_Last_Assignment
;
5480 procedure Set_Last_Entity
(Id
: E
; V
: E
) is
5483 end Set_Last_Entity
;
5485 procedure Set_Limited_View
(Id
: E
; V
: E
) is
5487 pragma Assert
(Ekind
(Id
) = E_Package
);
5489 end Set_Limited_View
;
5491 procedure Set_Linker_Section_Pragma
(Id
: E
; V
: N
) is
5493 pragma Assert
(Is_Type
(Id
)
5494 or else Ekind_In
(Id
, E_Constant
, E_Variable
)
5495 or else Is_Subprogram
(Id
));
5497 end Set_Linker_Section_Pragma
;
5499 procedure Set_Lit_Indexes
(Id
: E
; V
: E
) is
5501 pragma Assert
(Is_Enumeration_Type
(Id
) and then Root_Type
(Id
) = Id
);
5503 end Set_Lit_Indexes
;
5505 procedure Set_Lit_Strings
(Id
: E
; V
: E
) is
5507 pragma Assert
(Is_Enumeration_Type
(Id
) and then Root_Type
(Id
) = Id
);
5509 end Set_Lit_Strings
;
5511 procedure Set_Low_Bound_Tested
(Id
: E
; V
: B
:= True) is
5513 pragma Assert
(Is_Formal
(Id
));
5514 Set_Flag205
(Id
, V
);
5515 end Set_Low_Bound_Tested
;
5517 procedure Set_Machine_Radix_10
(Id
: E
; V
: B
:= True) is
5519 pragma Assert
(Is_Decimal_Fixed_Point_Type
(Id
));
5521 end Set_Machine_Radix_10
;
5523 procedure Set_Master_Id
(Id
: E
; V
: E
) is
5525 pragma Assert
(Is_Access_Type
(Id
));
5529 procedure Set_Materialize_Entity
(Id
: E
; V
: B
:= True) is
5531 Set_Flag168
(Id
, V
);
5532 end Set_Materialize_Entity
;
5534 procedure Set_May_Inherit_Delayed_Rep_Aspects
(Id
: E
; V
: B
:= True) is
5536 Set_Flag262
(Id
, V
);
5537 end Set_May_Inherit_Delayed_Rep_Aspects
;
5539 procedure Set_Mechanism
(Id
: E
; V
: M
) is
5541 pragma Assert
(Ekind
(Id
) = E_Function
or else Is_Formal
(Id
));
5542 Set_Uint8
(Id
, UI_From_Int
(V
));
5545 procedure Set_Modulus
(Id
: E
; V
: U
) is
5547 pragma Assert
(Ekind
(Id
) = E_Modular_Integer_Type
);
5551 procedure Set_Must_Be_On_Byte_Boundary
(Id
: E
; V
: B
:= True) is
5553 pragma Assert
(Is_Type
(Id
));
5554 Set_Flag183
(Id
, V
);
5555 end Set_Must_Be_On_Byte_Boundary
;
5557 procedure Set_Must_Have_Preelab_Init
(Id
: E
; V
: B
:= True) is
5559 pragma Assert
(Is_Type
(Id
));
5560 Set_Flag208
(Id
, V
);
5561 end Set_Must_Have_Preelab_Init
;
5563 procedure Set_Needs_Debug_Info
(Id
: E
; V
: B
:= True) is
5565 Set_Flag147
(Id
, V
);
5566 end Set_Needs_Debug_Info
;
5568 procedure Set_Needs_No_Actuals
(Id
: E
; V
: B
:= True) is
5571 (Is_Overloadable
(Id
)
5572 or else Ekind_In
(Id
, E_Subprogram_Type
, E_Entry_Family
));
5574 end Set_Needs_No_Actuals
;
5576 procedure Set_Never_Set_In_Source
(Id
: E
; V
: B
:= True) is
5578 Set_Flag115
(Id
, V
);
5579 end Set_Never_Set_In_Source
;
5581 procedure Set_Next_Inlined_Subprogram
(Id
: E
; V
: E
) is
5584 end Set_Next_Inlined_Subprogram
;
5586 procedure Set_No_Dynamic_Predicate_On_Actual
(Id
: E
; V
: B
:= True) is
5588 pragma Assert
(Is_Discrete_Type
(Id
));
5589 Set_Flag276
(Id
, V
);
5590 end Set_No_Dynamic_Predicate_On_Actual
;
5592 procedure Set_No_Pool_Assigned
(Id
: E
; V
: B
:= True) is
5594 pragma Assert
(Is_Access_Type
(Id
) and then Is_Base_Type
(Id
));
5595 Set_Flag131
(Id
, V
);
5596 end Set_No_Pool_Assigned
;
5598 procedure Set_No_Predicate_On_Actual
(Id
: E
; V
: B
:= True) is
5600 pragma Assert
(Is_Discrete_Type
(Id
));
5601 Set_Flag275
(Id
, V
);
5602 end Set_No_Predicate_On_Actual
;
5604 procedure Set_No_Return
(Id
: E
; V
: B
:= True) is
5607 (V
= False or else Ekind_In
(Id
, E_Procedure
, E_Generic_Procedure
));
5608 Set_Flag113
(Id
, V
);
5611 procedure Set_No_Strict_Aliasing
(Id
: E
; V
: B
:= True) is
5613 pragma Assert
(Is_Access_Type
(Id
) and then Is_Base_Type
(Id
));
5614 Set_Flag136
(Id
, V
);
5615 end Set_No_Strict_Aliasing
;
5617 procedure Set_No_Tagged_Streams_Pragma
(Id
: E
; V
: E
) is
5619 pragma Assert
(Is_Tagged_Type
(Id
));
5621 end Set_No_Tagged_Streams_Pragma
;
5623 procedure Set_Non_Binary_Modulus
(Id
: E
; V
: B
:= True) is
5625 pragma Assert
(Is_Type
(Id
) and then Is_Base_Type
(Id
));
5627 end Set_Non_Binary_Modulus
;
5629 procedure Set_Non_Limited_View
(Id
: E
; V
: E
) is
5632 (Ekind
(Id
) in Incomplete_Kind
or else Ekind
(Id
) = E_Abstract_State
);
5634 end Set_Non_Limited_View
;
5636 procedure Set_Nonzero_Is_True
(Id
: E
; V
: B
:= True) is
5639 (Root_Type
(Id
) = Standard_Boolean
5640 and then Ekind
(Id
) = E_Enumeration_Type
);
5641 Set_Flag162
(Id
, V
);
5642 end Set_Nonzero_Is_True
;
5644 procedure Set_Normalized_First_Bit
(Id
: E
; V
: U
) is
5646 pragma Assert
(Ekind_In
(Id
, E_Component
, E_Discriminant
));
5648 end Set_Normalized_First_Bit
;
5650 procedure Set_Normalized_Position
(Id
: E
; V
: U
) is
5652 pragma Assert
(Ekind_In
(Id
, E_Component
, E_Discriminant
));
5654 end Set_Normalized_Position
;
5656 procedure Set_Normalized_Position_Max
(Id
: E
; V
: U
) is
5658 pragma Assert
(Ekind_In
(Id
, E_Component
, E_Discriminant
));
5660 end Set_Normalized_Position_Max
;
5662 procedure Set_OK_To_Rename
(Id
: E
; V
: B
:= True) is
5664 pragma Assert
(Ekind
(Id
) = E_Variable
);
5665 Set_Flag247
(Id
, V
);
5666 end Set_OK_To_Rename
;
5668 procedure Set_OK_To_Reorder_Components
(Id
: E
; V
: B
:= True) is
5671 (Is_Record_Type
(Id
) and then Is_Base_Type
(Id
));
5672 Set_Flag239
(Id
, V
);
5673 end Set_OK_To_Reorder_Components
;
5675 procedure Set_Optimize_Alignment_Space
(Id
: E
; V
: B
:= True) is
5678 (Is_Type
(Id
) or else Ekind_In
(Id
, E_Constant
, E_Variable
));
5679 Set_Flag241
(Id
, V
);
5680 end Set_Optimize_Alignment_Space
;
5682 procedure Set_Optimize_Alignment_Time
(Id
: E
; V
: B
:= True) is
5685 (Is_Type
(Id
) or else Ekind_In
(Id
, E_Constant
, E_Variable
));
5686 Set_Flag242
(Id
, V
);
5687 end Set_Optimize_Alignment_Time
;
5689 procedure Set_Original_Access_Type
(Id
: E
; V
: E
) is
5691 pragma Assert
(Ekind
(Id
) = E_Access_Subprogram_Type
);
5693 end Set_Original_Access_Type
;
5695 procedure Set_Original_Array_Type
(Id
: E
; V
: E
) is
5697 pragma Assert
(Is_Array_Type
(Id
) or else Is_Modular_Integer_Type
(Id
));
5699 end Set_Original_Array_Type
;
5701 procedure Set_Original_Record_Component
(Id
: E
; V
: E
) is
5703 pragma Assert
(Ekind_In
(Id
, E_Void
, E_Component
, E_Discriminant
));
5705 end Set_Original_Record_Component
;
5707 procedure Set_Overlays_Constant
(Id
: E
; V
: B
:= True) is
5709 Set_Flag243
(Id
, V
);
5710 end Set_Overlays_Constant
;
5712 procedure Set_Overridden_Operation
(Id
: E
; V
: E
) is
5715 end Set_Overridden_Operation
;
5717 procedure Set_Package_Instantiation
(Id
: E
; V
: N
) is
5719 pragma Assert
(Ekind_In
(Id
, E_Void
, E_Generic_Package
, E_Package
));
5721 end Set_Package_Instantiation
;
5723 procedure Set_Packed_Array_Impl_Type
(Id
: E
; V
: E
) is
5725 pragma Assert
(Is_Array_Type
(Id
));
5727 end Set_Packed_Array_Impl_Type
;
5729 procedure Set_Parent_Subtype
(Id
: E
; V
: E
) is
5731 pragma Assert
(Ekind
(Id
) = E_Record_Type
);
5733 end Set_Parent_Subtype
;
5735 procedure Set_Part_Of_Constituents
(Id
: E
; V
: L
) is
5737 pragma Assert
(Ekind
(Id
) = E_Abstract_State
);
5739 end Set_Part_Of_Constituents
;
5741 procedure Set_Partial_View_Has_Unknown_Discr
(Id
: E
; V
: B
:= True) is
5743 pragma Assert
(Is_Type
(Id
));
5744 Set_Flag280
(Id
, V
);
5745 end Set_Partial_View_Has_Unknown_Discr
;
5747 procedure Set_Pending_Access_Types
(Id
: E
; V
: L
) is
5749 pragma Assert
(Is_Type
(Id
));
5750 Set_Elist15
(Id
, V
);
5751 end Set_Pending_Access_Types
;
5753 procedure Set_Postconditions_Proc
(Id
: E
; V
: E
) is
5755 pragma Assert
(Ekind_In
(Id
, E_Entry
,
5760 end Set_Postconditions_Proc
;
5762 procedure Set_PPC_Wrapper
(Id
: E
; V
: E
) is
5764 pragma Assert
(Ekind_In
(Id
, E_Entry
, E_Entry_Family
));
5766 end Set_PPC_Wrapper
;
5768 procedure Set_Direct_Primitive_Operations
(Id
: E
; V
: L
) is
5770 pragma Assert
(Is_Tagged_Type
(Id
));
5771 Set_Elist10
(Id
, V
);
5772 end Set_Direct_Primitive_Operations
;
5774 procedure Set_Prival
(Id
: E
; V
: E
) is
5776 pragma Assert
(Is_Protected_Component
(Id
));
5780 procedure Set_Prival_Link
(Id
: E
; V
: E
) is
5782 pragma Assert
(Ekind_In
(Id
, E_Constant
, E_Variable
));
5784 end Set_Prival_Link
;
5786 procedure Set_Private_Dependents
(Id
: E
; V
: L
) is
5788 pragma Assert
(Is_Incomplete_Or_Private_Type
(Id
));
5789 Set_Elist18
(Id
, V
);
5790 end Set_Private_Dependents
;
5792 procedure Set_Private_View
(Id
: E
; V
: N
) is
5794 pragma Assert
(Is_Private_Type
(Id
));
5796 end Set_Private_View
;
5798 procedure Set_Protected_Body_Subprogram
(Id
: E
; V
: E
) is
5800 pragma Assert
(Is_Subprogram
(Id
) or else Is_Entry
(Id
));
5802 end Set_Protected_Body_Subprogram
;
5804 procedure Set_Protected_Formal
(Id
: E
; V
: E
) is
5806 pragma Assert
(Is_Formal
(Id
));
5808 end Set_Protected_Formal
;
5810 procedure Set_Protection_Object
(Id
: E
; V
: E
) is
5812 pragma Assert
(Ekind_In
(Id
, E_Entry
,
5817 end Set_Protection_Object
;
5819 procedure Set_Reachable
(Id
: E
; V
: B
:= True) is
5824 procedure Set_Referenced
(Id
: E
; V
: B
:= True) is
5826 Set_Flag156
(Id
, V
);
5829 procedure Set_Referenced_As_LHS
(Id
: E
; V
: B
:= True) is
5832 end Set_Referenced_As_LHS
;
5834 procedure Set_Referenced_As_Out_Parameter
(Id
: E
; V
: B
:= True) is
5836 Set_Flag227
(Id
, V
);
5837 end Set_Referenced_As_Out_Parameter
;
5839 procedure Set_Refinement_Constituents
(Id
: E
; V
: L
) is
5841 pragma Assert
(Ekind
(Id
) = E_Abstract_State
);
5843 end Set_Refinement_Constituents
;
5845 procedure Set_Register_Exception_Call
(Id
: E
; V
: N
) is
5847 pragma Assert
(Ekind
(Id
) = E_Exception
);
5849 end Set_Register_Exception_Call
;
5851 procedure Set_Related_Array_Object
(Id
: E
; V
: E
) is
5853 pragma Assert
(Is_Array_Type
(Id
));
5855 end Set_Related_Array_Object
;
5857 procedure Set_Related_Expression
(Id
: E
; V
: N
) is
5859 pragma Assert
(Ekind
(Id
) in Type_Kind
5860 or else Ekind_In
(Id
, E_Constant
, E_Variable
, E_Void
));
5862 end Set_Related_Expression
;
5864 procedure Set_Related_Instance
(Id
: E
; V
: E
) is
5866 pragma Assert
(Ekind_In
(Id
, E_Package
, E_Package_Body
));
5868 end Set_Related_Instance
;
5870 procedure Set_Related_Type
(Id
: E
; V
: E
) is
5872 pragma Assert
(Ekind_In
(Id
, E_Component
, E_Constant
, E_Variable
));
5874 end Set_Related_Type
;
5876 procedure Set_Relative_Deadline_Variable
(Id
: E
; V
: E
) is
5878 pragma Assert
(Is_Task_Type
(Id
) and then Is_Base_Type
(Id
));
5880 end Set_Relative_Deadline_Variable
;
5882 procedure Set_Renamed_Entity
(Id
: E
; V
: N
) is
5885 end Set_Renamed_Entity
;
5887 procedure Set_Renamed_In_Spec
(Id
: E
; V
: B
:= True) is
5889 pragma Assert
(Ekind
(Id
) = E_Package
);
5890 Set_Flag231
(Id
, V
);
5891 end Set_Renamed_In_Spec
;
5893 procedure Set_Renamed_Object
(Id
: E
; V
: N
) is
5896 end Set_Renamed_Object
;
5898 procedure Set_Renaming_Map
(Id
: E
; V
: U
) is
5901 end Set_Renaming_Map
;
5903 procedure Set_Requires_Overriding
(Id
: E
; V
: B
:= True) is
5905 pragma Assert
(Is_Overloadable
(Id
));
5906 Set_Flag213
(Id
, V
);
5907 end Set_Requires_Overriding
;
5909 procedure Set_Return_Present
(Id
: E
; V
: B
:= True) is
5912 end Set_Return_Present
;
5914 procedure Set_Return_Applies_To
(Id
: E
; V
: N
) is
5917 end Set_Return_Applies_To
;
5919 procedure Set_Returns_By_Ref
(Id
: E
; V
: B
:= True) is
5922 end Set_Returns_By_Ref
;
5924 procedure Set_Returns_Limited_View
(Id
: E
; V
: B
:= True) is
5926 pragma Assert
(Ekind
(Id
) = E_Function
);
5927 Set_Flag134
(Id
, V
);
5928 end Set_Returns_Limited_View
;
5930 procedure Set_Reverse_Bit_Order
(Id
: E
; V
: B
:= True) is
5933 (Is_Record_Type
(Id
) and then Is_Base_Type
(Id
));
5934 Set_Flag164
(Id
, V
);
5935 end Set_Reverse_Bit_Order
;
5937 procedure Set_Reverse_Storage_Order
(Id
: E
; V
: B
:= True) is
5941 and then (Is_Record_Type
(Id
) or else Is_Array_Type
(Id
)));
5943 end Set_Reverse_Storage_Order
;
5945 procedure Set_RM_Size
(Id
: E
; V
: U
) is
5947 pragma Assert
(Is_Type
(Id
));
5951 procedure Set_Scalar_Range
(Id
: E
; V
: N
) is
5954 end Set_Scalar_Range
;
5956 procedure Set_Scale_Value
(Id
: E
; V
: U
) is
5959 end Set_Scale_Value
;
5961 procedure Set_Scope_Depth_Value
(Id
: E
; V
: U
) is
5963 pragma Assert
(not Is_Record_Type
(Id
));
5965 end Set_Scope_Depth_Value
;
5967 procedure Set_Sec_Stack_Needed_For_Return
(Id
: E
; V
: B
:= True) is
5969 Set_Flag167
(Id
, V
);
5970 end Set_Sec_Stack_Needed_For_Return
;
5972 procedure Set_Shadow_Entities
(Id
: E
; V
: S
) is
5974 pragma Assert
(Ekind_In
(Id
, E_Package
, E_Generic_Package
));
5976 end Set_Shadow_Entities
;
5978 procedure Set_Shared_Var_Procs_Instance
(Id
: E
; V
: E
) is
5980 pragma Assert
(Ekind
(Id
) = E_Variable
);
5982 end Set_Shared_Var_Procs_Instance
;
5984 procedure Set_Size_Check_Code
(Id
: E
; V
: N
) is
5986 pragma Assert
(Ekind_In
(Id
, E_Constant
, E_Variable
));
5988 end Set_Size_Check_Code
;
5990 procedure Set_Size_Depends_On_Discriminant
(Id
: E
; V
: B
:= True) is
5992 Set_Flag177
(Id
, V
);
5993 end Set_Size_Depends_On_Discriminant
;
5995 procedure Set_Size_Known_At_Compile_Time
(Id
: E
; V
: B
:= True) is
5998 end Set_Size_Known_At_Compile_Time
;
6000 procedure Set_Small_Value
(Id
: E
; V
: R
) is
6002 pragma Assert
(Is_Fixed_Point_Type
(Id
));
6003 Set_Ureal21
(Id
, V
);
6004 end Set_Small_Value
;
6006 procedure Set_SPARK_Aux_Pragma
(Id
: E
; V
: N
) is
6009 (Ekind_In
(Id
, E_Generic_Package
, -- package variants
6014 end Set_SPARK_Aux_Pragma
;
6016 procedure Set_SPARK_Aux_Pragma_Inherited
(Id
: E
; V
: B
:= True) is
6019 (Ekind_In
(Id
, E_Generic_Package
, -- package variants
6023 Set_Flag266
(Id
, V
);
6024 end Set_SPARK_Aux_Pragma_Inherited
;
6026 procedure Set_SPARK_Pragma
(Id
: E
; V
: N
) is
6029 (Ekind_In
(Id
, E_Function
, -- subprogram variants
6031 E_Generic_Procedure
,
6035 Ekind_In
(Id
, E_Generic_Package
, -- package variants
6040 end Set_SPARK_Pragma
;
6042 procedure Set_SPARK_Pragma_Inherited
(Id
: E
; V
: B
:= True) is
6045 (Ekind_In
(Id
, E_Function
, -- subprogram variants
6047 E_Generic_Procedure
,
6051 Ekind_In
(Id
, E_Generic_Package
, -- package variants
6055 Set_Flag265
(Id
, V
);
6056 end Set_SPARK_Pragma_Inherited
;
6058 procedure Set_Spec_Entity
(Id
: E
; V
: E
) is
6060 pragma Assert
(Ekind
(Id
) = E_Package_Body
or else Is_Formal
(Id
));
6062 end Set_Spec_Entity
;
6064 procedure Set_SSO_Set_High_By_Default
(Id
: E
; V
: B
:= True) is
6068 and then (Is_Record_Type
(Id
) or else Is_Array_Type
(Id
)));
6069 Set_Flag273
(Id
, V
);
6070 end Set_SSO_Set_High_By_Default
;
6072 procedure Set_SSO_Set_Low_By_Default
(Id
: E
; V
: B
:= True) is
6076 and then (Is_Record_Type
(Id
) or else Is_Array_Type
(Id
)));
6077 Set_Flag272
(Id
, V
);
6078 end Set_SSO_Set_Low_By_Default
;
6080 procedure Set_Static_Discrete_Predicate
(Id
: E
; V
: S
) is
6082 pragma Assert
(Is_Discrete_Type
(Id
) and then Has_Predicates
(Id
));
6084 end Set_Static_Discrete_Predicate
;
6086 procedure Set_Static_Real_Or_String_Predicate
(Id
: E
; V
: N
) is
6088 pragma Assert
((Is_Real_Type
(Id
) or else Is_String_Type
(Id
))
6089 and then Has_Predicates
(Id
));
6091 end Set_Static_Real_Or_String_Predicate
;
6093 procedure Set_Status_Flag_Or_Transient_Decl
(Id
: E
; V
: E
) is
6095 pragma Assert
(Ekind_In
(Id
, E_Constant
, E_Variable
));
6097 end Set_Status_Flag_Or_Transient_Decl
;
6099 procedure Set_Storage_Size_Variable
(Id
: E
; V
: E
) is
6101 pragma Assert
(Is_Access_Type
(Id
) or else Is_Task_Type
(Id
));
6102 pragma Assert
(Id
= Base_Type
(Id
));
6104 end Set_Storage_Size_Variable
;
6106 procedure Set_Static_Elaboration_Desired
(Id
: E
; V
: B
) is
6108 pragma Assert
(Ekind
(Id
) = E_Package
);
6110 end Set_Static_Elaboration_Desired
;
6112 procedure Set_Static_Initialization
(Id
: E
; V
: N
) is
6115 (Ekind
(Id
) = E_Procedure
and then not Is_Dispatching_Operation
(Id
));
6117 end Set_Static_Initialization
;
6119 procedure Set_Stored_Constraint
(Id
: E
; V
: L
) is
6121 pragma Assert
(Nkind
(Id
) in N_Entity
);
6122 Set_Elist23
(Id
, V
);
6123 end Set_Stored_Constraint
;
6125 procedure Set_Stores_Attribute_Old_Prefix
(Id
: E
; V
: B
:= True) is
6127 pragma Assert
(Ekind
(Id
) = E_Constant
);
6128 Set_Flag270
(Id
, V
);
6129 end Set_Stores_Attribute_Old_Prefix
;
6131 procedure Set_Strict_Alignment
(Id
: E
; V
: B
:= True) is
6133 pragma Assert
(Id
= Base_Type
(Id
));
6134 Set_Flag145
(Id
, V
);
6135 end Set_Strict_Alignment
;
6137 procedure Set_String_Literal_Length
(Id
: E
; V
: U
) is
6139 pragma Assert
(Ekind
(Id
) = E_String_Literal_Subtype
);
6141 end Set_String_Literal_Length
;
6143 procedure Set_String_Literal_Low_Bound
(Id
: E
; V
: N
) is
6145 pragma Assert
(Ekind
(Id
) = E_String_Literal_Subtype
);
6147 end Set_String_Literal_Low_Bound
;
6149 procedure Set_Subprograms_For_Type
(Id
: E
; V
: E
) is
6151 pragma Assert
(Is_Type
(Id
) or else Is_Subprogram
(Id
));
6153 end Set_Subprograms_For_Type
;
6155 procedure Set_Subps_Index
(Id
: E
; V
: U
) is
6157 pragma Assert
(Is_Subprogram
(Id
));
6159 end Set_Subps_Index
;
6161 procedure Set_Suppress_Elaboration_Warnings
(Id
: E
; V
: B
:= True) is
6163 Set_Flag148
(Id
, V
);
6164 end Set_Suppress_Elaboration_Warnings
;
6166 procedure Set_Suppress_Initialization
(Id
: E
; V
: B
:= True) is
6168 pragma Assert
(Is_Type
(Id
) or else Ekind
(Id
) = E_Variable
);
6169 Set_Flag105
(Id
, V
);
6170 end Set_Suppress_Initialization
;
6172 procedure Set_Suppress_Style_Checks
(Id
: E
; V
: B
:= True) is
6174 Set_Flag165
(Id
, V
);
6175 end Set_Suppress_Style_Checks
;
6177 procedure Set_Suppress_Value_Tracking_On_Call
(Id
: E
; V
: B
:= True) is
6179 Set_Flag217
(Id
, V
);
6180 end Set_Suppress_Value_Tracking_On_Call
;
6182 procedure Set_Task_Body_Procedure
(Id
: E
; V
: N
) is
6184 pragma Assert
(Ekind
(Id
) in Task_Kind
);
6186 end Set_Task_Body_Procedure
;
6188 procedure Set_Thunk_Entity
(Id
: E
; V
: E
) is
6190 pragma Assert
(Ekind_In
(Id
, E_Function
, E_Procedure
)
6191 and then Is_Thunk
(Id
));
6193 end Set_Thunk_Entity
;
6195 procedure Set_Treat_As_Volatile
(Id
: E
; V
: B
:= True) is
6198 end Set_Treat_As_Volatile
;
6200 procedure Set_Underlying_Full_View
(Id
: E
; V
: E
) is
6202 pragma Assert
(Ekind
(Id
) in Private_Kind
);
6204 end Set_Underlying_Full_View
;
6206 procedure Set_Underlying_Record_View
(Id
: E
; V
: E
) is
6208 pragma Assert
(Ekind
(Id
) = E_Record_Type
);
6210 end Set_Underlying_Record_View
;
6212 procedure Set_Universal_Aliasing
(Id
: E
; V
: B
:= True) is
6214 pragma Assert
(Is_Type
(Id
) and then Is_Base_Type
(Id
));
6215 Set_Flag216
(Id
, V
);
6216 end Set_Universal_Aliasing
;
6218 procedure Set_Unset_Reference
(Id
: E
; V
: N
) is
6221 end Set_Unset_Reference
;
6223 procedure Set_Uplevel_Reference_Noted
(Id
: E
; V
: B
:= True) is
6225 Set_Flag283
(Id
, V
);
6226 end Set_Uplevel_Reference_Noted
;
6228 procedure Set_Uplevel_References
(Id
: E
; V
: L
) is
6230 pragma Assert
(Is_Subprogram
(Id
));
6231 Set_Elist24
(Id
, V
);
6232 end Set_Uplevel_References
;
6234 procedure Set_Used_As_Generic_Actual
(Id
: E
; V
: B
:= True) is
6236 Set_Flag222
(Id
, V
);
6237 end Set_Used_As_Generic_Actual
;
6239 procedure Set_Uses_Lock_Free
(Id
: E
; V
: B
:= True) is
6241 pragma Assert
(Ekind
(Id
) = E_Protected_Type
);
6242 Set_Flag188
(Id
, V
);
6243 end Set_Uses_Lock_Free
;
6245 procedure Set_Uses_Sec_Stack
(Id
: E
; V
: B
:= True) is
6248 end Set_Uses_Sec_Stack
;
6250 procedure Set_Warnings_Off
(Id
: E
; V
: B
:= True) is
6253 end Set_Warnings_Off
;
6255 procedure Set_Warnings_Off_Used
(Id
: E
; V
: B
:= True) is
6257 Set_Flag236
(Id
, V
);
6258 end Set_Warnings_Off_Used
;
6260 procedure Set_Warnings_Off_Used_Unmodified
(Id
: E
; V
: B
:= True) is
6262 Set_Flag237
(Id
, V
);
6263 end Set_Warnings_Off_Used_Unmodified
;
6265 procedure Set_Warnings_Off_Used_Unreferenced
(Id
: E
; V
: B
:= True) is
6267 Set_Flag238
(Id
, V
);
6268 end Set_Warnings_Off_Used_Unreferenced
;
6270 procedure Set_Was_Hidden
(Id
: E
; V
: B
:= True) is
6272 Set_Flag196
(Id
, V
);
6275 procedure Set_Wrapped_Entity
(Id
: E
; V
: E
) is
6277 pragma Assert
(Ekind_In
(Id
, E_Function
, E_Procedure
)
6278 and then Is_Primitive_Wrapper
(Id
));
6280 end Set_Wrapped_Entity
;
6282 -----------------------------------
6283 -- Field Initialization Routines --
6284 -----------------------------------
6286 procedure Init_Alignment
(Id
: E
) is
6288 Set_Uint14
(Id
, Uint_0
);
6291 procedure Init_Alignment
(Id
: E
; V
: Int
) is
6293 Set_Uint14
(Id
, UI_From_Int
(V
));
6296 procedure Init_Component_Bit_Offset
(Id
: E
) is
6298 Set_Uint11
(Id
, No_Uint
);
6299 end Init_Component_Bit_Offset
;
6301 procedure Init_Component_Bit_Offset
(Id
: E
; V
: Int
) is
6303 Set_Uint11
(Id
, UI_From_Int
(V
));
6304 end Init_Component_Bit_Offset
;
6306 procedure Init_Component_Size
(Id
: E
) is
6308 Set_Uint22
(Id
, Uint_0
);
6309 end Init_Component_Size
;
6311 procedure Init_Component_Size
(Id
: E
; V
: Int
) is
6313 Set_Uint22
(Id
, UI_From_Int
(V
));
6314 end Init_Component_Size
;
6316 procedure Init_Digits_Value
(Id
: E
) is
6318 Set_Uint17
(Id
, Uint_0
);
6319 end Init_Digits_Value
;
6321 procedure Init_Digits_Value
(Id
: E
; V
: Int
) is
6323 Set_Uint17
(Id
, UI_From_Int
(V
));
6324 end Init_Digits_Value
;
6326 procedure Init_Esize
(Id
: E
) is
6328 Set_Uint12
(Id
, Uint_0
);
6331 procedure Init_Esize
(Id
: E
; V
: Int
) is
6333 Set_Uint12
(Id
, UI_From_Int
(V
));
6336 procedure Init_Normalized_First_Bit
(Id
: E
) is
6338 Set_Uint8
(Id
, No_Uint
);
6339 end Init_Normalized_First_Bit
;
6341 procedure Init_Normalized_First_Bit
(Id
: E
; V
: Int
) is
6343 Set_Uint8
(Id
, UI_From_Int
(V
));
6344 end Init_Normalized_First_Bit
;
6346 procedure Init_Normalized_Position
(Id
: E
) is
6348 Set_Uint14
(Id
, No_Uint
);
6349 end Init_Normalized_Position
;
6351 procedure Init_Normalized_Position
(Id
: E
; V
: Int
) is
6353 Set_Uint14
(Id
, UI_From_Int
(V
));
6354 end Init_Normalized_Position
;
6356 procedure Init_Normalized_Position_Max
(Id
: E
) is
6358 Set_Uint10
(Id
, No_Uint
);
6359 end Init_Normalized_Position_Max
;
6361 procedure Init_Normalized_Position_Max
(Id
: E
; V
: Int
) is
6363 Set_Uint10
(Id
, UI_From_Int
(V
));
6364 end Init_Normalized_Position_Max
;
6366 procedure Init_RM_Size
(Id
: E
) is
6368 Set_Uint13
(Id
, Uint_0
);
6371 procedure Init_RM_Size
(Id
: E
; V
: Int
) is
6373 Set_Uint13
(Id
, UI_From_Int
(V
));
6376 -----------------------------
6377 -- Init_Component_Location --
6378 -----------------------------
6380 procedure Init_Component_Location
(Id
: E
) is
6382 Set_Uint8
(Id
, No_Uint
); -- Normalized_First_Bit
6383 Set_Uint10
(Id
, No_Uint
); -- Normalized_Position_Max
6384 Set_Uint11
(Id
, No_Uint
); -- Component_Bit_Offset
6385 Set_Uint12
(Id
, Uint_0
); -- Esize
6386 Set_Uint14
(Id
, No_Uint
); -- Normalized_Position
6387 end Init_Component_Location
;
6389 ----------------------------
6390 -- Init_Object_Size_Align --
6391 ----------------------------
6393 procedure Init_Object_Size_Align
(Id
: E
) is
6395 Set_Uint12
(Id
, Uint_0
); -- Esize
6396 Set_Uint14
(Id
, Uint_0
); -- Alignment
6397 end Init_Object_Size_Align
;
6403 procedure Init_Size
(Id
: E
; V
: Int
) is
6405 pragma Assert
(not Is_Object
(Id
));
6406 Set_Uint12
(Id
, UI_From_Int
(V
)); -- Esize
6407 Set_Uint13
(Id
, UI_From_Int
(V
)); -- RM_Size
6410 ---------------------
6411 -- Init_Size_Align --
6412 ---------------------
6414 procedure Init_Size_Align
(Id
: E
) is
6416 pragma Assert
(not Is_Object
(Id
));
6417 Set_Uint12
(Id
, Uint_0
); -- Esize
6418 Set_Uint13
(Id
, Uint_0
); -- RM_Size
6419 Set_Uint14
(Id
, Uint_0
); -- Alignment
6420 end Init_Size_Align
;
6422 ----------------------------------------------
6423 -- Type Representation Attribute Predicates --
6424 ----------------------------------------------
6426 function Known_Alignment
(E
: Entity_Id
) return B
is
6428 return Uint14
(E
) /= Uint_0
6429 and then Uint14
(E
) /= No_Uint
;
6430 end Known_Alignment
;
6432 function Known_Component_Bit_Offset
(E
: Entity_Id
) return B
is
6434 return Uint11
(E
) /= No_Uint
;
6435 end Known_Component_Bit_Offset
;
6437 function Known_Component_Size
(E
: Entity_Id
) return B
is
6439 return Uint22
(Base_Type
(E
)) /= Uint_0
6440 and then Uint22
(Base_Type
(E
)) /= No_Uint
;
6441 end Known_Component_Size
;
6443 function Known_Esize
(E
: Entity_Id
) return B
is
6445 return Uint12
(E
) /= Uint_0
6446 and then Uint12
(E
) /= No_Uint
;
6449 function Known_Normalized_First_Bit
(E
: Entity_Id
) return B
is
6451 return Uint8
(E
) /= No_Uint
;
6452 end Known_Normalized_First_Bit
;
6454 function Known_Normalized_Position
(E
: Entity_Id
) return B
is
6456 return Uint14
(E
) /= No_Uint
;
6457 end Known_Normalized_Position
;
6459 function Known_Normalized_Position_Max
(E
: Entity_Id
) return B
is
6461 return Uint10
(E
) /= No_Uint
;
6462 end Known_Normalized_Position_Max
;
6464 function Known_RM_Size
(E
: Entity_Id
) return B
is
6466 return Uint13
(E
) /= No_Uint
6467 and then (Uint13
(E
) /= Uint_0
6468 or else Is_Discrete_Type
(E
)
6469 or else Is_Fixed_Point_Type
(E
));
6472 function Known_Static_Component_Bit_Offset
(E
: Entity_Id
) return B
is
6474 return Uint11
(E
) /= No_Uint
6475 and then Uint11
(E
) >= Uint_0
;
6476 end Known_Static_Component_Bit_Offset
;
6478 function Known_Static_Component_Size
(E
: Entity_Id
) return B
is
6480 return Uint22
(Base_Type
(E
)) > Uint_0
;
6481 end Known_Static_Component_Size
;
6483 function Known_Static_Esize
(E
: Entity_Id
) return B
is
6485 return Uint12
(E
) > Uint_0
6486 and then not Is_Generic_Type
(E
);
6487 end Known_Static_Esize
;
6489 function Known_Static_Normalized_First_Bit
(E
: Entity_Id
) return B
is
6491 return Uint8
(E
) /= No_Uint
6492 and then Uint8
(E
) >= Uint_0
;
6493 end Known_Static_Normalized_First_Bit
;
6495 function Known_Static_Normalized_Position
(E
: Entity_Id
) return B
is
6497 return Uint14
(E
) /= No_Uint
6498 and then Uint14
(E
) >= Uint_0
;
6499 end Known_Static_Normalized_Position
;
6501 function Known_Static_Normalized_Position_Max
(E
: Entity_Id
) return B
is
6503 return Uint10
(E
) /= No_Uint
6504 and then Uint10
(E
) >= Uint_0
;
6505 end Known_Static_Normalized_Position_Max
;
6507 function Known_Static_RM_Size
(E
: Entity_Id
) return B
is
6509 return (Uint13
(E
) > Uint_0
6510 or else Is_Discrete_Type
(E
)
6511 or else Is_Fixed_Point_Type
(E
))
6512 and then not Is_Generic_Type
(E
);
6513 end Known_Static_RM_Size
;
6515 function Unknown_Alignment
(E
: Entity_Id
) return B
is
6517 return Uint14
(E
) = Uint_0
6518 or else Uint14
(E
) = No_Uint
;
6519 end Unknown_Alignment
;
6521 function Unknown_Component_Bit_Offset
(E
: Entity_Id
) return B
is
6523 return Uint11
(E
) = No_Uint
;
6524 end Unknown_Component_Bit_Offset
;
6526 function Unknown_Component_Size
(E
: Entity_Id
) return B
is
6528 return Uint22
(Base_Type
(E
)) = Uint_0
6530 Uint22
(Base_Type
(E
)) = No_Uint
;
6531 end Unknown_Component_Size
;
6533 function Unknown_Esize
(E
: Entity_Id
) return B
is
6535 return Uint12
(E
) = No_Uint
6537 Uint12
(E
) = Uint_0
;
6540 function Unknown_Normalized_First_Bit
(E
: Entity_Id
) return B
is
6542 return Uint8
(E
) = No_Uint
;
6543 end Unknown_Normalized_First_Bit
;
6545 function Unknown_Normalized_Position
(E
: Entity_Id
) return B
is
6547 return Uint14
(E
) = No_Uint
;
6548 end Unknown_Normalized_Position
;
6550 function Unknown_Normalized_Position_Max
(E
: Entity_Id
) return B
is
6552 return Uint10
(E
) = No_Uint
;
6553 end Unknown_Normalized_Position_Max
;
6555 function Unknown_RM_Size
(E
: Entity_Id
) return B
is
6557 return (Uint13
(E
) = Uint_0
6558 and then not Is_Discrete_Type
(E
)
6559 and then not Is_Fixed_Point_Type
(E
))
6560 or else Uint13
(E
) = No_Uint
;
6561 end Unknown_RM_Size
;
6563 --------------------
6564 -- Address_Clause --
6565 --------------------
6567 function Address_Clause
(Id
: E
) return N
is
6569 return Get_Attribute_Definition_Clause
(Id
, Attribute_Address
);
6576 function Aft_Value
(Id
: E
) return U
is
6578 Delta_Val
: Ureal
:= Delta_Value
(Id
);
6580 while Delta_Val
< Ureal_Tenth
loop
6581 Delta_Val
:= Delta_Val
* Ureal_10
;
6582 Result
:= Result
+ 1;
6585 return UI_From_Int
(Result
);
6588 ----------------------
6589 -- Alignment_Clause --
6590 ----------------------
6592 function Alignment_Clause
(Id
: E
) return N
is
6594 return Get_Attribute_Definition_Clause
(Id
, Attribute_Alignment
);
6595 end Alignment_Clause
;
6601 procedure Append_Entity
(Id
: Entity_Id
; V
: Entity_Id
) is
6603 if Last_Entity
(V
) = Empty
then
6604 Set_First_Entity
(Id
=> V
, V
=> Id
);
6606 Set_Next_Entity
(Last_Entity
(V
), Id
);
6609 Set_Next_Entity
(Id
, Empty
);
6611 Set_Last_Entity
(Id
=> V
, V
=> Id
);
6618 function Base_Type
(Id
: E
) return E
is
6620 if Is_Base_Type
(Id
) then
6623 pragma Assert
(Is_Type
(Id
));
6628 -------------------------
6629 -- Component_Alignment --
6630 -------------------------
6632 -- Component Alignment is encoded using two flags, Flag128/129 as
6633 -- follows. Note that both flags False = Align_Default, so that the
6634 -- default initialization of flags to False initializes component
6635 -- alignment to the default value as required.
6637 -- Flag128 Flag129 Value
6638 -- ------- ------- -----
6639 -- False False Calign_Default
6640 -- False True Calign_Component_Size
6641 -- True False Calign_Component_Size_4
6642 -- True True Calign_Storage_Unit
6644 function Component_Alignment
(Id
: E
) return C
is
6645 BT
: constant Node_Id
:= Base_Type
(Id
);
6648 pragma Assert
(Is_Array_Type
(Id
) or else Is_Record_Type
(Id
));
6650 if Flag128
(BT
) then
6651 if Flag129
(BT
) then
6652 return Calign_Storage_Unit
;
6654 return Calign_Component_Size_4
;
6658 if Flag129
(BT
) then
6659 return Calign_Component_Size
;
6661 return Calign_Default
;
6664 end Component_Alignment
;
6666 ----------------------
6667 -- Declaration_Node --
6668 ----------------------
6670 function Declaration_Node
(Id
: E
) return N
is
6674 if Ekind
(Id
) = E_Incomplete_Type
6675 and then Present
(Full_View
(Id
))
6677 P
:= Parent
(Full_View
(Id
));
6683 if Nkind
(P
) /= N_Selected_Component
6684 and then Nkind
(P
) /= N_Expanded_Name
6686 not (Nkind
(P
) = N_Defining_Program_Unit_Name
6687 and then Is_Child_Unit
(Id
))
6694 end Declaration_Node
;
6696 ---------------------------------
6697 -- Default_Init_Cond_Procedure --
6698 ---------------------------------
6700 function Default_Init_Cond_Procedure
(Id
: E
) return E
is
6706 and then (Has_Default_Init_Cond
(Id
)
6707 or Has_Inherited_Default_Init_Cond
(Id
)));
6709 S
:= Subprograms_For_Type
(Id
);
6710 while Present
(S
) loop
6711 if Is_Default_Init_Cond_Procedure
(S
) then
6715 S
:= Subprograms_For_Type
(S
);
6719 end Default_Init_Cond_Procedure
;
6721 ---------------------
6722 -- Designated_Type --
6723 ---------------------
6725 function Designated_Type
(Id
: E
) return E
is
6729 Desig_Type
:= Directly_Designated_Type
(Id
);
6731 if Ekind
(Desig_Type
) = E_Incomplete_Type
6732 and then Present
(Full_View
(Desig_Type
))
6734 return Full_View
(Desig_Type
);
6736 elsif Is_Class_Wide_Type
(Desig_Type
)
6737 and then Ekind
(Etype
(Desig_Type
)) = E_Incomplete_Type
6738 and then Present
(Full_View
(Etype
(Desig_Type
)))
6739 and then Present
(Class_Wide_Type
(Full_View
(Etype
(Desig_Type
))))
6741 return Class_Wide_Type
(Full_View
(Etype
(Desig_Type
)));
6746 end Designated_Type
;
6748 ----------------------
6749 -- Entry_Index_Type --
6750 ----------------------
6752 function Entry_Index_Type
(Id
: E
) return N
is
6754 pragma Assert
(Ekind
(Id
) = E_Entry_Family
);
6755 return Etype
(Discrete_Subtype_Definition
(Parent
(Id
)));
6756 end Entry_Index_Type
;
6758 ---------------------
6759 -- First_Component --
6760 ---------------------
6762 function First_Component
(Id
: E
) return E
is
6767 (Is_Record_Type
(Id
) or else Is_Incomplete_Or_Private_Type
(Id
));
6769 Comp_Id
:= First_Entity
(Id
);
6770 while Present
(Comp_Id
) loop
6771 exit when Ekind
(Comp_Id
) = E_Component
;
6772 Comp_Id
:= Next_Entity
(Comp_Id
);
6776 end First_Component
;
6778 -------------------------------------
6779 -- First_Component_Or_Discriminant --
6780 -------------------------------------
6782 function First_Component_Or_Discriminant
(Id
: E
) return E
is
6787 (Is_Record_Type
(Id
)
6788 or else Is_Incomplete_Or_Private_Type
(Id
)
6789 or else Has_Discriminants
(Id
));
6791 Comp_Id
:= First_Entity
(Id
);
6792 while Present
(Comp_Id
) loop
6793 exit when Ekind_In
(Comp_Id
, E_Component
, E_Discriminant
);
6794 Comp_Id
:= Next_Entity
(Comp_Id
);
6798 end First_Component_Or_Discriminant
;
6804 function First_Formal
(Id
: E
) return E
is
6809 (Is_Generic_Subprogram
(Id
)
6810 or else Is_Overloadable
(Id
)
6811 or else Ekind_In
(Id
, E_Entry_Family
,
6813 E_Subprogram_Type
));
6815 if Ekind
(Id
) = E_Enumeration_Literal
then
6819 Formal
:= First_Entity
(Id
);
6821 -- The first/next entity chain of a generic subprogram contains all
6822 -- generic formal parameters, followed by the formal parameters. Go
6823 -- directly to the parameters by skipping the formal part.
6825 if Is_Generic_Subprogram
(Id
) then
6826 while Present
(Formal
) and then not Is_Formal
(Formal
) loop
6827 Next_Entity
(Formal
);
6831 if Present
(Formal
) and then Is_Formal
(Formal
) then
6839 ------------------------------
6840 -- First_Formal_With_Extras --
6841 ------------------------------
6843 function First_Formal_With_Extras
(Id
: E
) return E
is
6848 (Is_Generic_Subprogram
(Id
)
6849 or else Is_Overloadable
(Id
)
6850 or else Ekind_In
(Id
, E_Entry_Family
,
6852 E_Subprogram_Type
));
6854 if Ekind
(Id
) = E_Enumeration_Literal
then
6858 Formal
:= First_Entity
(Id
);
6860 -- The first/next entity chain of a generic subprogram contains all
6861 -- generic formal parameters, followed by the formal parameters. Go
6862 -- directly to the parameters by skipping the formal part.
6864 if Is_Generic_Subprogram
(Id
) then
6865 while Present
(Formal
) and then not Is_Formal
(Formal
) loop
6866 Next_Entity
(Formal
);
6870 if Present
(Formal
) and then Is_Formal
(Formal
) then
6873 return Extra_Formals
(Id
); -- Empty if no extra formals
6876 end First_Formal_With_Extras
;
6878 -------------------------------------
6879 -- Get_Attribute_Definition_Clause --
6880 -------------------------------------
6882 function Get_Attribute_Definition_Clause
6884 Id
: Attribute_Id
) return Node_Id
6889 N
:= First_Rep_Item
(E
);
6890 while Present
(N
) loop
6891 if Nkind
(N
) = N_Attribute_Definition_Clause
6892 and then Get_Attribute_Id
(Chars
(N
)) = Id
6901 end Get_Attribute_Definition_Clause
;
6907 function Get_Full_View
(T
: Entity_Id
) return Entity_Id
is
6909 if Ekind
(T
) = E_Incomplete_Type
and then Present
(Full_View
(T
)) then
6910 return Full_View
(T
);
6912 elsif Is_Class_Wide_Type
(T
)
6913 and then Ekind
(Root_Type
(T
)) = E_Incomplete_Type
6914 and then Present
(Full_View
(Root_Type
(T
)))
6916 return Class_Wide_Type
(Full_View
(Root_Type
(T
)));
6927 function Get_Pragma
(E
: Entity_Id
; Id
: Pragma_Id
) return Node_Id
is
6928 Is_CDG
: constant Boolean :=
6929 Id
= Pragma_Abstract_State
or else
6930 Id
= Pragma_Async_Readers
or else
6931 Id
= Pragma_Async_Writers
or else
6932 Id
= Pragma_Depends
or else
6933 Id
= Pragma_Effective_Reads
or else
6934 Id
= Pragma_Effective_Writes
or else
6935 Id
= Pragma_Extensions_Visible
or else
6936 Id
= Pragma_Global
or else
6937 Id
= Pragma_Initial_Condition
or else
6938 Id
= Pragma_Initializes
or else
6939 Id
= Pragma_Part_Of
or else
6940 Id
= Pragma_Refined_Depends
or else
6941 Id
= Pragma_Refined_Global
or else
6942 Id
= Pragma_Refined_State
;
6943 Is_CTC
: constant Boolean :=
6944 Id
= Pragma_Contract_Cases
or else
6945 Id
= Pragma_Test_Case
;
6946 Is_PPC
: constant Boolean :=
6947 Id
= Pragma_Precondition
or else
6948 Id
= Pragma_Postcondition
or else
6949 Id
= Pragma_Refined_Post
;
6951 In_Contract
: constant Boolean := Is_CDG
or Is_CTC
or Is_PPC
;
6957 -- Handle pragmas that appear in N_Contract nodes. Those have to be
6958 -- extracted from their specialized list.
6961 Items
:= Contract
(E
);
6967 Item
:= Classifications
(Items
);
6970 Item
:= Contract_Test_Cases
(Items
);
6973 Item
:= Pre_Post_Conditions
(Items
);
6979 Item
:= First_Rep_Item
(E
);
6982 while Present
(Item
) loop
6983 if Nkind
(Item
) = N_Pragma
6984 and then Get_Pragma_Id
(Pragma_Name
(Item
)) = Id
6988 -- All nodes in N_Contract are chained using Next_Pragma
6990 elsif In_Contract
then
6991 Item
:= Next_Pragma
(Item
);
6996 Next_Rep_Item
(Item
);
7003 --------------------------------------
7004 -- Get_Record_Representation_Clause --
7005 --------------------------------------
7007 function Get_Record_Representation_Clause
(E
: Entity_Id
) return Node_Id
is
7011 N
:= First_Rep_Item
(E
);
7012 while Present
(N
) loop
7013 if Nkind
(N
) = N_Record_Representation_Clause
then
7021 end Get_Record_Representation_Clause
;
7023 ------------------------
7024 -- Has_Attach_Handler --
7025 ------------------------
7027 function Has_Attach_Handler
(Id
: E
) return B
is
7031 pragma Assert
(Is_Protected_Type
(Id
));
7033 Ritem
:= First_Rep_Item
(Id
);
7034 while Present
(Ritem
) loop
7035 if Nkind
(Ritem
) = N_Pragma
7036 and then Pragma_Name
(Ritem
) = Name_Attach_Handler
7040 Next_Rep_Item
(Ritem
);
7045 end Has_Attach_Handler
;
7051 function Has_Entries
(Id
: E
) return B
is
7055 pragma Assert
(Is_Concurrent_Type
(Id
));
7057 Ent
:= First_Entity
(Id
);
7058 while Present
(Ent
) loop
7059 if Is_Entry
(Ent
) then
7063 Ent
:= Next_Entity
(Ent
);
7069 ----------------------------
7070 -- Has_Foreign_Convention --
7071 ----------------------------
7073 function Has_Foreign_Convention
(Id
: E
) return B
is
7075 -- While regular Intrinsics such as the Standard operators fit in the
7076 -- "Ada" convention, those with an Interface_Name materialize GCC
7077 -- builtin imports for which Ada special treatments shouldn't apply.
7079 return Convention
(Id
) in Foreign_Convention
7080 or else (Convention
(Id
) = Convention_Intrinsic
7081 and then Present
(Interface_Name
(Id
)));
7082 end Has_Foreign_Convention
;
7084 ---------------------------
7085 -- Has_Interrupt_Handler --
7086 ---------------------------
7088 function Has_Interrupt_Handler
(Id
: E
) return B
is
7092 pragma Assert
(Is_Protected_Type
(Id
));
7094 Ritem
:= First_Rep_Item
(Id
);
7095 while Present
(Ritem
) loop
7096 if Nkind
(Ritem
) = N_Pragma
7097 and then Pragma_Name
(Ritem
) = Name_Interrupt_Handler
7101 Next_Rep_Item
(Ritem
);
7106 end Has_Interrupt_Handler
;
7108 -----------------------------
7109 -- Has_Non_Null_Refinement --
7110 -----------------------------
7112 function Has_Non_Null_Refinement
(Id
: E
) return B
is
7114 -- "Refinement" is a concept applicable only to abstract states
7116 pragma Assert
(Ekind
(Id
) = E_Abstract_State
);
7118 if Has_Visible_Refinement
(Id
) then
7119 pragma Assert
(Present
(Refinement_Constituents
(Id
)));
7121 -- For a refinement to be non-null, the first constituent must be
7122 -- anything other than null.
7125 Nkind
(Node
(First_Elmt
(Refinement_Constituents
(Id
)))) /= N_Null
;
7129 end Has_Non_Null_Refinement
;
7131 -----------------------------
7132 -- Has_Null_Abstract_State --
7133 -----------------------------
7135 function Has_Null_Abstract_State
(Id
: E
) return B
is
7137 pragma Assert
(Ekind_In
(Id
, E_Generic_Package
, E_Package
));
7140 Present
(Abstract_States
(Id
))
7141 and then Is_Null_State
(Node
(First_Elmt
(Abstract_States
(Id
))));
7142 end Has_Null_Abstract_State
;
7144 -------------------------
7145 -- Has_Null_Refinement --
7146 -------------------------
7148 function Has_Null_Refinement
(Id
: E
) return B
is
7150 -- "Refinement" is a concept applicable only to abstract states
7152 pragma Assert
(Ekind
(Id
) = E_Abstract_State
);
7154 if Has_Visible_Refinement
(Id
) then
7155 pragma Assert
(Present
(Refinement_Constituents
(Id
)));
7157 -- For a refinement to be null, the state's sole constituent must be
7161 Nkind
(Node
(First_Elmt
(Refinement_Constituents
(Id
)))) = N_Null
;
7165 end Has_Null_Refinement
;
7167 --------------------
7168 -- Has_Unmodified --
7169 --------------------
7171 function Has_Unmodified
(E
: Entity_Id
) return Boolean is
7173 if Has_Pragma_Unmodified
(E
) then
7175 elsif Warnings_Off
(E
) then
7176 Set_Warnings_Off_Used_Unmodified
(E
);
7183 ---------------------
7184 -- Has_Unreferenced --
7185 ---------------------
7187 function Has_Unreferenced
(E
: Entity_Id
) return Boolean is
7189 if Has_Pragma_Unreferenced
(E
) then
7191 elsif Warnings_Off
(E
) then
7192 Set_Warnings_Off_Used_Unreferenced
(E
);
7197 end Has_Unreferenced
;
7199 ----------------------
7200 -- Has_Warnings_Off --
7201 ----------------------
7203 function Has_Warnings_Off
(E
: Entity_Id
) return Boolean is
7205 if Warnings_Off
(E
) then
7206 Set_Warnings_Off_Used
(E
);
7211 end Has_Warnings_Off
;
7213 ------------------------------
7214 -- Implementation_Base_Type --
7215 ------------------------------
7217 function Implementation_Base_Type
(Id
: E
) return E
is
7222 Bastyp
:= Base_Type
(Id
);
7224 if Is_Incomplete_Or_Private_Type
(Bastyp
) then
7225 Imptyp
:= Underlying_Type
(Bastyp
);
7227 -- If we have an implementation type, then just return it,
7228 -- otherwise we return the Base_Type anyway. This can only
7229 -- happen in error situations and should avoid some error bombs.
7231 if Present
(Imptyp
) then
7232 return Base_Type
(Imptyp
);
7240 end Implementation_Base_Type
;
7242 -------------------------
7243 -- Invariant_Procedure --
7244 -------------------------
7246 function Invariant_Procedure
(Id
: E
) return E
is
7250 pragma Assert
(Is_Type
(Id
) and then Has_Invariants
(Id
));
7252 if No
(Subprograms_For_Type
(Id
)) then
7256 S
:= Subprograms_For_Type
(Id
);
7257 while Present
(S
) loop
7258 if Is_Invariant_Procedure
(S
) then
7261 S
:= Subprograms_For_Type
(S
);
7267 end Invariant_Procedure
;
7273 -- Global flag table allowing rapid computation of this function
7275 Entity_Is_Base_Type
: constant array (Entity_Kind
) of Boolean :=
7276 (E_Enumeration_Subtype |
7278 E_Signed_Integer_Subtype |
7279 E_Modular_Integer_Subtype |
7280 E_Floating_Point_Subtype |
7281 E_Ordinary_Fixed_Point_Subtype |
7282 E_Decimal_Fixed_Point_Subtype |
7287 E_Record_Subtype_With_Private |
7288 E_Limited_Private_Subtype |
7290 E_Protected_Subtype |
7292 E_String_Literal_Subtype |
7293 E_Class_Wide_Subtype
=> False,
7296 function Is_Base_Type
(Id
: E
) return Boolean is
7298 return Entity_Is_Base_Type
(Ekind
(Id
));
7301 ---------------------
7302 -- Is_Boolean_Type --
7303 ---------------------
7305 function Is_Boolean_Type
(Id
: E
) return B
is
7307 return Root_Type
(Id
) = Standard_Boolean
;
7308 end Is_Boolean_Type
;
7310 ------------------------
7311 -- Is_Constant_Object --
7312 ------------------------
7314 function Is_Constant_Object
(Id
: E
) return B
is
7315 K
: constant Entity_Kind
:= Ekind
(Id
);
7318 K
= E_Constant
or else K
= E_In_Parameter
or else K
= E_Loop_Parameter
;
7319 end Is_Constant_Object
;
7321 --------------------
7322 -- Is_Discriminal --
7323 --------------------
7325 function Is_Discriminal
(Id
: E
) return B
is
7327 return (Ekind_In
(Id
, E_Constant
, E_In_Parameter
)
7328 and then Present
(Discriminal_Link
(Id
)));
7331 ----------------------
7332 -- Is_Dynamic_Scope --
7333 ----------------------
7335 function Is_Dynamic_Scope
(Id
: E
) return B
is
7338 Ekind
(Id
) = E_Block
7340 Ekind
(Id
) = E_Function
7342 Ekind
(Id
) = E_Procedure
7344 Ekind
(Id
) = E_Subprogram_Body
7346 Ekind
(Id
) = E_Task_Type
7348 (Ekind
(Id
) = E_Limited_Private_Type
7349 and then Present
(Full_View
(Id
))
7350 and then Ekind
(Full_View
(Id
)) = E_Task_Type
)
7352 Ekind
(Id
) = E_Entry
7354 Ekind
(Id
) = E_Entry_Family
7356 Ekind
(Id
) = E_Return_Statement
;
7357 end Is_Dynamic_Scope
;
7359 --------------------
7360 -- Is_Entity_Name --
7361 --------------------
7363 function Is_Entity_Name
(N
: Node_Id
) return Boolean is
7364 Kind
: constant Node_Kind
:= Nkind
(N
);
7367 -- Identifiers, operator symbols, expanded names are entity names
7369 return Kind
= N_Identifier
7370 or else Kind
= N_Operator_Symbol
7371 or else Kind
= N_Expanded_Name
7373 -- Attribute references are entity names if they refer to an entity.
7374 -- Note that we don't do this by testing for the presence of the
7375 -- Entity field in the N_Attribute_Reference node, since it may not
7376 -- have been set yet.
7378 or else (Kind
= N_Attribute_Reference
7379 and then Is_Entity_Attribute_Name
(Attribute_Name
(N
)));
7382 -----------------------
7383 -- Is_External_State --
7384 -----------------------
7386 function Is_External_State
(Id
: E
) return B
is
7389 Ekind
(Id
) = E_Abstract_State
and then Has_Option
(Id
, Name_External
);
7390 end Is_External_State
;
7396 function Is_Finalizer
(Id
: E
) return B
is
7398 return Ekind
(Id
) = E_Procedure
and then Chars
(Id
) = Name_uFinalizer
;
7405 function Is_Null_State
(Id
: E
) return B
is
7408 Ekind
(Id
) = E_Abstract_State
and then Nkind
(Parent
(Id
)) = N_Null
;
7411 ---------------------
7412 -- Is_Packed_Array --
7413 ---------------------
7415 function Is_Packed_Array
(Id
: E
) return B
is
7417 return Is_Array_Type
(Id
) and then Is_Packed
(Id
);
7418 end Is_Packed_Array
;
7420 -----------------------------------
7421 -- Is_Package_Or_Generic_Package --
7422 -----------------------------------
7424 function Is_Package_Or_Generic_Package
(Id
: E
) return B
is
7426 return Ekind_In
(Id
, E_Generic_Package
, E_Package
);
7427 end Is_Package_Or_Generic_Package
;
7433 function Is_Prival
(Id
: E
) return B
is
7435 return (Ekind_In
(Id
, E_Constant
, E_Variable
)
7436 and then Present
(Prival_Link
(Id
)));
7439 ----------------------------
7440 -- Is_Protected_Component --
7441 ----------------------------
7443 function Is_Protected_Component
(Id
: E
) return B
is
7445 return Ekind
(Id
) = E_Component
and then Is_Protected_Type
(Scope
(Id
));
7446 end Is_Protected_Component
;
7448 ----------------------------
7449 -- Is_Protected_Interface --
7450 ----------------------------
7452 function Is_Protected_Interface
(Id
: E
) return B
is
7453 Typ
: constant Entity_Id
:= Base_Type
(Id
);
7455 if not Is_Interface
(Typ
) then
7457 elsif Is_Class_Wide_Type
(Typ
) then
7458 return Is_Protected_Interface
(Etype
(Typ
));
7460 return Protected_Present
(Type_Definition
(Parent
(Typ
)));
7462 end Is_Protected_Interface
;
7464 ------------------------------
7465 -- Is_Protected_Record_Type --
7466 ------------------------------
7468 function Is_Protected_Record_Type
(Id
: E
) return B
is
7471 Is_Concurrent_Record_Type
(Id
)
7472 and then Is_Protected_Type
(Corresponding_Concurrent_Type
(Id
));
7473 end Is_Protected_Record_Type
;
7475 --------------------------------
7476 -- Is_Standard_Character_Type --
7477 --------------------------------
7479 function Is_Standard_Character_Type
(Id
: E
) return B
is
7481 if Is_Type
(Id
) then
7483 R
: constant Entity_Id
:= Root_Type
(Id
);
7486 R
= Standard_Character
7488 R
= Standard_Wide_Character
7490 R
= Standard_Wide_Wide_Character
;
7496 end Is_Standard_Character_Type
;
7498 -----------------------------
7499 -- Is_Standard_String_Type --
7500 -----------------------------
7502 function Is_Standard_String_Type
(Id
: E
) return B
is
7504 if Is_Type
(Id
) then
7506 R
: constant Entity_Id
:= Root_Type
(Id
);
7511 R
= Standard_Wide_String
7513 R
= Standard_Wide_Wide_String
;
7519 end Is_Standard_String_Type
;
7521 --------------------
7522 -- Is_String_Type --
7523 --------------------
7525 function Is_String_Type
(Id
: E
) return B
is
7527 return Is_Array_Type
(Id
)
7528 and then Id
/= Any_Composite
7529 and then Number_Dimensions
(Id
) = 1
7530 and then Is_Character_Type
(Component_Type
(Id
));
7533 -------------------------------
7534 -- Is_Synchronized_Interface --
7535 -------------------------------
7537 function Is_Synchronized_Interface
(Id
: E
) return B
is
7538 Typ
: constant Entity_Id
:= Base_Type
(Id
);
7541 if not Is_Interface
(Typ
) then
7544 elsif Is_Class_Wide_Type
(Typ
) then
7545 return Is_Synchronized_Interface
(Etype
(Typ
));
7548 return Protected_Present
(Type_Definition
(Parent
(Typ
)))
7549 or else Synchronized_Present
(Type_Definition
(Parent
(Typ
)))
7550 or else Task_Present
(Type_Definition
(Parent
(Typ
)));
7552 end Is_Synchronized_Interface
;
7554 -----------------------
7555 -- Is_Task_Interface --
7556 -----------------------
7558 function Is_Task_Interface
(Id
: E
) return B
is
7559 Typ
: constant Entity_Id
:= Base_Type
(Id
);
7561 if not Is_Interface
(Typ
) then
7563 elsif Is_Class_Wide_Type
(Typ
) then
7564 return Is_Task_Interface
(Etype
(Typ
));
7566 return Task_Present
(Type_Definition
(Parent
(Typ
)));
7568 end Is_Task_Interface
;
7570 -------------------------
7571 -- Is_Task_Record_Type --
7572 -------------------------
7574 function Is_Task_Record_Type
(Id
: E
) return B
is
7577 Is_Concurrent_Record_Type
(Id
)
7578 and then Is_Task_Type
(Corresponding_Concurrent_Type
(Id
));
7579 end Is_Task_Record_Type
;
7581 ------------------------
7582 -- Is_Wrapper_Package --
7583 ------------------------
7585 function Is_Wrapper_Package
(Id
: E
) return B
is
7587 return (Ekind
(Id
) = E_Package
and then Present
(Related_Instance
(Id
)));
7588 end Is_Wrapper_Package
;
7594 function Last_Formal
(Id
: E
) return E
is
7599 (Is_Overloadable
(Id
)
7600 or else Ekind_In
(Id
, E_Entry_Family
,
7602 E_Subprogram_Type
));
7604 if Ekind
(Id
) = E_Enumeration_Literal
then
7608 Formal
:= First_Formal
(Id
);
7610 if Present
(Formal
) then
7611 while Present
(Next_Formal
(Formal
)) loop
7612 Formal
:= Next_Formal
(Formal
);
7620 function Model_Emin_Value
(Id
: E
) return Uint
is
7622 return Machine_Emin_Value
(Id
);
7623 end Model_Emin_Value
;
7625 -------------------------
7626 -- Model_Epsilon_Value --
7627 -------------------------
7629 function Model_Epsilon_Value
(Id
: E
) return Ureal
is
7630 Radix
: constant Ureal
:= UR_From_Uint
(Machine_Radix_Value
(Id
));
7632 return Radix
** (1 - Model_Mantissa_Value
(Id
));
7633 end Model_Epsilon_Value
;
7635 --------------------------
7636 -- Model_Mantissa_Value --
7637 --------------------------
7639 function Model_Mantissa_Value
(Id
: E
) return Uint
is
7641 return Machine_Mantissa_Value
(Id
);
7642 end Model_Mantissa_Value
;
7644 -----------------------
7645 -- Model_Small_Value --
7646 -----------------------
7648 function Model_Small_Value
(Id
: E
) return Ureal
is
7649 Radix
: constant Ureal
:= UR_From_Uint
(Machine_Radix_Value
(Id
));
7651 return Radix
** (Model_Emin_Value
(Id
) - 1);
7652 end Model_Small_Value
;
7654 ------------------------
7655 -- Machine_Emax_Value --
7656 ------------------------
7658 function Machine_Emax_Value
(Id
: E
) return Uint
is
7659 Digs
: constant Pos
:= UI_To_Int
(Digits_Value
(Base_Type
(Id
)));
7662 case Float_Rep
(Id
) is
7665 when 1 .. 6 => return Uint_128
;
7666 when 7 .. 15 => return 2**10;
7667 when 16 .. 33 => return 2**14;
7668 when others => return No_Uint
;
7672 return Uint_2
** Uint_7
- Uint_1
;
7674 end Machine_Emax_Value
;
7676 ------------------------
7677 -- Machine_Emin_Value --
7678 ------------------------
7680 function Machine_Emin_Value
(Id
: E
) return Uint
is
7682 case Float_Rep
(Id
) is
7683 when IEEE_Binary
=> return Uint_3
- Machine_Emax_Value
(Id
);
7684 when AAMP
=> return -Machine_Emax_Value
(Id
);
7686 end Machine_Emin_Value
;
7688 ----------------------------
7689 -- Machine_Mantissa_Value --
7690 ----------------------------
7692 function Machine_Mantissa_Value
(Id
: E
) return Uint
is
7693 Digs
: constant Pos
:= UI_To_Int
(Digits_Value
(Base_Type
(Id
)));
7696 case Float_Rep
(Id
) is
7699 when 1 .. 6 => return Uint_24
;
7700 when 7 .. 15 => return UI_From_Int
(53);
7701 when 16 .. 18 => return Uint_64
;
7702 when 19 .. 33 => return UI_From_Int
(113);
7703 when others => return No_Uint
;
7708 when 1 .. 6 => return Uint_24
;
7709 when 7 .. 9 => return UI_From_Int
(40);
7710 when others => return No_Uint
;
7713 end Machine_Mantissa_Value
;
7715 -------------------------
7716 -- Machine_Radix_Value --
7717 -------------------------
7719 function Machine_Radix_Value
(Id
: E
) return U
is
7721 case Float_Rep
(Id
) is
7722 when IEEE_Binary | AAMP
=>
7725 end Machine_Radix_Value
;
7727 --------------------
7728 -- Next_Component --
7729 --------------------
7731 function Next_Component
(Id
: E
) return E
is
7735 Comp_Id
:= Next_Entity
(Id
);
7736 while Present
(Comp_Id
) loop
7737 exit when Ekind
(Comp_Id
) = E_Component
;
7738 Comp_Id
:= Next_Entity
(Comp_Id
);
7744 ------------------------------------
7745 -- Next_Component_Or_Discriminant --
7746 ------------------------------------
7748 function Next_Component_Or_Discriminant
(Id
: E
) return E
is
7752 Comp_Id
:= Next_Entity
(Id
);
7753 while Present
(Comp_Id
) loop
7754 exit when Ekind_In
(Comp_Id
, E_Component
, E_Discriminant
);
7755 Comp_Id
:= Next_Entity
(Comp_Id
);
7759 end Next_Component_Or_Discriminant
;
7761 -----------------------
7762 -- Next_Discriminant --
7763 -----------------------
7765 -- This function actually implements both Next_Discriminant and
7766 -- Next_Stored_Discriminant by making sure that the Discriminant
7767 -- returned is of the same variety as Id.
7769 function Next_Discriminant
(Id
: E
) return E
is
7771 -- Derived Tagged types with private extensions look like this...
7773 -- E_Discriminant d1
7774 -- E_Discriminant d2
7776 -- E_Discriminant d1
7777 -- E_Discriminant d2
7780 -- so it is critical not to go past the leading discriminants
7785 pragma Assert
(Ekind
(Id
) = E_Discriminant
);
7788 D
:= Next_Entity
(D
);
7790 or else (Ekind
(D
) /= E_Discriminant
7791 and then not Is_Itype
(D
))
7796 exit when Ekind
(D
) = E_Discriminant
7797 and then (Is_Completely_Hidden
(D
) = Is_Completely_Hidden
(Id
));
7801 end Next_Discriminant
;
7807 function Next_Formal
(Id
: E
) return E
is
7811 -- Follow the chain of declared entities as long as the kind of the
7812 -- entity corresponds to a formal parameter. Skip internal entities
7813 -- that may have been created for implicit subtypes, in the process
7814 -- of analyzing default expressions.
7820 if No
(P
) or else Is_Formal
(P
) then
7822 elsif not Is_Internal
(P
) then
7828 -----------------------------
7829 -- Next_Formal_With_Extras --
7830 -----------------------------
7832 function Next_Formal_With_Extras
(Id
: E
) return E
is
7834 if Present
(Extra_Formal
(Id
)) then
7835 return Extra_Formal
(Id
);
7837 return Next_Formal
(Id
);
7839 end Next_Formal_With_Extras
;
7845 function Next_Index
(Id
: Node_Id
) return Node_Id
is
7854 function Next_Literal
(Id
: E
) return E
is
7856 pragma Assert
(Nkind
(Id
) in N_Entity
);
7860 ------------------------------
7861 -- Next_Stored_Discriminant --
7862 ------------------------------
7864 function Next_Stored_Discriminant
(Id
: E
) return E
is
7866 -- See comment in Next_Discriminant
7868 return Next_Discriminant
(Id
);
7869 end Next_Stored_Discriminant
;
7871 -----------------------
7872 -- Number_Dimensions --
7873 -----------------------
7875 function Number_Dimensions
(Id
: E
) return Pos
is
7880 if Ekind
(Id
) = E_String_Literal_Subtype
then
7885 T
:= First_Index
(Id
);
7886 while Present
(T
) loop
7893 end Number_Dimensions
;
7895 --------------------
7896 -- Number_Entries --
7897 --------------------
7899 function Number_Entries
(Id
: E
) return Nat
is
7904 pragma Assert
(Is_Concurrent_Type
(Id
));
7907 Ent
:= First_Entity
(Id
);
7908 while Present
(Ent
) loop
7909 if Is_Entry
(Ent
) then
7913 Ent
:= Next_Entity
(Ent
);
7919 --------------------
7920 -- Number_Formals --
7921 --------------------
7923 function Number_Formals
(Id
: E
) return Pos
is
7929 Formal
:= First_Formal
(Id
);
7930 while Present
(Formal
) loop
7932 Formal
:= Next_Formal
(Formal
);
7938 --------------------
7939 -- Parameter_Mode --
7940 --------------------
7942 function Parameter_Mode
(Id
: E
) return Formal_Kind
is
7947 ------------------------
7948 -- Predicate_Function --
7949 ------------------------
7951 function Predicate_Function
(Id
: E
) return E
is
7956 pragma Assert
(Is_Type
(Id
));
7958 -- If type is private and has a completion, predicate may be defined
7959 -- on the full view.
7961 if Is_Private_Type
(Id
) and then Present
(Full_View
(Id
)) then
7962 T
:= Full_View
(Id
);
7967 if No
(Subprograms_For_Type
(T
)) then
7971 S
:= Subprograms_For_Type
(T
);
7972 while Present
(S
) loop
7973 if Is_Predicate_Function
(S
) then
7976 S
:= Subprograms_For_Type
(S
);
7982 end Predicate_Function
;
7984 --------------------------
7985 -- Predicate_Function_M --
7986 --------------------------
7988 function Predicate_Function_M
(Id
: E
) return E
is
7993 pragma Assert
(Is_Type
(Id
));
7995 -- If type is private and has a completion, predicate may be defined
7996 -- on the full view.
7998 if Is_Private_Type
(Id
) and then Present
(Full_View
(Id
)) then
7999 T
:= Full_View
(Id
);
8004 if No
(Subprograms_For_Type
(T
)) then
8008 S
:= Subprograms_For_Type
(T
);
8009 while Present
(S
) loop
8010 if Is_Predicate_Function_M
(S
) then
8013 S
:= Subprograms_For_Type
(S
);
8019 end Predicate_Function_M
;
8021 -------------------------
8022 -- Present_In_Rep_Item --
8023 -------------------------
8025 function Present_In_Rep_Item
(E
: Entity_Id
; N
: Node_Id
) return Boolean is
8029 Ritem
:= First_Rep_Item
(E
);
8031 while Present
(Ritem
) loop
8036 Next_Rep_Item
(Ritem
);
8040 end Present_In_Rep_Item
;
8042 --------------------------
8043 -- Primitive_Operations --
8044 --------------------------
8046 function Primitive_Operations
(Id
: E
) return L
is
8048 if Is_Concurrent_Type
(Id
) then
8049 if Present
(Corresponding_Record_Type
(Id
)) then
8050 return Direct_Primitive_Operations
8051 (Corresponding_Record_Type
(Id
));
8053 -- If expansion is disabled the corresponding record type is absent,
8054 -- but if the type has ancestors it may have primitive operations.
8056 elsif Is_Tagged_Type
(Id
) then
8057 return Direct_Primitive_Operations
(Id
);
8063 return Direct_Primitive_Operations
(Id
);
8065 end Primitive_Operations
;
8067 ---------------------
8068 -- Record_Rep_Item --
8069 ---------------------
8071 procedure Record_Rep_Item
(E
: Entity_Id
; N
: Node_Id
) is
8073 Set_Next_Rep_Item
(N
, First_Rep_Item
(E
));
8074 Set_First_Rep_Item
(E
, N
);
8075 end Record_Rep_Item
;
8081 function Root_Type
(Id
: E
) return E
is
8085 pragma Assert
(Nkind
(Id
) in N_Entity
);
8087 T
:= Base_Type
(Id
);
8089 if Ekind
(T
) = E_Class_Wide_Type
then
8101 -- Following test catches some error cases resulting from
8104 elsif No
(Etyp
) then
8105 Check_Error_Detected
;
8108 elsif Is_Private_Type
(T
) and then Etyp
= Full_View
(T
) then
8111 elsif Is_Private_Type
(Etyp
) and then Full_View
(Etyp
) = T
then
8117 -- Return if there is a circularity in the inheritance chain. This
8118 -- happens in some error situations and we do not want to get
8119 -- stuck in this loop.
8121 if T
= Base_Type
(Id
) then
8128 ---------------------
8129 -- Safe_Emax_Value --
8130 ---------------------
8132 function Safe_Emax_Value
(Id
: E
) return Uint
is
8134 return Machine_Emax_Value
(Id
);
8135 end Safe_Emax_Value
;
8137 ----------------------
8138 -- Safe_First_Value --
8139 ----------------------
8141 function Safe_First_Value
(Id
: E
) return Ureal
is
8143 return -Safe_Last_Value
(Id
);
8144 end Safe_First_Value
;
8146 ---------------------
8147 -- Safe_Last_Value --
8148 ---------------------
8150 function Safe_Last_Value
(Id
: E
) return Ureal
is
8151 Radix
: constant Uint
:= Machine_Radix_Value
(Id
);
8152 Mantissa
: constant Uint
:= Machine_Mantissa_Value
(Id
);
8153 Emax
: constant Uint
:= Safe_Emax_Value
(Id
);
8154 Significand
: constant Uint
:= Radix
** Mantissa
- 1;
8155 Exponent
: constant Uint
:= Emax
- Mantissa
;
8161 (Num
=> Significand
* 2 ** (Exponent
mod 4),
8162 Den
=> -Exponent
/ 4,
8167 (Num
=> Significand
,
8171 end Safe_Last_Value
;
8177 function Scope_Depth
(Id
: E
) return Uint
is
8182 while Is_Record_Type
(Scop
) loop
8183 Scop
:= Scope
(Scop
);
8186 return Scope_Depth_Value
(Scop
);
8189 ---------------------
8190 -- Scope_Depth_Set --
8191 ---------------------
8193 function Scope_Depth_Set
(Id
: E
) return B
is
8195 return not Is_Record_Type
(Id
)
8196 and then Field22
(Id
) /= Union_Id
(Empty
);
8197 end Scope_Depth_Set
;
8199 -----------------------------
8200 -- Set_Component_Alignment --
8201 -----------------------------
8203 -- Component Alignment is encoded using two flags, Flag128/129 as
8204 -- follows. Note that both flags False = Align_Default, so that the
8205 -- default initialization of flags to False initializes component
8206 -- alignment to the default value as required.
8208 -- Flag128 Flag129 Value
8209 -- ------- ------- -----
8210 -- False False Calign_Default
8211 -- False True Calign_Component_Size
8212 -- True False Calign_Component_Size_4
8213 -- True True Calign_Storage_Unit
8215 procedure Set_Component_Alignment
(Id
: E
; V
: C
) is
8217 pragma Assert
((Is_Array_Type
(Id
) or else Is_Record_Type
(Id
))
8218 and then Is_Base_Type
(Id
));
8221 when Calign_Default
=>
8222 Set_Flag128
(Id
, False);
8223 Set_Flag129
(Id
, False);
8225 when Calign_Component_Size
=>
8226 Set_Flag128
(Id
, False);
8227 Set_Flag129
(Id
, True);
8229 when Calign_Component_Size_4
=>
8230 Set_Flag128
(Id
, True);
8231 Set_Flag129
(Id
, False);
8233 when Calign_Storage_Unit
=>
8234 Set_Flag128
(Id
, True);
8235 Set_Flag129
(Id
, True);
8237 end Set_Component_Alignment
;
8239 -------------------------------------
8240 -- Set_Default_Init_Cond_Procedure --
8241 -------------------------------------
8243 procedure Set_Default_Init_Cond_Procedure
(Id
: E
; V
: E
) is
8248 (Is_Type
(Id
) and then (Has_Default_Init_Cond
(Id
)
8250 Has_Inherited_Default_Init_Cond
(Id
)));
8252 S
:= Subprograms_For_Type
(Id
);
8253 Set_Subprograms_For_Type
(Id
, V
);
8254 Set_Subprograms_For_Type
(V
, S
);
8256 -- Check for a duplicate procedure
8258 while Present
(S
) loop
8259 if Is_Default_Init_Cond_Procedure
(S
) then
8260 raise Program_Error
;
8263 S
:= Subprograms_For_Type
(S
);
8265 end Set_Default_Init_Cond_Procedure
;
8267 -----------------------------
8268 -- Set_Invariant_Procedure --
8269 -----------------------------
8271 procedure Set_Invariant_Procedure
(Id
: E
; V
: E
) is
8275 pragma Assert
(Is_Type
(Id
) and then Has_Invariants
(Id
));
8277 S
:= Subprograms_For_Type
(Id
);
8278 Set_Subprograms_For_Type
(Id
, V
);
8279 Set_Subprograms_For_Type
(V
, S
);
8281 -- Check for duplicate entry
8283 while Present
(S
) loop
8284 if Is_Invariant_Procedure
(S
) then
8285 raise Program_Error
;
8287 S
:= Subprograms_For_Type
(S
);
8290 end Set_Invariant_Procedure
;
8292 ----------------------------
8293 -- Set_Predicate_Function --
8294 ----------------------------
8296 procedure Set_Predicate_Function
(Id
: E
; V
: E
) is
8300 pragma Assert
(Is_Type
(Id
) and then Has_Predicates
(Id
));
8302 S
:= Subprograms_For_Type
(Id
);
8303 Set_Subprograms_For_Type
(Id
, V
);
8304 Set_Subprograms_For_Type
(V
, S
);
8306 while Present
(S
) loop
8307 if Is_Predicate_Function
(S
) then
8308 raise Program_Error
;
8310 S
:= Subprograms_For_Type
(S
);
8313 end Set_Predicate_Function
;
8315 ------------------------------
8316 -- Set_Predicate_Function_M --
8317 ------------------------------
8319 procedure Set_Predicate_Function_M
(Id
: E
; V
: E
) is
8323 pragma Assert
(Is_Type
(Id
) and then Has_Predicates
(Id
));
8325 S
:= Subprograms_For_Type
(Id
);
8326 Set_Subprograms_For_Type
(Id
, V
);
8327 Set_Subprograms_For_Type
(V
, S
);
8329 -- Check for duplicates
8331 while Present
(S
) loop
8332 if Is_Predicate_Function_M
(S
) then
8333 raise Program_Error
;
8335 S
:= Subprograms_For_Type
(S
);
8338 end Set_Predicate_Function_M
;
8344 function Size_Clause
(Id
: E
) return N
is
8346 return Get_Attribute_Definition_Clause
(Id
, Attribute_Size
);
8349 ------------------------
8350 -- Stream_Size_Clause --
8351 ------------------------
8353 function Stream_Size_Clause
(Id
: E
) return N
is
8355 return Get_Attribute_Definition_Clause
(Id
, Attribute_Stream_Size
);
8356 end Stream_Size_Clause
;
8362 function Subtype_Kind
(K
: Entity_Kind
) return Entity_Kind
is
8368 Kind
:= E_Access_Subtype
;
8372 Kind
:= E_Array_Subtype
;
8374 when E_Class_Wide_Type |
8375 E_Class_Wide_Subtype
=>
8376 Kind
:= E_Class_Wide_Subtype
;
8378 when E_Decimal_Fixed_Point_Type |
8379 E_Decimal_Fixed_Point_Subtype
=>
8380 Kind
:= E_Decimal_Fixed_Point_Subtype
;
8382 when E_Ordinary_Fixed_Point_Type |
8383 E_Ordinary_Fixed_Point_Subtype
=>
8384 Kind
:= E_Ordinary_Fixed_Point_Subtype
;
8386 when E_Private_Type |
8387 E_Private_Subtype
=>
8388 Kind
:= E_Private_Subtype
;
8390 when E_Limited_Private_Type |
8391 E_Limited_Private_Subtype
=>
8392 Kind
:= E_Limited_Private_Subtype
;
8394 when E_Record_Type_With_Private |
8395 E_Record_Subtype_With_Private
=>
8396 Kind
:= E_Record_Subtype_With_Private
;
8398 when E_Record_Type |
8400 Kind
:= E_Record_Subtype
;
8402 when Enumeration_Kind
=>
8403 Kind
:= E_Enumeration_Subtype
;
8406 Kind
:= E_Floating_Point_Subtype
;
8408 when Signed_Integer_Kind
=>
8409 Kind
:= E_Signed_Integer_Subtype
;
8411 when Modular_Integer_Kind
=>
8412 Kind
:= E_Modular_Integer_Subtype
;
8414 when Protected_Kind
=>
8415 Kind
:= E_Protected_Subtype
;
8418 Kind
:= E_Task_Subtype
;
8422 raise Program_Error
;
8428 ---------------------
8429 -- Type_High_Bound --
8430 ---------------------
8432 function Type_High_Bound
(Id
: E
) return Node_Id
is
8433 Rng
: constant Node_Id
:= Scalar_Range
(Id
);
8435 if Nkind
(Rng
) = N_Subtype_Indication
then
8436 return High_Bound
(Range_Expression
(Constraint
(Rng
)));
8438 return High_Bound
(Rng
);
8440 end Type_High_Bound
;
8442 --------------------
8443 -- Type_Low_Bound --
8444 --------------------
8446 function Type_Low_Bound
(Id
: E
) return Node_Id
is
8447 Rng
: constant Node_Id
:= Scalar_Range
(Id
);
8449 if Nkind
(Rng
) = N_Subtype_Indication
then
8450 return Low_Bound
(Range_Expression
(Constraint
(Rng
)));
8452 return Low_Bound
(Rng
);
8456 ---------------------
8457 -- Underlying_Type --
8458 ---------------------
8460 function Underlying_Type
(Id
: E
) return E
is
8462 -- For record_with_private the underlying type is always the direct
8463 -- full view. Never try to take the full view of the parent it
8464 -- doesn't make sense.
8466 if Ekind
(Id
) = E_Record_Type_With_Private
then
8467 return Full_View
(Id
);
8469 elsif Ekind
(Id
) in Incomplete_Or_Private_Kind
then
8471 -- If we have an incomplete or private type with a full view,
8472 -- then we return the Underlying_Type of this full view.
8474 if Present
(Full_View
(Id
)) then
8475 if Id
= Full_View
(Id
) then
8477 -- Previous error in declaration
8482 return Underlying_Type
(Full_View
(Id
));
8485 -- If we have a private type with an underlying full view, then we
8486 -- return the Underlying_Type of this underlying full view.
8488 elsif Ekind
(Id
) in Private_Kind
8489 and then Present
(Underlying_Full_View
(Id
))
8491 return Underlying_Type
(Underlying_Full_View
(Id
));
8493 -- If we have an incomplete entity that comes from the limited
8494 -- view then we return the Underlying_Type of its non-limited
8497 elsif From_Limited_With
(Id
)
8498 and then Present
(Non_Limited_View
(Id
))
8500 return Underlying_Type
(Non_Limited_View
(Id
));
8502 -- Otherwise check for the case where we have a derived type or
8503 -- subtype, and if so get the Underlying_Type of the parent type.
8505 elsif Etype
(Id
) /= Id
then
8506 return Underlying_Type
(Etype
(Id
));
8508 -- Otherwise we have an incomplete or private type that has
8509 -- no full view, which means that we have not encountered the
8510 -- completion, so return Empty to indicate the underlying type
8511 -- is not yet known.
8517 -- For non-incomplete, non-private types, return the type itself Also
8518 -- for entities that are not types at all return the entity itself.
8523 end Underlying_Type
;
8525 ------------------------
8526 -- Write_Entity_Flags --
8527 ------------------------
8529 procedure Write_Entity_Flags
(Id
: Entity_Id
; Prefix
: String) is
8531 procedure W
(Flag_Name
: String; Flag
: Boolean);
8532 -- Write out given flag if it is set
8538 procedure W
(Flag_Name
: String; Flag
: Boolean) is
8542 Write_Str
(Flag_Name
);
8543 Write_Str
(" = True");
8548 -- Start of processing for Write_Entity_Flags
8551 if (Is_Array_Type
(Id
) or else Is_Record_Type
(Id
))
8552 and then Is_Base_Type
(Id
)
8555 Write_Str
("Component_Alignment = ");
8557 case Component_Alignment
(Id
) is
8558 when Calign_Default
=>
8559 Write_Str
("Calign_Default");
8561 when Calign_Component_Size
=>
8562 Write_Str
("Calign_Component_Size");
8564 when Calign_Component_Size_4
=>
8565 Write_Str
("Calign_Component_Size_4");
8567 when Calign_Storage_Unit
=>
8568 Write_Str
("Calign_Storage_Unit");
8574 W
("Address_Taken", Flag104
(Id
));
8575 W
("Body_Needed_For_SAL", Flag40
(Id
));
8576 W
("C_Pass_By_Copy", Flag125
(Id
));
8577 W
("Can_Never_Be_Null", Flag38
(Id
));
8578 W
("Checks_May_Be_Suppressed", Flag31
(Id
));
8579 W
("Contains_Ignored_Ghost_Code", Flag279
(Id
));
8580 W
("Debug_Info_Off", Flag166
(Id
));
8581 W
("Default_Expressions_Processed", Flag108
(Id
));
8582 W
("Delay_Cleanups", Flag114
(Id
));
8583 W
("Delay_Subprogram_Descriptors", Flag50
(Id
));
8584 W
("Depends_On_Private", Flag14
(Id
));
8585 W
("Discard_Names", Flag88
(Id
));
8586 W
("Elaboration_Entity_Required", Flag174
(Id
));
8587 W
("Elaborate_Body_Desirable", Flag210
(Id
));
8588 W
("Entry_Accepted", Flag152
(Id
));
8589 W
("Can_Use_Internal_Rep", Flag229
(Id
));
8590 W
("Finalize_Storage_Only", Flag158
(Id
));
8591 W
("From_Limited_With", Flag159
(Id
));
8592 W
("Has_Aliased_Components", Flag135
(Id
));
8593 W
("Has_Alignment_Clause", Flag46
(Id
));
8594 W
("Has_All_Calls_Remote", Flag79
(Id
));
8595 W
("Has_Anonymous_Master", Flag253
(Id
));
8596 W
("Has_Atomic_Components", Flag86
(Id
));
8597 W
("Has_Biased_Representation", Flag139
(Id
));
8598 W
("Has_Completion", Flag26
(Id
));
8599 W
("Has_Completion_In_Body", Flag71
(Id
));
8600 W
("Has_Complex_Representation", Flag140
(Id
));
8601 W
("Has_Component_Size_Clause", Flag68
(Id
));
8602 W
("Has_Contiguous_Rep", Flag181
(Id
));
8603 W
("Has_Controlled_Component", Flag43
(Id
));
8604 W
("Has_Controlling_Result", Flag98
(Id
));
8605 W
("Has_Convention_Pragma", Flag119
(Id
));
8606 W
("Has_Default_Aspect", Flag39
(Id
));
8607 W
("Has_Default_Init_Cond", Flag3
(Id
));
8608 W
("Has_Delayed_Aspects", Flag200
(Id
));
8609 W
("Has_Delayed_Freeze", Flag18
(Id
));
8610 W
("Has_Delayed_Rep_Aspects", Flag261
(Id
));
8611 W
("Has_Discriminants", Flag5
(Id
));
8612 W
("Has_Dispatch_Table", Flag220
(Id
));
8613 W
("Has_Dynamic_Predicate_Aspect", Flag258
(Id
));
8614 W
("Has_Enumeration_Rep_Clause", Flag66
(Id
));
8615 W
("Has_Exit", Flag47
(Id
));
8616 W
("Has_Expanded_Contract", Flag240
(Id
));
8617 W
("Has_Forward_Instantiation", Flag175
(Id
));
8618 W
("Has_Fully_Qualified_Name", Flag173
(Id
));
8619 W
("Has_Gigi_Rep_Item", Flag82
(Id
));
8620 W
("Has_Homonym", Flag56
(Id
));
8621 W
("Has_Implicit_Dereference", Flag251
(Id
));
8622 W
("Has_Independent_Components", Flag34
(Id
));
8623 W
("Has_Inheritable_Invariants", Flag248
(Id
));
8624 W
("Has_Inherited_Default_Init_Cond", Flag133
(Id
));
8625 W
("Has_Initial_Value", Flag219
(Id
));
8626 W
("Has_Invariants", Flag232
(Id
));
8627 W
("Has_Loop_Entry_Attributes", Flag260
(Id
));
8628 W
("Has_Machine_Radix_Clause", Flag83
(Id
));
8629 W
("Has_Master_Entity", Flag21
(Id
));
8630 W
("Has_Missing_Return", Flag142
(Id
));
8631 W
("Has_Nested_Block_With_Handler", Flag101
(Id
));
8632 W
("Has_Nested_Subprogram", Flag282
(Id
));
8633 W
("Has_Non_Standard_Rep", Flag75
(Id
));
8634 W
("Has_Out_Or_In_Out_Parameter", Flag110
(Id
));
8635 W
("Has_Object_Size_Clause", Flag172
(Id
));
8636 W
("Has_Per_Object_Constraint", Flag154
(Id
));
8637 W
("Has_Pragma_Controlled", Flag27
(Id
));
8638 W
("Has_Pragma_Elaborate_Body", Flag150
(Id
));
8639 W
("Has_Pragma_Inline", Flag157
(Id
));
8640 W
("Has_Pragma_Inline_Always", Flag230
(Id
));
8641 W
("Has_Pragma_No_Inline", Flag201
(Id
));
8642 W
("Has_Pragma_Ordered", Flag198
(Id
));
8643 W
("Has_Pragma_Pack", Flag121
(Id
));
8644 W
("Has_Pragma_Preelab_Init", Flag221
(Id
));
8645 W
("Has_Pragma_Pure", Flag203
(Id
));
8646 W
("Has_Pragma_Pure_Function", Flag179
(Id
));
8647 W
("Has_Pragma_Thread_Local_Storage", Flag169
(Id
));
8648 W
("Has_Pragma_Unmodified", Flag233
(Id
));
8649 W
("Has_Pragma_Unreferenced", Flag180
(Id
));
8650 W
("Has_Pragma_Unreferenced_Objects", Flag212
(Id
));
8651 W
("Has_Predicates", Flag250
(Id
));
8652 W
("Has_Primitive_Operations", Flag120
(Id
));
8653 W
("Has_Private_Ancestor", Flag151
(Id
));
8654 W
("Has_Private_Declaration", Flag155
(Id
));
8655 W
("Has_Protected", Flag271
(Id
));
8656 W
("Has_Qualified_Name", Flag161
(Id
));
8657 W
("Has_RACW", Flag214
(Id
));
8658 W
("Has_Record_Rep_Clause", Flag65
(Id
));
8659 W
("Has_Recursive_Call", Flag143
(Id
));
8660 W
("Has_Shift_Operator", Flag267
(Id
));
8661 W
("Has_Size_Clause", Flag29
(Id
));
8662 W
("Has_Small_Clause", Flag67
(Id
));
8663 W
("Has_Specified_Layout", Flag100
(Id
));
8664 W
("Has_Specified_Stream_Input", Flag190
(Id
));
8665 W
("Has_Specified_Stream_Output", Flag191
(Id
));
8666 W
("Has_Specified_Stream_Read", Flag192
(Id
));
8667 W
("Has_Specified_Stream_Write", Flag193
(Id
));
8668 W
("Has_Static_Discriminants", Flag211
(Id
));
8669 W
("Has_Static_Predicate", Flag269
(Id
));
8670 W
("Has_Static_Predicate_Aspect", Flag259
(Id
));
8671 W
("Has_Storage_Size_Clause", Flag23
(Id
));
8672 W
("Has_Stream_Size_Clause", Flag184
(Id
));
8673 W
("Has_Task", Flag30
(Id
));
8674 W
("Has_Thunks", Flag228
(Id
));
8675 W
("Has_Unchecked_Union", Flag123
(Id
));
8676 W
("Has_Unknown_Discriminants", Flag72
(Id
));
8677 W
("Has_Uplevel_Reference", Flag215
(Id
));
8678 W
("Has_Visible_Refinement", Flag263
(Id
));
8679 W
("Has_Volatile_Components", Flag87
(Id
));
8680 W
("Has_Xref_Entry", Flag182
(Id
));
8681 W
("In_Package_Body", Flag48
(Id
));
8682 W
("In_Private_Part", Flag45
(Id
));
8683 W
("In_Use", Flag8
(Id
));
8684 W
("Is_Abstract_Subprogram", Flag19
(Id
));
8685 W
("Is_Abstract_Type", Flag146
(Id
));
8686 W
("Is_Access_Constant", Flag69
(Id
));
8687 W
("Is_Ada_2005_Only", Flag185
(Id
));
8688 W
("Is_Ada_2012_Only", Flag199
(Id
));
8689 W
("Is_Aliased", Flag15
(Id
));
8690 W
("Is_Asynchronous", Flag81
(Id
));
8691 W
("Is_Atomic", Flag85
(Id
));
8692 W
("Is_Bit_Packed_Array", Flag122
(Id
));
8693 W
("Is_CPP_Class", Flag74
(Id
));
8694 W
("Is_Called", Flag102
(Id
));
8695 W
("Is_Character_Type", Flag63
(Id
));
8696 W
("Is_Checked_Ghost_Entity", Flag277
(Id
));
8697 W
("Is_Child_Unit", Flag73
(Id
));
8698 W
("Is_Class_Wide_Equivalent_Type", Flag35
(Id
));
8699 W
("Is_Compilation_Unit", Flag149
(Id
));
8700 W
("Is_Completely_Hidden", Flag103
(Id
));
8701 W
("Is_Concurrent_Record_Type", Flag20
(Id
));
8702 W
("Is_Constr_Subt_For_UN_Aliased", Flag141
(Id
));
8703 W
("Is_Constr_Subt_For_U_Nominal", Flag80
(Id
));
8704 W
("Is_Constrained", Flag12
(Id
));
8705 W
("Is_Constructor", Flag76
(Id
));
8706 W
("Is_Controlled", Flag42
(Id
));
8707 W
("Is_Controlling_Formal", Flag97
(Id
));
8708 W
("Is_Default_Init_Cond_Procedure", Flag132
(Id
));
8709 W
("Is_Descendent_Of_Address", Flag223
(Id
));
8710 W
("Is_Discrim_SO_Function", Flag176
(Id
));
8711 W
("Is_Discriminant_Check_Function", Flag264
(Id
));
8712 W
("Is_Dispatch_Table_Entity", Flag234
(Id
));
8713 W
("Is_Dispatching_Operation", Flag6
(Id
));
8714 W
("Is_Eliminated", Flag124
(Id
));
8715 W
("Is_Entry_Formal", Flag52
(Id
));
8716 W
("Is_Exported", Flag99
(Id
));
8717 W
("Is_First_Subtype", Flag70
(Id
));
8718 W
("Is_For_Access_Subtype", Flag118
(Id
));
8719 W
("Is_Formal_Subprogram", Flag111
(Id
));
8720 W
("Is_Frozen", Flag4
(Id
));
8721 W
("Is_Generic_Actual_Subprogram", Flag274
(Id
));
8722 W
("Is_Generic_Actual_Type", Flag94
(Id
));
8723 W
("Is_Generic_Instance", Flag130
(Id
));
8724 W
("Is_Generic_Type", Flag13
(Id
));
8725 W
("Is_Hidden", Flag57
(Id
));
8726 W
("Is_Hidden_Non_Overridden_Subpgm", Flag2
(Id
));
8727 W
("Is_Hidden_Open_Scope", Flag171
(Id
));
8728 W
("Is_Ignored_Ghost_Entity", Flag278
(Id
));
8729 W
("Is_Immediately_Visible", Flag7
(Id
));
8730 W
("Is_Implementation_Defined", Flag254
(Id
));
8731 W
("Is_Imported", Flag24
(Id
));
8732 W
("Is_Independent", Flag268
(Id
));
8733 W
("Is_Inlined", Flag11
(Id
));
8734 W
("Is_Inlined_Always", Flag1
(Id
));
8735 W
("Is_Instantiated", Flag126
(Id
));
8736 W
("Is_Interface", Flag186
(Id
));
8737 W
("Is_Internal", Flag17
(Id
));
8738 W
("Is_Interrupt_Handler", Flag89
(Id
));
8739 W
("Is_Intrinsic_Subprogram", Flag64
(Id
));
8740 W
("Is_Invariant_Procedure", Flag257
(Id
));
8741 W
("Is_Itype", Flag91
(Id
));
8742 W
("Is_Known_Non_Null", Flag37
(Id
));
8743 W
("Is_Known_Null", Flag204
(Id
));
8744 W
("Is_Known_Valid", Flag170
(Id
));
8745 W
("Is_Limited_Composite", Flag106
(Id
));
8746 W
("Is_Limited_Interface", Flag197
(Id
));
8747 W
("Is_Limited_Record", Flag25
(Id
));
8748 W
("Is_Local_Anonymous_Access", Flag194
(Id
));
8749 W
("Is_Machine_Code_Subprogram", Flag137
(Id
));
8750 W
("Is_Non_Static_Subtype", Flag109
(Id
));
8751 W
("Is_Null_Init_Proc", Flag178
(Id
));
8752 W
("Is_Obsolescent", Flag153
(Id
));
8753 W
("Is_Only_Out_Parameter", Flag226
(Id
));
8754 W
("Is_Package_Body_Entity", Flag160
(Id
));
8755 W
("Is_Packed", Flag51
(Id
));
8756 W
("Is_Packed_Array_Impl_Type", Flag138
(Id
));
8757 W
("Is_Potentially_Use_Visible", Flag9
(Id
));
8758 W
("Is_Predicate_Function", Flag255
(Id
));
8759 W
("Is_Predicate_Function_M", Flag256
(Id
));
8760 W
("Is_Preelaborated", Flag59
(Id
));
8761 W
("Is_Primitive", Flag218
(Id
));
8762 W
("Is_Primitive_Wrapper", Flag195
(Id
));
8763 W
("Is_Private_Composite", Flag107
(Id
));
8764 W
("Is_Private_Descendant", Flag53
(Id
));
8765 W
("Is_Private_Primitive", Flag245
(Id
));
8766 W
("Is_Processed_Transient", Flag252
(Id
));
8767 W
("Is_Public", Flag10
(Id
));
8768 W
("Is_Pure", Flag44
(Id
));
8769 W
("Is_Pure_Unit_Access_Type", Flag189
(Id
));
8770 W
("Is_RACW_Stub_Type", Flag244
(Id
));
8771 W
("Is_Raised", Flag224
(Id
));
8772 W
("Is_Remote_Call_Interface", Flag62
(Id
));
8773 W
("Is_Remote_Types", Flag61
(Id
));
8774 W
("Is_Renaming_Of_Object", Flag112
(Id
));
8775 W
("Is_Return_Object", Flag209
(Id
));
8776 W
("Is_Safe_To_Reevaluate", Flag249
(Id
));
8777 W
("Is_Shared_Passive", Flag60
(Id
));
8778 W
("Is_Static_Type", Flag281
(Id
));
8779 W
("Is_Statically_Allocated", Flag28
(Id
));
8780 W
("Is_Tag", Flag78
(Id
));
8781 W
("Is_Tagged_Type", Flag55
(Id
));
8782 W
("Is_Thunk", Flag225
(Id
));
8783 W
("Is_Trivial_Subprogram", Flag235
(Id
));
8784 W
("Is_True_Constant", Flag163
(Id
));
8785 W
("Is_Unchecked_Union", Flag117
(Id
));
8786 W
("Is_Underlying_Record_View", Flag246
(Id
));
8787 W
("Is_Unimplemented", Flag284
(Id
));
8788 W
("Is_Unsigned_Type", Flag144
(Id
));
8789 W
("Is_Valued_Procedure", Flag127
(Id
));
8790 W
("Is_Visible_Formal", Flag206
(Id
));
8791 W
("Is_Visible_Lib_Unit", Flag116
(Id
));
8792 W
("Is_Volatile", Flag16
(Id
));
8793 W
("Itype_Printed", Flag202
(Id
));
8794 W
("Kill_Elaboration_Checks", Flag32
(Id
));
8795 W
("Kill_Range_Checks", Flag33
(Id
));
8796 W
("Known_To_Have_Preelab_Init", Flag207
(Id
));
8797 W
("Low_Bound_Tested", Flag205
(Id
));
8798 W
("Machine_Radix_10", Flag84
(Id
));
8799 W
("Materialize_Entity", Flag168
(Id
));
8800 W
("May_Inherit_Delayed_Rep_Aspects", Flag262
(Id
));
8801 W
("Must_Be_On_Byte_Boundary", Flag183
(Id
));
8802 W
("Must_Have_Preelab_Init", Flag208
(Id
));
8803 W
("Needs_Debug_Info", Flag147
(Id
));
8804 W
("Needs_No_Actuals", Flag22
(Id
));
8805 W
("Never_Set_In_Source", Flag115
(Id
));
8806 W
("No_Dynamic_Predicate_On_actual", Flag276
(Id
));
8807 W
("No_Pool_Assigned", Flag131
(Id
));
8808 W
("No_Predicate_On_actual", Flag275
(Id
));
8809 W
("No_Return", Flag113
(Id
));
8810 W
("No_Strict_Aliasing", Flag136
(Id
));
8811 W
("Non_Binary_Modulus", Flag58
(Id
));
8812 W
("Nonzero_Is_True", Flag162
(Id
));
8813 W
("OK_To_Rename", Flag247
(Id
));
8814 W
("OK_To_Reorder_Components", Flag239
(Id
));
8815 W
("Optimize_Alignment_Space", Flag241
(Id
));
8816 W
("Optimize_Alignment_Time", Flag242
(Id
));
8817 W
("Overlays_Constant", Flag243
(Id
));
8818 W
("Partial_View_Has_Unknown_Discr", Flag280
(Id
));
8819 W
("Reachable", Flag49
(Id
));
8820 W
("Referenced", Flag156
(Id
));
8821 W
("Referenced_As_LHS", Flag36
(Id
));
8822 W
("Referenced_As_Out_Parameter", Flag227
(Id
));
8823 W
("Renamed_In_Spec", Flag231
(Id
));
8824 W
("Requires_Overriding", Flag213
(Id
));
8825 W
("Return_Present", Flag54
(Id
));
8826 W
("Returns_By_Ref", Flag90
(Id
));
8827 W
("Returns_Limited_View", Flag134
(Id
));
8828 W
("Reverse_Bit_Order", Flag164
(Id
));
8829 W
("Reverse_Storage_Order", Flag93
(Id
));
8830 W
("Sec_Stack_Needed_For_Return", Flag167
(Id
));
8831 W
("Size_Depends_On_Discriminant", Flag177
(Id
));
8832 W
("Size_Known_At_Compile_Time", Flag92
(Id
));
8833 W
("SPARK_Aux_Pragma_Inherited", Flag266
(Id
));
8834 W
("SPARK_Pragma_Inherited", Flag265
(Id
));
8835 W
("SSO_Set_High_By_Default", Flag273
(Id
));
8836 W
("SSO_Set_Low_By_Default", Flag272
(Id
));
8837 W
("Static_Elaboration_Desired", Flag77
(Id
));
8838 W
("Stores_Attribute_Old_Prefix", Flag270
(Id
));
8839 W
("Strict_Alignment", Flag145
(Id
));
8840 W
("Suppress_Elaboration_Warnings", Flag148
(Id
));
8841 W
("Suppress_Initialization", Flag105
(Id
));
8842 W
("Suppress_Style_Checks", Flag165
(Id
));
8843 W
("Suppress_Value_Tracking_On_Call", Flag217
(Id
));
8844 W
("Treat_As_Volatile", Flag41
(Id
));
8845 W
("Universal_Aliasing", Flag216
(Id
));
8846 W
("Uplevel_Reference_Noted", Flag283
(Id
));
8847 W
("Used_As_Generic_Actual", Flag222
(Id
));
8848 W
("Uses_Sec_Stack", Flag95
(Id
));
8849 W
("Warnings_Off", Flag96
(Id
));
8850 W
("Warnings_Off_Used", Flag236
(Id
));
8851 W
("Warnings_Off_Used_Unmodified", Flag237
(Id
));
8852 W
("Warnings_Off_Used_Unreferenced", Flag238
(Id
));
8853 W
("Was_Hidden", Flag196
(Id
));
8854 end Write_Entity_Flags
;
8856 -----------------------
8857 -- Write_Entity_Info --
8858 -----------------------
8860 procedure Write_Entity_Info
(Id
: Entity_Id
; Prefix
: String) is
8862 procedure Write_Attribute
(Which
: String; Nam
: E
);
8863 -- Write attribute value with given string name
8865 procedure Write_Kind
(Id
: Entity_Id
);
8866 -- Write Ekind field of entity
8868 ---------------------
8869 -- Write_Attribute --
8870 ---------------------
8872 procedure Write_Attribute
(Which
: String; Nam
: E
) is
8876 Write_Int
(Int
(Nam
));
8878 Write_Name
(Chars
(Nam
));
8880 end Write_Attribute
;
8886 procedure Write_Kind
(Id
: Entity_Id
) is
8887 K
: constant String := Entity_Kind
'Image (Ekind
(Id
));
8891 Write_Str
(" Kind ");
8893 if Is_Type
(Id
) and then Is_Tagged_Type
(Id
) then
8894 Write_Str
("TAGGED ");
8897 Write_Str
(K
(3 .. K
'Length));
8900 if Is_Type
(Id
) and then Depends_On_Private
(Id
) then
8901 Write_Str
("Depends_On_Private ");
8905 -- Start of processing for Write_Entity_Info
8909 Write_Attribute
("Name ", Id
);
8910 Write_Int
(Int
(Id
));
8914 Write_Attribute
(" Type ", Etype
(Id
));
8916 Write_Attribute
(" Scope ", Scope
(Id
));
8921 when Discrete_Kind
=>
8922 Write_Str
("Bounds: Id = ");
8924 if Present
(Scalar_Range
(Id
)) then
8925 Write_Int
(Int
(Type_Low_Bound
(Id
)));
8926 Write_Str
(" .. Id = ");
8927 Write_Int
(Int
(Type_High_Bound
(Id
)));
8929 Write_Str
("Empty");
8940 (" Component Type ", Component_Type
(Id
));
8943 Write_Str
(" Indexes ");
8945 Index
:= First_Index
(Id
);
8946 while Present
(Index
) loop
8947 Write_Attribute
(" ", Etype
(Index
));
8948 Index
:= Next_Index
(Index
);
8956 (" Directly Designated Type ",
8957 Directly_Designated_Type
(Id
));
8960 when Overloadable_Kind
=>
8961 if Present
(Homonym
(Id
)) then
8962 Write_Str
(" Homonym ");
8963 Write_Name
(Chars
(Homonym
(Id
)));
8965 Write_Int
(Int
(Homonym
(Id
)));
8972 if Ekind
(Scope
(Id
)) in Record_Kind
then
8974 " Original_Record_Component ",
8975 Original_Record_Component
(Id
));
8976 Write_Int
(Int
(Original_Record_Component
(Id
)));
8980 when others => null;
8982 end Write_Entity_Info
;
8984 -----------------------
8985 -- Write_Field6_Name --
8986 -----------------------
8988 procedure Write_Field6_Name
(Id
: Entity_Id
) is
8989 pragma Warnings
(Off
, Id
);
8991 Write_Str
("First_Rep_Item");
8992 end Write_Field6_Name
;
8994 -----------------------
8995 -- Write_Field7_Name --
8996 -----------------------
8998 procedure Write_Field7_Name
(Id
: Entity_Id
) is
8999 pragma Warnings
(Off
, Id
);
9001 Write_Str
("Freeze_Node");
9002 end Write_Field7_Name
;
9004 -----------------------
9005 -- Write_Field8_Name --
9006 -----------------------
9008 procedure Write_Field8_Name
(Id
: Entity_Id
) is
9012 Write_Str
("Associated_Node_For_Itype");
9015 Write_Str
("Dependent_Instances");
9018 Write_Str
("First_Exit_Statement");
9021 Write_Str
("Hiding_Loop_Variable");
9025 E_Subprogram_Body
=>
9026 Write_Str
("Mechanism");
9030 Write_Str
("Normalized_First_Bit");
9032 when E_Abstract_State
=>
9033 Write_Str
("Refinement_Constituents");
9035 when E_Return_Statement
=>
9036 Write_Str
("Return_Applies_To");
9039 Write_Str
("Field8??");
9041 end Write_Field8_Name
;
9043 -----------------------
9044 -- Write_Field9_Name --
9045 -----------------------
9047 procedure Write_Field9_Name
(Id
: Entity_Id
) is
9051 Write_Str
("Class_Wide_Type");
9054 Write_Str
("Current_Value");
9056 when E_Abstract_State
=>
9057 Write_Str
("Part_Of_Constituents");
9060 E_Generic_Function |
9062 E_Generic_Procedure |
9065 Write_Str
("Renaming_Map");
9068 Write_Str
("Field9??");
9070 end Write_Field9_Name
;
9072 ------------------------
9073 -- Write_Field10_Name --
9074 ------------------------
9076 procedure Write_Field10_Name
(Id
: Entity_Id
) is
9079 when E_Abstract_State |
9081 Write_Str
("Encapsulating_State");
9083 when Class_Wide_Kind |
9089 Write_Str
("Direct_Primitive_Operations");
9092 Write_Str
("Float_Rep");
9094 when E_In_Parameter |
9096 Write_Str
("Discriminal_Link");
9102 Write_Str
("Handler_Records");
9106 Write_Str
("Normalized_Position_Max");
9109 Write_Str
("Field10??");
9111 end Write_Field10_Name
;
9113 ------------------------
9114 -- Write_Field11_Name --
9115 ------------------------
9117 procedure Write_Field11_Name
(Id
: Entity_Id
) is
9121 Write_Str
("Block_Node");
9125 Write_Str
("Component_Bit_Offset");
9128 Write_Str
("Entry_Component");
9130 when E_Enumeration_Literal
=>
9131 Write_Str
("Enumeration_Pos");
9135 Write_Str
("Full_View");
9137 when E_Generic_Package
=>
9138 Write_Str
("Generic_Homonym");
9144 Write_Str
("Protected_Body_Subprogram");
9147 Write_Str
("Field11??");
9149 end Write_Field11_Name
;
9151 ------------------------
9152 -- Write_Field12_Name --
9153 ------------------------
9155 procedure Write_Field12_Name
(Id
: Entity_Id
) is
9159 Write_Str
("Associated_Formal_Package");
9162 Write_Str
("Barrier_Function");
9164 when E_Enumeration_Literal
=>
9165 Write_Str
("Enumeration_Rep");
9173 E_In_Out_Parameter |
9177 Write_Str
("Esize");
9181 Write_Str
("Next_Inlined_Subprogram");
9184 Write_Str
("Field12??");
9186 end Write_Field12_Name
;
9188 ------------------------
9189 -- Write_Field13_Name --
9190 ------------------------
9192 procedure Write_Field13_Name
(Id
: Entity_Id
) is
9197 Write_Str
("Component_Clause");
9200 Write_Str
("Elaboration_Entity");
9204 Generic_Unit_Kind
=>
9205 Write_Str
("Elaboration_Entity");
9209 Write_Str
("Extra_Accessibility");
9212 Write_Str
("RM_Size");
9215 Write_Str
("Field13??");
9217 end Write_Field13_Name
;
9219 -----------------------
9220 -- Write_Field14_Name --
9221 -----------------------
9223 procedure Write_Field14_Name
(Id
: Entity_Id
) is
9232 Write_Str
("Alignment");
9236 Write_Str
("Normalized_Position");
9242 Write_Str
("Postconditions_Proc");
9244 when E_Generic_Package |
9246 Write_Str
("Shadow_Entities");
9249 Write_Str
("Field14??");
9251 end Write_Field14_Name
;
9253 ------------------------
9254 -- Write_Field15_Name --
9255 ------------------------
9257 procedure Write_Field15_Name
(Id
: Entity_Id
) is
9260 when E_Discriminant
=>
9261 Write_Str
("Discriminant_Number");
9264 Write_Str
("DT_Entry_Count");
9268 Write_Str
("DT_Position");
9271 Write_Str
("Entry_Parameters_Type");
9274 Write_Str
("Extra_Formal");
9277 Write_Str
("Pending_Access_Types");
9281 Write_Str
("Related_Instance");
9285 Write_Str
("Status_Flag_Or_Transient_Decl");
9288 Write_Str
("Field15??");
9290 end Write_Field15_Name
;
9292 ------------------------
9293 -- Write_Field16_Name --
9294 ------------------------
9296 procedure Write_Field16_Name
(Id
: Entity_Id
) is
9299 when E_Record_Type |
9300 E_Record_Type_With_Private
=>
9301 Write_Str
("Access_Disp_Table");
9303 when E_Abstract_State
=>
9304 Write_Str
("Body_References");
9306 when E_Record_Subtype |
9307 E_Class_Wide_Subtype
=>
9308 Write_Str
("Cloned_Subtype");
9312 Write_Str
("DTC_Entity");
9315 Write_Str
("Entry_Formal");
9320 Write_Str
("First_Private_Entity");
9322 when Enumeration_Kind
=>
9323 Write_Str
("Lit_Strings");
9325 when Decimal_Fixed_Point_Kind
=>
9326 Write_Str
("Scale_Value");
9328 when E_String_Literal_Subtype
=>
9329 Write_Str
("String_Literal_Length");
9333 Write_Str
("Unset_Reference");
9336 Write_Str
("Field16??");
9338 end Write_Field16_Name
;
9340 ------------------------
9341 -- Write_Field17_Name --
9342 ------------------------
9344 procedure Write_Field17_Name
(Id
: Entity_Id
) is
9349 E_Generic_In_Out_Parameter |
9351 Write_Str
("Actual_Subtype");
9354 Write_Str
("Digits_Value");
9356 when E_Discriminant
=>
9357 Write_Str
("Discriminal");
9366 E_Generic_Function |
9368 E_Generic_Procedure |
9376 E_Return_Statement |
9378 E_Subprogram_Type
=>
9379 Write_Str
("First_Entity");
9382 Write_Str
("First_Index");
9384 when Enumeration_Kind
=>
9385 Write_Str
("First_Literal");
9388 Write_Str
("Master_Id");
9390 when Modular_Integer_Kind
=>
9391 Write_Str
("Modulus");
9393 when E_Abstract_State |
9394 E_Incomplete_Type
=>
9395 Write_Str
("Non_Limited_View");
9397 when E_Incomplete_Subtype
=>
9398 if From_Limited_With
(Id
) then
9399 Write_Str
("Non_Limited_View");
9403 Write_Str
("Prival");
9406 Write_Str
("Field17??");
9408 end Write_Field17_Name
;
9410 ------------------------
9411 -- Write_Field18_Name --
9412 ------------------------
9414 procedure Write_Field18_Name
(Id
: Entity_Id
) is
9417 when E_Enumeration_Literal |
9421 Write_Str
("Alias");
9423 when E_Record_Type
=>
9424 Write_Str
("Corresponding_Concurrent_Type");
9426 when E_Subprogram_Body
=>
9427 Write_Str
("Corresponding_Protected_Entry");
9429 when Concurrent_Kind
=>
9430 Write_Str
("Corresponding_Record_Type");
9435 Write_Str
("Enclosing_Scope");
9437 when E_Entry_Index_Parameter
=>
9438 Write_Str
("Entry_Index_Constant");
9440 when E_Class_Wide_Subtype |
9441 E_Access_Protected_Subprogram_Type |
9442 E_Anonymous_Access_Protected_Subprogram_Type |
9443 E_Access_Subprogram_Type |
9445 Write_Str
("Equivalent_Type");
9447 when Fixed_Point_Kind
=>
9448 Write_Str
("Delta_Value");
9450 when Enumeration_Kind
=>
9451 Write_Str
("Lit_Indexes");
9453 when Incomplete_Or_Private_Kind |
9455 Write_Str
("Private_Dependents");
9458 Write_Str
("Renamed_Object");
9462 E_Generic_Function |
9463 E_Generic_Procedure |
9464 E_Generic_Package
=>
9465 Write_Str
("Renamed_Entity");
9467 when E_String_Literal_Subtype
=>
9468 Write_Str
("String_Literal_Low_Bound");
9471 Write_Str
("Field18??");
9473 end Write_Field18_Name
;
9475 -----------------------
9476 -- Write_Field19_Name --
9477 -----------------------
9479 procedure Write_Field19_Name
(Id
: Entity_Id
) is
9483 E_Generic_Package
=>
9484 Write_Str
("Body_Entity");
9486 when E_Discriminant
=>
9487 Write_Str
("Corresponding_Discriminant");
9490 Write_Str
("Default_Aspect_Value");
9492 when E_Array_Type
=>
9493 Write_Str
("Default_Component_Value");
9495 when E_Protected_Type
=>
9496 Write_Str
("Entry_Bodies_Array");
9500 E_Subprogram_Type
=>
9501 Write_Str
("Extra_Accessibility_Of_Result");
9503 when E_Record_Type
=>
9504 Write_Str
("Parent_Subtype");
9508 Write_Str
("Size_Check_Code");
9510 when E_Package_Body |
9512 Write_Str
("Spec_Entity");
9514 when Private_Kind
=>
9515 Write_Str
("Underlying_Full_View");
9518 Write_Str
("Field19??");
9520 end Write_Field19_Name
;
9522 -----------------------
9523 -- Write_Field20_Name --
9524 -----------------------
9526 procedure Write_Field20_Name
(Id
: Entity_Id
) is
9530 Write_Str
("Component_Type");
9532 when E_In_Parameter |
9533 E_Generic_In_Parameter
=>
9534 Write_Str
("Default_Value");
9537 Write_Str
("Directly_Designated_Type");
9540 Write_Str
("Discriminant_Checking_Func");
9542 when E_Discriminant
=>
9543 Write_Str
("Discriminant_Default_Value");
9552 E_Generic_Function |
9554 E_Generic_Procedure |
9562 E_Return_Statement |
9564 E_Subprogram_Type
=>
9565 Write_Str
("Last_Entity");
9569 Write_Str
("Prival_Link");
9572 Write_Str
("Scalar_Range");
9575 Write_Str
("Register_Exception_Call");
9578 Write_Str
("Field20??");
9580 end Write_Field20_Name
;
9582 -----------------------
9583 -- Write_Field21_Name --
9584 -----------------------
9586 procedure Write_Field21_Name
(Id
: Entity_Id
) is
9590 Write_Str
("Accept_Address");
9592 when E_In_Parameter
=>
9593 Write_Str
("Default_Expr_Function");
9595 when Concurrent_Kind |
9596 Incomplete_Or_Private_Kind |
9600 Write_Str
("Discriminant_Constraint");
9605 E_Generic_Function |
9607 E_Generic_Procedure |
9609 Write_Str
("Interface_Name");
9612 Modular_Integer_Kind
=>
9613 Write_Str
("Original_Array_Type");
9615 when Fixed_Point_Kind
=>
9616 Write_Str
("Small_Value");
9619 Write_Str
("Field21??");
9621 end Write_Field21_Name
;
9623 -----------------------
9624 -- Write_Field22_Name --
9625 -----------------------
9627 procedure Write_Field22_Name
(Id
: Entity_Id
) is
9631 Write_Str
("Associated_Storage_Pool");
9634 Write_Str
("Component_Size");
9636 when E_Record_Type
=>
9637 Write_Str
("Corresponding_Remote_Type");
9641 Write_Str
("Original_Record_Component");
9643 when E_Enumeration_Literal
=>
9644 Write_Str
("Enumeration_Rep_Expr");
9646 when E_Record_Type_With_Private |
9647 E_Record_Subtype_With_Private |
9650 E_Limited_Private_Type |
9651 E_Limited_Private_Subtype
=>
9652 Write_Str
("Private_View");
9655 Write_Str
("Protected_Formal");
9665 E_Generic_Function |
9666 E_Generic_Procedure |
9669 E_Return_Statement |
9672 Write_Str
("Scope_Depth_Value");
9675 Write_Str
("Shared_Var_Procs_Instance");
9678 Write_Str
("Field22??");
9680 end Write_Field22_Name
;
9682 ------------------------
9683 -- Write_Field23_Name --
9684 ------------------------
9686 procedure Write_Field23_Name
(Id
: Entity_Id
) is
9689 when E_Discriminant
=>
9690 Write_Str
("CR_Discriminant");
9693 Write_Str
("Entry_Cancel_Parameter");
9695 when E_Enumeration_Type
=>
9696 Write_Str
("Enum_Pos_To_Rep");
9700 Write_Str
("Extra_Constrained");
9703 Write_Str
("Finalization_Master");
9705 when E_Generic_Function |
9707 E_Generic_Procedure
=>
9708 Write_Str
("Inner_Instances");
9711 Write_Str
("Packed_Array_Impl_Type");
9714 Write_Str
("Protection_Object");
9716 when Concurrent_Kind |
9717 Incomplete_Or_Private_Kind |
9721 Write_Str
("Stored_Constraint");
9725 if Present
(Scope
(Id
))
9726 and then Is_Protected_Type
(Scope
(Id
))
9728 Write_Str
("Protection_Object");
9730 Write_Str
("Generic_Renamings");
9734 if Is_Generic_Instance
(Id
) then
9735 Write_Str
("Generic_Renamings");
9737 Write_Str
("Limited_View");
9741 Write_Str
("Field23??");
9743 end Write_Field23_Name
;
9745 ------------------------
9746 -- Write_Field24_Name --
9747 ------------------------
9749 procedure Write_Field24_Name
(Id
: Entity_Id
) is
9755 Write_Str
("Related_Expression");
9760 if Field24
(Id
) in Uint_Range
then
9761 Write_Str
("Subps_Index");
9763 Write_Str
("Uplevel_References");
9767 Write_Str
("Field24???");
9769 end Write_Field24_Name
;
9771 ------------------------
9772 -- Write_Field25_Name --
9773 ------------------------
9775 procedure Write_Field25_Name
(Id
: Entity_Id
) is
9778 when E_Generic_Package |
9780 Write_Str
("Abstract_States");
9783 Write_Str
("Debug_Renaming_Link");
9786 Write_Str
("DT_Offset_To_Top_Func");
9790 Write_Str
("Interface_Alias");
9792 when E_Record_Type |
9794 E_Record_Type_With_Private |
9795 E_Record_Subtype_With_Private
=>
9796 Write_Str
("Interfaces");
9800 Write_Str
("Related_Array_Object");
9803 Write_Str
("Task_Body_Procedure");
9807 Write_Str
("PPC_Wrapper");
9809 when Discrete_Kind
=>
9810 Write_Str
("Static_Discrete_Predicate");
9813 Write_Str
("Static_Real_Or_String_Predicate");
9816 Write_Str
("Field25??");
9818 end Write_Field25_Name
;
9820 ------------------------
9821 -- Write_Field26_Name --
9822 ------------------------
9824 procedure Write_Field26_Name
(Id
: Entity_Id
) is
9827 when E_Record_Type |
9828 E_Record_Type_With_Private
=>
9829 Write_Str
("Dispatch_Table_Wrappers");
9831 when E_In_Out_Parameter |
9834 Write_Str
("Last_Assignment");
9838 Write_Str
("Overridden_Operation");
9840 when E_Generic_Package |
9842 Write_Str
("Package_Instantiation");
9846 Write_Str
("Related_Type");
9850 Write_Str
("Storage_Size_Variable");
9853 Write_Str
("Field26??");
9855 end Write_Field26_Name
;
9857 ------------------------
9858 -- Write_Field27_Name --
9859 ------------------------
9861 procedure Write_Field27_Name
(Id
: Entity_Id
) is
9866 Write_Str
("Current_Use_Clause");
9871 Write_Str
("Related_Type");
9875 Write_Str
("Wrapped_Entity");
9878 Write_Str
("Field27??");
9880 end Write_Field27_Name
;
9882 ------------------------
9883 -- Write_Field28_Name --
9884 ------------------------
9886 procedure Write_Field28_Name
(Id
: Entity_Id
) is
9894 E_Subprogram_Type
=>
9895 Write_Str
("Extra_Formals");
9899 Write_Str
("Finalizer");
9903 Write_Str
("Initialization_Statements");
9905 when E_Access_Subprogram_Type
=>
9906 Write_Str
("Original_Access_Type");
9909 Write_Str
("Relative_Deadline_Variable");
9911 when E_Record_Type
=>
9912 Write_Str
("Underlying_Record_View");
9915 Write_Str
("Field28??");
9917 end Write_Field28_Name
;
9919 ------------------------
9920 -- Write_Field29_Name --
9921 ------------------------
9923 procedure Write_Field29_Name
(Id
: Entity_Id
) is
9928 Write_Str
("BIP_Initialization_Call");
9931 Write_Str
("Subprograms_For_Type");
9934 Write_Str
("Field29??");
9936 end Write_Field29_Name
;
9938 ------------------------
9939 -- Write_Field30_Name --
9940 ------------------------
9942 procedure Write_Field30_Name
(Id
: Entity_Id
) is
9946 Write_Str
("Corresponding_Equality");
9950 Write_Str
("Last_Aggregate_Assignment");
9953 Write_Str
("Static_Initialization");
9956 Write_Str
("Field30??");
9958 end Write_Field30_Name
;
9960 ------------------------
9961 -- Write_Field31_Name --
9962 ------------------------
9964 procedure Write_Field31_Name
(Id
: Entity_Id
) is
9969 Write_Str
("Thunk_Entity");
9972 Write_Str
("Derived_Type_Link");
9976 E_In_Out_Parameter |
9980 Write_Str
("Activation_Record_Component");
9983 Write_Str
("Field31??");
9985 end Write_Field31_Name
;
9987 ------------------------
9988 -- Write_Field32_Name --
9989 ------------------------
9991 procedure Write_Field32_Name
(Id
: Entity_Id
) is
9995 E_Generic_Function |
9997 E_Generic_Procedure |
10001 E_Subprogram_Body
=>
10002 Write_Str
("SPARK_Pragma");
10005 Write_Str
("No_Tagged_Streams_Pragma");
10008 Write_Str
("Field32??");
10010 end Write_Field32_Name
;
10012 ------------------------
10013 -- Write_Field33_Name --
10014 ------------------------
10016 procedure Write_Field33_Name
(Id
: Entity_Id
) is
10019 when E_Generic_Package |
10022 Write_Str
("SPARK_Aux_Pragma");
10028 Write_Str
("Linker_Section_Pragma");
10031 Write_Str
("Field33??");
10033 end Write_Field33_Name
;
10035 ------------------------
10036 -- Write_Field34_Name --
10037 ------------------------
10039 procedure Write_Field34_Name
(Id
: Entity_Id
) is
10044 E_Generic_Package |
10047 E_Subprogram_Body |
10049 Generic_Subprogram_Kind |
10051 Write_Str
("Contract");
10054 Write_Str
("Field34??");
10056 end Write_Field34_Name
;
10058 ------------------------
10059 -- Write_Field35_Name --
10060 ------------------------
10062 procedure Write_Field35_Name
(Id
: Entity_Id
) is
10065 when Subprogram_Kind
=>
10066 Write_Str
("Import_Pragma");
10069 Write_Str
("Field35??");
10071 end Write_Field35_Name
;
10073 ------------------------
10074 -- Write_Field36_Name --
10075 ------------------------
10077 procedure Write_Field36_Name
(Id
: Entity_Id
) is
10081 Write_Str
("Field36??");
10083 end Write_Field36_Name
;
10085 ------------------------
10086 -- Write_Field37_Name --
10087 ------------------------
10089 procedure Write_Field37_Name
(Id
: Entity_Id
) is
10093 Write_Str
("Field37??");
10095 end Write_Field37_Name
;
10097 ------------------------
10098 -- Write_Field38_Name --
10099 ------------------------
10101 procedure Write_Field38_Name
(Id
: Entity_Id
) is
10105 Write_Str
("Field38??");
10107 end Write_Field38_Name
;
10109 ------------------------
10110 -- Write_Field39_Name --
10111 ------------------------
10113 procedure Write_Field39_Name
(Id
: Entity_Id
) is
10117 Write_Str
("Field39??");
10119 end Write_Field39_Name
;
10121 ------------------------
10122 -- Write_Field40_Name --
10123 ------------------------
10125 procedure Write_Field40_Name
(Id
: Entity_Id
) is
10129 Write_Str
("Field40??");
10131 end Write_Field40_Name
;
10133 ------------------------
10134 -- Write_Field41_Name --
10135 ------------------------
10137 procedure Write_Field41_Name
(Id
: Entity_Id
) is
10141 Write_Str
("Field41??");
10143 end Write_Field41_Name
;
10145 -------------------------
10146 -- Iterator Procedures --
10147 -------------------------
10149 procedure Proc_Next_Component
(N
: in out Node_Id
) is
10151 N
:= Next_Component
(N
);
10152 end Proc_Next_Component
;
10154 procedure Proc_Next_Component_Or_Discriminant
(N
: in out Node_Id
) is
10156 N
:= Next_Entity
(N
);
10157 while Present
(N
) loop
10158 exit when Ekind_In
(N
, E_Component
, E_Discriminant
);
10159 N
:= Next_Entity
(N
);
10161 end Proc_Next_Component_Or_Discriminant
;
10163 procedure Proc_Next_Discriminant
(N
: in out Node_Id
) is
10165 N
:= Next_Discriminant
(N
);
10166 end Proc_Next_Discriminant
;
10168 procedure Proc_Next_Formal
(N
: in out Node_Id
) is
10170 N
:= Next_Formal
(N
);
10171 end Proc_Next_Formal
;
10173 procedure Proc_Next_Formal_With_Extras
(N
: in out Node_Id
) is
10175 N
:= Next_Formal_With_Extras
(N
);
10176 end Proc_Next_Formal_With_Extras
;
10178 procedure Proc_Next_Index
(N
: in out Node_Id
) is
10180 N
:= Next_Index
(N
);
10181 end Proc_Next_Index
;
10183 procedure Proc_Next_Inlined_Subprogram
(N
: in out Node_Id
) is
10185 N
:= Next_Inlined_Subprogram
(N
);
10186 end Proc_Next_Inlined_Subprogram
;
10188 procedure Proc_Next_Literal
(N
: in out Node_Id
) is
10190 N
:= Next_Literal
(N
);
10191 end Proc_Next_Literal
;
10193 procedure Proc_Next_Stored_Discriminant
(N
: in out Node_Id
) is
10195 N
:= Next_Stored_Discriminant
(N
);
10196 end Proc_Next_Stored_Discriminant
;