1 ------------------------------------------------------------------------------
3 -- GNAT COMPILER COMPONENTS --
9 -- Copyright (C) 1992-2010, 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 Nlists
; use Nlists
;
37 with Output
; use Output
;
38 with Sinfo
; use Sinfo
;
39 with Stand
; use Stand
;
43 use Atree
.Unchecked_Access
;
44 -- This is one of the packages that is allowed direct untyped access to
45 -- the fields in a node, since it provides the next level abstraction
46 -- which incorporates appropriate checks.
48 ----------------------------------------------
49 -- Usage of Fields in Defining Entity Nodes --
50 ----------------------------------------------
52 -- Four of these fields are defined in Sinfo, since they in are the base
53 -- part of the node. The access routines for these four fields and the
54 -- corresponding set procedures are defined in Sinfo. These fields are
55 -- present in all entities. Note that Homonym is also in the base part of
56 -- the node, but has access routines that are more properly part of Einfo,
57 -- which is why they are defined here.
64 -- Remaining fields are present only in extended nodes (i.e. entities)
66 -- The following fields are present in all entities
69 -- First_Rep_Item Node6
72 -- The usage of other fields (and the entity kinds to which it applies)
73 -- depends on the particular field (see Einfo spec for details).
75 -- Associated_Node_For_Itype Node8
76 -- Dependent_Instances Elist8
77 -- Hiding_Loop_Variable Node8
78 -- Mechanism Uint8 (but returns Mechanism_Type)
79 -- Normalized_First_Bit Uint8
80 -- Postcondition_Proc Node8
81 -- Return_Applies_To Node8
82 -- First_Exit_Statement Node8
84 -- Class_Wide_Type Node9
85 -- Current_Value Node9
88 -- Direct_Primitive_Operations Elist10
89 -- Discriminal_Link Node10
90 -- Handler_Records List10
91 -- Normalized_Position_Max Uint10
93 -- Component_Bit_Offset Uint11
95 -- Entry_Component Node11
96 -- Enumeration_Pos Uint11
97 -- Generic_Homonym Node11
98 -- Protected_Body_Subprogram Node11
101 -- Barrier_Function Node12
102 -- Enumeration_Rep Uint12
104 -- Next_Inlined_Subprogram Node12
106 -- Corresponding_Equality Node13
107 -- Component_Clause Node13
108 -- Elaboration_Entity Node13
109 -- Extra_Accessibility Node13
113 -- First_Optional_Parameter Node14
114 -- Normalized_Position Uint14
115 -- Shadow_Entities List14
117 -- Discriminant_Number Uint15
118 -- DT_Position Uint15
119 -- DT_Entry_Count Uint15
120 -- Entry_Bodies_Array Node15
121 -- Entry_Parameters_Type Node15
122 -- Extra_Formal Node15
123 -- Lit_Indexes Node15
124 -- Related_Instance Node15
125 -- Scale_Value Uint15
126 -- Storage_Size_Variable Node15
127 -- String_Literal_Low_Bound Node15
129 -- Access_Disp_Table Elist16
130 -- Cloned_Subtype Node16
132 -- Entry_Formal Node16
133 -- First_Private_Entity Node16
134 -- Lit_Strings Node16
135 -- String_Literal_Length Uint16
136 -- Unset_Reference Node16
138 -- Actual_Subtype Node17
139 -- Digits_Value Uint17
140 -- Discriminal Node17
141 -- First_Entity Node17
142 -- First_Index Node17
143 -- First_Literal Node17
146 -- Non_Limited_View Node17
150 -- Corresponding_Concurrent_Type Node18
151 -- Corresponding_Protected_Entry Node18
152 -- Corresponding_Record_Type Node18
153 -- Delta_Value Ureal18
154 -- Enclosing_Scope Node18
155 -- Equivalent_Type Node18
156 -- Private_Dependents Elist18
157 -- Renamed_Entity Node18
158 -- Renamed_Object Node18
160 -- Body_Entity Node19
161 -- Corresponding_Discriminant Node19
162 -- Finalization_Chain_Entity Node19
163 -- Parent_Subtype Node19
164 -- Related_Array_Object Node19
165 -- Size_Check_Code Node19
166 -- Spec_Entity Node19
167 -- Underlying_Full_View Node19
169 -- Component_Type Node20
170 -- Default_Value Node20
171 -- Directly_Designated_Type Node20
172 -- Discriminant_Checking_Func Node20
173 -- Discriminant_Default_Value Node20
174 -- Last_Entity Node20
175 -- Prival_Link Node20
176 -- Register_Exception_Call Node20
177 -- Scalar_Range Node20
179 -- Accept_Address Elist21
180 -- Default_Expr_Function Node21
181 -- Discriminant_Constraint Elist21
182 -- Interface_Name Node21
183 -- Original_Array_Type Node21
184 -- Small_Value Ureal21
186 -- Associated_Storage_Pool Node22
187 -- Component_Size Uint22
188 -- Corresponding_Remote_Type Node22
189 -- Enumeration_Rep_Expr Node22
190 -- Exception_Code Uint22
191 -- Original_Record_Component Node22
192 -- Private_View Node22
193 -- Protected_Formal Node22
194 -- Scope_Depth_Value Uint22
195 -- Shared_Var_Procs_Instance Node22
197 -- Associated_Final_Chain Node23
198 -- CR_Discriminant Node23
199 -- Entry_Cancel_Parameter Node23
200 -- Enum_Pos_To_Rep Node23
201 -- Extra_Constrained Node23
202 -- Generic_Renamings Elist23
203 -- Inner_Instances Elist23
204 -- Limited_View Node23
205 -- Packed_Array_Type Node23
206 -- Protection_Object Node23
207 -- Stored_Constraint Elist23
209 -- Related_Expression Node24
210 -- Spec_PPC_List Node24
212 -- Interface_Alias Node25
213 -- Interfaces Elist25
214 -- Debug_Renaming_Link Node25
215 -- DT_Offset_To_Top_Func Node25
216 -- PPC_Wrapper Node25
217 -- Task_Body_Procedure Node25
219 -- Dispatch_Table_Wrappers Elist26
220 -- Last_Assignment Node26
221 -- Overridden_Operation Node26
222 -- Package_Instantiation Node26
223 -- Relative_Deadline_Variable Node26
224 -- Static_Initialization Node26
226 -- Current_Use_Clause Node27
227 -- Related_Type Node27
228 -- Wrapped_Entity Node27
230 -- Extra_Formals Node28
231 -- Underlying_Record_View Node28
233 -- Invariant_Procedure Node29
235 ---------------------------------------------
236 -- Usage of Flags in Defining Entity Nodes --
237 ---------------------------------------------
239 -- All flags are unique, there is no overlaying, so each flag is physically
240 -- present in every entity. However, for many of the flags, it only makes
241 -- sense for them to be set true for certain subsets of entity kinds. See
242 -- the spec of Einfo for further details.
244 -- Note: Flag1-Flag3 are absent from this list, for historical reasons
247 -- Has_Discriminants Flag5
248 -- Is_Dispatching_Operation Flag6
249 -- Is_Immediately_Visible Flag7
251 -- Is_Potentially_Use_Visible Flag9
255 -- Is_Constrained Flag12
256 -- Is_Generic_Type Flag13
257 -- Depends_On_Private Flag14
259 -- Is_Volatile Flag16
260 -- Is_Internal Flag17
261 -- Has_Delayed_Freeze Flag18
262 -- Is_Abstract_Subprogram Flag19
263 -- Is_Concurrent_Record_Type Flag20
265 -- Has_Master_Entity Flag21
266 -- Needs_No_Actuals Flag22
267 -- Has_Storage_Size_Clause Flag23
268 -- Is_Imported Flag24
269 -- Is_Limited_Record Flag25
270 -- Has_Completion Flag26
271 -- Has_Pragma_Controlled Flag27
272 -- Is_Statically_Allocated Flag28
273 -- Has_Size_Clause Flag29
276 -- Checks_May_Be_Suppressed Flag31
277 -- Kill_Elaboration_Checks Flag32
278 -- Kill_Range_Checks Flag33
279 -- Kill_Tag_Checks Flag34
280 -- Is_Class_Wide_Equivalent_Type Flag35
281 -- Referenced_As_LHS Flag36
282 -- Is_Known_Non_Null Flag37
283 -- Can_Never_Be_Null Flag38
284 -- Is_Overriding_Operation Flag39
285 -- Body_Needed_For_SAL Flag40
287 -- Treat_As_Volatile Flag41
288 -- Is_Controlled Flag42
289 -- Has_Controlled_Component Flag43
291 -- In_Private_Part Flag45
292 -- Has_Alignment_Clause Flag46
294 -- In_Package_Body Flag48
296 -- Delay_Subprogram_Descriptors Flag50
299 -- Is_Entry_Formal Flag52
300 -- Is_Private_Descendant Flag53
301 -- Return_Present Flag54
302 -- Is_Tagged_Type Flag55
303 -- Has_Homonym Flag56
305 -- Non_Binary_Modulus Flag58
306 -- Is_Preelaborated Flag59
307 -- Is_Shared_Passive Flag60
309 -- Is_Remote_Types Flag61
310 -- Is_Remote_Call_Interface Flag62
311 -- Is_Character_Type Flag63
312 -- Is_Intrinsic_Subprogram Flag64
313 -- Has_Record_Rep_Clause Flag65
314 -- Has_Enumeration_Rep_Clause Flag66
315 -- Has_Small_Clause Flag67
316 -- Has_Component_Size_Clause Flag68
317 -- Is_Access_Constant Flag69
318 -- Is_First_Subtype Flag70
320 -- Has_Completion_In_Body Flag71
321 -- Has_Unknown_Discriminants Flag72
322 -- Is_Child_Unit Flag73
323 -- Is_CPP_Class Flag74
324 -- Has_Non_Standard_Rep Flag75
325 -- Is_Constructor Flag76
326 -- Static_Elaboration_Desired Flag77
328 -- Has_All_Calls_Remote Flag79
329 -- Is_Constr_Subt_For_U_Nominal Flag80
331 -- Is_Asynchronous Flag81
332 -- Has_Gigi_Rep_Item Flag82
333 -- Has_Machine_Radix_Clause Flag83
334 -- Machine_Radix_10 Flag84
336 -- Has_Atomic_Components Flag86
337 -- Has_Volatile_Components Flag87
338 -- Discard_Names Flag88
339 -- Is_Interrupt_Handler Flag89
340 -- Returns_By_Ref Flag90
343 -- Size_Known_At_Compile_Time Flag92
344 -- Has_Subprogram_Descriptor Flag93
345 -- Is_Generic_Actual_Type Flag94
346 -- Uses_Sec_Stack Flag95
347 -- Warnings_Off Flag96
348 -- Is_Controlling_Formal Flag97
349 -- Has_Controlling_Result Flag98
350 -- Is_Exported Flag99
351 -- Has_Specified_Layout Flag100
353 -- Has_Nested_Block_With_Handler Flag101
355 -- Is_Completely_Hidden Flag103
356 -- Address_Taken Flag104
357 -- Suppress_Init_Proc Flag105
358 -- Is_Limited_Composite Flag106
359 -- Is_Private_Composite Flag107
360 -- Default_Expressions_Processed Flag108
361 -- Is_Non_Static_Subtype Flag109
362 -- Has_External_Tag_Rep_Clause Flag110
364 -- Is_Formal_Subprogram Flag111
365 -- Is_Renaming_Of_Object Flag112
367 -- Delay_Cleanups Flag114
368 -- Never_Set_In_Source Flag115
369 -- Is_Visible_Child_Unit Flag116
370 -- Is_Unchecked_Union Flag117
371 -- Is_For_Access_Subtype Flag118
372 -- Has_Convention_Pragma Flag119
373 -- Has_Primitive_Operations Flag120
375 -- Has_Pragma_Pack Flag121
376 -- Is_Bit_Packed_Array Flag122
377 -- Has_Unchecked_Union Flag123
378 -- Is_Eliminated Flag124
379 -- C_Pass_By_Copy Flag125
380 -- Is_Instantiated Flag126
381 -- Is_Valued_Procedure Flag127
382 -- (used for Component_Alignment) Flag128
383 -- (used for Component_Alignment) Flag129
384 -- Is_Generic_Instance Flag130
386 -- No_Pool_Assigned Flag131
387 -- Is_AST_Entry Flag132
388 -- Is_VMS_Exception Flag133
389 -- Is_Optional_Parameter Flag134
390 -- Has_Aliased_Components Flag135
391 -- No_Strict_Aliasing Flag136
392 -- Is_Machine_Code_Subprogram Flag137
393 -- Is_Packed_Array_Type Flag138
394 -- Has_Biased_Representation Flag139
395 -- Has_Complex_Representation Flag140
397 -- Is_Constr_Subt_For_UN_Aliased Flag141
398 -- Has_Missing_Return Flag142
399 -- Has_Recursive_Call Flag143
400 -- Is_Unsigned_Type Flag144
401 -- Strict_Alignment Flag145
402 -- Is_Abstract_Type Flag146
403 -- Needs_Debug_Info Flag147
404 -- Suppress_Elaboration_Warnings Flag148
405 -- Is_Compilation_Unit Flag149
406 -- Has_Pragma_Elaborate_Body Flag150
409 -- Entry_Accepted Flag152
410 -- Is_Obsolescent Flag153
411 -- Has_Per_Object_Constraint Flag154
412 -- Has_Private_Declaration Flag155
413 -- Referenced Flag156
414 -- Has_Pragma_Inline Flag157
415 -- Finalize_Storage_Only Flag158
416 -- From_With_Type Flag159
417 -- Is_Package_Body_Entity Flag160
419 -- Has_Qualified_Name Flag161
420 -- Nonzero_Is_True Flag162
421 -- Is_True_Constant Flag163
422 -- Reverse_Bit_Order Flag164
423 -- Suppress_Style_Checks Flag165
424 -- Debug_Info_Off Flag166
425 -- Sec_Stack_Needed_For_Return Flag167
426 -- Materialize_Entity Flag168
427 -- Has_Pragma_Thread_Local_Storage Flag169
428 -- Is_Known_Valid Flag170
430 -- Is_Hidden_Open_Scope Flag171
431 -- Has_Object_Size_Clause Flag172
432 -- Has_Fully_Qualified_Name Flag173
433 -- Elaboration_Entity_Required Flag174
434 -- Has_Forward_Instantiation Flag175
435 -- Is_Discrim_SO_Function Flag176
436 -- Size_Depends_On_Discriminant Flag177
437 -- Is_Null_Init_Proc Flag178
438 -- Has_Pragma_Pure_Function Flag179
439 -- Has_Pragma_Unreferenced Flag180
441 -- Has_Contiguous_Rep Flag181
442 -- Has_Xref_Entry Flag182
443 -- Must_Be_On_Byte_Boundary Flag183
444 -- Has_Stream_Size_Clause Flag184
445 -- Is_Ada_2005_Only Flag185
446 -- Is_Interface Flag186
447 -- Has_Constrained_Partial_View Flag187
448 -- Has_Persistent_BSS Flag188
449 -- Is_Pure_Unit_Access_Type Flag189
450 -- Has_Specified_Stream_Input Flag190
452 -- Has_Specified_Stream_Output Flag191
453 -- Has_Specified_Stream_Read Flag192
454 -- Has_Specified_Stream_Write Flag193
455 -- Is_Local_Anonymous_Access Flag194
456 -- Is_Primitive_Wrapper Flag195
457 -- Was_Hidden Flag196
458 -- Is_Limited_Interface Flag197
459 -- Has_Pragma_Ordered Flag198
460 -- Is_Ada_2012_Only Flag199
462 -- Has_Delayed_Aspects Flag200
463 -- Has_Anon_Block_Suffix Flag201
464 -- Itype_Printed Flag202
465 -- Has_Pragma_Pure Flag203
466 -- Is_Known_Null Flag204
467 -- Low_Bound_Tested Flag205
468 -- Is_Visible_Formal Flag206
469 -- Known_To_Have_Preelab_Init Flag207
470 -- Must_Have_Preelab_Init Flag208
471 -- Is_Return_Object Flag209
472 -- Elaborate_Body_Desirable Flag210
474 -- Has_Static_Discriminants Flag211
475 -- Has_Pragma_Unreferenced_Objects Flag212
476 -- Requires_Overriding Flag213
478 -- Has_Up_Level_Access Flag215
479 -- Universal_Aliasing Flag216
480 -- Suppress_Value_Tracking_On_Call Flag217
481 -- Is_Primitive Flag218
482 -- Has_Initial_Value Flag219
483 -- Has_Dispatch_Table Flag220
485 -- Has_Pragma_Preelab_Init Flag221
486 -- Used_As_Generic_Actual Flag222
487 -- Is_Descendent_Of_Address Flag223
490 -- Is_Only_Out_Parameter Flag226
491 -- Referenced_As_Out_Parameter Flag227
492 -- Has_Thunks Flag228
493 -- Can_Use_Internal_Rep Flag229
494 -- Has_Pragma_Inline_Always Flag230
496 -- Renamed_In_Spec Flag231
497 -- Has_Invariants Flag232
498 -- Has_Pragma_Unmodified Flag233
499 -- Is_Dispatch_Table_Entity Flag234
500 -- Is_Trivial_Subprogram Flag235
501 -- Warnings_Off_Used Flag236
502 -- Warnings_Off_Used_Unmodified Flag237
503 -- Warnings_Off_Used_Unreferenced Flag238
504 -- OK_To_Reorder_Components Flag239
505 -- Has_Postconditions Flag240
507 -- Optimize_Alignment_Space Flag241
508 -- Optimize_Alignment_Time Flag242
509 -- Overlays_Constant Flag243
510 -- Is_RACW_Stub_Type Flag244
511 -- Is_Private_Primitive Flag245
512 -- Is_Underlying_Record_View Flag246
513 -- OK_To_Rename Flag247
514 -- Has_Inheritable_Invariants Flag248
515 -- OK_To_Reference Flag249
523 -----------------------
524 -- Local subprograms --
525 -----------------------
527 function Rep_Clause
(Id
: E
; Rep_Name
: Name_Id
) return N
;
528 -- Returns the attribute definition clause for Id whose name is Rep_Name.
529 -- Returns Empty if no matching attribute definition clause found for Id.
535 function Rep_Clause
(Id
: E
; Rep_Name
: Name_Id
) return N
is
539 Ritem
:= First_Rep_Item
(Id
);
540 while Present
(Ritem
) loop
541 if Nkind
(Ritem
) = N_Attribute_Definition_Clause
542 and then Chars
(Ritem
) = Rep_Name
546 Next_Rep_Item
(Ritem
);
553 --------------------------------
554 -- Attribute Access Functions --
555 --------------------------------
557 function Accept_Address
(Id
: E
) return L
is
562 function Access_Disp_Table
(Id
: E
) return L
is
564 pragma Assert
(Is_Tagged_Type
(Id
));
565 return Elist16
(Implementation_Base_Type
(Id
));
566 end Access_Disp_Table
;
568 function Actual_Subtype
(Id
: E
) return E
is
571 (Ekind_In
(Id
, E_Constant
, E_Variable
, E_Generic_In_Out_Parameter
)
572 or else Is_Formal
(Id
));
576 function Address_Taken
(Id
: E
) return B
is
581 function Alias
(Id
: E
) return E
is
584 (Is_Overloadable
(Id
) or else Ekind
(Id
) = E_Subprogram_Type
);
588 function Alignment
(Id
: E
) return U
is
590 pragma Assert
(Is_Type
(Id
)
591 or else Is_Formal
(Id
)
592 or else Ekind_In
(Id
, E_Loop_Parameter
,
599 function Associated_Final_Chain
(Id
: E
) return E
is
601 pragma Assert
(Is_Access_Type
(Id
));
603 end Associated_Final_Chain
;
605 function Associated_Formal_Package
(Id
: E
) return E
is
607 pragma Assert
(Ekind
(Id
) = E_Package
);
609 end Associated_Formal_Package
;
611 function Associated_Node_For_Itype
(Id
: E
) return N
is
614 end Associated_Node_For_Itype
;
616 function Associated_Storage_Pool
(Id
: E
) return E
is
618 pragma Assert
(Is_Access_Type
(Id
));
619 return Node22
(Root_Type
(Id
));
620 end Associated_Storage_Pool
;
622 function Barrier_Function
(Id
: E
) return N
is
624 pragma Assert
(Is_Entry
(Id
));
626 end Barrier_Function
;
628 function Block_Node
(Id
: E
) return N
is
630 pragma Assert
(Ekind
(Id
) = E_Block
);
634 function Body_Entity
(Id
: E
) return E
is
636 pragma Assert
(Ekind_In
(Id
, E_Package
, E_Generic_Package
));
640 function Body_Needed_For_SAL
(Id
: E
) return B
is
643 (Ekind
(Id
) = E_Package
644 or else Is_Subprogram
(Id
)
645 or else Is_Generic_Unit
(Id
));
647 end Body_Needed_For_SAL
;
649 function C_Pass_By_Copy
(Id
: E
) return B
is
651 pragma Assert
(Is_Record_Type
(Id
));
652 return Flag125
(Implementation_Base_Type
(Id
));
655 function Can_Never_Be_Null
(Id
: E
) return B
is
658 end Can_Never_Be_Null
;
660 function Checks_May_Be_Suppressed
(Id
: E
) return B
is
663 end Checks_May_Be_Suppressed
;
665 function Class_Wide_Type
(Id
: E
) return E
is
667 pragma Assert
(Is_Type
(Id
));
671 function Cloned_Subtype
(Id
: E
) return E
is
673 pragma Assert
(Ekind_In
(Id
, E_Record_Subtype
, E_Class_Wide_Subtype
));
677 function Component_Bit_Offset
(Id
: E
) return U
is
679 pragma Assert
(Ekind_In
(Id
, E_Component
, E_Discriminant
));
681 end Component_Bit_Offset
;
683 function Component_Clause
(Id
: E
) return N
is
685 pragma Assert
(Ekind_In
(Id
, E_Component
, E_Discriminant
));
687 end Component_Clause
;
689 function Component_Size
(Id
: E
) return U
is
691 pragma Assert
(Is_Array_Type
(Id
));
692 return Uint22
(Implementation_Base_Type
(Id
));
695 function Component_Type
(Id
: E
) return E
is
697 pragma Assert
(Is_Array_Type
(Id
) or else Is_String_Type
(Id
));
698 return Node20
(Implementation_Base_Type
(Id
));
701 function Corresponding_Concurrent_Type
(Id
: E
) return E
is
703 pragma Assert
(Ekind
(Id
) = E_Record_Type
);
705 end Corresponding_Concurrent_Type
;
707 function Corresponding_Discriminant
(Id
: E
) return E
is
709 pragma Assert
(Ekind
(Id
) = E_Discriminant
);
711 end Corresponding_Discriminant
;
713 function Corresponding_Equality
(Id
: E
) return E
is
716 (Ekind
(Id
) = E_Function
717 and then not Comes_From_Source
(Id
)
718 and then Chars
(Id
) = Name_Op_Ne
);
720 end Corresponding_Equality
;
722 function Corresponding_Protected_Entry
(Id
: E
) return E
is
724 pragma Assert
(Ekind
(Id
) = E_Subprogram_Body
);
726 end Corresponding_Protected_Entry
;
728 function Corresponding_Record_Type
(Id
: E
) return E
is
730 pragma Assert
(Is_Concurrent_Type
(Id
));
732 end Corresponding_Record_Type
;
734 function Corresponding_Remote_Type
(Id
: E
) return E
is
737 end Corresponding_Remote_Type
;
739 function Current_Use_Clause
(Id
: E
) return E
is
741 pragma Assert
(Ekind
(Id
) = E_Package
or else Is_Type
(Id
));
743 end Current_Use_Clause
;
745 function Current_Value
(Id
: E
) return N
is
747 pragma Assert
(Ekind
(Id
) in Object_Kind
);
751 function CR_Discriminant
(Id
: E
) return E
is
756 function Debug_Info_Off
(Id
: E
) return B
is
761 function Debug_Renaming_Link
(Id
: E
) return E
is
764 end Debug_Renaming_Link
;
766 function Default_Expr_Function
(Id
: E
) return E
is
768 pragma Assert
(Is_Formal
(Id
));
770 end Default_Expr_Function
;
772 function Default_Expressions_Processed
(Id
: E
) return B
is
775 end Default_Expressions_Processed
;
777 function Default_Value
(Id
: E
) return N
is
779 pragma Assert
(Is_Formal
(Id
));
783 function Delay_Cleanups
(Id
: E
) return B
is
788 function Delay_Subprogram_Descriptors
(Id
: E
) return B
is
791 end Delay_Subprogram_Descriptors
;
793 function Delta_Value
(Id
: E
) return R
is
795 pragma Assert
(Is_Fixed_Point_Type
(Id
));
799 function Dependent_Instances
(Id
: E
) return L
is
801 pragma Assert
(Is_Generic_Instance
(Id
));
803 end Dependent_Instances
;
805 function Depends_On_Private
(Id
: E
) return B
is
807 pragma Assert
(Nkind
(Id
) in N_Entity
);
809 end Depends_On_Private
;
811 function Digits_Value
(Id
: E
) return U
is
814 (Is_Floating_Point_Type
(Id
)
815 or else Is_Decimal_Fixed_Point_Type
(Id
));
819 function Direct_Primitive_Operations
(Id
: E
) return L
is
821 pragma Assert
(Is_Tagged_Type
(Id
));
823 end Direct_Primitive_Operations
;
825 function Directly_Designated_Type
(Id
: E
) return E
is
827 pragma Assert
(Is_Access_Type
(Id
));
829 end Directly_Designated_Type
;
831 function Discard_Names
(Id
: E
) return B
is
836 function Discriminal
(Id
: E
) return E
is
838 pragma Assert
(Ekind
(Id
) = E_Discriminant
);
842 function Discriminal_Link
(Id
: E
) return N
is
845 end Discriminal_Link
;
847 function Discriminant_Checking_Func
(Id
: E
) return E
is
849 pragma Assert
(Ekind
(Id
) = E_Component
);
851 end Discriminant_Checking_Func
;
853 function Discriminant_Constraint
(Id
: E
) return L
is
855 pragma Assert
(Is_Composite_Type
(Id
) and then Has_Discriminants
(Id
));
857 end Discriminant_Constraint
;
859 function Discriminant_Default_Value
(Id
: E
) return N
is
861 pragma Assert
(Ekind
(Id
) = E_Discriminant
);
863 end Discriminant_Default_Value
;
865 function Discriminant_Number
(Id
: E
) return U
is
867 pragma Assert
(Ekind
(Id
) = E_Discriminant
);
869 end Discriminant_Number
;
871 function Dispatch_Table_Wrappers
(Id
: E
) return L
is
873 pragma Assert
(Is_Tagged_Type
(Id
));
874 return Elist26
(Implementation_Base_Type
(Id
));
875 end Dispatch_Table_Wrappers
;
877 function DT_Entry_Count
(Id
: E
) return U
is
879 pragma Assert
(Ekind
(Id
) = E_Component
and then Is_Tag
(Id
));
883 function DT_Offset_To_Top_Func
(Id
: E
) return E
is
885 pragma Assert
(Ekind
(Id
) = E_Component
and then Is_Tag
(Id
));
887 end DT_Offset_To_Top_Func
;
889 function DT_Position
(Id
: E
) return U
is
891 pragma Assert
(Ekind_In
(Id
, E_Function
, E_Procedure
)
892 and then Present
(DTC_Entity
(Id
)));
896 function DTC_Entity
(Id
: E
) return E
is
898 pragma Assert
(Ekind_In
(Id
, E_Function
, E_Procedure
));
902 function Elaborate_Body_Desirable
(Id
: E
) return B
is
904 pragma Assert
(Ekind
(Id
) = E_Package
);
906 end Elaborate_Body_Desirable
;
908 function Elaboration_Entity
(Id
: E
) return E
is
913 Ekind
(Id
) = E_Package
915 Is_Generic_Unit
(Id
));
917 end Elaboration_Entity
;
919 function Elaboration_Entity_Required
(Id
: E
) return B
is
924 Ekind
(Id
) = E_Package
926 Is_Generic_Unit
(Id
));
928 end Elaboration_Entity_Required
;
930 function Enclosing_Scope
(Id
: E
) return E
is
935 function Entry_Accepted
(Id
: E
) return B
is
937 pragma Assert
(Is_Entry
(Id
));
941 function Entry_Bodies_Array
(Id
: E
) return E
is
944 end Entry_Bodies_Array
;
946 function Entry_Cancel_Parameter
(Id
: E
) return E
is
949 end Entry_Cancel_Parameter
;
951 function Entry_Component
(Id
: E
) return E
is
956 function Entry_Formal
(Id
: E
) return E
is
961 function Entry_Index_Constant
(Id
: E
) return N
is
963 pragma Assert
(Ekind
(Id
) = E_Entry_Index_Parameter
);
965 end Entry_Index_Constant
;
967 function Entry_Parameters_Type
(Id
: E
) return E
is
970 end Entry_Parameters_Type
;
972 function Enum_Pos_To_Rep
(Id
: E
) return E
is
974 pragma Assert
(Ekind
(Id
) = E_Enumeration_Type
);
978 function Enumeration_Pos
(Id
: E
) return Uint
is
980 pragma Assert
(Ekind
(Id
) = E_Enumeration_Literal
);
984 function Enumeration_Rep
(Id
: E
) return U
is
986 pragma Assert
(Ekind
(Id
) = E_Enumeration_Literal
);
990 function Enumeration_Rep_Expr
(Id
: E
) return N
is
992 pragma Assert
(Ekind
(Id
) = E_Enumeration_Literal
);
994 end Enumeration_Rep_Expr
;
996 function Equivalent_Type
(Id
: E
) return E
is
999 (Ekind_In
(Id
, E_Class_Wide_Type
,
1000 E_Class_Wide_Subtype
,
1001 E_Access_Protected_Subprogram_Type
,
1002 E_Anonymous_Access_Protected_Subprogram_Type
,
1003 E_Access_Subprogram_Type
,
1006 end Equivalent_Type
;
1008 function Esize
(Id
: E
) return Uint
is
1013 function Exception_Code
(Id
: E
) return Uint
is
1015 pragma Assert
(Ekind
(Id
) = E_Exception
);
1019 function Extra_Accessibility
(Id
: E
) return E
is
1021 pragma Assert
(Is_Formal
(Id
) or else Ekind
(Id
) = E_Variable
);
1023 end Extra_Accessibility
;
1025 function Extra_Constrained
(Id
: E
) return E
is
1027 pragma Assert
(Is_Formal
(Id
) or else Ekind
(Id
) = E_Variable
);
1029 end Extra_Constrained
;
1031 function Extra_Formal
(Id
: E
) return E
is
1036 function Extra_Formals
(Id
: E
) return E
is
1039 (Is_Overloadable
(Id
)
1040 or else Ekind_In
(Id
, E_Entry_Family
,
1042 E_Subprogram_Type
));
1046 function Can_Use_Internal_Rep
(Id
: E
) return B
is
1048 pragma Assert
(Is_Access_Subprogram_Type
(Base_Type
(Id
)));
1049 return Flag229
(Base_Type
(Id
));
1050 end Can_Use_Internal_Rep
;
1052 function Finalization_Chain_Entity
(Id
: E
) return E
is
1055 end Finalization_Chain_Entity
;
1057 function Finalize_Storage_Only
(Id
: E
) return B
is
1059 pragma Assert
(Is_Type
(Id
));
1060 return Flag158
(Base_Type
(Id
));
1061 end Finalize_Storage_Only
;
1063 function First_Entity
(Id
: E
) return E
is
1068 function First_Exit_Statement
(Id
: E
) return N
is
1070 pragma Assert
(Ekind
(Id
) = E_Loop
);
1072 end First_Exit_Statement
;
1074 function First_Index
(Id
: E
) return N
is
1076 pragma Assert
(Is_Array_Type
(Id
) or else Is_String_Type
(Id
));
1080 function First_Literal
(Id
: E
) return E
is
1082 pragma Assert
(Is_Enumeration_Type
(Id
));
1086 function First_Optional_Parameter
(Id
: E
) return E
is
1088 pragma Assert
(Ekind_In
(Id
, E_Function
, E_Procedure
));
1090 end First_Optional_Parameter
;
1092 function First_Private_Entity
(Id
: E
) return E
is
1094 pragma Assert
(Ekind_In
(Id
, E_Package
, E_Generic_Package
)
1095 or else Ekind
(Id
) in Concurrent_Kind
);
1097 end First_Private_Entity
;
1099 function First_Rep_Item
(Id
: E
) return E
is
1104 function Freeze_Node
(Id
: E
) return N
is
1109 function From_With_Type
(Id
: E
) return B
is
1111 return Flag159
(Id
);
1114 function Full_View
(Id
: E
) return E
is
1116 pragma Assert
(Is_Type
(Id
) or else Ekind
(Id
) = E_Constant
);
1120 function Generic_Homonym
(Id
: E
) return E
is
1122 pragma Assert
(Ekind
(Id
) = E_Generic_Package
);
1124 end Generic_Homonym
;
1126 function Generic_Renamings
(Id
: E
) return L
is
1128 return Elist23
(Id
);
1129 end Generic_Renamings
;
1131 function Handler_Records
(Id
: E
) return S
is
1134 end Handler_Records
;
1136 function Has_Aliased_Components
(Id
: E
) return B
is
1138 return Flag135
(Implementation_Base_Type
(Id
));
1139 end Has_Aliased_Components
;
1141 function Has_Alignment_Clause
(Id
: E
) return B
is
1144 end Has_Alignment_Clause
;
1146 function Has_All_Calls_Remote
(Id
: E
) return B
is
1149 end Has_All_Calls_Remote
;
1151 function Has_Anon_Block_Suffix
(Id
: E
) return B
is
1153 return Flag201
(Id
);
1154 end Has_Anon_Block_Suffix
;
1156 function Has_Atomic_Components
(Id
: E
) return B
is
1158 return Flag86
(Implementation_Base_Type
(Id
));
1159 end Has_Atomic_Components
;
1161 function Has_Biased_Representation
(Id
: E
) return B
is
1163 return Flag139
(Id
);
1164 end Has_Biased_Representation
;
1166 function Has_Completion
(Id
: E
) return B
is
1171 function Has_Completion_In_Body
(Id
: E
) return B
is
1173 pragma Assert
(Is_Type
(Id
));
1175 end Has_Completion_In_Body
;
1177 function Has_Complex_Representation
(Id
: E
) return B
is
1179 pragma Assert
(Is_Type
(Id
));
1180 return Flag140
(Implementation_Base_Type
(Id
));
1181 end Has_Complex_Representation
;
1183 function Has_Component_Size_Clause
(Id
: E
) return B
is
1185 pragma Assert
(Is_Array_Type
(Id
));
1186 return Flag68
(Implementation_Base_Type
(Id
));
1187 end Has_Component_Size_Clause
;
1189 function Has_Constrained_Partial_View
(Id
: E
) return B
is
1191 pragma Assert
(Is_Type
(Id
));
1192 return Flag187
(Id
);
1193 end Has_Constrained_Partial_View
;
1195 function Has_Controlled_Component
(Id
: E
) return B
is
1197 return Flag43
(Base_Type
(Id
));
1198 end Has_Controlled_Component
;
1200 function Has_Contiguous_Rep
(Id
: E
) return B
is
1202 return Flag181
(Id
);
1203 end Has_Contiguous_Rep
;
1205 function Has_Controlling_Result
(Id
: E
) return B
is
1208 end Has_Controlling_Result
;
1210 function Has_Convention_Pragma
(Id
: E
) return B
is
1212 return Flag119
(Id
);
1213 end Has_Convention_Pragma
;
1215 function Has_Delayed_Aspects
(Id
: E
) return B
is
1217 pragma Assert
(Nkind
(Id
) in N_Entity
);
1218 return Flag200
(Id
);
1219 end Has_Delayed_Aspects
;
1221 function Has_Delayed_Freeze
(Id
: E
) return B
is
1223 pragma Assert
(Nkind
(Id
) in N_Entity
);
1225 end Has_Delayed_Freeze
;
1227 function Has_Discriminants
(Id
: E
) return B
is
1229 pragma Assert
(Nkind
(Id
) in N_Entity
);
1231 end Has_Discriminants
;
1233 function Has_Dispatch_Table
(Id
: E
) return B
is
1235 pragma Assert
(Is_Tagged_Type
(Id
));
1236 return Flag220
(Id
);
1237 end Has_Dispatch_Table
;
1239 function Has_Enumeration_Rep_Clause
(Id
: E
) return B
is
1241 pragma Assert
(Is_Enumeration_Type
(Id
));
1243 end Has_Enumeration_Rep_Clause
;
1245 function Has_Exit
(Id
: E
) return B
is
1250 function Has_External_Tag_Rep_Clause
(Id
: E
) return B
is
1252 pragma Assert
(Is_Tagged_Type
(Id
));
1253 return Flag110
(Id
);
1254 end Has_External_Tag_Rep_Clause
;
1256 function Has_Forward_Instantiation
(Id
: E
) return B
is
1258 return Flag175
(Id
);
1259 end Has_Forward_Instantiation
;
1261 function Has_Fully_Qualified_Name
(Id
: E
) return B
is
1263 return Flag173
(Id
);
1264 end Has_Fully_Qualified_Name
;
1266 function Has_Gigi_Rep_Item
(Id
: E
) return B
is
1269 end Has_Gigi_Rep_Item
;
1271 function Has_Homonym
(Id
: E
) return B
is
1276 function Has_Inheritable_Invariants
(Id
: E
) return B
is
1278 pragma Assert
(Is_Type
(Id
));
1279 return Flag248
(Id
);
1280 end Has_Inheritable_Invariants
;
1282 function Has_Initial_Value
(Id
: E
) return B
is
1284 pragma Assert
(Ekind
(Id
) = E_Variable
or else Is_Formal
(Id
));
1285 return Flag219
(Id
);
1286 end Has_Initial_Value
;
1288 function Has_Invariants
(Id
: E
) return B
is
1290 pragma Assert
(Is_Type
(Id
));
1291 return Flag232
(Id
);
1294 function Has_Machine_Radix_Clause
(Id
: E
) return B
is
1296 pragma Assert
(Is_Decimal_Fixed_Point_Type
(Id
));
1298 end Has_Machine_Radix_Clause
;
1300 function Has_Master_Entity
(Id
: E
) return B
is
1303 end Has_Master_Entity
;
1305 function Has_Missing_Return
(Id
: E
) return B
is
1307 pragma Assert
(Ekind_In
(Id
, E_Function
, E_Generic_Function
));
1308 return Flag142
(Id
);
1309 end Has_Missing_Return
;
1311 function Has_Nested_Block_With_Handler
(Id
: E
) return B
is
1313 return Flag101
(Id
);
1314 end Has_Nested_Block_With_Handler
;
1316 function Has_Non_Standard_Rep
(Id
: E
) return B
is
1318 return Flag75
(Implementation_Base_Type
(Id
));
1319 end Has_Non_Standard_Rep
;
1321 function Has_Object_Size_Clause
(Id
: E
) return B
is
1323 pragma Assert
(Is_Type
(Id
));
1324 return Flag172
(Id
);
1325 end Has_Object_Size_Clause
;
1327 function Has_Per_Object_Constraint
(Id
: E
) return B
is
1329 return Flag154
(Id
);
1330 end Has_Per_Object_Constraint
;
1332 function Has_Persistent_BSS
(Id
: E
) return B
is
1334 return Flag188
(Id
);
1335 end Has_Persistent_BSS
;
1337 function Has_Postconditions
(Id
: E
) return B
is
1339 pragma Assert
(Is_Subprogram
(Id
));
1340 return Flag240
(Id
);
1341 end Has_Postconditions
;
1343 function Has_Pragma_Controlled
(Id
: E
) return B
is
1345 pragma Assert
(Is_Access_Type
(Id
));
1346 return Flag27
(Implementation_Base_Type
(Id
));
1347 end Has_Pragma_Controlled
;
1349 function Has_Pragma_Elaborate_Body
(Id
: E
) return B
is
1351 return Flag150
(Id
);
1352 end Has_Pragma_Elaborate_Body
;
1354 function Has_Pragma_Inline
(Id
: E
) return B
is
1356 return Flag157
(Id
);
1357 end Has_Pragma_Inline
;
1359 function Has_Pragma_Inline_Always
(Id
: E
) return B
is
1361 return Flag230
(Id
);
1362 end Has_Pragma_Inline_Always
;
1364 function Has_Pragma_Ordered
(Id
: E
) return B
is
1366 pragma Assert
(Is_Enumeration_Type
(Id
));
1367 return Flag198
(Implementation_Base_Type
(Id
));
1368 end Has_Pragma_Ordered
;
1370 function Has_Pragma_Pack
(Id
: E
) return B
is
1372 pragma Assert
(Is_Record_Type
(Id
) or else Is_Array_Type
(Id
));
1373 return Flag121
(Implementation_Base_Type
(Id
));
1374 end Has_Pragma_Pack
;
1376 function Has_Pragma_Preelab_Init
(Id
: E
) return B
is
1378 return Flag221
(Id
);
1379 end Has_Pragma_Preelab_Init
;
1381 function Has_Pragma_Pure
(Id
: E
) return B
is
1383 return Flag203
(Id
);
1384 end Has_Pragma_Pure
;
1386 function Has_Pragma_Pure_Function
(Id
: E
) return B
is
1388 return Flag179
(Id
);
1389 end Has_Pragma_Pure_Function
;
1391 function Has_Pragma_Thread_Local_Storage
(Id
: E
) return B
is
1393 return Flag169
(Id
);
1394 end Has_Pragma_Thread_Local_Storage
;
1396 function Has_Pragma_Unmodified
(Id
: E
) return B
is
1398 return Flag233
(Id
);
1399 end Has_Pragma_Unmodified
;
1401 function Has_Pragma_Unreferenced
(Id
: E
) return B
is
1403 return Flag180
(Id
);
1404 end Has_Pragma_Unreferenced
;
1406 function Has_Pragma_Unreferenced_Objects
(Id
: E
) return B
is
1408 pragma Assert
(Is_Type
(Id
));
1409 return Flag212
(Id
);
1410 end Has_Pragma_Unreferenced_Objects
;
1412 function Has_Primitive_Operations
(Id
: E
) return B
is
1414 pragma Assert
(Is_Type
(Id
));
1415 return Flag120
(Base_Type
(Id
));
1416 end Has_Primitive_Operations
;
1418 function Has_Private_Declaration
(Id
: E
) return B
is
1420 return Flag155
(Id
);
1421 end Has_Private_Declaration
;
1423 function Has_Qualified_Name
(Id
: E
) return B
is
1425 return Flag161
(Id
);
1426 end Has_Qualified_Name
;
1428 function Has_RACW
(Id
: E
) return B
is
1430 pragma Assert
(Ekind
(Id
) = E_Package
);
1431 return Flag214
(Id
);
1434 function Has_Record_Rep_Clause
(Id
: E
) return B
is
1436 pragma Assert
(Is_Record_Type
(Id
));
1437 return Flag65
(Implementation_Base_Type
(Id
));
1438 end Has_Record_Rep_Clause
;
1440 function Has_Recursive_Call
(Id
: E
) return B
is
1442 pragma Assert
(Is_Subprogram
(Id
));
1443 return Flag143
(Id
);
1444 end Has_Recursive_Call
;
1446 function Has_Size_Clause
(Id
: E
) return B
is
1449 end Has_Size_Clause
;
1451 function Has_Small_Clause
(Id
: E
) return B
is
1454 end Has_Small_Clause
;
1456 function Has_Specified_Layout
(Id
: E
) return B
is
1458 pragma Assert
(Is_Type
(Id
));
1459 return Flag100
(Implementation_Base_Type
(Id
));
1460 end Has_Specified_Layout
;
1462 function Has_Specified_Stream_Input
(Id
: E
) return B
is
1464 pragma Assert
(Is_Type
(Id
));
1465 return Flag190
(Id
);
1466 end Has_Specified_Stream_Input
;
1468 function Has_Specified_Stream_Output
(Id
: E
) return B
is
1470 pragma Assert
(Is_Type
(Id
));
1471 return Flag191
(Id
);
1472 end Has_Specified_Stream_Output
;
1474 function Has_Specified_Stream_Read
(Id
: E
) return B
is
1476 pragma Assert
(Is_Type
(Id
));
1477 return Flag192
(Id
);
1478 end Has_Specified_Stream_Read
;
1480 function Has_Specified_Stream_Write
(Id
: E
) return B
is
1482 pragma Assert
(Is_Type
(Id
));
1483 return Flag193
(Id
);
1484 end Has_Specified_Stream_Write
;
1486 function Has_Static_Discriminants
(Id
: E
) return B
is
1488 pragma Assert
(Is_Type
(Id
));
1489 return Flag211
(Id
);
1490 end Has_Static_Discriminants
;
1492 function Has_Storage_Size_Clause
(Id
: E
) return B
is
1494 pragma Assert
(Is_Access_Type
(Id
) or else Is_Task_Type
(Id
));
1495 return Flag23
(Implementation_Base_Type
(Id
));
1496 end Has_Storage_Size_Clause
;
1498 function Has_Stream_Size_Clause
(Id
: E
) return B
is
1500 return Flag184
(Id
);
1501 end Has_Stream_Size_Clause
;
1503 function Has_Subprogram_Descriptor
(Id
: E
) return B
is
1506 end Has_Subprogram_Descriptor
;
1508 function Has_Task
(Id
: E
) return B
is
1510 return Flag30
(Base_Type
(Id
));
1513 function Has_Thunks
(Id
: E
) return B
is
1515 return Flag228
(Id
);
1518 function Has_Unchecked_Union
(Id
: E
) return B
is
1520 return Flag123
(Base_Type
(Id
));
1521 end Has_Unchecked_Union
;
1523 function Has_Unknown_Discriminants
(Id
: E
) return B
is
1525 pragma Assert
(Is_Type
(Id
));
1527 end Has_Unknown_Discriminants
;
1529 function Has_Up_Level_Access
(Id
: E
) return B
is
1532 (Ekind_In
(Id
, E_Variable
, E_Constant
, E_Loop_Parameter
));
1533 return Flag215
(Id
);
1534 end Has_Up_Level_Access
;
1536 function Has_Volatile_Components
(Id
: E
) return B
is
1538 return Flag87
(Implementation_Base_Type
(Id
));
1539 end Has_Volatile_Components
;
1541 function Has_Xref_Entry
(Id
: E
) return B
is
1543 return Flag182
(Implementation_Base_Type
(Id
));
1546 function Hiding_Loop_Variable
(Id
: E
) return E
is
1548 pragma Assert
(Ekind
(Id
) = E_Variable
);
1550 end Hiding_Loop_Variable
;
1552 function Homonym
(Id
: E
) return E
is
1557 function Interface_Alias
(Id
: E
) return E
is
1559 pragma Assert
(Is_Subprogram
(Id
));
1561 end Interface_Alias
;
1563 function Interfaces
(Id
: E
) return L
is
1565 pragma Assert
(Is_Record_Type
(Id
));
1566 return Elist25
(Id
);
1569 function Invariant_Procedure
(Id
: E
) return N
is
1571 pragma Assert
(Is_Type
(Id
));
1573 end Invariant_Procedure
;
1575 function In_Package_Body
(Id
: E
) return B
is
1578 end In_Package_Body
;
1580 function In_Private_Part
(Id
: E
) return B
is
1583 end In_Private_Part
;
1585 function In_Use
(Id
: E
) return B
is
1587 pragma Assert
(Nkind
(Id
) in N_Entity
);
1591 function Inner_Instances
(Id
: E
) return L
is
1593 return Elist23
(Id
);
1594 end Inner_Instances
;
1596 function Interface_Name
(Id
: E
) return N
is
1601 function Is_Abstract_Subprogram
(Id
: E
) return B
is
1603 pragma Assert
(Is_Overloadable
(Id
));
1605 end Is_Abstract_Subprogram
;
1607 function Is_Abstract_Type
(Id
: E
) return B
is
1609 pragma Assert
(Is_Type
(Id
));
1610 return Flag146
(Id
);
1611 end Is_Abstract_Type
;
1613 function Is_Local_Anonymous_Access
(Id
: E
) return B
is
1615 pragma Assert
(Is_Access_Type
(Id
));
1616 return Flag194
(Id
);
1617 end Is_Local_Anonymous_Access
;
1619 function Is_Access_Constant
(Id
: E
) return B
is
1621 pragma Assert
(Is_Access_Type
(Id
));
1623 end Is_Access_Constant
;
1625 function Is_Ada_2005_Only
(Id
: E
) return B
is
1627 return Flag185
(Id
);
1628 end Is_Ada_2005_Only
;
1630 function Is_Ada_2012_Only
(Id
: E
) return B
is
1632 return Flag199
(Id
);
1633 end Is_Ada_2012_Only
;
1635 function Is_Aliased
(Id
: E
) return B
is
1637 pragma Assert
(Nkind
(Id
) in N_Entity
);
1641 function Is_AST_Entry
(Id
: E
) return B
is
1643 pragma Assert
(Is_Entry
(Id
));
1644 return Flag132
(Id
);
1647 function Is_Asynchronous
(Id
: E
) return B
is
1649 pragma Assert
(Ekind
(Id
) = E_Procedure
or else Is_Type
(Id
));
1651 end Is_Asynchronous
;
1653 function Is_Atomic
(Id
: E
) return B
is
1658 function Is_Bit_Packed_Array
(Id
: E
) return B
is
1660 return Flag122
(Implementation_Base_Type
(Id
));
1661 end Is_Bit_Packed_Array
;
1663 function Is_Called
(Id
: E
) return B
is
1665 pragma Assert
(Ekind_In
(Id
, E_Procedure
, E_Function
));
1666 return Flag102
(Id
);
1669 function Is_Character_Type
(Id
: E
) return B
is
1672 end Is_Character_Type
;
1674 function Is_Child_Unit
(Id
: E
) return B
is
1679 function Is_Class_Wide_Equivalent_Type
(Id
: E
) return B
is
1682 end Is_Class_Wide_Equivalent_Type
;
1684 function Is_Compilation_Unit
(Id
: E
) return B
is
1686 return Flag149
(Id
);
1687 end Is_Compilation_Unit
;
1689 function Is_Completely_Hidden
(Id
: E
) return B
is
1691 pragma Assert
(Ekind
(Id
) = E_Discriminant
);
1692 return Flag103
(Id
);
1693 end Is_Completely_Hidden
;
1695 function Is_Constr_Subt_For_U_Nominal
(Id
: E
) return B
is
1698 end Is_Constr_Subt_For_U_Nominal
;
1700 function Is_Constr_Subt_For_UN_Aliased
(Id
: E
) return B
is
1702 return Flag141
(Id
);
1703 end Is_Constr_Subt_For_UN_Aliased
;
1705 function Is_Constrained
(Id
: E
) return B
is
1707 pragma Assert
(Nkind
(Id
) in N_Entity
);
1711 function Is_Constructor
(Id
: E
) return B
is
1716 function Is_Controlled
(Id
: E
) return B
is
1718 return Flag42
(Base_Type
(Id
));
1721 function Is_Controlling_Formal
(Id
: E
) return B
is
1723 pragma Assert
(Is_Formal
(Id
));
1725 end Is_Controlling_Formal
;
1727 function Is_CPP_Class
(Id
: E
) return B
is
1732 function Is_Descendent_Of_Address
(Id
: E
) return B
is
1734 pragma Assert
(Is_Type
(Id
));
1735 return Flag223
(Id
);
1736 end Is_Descendent_Of_Address
;
1738 function Is_Discrim_SO_Function
(Id
: E
) return B
is
1740 return Flag176
(Id
);
1741 end Is_Discrim_SO_Function
;
1743 function Is_Dispatch_Table_Entity
(Id
: E
) return B
is
1745 return Flag234
(Id
);
1746 end Is_Dispatch_Table_Entity
;
1748 function Is_Dispatching_Operation
(Id
: E
) return B
is
1750 pragma Assert
(Nkind
(Id
) in N_Entity
);
1752 end Is_Dispatching_Operation
;
1754 function Is_Eliminated
(Id
: E
) return B
is
1756 return Flag124
(Id
);
1759 function Is_Entry_Formal
(Id
: E
) return B
is
1762 end Is_Entry_Formal
;
1764 function Is_Exported
(Id
: E
) return B
is
1769 function Is_First_Subtype
(Id
: E
) return B
is
1772 end Is_First_Subtype
;
1774 function Is_For_Access_Subtype
(Id
: E
) return B
is
1776 pragma Assert
(Ekind_In
(Id
, E_Record_Subtype
, E_Private_Subtype
));
1777 return Flag118
(Id
);
1778 end Is_For_Access_Subtype
;
1780 function Is_Formal_Subprogram
(Id
: E
) return B
is
1782 return Flag111
(Id
);
1783 end Is_Formal_Subprogram
;
1785 function Is_Frozen
(Id
: E
) return B
is
1790 function Is_Generic_Actual_Type
(Id
: E
) return B
is
1792 pragma Assert
(Is_Type
(Id
));
1794 end Is_Generic_Actual_Type
;
1796 function Is_Generic_Instance
(Id
: E
) return B
is
1798 return Flag130
(Id
);
1799 end Is_Generic_Instance
;
1801 function Is_Generic_Type
(Id
: E
) return B
is
1803 pragma Assert
(Nkind
(Id
) in N_Entity
);
1805 end Is_Generic_Type
;
1807 function Is_Hidden
(Id
: E
) return B
is
1812 function Is_Hidden_Open_Scope
(Id
: E
) return B
is
1814 return Flag171
(Id
);
1815 end Is_Hidden_Open_Scope
;
1817 function Is_Immediately_Visible
(Id
: E
) return B
is
1819 pragma Assert
(Nkind
(Id
) in N_Entity
);
1821 end Is_Immediately_Visible
;
1823 function Is_Imported
(Id
: E
) return B
is
1828 function Is_Inlined
(Id
: E
) return B
is
1833 function Is_Interface
(Id
: E
) return B
is
1835 return Flag186
(Id
);
1838 function Is_Instantiated
(Id
: E
) return B
is
1840 return Flag126
(Id
);
1841 end Is_Instantiated
;
1843 function Is_Internal
(Id
: E
) return B
is
1845 pragma Assert
(Nkind
(Id
) in N_Entity
);
1849 function Is_Interrupt_Handler
(Id
: E
) return B
is
1851 pragma Assert
(Nkind
(Id
) in N_Entity
);
1853 end Is_Interrupt_Handler
;
1855 function Is_Intrinsic_Subprogram
(Id
: E
) return B
is
1858 end Is_Intrinsic_Subprogram
;
1860 function Is_Itype
(Id
: E
) return B
is
1865 function Is_Known_Non_Null
(Id
: E
) return B
is
1868 end Is_Known_Non_Null
;
1870 function Is_Known_Null
(Id
: E
) return B
is
1872 return Flag204
(Id
);
1875 function Is_Known_Valid
(Id
: E
) return B
is
1877 return Flag170
(Id
);
1880 function Is_Limited_Composite
(Id
: E
) return B
is
1882 return Flag106
(Id
);
1883 end Is_Limited_Composite
;
1885 function Is_Limited_Interface
(Id
: E
) return B
is
1887 return Flag197
(Id
);
1888 end Is_Limited_Interface
;
1890 function Is_Limited_Record
(Id
: E
) return B
is
1893 end Is_Limited_Record
;
1895 function Is_Machine_Code_Subprogram
(Id
: E
) return B
is
1897 pragma Assert
(Is_Subprogram
(Id
));
1898 return Flag137
(Id
);
1899 end Is_Machine_Code_Subprogram
;
1901 function Is_Non_Static_Subtype
(Id
: E
) return B
is
1903 pragma Assert
(Is_Type
(Id
));
1904 return Flag109
(Id
);
1905 end Is_Non_Static_Subtype
;
1907 function Is_Null_Init_Proc
(Id
: E
) return B
is
1909 pragma Assert
(Ekind
(Id
) = E_Procedure
);
1910 return Flag178
(Id
);
1911 end Is_Null_Init_Proc
;
1913 function Is_Obsolescent
(Id
: E
) return B
is
1915 return Flag153
(Id
);
1918 function Is_Only_Out_Parameter
(Id
: E
) return B
is
1920 pragma Assert
(Is_Formal
(Id
));
1921 return Flag226
(Id
);
1922 end Is_Only_Out_Parameter
;
1924 function Is_Optional_Parameter
(Id
: E
) return B
is
1926 pragma Assert
(Is_Formal
(Id
));
1927 return Flag134
(Id
);
1928 end Is_Optional_Parameter
;
1930 function Is_Overriding_Operation
(Id
: E
) return B
is
1932 pragma Assert
(Is_Subprogram
(Id
));
1934 end Is_Overriding_Operation
;
1936 function Is_Package_Body_Entity
(Id
: E
) return B
is
1938 return Flag160
(Id
);
1939 end Is_Package_Body_Entity
;
1941 function Is_Packed
(Id
: E
) return B
is
1943 return Flag51
(Implementation_Base_Type
(Id
));
1946 function Is_Packed_Array_Type
(Id
: E
) return B
is
1948 return Flag138
(Id
);
1949 end Is_Packed_Array_Type
;
1951 function Is_Potentially_Use_Visible
(Id
: E
) return B
is
1953 pragma Assert
(Nkind
(Id
) in N_Entity
);
1955 end Is_Potentially_Use_Visible
;
1957 function Is_Preelaborated
(Id
: E
) return B
is
1960 end Is_Preelaborated
;
1962 function Is_Primitive
(Id
: E
) return B
is
1965 (Is_Overloadable
(Id
)
1966 or else Ekind_In
(Id
, E_Generic_Function
, E_Generic_Procedure
));
1967 return Flag218
(Id
);
1970 function Is_Primitive_Wrapper
(Id
: E
) return B
is
1972 pragma Assert
(Ekind_In
(Id
, E_Function
, E_Procedure
));
1973 return Flag195
(Id
);
1974 end Is_Primitive_Wrapper
;
1976 function Is_Private_Composite
(Id
: E
) return B
is
1978 pragma Assert
(Is_Type
(Id
));
1979 return Flag107
(Id
);
1980 end Is_Private_Composite
;
1982 function Is_Private_Descendant
(Id
: E
) return B
is
1985 end Is_Private_Descendant
;
1987 function Is_Private_Primitive
(Id
: E
) return B
is
1989 pragma Assert
(Ekind_In
(Id
, E_Function
, E_Procedure
));
1990 return Flag245
(Id
);
1991 end Is_Private_Primitive
;
1993 function Is_Public
(Id
: E
) return B
is
1995 pragma Assert
(Nkind
(Id
) in N_Entity
);
1999 function Is_Pure
(Id
: E
) return B
is
2004 function Is_Pure_Unit_Access_Type
(Id
: E
) return B
is
2006 pragma Assert
(Is_Access_Type
(Id
));
2007 return Flag189
(Id
);
2008 end Is_Pure_Unit_Access_Type
;
2010 function Is_RACW_Stub_Type
(Id
: E
) return B
is
2012 pragma Assert
(Is_Type
(Id
));
2013 return Flag244
(Id
);
2014 end Is_RACW_Stub_Type
;
2016 function Is_Raised
(Id
: E
) return B
is
2018 pragma Assert
(Ekind
(Id
) = E_Exception
);
2019 return Flag224
(Id
);
2022 function Is_Remote_Call_Interface
(Id
: E
) return B
is
2025 end Is_Remote_Call_Interface
;
2027 function Is_Remote_Types
(Id
: E
) return B
is
2030 end Is_Remote_Types
;
2032 function Is_Renaming_Of_Object
(Id
: E
) return B
is
2034 return Flag112
(Id
);
2035 end Is_Renaming_Of_Object
;
2037 function Is_Return_Object
(Id
: E
) return B
is
2039 return Flag209
(Id
);
2040 end Is_Return_Object
;
2042 function Is_Shared_Passive
(Id
: E
) return B
is
2045 end Is_Shared_Passive
;
2047 function Is_Statically_Allocated
(Id
: E
) return B
is
2050 end Is_Statically_Allocated
;
2052 function Is_Tag
(Id
: E
) return B
is
2054 pragma Assert
(Nkind
(Id
) in N_Entity
);
2058 function Is_Tagged_Type
(Id
: E
) return B
is
2063 function Is_Thunk
(Id
: E
) return B
is
2065 pragma Assert
(Is_Subprogram
(Id
));
2066 return Flag225
(Id
);
2069 function Is_Trivial_Subprogram
(Id
: E
) return B
is
2071 return Flag235
(Id
);
2072 end Is_Trivial_Subprogram
;
2074 function Is_True_Constant
(Id
: E
) return B
is
2076 return Flag163
(Id
);
2077 end Is_True_Constant
;
2079 function Is_Unchecked_Union
(Id
: E
) return B
is
2081 return Flag117
(Implementation_Base_Type
(Id
));
2082 end Is_Unchecked_Union
;
2084 function Is_Underlying_Record_View
(Id
: E
) return B
is
2086 return Flag246
(Id
);
2087 end Is_Underlying_Record_View
;
2089 function Is_Unsigned_Type
(Id
: E
) return B
is
2091 pragma Assert
(Is_Type
(Id
));
2092 return Flag144
(Id
);
2093 end Is_Unsigned_Type
;
2095 function Is_Valued_Procedure
(Id
: E
) return B
is
2097 pragma Assert
(Ekind
(Id
) = E_Procedure
);
2098 return Flag127
(Id
);
2099 end Is_Valued_Procedure
;
2101 function Is_Visible_Child_Unit
(Id
: E
) return B
is
2103 pragma Assert
(Is_Child_Unit
(Id
));
2104 return Flag116
(Id
);
2105 end Is_Visible_Child_Unit
;
2107 function Is_Visible_Formal
(Id
: E
) return B
is
2109 return Flag206
(Id
);
2110 end Is_Visible_Formal
;
2112 function Is_VMS_Exception
(Id
: E
) return B
is
2114 return Flag133
(Id
);
2115 end Is_VMS_Exception
;
2117 function Is_Volatile
(Id
: E
) return B
is
2119 pragma Assert
(Nkind
(Id
) in N_Entity
);
2121 if Is_Type
(Id
) then
2122 return Flag16
(Base_Type
(Id
));
2128 function Itype_Printed
(Id
: E
) return B
is
2130 pragma Assert
(Is_Itype
(Id
));
2131 return Flag202
(Id
);
2134 function Kill_Elaboration_Checks
(Id
: E
) return B
is
2137 end Kill_Elaboration_Checks
;
2139 function Kill_Range_Checks
(Id
: E
) return B
is
2142 end Kill_Range_Checks
;
2144 function Kill_Tag_Checks
(Id
: E
) return B
is
2147 end Kill_Tag_Checks
;
2149 function Known_To_Have_Preelab_Init
(Id
: E
) return B
is
2151 pragma Assert
(Is_Type
(Id
));
2152 return Flag207
(Id
);
2153 end Known_To_Have_Preelab_Init
;
2155 function Last_Assignment
(Id
: E
) return N
is
2157 pragma Assert
(Is_Assignable
(Id
));
2159 end Last_Assignment
;
2161 function Last_Entity
(Id
: E
) return E
is
2166 function Limited_View
(Id
: E
) return E
is
2168 pragma Assert
(Ekind
(Id
) = E_Package
);
2172 function Lit_Indexes
(Id
: E
) return E
is
2174 pragma Assert
(Is_Enumeration_Type
(Id
));
2178 function Lit_Strings
(Id
: E
) return E
is
2180 pragma Assert
(Is_Enumeration_Type
(Id
));
2184 function Low_Bound_Tested
(Id
: E
) return B
is
2186 return Flag205
(Id
);
2187 end Low_Bound_Tested
;
2189 function Machine_Radix_10
(Id
: E
) return B
is
2191 pragma Assert
(Is_Decimal_Fixed_Point_Type
(Id
));
2193 end Machine_Radix_10
;
2195 function Master_Id
(Id
: E
) return E
is
2197 pragma Assert
(Is_Access_Type
(Id
));
2201 function Materialize_Entity
(Id
: E
) return B
is
2203 return Flag168
(Id
);
2204 end Materialize_Entity
;
2206 function Mechanism
(Id
: E
) return M
is
2208 pragma Assert
(Ekind
(Id
) = E_Function
or else Is_Formal
(Id
));
2209 return UI_To_Int
(Uint8
(Id
));
2212 function Modulus
(Id
: E
) return Uint
is
2214 pragma Assert
(Is_Modular_Integer_Type
(Id
));
2215 return Uint17
(Base_Type
(Id
));
2218 function Must_Be_On_Byte_Boundary
(Id
: E
) return B
is
2220 pragma Assert
(Is_Type
(Id
));
2221 return Flag183
(Id
);
2222 end Must_Be_On_Byte_Boundary
;
2224 function Must_Have_Preelab_Init
(Id
: E
) return B
is
2226 pragma Assert
(Is_Type
(Id
));
2227 return Flag208
(Id
);
2228 end Must_Have_Preelab_Init
;
2230 function Needs_Debug_Info
(Id
: E
) return B
is
2232 return Flag147
(Id
);
2233 end Needs_Debug_Info
;
2235 function Needs_No_Actuals
(Id
: E
) return B
is
2238 (Is_Overloadable
(Id
)
2239 or else Ekind_In
(Id
, E_Subprogram_Type
, E_Entry_Family
));
2241 end Needs_No_Actuals
;
2243 function Never_Set_In_Source
(Id
: E
) return B
is
2245 return Flag115
(Id
);
2246 end Never_Set_In_Source
;
2248 function Next_Inlined_Subprogram
(Id
: E
) return E
is
2251 end Next_Inlined_Subprogram
;
2253 function No_Pool_Assigned
(Id
: E
) return B
is
2255 pragma Assert
(Is_Access_Type
(Id
));
2256 return Flag131
(Root_Type
(Id
));
2257 end No_Pool_Assigned
;
2259 function No_Return
(Id
: E
) return B
is
2261 return Flag113
(Id
);
2264 function No_Strict_Aliasing
(Id
: E
) return B
is
2266 pragma Assert
(Is_Access_Type
(Id
));
2267 return Flag136
(Base_Type
(Id
));
2268 end No_Strict_Aliasing
;
2270 function Non_Binary_Modulus
(Id
: E
) return B
is
2272 pragma Assert
(Is_Type
(Id
));
2273 return Flag58
(Base_Type
(Id
));
2274 end Non_Binary_Modulus
;
2276 function Non_Limited_View
(Id
: E
) return E
is
2278 pragma Assert
(Ekind
(Id
) in Incomplete_Kind
);
2280 end Non_Limited_View
;
2282 function Nonzero_Is_True
(Id
: E
) return B
is
2284 pragma Assert
(Root_Type
(Id
) = Standard_Boolean
);
2285 return Flag162
(Base_Type
(Id
));
2286 end Nonzero_Is_True
;
2288 function Normalized_First_Bit
(Id
: E
) return U
is
2290 pragma Assert
(Ekind_In
(Id
, E_Component
, E_Discriminant
));
2292 end Normalized_First_Bit
;
2294 function Normalized_Position
(Id
: E
) return U
is
2296 pragma Assert
(Ekind_In
(Id
, E_Component
, E_Discriminant
));
2298 end Normalized_Position
;
2300 function Normalized_Position_Max
(Id
: E
) return U
is
2302 pragma Assert
(Ekind_In
(Id
, E_Component
, E_Discriminant
));
2304 end Normalized_Position_Max
;
2306 function OK_To_Reference
(Id
: E
) return B
is
2308 pragma Assert
(Is_Type
(Id
));
2309 return Flag249
(Id
);
2310 end OK_To_Reference
;
2312 function OK_To_Rename
(Id
: E
) return B
is
2314 pragma Assert
(Ekind
(Id
) = E_Variable
);
2315 return Flag247
(Id
);
2318 function OK_To_Reorder_Components
(Id
: E
) return B
is
2320 pragma Assert
(Is_Record_Type
(Id
));
2321 return Flag239
(Base_Type
(Id
));
2322 end OK_To_Reorder_Components
;
2324 function Optimize_Alignment_Space
(Id
: E
) return B
is
2327 (Is_Type
(Id
) or else Ekind_In
(Id
, E_Constant
, E_Variable
));
2328 return Flag241
(Id
);
2329 end Optimize_Alignment_Space
;
2331 function Optimize_Alignment_Time
(Id
: E
) return B
is
2334 (Is_Type
(Id
) or else Ekind_In
(Id
, E_Constant
, E_Variable
));
2335 return Flag242
(Id
);
2336 end Optimize_Alignment_Time
;
2338 function Original_Array_Type
(Id
: E
) return E
is
2340 pragma Assert
(Is_Array_Type
(Id
) or else Is_Modular_Integer_Type
(Id
));
2342 end Original_Array_Type
;
2344 function Original_Record_Component
(Id
: E
) return E
is
2346 pragma Assert
(Ekind_In
(Id
, E_Void
, E_Component
, E_Discriminant
));
2348 end Original_Record_Component
;
2350 function Overlays_Constant
(Id
: E
) return B
is
2352 return Flag243
(Id
);
2353 end Overlays_Constant
;
2355 function Overridden_Operation
(Id
: E
) return E
is
2358 end Overridden_Operation
;
2360 function Package_Instantiation
(Id
: E
) return N
is
2362 pragma Assert
(Ekind_In
(Id
, E_Package
, E_Generic_Package
));
2364 end Package_Instantiation
;
2366 function Packed_Array_Type
(Id
: E
) return E
is
2368 pragma Assert
(Is_Array_Type
(Id
));
2370 end Packed_Array_Type
;
2372 function Parent_Subtype
(Id
: E
) return E
is
2374 pragma Assert
(Is_Record_Type
(Id
));
2375 return Node19
(Base_Type
(Id
));
2378 function Postcondition_Proc
(Id
: E
) return E
is
2380 pragma Assert
(Ekind
(Id
) = E_Procedure
);
2382 end Postcondition_Proc
;
2384 function PPC_Wrapper
(Id
: E
) return E
is
2386 pragma Assert
(Ekind_In
(Id
, E_Entry
, E_Entry_Family
));
2390 function Prival
(Id
: E
) return E
is
2392 pragma Assert
(Is_Protected_Component
(Id
));
2396 function Prival_Link
(Id
: E
) return E
is
2398 pragma Assert
(Ekind_In
(Id
, E_Constant
, E_Variable
));
2402 function Private_Dependents
(Id
: E
) return L
is
2404 pragma Assert
(Is_Incomplete_Or_Private_Type
(Id
));
2405 return Elist18
(Id
);
2406 end Private_Dependents
;
2408 function Private_View
(Id
: E
) return N
is
2410 pragma Assert
(Is_Private_Type
(Id
));
2414 function Protected_Body_Subprogram
(Id
: E
) return E
is
2416 pragma Assert
(Is_Subprogram
(Id
) or else Is_Entry
(Id
));
2418 end Protected_Body_Subprogram
;
2420 function Protected_Formal
(Id
: E
) return E
is
2422 pragma Assert
(Is_Formal
(Id
));
2424 end Protected_Formal
;
2426 function Protection_Object
(Id
: E
) return E
is
2429 (Ekind_In
(Id
, E_Entry
, E_Entry_Family
, E_Function
, E_Procedure
));
2431 end Protection_Object
;
2433 function Reachable
(Id
: E
) return B
is
2438 function Referenced
(Id
: E
) return B
is
2440 return Flag156
(Id
);
2443 function Referenced_As_LHS
(Id
: E
) return B
is
2446 end Referenced_As_LHS
;
2448 function Referenced_As_Out_Parameter
(Id
: E
) return B
is
2450 return Flag227
(Id
);
2451 end Referenced_As_Out_Parameter
;
2453 function Register_Exception_Call
(Id
: E
) return N
is
2455 pragma Assert
(Ekind
(Id
) = E_Exception
);
2457 end Register_Exception_Call
;
2459 function Related_Array_Object
(Id
: E
) return E
is
2461 pragma Assert
(Is_Array_Type
(Id
));
2463 end Related_Array_Object
;
2465 function Related_Expression
(Id
: E
) return N
is
2467 pragma Assert
(Ekind
(Id
) in Type_Kind
2468 or else Ekind_In
(Id
, E_Constant
, E_Variable
));
2470 end Related_Expression
;
2472 function Related_Instance
(Id
: E
) return E
is
2474 pragma Assert
(Ekind_In
(Id
, E_Package
, E_Package_Body
));
2476 end Related_Instance
;
2478 function Related_Type
(Id
: E
) return E
is
2480 pragma Assert
(Ekind_In
(Id
, E_Component
, E_Constant
, E_Variable
));
2484 function Relative_Deadline_Variable
(Id
: E
) return E
is
2486 pragma Assert
(Is_Task_Type
(Id
));
2487 return Node26
(Implementation_Base_Type
(Id
));
2488 end Relative_Deadline_Variable
;
2490 function Renamed_Entity
(Id
: E
) return N
is
2495 function Renamed_In_Spec
(Id
: E
) return B
is
2497 pragma Assert
(Ekind
(Id
) = E_Package
);
2498 return Flag231
(Id
);
2499 end Renamed_In_Spec
;
2501 function Renamed_Object
(Id
: E
) return N
is
2506 function Renaming_Map
(Id
: E
) return U
is
2511 function Requires_Overriding
(Id
: E
) return B
is
2513 pragma Assert
(Is_Overloadable
(Id
));
2514 return Flag213
(Id
);
2515 end Requires_Overriding
;
2517 function Return_Present
(Id
: E
) return B
is
2522 function Return_Applies_To
(Id
: E
) return N
is
2525 end Return_Applies_To
;
2527 function Returns_By_Ref
(Id
: E
) return B
is
2532 function Reverse_Bit_Order
(Id
: E
) return B
is
2534 pragma Assert
(Is_Record_Type
(Id
));
2535 return Flag164
(Base_Type
(Id
));
2536 end Reverse_Bit_Order
;
2538 function RM_Size
(Id
: E
) return U
is
2540 pragma Assert
(Is_Type
(Id
));
2544 function Scalar_Range
(Id
: E
) return N
is
2549 function Scale_Value
(Id
: E
) return U
is
2554 function Scope_Depth_Value
(Id
: E
) return U
is
2557 end Scope_Depth_Value
;
2559 function Sec_Stack_Needed_For_Return
(Id
: E
) return B
is
2561 return Flag167
(Id
);
2562 end Sec_Stack_Needed_For_Return
;
2564 function Shadow_Entities
(Id
: E
) return S
is
2566 pragma Assert
(Ekind_In
(Id
, E_Package
, E_Generic_Package
));
2568 end Shadow_Entities
;
2570 function Shared_Var_Procs_Instance
(Id
: E
) return E
is
2572 pragma Assert
(Ekind
(Id
) = E_Variable
);
2574 end Shared_Var_Procs_Instance
;
2576 function Size_Check_Code
(Id
: E
) return N
is
2578 pragma Assert
(Ekind_In
(Id
, E_Constant
, E_Variable
));
2580 end Size_Check_Code
;
2582 function Size_Depends_On_Discriminant
(Id
: E
) return B
is
2584 return Flag177
(Id
);
2585 end Size_Depends_On_Discriminant
;
2587 function Size_Known_At_Compile_Time
(Id
: E
) return B
is
2590 end Size_Known_At_Compile_Time
;
2592 function Small_Value
(Id
: E
) return R
is
2594 pragma Assert
(Is_Fixed_Point_Type
(Id
));
2595 return Ureal21
(Id
);
2598 function Spec_Entity
(Id
: E
) return E
is
2600 pragma Assert
(Ekind
(Id
) = E_Package_Body
or else Is_Formal
(Id
));
2604 function Spec_PPC_List
(Id
: E
) return N
is
2607 (Ekind_In
(Id
, E_Entry
, E_Entry_Family
)
2608 or else Is_Subprogram
(Id
)
2609 or else Is_Generic_Subprogram
(Id
));
2613 function Storage_Size_Variable
(Id
: E
) return E
is
2615 pragma Assert
(Is_Access_Type
(Id
) or else Is_Task_Type
(Id
));
2616 return Node15
(Implementation_Base_Type
(Id
));
2617 end Storage_Size_Variable
;
2619 function Static_Elaboration_Desired
(Id
: E
) return B
is
2621 pragma Assert
(Ekind
(Id
) = E_Package
);
2623 end Static_Elaboration_Desired
;
2625 function Static_Initialization
(Id
: E
) return N
is
2628 (Ekind
(Id
) = E_Procedure
and then not Is_Dispatching_Operation
(Id
));
2630 end Static_Initialization
;
2632 function Stored_Constraint
(Id
: E
) return L
is
2635 (Is_Composite_Type
(Id
) and then not Is_Array_Type
(Id
));
2636 return Elist23
(Id
);
2637 end Stored_Constraint
;
2639 function Strict_Alignment
(Id
: E
) return B
is
2641 return Flag145
(Implementation_Base_Type
(Id
));
2642 end Strict_Alignment
;
2644 function String_Literal_Length
(Id
: E
) return U
is
2647 end String_Literal_Length
;
2649 function String_Literal_Low_Bound
(Id
: E
) return N
is
2652 end String_Literal_Low_Bound
;
2654 function Suppress_Elaboration_Warnings
(Id
: E
) return B
is
2656 return Flag148
(Id
);
2657 end Suppress_Elaboration_Warnings
;
2659 function Suppress_Init_Proc
(Id
: E
) return B
is
2661 return Flag105
(Base_Type
(Id
));
2662 end Suppress_Init_Proc
;
2664 function Suppress_Style_Checks
(Id
: E
) return B
is
2666 return Flag165
(Id
);
2667 end Suppress_Style_Checks
;
2669 function Suppress_Value_Tracking_On_Call
(Id
: E
) return B
is
2671 return Flag217
(Id
);
2672 end Suppress_Value_Tracking_On_Call
;
2674 function Task_Body_Procedure
(Id
: E
) return N
is
2676 pragma Assert
(Ekind
(Id
) in Task_Kind
);
2678 end Task_Body_Procedure
;
2680 function Treat_As_Volatile
(Id
: E
) return B
is
2683 end Treat_As_Volatile
;
2685 function Underlying_Full_View
(Id
: E
) return E
is
2687 pragma Assert
(Ekind
(Id
) in Private_Kind
);
2689 end Underlying_Full_View
;
2691 function Underlying_Record_View
(Id
: E
) return E
is
2694 end Underlying_Record_View
;
2696 function Universal_Aliasing
(Id
: E
) return B
is
2698 pragma Assert
(Is_Type
(Id
));
2699 return Flag216
(Base_Type
(Id
));
2700 end Universal_Aliasing
;
2702 function Unset_Reference
(Id
: E
) return N
is
2705 end Unset_Reference
;
2707 function Used_As_Generic_Actual
(Id
: E
) return B
is
2709 return Flag222
(Id
);
2710 end Used_As_Generic_Actual
;
2712 function Uses_Sec_Stack
(Id
: E
) return B
is
2717 function Vax_Float
(Id
: E
) return B
is
2719 return Flag151
(Base_Type
(Id
));
2722 function Warnings_Off
(Id
: E
) return B
is
2727 function Warnings_Off_Used
(Id
: E
) return B
is
2729 return Flag236
(Id
);
2730 end Warnings_Off_Used
;
2732 function Warnings_Off_Used_Unmodified
(Id
: E
) return B
is
2734 return Flag237
(Id
);
2735 end Warnings_Off_Used_Unmodified
;
2737 function Warnings_Off_Used_Unreferenced
(Id
: E
) return B
is
2739 return Flag238
(Id
);
2740 end Warnings_Off_Used_Unreferenced
;
2742 function Wrapped_Entity
(Id
: E
) return E
is
2744 pragma Assert
(Ekind_In
(Id
, E_Function
, E_Procedure
)
2745 and then Is_Primitive_Wrapper
(Id
));
2749 function Was_Hidden
(Id
: E
) return B
is
2751 return Flag196
(Id
);
2754 ------------------------------
2755 -- Classification Functions --
2756 ------------------------------
2758 function Is_Access_Type
(Id
: E
) return B
is
2760 return Ekind
(Id
) in Access_Kind
;
2763 function Is_Access_Protected_Subprogram_Type
(Id
: E
) return B
is
2765 return Ekind
(Id
) in Access_Protected_Kind
;
2766 end Is_Access_Protected_Subprogram_Type
;
2768 function Is_Access_Subprogram_Type
(Id
: E
) return B
is
2770 return Ekind
(Id
) in Access_Subprogram_Kind
;
2771 end Is_Access_Subprogram_Type
;
2773 function Is_Aggregate_Type
(Id
: E
) return B
is
2775 return Ekind
(Id
) in Aggregate_Kind
;
2776 end Is_Aggregate_Type
;
2778 function Is_Array_Type
(Id
: E
) return B
is
2780 return Ekind
(Id
) in Array_Kind
;
2783 function Is_Assignable
(Id
: E
) return B
is
2785 return Ekind
(Id
) in Assignable_Kind
;
2788 function Is_Class_Wide_Type
(Id
: E
) return B
is
2790 return Ekind
(Id
) in Class_Wide_Kind
;
2791 end Is_Class_Wide_Type
;
2793 function Is_Composite_Type
(Id
: E
) return B
is
2795 return Ekind
(Id
) in Composite_Kind
;
2796 end Is_Composite_Type
;
2798 function Is_Concurrent_Body
(Id
: E
) return B
is
2800 return Ekind
(Id
) in
2801 Concurrent_Body_Kind
;
2802 end Is_Concurrent_Body
;
2804 function Is_Concurrent_Record_Type
(Id
: E
) return B
is
2807 end Is_Concurrent_Record_Type
;
2809 function Is_Concurrent_Type
(Id
: E
) return B
is
2811 return Ekind
(Id
) in Concurrent_Kind
;
2812 end Is_Concurrent_Type
;
2814 function Is_Decimal_Fixed_Point_Type
(Id
: E
) return B
is
2816 return Ekind
(Id
) in
2817 Decimal_Fixed_Point_Kind
;
2818 end Is_Decimal_Fixed_Point_Type
;
2820 function Is_Digits_Type
(Id
: E
) return B
is
2822 return Ekind
(Id
) in Digits_Kind
;
2825 function Is_Discrete_Or_Fixed_Point_Type
(Id
: E
) return B
is
2827 return Ekind
(Id
) in Discrete_Or_Fixed_Point_Kind
;
2828 end Is_Discrete_Or_Fixed_Point_Type
;
2830 function Is_Discrete_Type
(Id
: E
) return B
is
2832 return Ekind
(Id
) in Discrete_Kind
;
2833 end Is_Discrete_Type
;
2835 function Is_Elementary_Type
(Id
: E
) return B
is
2837 return Ekind
(Id
) in Elementary_Kind
;
2838 end Is_Elementary_Type
;
2840 function Is_Entry
(Id
: E
) return B
is
2842 return Ekind
(Id
) in Entry_Kind
;
2845 function Is_Enumeration_Type
(Id
: E
) return B
is
2847 return Ekind
(Id
) in
2849 end Is_Enumeration_Type
;
2851 function Is_Fixed_Point_Type
(Id
: E
) return B
is
2853 return Ekind
(Id
) in
2855 end Is_Fixed_Point_Type
;
2857 function Is_Floating_Point_Type
(Id
: E
) return B
is
2859 return Ekind
(Id
) in Float_Kind
;
2860 end Is_Floating_Point_Type
;
2862 function Is_Formal
(Id
: E
) return B
is
2864 return Ekind
(Id
) in Formal_Kind
;
2867 function Is_Formal_Object
(Id
: E
) return B
is
2869 return Ekind
(Id
) in Formal_Object_Kind
;
2870 end Is_Formal_Object
;
2872 function Is_Generic_Subprogram
(Id
: E
) return B
is
2874 return Ekind
(Id
) in Generic_Subprogram_Kind
;
2875 end Is_Generic_Subprogram
;
2877 function Is_Generic_Unit
(Id
: E
) return B
is
2879 return Ekind
(Id
) in Generic_Unit_Kind
;
2880 end Is_Generic_Unit
;
2882 function Is_Incomplete_Or_Private_Type
(Id
: E
) return B
is
2884 return Ekind
(Id
) in
2885 Incomplete_Or_Private_Kind
;
2886 end Is_Incomplete_Or_Private_Type
;
2888 function Is_Incomplete_Type
(Id
: E
) return B
is
2890 return Ekind
(Id
) in
2892 end Is_Incomplete_Type
;
2894 function Is_Integer_Type
(Id
: E
) return B
is
2896 return Ekind
(Id
) in Integer_Kind
;
2897 end Is_Integer_Type
;
2899 function Is_Modular_Integer_Type
(Id
: E
) return B
is
2901 return Ekind
(Id
) in
2902 Modular_Integer_Kind
;
2903 end Is_Modular_Integer_Type
;
2905 function Is_Named_Number
(Id
: E
) return B
is
2907 return Ekind
(Id
) in Named_Kind
;
2908 end Is_Named_Number
;
2910 function Is_Numeric_Type
(Id
: E
) return B
is
2912 return Ekind
(Id
) in Numeric_Kind
;
2913 end Is_Numeric_Type
;
2915 function Is_Object
(Id
: E
) return B
is
2917 return Ekind
(Id
) in Object_Kind
;
2920 function Is_Ordinary_Fixed_Point_Type
(Id
: E
) return B
is
2922 return Ekind
(Id
) in
2923 Ordinary_Fixed_Point_Kind
;
2924 end Is_Ordinary_Fixed_Point_Type
;
2926 function Is_Overloadable
(Id
: E
) return B
is
2928 return Ekind
(Id
) in Overloadable_Kind
;
2929 end Is_Overloadable
;
2931 function Is_Private_Type
(Id
: E
) return B
is
2933 return Ekind
(Id
) in Private_Kind
;
2934 end Is_Private_Type
;
2936 function Is_Protected_Type
(Id
: E
) return B
is
2938 return Ekind
(Id
) in Protected_Kind
;
2939 end Is_Protected_Type
;
2941 function Is_Real_Type
(Id
: E
) return B
is
2943 return Ekind
(Id
) in Real_Kind
;
2946 function Is_Record_Type
(Id
: E
) return B
is
2948 return Ekind
(Id
) in Record_Kind
;
2951 function Is_Scalar_Type
(Id
: E
) return B
is
2953 return Ekind
(Id
) in Scalar_Kind
;
2956 function Is_Signed_Integer_Type
(Id
: E
) return B
is
2958 return Ekind
(Id
) in Signed_Integer_Kind
;
2959 end Is_Signed_Integer_Type
;
2961 function Is_Subprogram
(Id
: E
) return B
is
2963 return Ekind
(Id
) in Subprogram_Kind
;
2966 function Is_Task_Type
(Id
: E
) return B
is
2968 return Ekind
(Id
) in Task_Kind
;
2971 function Is_Type
(Id
: E
) return B
is
2973 return Ekind
(Id
) in Type_Kind
;
2976 ------------------------------
2977 -- Attribute Set Procedures --
2978 ------------------------------
2980 -- Note: in many of these set procedures an "obvious" assertion is missing.
2981 -- The reason for this is that in many cases, a field is set before the
2982 -- Ekind field is set, so that the field is set when Ekind = E_Void. It
2983 -- it is possible to add assertions that specifically include the E_Void
2984 -- possibility, but in some cases, we just omit the assertions.
2986 procedure Set_Accept_Address
(Id
: E
; V
: L
) is
2988 Set_Elist21
(Id
, V
);
2989 end Set_Accept_Address
;
2991 procedure Set_Access_Disp_Table
(Id
: E
; V
: L
) is
2993 pragma Assert
(Is_Tagged_Type
(Id
) and then Id
= Base_Type
(Id
));
2994 Set_Elist16
(Id
, V
);
2995 end Set_Access_Disp_Table
;
2997 procedure Set_Associated_Final_Chain
(Id
: E
; V
: E
) is
2999 pragma Assert
(Is_Access_Type
(Id
));
3001 end Set_Associated_Final_Chain
;
3003 procedure Set_Associated_Formal_Package
(Id
: E
; V
: E
) is
3006 end Set_Associated_Formal_Package
;
3008 procedure Set_Associated_Node_For_Itype
(Id
: E
; V
: E
) is
3011 end Set_Associated_Node_For_Itype
;
3013 procedure Set_Associated_Storage_Pool
(Id
: E
; V
: E
) is
3015 pragma Assert
(Is_Access_Type
(Id
) and then Id
= Base_Type
(Id
));
3017 end Set_Associated_Storage_Pool
;
3019 procedure Set_Actual_Subtype
(Id
: E
; V
: E
) is
3022 (Ekind_In
(Id
, E_Constant
, E_Variable
, E_Generic_In_Out_Parameter
)
3023 or else Is_Formal
(Id
));
3025 end Set_Actual_Subtype
;
3027 procedure Set_Address_Taken
(Id
: E
; V
: B
:= True) is
3029 Set_Flag104
(Id
, V
);
3030 end Set_Address_Taken
;
3032 procedure Set_Alias
(Id
: E
; V
: E
) is
3035 (Is_Overloadable
(Id
) or else Ekind
(Id
) = E_Subprogram_Type
);
3039 procedure Set_Alignment
(Id
: E
; V
: U
) is
3041 pragma Assert
(Is_Type
(Id
)
3042 or else Is_Formal
(Id
)
3043 or else Ekind_In
(Id
, E_Loop_Parameter
,
3050 procedure Set_Barrier_Function
(Id
: E
; V
: N
) is
3052 pragma Assert
(Is_Entry
(Id
));
3054 end Set_Barrier_Function
;
3056 procedure Set_Block_Node
(Id
: E
; V
: N
) is
3058 pragma Assert
(Ekind
(Id
) = E_Block
);
3062 procedure Set_Body_Entity
(Id
: E
; V
: E
) is
3064 pragma Assert
(Ekind_In
(Id
, E_Package
, E_Generic_Package
));
3066 end Set_Body_Entity
;
3068 procedure Set_Body_Needed_For_SAL
(Id
: E
; V
: B
:= True) is
3071 (Ekind
(Id
) = E_Package
3072 or else Is_Subprogram
(Id
)
3073 or else Is_Generic_Unit
(Id
));
3075 end Set_Body_Needed_For_SAL
;
3077 procedure Set_C_Pass_By_Copy
(Id
: E
; V
: B
:= True) is
3079 pragma Assert
(Is_Record_Type
(Id
) and then Id
= Base_Type
(Id
));
3080 Set_Flag125
(Id
, V
);
3081 end Set_C_Pass_By_Copy
;
3083 procedure Set_Can_Never_Be_Null
(Id
: E
; V
: B
:= True) is
3086 end Set_Can_Never_Be_Null
;
3088 procedure Set_Checks_May_Be_Suppressed
(Id
: E
; V
: B
:= True) is
3091 end Set_Checks_May_Be_Suppressed
;
3093 procedure Set_Class_Wide_Type
(Id
: E
; V
: E
) is
3095 pragma Assert
(Is_Type
(Id
));
3097 end Set_Class_Wide_Type
;
3099 procedure Set_Cloned_Subtype
(Id
: E
; V
: E
) is
3101 pragma Assert
(Ekind_In
(Id
, E_Record_Subtype
, E_Class_Wide_Subtype
));
3103 end Set_Cloned_Subtype
;
3105 procedure Set_Component_Bit_Offset
(Id
: E
; V
: U
) is
3107 pragma Assert
(Ekind_In
(Id
, E_Component
, E_Discriminant
));
3109 end Set_Component_Bit_Offset
;
3111 procedure Set_Component_Clause
(Id
: E
; V
: N
) is
3113 pragma Assert
(Ekind_In
(Id
, E_Component
, E_Discriminant
));
3115 end Set_Component_Clause
;
3117 procedure Set_Component_Size
(Id
: E
; V
: U
) is
3119 pragma Assert
(Is_Array_Type
(Id
) and then Id
= Base_Type
(Id
));
3121 end Set_Component_Size
;
3123 procedure Set_Component_Type
(Id
: E
; V
: E
) is
3125 pragma Assert
(Is_Array_Type
(Id
) and then Id
= Base_Type
(Id
));
3127 end Set_Component_Type
;
3129 procedure Set_Corresponding_Concurrent_Type
(Id
: E
; V
: E
) is
3132 (Ekind
(Id
) = E_Record_Type
and then Is_Concurrent_Type
(V
));
3134 end Set_Corresponding_Concurrent_Type
;
3136 procedure Set_Corresponding_Discriminant
(Id
: E
; V
: E
) is
3138 pragma Assert
(Ekind
(Id
) = E_Discriminant
);
3140 end Set_Corresponding_Discriminant
;
3142 procedure Set_Corresponding_Equality
(Id
: E
; V
: E
) is
3145 (Ekind
(Id
) = E_Function
3146 and then not Comes_From_Source
(Id
)
3147 and then Chars
(Id
) = Name_Op_Ne
);
3149 end Set_Corresponding_Equality
;
3151 procedure Set_Corresponding_Protected_Entry
(Id
: E
; V
: E
) is
3153 pragma Assert
(Ekind_In
(Id
, E_Void
, E_Subprogram_Body
));
3155 end Set_Corresponding_Protected_Entry
;
3157 procedure Set_Corresponding_Record_Type
(Id
: E
; V
: E
) is
3159 pragma Assert
(Is_Concurrent_Type
(Id
));
3161 end Set_Corresponding_Record_Type
;
3163 procedure Set_Corresponding_Remote_Type
(Id
: E
; V
: E
) is
3166 end Set_Corresponding_Remote_Type
;
3168 procedure Set_Current_Use_Clause
(Id
: E
; V
: E
) is
3170 pragma Assert
(Ekind
(Id
) = E_Package
or else Is_Type
(Id
));
3172 end Set_Current_Use_Clause
;
3174 procedure Set_Current_Value
(Id
: E
; V
: N
) is
3176 pragma Assert
(Ekind
(Id
) in Object_Kind
or else Ekind
(Id
) = E_Void
);
3178 end Set_Current_Value
;
3180 procedure Set_CR_Discriminant
(Id
: E
; V
: E
) is
3183 end Set_CR_Discriminant
;
3185 procedure Set_Debug_Info_Off
(Id
: E
; V
: B
:= True) is
3187 Set_Flag166
(Id
, V
);
3188 end Set_Debug_Info_Off
;
3190 procedure Set_Debug_Renaming_Link
(Id
: E
; V
: E
) is
3193 end Set_Debug_Renaming_Link
;
3195 procedure Set_Default_Expr_Function
(Id
: E
; V
: E
) is
3197 pragma Assert
(Is_Formal
(Id
));
3199 end Set_Default_Expr_Function
;
3201 procedure Set_Default_Expressions_Processed
(Id
: E
; V
: B
:= True) is
3203 Set_Flag108
(Id
, V
);
3204 end Set_Default_Expressions_Processed
;
3206 procedure Set_Default_Value
(Id
: E
; V
: N
) is
3208 pragma Assert
(Is_Formal
(Id
));
3210 end Set_Default_Value
;
3212 procedure Set_Delay_Cleanups
(Id
: E
; V
: B
:= True) is
3216 or else Is_Task_Type
(Id
)
3217 or else Ekind
(Id
) = E_Block
);
3218 Set_Flag114
(Id
, V
);
3219 end Set_Delay_Cleanups
;
3221 procedure Set_Delay_Subprogram_Descriptors
(Id
: E
; V
: B
:= True) is
3224 (Is_Subprogram
(Id
) or else Ekind_In
(Id
, E_Package
, E_Package_Body
));
3226 end Set_Delay_Subprogram_Descriptors
;
3228 procedure Set_Delta_Value
(Id
: E
; V
: R
) is
3230 pragma Assert
(Is_Fixed_Point_Type
(Id
));
3231 Set_Ureal18
(Id
, V
);
3232 end Set_Delta_Value
;
3234 procedure Set_Dependent_Instances
(Id
: E
; V
: L
) is
3236 pragma Assert
(Is_Generic_Instance
(Id
));
3238 end Set_Dependent_Instances
;
3240 procedure Set_Depends_On_Private
(Id
: E
; V
: B
:= True) is
3242 pragma Assert
(Nkind
(Id
) in N_Entity
);
3244 end Set_Depends_On_Private
;
3246 procedure Set_Digits_Value
(Id
: E
; V
: U
) is
3249 (Is_Floating_Point_Type
(Id
)
3250 or else Is_Decimal_Fixed_Point_Type
(Id
));
3252 end Set_Digits_Value
;
3254 procedure Set_Directly_Designated_Type
(Id
: E
; V
: E
) is
3257 end Set_Directly_Designated_Type
;
3259 procedure Set_Discard_Names
(Id
: E
; V
: B
:= True) is
3262 end Set_Discard_Names
;
3264 procedure Set_Discriminal
(Id
: E
; V
: E
) is
3266 pragma Assert
(Ekind
(Id
) = E_Discriminant
);
3268 end Set_Discriminal
;
3270 procedure Set_Discriminal_Link
(Id
: E
; V
: E
) is
3273 end Set_Discriminal_Link
;
3275 procedure Set_Discriminant_Checking_Func
(Id
: E
; V
: E
) is
3277 pragma Assert
(Ekind
(Id
) = E_Component
);
3279 end Set_Discriminant_Checking_Func
;
3281 procedure Set_Discriminant_Constraint
(Id
: E
; V
: L
) is
3283 pragma Assert
(Nkind
(Id
) in N_Entity
);
3284 Set_Elist21
(Id
, V
);
3285 end Set_Discriminant_Constraint
;
3287 procedure Set_Discriminant_Default_Value
(Id
: E
; V
: N
) is
3290 end Set_Discriminant_Default_Value
;
3292 procedure Set_Discriminant_Number
(Id
: E
; V
: U
) is
3295 end Set_Discriminant_Number
;
3297 procedure Set_Dispatch_Table_Wrappers
(Id
: E
; V
: L
) is
3299 pragma Assert
(Is_Tagged_Type
(Id
) and then Id
= Base_Type
(Id
));
3300 Set_Elist26
(Id
, V
);
3301 end Set_Dispatch_Table_Wrappers
;
3303 procedure Set_DT_Entry_Count
(Id
: E
; V
: U
) is
3305 pragma Assert
(Ekind
(Id
) = E_Component
);
3307 end Set_DT_Entry_Count
;
3309 procedure Set_DT_Offset_To_Top_Func
(Id
: E
; V
: E
) is
3311 pragma Assert
(Ekind
(Id
) = E_Component
and then Is_Tag
(Id
));
3313 end Set_DT_Offset_To_Top_Func
;
3315 procedure Set_DT_Position
(Id
: E
; V
: U
) is
3317 pragma Assert
(Ekind_In
(Id
, E_Function
, E_Procedure
));
3319 end Set_DT_Position
;
3321 procedure Set_DTC_Entity
(Id
: E
; V
: E
) is
3323 pragma Assert
(Ekind_In
(Id
, E_Function
, E_Procedure
));
3327 procedure Set_Elaborate_Body_Desirable
(Id
: E
; V
: B
:= True) is
3329 pragma Assert
(Ekind
(Id
) = E_Package
);
3330 Set_Flag210
(Id
, V
);
3331 end Set_Elaborate_Body_Desirable
;
3333 procedure Set_Elaboration_Entity
(Id
: E
; V
: E
) is
3338 Ekind
(Id
) = E_Package
3340 Is_Generic_Unit
(Id
));
3342 end Set_Elaboration_Entity
;
3344 procedure Set_Elaboration_Entity_Required
(Id
: E
; V
: B
:= True) is
3349 Ekind
(Id
) = E_Package
3351 Is_Generic_Unit
(Id
));
3352 Set_Flag174
(Id
, V
);
3353 end Set_Elaboration_Entity_Required
;
3355 procedure Set_Enclosing_Scope
(Id
: E
; V
: E
) is
3358 end Set_Enclosing_Scope
;
3360 procedure Set_Entry_Accepted
(Id
: E
; V
: B
:= True) is
3362 pragma Assert
(Is_Entry
(Id
));
3363 Set_Flag152
(Id
, V
);
3364 end Set_Entry_Accepted
;
3366 procedure Set_Entry_Bodies_Array
(Id
: E
; V
: E
) is
3369 end Set_Entry_Bodies_Array
;
3371 procedure Set_Entry_Cancel_Parameter
(Id
: E
; V
: E
) is
3374 end Set_Entry_Cancel_Parameter
;
3376 procedure Set_Entry_Component
(Id
: E
; V
: E
) is
3379 end Set_Entry_Component
;
3381 procedure Set_Entry_Formal
(Id
: E
; V
: E
) is
3384 end Set_Entry_Formal
;
3386 procedure Set_Entry_Index_Constant
(Id
: E
; V
: E
) is
3388 pragma Assert
(Ekind
(Id
) = E_Entry_Index_Parameter
);
3390 end Set_Entry_Index_Constant
;
3392 procedure Set_Entry_Parameters_Type
(Id
: E
; V
: E
) is
3395 end Set_Entry_Parameters_Type
;
3397 procedure Set_Enum_Pos_To_Rep
(Id
: E
; V
: E
) is
3399 pragma Assert
(Ekind
(Id
) = E_Enumeration_Type
);
3401 end Set_Enum_Pos_To_Rep
;
3403 procedure Set_Enumeration_Pos
(Id
: E
; V
: U
) is
3405 pragma Assert
(Ekind
(Id
) = E_Enumeration_Literal
);
3407 end Set_Enumeration_Pos
;
3409 procedure Set_Enumeration_Rep
(Id
: E
; V
: U
) is
3411 pragma Assert
(Ekind
(Id
) = E_Enumeration_Literal
);
3413 end Set_Enumeration_Rep
;
3415 procedure Set_Enumeration_Rep_Expr
(Id
: E
; V
: N
) is
3417 pragma Assert
(Ekind
(Id
) = E_Enumeration_Literal
);
3419 end Set_Enumeration_Rep_Expr
;
3421 procedure Set_Equivalent_Type
(Id
: E
; V
: E
) is
3424 (Ekind_In
(Id
, E_Class_Wide_Type
,
3425 E_Class_Wide_Subtype
,
3426 E_Access_Protected_Subprogram_Type
,
3427 E_Anonymous_Access_Protected_Subprogram_Type
,
3428 E_Access_Subprogram_Type
,
3431 end Set_Equivalent_Type
;
3433 procedure Set_Esize
(Id
: E
; V
: U
) is
3438 procedure Set_Exception_Code
(Id
: E
; V
: U
) is
3440 pragma Assert
(Ekind
(Id
) = E_Exception
);
3442 end Set_Exception_Code
;
3444 procedure Set_Extra_Accessibility
(Id
: E
; V
: E
) is
3446 pragma Assert
(Is_Formal
(Id
) or else Ekind
(Id
) = E_Variable
);
3448 end Set_Extra_Accessibility
;
3450 procedure Set_Extra_Constrained
(Id
: E
; V
: E
) is
3452 pragma Assert
(Is_Formal
(Id
) or else Ekind
(Id
) = E_Variable
);
3454 end Set_Extra_Constrained
;
3456 procedure Set_Extra_Formal
(Id
: E
; V
: E
) is
3459 end Set_Extra_Formal
;
3461 procedure Set_Extra_Formals
(Id
: E
; V
: E
) is
3464 (Is_Overloadable
(Id
)
3465 or else Ekind_In
(Id
, E_Entry_Family
,
3467 E_Subprogram_Type
));
3469 end Set_Extra_Formals
;
3471 procedure Set_Can_Use_Internal_Rep
(Id
: E
; V
: B
:= True) is
3474 (Is_Access_Subprogram_Type
(Id
)
3475 and then Id
= Base_Type
(Id
));
3476 Set_Flag229
(Id
, V
);
3477 end Set_Can_Use_Internal_Rep
;
3479 procedure Set_Finalization_Chain_Entity
(Id
: E
; V
: E
) is
3482 end Set_Finalization_Chain_Entity
;
3484 procedure Set_Finalize_Storage_Only
(Id
: E
; V
: B
:= True) is
3486 pragma Assert
(Is_Type
(Id
) and then Id
= Base_Type
(Id
));
3487 Set_Flag158
(Id
, V
);
3488 end Set_Finalize_Storage_Only
;
3490 procedure Set_First_Entity
(Id
: E
; V
: E
) is
3493 end Set_First_Entity
;
3495 procedure Set_First_Exit_Statement
(Id
: E
; V
: N
) is
3497 pragma Assert
(Ekind
(Id
) = E_Loop
);
3499 end Set_First_Exit_Statement
;
3501 procedure Set_First_Index
(Id
: E
; V
: N
) is
3503 pragma Assert
(Is_Array_Type
(Id
) or else Is_String_Type
(Id
));
3505 end Set_First_Index
;
3507 procedure Set_First_Literal
(Id
: E
; V
: E
) is
3509 pragma Assert
(Is_Enumeration_Type
(Id
));
3511 end Set_First_Literal
;
3513 procedure Set_First_Optional_Parameter
(Id
: E
; V
: E
) is
3515 pragma Assert
(Ekind_In
(Id
, E_Function
, E_Procedure
));
3517 end Set_First_Optional_Parameter
;
3519 procedure Set_First_Private_Entity
(Id
: E
; V
: E
) is
3521 pragma Assert
(Ekind_In
(Id
, E_Package
, E_Generic_Package
)
3522 or else Ekind
(Id
) in Concurrent_Kind
);
3524 end Set_First_Private_Entity
;
3526 procedure Set_First_Rep_Item
(Id
: E
; V
: N
) is
3529 end Set_First_Rep_Item
;
3531 procedure Set_Freeze_Node
(Id
: E
; V
: N
) is
3534 end Set_Freeze_Node
;
3536 procedure Set_From_With_Type
(Id
: E
; V
: B
:= True) is
3540 or else Ekind
(Id
) = E_Package
);
3541 Set_Flag159
(Id
, V
);
3542 end Set_From_With_Type
;
3544 procedure Set_Full_View
(Id
: E
; V
: E
) is
3546 pragma Assert
(Is_Type
(Id
) or else Ekind
(Id
) = E_Constant
);
3550 procedure Set_Generic_Homonym
(Id
: E
; V
: E
) is
3553 end Set_Generic_Homonym
;
3555 procedure Set_Generic_Renamings
(Id
: E
; V
: L
) is
3557 Set_Elist23
(Id
, V
);
3558 end Set_Generic_Renamings
;
3560 procedure Set_Handler_Records
(Id
: E
; V
: S
) is
3563 end Set_Handler_Records
;
3565 procedure Set_Has_Aliased_Components
(Id
: E
; V
: B
:= True) is
3567 pragma Assert
(Id
= Base_Type
(Id
));
3568 Set_Flag135
(Id
, V
);
3569 end Set_Has_Aliased_Components
;
3571 procedure Set_Has_Alignment_Clause
(Id
: E
; V
: B
:= True) is
3574 end Set_Has_Alignment_Clause
;
3576 procedure Set_Has_All_Calls_Remote
(Id
: E
; V
: B
:= True) is
3579 end Set_Has_All_Calls_Remote
;
3581 procedure Set_Has_Anon_Block_Suffix
(Id
: E
; V
: B
:= True) is
3583 Set_Flag201
(Id
, V
);
3584 end Set_Has_Anon_Block_Suffix
;
3586 procedure Set_Has_Atomic_Components
(Id
: E
; V
: B
:= True) is
3588 pragma Assert
(not Is_Type
(Id
) or else Id
= Base_Type
(Id
));
3590 end Set_Has_Atomic_Components
;
3592 procedure Set_Has_Biased_Representation
(Id
: E
; V
: B
:= True) is
3595 ((V
= False) or else (Is_Discrete_Type
(Id
) or else Is_Object
(Id
)));
3596 Set_Flag139
(Id
, V
);
3597 end Set_Has_Biased_Representation
;
3599 procedure Set_Has_Completion
(Id
: E
; V
: B
:= True) is
3602 end Set_Has_Completion
;
3604 procedure Set_Has_Completion_In_Body
(Id
: E
; V
: B
:= True) is
3606 pragma Assert
(Is_Type
(Id
));
3608 end Set_Has_Completion_In_Body
;
3610 procedure Set_Has_Complex_Representation
(Id
: E
; V
: B
:= True) is
3612 pragma Assert
(Ekind
(Id
) = E_Record_Type
);
3613 Set_Flag140
(Id
, V
);
3614 end Set_Has_Complex_Representation
;
3616 procedure Set_Has_Component_Size_Clause
(Id
: E
; V
: B
:= True) is
3618 pragma Assert
(Ekind
(Id
) = E_Array_Type
);
3620 end Set_Has_Component_Size_Clause
;
3622 procedure Set_Has_Constrained_Partial_View
(Id
: E
; V
: B
:= True) is
3624 pragma Assert
(Is_Type
(Id
));
3625 Set_Flag187
(Id
, V
);
3626 end Set_Has_Constrained_Partial_View
;
3628 procedure Set_Has_Contiguous_Rep
(Id
: E
; V
: B
:= True) is
3630 Set_Flag181
(Id
, V
);
3631 end Set_Has_Contiguous_Rep
;
3633 procedure Set_Has_Controlled_Component
(Id
: E
; V
: B
:= True) is
3635 pragma Assert
(Id
= Base_Type
(Id
));
3637 end Set_Has_Controlled_Component
;
3639 procedure Set_Has_Controlling_Result
(Id
: E
; V
: B
:= True) is
3642 end Set_Has_Controlling_Result
;
3644 procedure Set_Has_Convention_Pragma
(Id
: E
; V
: B
:= True) is
3646 Set_Flag119
(Id
, V
);
3647 end Set_Has_Convention_Pragma
;
3649 procedure Set_Has_Delayed_Aspects
(Id
: E
; V
: B
:= True) is
3651 pragma Assert
(Nkind
(Id
) in N_Entity
);
3652 Set_Flag200
(Id
, V
);
3653 end Set_Has_Delayed_Aspects
;
3655 procedure Set_Has_Delayed_Freeze
(Id
: E
; V
: B
:= True) is
3657 pragma Assert
(Nkind
(Id
) in N_Entity
);
3659 end Set_Has_Delayed_Freeze
;
3661 procedure Set_Has_Discriminants
(Id
: E
; V
: B
:= True) is
3663 pragma Assert
(Nkind
(Id
) in N_Entity
);
3665 end Set_Has_Discriminants
;
3667 procedure Set_Has_Dispatch_Table
(Id
: E
; V
: B
:= True) is
3669 pragma Assert
(Ekind
(Id
) = E_Record_Type
3670 and then Is_Tagged_Type
(Id
));
3671 Set_Flag220
(Id
, V
);
3672 end Set_Has_Dispatch_Table
;
3674 procedure Set_Has_Enumeration_Rep_Clause
(Id
: E
; V
: B
:= True) is
3676 pragma Assert
(Is_Enumeration_Type
(Id
));
3678 end Set_Has_Enumeration_Rep_Clause
;
3680 procedure Set_Has_Exit
(Id
: E
; V
: B
:= True) is
3685 procedure Set_Has_External_Tag_Rep_Clause
(Id
: E
; V
: B
:= True) is
3687 pragma Assert
(Is_Tagged_Type
(Id
));
3688 Set_Flag110
(Id
, V
);
3689 end Set_Has_External_Tag_Rep_Clause
;
3691 procedure Set_Has_Forward_Instantiation
(Id
: E
; V
: B
:= True) is
3693 Set_Flag175
(Id
, V
);
3694 end Set_Has_Forward_Instantiation
;
3696 procedure Set_Has_Fully_Qualified_Name
(Id
: E
; V
: B
:= True) is
3698 Set_Flag173
(Id
, V
);
3699 end Set_Has_Fully_Qualified_Name
;
3701 procedure Set_Has_Gigi_Rep_Item
(Id
: E
; V
: B
:= True) is
3704 end Set_Has_Gigi_Rep_Item
;
3706 procedure Set_Has_Homonym
(Id
: E
; V
: B
:= True) is
3709 end Set_Has_Homonym
;
3711 procedure Set_Has_Inheritable_Invariants
(Id
: E
; V
: B
:= True) is
3713 pragma Assert
(Is_Type
(Id
));
3714 Set_Flag248
(Id
, V
);
3715 end Set_Has_Inheritable_Invariants
;
3717 procedure Set_Has_Initial_Value
(Id
: E
; V
: B
:= True) is
3719 pragma Assert
(Ekind_In
(Id
, E_Variable
, E_Out_Parameter
));
3720 Set_Flag219
(Id
, V
);
3721 end Set_Has_Initial_Value
;
3723 procedure Set_Has_Invariants
(Id
: E
; V
: B
:= True) is
3725 pragma Assert
(Is_Type
(Id
));
3726 Set_Flag232
(Id
, V
);
3727 end Set_Has_Invariants
;
3729 procedure Set_Has_Machine_Radix_Clause
(Id
: E
; V
: B
:= True) is
3731 pragma Assert
(Is_Decimal_Fixed_Point_Type
(Id
));
3733 end Set_Has_Machine_Radix_Clause
;
3735 procedure Set_Has_Master_Entity
(Id
: E
; V
: B
:= True) is
3738 end Set_Has_Master_Entity
;
3740 procedure Set_Has_Missing_Return
(Id
: E
; V
: B
:= True) is
3742 pragma Assert
(Ekind_In
(Id
, E_Function
, E_Generic_Function
));
3743 Set_Flag142
(Id
, V
);
3744 end Set_Has_Missing_Return
;
3746 procedure Set_Has_Nested_Block_With_Handler
(Id
: E
; V
: B
:= True) is
3748 Set_Flag101
(Id
, V
);
3749 end Set_Has_Nested_Block_With_Handler
;
3751 procedure Set_Has_Up_Level_Access
(Id
: E
; V
: B
:= True) is
3753 pragma Assert
(Ekind_In
(Id
, E_Variable
, E_Constant
, E_Loop_Parameter
));
3754 Set_Flag215
(Id
, V
);
3755 end Set_Has_Up_Level_Access
;
3757 procedure Set_Has_Non_Standard_Rep
(Id
: E
; V
: B
:= True) is
3759 pragma Assert
(Id
= Base_Type
(Id
));
3761 end Set_Has_Non_Standard_Rep
;
3763 procedure Set_Has_Object_Size_Clause
(Id
: E
; V
: B
:= True) is
3765 pragma Assert
(Is_Type
(Id
));
3766 Set_Flag172
(Id
, V
);
3767 end Set_Has_Object_Size_Clause
;
3769 procedure Set_Has_Per_Object_Constraint
(Id
: E
; V
: B
:= True) is
3771 Set_Flag154
(Id
, V
);
3772 end Set_Has_Per_Object_Constraint
;
3774 procedure Set_Has_Persistent_BSS
(Id
: E
; V
: B
:= True) is
3776 Set_Flag188
(Id
, V
);
3777 end Set_Has_Persistent_BSS
;
3779 procedure Set_Has_Postconditions
(Id
: E
; V
: B
:= True) is
3781 pragma Assert
(Is_Subprogram
(Id
));
3782 Set_Flag240
(Id
, V
);
3783 end Set_Has_Postconditions
;
3785 procedure Set_Has_Pragma_Controlled
(Id
: E
; V
: B
:= True) is
3787 pragma Assert
(Is_Access_Type
(Id
));
3788 Set_Flag27
(Base_Type
(Id
), V
);
3789 end Set_Has_Pragma_Controlled
;
3791 procedure Set_Has_Pragma_Elaborate_Body
(Id
: E
; V
: B
:= True) is
3793 Set_Flag150
(Id
, V
);
3794 end Set_Has_Pragma_Elaborate_Body
;
3796 procedure Set_Has_Pragma_Inline
(Id
: E
; V
: B
:= True) is
3798 Set_Flag157
(Id
, V
);
3799 end Set_Has_Pragma_Inline
;
3801 procedure Set_Has_Pragma_Inline_Always
(Id
: E
; V
: B
:= True) is
3803 Set_Flag230
(Id
, V
);
3804 end Set_Has_Pragma_Inline_Always
;
3806 procedure Set_Has_Pragma_Ordered
(Id
: E
; V
: B
:= True) is
3808 pragma Assert
(Is_Enumeration_Type
(Id
));
3809 pragma Assert
(Id
= Base_Type
(Id
));
3810 Set_Flag198
(Id
, V
);
3811 end Set_Has_Pragma_Ordered
;
3813 procedure Set_Has_Pragma_Pack
(Id
: E
; V
: B
:= True) is
3815 pragma Assert
(Is_Array_Type
(Id
) or else Is_Record_Type
(Id
));
3816 pragma Assert
(Id
= Base_Type
(Id
));
3817 Set_Flag121
(Id
, V
);
3818 end Set_Has_Pragma_Pack
;
3820 procedure Set_Has_Pragma_Preelab_Init
(Id
: E
; V
: B
:= True) is
3822 Set_Flag221
(Id
, V
);
3823 end Set_Has_Pragma_Preelab_Init
;
3825 procedure Set_Has_Pragma_Pure
(Id
: E
; V
: B
:= True) is
3827 Set_Flag203
(Id
, V
);
3828 end Set_Has_Pragma_Pure
;
3830 procedure Set_Has_Pragma_Pure_Function
(Id
: E
; V
: B
:= True) is
3832 Set_Flag179
(Id
, V
);
3833 end Set_Has_Pragma_Pure_Function
;
3835 procedure Set_Has_Pragma_Thread_Local_Storage
(Id
: E
; V
: B
:= True) is
3837 Set_Flag169
(Id
, V
);
3838 end Set_Has_Pragma_Thread_Local_Storage
;
3840 procedure Set_Has_Pragma_Unmodified
(Id
: E
; V
: B
:= True) is
3842 Set_Flag233
(Id
, V
);
3843 end Set_Has_Pragma_Unmodified
;
3845 procedure Set_Has_Pragma_Unreferenced
(Id
: E
; V
: B
:= True) is
3847 Set_Flag180
(Id
, V
);
3848 end Set_Has_Pragma_Unreferenced
;
3850 procedure Set_Has_Pragma_Unreferenced_Objects
(Id
: E
; V
: B
:= True) is
3852 pragma Assert
(Is_Type
(Id
));
3853 Set_Flag212
(Id
, V
);
3854 end Set_Has_Pragma_Unreferenced_Objects
;
3856 procedure Set_Has_Primitive_Operations
(Id
: E
; V
: B
:= True) is
3858 pragma Assert
(Id
= Base_Type
(Id
));
3859 Set_Flag120
(Id
, V
);
3860 end Set_Has_Primitive_Operations
;
3862 procedure Set_Has_Private_Declaration
(Id
: E
; V
: B
:= True) is
3864 Set_Flag155
(Id
, V
);
3865 end Set_Has_Private_Declaration
;
3867 procedure Set_Has_Qualified_Name
(Id
: E
; V
: B
:= True) is
3869 Set_Flag161
(Id
, V
);
3870 end Set_Has_Qualified_Name
;
3872 procedure Set_Has_RACW
(Id
: E
; V
: B
:= True) is
3874 pragma Assert
(Ekind
(Id
) = E_Package
);
3875 Set_Flag214
(Id
, V
);
3878 procedure Set_Has_Record_Rep_Clause
(Id
: E
; V
: B
:= True) is
3880 pragma Assert
(Id
= Base_Type
(Id
));
3882 end Set_Has_Record_Rep_Clause
;
3884 procedure Set_Has_Recursive_Call
(Id
: E
; V
: B
:= True) is
3886 pragma Assert
(Is_Subprogram
(Id
));
3887 Set_Flag143
(Id
, V
);
3888 end Set_Has_Recursive_Call
;
3890 procedure Set_Has_Size_Clause
(Id
: E
; V
: B
:= True) is
3893 end Set_Has_Size_Clause
;
3895 procedure Set_Has_Small_Clause
(Id
: E
; V
: B
:= True) is
3898 end Set_Has_Small_Clause
;
3900 procedure Set_Has_Specified_Layout
(Id
: E
; V
: B
:= True) is
3902 pragma Assert
(Id
= Base_Type
(Id
));
3903 Set_Flag100
(Id
, V
);
3904 end Set_Has_Specified_Layout
;
3906 procedure Set_Has_Specified_Stream_Input
(Id
: E
; V
: B
:= True) is
3908 pragma Assert
(Is_Type
(Id
));
3909 Set_Flag190
(Id
, V
);
3910 end Set_Has_Specified_Stream_Input
;
3912 procedure Set_Has_Specified_Stream_Output
(Id
: E
; V
: B
:= True) is
3914 pragma Assert
(Is_Type
(Id
));
3915 Set_Flag191
(Id
, V
);
3916 end Set_Has_Specified_Stream_Output
;
3918 procedure Set_Has_Specified_Stream_Read
(Id
: E
; V
: B
:= True) is
3920 pragma Assert
(Is_Type
(Id
));
3921 Set_Flag192
(Id
, V
);
3922 end Set_Has_Specified_Stream_Read
;
3924 procedure Set_Has_Specified_Stream_Write
(Id
: E
; V
: B
:= True) is
3926 pragma Assert
(Is_Type
(Id
));
3927 Set_Flag193
(Id
, V
);
3928 end Set_Has_Specified_Stream_Write
;
3930 procedure Set_Has_Static_Discriminants
(Id
: E
; V
: B
:= True) is
3932 Set_Flag211
(Id
, V
);
3933 end Set_Has_Static_Discriminants
;
3935 procedure Set_Has_Storage_Size_Clause
(Id
: E
; V
: B
:= True) is
3937 pragma Assert
(Is_Access_Type
(Id
) or else Is_Task_Type
(Id
));
3938 pragma Assert
(Id
= Base_Type
(Id
));
3940 end Set_Has_Storage_Size_Clause
;
3942 procedure Set_Has_Stream_Size_Clause
(Id
: E
; V
: B
:= True) is
3944 pragma Assert
(Is_Elementary_Type
(Id
));
3945 Set_Flag184
(Id
, V
);
3946 end Set_Has_Stream_Size_Clause
;
3948 procedure Set_Has_Subprogram_Descriptor
(Id
: E
; V
: B
:= True) is
3951 end Set_Has_Subprogram_Descriptor
;
3953 procedure Set_Has_Task
(Id
: E
; V
: B
:= True) is
3955 pragma Assert
(Id
= Base_Type
(Id
));
3959 procedure Set_Has_Thunks
(Id
: E
; V
: B
:= True) is
3961 pragma Assert
(Is_Tag
(Id
));
3962 Set_Flag228
(Id
, V
);
3965 procedure Set_Has_Unchecked_Union
(Id
: E
; V
: B
:= True) is
3967 pragma Assert
(Id
= Base_Type
(Id
));
3968 Set_Flag123
(Id
, V
);
3969 end Set_Has_Unchecked_Union
;
3971 procedure Set_Has_Unknown_Discriminants
(Id
: E
; V
: B
:= True) is
3973 pragma Assert
(Is_Type
(Id
));
3975 end Set_Has_Unknown_Discriminants
;
3977 procedure Set_Has_Volatile_Components
(Id
: E
; V
: B
:= True) is
3979 pragma Assert
(not Is_Type
(Id
) or else Id
= Base_Type
(Id
));
3981 end Set_Has_Volatile_Components
;
3983 procedure Set_Has_Xref_Entry
(Id
: E
; V
: B
:= True) is
3985 Set_Flag182
(Id
, V
);
3986 end Set_Has_Xref_Entry
;
3988 procedure Set_Hiding_Loop_Variable
(Id
: E
; V
: E
) is
3990 pragma Assert
(Ekind
(Id
) = E_Variable
);
3992 end Set_Hiding_Loop_Variable
;
3994 procedure Set_Homonym
(Id
: E
; V
: E
) is
3996 pragma Assert
(Id
/= V
);
4000 procedure Set_Interface_Alias
(Id
: E
; V
: E
) is
4004 and then Is_Hidden
(Id
)
4005 and then (Ekind_In
(Id
, E_Procedure
, E_Function
)));
4007 end Set_Interface_Alias
;
4009 procedure Set_Interfaces
(Id
: E
; V
: L
) is
4011 pragma Assert
(Is_Record_Type
(Id
));
4012 Set_Elist25
(Id
, V
);
4015 procedure Set_Invariant_Procedure
(Id
: E
; V
: N
) is
4017 pragma Assert
(Is_Type
(Id
));
4019 end Set_Invariant_Procedure
;
4021 procedure Set_In_Package_Body
(Id
: E
; V
: B
:= True) is
4024 end Set_In_Package_Body
;
4026 procedure Set_In_Private_Part
(Id
: E
; V
: B
:= True) is
4029 end Set_In_Private_Part
;
4031 procedure Set_In_Use
(Id
: E
; V
: B
:= True) is
4033 pragma Assert
(Nkind
(Id
) in N_Entity
);
4037 procedure Set_Inner_Instances
(Id
: E
; V
: L
) is
4039 Set_Elist23
(Id
, V
);
4040 end Set_Inner_Instances
;
4042 procedure Set_Interface_Name
(Id
: E
; V
: N
) is
4045 end Set_Interface_Name
;
4047 procedure Set_Is_Abstract_Subprogram
(Id
: E
; V
: B
:= True) is
4049 pragma Assert
(Is_Overloadable
(Id
));
4051 end Set_Is_Abstract_Subprogram
;
4053 procedure Set_Is_Abstract_Type
(Id
: E
; V
: B
:= True) is
4055 pragma Assert
(Is_Type
(Id
));
4056 Set_Flag146
(Id
, V
);
4057 end Set_Is_Abstract_Type
;
4059 procedure Set_Is_Local_Anonymous_Access
(Id
: E
; V
: B
:= True) is
4061 pragma Assert
(Is_Access_Type
(Id
));
4062 Set_Flag194
(Id
, V
);
4063 end Set_Is_Local_Anonymous_Access
;
4065 procedure Set_Is_Access_Constant
(Id
: E
; V
: B
:= True) is
4067 pragma Assert
(Is_Access_Type
(Id
));
4069 end Set_Is_Access_Constant
;
4071 procedure Set_Is_Ada_2005_Only
(Id
: E
; V
: B
:= True) is
4073 Set_Flag185
(Id
, V
);
4074 end Set_Is_Ada_2005_Only
;
4076 procedure Set_Is_Ada_2012_Only
(Id
: E
; V
: B
:= True) is
4078 Set_Flag199
(Id
, V
);
4079 end Set_Is_Ada_2012_Only
;
4081 procedure Set_Is_Aliased
(Id
: E
; V
: B
:= True) is
4083 pragma Assert
(Nkind
(Id
) in N_Entity
);
4087 procedure Set_Is_AST_Entry
(Id
: E
; V
: B
:= True) is
4089 pragma Assert
(Is_Entry
(Id
));
4090 Set_Flag132
(Id
, V
);
4091 end Set_Is_AST_Entry
;
4093 procedure Set_Is_Asynchronous
(Id
: E
; V
: B
:= True) is
4096 (Ekind
(Id
) = E_Procedure
or else Is_Type
(Id
));
4098 end Set_Is_Asynchronous
;
4100 procedure Set_Is_Atomic
(Id
: E
; V
: B
:= True) is
4105 procedure Set_Is_Bit_Packed_Array
(Id
: E
; V
: B
:= True) is
4107 pragma Assert
((not V
)
4108 or else (Is_Array_Type
(Id
) and then Id
= Base_Type
(Id
)));
4110 Set_Flag122
(Id
, V
);
4111 end Set_Is_Bit_Packed_Array
;
4113 procedure Set_Is_Called
(Id
: E
; V
: B
:= True) is
4115 pragma Assert
(Ekind_In
(Id
, E_Procedure
, E_Function
));
4116 Set_Flag102
(Id
, V
);
4119 procedure Set_Is_Character_Type
(Id
: E
; V
: B
:= True) is
4122 end Set_Is_Character_Type
;
4124 procedure Set_Is_Child_Unit
(Id
: E
; V
: B
:= True) is
4127 end Set_Is_Child_Unit
;
4129 procedure Set_Is_Class_Wide_Equivalent_Type
(Id
: E
; V
: B
:= True) is
4132 end Set_Is_Class_Wide_Equivalent_Type
;
4134 procedure Set_Is_Compilation_Unit
(Id
: E
; V
: B
:= True) is
4136 Set_Flag149
(Id
, V
);
4137 end Set_Is_Compilation_Unit
;
4139 procedure Set_Is_Completely_Hidden
(Id
: E
; V
: B
:= True) is
4141 pragma Assert
(Ekind
(Id
) = E_Discriminant
);
4142 Set_Flag103
(Id
, V
);
4143 end Set_Is_Completely_Hidden
;
4145 procedure Set_Is_Concurrent_Record_Type
(Id
: E
; V
: B
:= True) is
4148 end Set_Is_Concurrent_Record_Type
;
4150 procedure Set_Is_Constr_Subt_For_U_Nominal
(Id
: E
; V
: B
:= True) is
4153 end Set_Is_Constr_Subt_For_U_Nominal
;
4155 procedure Set_Is_Constr_Subt_For_UN_Aliased
(Id
: E
; V
: B
:= True) is
4157 Set_Flag141
(Id
, V
);
4158 end Set_Is_Constr_Subt_For_UN_Aliased
;
4160 procedure Set_Is_Constrained
(Id
: E
; V
: B
:= True) is
4162 pragma Assert
(Nkind
(Id
) in N_Entity
);
4164 end Set_Is_Constrained
;
4166 procedure Set_Is_Constructor
(Id
: E
; V
: B
:= True) is
4169 end Set_Is_Constructor
;
4171 procedure Set_Is_Controlled
(Id
: E
; V
: B
:= True) is
4173 pragma Assert
(Id
= Base_Type
(Id
));
4175 end Set_Is_Controlled
;
4177 procedure Set_Is_Controlling_Formal
(Id
: E
; V
: B
:= True) is
4179 pragma Assert
(Is_Formal
(Id
));
4181 end Set_Is_Controlling_Formal
;
4183 procedure Set_Is_CPP_Class
(Id
: E
; V
: B
:= True) is
4186 end Set_Is_CPP_Class
;
4188 procedure Set_Is_Descendent_Of_Address
(Id
: E
; V
: B
:= True) is
4190 pragma Assert
(Is_Type
(Id
));
4191 Set_Flag223
(Id
, V
);
4192 end Set_Is_Descendent_Of_Address
;
4194 procedure Set_Is_Discrim_SO_Function
(Id
: E
; V
: B
:= True) is
4196 Set_Flag176
(Id
, V
);
4197 end Set_Is_Discrim_SO_Function
;
4199 procedure Set_Is_Dispatch_Table_Entity
(Id
: E
; V
: B
:= True) is
4201 Set_Flag234
(Id
, V
);
4202 end Set_Is_Dispatch_Table_Entity
;
4204 procedure Set_Is_Dispatching_Operation
(Id
: E
; V
: B
:= True) is
4209 Is_Overloadable
(Id
)
4211 Ekind
(Id
) = E_Subprogram_Type
);
4214 end Set_Is_Dispatching_Operation
;
4216 procedure Set_Is_Eliminated
(Id
: E
; V
: B
:= True) is
4218 Set_Flag124
(Id
, V
);
4219 end Set_Is_Eliminated
;
4221 procedure Set_Is_Entry_Formal
(Id
: E
; V
: B
:= True) is
4224 end Set_Is_Entry_Formal
;
4226 procedure Set_Is_Exported
(Id
: E
; V
: B
:= True) is
4229 end Set_Is_Exported
;
4231 procedure Set_Is_First_Subtype
(Id
: E
; V
: B
:= True) is
4234 end Set_Is_First_Subtype
;
4236 procedure Set_Is_For_Access_Subtype
(Id
: E
; V
: B
:= True) is
4238 pragma Assert
(Ekind_In
(Id
, E_Record_Subtype
, E_Private_Subtype
));
4239 Set_Flag118
(Id
, V
);
4240 end Set_Is_For_Access_Subtype
;
4242 procedure Set_Is_Formal_Subprogram
(Id
: E
; V
: B
:= True) is
4244 Set_Flag111
(Id
, V
);
4245 end Set_Is_Formal_Subprogram
;
4247 procedure Set_Is_Frozen
(Id
: E
; V
: B
:= True) is
4249 pragma Assert
(Nkind
(Id
) in N_Entity
);
4253 procedure Set_Is_Generic_Actual_Type
(Id
: E
; V
: B
:= True) is
4255 pragma Assert
(Is_Type
(Id
));
4257 end Set_Is_Generic_Actual_Type
;
4259 procedure Set_Is_Generic_Instance
(Id
: E
; V
: B
:= True) is
4261 Set_Flag130
(Id
, V
);
4262 end Set_Is_Generic_Instance
;
4264 procedure Set_Is_Generic_Type
(Id
: E
; V
: B
:= True) is
4266 pragma Assert
(Nkind
(Id
) in N_Entity
);
4268 end Set_Is_Generic_Type
;
4270 procedure Set_Is_Hidden
(Id
: E
; V
: B
:= True) is
4275 procedure Set_Is_Hidden_Open_Scope
(Id
: E
; V
: B
:= True) is
4277 Set_Flag171
(Id
, V
);
4278 end Set_Is_Hidden_Open_Scope
;
4280 procedure Set_Is_Immediately_Visible
(Id
: E
; V
: B
:= True) is
4282 pragma Assert
(Nkind
(Id
) in N_Entity
);
4284 end Set_Is_Immediately_Visible
;
4286 procedure Set_Is_Imported
(Id
: E
; V
: B
:= True) is
4289 end Set_Is_Imported
;
4291 procedure Set_Is_Inlined
(Id
: E
; V
: B
:= True) is
4296 procedure Set_Is_Interface
(Id
: E
; V
: B
:= True) is
4299 (Ekind_In
(Id
, E_Record_Type
,
4301 E_Record_Type_With_Private
,
4302 E_Record_Subtype_With_Private
,
4304 E_Class_Wide_Subtype
));
4305 Set_Flag186
(Id
, V
);
4306 end Set_Is_Interface
;
4308 procedure Set_Is_Instantiated
(Id
: E
; V
: B
:= True) is
4310 Set_Flag126
(Id
, V
);
4311 end Set_Is_Instantiated
;
4313 procedure Set_Is_Internal
(Id
: E
; V
: B
:= True) is
4315 pragma Assert
(Nkind
(Id
) in N_Entity
);
4317 end Set_Is_Internal
;
4319 procedure Set_Is_Interrupt_Handler
(Id
: E
; V
: B
:= True) is
4321 pragma Assert
(Nkind
(Id
) in N_Entity
);
4323 end Set_Is_Interrupt_Handler
;
4325 procedure Set_Is_Intrinsic_Subprogram
(Id
: E
; V
: B
:= True) is
4328 end Set_Is_Intrinsic_Subprogram
;
4330 procedure Set_Is_Itype
(Id
: E
; V
: B
:= True) is
4335 procedure Set_Is_Known_Non_Null
(Id
: E
; V
: B
:= True) is
4338 end Set_Is_Known_Non_Null
;
4340 procedure Set_Is_Known_Null
(Id
: E
; V
: B
:= True) is
4342 Set_Flag204
(Id
, V
);
4343 end Set_Is_Known_Null
;
4345 procedure Set_Is_Known_Valid
(Id
: E
; V
: B
:= True) is
4347 Set_Flag170
(Id
, V
);
4348 end Set_Is_Known_Valid
;
4350 procedure Set_Is_Limited_Composite
(Id
: E
; V
: B
:= True) is
4352 pragma Assert
(Is_Type
(Id
));
4353 Set_Flag106
(Id
, V
);
4354 end Set_Is_Limited_Composite
;
4356 procedure Set_Is_Limited_Interface
(Id
: E
; V
: B
:= True) is
4358 pragma Assert
(Is_Interface
(Id
));
4359 Set_Flag197
(Id
, V
);
4360 end Set_Is_Limited_Interface
;
4362 procedure Set_Is_Limited_Record
(Id
: E
; V
: B
:= True) is
4365 end Set_Is_Limited_Record
;
4367 procedure Set_Is_Machine_Code_Subprogram
(Id
: E
; V
: B
:= True) is
4369 pragma Assert
(Is_Subprogram
(Id
));
4370 Set_Flag137
(Id
, V
);
4371 end Set_Is_Machine_Code_Subprogram
;
4373 procedure Set_Is_Non_Static_Subtype
(Id
: E
; V
: B
:= True) is
4375 pragma Assert
(Is_Type
(Id
));
4376 Set_Flag109
(Id
, V
);
4377 end Set_Is_Non_Static_Subtype
;
4379 procedure Set_Is_Null_Init_Proc
(Id
: E
; V
: B
:= True) is
4381 pragma Assert
(Ekind
(Id
) = E_Procedure
);
4382 Set_Flag178
(Id
, V
);
4383 end Set_Is_Null_Init_Proc
;
4385 procedure Set_Is_Obsolescent
(Id
: E
; V
: B
:= True) is
4387 Set_Flag153
(Id
, V
);
4388 end Set_Is_Obsolescent
;
4390 procedure Set_Is_Only_Out_Parameter
(Id
: E
; V
: B
:= True) is
4392 pragma Assert
(Ekind
(Id
) = E_Out_Parameter
);
4393 Set_Flag226
(Id
, V
);
4394 end Set_Is_Only_Out_Parameter
;
4396 procedure Set_Is_Optional_Parameter
(Id
: E
; V
: B
:= True) is
4398 pragma Assert
(Is_Formal
(Id
));
4399 Set_Flag134
(Id
, V
);
4400 end Set_Is_Optional_Parameter
;
4402 procedure Set_Is_Overriding_Operation
(Id
: E
; V
: B
:= True) is
4404 pragma Assert
(Is_Subprogram
(Id
));
4406 end Set_Is_Overriding_Operation
;
4408 procedure Set_Is_Package_Body_Entity
(Id
: E
; V
: B
:= True) is
4410 Set_Flag160
(Id
, V
);
4411 end Set_Is_Package_Body_Entity
;
4413 procedure Set_Is_Packed
(Id
: E
; V
: B
:= True) is
4415 pragma Assert
(Id
= Base_Type
(Id
));
4419 procedure Set_Is_Packed_Array_Type
(Id
: E
; V
: B
:= True) is
4421 Set_Flag138
(Id
, V
);
4422 end Set_Is_Packed_Array_Type
;
4424 procedure Set_Is_Potentially_Use_Visible
(Id
: E
; V
: B
:= True) is
4426 pragma Assert
(Nkind
(Id
) in N_Entity
);
4428 end Set_Is_Potentially_Use_Visible
;
4430 procedure Set_Is_Preelaborated
(Id
: E
; V
: B
:= True) is
4433 end Set_Is_Preelaborated
;
4435 procedure Set_Is_Primitive
(Id
: E
; V
: B
:= True) is
4438 (Is_Overloadable
(Id
)
4439 or else Ekind_In
(Id
, E_Generic_Function
, E_Generic_Procedure
));
4440 Set_Flag218
(Id
, V
);
4441 end Set_Is_Primitive
;
4443 procedure Set_Is_Primitive_Wrapper
(Id
: E
; V
: B
:= True) is
4445 pragma Assert
(Ekind_In
(Id
, E_Function
, E_Procedure
));
4446 Set_Flag195
(Id
, V
);
4447 end Set_Is_Primitive_Wrapper
;
4449 procedure Set_Is_Private_Composite
(Id
: E
; V
: B
:= True) is
4451 pragma Assert
(Is_Type
(Id
));
4452 Set_Flag107
(Id
, V
);
4453 end Set_Is_Private_Composite
;
4455 procedure Set_Is_Private_Descendant
(Id
: E
; V
: B
:= True) is
4458 end Set_Is_Private_Descendant
;
4460 procedure Set_Is_Private_Primitive
(Id
: E
; V
: B
:= True) is
4462 pragma Assert
(Ekind_In
(Id
, E_Function
, E_Procedure
));
4463 Set_Flag245
(Id
, V
);
4464 end Set_Is_Private_Primitive
;
4466 procedure Set_Is_Public
(Id
: E
; V
: B
:= True) is
4468 pragma Assert
(Nkind
(Id
) in N_Entity
);
4472 procedure Set_Is_Pure
(Id
: E
; V
: B
:= True) is
4477 procedure Set_Is_Pure_Unit_Access_Type
(Id
: E
; V
: B
:= True) is
4479 pragma Assert
(Is_Access_Type
(Id
));
4480 Set_Flag189
(Id
, V
);
4481 end Set_Is_Pure_Unit_Access_Type
;
4483 procedure Set_Is_RACW_Stub_Type
(Id
: E
; V
: B
:= True) is
4485 pragma Assert
(Is_Type
(Id
));
4486 Set_Flag244
(Id
, V
);
4487 end Set_Is_RACW_Stub_Type
;
4489 procedure Set_Is_Raised
(Id
: E
; V
: B
:= True) is
4491 pragma Assert
(Ekind
(Id
) = E_Exception
);
4492 Set_Flag224
(Id
, V
);
4495 procedure Set_Is_Remote_Call_Interface
(Id
: E
; V
: B
:= True) is
4498 end Set_Is_Remote_Call_Interface
;
4500 procedure Set_Is_Remote_Types
(Id
: E
; V
: B
:= True) is
4503 end Set_Is_Remote_Types
;
4505 procedure Set_Is_Renaming_Of_Object
(Id
: E
; V
: B
:= True) is
4507 Set_Flag112
(Id
, V
);
4508 end Set_Is_Renaming_Of_Object
;
4510 procedure Set_Is_Return_Object
(Id
: E
; V
: B
:= True) is
4512 Set_Flag209
(Id
, V
);
4513 end Set_Is_Return_Object
;
4515 procedure Set_Is_Shared_Passive
(Id
: E
; V
: B
:= True) is
4518 end Set_Is_Shared_Passive
;
4520 procedure Set_Is_Statically_Allocated
(Id
: E
; V
: B
:= True) is
4524 or else Ekind_In
(Id
, E_Exception
,
4529 end Set_Is_Statically_Allocated
;
4531 procedure Set_Is_Tag
(Id
: E
; V
: B
:= True) is
4533 pragma Assert
(Ekind_In
(Id
, E_Component
, E_Constant
, E_Variable
));
4537 procedure Set_Is_Tagged_Type
(Id
: E
; V
: B
:= True) is
4540 end Set_Is_Tagged_Type
;
4542 procedure Set_Is_Thunk
(Id
: E
; V
: B
:= True) is
4544 Set_Flag225
(Id
, V
);
4547 procedure Set_Is_Trivial_Subprogram
(Id
: E
; V
: B
:= True) is
4549 Set_Flag235
(Id
, V
);
4550 end Set_Is_Trivial_Subprogram
;
4552 procedure Set_Is_True_Constant
(Id
: E
; V
: B
:= True) is
4554 Set_Flag163
(Id
, V
);
4555 end Set_Is_True_Constant
;
4557 procedure Set_Is_Unchecked_Union
(Id
: E
; V
: B
:= True) is
4559 pragma Assert
(Id
= Base_Type
(Id
));
4560 Set_Flag117
(Id
, V
);
4561 end Set_Is_Unchecked_Union
;
4563 procedure Set_Is_Underlying_Record_View
(Id
: E
; V
: B
:= True) is
4565 pragma Assert
(Ekind
(Id
) = E_Record_Type
);
4566 Set_Flag246
(Id
, V
);
4567 end Set_Is_Underlying_Record_View
;
4569 procedure Set_Is_Unsigned_Type
(Id
: E
; V
: B
:= True) is
4571 pragma Assert
(Is_Discrete_Or_Fixed_Point_Type
(Id
));
4572 Set_Flag144
(Id
, V
);
4573 end Set_Is_Unsigned_Type
;
4575 procedure Set_Is_Valued_Procedure
(Id
: E
; V
: B
:= True) is
4577 pragma Assert
(Ekind
(Id
) = E_Procedure
);
4578 Set_Flag127
(Id
, V
);
4579 end Set_Is_Valued_Procedure
;
4581 procedure Set_Is_Visible_Child_Unit
(Id
: E
; V
: B
:= True) is
4583 pragma Assert
(Is_Child_Unit
(Id
));
4584 Set_Flag116
(Id
, V
);
4585 end Set_Is_Visible_Child_Unit
;
4587 procedure Set_Is_Visible_Formal
(Id
: E
; V
: B
:= True) is
4589 Set_Flag206
(Id
, V
);
4590 end Set_Is_Visible_Formal
;
4592 procedure Set_Is_VMS_Exception
(Id
: E
; V
: B
:= True) is
4594 pragma Assert
(Ekind
(Id
) = E_Exception
);
4595 Set_Flag133
(Id
, V
);
4596 end Set_Is_VMS_Exception
;
4598 procedure Set_Is_Volatile
(Id
: E
; V
: B
:= True) is
4600 pragma Assert
(Nkind
(Id
) in N_Entity
);
4602 end Set_Is_Volatile
;
4604 procedure Set_Itype_Printed
(Id
: E
; V
: B
:= True) is
4606 pragma Assert
(Is_Itype
(Id
));
4607 Set_Flag202
(Id
, V
);
4608 end Set_Itype_Printed
;
4610 procedure Set_Kill_Elaboration_Checks
(Id
: E
; V
: B
:= True) is
4613 end Set_Kill_Elaboration_Checks
;
4615 procedure Set_Kill_Range_Checks
(Id
: E
; V
: B
:= True) is
4618 end Set_Kill_Range_Checks
;
4620 procedure Set_Kill_Tag_Checks
(Id
: E
; V
: B
:= True) is
4623 end Set_Kill_Tag_Checks
;
4625 procedure Set_Known_To_Have_Preelab_Init
(Id
: E
; V
: B
:= True) is
4627 pragma Assert
(Is_Type
(Id
));
4628 Set_Flag207
(Id
, V
);
4629 end Set_Known_To_Have_Preelab_Init
;
4631 procedure Set_Last_Assignment
(Id
: E
; V
: N
) is
4633 pragma Assert
(Is_Assignable
(Id
));
4635 end Set_Last_Assignment
;
4637 procedure Set_Last_Entity
(Id
: E
; V
: E
) is
4640 end Set_Last_Entity
;
4642 procedure Set_Limited_View
(Id
: E
; V
: E
) is
4644 pragma Assert
(Ekind
(Id
) = E_Package
);
4646 end Set_Limited_View
;
4648 procedure Set_Lit_Indexes
(Id
: E
; V
: E
) is
4650 pragma Assert
(Is_Enumeration_Type
(Id
) and then Root_Type
(Id
) = Id
);
4652 end Set_Lit_Indexes
;
4654 procedure Set_Lit_Strings
(Id
: E
; V
: E
) is
4656 pragma Assert
(Is_Enumeration_Type
(Id
) and then Root_Type
(Id
) = Id
);
4658 end Set_Lit_Strings
;
4660 procedure Set_Low_Bound_Tested
(Id
: E
; V
: B
:= True) is
4662 pragma Assert
(Is_Formal
(Id
));
4663 Set_Flag205
(Id
, V
);
4664 end Set_Low_Bound_Tested
;
4666 procedure Set_Machine_Radix_10
(Id
: E
; V
: B
:= True) is
4668 pragma Assert
(Is_Decimal_Fixed_Point_Type
(Id
));
4670 end Set_Machine_Radix_10
;
4672 procedure Set_Master_Id
(Id
: E
; V
: E
) is
4674 pragma Assert
(Is_Access_Type
(Id
));
4678 procedure Set_Materialize_Entity
(Id
: E
; V
: B
:= True) is
4680 Set_Flag168
(Id
, V
);
4681 end Set_Materialize_Entity
;
4683 procedure Set_Mechanism
(Id
: E
; V
: M
) is
4685 pragma Assert
(Ekind
(Id
) = E_Function
or else Is_Formal
(Id
));
4686 Set_Uint8
(Id
, UI_From_Int
(V
));
4689 procedure Set_Modulus
(Id
: E
; V
: U
) is
4691 pragma Assert
(Ekind
(Id
) = E_Modular_Integer_Type
);
4695 procedure Set_Must_Be_On_Byte_Boundary
(Id
: E
; V
: B
:= True) is
4697 pragma Assert
(Is_Type
(Id
));
4698 Set_Flag183
(Id
, V
);
4699 end Set_Must_Be_On_Byte_Boundary
;
4701 procedure Set_Must_Have_Preelab_Init
(Id
: E
; V
: B
:= True) is
4703 pragma Assert
(Is_Type
(Id
));
4704 Set_Flag208
(Id
, V
);
4705 end Set_Must_Have_Preelab_Init
;
4707 procedure Set_Needs_Debug_Info
(Id
: E
; V
: B
:= True) is
4709 Set_Flag147
(Id
, V
);
4710 end Set_Needs_Debug_Info
;
4712 procedure Set_Needs_No_Actuals
(Id
: E
; V
: B
:= True) is
4715 (Is_Overloadable
(Id
)
4716 or else Ekind_In
(Id
, E_Subprogram_Type
, E_Entry_Family
));
4718 end Set_Needs_No_Actuals
;
4720 procedure Set_Never_Set_In_Source
(Id
: E
; V
: B
:= True) is
4722 Set_Flag115
(Id
, V
);
4723 end Set_Never_Set_In_Source
;
4725 procedure Set_Next_Inlined_Subprogram
(Id
: E
; V
: E
) is
4728 end Set_Next_Inlined_Subprogram
;
4730 procedure Set_No_Pool_Assigned
(Id
: E
; V
: B
:= True) is
4732 pragma Assert
(Is_Access_Type
(Id
) and then Id
= Base_Type
(Id
));
4733 Set_Flag131
(Id
, V
);
4734 end Set_No_Pool_Assigned
;
4736 procedure Set_No_Return
(Id
: E
; V
: B
:= True) is
4739 (V
= False or else Ekind_In
(Id
, E_Procedure
, E_Generic_Procedure
));
4740 Set_Flag113
(Id
, V
);
4743 procedure Set_No_Strict_Aliasing
(Id
: E
; V
: B
:= True) is
4745 pragma Assert
(Is_Access_Type
(Id
) and then Id
= Base_Type
(Id
));
4746 Set_Flag136
(Id
, V
);
4747 end Set_No_Strict_Aliasing
;
4749 procedure Set_Non_Binary_Modulus
(Id
: E
; V
: B
:= True) is
4751 pragma Assert
(Is_Type
(Id
) and then Id
= Base_Type
(Id
));
4753 end Set_Non_Binary_Modulus
;
4755 procedure Set_Non_Limited_View
(Id
: E
; V
: E
) is
4757 pragma Assert
(Ekind
(Id
) in Incomplete_Kind
);
4759 end Set_Non_Limited_View
;
4761 procedure Set_Nonzero_Is_True
(Id
: E
; V
: B
:= True) is
4764 (Root_Type
(Id
) = Standard_Boolean
4765 and then Ekind
(Id
) = E_Enumeration_Type
);
4766 Set_Flag162
(Id
, V
);
4767 end Set_Nonzero_Is_True
;
4769 procedure Set_Normalized_First_Bit
(Id
: E
; V
: U
) is
4771 pragma Assert
(Ekind_In
(Id
, E_Component
, E_Discriminant
));
4773 end Set_Normalized_First_Bit
;
4775 procedure Set_Normalized_Position
(Id
: E
; V
: U
) is
4777 pragma Assert
(Ekind_In
(Id
, E_Component
, E_Discriminant
));
4779 end Set_Normalized_Position
;
4781 procedure Set_Normalized_Position_Max
(Id
: E
; V
: U
) is
4783 pragma Assert
(Ekind_In
(Id
, E_Component
, E_Discriminant
));
4785 end Set_Normalized_Position_Max
;
4787 procedure Set_OK_To_Reference
(Id
: E
; V
: B
:= True) is
4789 pragma Assert
(Is_Type
(Id
));
4790 Set_Flag249
(Id
, V
);
4791 end Set_OK_To_Reference
;
4793 procedure Set_OK_To_Rename
(Id
: E
; V
: B
:= True) is
4795 pragma Assert
(Ekind
(Id
) = E_Variable
);
4796 Set_Flag247
(Id
, V
);
4797 end Set_OK_To_Rename
;
4799 procedure Set_OK_To_Reorder_Components
(Id
: E
; V
: B
:= True) is
4802 (Is_Record_Type
(Id
) and then Id
= Base_Type
(Id
));
4803 Set_Flag239
(Id
, V
);
4804 end Set_OK_To_Reorder_Components
;
4806 procedure Set_Optimize_Alignment_Space
(Id
: E
; V
: B
:= True) is
4809 (Is_Type
(Id
) or else Ekind_In
(Id
, E_Constant
, E_Variable
));
4810 Set_Flag241
(Id
, V
);
4811 end Set_Optimize_Alignment_Space
;
4813 procedure Set_Optimize_Alignment_Time
(Id
: E
; V
: B
:= True) is
4816 (Is_Type
(Id
) or else Ekind_In
(Id
, E_Constant
, E_Variable
));
4817 Set_Flag242
(Id
, V
);
4818 end Set_Optimize_Alignment_Time
;
4820 procedure Set_Original_Array_Type
(Id
: E
; V
: E
) is
4822 pragma Assert
(Is_Array_Type
(Id
) or else Is_Modular_Integer_Type
(Id
));
4824 end Set_Original_Array_Type
;
4826 procedure Set_Original_Record_Component
(Id
: E
; V
: E
) is
4828 pragma Assert
(Ekind_In
(Id
, E_Void
, E_Component
, E_Discriminant
));
4830 end Set_Original_Record_Component
;
4832 procedure Set_Overlays_Constant
(Id
: E
; V
: B
:= True) is
4834 Set_Flag243
(Id
, V
);
4835 end Set_Overlays_Constant
;
4837 procedure Set_Overridden_Operation
(Id
: E
; V
: E
) is
4840 end Set_Overridden_Operation
;
4842 procedure Set_Package_Instantiation
(Id
: E
; V
: N
) is
4844 pragma Assert
(Ekind_In
(Id
, E_Void
, E_Generic_Package
, E_Package
));
4846 end Set_Package_Instantiation
;
4848 procedure Set_Packed_Array_Type
(Id
: E
; V
: E
) is
4850 pragma Assert
(Is_Array_Type
(Id
));
4852 end Set_Packed_Array_Type
;
4854 procedure Set_Parent_Subtype
(Id
: E
; V
: E
) is
4856 pragma Assert
(Ekind
(Id
) = E_Record_Type
);
4858 end Set_Parent_Subtype
;
4860 procedure Set_Postcondition_Proc
(Id
: E
; V
: E
) is
4862 pragma Assert
(Ekind
(Id
) = E_Procedure
);
4864 end Set_Postcondition_Proc
;
4866 procedure Set_PPC_Wrapper
(Id
: E
; V
: E
) is
4868 pragma Assert
(Ekind_In
(Id
, E_Entry
, E_Entry_Family
));
4870 end Set_PPC_Wrapper
;
4872 procedure Set_Direct_Primitive_Operations
(Id
: E
; V
: L
) is
4874 pragma Assert
(Is_Tagged_Type
(Id
));
4875 Set_Elist10
(Id
, V
);
4876 end Set_Direct_Primitive_Operations
;
4878 procedure Set_Prival
(Id
: E
; V
: E
) is
4880 pragma Assert
(Is_Protected_Component
(Id
));
4884 procedure Set_Prival_Link
(Id
: E
; V
: E
) is
4886 pragma Assert
(Ekind_In
(Id
, E_Constant
, E_Variable
));
4888 end Set_Prival_Link
;
4890 procedure Set_Private_Dependents
(Id
: E
; V
: L
) is
4892 pragma Assert
(Is_Incomplete_Or_Private_Type
(Id
));
4893 Set_Elist18
(Id
, V
);
4894 end Set_Private_Dependents
;
4896 procedure Set_Private_View
(Id
: E
; V
: N
) is
4898 pragma Assert
(Is_Private_Type
(Id
));
4900 end Set_Private_View
;
4902 procedure Set_Protected_Body_Subprogram
(Id
: E
; V
: E
) is
4904 pragma Assert
(Is_Subprogram
(Id
) or else Is_Entry
(Id
));
4906 end Set_Protected_Body_Subprogram
;
4908 procedure Set_Protected_Formal
(Id
: E
; V
: E
) is
4910 pragma Assert
(Is_Formal
(Id
));
4912 end Set_Protected_Formal
;
4914 procedure Set_Protection_Object
(Id
: E
; V
: E
) is
4916 pragma Assert
(Ekind_In
(Id
, E_Entry
,
4921 end Set_Protection_Object
;
4923 procedure Set_Reachable
(Id
: E
; V
: B
:= True) is
4928 procedure Set_Referenced
(Id
: E
; V
: B
:= True) is
4930 Set_Flag156
(Id
, V
);
4933 procedure Set_Referenced_As_LHS
(Id
: E
; V
: B
:= True) is
4936 end Set_Referenced_As_LHS
;
4938 procedure Set_Referenced_As_Out_Parameter
(Id
: E
; V
: B
:= True) is
4940 Set_Flag227
(Id
, V
);
4941 end Set_Referenced_As_Out_Parameter
;
4943 procedure Set_Register_Exception_Call
(Id
: E
; V
: N
) is
4945 pragma Assert
(Ekind
(Id
) = E_Exception
);
4947 end Set_Register_Exception_Call
;
4949 procedure Set_Related_Array_Object
(Id
: E
; V
: E
) is
4951 pragma Assert
(Is_Array_Type
(Id
));
4953 end Set_Related_Array_Object
;
4955 procedure Set_Related_Expression
(Id
: E
; V
: N
) is
4957 pragma Assert
(Ekind
(Id
) in Type_Kind
4958 or else Ekind_In
(Id
, E_Constant
, E_Variable
, E_Void
));
4960 end Set_Related_Expression
;
4962 procedure Set_Related_Instance
(Id
: E
; V
: E
) is
4964 pragma Assert
(Ekind_In
(Id
, E_Package
, E_Package_Body
));
4966 end Set_Related_Instance
;
4968 procedure Set_Related_Type
(Id
: E
; V
: E
) is
4970 pragma Assert
(Ekind_In
(Id
, E_Component
, E_Constant
, E_Variable
));
4972 end Set_Related_Type
;
4974 procedure Set_Relative_Deadline_Variable
(Id
: E
; V
: E
) is
4976 pragma Assert
(Is_Task_Type
(Id
) and then Id
= Base_Type
(Id
));
4978 end Set_Relative_Deadline_Variable
;
4980 procedure Set_Renamed_Entity
(Id
: E
; V
: N
) is
4983 end Set_Renamed_Entity
;
4985 procedure Set_Renamed_In_Spec
(Id
: E
; V
: B
:= True) is
4987 pragma Assert
(Ekind
(Id
) = E_Package
);
4988 Set_Flag231
(Id
, V
);
4989 end Set_Renamed_In_Spec
;
4991 procedure Set_Renamed_Object
(Id
: E
; V
: N
) is
4994 end Set_Renamed_Object
;
4996 procedure Set_Renaming_Map
(Id
: E
; V
: U
) is
4999 end Set_Renaming_Map
;
5001 procedure Set_Requires_Overriding
(Id
: E
; V
: B
:= True) is
5003 pragma Assert
(Is_Overloadable
(Id
));
5004 Set_Flag213
(Id
, V
);
5005 end Set_Requires_Overriding
;
5007 procedure Set_Return_Present
(Id
: E
; V
: B
:= True) is
5010 end Set_Return_Present
;
5012 procedure Set_Return_Applies_To
(Id
: E
; V
: N
) is
5015 end Set_Return_Applies_To
;
5017 procedure Set_Returns_By_Ref
(Id
: E
; V
: B
:= True) is
5020 end Set_Returns_By_Ref
;
5022 procedure Set_Reverse_Bit_Order
(Id
: E
; V
: B
:= True) is
5025 (Is_Record_Type
(Id
) and then Id
= Base_Type
(Id
));
5026 Set_Flag164
(Id
, V
);
5027 end Set_Reverse_Bit_Order
;
5029 procedure Set_RM_Size
(Id
: E
; V
: U
) is
5031 pragma Assert
(Is_Type
(Id
));
5035 procedure Set_Scalar_Range
(Id
: E
; V
: N
) is
5038 end Set_Scalar_Range
;
5040 procedure Set_Scale_Value
(Id
: E
; V
: U
) is
5043 end Set_Scale_Value
;
5045 procedure Set_Scope_Depth_Value
(Id
: E
; V
: U
) is
5047 pragma Assert
(not Is_Record_Type
(Id
));
5049 end Set_Scope_Depth_Value
;
5051 procedure Set_Sec_Stack_Needed_For_Return
(Id
: E
; V
: B
:= True) is
5053 Set_Flag167
(Id
, V
);
5054 end Set_Sec_Stack_Needed_For_Return
;
5056 procedure Set_Shadow_Entities
(Id
: E
; V
: S
) is
5058 pragma Assert
(Ekind_In
(Id
, E_Package
, E_Generic_Package
));
5060 end Set_Shadow_Entities
;
5062 procedure Set_Shared_Var_Procs_Instance
(Id
: E
; V
: E
) is
5064 pragma Assert
(Ekind
(Id
) = E_Variable
);
5066 end Set_Shared_Var_Procs_Instance
;
5068 procedure Set_Size_Check_Code
(Id
: E
; V
: N
) is
5070 pragma Assert
(Ekind_In
(Id
, E_Constant
, E_Variable
));
5072 end Set_Size_Check_Code
;
5074 procedure Set_Size_Depends_On_Discriminant
(Id
: E
; V
: B
:= True) is
5076 Set_Flag177
(Id
, V
);
5077 end Set_Size_Depends_On_Discriminant
;
5079 procedure Set_Size_Known_At_Compile_Time
(Id
: E
; V
: B
:= True) is
5082 end Set_Size_Known_At_Compile_Time
;
5084 procedure Set_Small_Value
(Id
: E
; V
: R
) is
5086 pragma Assert
(Is_Fixed_Point_Type
(Id
));
5087 Set_Ureal21
(Id
, V
);
5088 end Set_Small_Value
;
5090 procedure Set_Spec_Entity
(Id
: E
; V
: E
) is
5092 pragma Assert
(Ekind
(Id
) = E_Package_Body
or else Is_Formal
(Id
));
5094 end Set_Spec_Entity
;
5096 procedure Set_Spec_PPC_List
(Id
: E
; V
: N
) is
5099 (Ekind_In
(Id
, E_Entry
, E_Entry_Family
, E_Void
)
5100 or else Is_Subprogram
(Id
)
5101 or else Is_Generic_Subprogram
(Id
));
5103 end Set_Spec_PPC_List
;
5105 procedure Set_Storage_Size_Variable
(Id
: E
; V
: E
) is
5107 pragma Assert
(Is_Access_Type
(Id
) or else Is_Task_Type
(Id
));
5108 pragma Assert
(Id
= Base_Type
(Id
));
5110 end Set_Storage_Size_Variable
;
5112 procedure Set_Static_Elaboration_Desired
(Id
: E
; V
: B
) is
5114 pragma Assert
(Ekind
(Id
) = E_Package
);
5116 end Set_Static_Elaboration_Desired
;
5118 procedure Set_Static_Initialization
(Id
: E
; V
: N
) is
5121 (Ekind
(Id
) = E_Procedure
and then not Is_Dispatching_Operation
(Id
));
5123 end Set_Static_Initialization
;
5125 procedure Set_Stored_Constraint
(Id
: E
; V
: L
) is
5127 pragma Assert
(Nkind
(Id
) in N_Entity
);
5128 Set_Elist23
(Id
, V
);
5129 end Set_Stored_Constraint
;
5131 procedure Set_Strict_Alignment
(Id
: E
; V
: B
:= True) is
5133 pragma Assert
(Id
= Base_Type
(Id
));
5134 Set_Flag145
(Id
, V
);
5135 end Set_Strict_Alignment
;
5137 procedure Set_String_Literal_Length
(Id
: E
; V
: U
) is
5139 pragma Assert
(Ekind
(Id
) = E_String_Literal_Subtype
);
5141 end Set_String_Literal_Length
;
5143 procedure Set_String_Literal_Low_Bound
(Id
: E
; V
: N
) is
5145 pragma Assert
(Ekind
(Id
) = E_String_Literal_Subtype
);
5147 end Set_String_Literal_Low_Bound
;
5149 procedure Set_Suppress_Elaboration_Warnings
(Id
: E
; V
: B
:= True) is
5151 Set_Flag148
(Id
, V
);
5152 end Set_Suppress_Elaboration_Warnings
;
5154 procedure Set_Suppress_Init_Proc
(Id
: E
; V
: B
:= True) is
5156 pragma Assert
(Id
= Base_Type
(Id
));
5157 Set_Flag105
(Id
, V
);
5158 end Set_Suppress_Init_Proc
;
5160 procedure Set_Suppress_Style_Checks
(Id
: E
; V
: B
:= True) is
5162 Set_Flag165
(Id
, V
);
5163 end Set_Suppress_Style_Checks
;
5165 procedure Set_Suppress_Value_Tracking_On_Call
(Id
: E
; V
: B
:= True) is
5167 Set_Flag217
(Id
, V
);
5168 end Set_Suppress_Value_Tracking_On_Call
;
5170 procedure Set_Task_Body_Procedure
(Id
: E
; V
: N
) is
5172 pragma Assert
(Ekind
(Id
) in Task_Kind
);
5174 end Set_Task_Body_Procedure
;
5176 procedure Set_Treat_As_Volatile
(Id
: E
; V
: B
:= True) is
5179 end Set_Treat_As_Volatile
;
5181 procedure Set_Underlying_Full_View
(Id
: E
; V
: E
) is
5183 pragma Assert
(Ekind
(Id
) in Private_Kind
);
5185 end Set_Underlying_Full_View
;
5187 procedure Set_Underlying_Record_View
(Id
: E
; V
: E
) is
5189 pragma Assert
(Ekind
(Id
) = E_Record_Type
);
5191 end Set_Underlying_Record_View
;
5193 procedure Set_Universal_Aliasing
(Id
: E
; V
: B
:= True) is
5195 pragma Assert
(Is_Type
(Id
) and then Id
= Base_Type
(Id
));
5196 Set_Flag216
(Id
, V
);
5197 end Set_Universal_Aliasing
;
5199 procedure Set_Unset_Reference
(Id
: E
; V
: N
) is
5202 end Set_Unset_Reference
;
5204 procedure Set_Uses_Sec_Stack
(Id
: E
; V
: B
:= True) is
5207 end Set_Uses_Sec_Stack
;
5209 procedure Set_Used_As_Generic_Actual
(Id
: E
; V
: B
:= True) is
5211 Set_Flag222
(Id
, V
);
5212 end Set_Used_As_Generic_Actual
;
5214 procedure Set_Vax_Float
(Id
: E
; V
: B
:= True) is
5216 pragma Assert
(Id
= Base_Type
(Id
));
5217 Set_Flag151
(Id
, V
);
5220 procedure Set_Warnings_Off
(Id
: E
; V
: B
:= True) is
5223 end Set_Warnings_Off
;
5225 procedure Set_Warnings_Off_Used
(Id
: E
; V
: B
:= True) is
5227 Set_Flag236
(Id
, V
);
5228 end Set_Warnings_Off_Used
;
5230 procedure Set_Warnings_Off_Used_Unmodified
(Id
: E
; V
: B
:= True) is
5232 Set_Flag237
(Id
, V
);
5233 end Set_Warnings_Off_Used_Unmodified
;
5235 procedure Set_Warnings_Off_Used_Unreferenced
(Id
: E
; V
: B
:= True) is
5237 Set_Flag238
(Id
, V
);
5238 end Set_Warnings_Off_Used_Unreferenced
;
5240 procedure Set_Was_Hidden
(Id
: E
; V
: B
:= True) is
5242 Set_Flag196
(Id
, V
);
5245 procedure Set_Wrapped_Entity
(Id
: E
; V
: E
) is
5247 pragma Assert
(Ekind_In
(Id
, E_Function
, E_Procedure
)
5248 and then Is_Primitive_Wrapper
(Id
));
5250 end Set_Wrapped_Entity
;
5252 -----------------------------------
5253 -- Field Initialization Routines --
5254 -----------------------------------
5256 procedure Init_Alignment
(Id
: E
) is
5258 Set_Uint14
(Id
, Uint_0
);
5261 procedure Init_Alignment
(Id
: E
; V
: Int
) is
5263 Set_Uint14
(Id
, UI_From_Int
(V
));
5266 procedure Init_Component_Bit_Offset
(Id
: E
) is
5268 Set_Uint11
(Id
, No_Uint
);
5269 end Init_Component_Bit_Offset
;
5271 procedure Init_Component_Bit_Offset
(Id
: E
; V
: Int
) is
5273 Set_Uint11
(Id
, UI_From_Int
(V
));
5274 end Init_Component_Bit_Offset
;
5276 procedure Init_Component_Size
(Id
: E
) is
5278 Set_Uint22
(Id
, Uint_0
);
5279 end Init_Component_Size
;
5281 procedure Init_Component_Size
(Id
: E
; V
: Int
) is
5283 Set_Uint22
(Id
, UI_From_Int
(V
));
5284 end Init_Component_Size
;
5286 procedure Init_Digits_Value
(Id
: E
) is
5288 Set_Uint17
(Id
, Uint_0
);
5289 end Init_Digits_Value
;
5291 procedure Init_Digits_Value
(Id
: E
; V
: Int
) is
5293 Set_Uint17
(Id
, UI_From_Int
(V
));
5294 end Init_Digits_Value
;
5296 procedure Init_Esize
(Id
: E
) is
5298 Set_Uint12
(Id
, Uint_0
);
5301 procedure Init_Esize
(Id
: E
; V
: Int
) is
5303 Set_Uint12
(Id
, UI_From_Int
(V
));
5306 procedure Init_Normalized_First_Bit
(Id
: E
) is
5308 Set_Uint8
(Id
, No_Uint
);
5309 end Init_Normalized_First_Bit
;
5311 procedure Init_Normalized_First_Bit
(Id
: E
; V
: Int
) is
5313 Set_Uint8
(Id
, UI_From_Int
(V
));
5314 end Init_Normalized_First_Bit
;
5316 procedure Init_Normalized_Position
(Id
: E
) is
5318 Set_Uint14
(Id
, No_Uint
);
5319 end Init_Normalized_Position
;
5321 procedure Init_Normalized_Position
(Id
: E
; V
: Int
) is
5323 Set_Uint14
(Id
, UI_From_Int
(V
));
5324 end Init_Normalized_Position
;
5326 procedure Init_Normalized_Position_Max
(Id
: E
) is
5328 Set_Uint10
(Id
, No_Uint
);
5329 end Init_Normalized_Position_Max
;
5331 procedure Init_Normalized_Position_Max
(Id
: E
; V
: Int
) is
5333 Set_Uint10
(Id
, UI_From_Int
(V
));
5334 end Init_Normalized_Position_Max
;
5336 procedure Init_RM_Size
(Id
: E
) is
5338 Set_Uint13
(Id
, Uint_0
);
5341 procedure Init_RM_Size
(Id
: E
; V
: Int
) is
5343 Set_Uint13
(Id
, UI_From_Int
(V
));
5346 -----------------------------
5347 -- Init_Component_Location --
5348 -----------------------------
5350 procedure Init_Component_Location
(Id
: E
) is
5352 Set_Uint8
(Id
, No_Uint
); -- Normalized_First_Bit
5353 Set_Uint10
(Id
, No_Uint
); -- Normalized_Position_Max
5354 Set_Uint11
(Id
, No_Uint
); -- Component_Bit_Offset
5355 Set_Uint12
(Id
, Uint_0
); -- Esize
5356 Set_Uint14
(Id
, No_Uint
); -- Normalized_Position
5357 end Init_Component_Location
;
5363 procedure Init_Size
(Id
: E
; V
: Int
) is
5365 Set_Uint12
(Id
, UI_From_Int
(V
)); -- Esize
5366 Set_Uint13
(Id
, UI_From_Int
(V
)); -- RM_Size
5369 ---------------------
5370 -- Init_Size_Align --
5371 ---------------------
5373 procedure Init_Size_Align
(Id
: E
) is
5375 Set_Uint12
(Id
, Uint_0
); -- Esize
5376 Set_Uint13
(Id
, Uint_0
); -- RM_Size
5377 Set_Uint14
(Id
, Uint_0
); -- Alignment
5378 end Init_Size_Align
;
5380 ----------------------------------------------
5381 -- Type Representation Attribute Predicates --
5382 ----------------------------------------------
5384 function Known_Alignment
(E
: Entity_Id
) return B
is
5386 return Uint14
(E
) /= Uint_0
5387 and then Uint14
(E
) /= No_Uint
;
5388 end Known_Alignment
;
5390 function Known_Component_Bit_Offset
(E
: Entity_Id
) return B
is
5392 return Uint11
(E
) /= No_Uint
;
5393 end Known_Component_Bit_Offset
;
5395 function Known_Component_Size
(E
: Entity_Id
) return B
is
5397 return Uint22
(Base_Type
(E
)) /= Uint_0
5398 and then Uint22
(Base_Type
(E
)) /= No_Uint
;
5399 end Known_Component_Size
;
5401 function Known_Esize
(E
: Entity_Id
) return B
is
5403 return Uint12
(E
) /= Uint_0
5404 and then Uint12
(E
) /= No_Uint
;
5407 function Known_Normalized_First_Bit
(E
: Entity_Id
) return B
is
5409 return Uint8
(E
) /= No_Uint
;
5410 end Known_Normalized_First_Bit
;
5412 function Known_Normalized_Position
(E
: Entity_Id
) return B
is
5414 return Uint14
(E
) /= No_Uint
;
5415 end Known_Normalized_Position
;
5417 function Known_Normalized_Position_Max
(E
: Entity_Id
) return B
is
5419 return Uint10
(E
) /= No_Uint
;
5420 end Known_Normalized_Position_Max
;
5422 function Known_RM_Size
(E
: Entity_Id
) return B
is
5424 return Uint13
(E
) /= No_Uint
5425 and then (Uint13
(E
) /= Uint_0
5426 or else Is_Discrete_Type
(E
)
5427 or else Is_Fixed_Point_Type
(E
));
5430 function Known_Static_Component_Bit_Offset
(E
: Entity_Id
) return B
is
5432 return Uint11
(E
) /= No_Uint
5433 and then Uint11
(E
) >= Uint_0
;
5434 end Known_Static_Component_Bit_Offset
;
5436 function Known_Static_Component_Size
(E
: Entity_Id
) return B
is
5438 return Uint22
(Base_Type
(E
)) > Uint_0
;
5439 end Known_Static_Component_Size
;
5441 function Known_Static_Esize
(E
: Entity_Id
) return B
is
5443 return Uint12
(E
) > Uint_0
5444 and then not Is_Generic_Type
(E
);
5445 end Known_Static_Esize
;
5447 function Known_Static_Normalized_First_Bit
(E
: Entity_Id
) return B
is
5449 return Uint8
(E
) /= No_Uint
5450 and then Uint8
(E
) >= Uint_0
;
5451 end Known_Static_Normalized_First_Bit
;
5453 function Known_Static_Normalized_Position
(E
: Entity_Id
) return B
is
5455 return Uint14
(E
) /= No_Uint
5456 and then Uint14
(E
) >= Uint_0
;
5457 end Known_Static_Normalized_Position
;
5459 function Known_Static_Normalized_Position_Max
(E
: Entity_Id
) return B
is
5461 return Uint10
(E
) /= No_Uint
5462 and then Uint10
(E
) >= Uint_0
;
5463 end Known_Static_Normalized_Position_Max
;
5465 function Known_Static_RM_Size
(E
: Entity_Id
) return B
is
5467 return (Uint13
(E
) > Uint_0
5468 or else Is_Discrete_Type
(E
)
5469 or else Is_Fixed_Point_Type
(E
))
5470 and then not Is_Generic_Type
(E
);
5471 end Known_Static_RM_Size
;
5473 function Unknown_Alignment
(E
: Entity_Id
) return B
is
5475 return Uint14
(E
) = Uint_0
5476 or else Uint14
(E
) = No_Uint
;
5477 end Unknown_Alignment
;
5479 function Unknown_Component_Bit_Offset
(E
: Entity_Id
) return B
is
5481 return Uint11
(E
) = No_Uint
;
5482 end Unknown_Component_Bit_Offset
;
5484 function Unknown_Component_Size
(E
: Entity_Id
) return B
is
5486 return Uint22
(Base_Type
(E
)) = Uint_0
5488 Uint22
(Base_Type
(E
)) = No_Uint
;
5489 end Unknown_Component_Size
;
5491 function Unknown_Esize
(E
: Entity_Id
) return B
is
5493 return Uint12
(E
) = No_Uint
5495 Uint12
(E
) = Uint_0
;
5498 function Unknown_Normalized_First_Bit
(E
: Entity_Id
) return B
is
5500 return Uint8
(E
) = No_Uint
;
5501 end Unknown_Normalized_First_Bit
;
5503 function Unknown_Normalized_Position
(E
: Entity_Id
) return B
is
5505 return Uint14
(E
) = No_Uint
;
5506 end Unknown_Normalized_Position
;
5508 function Unknown_Normalized_Position_Max
(E
: Entity_Id
) return B
is
5510 return Uint10
(E
) = No_Uint
;
5511 end Unknown_Normalized_Position_Max
;
5513 function Unknown_RM_Size
(E
: Entity_Id
) return B
is
5515 return (Uint13
(E
) = Uint_0
5516 and then not Is_Discrete_Type
(E
)
5517 and then not Is_Fixed_Point_Type
(E
))
5518 or else Uint13
(E
) = No_Uint
;
5519 end Unknown_RM_Size
;
5521 --------------------
5522 -- Address_Clause --
5523 --------------------
5525 function Address_Clause
(Id
: E
) return N
is
5527 return Rep_Clause
(Id
, Name_Address
);
5534 function Aft_Value
(Id
: E
) return U
is
5536 Delta_Val
: Ureal
:= Delta_Value
(Id
);
5538 while Delta_Val
< Ureal_Tenth
loop
5539 Delta_Val
:= Delta_Val
* Ureal_10
;
5540 Result
:= Result
+ 1;
5543 return UI_From_Int
(Result
);
5546 ----------------------
5547 -- Alignment_Clause --
5548 ----------------------
5550 function Alignment_Clause
(Id
: E
) return N
is
5552 return Rep_Clause
(Id
, Name_Alignment
);
5553 end Alignment_Clause
;
5559 procedure Append_Entity
(Id
: Entity_Id
; V
: Entity_Id
) is
5561 if Last_Entity
(V
) = Empty
then
5562 Set_First_Entity
(Id
=> V
, V
=> Id
);
5564 Set_Next_Entity
(Last_Entity
(V
), Id
);
5567 Set_Next_Entity
(Id
, Empty
);
5569 Set_Last_Entity
(Id
=> V
, V
=> Id
);
5576 function Base_Type
(Id
: E
) return E
is
5579 when E_Enumeration_Subtype |
5581 E_Signed_Integer_Subtype |
5582 E_Modular_Integer_Subtype |
5583 E_Floating_Point_Subtype |
5584 E_Ordinary_Fixed_Point_Subtype |
5585 E_Decimal_Fixed_Point_Subtype |
5590 E_Record_Subtype_With_Private |
5591 E_Limited_Private_Subtype |
5593 E_Protected_Subtype |
5595 E_String_Literal_Subtype |
5596 E_Class_Wide_Subtype
=>
5604 -------------------------
5605 -- Component_Alignment --
5606 -------------------------
5608 -- Component Alignment is encoded using two flags, Flag128/129 as
5609 -- follows. Note that both flags False = Align_Default, so that the
5610 -- default initialization of flags to False initializes component
5611 -- alignment to the default value as required.
5613 -- Flag128 Flag129 Value
5614 -- ------- ------- -----
5615 -- False False Calign_Default
5616 -- False True Calign_Component_Size
5617 -- True False Calign_Component_Size_4
5618 -- True True Calign_Storage_Unit
5620 function Component_Alignment
(Id
: E
) return C
is
5621 BT
: constant Node_Id
:= Base_Type
(Id
);
5624 pragma Assert
(Is_Array_Type
(Id
) or else Is_Record_Type
(Id
));
5626 if Flag128
(BT
) then
5627 if Flag129
(BT
) then
5628 return Calign_Storage_Unit
;
5630 return Calign_Component_Size_4
;
5634 if Flag129
(BT
) then
5635 return Calign_Component_Size
;
5637 return Calign_Default
;
5640 end Component_Alignment
;
5642 ----------------------
5643 -- Declaration_Node --
5644 ----------------------
5646 function Declaration_Node
(Id
: E
) return N
is
5650 if Ekind
(Id
) = E_Incomplete_Type
5651 and then Present
(Full_View
(Id
))
5653 P
:= Parent
(Full_View
(Id
));
5659 if Nkind
(P
) /= N_Selected_Component
5660 and then Nkind
(P
) /= N_Expanded_Name
5662 not (Nkind
(P
) = N_Defining_Program_Unit_Name
5663 and then Is_Child_Unit
(Id
))
5670 end Declaration_Node
;
5672 ---------------------
5673 -- Designated_Type --
5674 ---------------------
5676 function Designated_Type
(Id
: E
) return E
is
5680 Desig_Type
:= Directly_Designated_Type
(Id
);
5682 if Ekind
(Desig_Type
) = E_Incomplete_Type
5683 and then Present
(Full_View
(Desig_Type
))
5685 return Full_View
(Desig_Type
);
5687 elsif Is_Class_Wide_Type
(Desig_Type
)
5688 and then Ekind
(Etype
(Desig_Type
)) = E_Incomplete_Type
5689 and then Present
(Full_View
(Etype
(Desig_Type
)))
5690 and then Present
(Class_Wide_Type
(Full_View
(Etype
(Desig_Type
))))
5692 return Class_Wide_Type
(Full_View
(Etype
(Desig_Type
)));
5697 end Designated_Type
;
5699 ----------------------
5700 -- Entry_Index_Type --
5701 ----------------------
5703 function Entry_Index_Type
(Id
: E
) return N
is
5705 pragma Assert
(Ekind
(Id
) = E_Entry_Family
);
5706 return Etype
(Discrete_Subtype_Definition
(Parent
(Id
)));
5707 end Entry_Index_Type
;
5709 ---------------------
5710 -- First_Component --
5711 ---------------------
5713 function First_Component
(Id
: E
) return E
is
5718 (Is_Record_Type
(Id
) or else Is_Incomplete_Or_Private_Type
(Id
));
5720 Comp_Id
:= First_Entity
(Id
);
5721 while Present
(Comp_Id
) loop
5722 exit when Ekind
(Comp_Id
) = E_Component
;
5723 Comp_Id
:= Next_Entity
(Comp_Id
);
5727 end First_Component
;
5729 -------------------------------------
5730 -- First_Component_Or_Discriminant --
5731 -------------------------------------
5733 function First_Component_Or_Discriminant
(Id
: E
) return E
is
5738 (Is_Record_Type
(Id
) or else Is_Incomplete_Or_Private_Type
(Id
));
5740 Comp_Id
:= First_Entity
(Id
);
5741 while Present
(Comp_Id
) loop
5742 exit when Ekind
(Comp_Id
) = E_Component
5744 Ekind
(Comp_Id
) = E_Discriminant
;
5745 Comp_Id
:= Next_Entity
(Comp_Id
);
5749 end First_Component_Or_Discriminant
;
5755 function First_Formal
(Id
: E
) return E
is
5760 (Is_Overloadable
(Id
)
5761 or else Ekind_In
(Id
, E_Entry_Family
,
5763 E_Subprogram_Type
));
5765 if Ekind
(Id
) = E_Enumeration_Literal
then
5769 Formal
:= First_Entity
(Id
);
5771 if Present
(Formal
) and then Is_Formal
(Formal
) then
5779 ------------------------------
5780 -- First_Formal_With_Extras --
5781 ------------------------------
5783 function First_Formal_With_Extras
(Id
: E
) return E
is
5788 (Is_Overloadable
(Id
)
5789 or else Ekind_In
(Id
, E_Entry_Family
,
5791 E_Subprogram_Type
));
5793 if Ekind
(Id
) = E_Enumeration_Literal
then
5797 Formal
:= First_Entity
(Id
);
5799 if Present
(Formal
) and then Is_Formal
(Formal
) then
5802 return Extra_Formals
(Id
); -- Empty if no extra formals
5805 end First_Formal_With_Extras
;
5807 -------------------------------------
5808 -- Get_Attribute_Definition_Clause --
5809 -------------------------------------
5811 function Get_Attribute_Definition_Clause
5813 Id
: Attribute_Id
) return Node_Id
5818 N
:= First_Rep_Item
(E
);
5819 while Present
(N
) loop
5820 if Nkind
(N
) = N_Attribute_Definition_Clause
5821 and then Get_Attribute_Id
(Chars
(N
)) = Id
5830 end Get_Attribute_Definition_Clause
;
5836 function Get_Full_View
(T
: Entity_Id
) return Entity_Id
is
5838 if Ekind
(T
) = E_Incomplete_Type
and then Present
(Full_View
(T
)) then
5839 return Full_View
(T
);
5841 elsif Is_Class_Wide_Type
(T
)
5842 and then Ekind
(Root_Type
(T
)) = E_Incomplete_Type
5843 and then Present
(Full_View
(Root_Type
(T
)))
5845 return Class_Wide_Type
(Full_View
(Root_Type
(T
)));
5852 --------------------------------------
5853 -- Get_Record_Representation_Clause --
5854 --------------------------------------
5856 function Get_Record_Representation_Clause
(E
: Entity_Id
) return Node_Id
is
5860 N
:= First_Rep_Item
(E
);
5861 while Present
(N
) loop
5862 if Nkind
(N
) = N_Record_Representation_Clause
then
5870 end Get_Record_Representation_Clause
;
5872 -----------------------------
5873 -- Get_Rep_Item_For_Entity --
5874 -----------------------------
5876 function Get_Rep_Item_For_Entity
5878 Nam
: Name_Id
) return Node_Id
5884 N
:= First_Rep_Item
(E
);
5885 while Present
(N
) loop
5886 if Nkind
(N
) = N_Pragma
and then Pragma_Name
(N
) = Nam
then
5887 Arg
:= Get_Pragma_Arg
(First
(Pragma_Argument_Associations
(N
)));
5889 if Is_Entity_Name
(Arg
) and then Entity
(Arg
) = E
then
5893 elsif Nkind
(N
) = N_Attribute_Definition_Clause
5894 and then Chars
(N
) = Nam
5895 and then Entity
(N
) = E
5899 elsif Nkind
(N
) = N_Aspect_Specification
5900 and then Chars
(Identifier
(N
)) = Nam
5901 and then Entity
(N
) = E
5910 end Get_Rep_Item_For_Entity
;
5912 --------------------
5913 -- Get_Rep_Pragma --
5914 --------------------
5916 function Get_Rep_Pragma
(E
: Entity_Id
; Nam
: Name_Id
) return Node_Id
is
5920 N
:= First_Rep_Item
(E
);
5921 while Present
(N
) loop
5922 if Nkind
(N
) = N_Pragma
and then Pragma_Name
(N
) = Nam
then
5932 ------------------------
5933 -- Has_Attach_Handler --
5934 ------------------------
5936 function Has_Attach_Handler
(Id
: E
) return B
is
5940 pragma Assert
(Is_Protected_Type
(Id
));
5942 Ritem
:= First_Rep_Item
(Id
);
5943 while Present
(Ritem
) loop
5944 if Nkind
(Ritem
) = N_Pragma
5945 and then Pragma_Name
(Ritem
) = Name_Attach_Handler
5949 Next_Rep_Item
(Ritem
);
5954 end Has_Attach_Handler
;
5956 -------------------------------------
5957 -- Has_Attribute_Definition_Clause --
5958 -------------------------------------
5960 function Has_Attribute_Definition_Clause
5962 Id
: Attribute_Id
) return Boolean
5965 return Present
(Get_Attribute_Definition_Clause
(E
, Id
));
5966 end Has_Attribute_Definition_Clause
;
5972 function Has_Entries
(Id
: E
) return B
is
5976 pragma Assert
(Is_Concurrent_Type
(Id
));
5978 Ent
:= First_Entity
(Id
);
5979 while Present
(Ent
) loop
5980 if Is_Entry
(Ent
) then
5984 Ent
:= Next_Entity
(Ent
);
5990 ----------------------------
5991 -- Has_Foreign_Convention --
5992 ----------------------------
5994 function Has_Foreign_Convention
(Id
: E
) return B
is
5996 -- While regular Intrinsics such as the Standard operators fit in the
5997 -- "Ada" convention, those with an Interface_Name materialize GCC
5998 -- builtin imports for which Ada special treatments shouldn't apply.
6000 return Convention
(Id
) in Foreign_Convention
6001 or else (Convention
(Id
) = Convention_Intrinsic
6002 and then Present
(Interface_Name
(Id
)));
6003 end Has_Foreign_Convention
;
6005 ---------------------------
6006 -- Has_Interrupt_Handler --
6007 ---------------------------
6009 function Has_Interrupt_Handler
(Id
: E
) return B
is
6013 pragma Assert
(Is_Protected_Type
(Id
));
6015 Ritem
:= First_Rep_Item
(Id
);
6016 while Present
(Ritem
) loop
6017 if Nkind
(Ritem
) = N_Pragma
6018 and then Pragma_Name
(Ritem
) = Name_Interrupt_Handler
6022 Next_Rep_Item
(Ritem
);
6027 end Has_Interrupt_Handler
;
6029 --------------------------
6030 -- Has_Private_Ancestor --
6031 --------------------------
6033 function Has_Private_Ancestor
(Id
: E
) return B
is
6034 R
: constant Entity_Id
:= Root_Type
(Id
);
6035 T1
: Entity_Id
:= Id
;
6038 if Is_Private_Type
(T1
) then
6046 end Has_Private_Ancestor
;
6048 --------------------
6049 -- Has_Rep_Pragma --
6050 --------------------
6052 function Has_Rep_Pragma
(E
: Entity_Id
; Nam
: Name_Id
) return Boolean is
6054 return Present
(Get_Rep_Pragma
(E
, Nam
));
6057 --------------------
6058 -- Has_Unmodified --
6059 --------------------
6061 function Has_Unmodified
(E
: Entity_Id
) return Boolean is
6063 if Has_Pragma_Unmodified
(E
) then
6065 elsif Warnings_Off
(E
) then
6066 Set_Warnings_Off_Used_Unmodified
(E
);
6073 ---------------------
6074 -- Has_Unreferenced --
6075 ---------------------
6077 function Has_Unreferenced
(E
: Entity_Id
) return Boolean is
6079 if Has_Pragma_Unreferenced
(E
) then
6081 elsif Warnings_Off
(E
) then
6082 Set_Warnings_Off_Used_Unreferenced
(E
);
6087 end Has_Unreferenced
;
6089 ----------------------
6090 -- Has_Warnings_Off --
6091 ----------------------
6093 function Has_Warnings_Off
(E
: Entity_Id
) return Boolean is
6095 if Warnings_Off
(E
) then
6096 Set_Warnings_Off_Used
(E
);
6101 end Has_Warnings_Off
;
6103 ------------------------------
6104 -- Implementation_Base_Type --
6105 ------------------------------
6107 function Implementation_Base_Type
(Id
: E
) return E
is
6112 Bastyp
:= Base_Type
(Id
);
6114 if Is_Incomplete_Or_Private_Type
(Bastyp
) then
6115 Imptyp
:= Underlying_Type
(Bastyp
);
6117 -- If we have an implementation type, then just return it,
6118 -- otherwise we return the Base_Type anyway. This can only
6119 -- happen in error situations and should avoid some error bombs.
6121 if Present
(Imptyp
) then
6122 return Base_Type
(Imptyp
);
6130 end Implementation_Base_Type
;
6132 ---------------------
6133 -- Is_Boolean_Type --
6134 ---------------------
6136 function Is_Boolean_Type
(Id
: E
) return B
is
6138 return Root_Type
(Id
) = Standard_Boolean
;
6139 end Is_Boolean_Type
;
6141 ------------------------
6142 -- Is_Constant_Object --
6143 ------------------------
6145 function Is_Constant_Object
(Id
: E
) return B
is
6146 K
: constant Entity_Kind
:= Ekind
(Id
);
6149 K
= E_Constant
or else K
= E_In_Parameter
or else K
= E_Loop_Parameter
;
6150 end Is_Constant_Object
;
6152 --------------------
6153 -- Is_Discriminal --
6154 --------------------
6156 function Is_Discriminal
(Id
: E
) return B
is
6158 return (Ekind_In
(Id
, E_Constant
, E_In_Parameter
)
6159 and then Present
(Discriminal_Link
(Id
)));
6162 ----------------------
6163 -- Is_Dynamic_Scope --
6164 ----------------------
6166 function Is_Dynamic_Scope
(Id
: E
) return B
is
6169 Ekind
(Id
) = E_Block
6171 Ekind
(Id
) = E_Function
6173 Ekind
(Id
) = E_Procedure
6175 Ekind
(Id
) = E_Subprogram_Body
6177 Ekind
(Id
) = E_Task_Type
6179 (Ekind
(Id
) = E_Limited_Private_Type
6180 and then Present
(Full_View
(Id
))
6181 and then Ekind
(Full_View
(Id
)) = E_Task_Type
)
6183 Ekind
(Id
) = E_Entry
6185 Ekind
(Id
) = E_Entry_Family
6187 Ekind
(Id
) = E_Return_Statement
;
6188 end Is_Dynamic_Scope
;
6190 --------------------
6191 -- Is_Entity_Name --
6192 --------------------
6194 function Is_Entity_Name
(N
: Node_Id
) return Boolean is
6195 Kind
: constant Node_Kind
:= Nkind
(N
);
6198 -- Identifiers, operator symbols, expanded names are entity names
6200 return Kind
= N_Identifier
6201 or else Kind
= N_Operator_Symbol
6202 or else Kind
= N_Expanded_Name
6204 -- Attribute references are entity names if they refer to an entity.
6205 -- Note that we don't do this by testing for the presence of the
6206 -- Entity field in the N_Attribute_Reference node, since it may not
6207 -- have been set yet.
6209 or else (Kind
= N_Attribute_Reference
6210 and then Is_Entity_Attribute_Name
(Attribute_Name
(N
)));
6213 -----------------------------------
6214 -- Is_Package_Or_Generic_Package --
6215 -----------------------------------
6217 function Is_Package_Or_Generic_Package
(Id
: E
) return B
is
6220 Ekind
(Id
) = E_Package
6222 Ekind
(Id
) = E_Generic_Package
;
6223 end Is_Package_Or_Generic_Package
;
6229 function Is_Prival
(Id
: E
) return B
is
6231 return (Ekind_In
(Id
, E_Constant
, E_Variable
)
6232 and then Present
(Prival_Link
(Id
)));
6235 ----------------------------
6236 -- Is_Protected_Component --
6237 ----------------------------
6239 function Is_Protected_Component
(Id
: E
) return B
is
6241 return Ekind
(Id
) = E_Component
6242 and then Is_Protected_Type
(Scope
(Id
));
6243 end Is_Protected_Component
;
6245 ----------------------------
6246 -- Is_Protected_Interface --
6247 ----------------------------
6249 function Is_Protected_Interface
(Id
: E
) return B
is
6250 Typ
: constant Entity_Id
:= Base_Type
(Id
);
6252 if not Is_Interface
(Typ
) then
6254 elsif Is_Class_Wide_Type
(Typ
) then
6255 return Is_Protected_Interface
(Etype
(Typ
));
6257 return Protected_Present
(Type_Definition
(Parent
(Typ
)));
6259 end Is_Protected_Interface
;
6261 ------------------------------
6262 -- Is_Protected_Record_Type --
6263 ------------------------------
6265 function Is_Protected_Record_Type
(Id
: E
) return B
is
6268 Is_Concurrent_Record_Type
(Id
)
6269 and then Is_Protected_Type
(Corresponding_Concurrent_Type
(Id
));
6270 end Is_Protected_Record_Type
;
6272 --------------------------------
6273 -- Is_Standard_Character_Type --
6274 --------------------------------
6276 function Is_Standard_Character_Type
(Id
: E
) return B
is
6278 if Is_Type
(Id
) then
6280 R
: constant Entity_Id
:= Root_Type
(Id
);
6283 R
= Standard_Character
6285 R
= Standard_Wide_Character
6287 R
= Standard_Wide_Wide_Character
;
6293 end Is_Standard_Character_Type
;
6295 --------------------
6296 -- Is_String_Type --
6297 --------------------
6299 function Is_String_Type
(Id
: E
) return B
is
6301 return Ekind
(Id
) in String_Kind
6302 or else (Is_Array_Type
(Id
)
6303 and then Id
/= Any_Composite
6304 and then Number_Dimensions
(Id
) = 1
6305 and then Is_Character_Type
(Component_Type
(Id
)));
6308 -------------------------------
6309 -- Is_Synchronized_Interface --
6310 -------------------------------
6312 function Is_Synchronized_Interface
(Id
: E
) return B
is
6313 Typ
: constant Entity_Id
:= Base_Type
(Id
);
6316 if not Is_Interface
(Typ
) then
6319 elsif Is_Class_Wide_Type
(Typ
) then
6320 return Is_Synchronized_Interface
(Etype
(Typ
));
6323 return Protected_Present
(Type_Definition
(Parent
(Typ
)))
6324 or else Synchronized_Present
(Type_Definition
(Parent
(Typ
)))
6325 or else Task_Present
(Type_Definition
(Parent
(Typ
)));
6327 end Is_Synchronized_Interface
;
6329 -----------------------
6330 -- Is_Task_Interface --
6331 -----------------------
6333 function Is_Task_Interface
(Id
: E
) return B
is
6334 Typ
: constant Entity_Id
:= Base_Type
(Id
);
6336 if not Is_Interface
(Typ
) then
6338 elsif Is_Class_Wide_Type
(Typ
) then
6339 return Is_Task_Interface
(Etype
(Typ
));
6341 return Task_Present
(Type_Definition
(Parent
(Typ
)));
6343 end Is_Task_Interface
;
6345 -------------------------
6346 -- Is_Task_Record_Type --
6347 -------------------------
6349 function Is_Task_Record_Type
(Id
: E
) return B
is
6352 Is_Concurrent_Record_Type
(Id
)
6353 and then Is_Task_Type
(Corresponding_Concurrent_Type
(Id
));
6354 end Is_Task_Record_Type
;
6356 ------------------------
6357 -- Is_Wrapper_Package --
6358 ------------------------
6360 function Is_Wrapper_Package
(Id
: E
) return B
is
6362 return (Ekind
(Id
) = E_Package
6363 and then Present
(Related_Instance
(Id
)));
6364 end Is_Wrapper_Package
;
6370 function Last_Formal
(Id
: E
) return E
is
6375 (Is_Overloadable
(Id
)
6376 or else Ekind_In
(Id
, E_Entry_Family
,
6378 E_Subprogram_Type
));
6380 if Ekind
(Id
) = E_Enumeration_Literal
then
6384 Formal
:= First_Formal
(Id
);
6386 if Present
(Formal
) then
6387 while Present
(Next_Formal
(Formal
)) loop
6388 Formal
:= Next_Formal
(Formal
);
6396 --------------------
6397 -- Next_Component --
6398 --------------------
6400 function Next_Component
(Id
: E
) return E
is
6404 Comp_Id
:= Next_Entity
(Id
);
6405 while Present
(Comp_Id
) loop
6406 exit when Ekind
(Comp_Id
) = E_Component
;
6407 Comp_Id
:= Next_Entity
(Comp_Id
);
6413 ------------------------------------
6414 -- Next_Component_Or_Discriminant --
6415 ------------------------------------
6417 function Next_Component_Or_Discriminant
(Id
: E
) return E
is
6421 Comp_Id
:= Next_Entity
(Id
);
6422 while Present
(Comp_Id
) loop
6423 exit when Ekind_In
(Comp_Id
, E_Component
, E_Discriminant
);
6424 Comp_Id
:= Next_Entity
(Comp_Id
);
6428 end Next_Component_Or_Discriminant
;
6430 -----------------------
6431 -- Next_Discriminant --
6432 -----------------------
6434 -- This function actually implements both Next_Discriminant and
6435 -- Next_Stored_Discriminant by making sure that the Discriminant
6436 -- returned is of the same variety as Id.
6438 function Next_Discriminant
(Id
: E
) return E
is
6440 -- Derived Tagged types with private extensions look like this...
6442 -- E_Discriminant d1
6443 -- E_Discriminant d2
6445 -- E_Discriminant d1
6446 -- E_Discriminant d2
6449 -- so it is critical not to go past the leading discriminants
6454 pragma Assert
(Ekind
(Id
) = E_Discriminant
);
6457 D
:= Next_Entity
(D
);
6459 or else (Ekind
(D
) /= E_Discriminant
6460 and then not Is_Itype
(D
))
6465 exit when Ekind
(D
) = E_Discriminant
6466 and then (Is_Completely_Hidden
(D
) = Is_Completely_Hidden
(Id
));
6470 end Next_Discriminant
;
6476 function Next_Formal
(Id
: E
) return E
is
6480 -- Follow the chain of declared entities as long as the kind of the
6481 -- entity corresponds to a formal parameter. Skip internal entities
6482 -- that may have been created for implicit subtypes, in the process
6483 -- of analyzing default expressions.
6488 P
:= Next_Entity
(P
);
6490 if No
(P
) or else Is_Formal
(P
) then
6492 elsif not Is_Internal
(P
) then
6498 -----------------------------
6499 -- Next_Formal_With_Extras --
6500 -----------------------------
6502 function Next_Formal_With_Extras
(Id
: E
) return E
is
6504 if Present
(Extra_Formal
(Id
)) then
6505 return Extra_Formal
(Id
);
6507 return Next_Formal
(Id
);
6509 end Next_Formal_With_Extras
;
6515 function Next_Index
(Id
: Node_Id
) return Node_Id
is
6524 function Next_Literal
(Id
: E
) return E
is
6526 pragma Assert
(Nkind
(Id
) in N_Entity
);
6530 ------------------------------
6531 -- Next_Stored_Discriminant --
6532 ------------------------------
6534 function Next_Stored_Discriminant
(Id
: E
) return E
is
6536 -- See comment in Next_Discriminant
6538 return Next_Discriminant
(Id
);
6539 end Next_Stored_Discriminant
;
6541 -----------------------
6542 -- Number_Dimensions --
6543 -----------------------
6545 function Number_Dimensions
(Id
: E
) return Pos
is
6550 if Ekind
(Id
) in String_Kind
then
6555 T
:= First_Index
(Id
);
6556 while Present
(T
) loop
6563 end Number_Dimensions
;
6565 --------------------
6566 -- Number_Entries --
6567 --------------------
6569 function Number_Entries
(Id
: E
) return Nat
is
6574 pragma Assert
(Is_Concurrent_Type
(Id
));
6577 Ent
:= First_Entity
(Id
);
6578 while Present
(Ent
) loop
6579 if Is_Entry
(Ent
) then
6583 Ent
:= Next_Entity
(Ent
);
6589 --------------------
6590 -- Number_Formals --
6591 --------------------
6593 function Number_Formals
(Id
: E
) return Pos
is
6599 Formal
:= First_Formal
(Id
);
6600 while Present
(Formal
) loop
6602 Formal
:= Next_Formal
(Formal
);
6608 --------------------
6609 -- Parameter_Mode --
6610 --------------------
6612 function Parameter_Mode
(Id
: E
) return Formal_Kind
is
6617 --------------------------
6618 -- Primitive_Operations --
6619 --------------------------
6621 function Primitive_Operations
(Id
: E
) return L
is
6623 if Is_Concurrent_Type
(Id
) then
6624 if Present
(Corresponding_Record_Type
(Id
)) then
6625 return Direct_Primitive_Operations
6626 (Corresponding_Record_Type
(Id
));
6631 return Direct_Primitive_Operations
(Id
);
6633 end Primitive_Operations
;
6635 ---------------------
6636 -- Record_Rep_Item --
6637 ---------------------
6639 procedure Record_Rep_Item
(E
: Entity_Id
; N
: Node_Id
) is
6641 Set_Next_Rep_Item
(N
, First_Rep_Item
(E
));
6642 Set_First_Rep_Item
(E
, N
);
6643 end Record_Rep_Item
;
6649 function Root_Type
(Id
: E
) return E
is
6653 pragma Assert
(Nkind
(Id
) in N_Entity
);
6655 T
:= Base_Type
(Id
);
6657 if Ekind
(T
) = E_Class_Wide_Type
then
6660 elsif Ekind
(T
) = E_Class_Wide_Subtype
then
6661 return Etype
(Base_Type
(T
));
6663 -- ??? T comes from Base_Type, how can it be a subtype?
6664 -- Also Base_Type is supposed to be idempotent, so either way
6665 -- this is equivalent to "return Etype (T)" and should be merged
6666 -- with the E_Class_Wide_Type case.
6677 -- Following test catches some error cases resulting from
6680 elsif No
(Etyp
) then
6683 elsif Is_Private_Type
(T
) and then Etyp
= Full_View
(T
) then
6686 elsif Is_Private_Type
(Etyp
) and then Full_View
(Etyp
) = T
then
6692 -- Return if there is a circularity in the inheritance chain. This
6693 -- happens in some error situations and we do not want to get
6694 -- stuck in this loop.
6696 if T
= Base_Type
(Id
) then
6707 function Scope_Depth
(Id
: E
) return Uint
is
6712 while Is_Record_Type
(Scop
) loop
6713 Scop
:= Scope
(Scop
);
6716 return Scope_Depth_Value
(Scop
);
6719 ---------------------
6720 -- Scope_Depth_Set --
6721 ---------------------
6723 function Scope_Depth_Set
(Id
: E
) return B
is
6725 return not Is_Record_Type
(Id
)
6726 and then Field22
(Id
) /= Union_Id
(Empty
);
6727 end Scope_Depth_Set
;
6729 -----------------------------
6730 -- Set_Component_Alignment --
6731 -----------------------------
6733 -- Component Alignment is encoded using two flags, Flag128/129 as
6734 -- follows. Note that both flags False = Align_Default, so that the
6735 -- default initialization of flags to False initializes component
6736 -- alignment to the default value as required.
6738 -- Flag128 Flag129 Value
6739 -- ------- ------- -----
6740 -- False False Calign_Default
6741 -- False True Calign_Component_Size
6742 -- True False Calign_Component_Size_4
6743 -- True True Calign_Storage_Unit
6745 procedure Set_Component_Alignment
(Id
: E
; V
: C
) is
6747 pragma Assert
((Is_Array_Type
(Id
) or else Is_Record_Type
(Id
))
6748 and then Id
= Base_Type
(Id
));
6751 when Calign_Default
=>
6752 Set_Flag128
(Id
, False);
6753 Set_Flag129
(Id
, False);
6755 when Calign_Component_Size
=>
6756 Set_Flag128
(Id
, False);
6757 Set_Flag129
(Id
, True);
6759 when Calign_Component_Size_4
=>
6760 Set_Flag128
(Id
, True);
6761 Set_Flag129
(Id
, False);
6763 when Calign_Storage_Unit
=>
6764 Set_Flag128
(Id
, True);
6765 Set_Flag129
(Id
, True);
6767 end Set_Component_Alignment
;
6773 function Size_Clause
(Id
: E
) return N
is
6775 return Rep_Clause
(Id
, Name_Size
);
6778 ------------------------
6779 -- Stream_Size_Clause --
6780 ------------------------
6782 function Stream_Size_Clause
(Id
: E
) return N
is
6784 return Rep_Clause
(Id
, Name_Stream_Size
);
6785 end Stream_Size_Clause
;
6791 function Subtype_Kind
(K
: Entity_Kind
) return Entity_Kind
is
6797 Kind
:= E_Access_Subtype
;
6801 Kind
:= E_Array_Subtype
;
6803 when E_Class_Wide_Type |
6804 E_Class_Wide_Subtype
=>
6805 Kind
:= E_Class_Wide_Subtype
;
6807 when E_Decimal_Fixed_Point_Type |
6808 E_Decimal_Fixed_Point_Subtype
=>
6809 Kind
:= E_Decimal_Fixed_Point_Subtype
;
6811 when E_Ordinary_Fixed_Point_Type |
6812 E_Ordinary_Fixed_Point_Subtype
=>
6813 Kind
:= E_Ordinary_Fixed_Point_Subtype
;
6815 when E_Private_Type |
6816 E_Private_Subtype
=>
6817 Kind
:= E_Private_Subtype
;
6819 when E_Limited_Private_Type |
6820 E_Limited_Private_Subtype
=>
6821 Kind
:= E_Limited_Private_Subtype
;
6823 when E_Record_Type_With_Private |
6824 E_Record_Subtype_With_Private
=>
6825 Kind
:= E_Record_Subtype_With_Private
;
6827 when E_Record_Type |
6829 Kind
:= E_Record_Subtype
;
6831 when E_String_Type |
6833 Kind
:= E_String_Subtype
;
6835 when Enumeration_Kind
=>
6836 Kind
:= E_Enumeration_Subtype
;
6839 Kind
:= E_Floating_Point_Subtype
;
6841 when Signed_Integer_Kind
=>
6842 Kind
:= E_Signed_Integer_Subtype
;
6844 when Modular_Integer_Kind
=>
6845 Kind
:= E_Modular_Integer_Subtype
;
6847 when Protected_Kind
=>
6848 Kind
:= E_Protected_Subtype
;
6851 Kind
:= E_Task_Subtype
;
6855 raise Program_Error
;
6861 ---------------------
6862 -- Type_High_Bound --
6863 ---------------------
6865 function Type_High_Bound
(Id
: E
) return Node_Id
is
6866 Rng
: constant Node_Id
:= Scalar_Range
(Id
);
6868 if Nkind
(Rng
) = N_Subtype_Indication
then
6869 return High_Bound
(Range_Expression
(Constraint
(Rng
)));
6871 return High_Bound
(Rng
);
6873 end Type_High_Bound
;
6875 --------------------
6876 -- Type_Low_Bound --
6877 --------------------
6879 function Type_Low_Bound
(Id
: E
) return Node_Id
is
6880 Rng
: constant Node_Id
:= Scalar_Range
(Id
);
6882 if Nkind
(Rng
) = N_Subtype_Indication
then
6883 return Low_Bound
(Range_Expression
(Constraint
(Rng
)));
6885 return Low_Bound
(Rng
);
6889 ---------------------
6890 -- Underlying_Type --
6891 ---------------------
6893 function Underlying_Type
(Id
: E
) return E
is
6895 -- For record_with_private the underlying type is always the direct
6896 -- full view. Never try to take the full view of the parent it
6897 -- doesn't make sense.
6899 if Ekind
(Id
) = E_Record_Type_With_Private
then
6900 return Full_View
(Id
);
6902 elsif Ekind
(Id
) in Incomplete_Or_Private_Kind
then
6904 -- If we have an incomplete or private type with a full view,
6905 -- then we return the Underlying_Type of this full view
6907 if Present
(Full_View
(Id
)) then
6908 if Id
= Full_View
(Id
) then
6910 -- Previous error in declaration
6915 return Underlying_Type
(Full_View
(Id
));
6918 -- If we have an incomplete entity that comes from the limited
6919 -- view then we return the Underlying_Type of its non-limited
6922 elsif From_With_Type
(Id
)
6923 and then Present
(Non_Limited_View
(Id
))
6925 return Underlying_Type
(Non_Limited_View
(Id
));
6927 -- Otherwise check for the case where we have a derived type or
6928 -- subtype, and if so get the Underlying_Type of the parent type.
6930 elsif Etype
(Id
) /= Id
then
6931 return Underlying_Type
(Etype
(Id
));
6933 -- Otherwise we have an incomplete or private type that has
6934 -- no full view, which means that we have not encountered the
6935 -- completion, so return Empty to indicate the underlying type
6936 -- is not yet known.
6942 -- For non-incomplete, non-private types, return the type itself
6943 -- Also for entities that are not types at all return the entity
6949 end Underlying_Type
;
6951 ------------------------
6952 -- Write_Entity_Flags --
6953 ------------------------
6955 procedure Write_Entity_Flags
(Id
: Entity_Id
; Prefix
: String) is
6957 procedure W
(Flag_Name
: String; Flag
: Boolean);
6958 -- Write out given flag if it is set
6964 procedure W
(Flag_Name
: String; Flag
: Boolean) is
6968 Write_Str
(Flag_Name
);
6969 Write_Str
(" = True");
6974 -- Start of processing for Write_Entity_Flags
6977 if (Is_Array_Type
(Id
) or else Is_Record_Type
(Id
))
6978 and then Id
= Base_Type
(Id
)
6981 Write_Str
("Component_Alignment = ");
6983 case Component_Alignment
(Id
) is
6984 when Calign_Default
=>
6985 Write_Str
("Calign_Default");
6987 when Calign_Component_Size
=>
6988 Write_Str
("Calign_Component_Size");
6990 when Calign_Component_Size_4
=>
6991 Write_Str
("Calign_Component_Size_4");
6993 when Calign_Storage_Unit
=>
6994 Write_Str
("Calign_Storage_Unit");
7000 W
("Address_Taken", Flag104
(Id
));
7001 W
("Body_Needed_For_SAL", Flag40
(Id
));
7002 W
("C_Pass_By_Copy", Flag125
(Id
));
7003 W
("Can_Never_Be_Null", Flag38
(Id
));
7004 W
("Checks_May_Be_Suppressed", Flag31
(Id
));
7005 W
("Debug_Info_Off", Flag166
(Id
));
7006 W
("Default_Expressions_Processed", Flag108
(Id
));
7007 W
("Delay_Cleanups", Flag114
(Id
));
7008 W
("Delay_Subprogram_Descriptors", Flag50
(Id
));
7009 W
("Depends_On_Private", Flag14
(Id
));
7010 W
("Discard_Names", Flag88
(Id
));
7011 W
("Elaboration_Entity_Required", Flag174
(Id
));
7012 W
("Elaborate_Body_Desirable", Flag210
(Id
));
7013 W
("Entry_Accepted", Flag152
(Id
));
7014 W
("Can_Use_Internal_Rep", Flag229
(Id
));
7015 W
("Finalize_Storage_Only", Flag158
(Id
));
7016 W
("From_With_Type", Flag159
(Id
));
7017 W
("Has_Aliased_Components", Flag135
(Id
));
7018 W
("Has_Alignment_Clause", Flag46
(Id
));
7019 W
("Has_All_Calls_Remote", Flag79
(Id
));
7020 W
("Has_Anon_Block_Suffix", Flag201
(Id
));
7021 W
("Has_Atomic_Components", Flag86
(Id
));
7022 W
("Has_Biased_Representation", Flag139
(Id
));
7023 W
("Has_Completion", Flag26
(Id
));
7024 W
("Has_Completion_In_Body", Flag71
(Id
));
7025 W
("Has_Complex_Representation", Flag140
(Id
));
7026 W
("Has_Component_Size_Clause", Flag68
(Id
));
7027 W
("Has_Contiguous_Rep", Flag181
(Id
));
7028 W
("Has_Controlled_Component", Flag43
(Id
));
7029 W
("Has_Controlling_Result", Flag98
(Id
));
7030 W
("Has_Convention_Pragma", Flag119
(Id
));
7031 W
("Has_Delayed_Aspects", Flag200
(Id
));
7032 W
("Has_Delayed_Freeze", Flag18
(Id
));
7033 W
("Has_Discriminants", Flag5
(Id
));
7034 W
("Has_Enumeration_Rep_Clause", Flag66
(Id
));
7035 W
("Has_Exit", Flag47
(Id
));
7036 W
("Has_External_Tag_Rep_Clause", Flag110
(Id
));
7037 W
("Has_Forward_Instantiation", Flag175
(Id
));
7038 W
("Has_Fully_Qualified_Name", Flag173
(Id
));
7039 W
("Has_Gigi_Rep_Item", Flag82
(Id
));
7040 W
("Has_Homonym", Flag56
(Id
));
7041 W
("Has_Inheritable_Invariants", Flag248
(Id
));
7042 W
("Has_Initial_Value", Flag219
(Id
));
7043 W
("Has_Invariants", Flag232
(Id
));
7044 W
("Has_Machine_Radix_Clause", Flag83
(Id
));
7045 W
("Has_Master_Entity", Flag21
(Id
));
7046 W
("Has_Missing_Return", Flag142
(Id
));
7047 W
("Has_Nested_Block_With_Handler", Flag101
(Id
));
7048 W
("Has_Non_Standard_Rep", Flag75
(Id
));
7049 W
("Has_Object_Size_Clause", Flag172
(Id
));
7050 W
("Has_Per_Object_Constraint", Flag154
(Id
));
7051 W
("Has_Persistent_BSS", Flag188
(Id
));
7052 W
("Has_Postconditions", Flag240
(Id
));
7053 W
("Has_Pragma_Controlled", Flag27
(Id
));
7054 W
("Has_Pragma_Elaborate_Body", Flag150
(Id
));
7055 W
("Has_Pragma_Inline", Flag157
(Id
));
7056 W
("Has_Pragma_Inline_Always", Flag230
(Id
));
7057 W
("Has_Pragma_Ordered", Flag198
(Id
));
7058 W
("Has_Pragma_Pack", Flag121
(Id
));
7059 W
("Has_Pragma_Preelab_Init", Flag221
(Id
));
7060 W
("Has_Pragma_Pure", Flag203
(Id
));
7061 W
("Has_Pragma_Pure_Function", Flag179
(Id
));
7062 W
("Has_Pragma_Thread_Local_Storage", Flag169
(Id
));
7063 W
("Has_Pragma_Unmodified", Flag233
(Id
));
7064 W
("Has_Pragma_Unreferenced", Flag180
(Id
));
7065 W
("Has_Pragma_Unreferenced_Objects", Flag212
(Id
));
7066 W
("Has_Primitive_Operations", Flag120
(Id
));
7067 W
("Has_Private_Declaration", Flag155
(Id
));
7068 W
("Has_Qualified_Name", Flag161
(Id
));
7069 W
("Has_RACW", Flag214
(Id
));
7070 W
("Has_Record_Rep_Clause", Flag65
(Id
));
7071 W
("Has_Recursive_Call", Flag143
(Id
));
7072 W
("Has_Size_Clause", Flag29
(Id
));
7073 W
("Has_Small_Clause", Flag67
(Id
));
7074 W
("Has_Specified_Layout", Flag100
(Id
));
7075 W
("Has_Specified_Stream_Input", Flag190
(Id
));
7076 W
("Has_Specified_Stream_Output", Flag191
(Id
));
7077 W
("Has_Specified_Stream_Read", Flag192
(Id
));
7078 W
("Has_Specified_Stream_Write", Flag193
(Id
));
7079 W
("Has_Static_Discriminants", Flag211
(Id
));
7080 W
("Has_Storage_Size_Clause", Flag23
(Id
));
7081 W
("Has_Stream_Size_Clause", Flag184
(Id
));
7082 W
("Has_Subprogram_Descriptor", Flag93
(Id
));
7083 W
("Has_Task", Flag30
(Id
));
7084 W
("Has_Thunks", Flag228
(Id
));
7085 W
("Has_Unchecked_Union", Flag123
(Id
));
7086 W
("Has_Unknown_Discriminants", Flag72
(Id
));
7087 W
("Has_Up_Level_Access", Flag215
(Id
));
7088 W
("Has_Volatile_Components", Flag87
(Id
));
7089 W
("Has_Xref_Entry", Flag182
(Id
));
7090 W
("In_Package_Body", Flag48
(Id
));
7091 W
("In_Private_Part", Flag45
(Id
));
7092 W
("In_Use", Flag8
(Id
));
7093 W
("Is_AST_Entry", Flag132
(Id
));
7094 W
("Is_Abstract_Subprogram", Flag19
(Id
));
7095 W
("Is_Abstract_Type", Flag146
(Id
));
7096 W
("Is_Local_Anonymous_Access", Flag194
(Id
));
7097 W
("Is_Access_Constant", Flag69
(Id
));
7098 W
("Is_Ada_2005_Only", Flag185
(Id
));
7099 W
("Is_Ada_2012_Only", Flag199
(Id
));
7100 W
("Is_Aliased", Flag15
(Id
));
7101 W
("Is_Asynchronous", Flag81
(Id
));
7102 W
("Is_Atomic", Flag85
(Id
));
7103 W
("Is_Bit_Packed_Array", Flag122
(Id
));
7104 W
("Is_CPP_Class", Flag74
(Id
));
7105 W
("Is_Called", Flag102
(Id
));
7106 W
("Is_Character_Type", Flag63
(Id
));
7107 W
("Is_Child_Unit", Flag73
(Id
));
7108 W
("Is_Class_Wide_Equivalent_Type", Flag35
(Id
));
7109 W
("Is_Compilation_Unit", Flag149
(Id
));
7110 W
("Is_Completely_Hidden", Flag103
(Id
));
7111 W
("Is_Concurrent_Record_Type", Flag20
(Id
));
7112 W
("Is_Constr_Subt_For_UN_Aliased", Flag141
(Id
));
7113 W
("Is_Constr_Subt_For_U_Nominal", Flag80
(Id
));
7114 W
("Is_Constrained", Flag12
(Id
));
7115 W
("Is_Constructor", Flag76
(Id
));
7116 W
("Is_Controlled", Flag42
(Id
));
7117 W
("Is_Controlling_Formal", Flag97
(Id
));
7118 W
("Is_Descendent_Of_Address", Flag223
(Id
));
7119 W
("Is_Discrim_SO_Function", Flag176
(Id
));
7120 W
("Is_Dispatch_Table_Entity", Flag234
(Id
));
7121 W
("Is_Dispatching_Operation", Flag6
(Id
));
7122 W
("Is_Eliminated", Flag124
(Id
));
7123 W
("Is_Entry_Formal", Flag52
(Id
));
7124 W
("Is_Exported", Flag99
(Id
));
7125 W
("Is_First_Subtype", Flag70
(Id
));
7126 W
("Is_For_Access_Subtype", Flag118
(Id
));
7127 W
("Is_Formal_Subprogram", Flag111
(Id
));
7128 W
("Is_Frozen", Flag4
(Id
));
7129 W
("Is_Generic_Actual_Type", Flag94
(Id
));
7130 W
("Is_Generic_Instance", Flag130
(Id
));
7131 W
("Is_Generic_Type", Flag13
(Id
));
7132 W
("Is_Hidden", Flag57
(Id
));
7133 W
("Is_Hidden_Open_Scope", Flag171
(Id
));
7134 W
("Is_Immediately_Visible", Flag7
(Id
));
7135 W
("Is_Imported", Flag24
(Id
));
7136 W
("Is_Inlined", Flag11
(Id
));
7137 W
("Is_Instantiated", Flag126
(Id
));
7138 W
("Is_Interface", Flag186
(Id
));
7139 W
("Is_Internal", Flag17
(Id
));
7140 W
("Is_Interrupt_Handler", Flag89
(Id
));
7141 W
("Is_Intrinsic_Subprogram", Flag64
(Id
));
7142 W
("Is_Itype", Flag91
(Id
));
7143 W
("Is_Known_Non_Null", Flag37
(Id
));
7144 W
("Is_Known_Null", Flag204
(Id
));
7145 W
("Is_Known_Valid", Flag170
(Id
));
7146 W
("Is_Limited_Composite", Flag106
(Id
));
7147 W
("Is_Limited_Interface", Flag197
(Id
));
7148 W
("Is_Limited_Record", Flag25
(Id
));
7149 W
("Is_Machine_Code_Subprogram", Flag137
(Id
));
7150 W
("Is_Non_Static_Subtype", Flag109
(Id
));
7151 W
("Is_Null_Init_Proc", Flag178
(Id
));
7152 W
("Is_Obsolescent", Flag153
(Id
));
7153 W
("Is_Only_Out_Parameter", Flag226
(Id
));
7154 W
("Is_Optional_Parameter", Flag134
(Id
));
7155 W
("Is_Overriding_Operation", Flag39
(Id
));
7156 W
("Is_Package_Body_Entity", Flag160
(Id
));
7157 W
("Is_Packed", Flag51
(Id
));
7158 W
("Is_Packed_Array_Type", Flag138
(Id
));
7159 W
("Is_Potentially_Use_Visible", Flag9
(Id
));
7160 W
("Is_Preelaborated", Flag59
(Id
));
7161 W
("Is_Primitive", Flag218
(Id
));
7162 W
("Is_Primitive_Wrapper", Flag195
(Id
));
7163 W
("Is_Private_Composite", Flag107
(Id
));
7164 W
("Is_Private_Descendant", Flag53
(Id
));
7165 W
("Is_Private_Primitive", Flag245
(Id
));
7166 W
("Is_Public", Flag10
(Id
));
7167 W
("Is_Pure", Flag44
(Id
));
7168 W
("Is_Pure_Unit_Access_Type", Flag189
(Id
));
7169 W
("Is_RACW_Stub_Type", Flag244
(Id
));
7170 W
("Is_Raised", Flag224
(Id
));
7171 W
("Is_Remote_Call_Interface", Flag62
(Id
));
7172 W
("Is_Remote_Types", Flag61
(Id
));
7173 W
("Is_Renaming_Of_Object", Flag112
(Id
));
7174 W
("Is_Return_Object", Flag209
(Id
));
7175 W
("Is_Shared_Passive", Flag60
(Id
));
7176 W
("Is_Statically_Allocated", Flag28
(Id
));
7177 W
("Is_Tag", Flag78
(Id
));
7178 W
("Is_Tagged_Type", Flag55
(Id
));
7179 W
("Is_Thunk", Flag225
(Id
));
7180 W
("Is_Trivial_Subprogram", Flag235
(Id
));
7181 W
("Is_True_Constant", Flag163
(Id
));
7182 W
("Is_Unchecked_Union", Flag117
(Id
));
7183 W
("Is_Underlying_Record_View", Flag246
(Id
));
7184 W
("Is_Unsigned_Type", Flag144
(Id
));
7185 W
("Is_VMS_Exception", Flag133
(Id
));
7186 W
("Is_Valued_Procedure", Flag127
(Id
));
7187 W
("Is_Visible_Child_Unit", Flag116
(Id
));
7188 W
("Is_Visible_Formal", Flag206
(Id
));
7189 W
("Is_Volatile", Flag16
(Id
));
7190 W
("Itype_Printed", Flag202
(Id
));
7191 W
("Kill_Elaboration_Checks", Flag32
(Id
));
7192 W
("Kill_Range_Checks", Flag33
(Id
));
7193 W
("Kill_Tag_Checks", Flag34
(Id
));
7194 W
("Known_To_Have_Preelab_Init", Flag207
(Id
));
7195 W
("Low_Bound_Tested", Flag205
(Id
));
7196 W
("Machine_Radix_10", Flag84
(Id
));
7197 W
("Materialize_Entity", Flag168
(Id
));
7198 W
("Must_Be_On_Byte_Boundary", Flag183
(Id
));
7199 W
("Must_Have_Preelab_Init", Flag208
(Id
));
7200 W
("Needs_Debug_Info", Flag147
(Id
));
7201 W
("Needs_No_Actuals", Flag22
(Id
));
7202 W
("Never_Set_In_Source", Flag115
(Id
));
7203 W
("No_Pool_Assigned", Flag131
(Id
));
7204 W
("No_Return", Flag113
(Id
));
7205 W
("No_Strict_Aliasing", Flag136
(Id
));
7206 W
("Non_Binary_Modulus", Flag58
(Id
));
7207 W
("Nonzero_Is_True", Flag162
(Id
));
7208 W
("OK_To_Reference", Flag249
(Id
));
7209 W
("OK_To_Rename", Flag247
(Id
));
7210 W
("OK_To_Reorder_Components", Flag239
(Id
));
7211 W
("Optimize_Alignment_Space", Flag241
(Id
));
7212 W
("Optimize_Alignment_Time", Flag242
(Id
));
7213 W
("Overlays_Constant", Flag243
(Id
));
7214 W
("Reachable", Flag49
(Id
));
7215 W
("Referenced", Flag156
(Id
));
7216 W
("Referenced_As_LHS", Flag36
(Id
));
7217 W
("Referenced_As_Out_Parameter", Flag227
(Id
));
7218 W
("Renamed_In_Spec", Flag231
(Id
));
7219 W
("Requires_Overriding", Flag213
(Id
));
7220 W
("Return_Present", Flag54
(Id
));
7221 W
("Returns_By_Ref", Flag90
(Id
));
7222 W
("Reverse_Bit_Order", Flag164
(Id
));
7223 W
("Sec_Stack_Needed_For_Return", Flag167
(Id
));
7224 W
("Size_Depends_On_Discriminant", Flag177
(Id
));
7225 W
("Size_Known_At_Compile_Time", Flag92
(Id
));
7226 W
("Static_Elaboration_Desired", Flag77
(Id
));
7227 W
("Strict_Alignment", Flag145
(Id
));
7228 W
("Suppress_Elaboration_Warnings", Flag148
(Id
));
7229 W
("Suppress_Init_Proc", Flag105
(Id
));
7230 W
("Suppress_Style_Checks", Flag165
(Id
));
7231 W
("Suppress_Value_Tracking_On_Call", Flag217
(Id
));
7232 W
("Treat_As_Volatile", Flag41
(Id
));
7233 W
("Universal_Aliasing", Flag216
(Id
));
7234 W
("Used_As_Generic_Actual", Flag222
(Id
));
7235 W
("Uses_Sec_Stack", Flag95
(Id
));
7236 W
("Vax_Float", Flag151
(Id
));
7237 W
("Warnings_Off", Flag96
(Id
));
7238 W
("Warnings_Off_Used", Flag236
(Id
));
7239 W
("Warnings_Off_Used_Unmodified", Flag237
(Id
));
7240 W
("Warnings_Off_Used_Unreferenced", Flag238
(Id
));
7241 W
("Was_Hidden", Flag196
(Id
));
7242 end Write_Entity_Flags
;
7244 -----------------------
7245 -- Write_Entity_Info --
7246 -----------------------
7248 procedure Write_Entity_Info
(Id
: Entity_Id
; Prefix
: String) is
7250 procedure Write_Attribute
(Which
: String; Nam
: E
);
7251 -- Write attribute value with given string name
7253 procedure Write_Kind
(Id
: Entity_Id
);
7254 -- Write Ekind field of entity
7256 ---------------------
7257 -- Write_Attribute --
7258 ---------------------
7260 procedure Write_Attribute
(Which
: String; Nam
: E
) is
7264 Write_Int
(Int
(Nam
));
7266 Write_Name
(Chars
(Nam
));
7268 end Write_Attribute
;
7274 procedure Write_Kind
(Id
: Entity_Id
) is
7275 K
: constant String := Entity_Kind
'Image (Ekind
(Id
));
7279 Write_Str
(" Kind ");
7281 if Is_Type
(Id
) and then Is_Tagged_Type
(Id
) then
7282 Write_Str
("TAGGED ");
7285 Write_Str
(K
(3 .. K
'Length));
7288 if Is_Type
(Id
) and then Depends_On_Private
(Id
) then
7289 Write_Str
("Depends_On_Private ");
7293 -- Start of processing for Write_Entity_Info
7297 Write_Attribute
("Name ", Id
);
7298 Write_Int
(Int
(Id
));
7302 Write_Attribute
(" Type ", Etype
(Id
));
7304 Write_Attribute
(" Scope ", Scope
(Id
));
7309 when Discrete_Kind
=>
7310 Write_Str
("Bounds: Id = ");
7312 if Present
(Scalar_Range
(Id
)) then
7313 Write_Int
(Int
(Type_Low_Bound
(Id
)));
7314 Write_Str
(" .. Id = ");
7315 Write_Int
(Int
(Type_High_Bound
(Id
)));
7317 Write_Str
("Empty");
7328 (" Component Type ", Component_Type
(Id
));
7331 Write_Str
(" Indices ");
7333 Index
:= First_Index
(Id
);
7334 while Present
(Index
) loop
7335 Write_Attribute
(" ", Etype
(Index
));
7336 Index
:= Next_Index
(Index
);
7344 (" Directly Designated Type ",
7345 Directly_Designated_Type
(Id
));
7348 when Overloadable_Kind
=>
7349 if Present
(Homonym
(Id
)) then
7350 Write_Str
(" Homonym ");
7351 Write_Name
(Chars
(Homonym
(Id
)));
7353 Write_Int
(Int
(Homonym
(Id
)));
7360 if Ekind
(Scope
(Id
)) in Record_Kind
then
7362 " Original_Record_Component ",
7363 Original_Record_Component
(Id
));
7364 Write_Int
(Int
(Original_Record_Component
(Id
)));
7368 when others => null;
7370 end Write_Entity_Info
;
7372 -----------------------
7373 -- Write_Field6_Name --
7374 -----------------------
7376 procedure Write_Field6_Name
(Id
: Entity_Id
) is
7377 pragma Warnings
(Off
, Id
);
7379 Write_Str
("First_Rep_Item");
7380 end Write_Field6_Name
;
7382 -----------------------
7383 -- Write_Field7_Name --
7384 -----------------------
7386 procedure Write_Field7_Name
(Id
: Entity_Id
) is
7387 pragma Warnings
(Off
, Id
);
7389 Write_Str
("Freeze_Node");
7390 end Write_Field7_Name
;
7392 -----------------------
7393 -- Write_Field8_Name --
7394 -----------------------
7396 procedure Write_Field8_Name
(Id
: Entity_Id
) is
7401 Write_Str
("Normalized_First_Bit");
7405 E_Subprogram_Body
=>
7406 Write_Str
("Mechanism");
7409 Write_Str
("Associated_Node_For_Itype");
7412 Write_Str
("First_Exit_Statement");
7415 Write_Str
("Dependent_Instances");
7418 Write_Str
("Postcondition_Proc");
7420 when E_Return_Statement
=>
7421 Write_Str
("Return_Applies_To");
7424 Write_Str
("Hiding_Loop_Variable");
7427 Write_Str
("Field8??");
7429 end Write_Field8_Name
;
7431 -----------------------
7432 -- Write_Field9_Name --
7433 -----------------------
7435 procedure Write_Field9_Name
(Id
: Entity_Id
) is
7439 Write_Str
("Class_Wide_Type");
7442 E_Generic_Function |
7444 E_Generic_Procedure |
7447 Write_Str
("Renaming_Map");
7450 Write_Str
("Current_Value");
7453 Write_Str
("Field9??");
7455 end Write_Field9_Name
;
7457 ------------------------
7458 -- Write_Field10_Name --
7459 ------------------------
7461 procedure Write_Field10_Name
(Id
: Entity_Id
) is
7464 when Class_Wide_Kind |
7470 Write_Str
("Direct_Primitive_Operations");
7472 when E_In_Parameter |
7474 Write_Str
("Discriminal_Link");
7480 Write_Str
("Handler_Records");
7484 Write_Str
("Normalized_Position_Max");
7487 Write_Str
("Field10??");
7489 end Write_Field10_Name
;
7491 ------------------------
7492 -- Write_Field11_Name --
7493 ------------------------
7495 procedure Write_Field11_Name
(Id
: Entity_Id
) is
7499 Write_Str
("Entry_Component");
7503 Write_Str
("Component_Bit_Offset");
7506 Write_Str
("Full_View");
7508 when E_Enumeration_Literal
=>
7509 Write_Str
("Enumeration_Pos");
7512 Write_Str
("Block_Node");
7518 Write_Str
("Protected_Body_Subprogram");
7520 when E_Generic_Package
=>
7521 Write_Str
("Generic_Homonym");
7524 Write_Str
("Full_View");
7527 Write_Str
("Field11??");
7529 end Write_Field11_Name
;
7531 ------------------------
7532 -- Write_Field12_Name --
7533 ------------------------
7535 procedure Write_Field12_Name
(Id
: Entity_Id
) is
7539 Write_Str
("Barrier_Function");
7541 when E_Enumeration_Literal
=>
7542 Write_Str
("Enumeration_Rep");
7550 E_In_Out_Parameter |
7554 Write_Str
("Esize");
7558 Write_Str
("Next_Inlined_Subprogram");
7561 Write_Str
("Associated_Formal_Package");
7564 Write_Str
("Field12??");
7566 end Write_Field12_Name
;
7568 ------------------------
7569 -- Write_Field13_Name --
7570 ------------------------
7572 procedure Write_Field13_Name
(Id
: Entity_Id
) is
7576 Write_Str
("RM_Size");
7580 Write_Str
("Component_Clause");
7583 if not Comes_From_Source
(Id
)
7585 Chars
(Id
) = Name_Op_Ne
7587 Write_Str
("Corresponding_Equality");
7589 elsif Comes_From_Source
(Id
) then
7590 Write_Str
("Elaboration_Entity");
7593 Write_Str
("Field13??");
7598 Write_Str
("Extra_Accessibility");
7602 Generic_Unit_Kind
=>
7603 Write_Str
("Elaboration_Entity");
7606 Write_Str
("Field13??");
7608 end Write_Field13_Name
;
7610 -----------------------
7611 -- Write_Field14_Name --
7612 -----------------------
7614 procedure Write_Field14_Name
(Id
: Entity_Id
) is
7623 Write_Str
("Alignment");
7627 Write_Str
("Normalized_Position");
7631 Write_Str
("First_Optional_Parameter");
7634 E_Generic_Package
=>
7635 Write_Str
("Shadow_Entities");
7638 Write_Str
("Field14??");
7640 end Write_Field14_Name
;
7642 ------------------------
7643 -- Write_Field15_Name --
7644 ------------------------
7646 procedure Write_Field15_Name
(Id
: Entity_Id
) is
7651 Write_Str
("Storage_Size_Variable");
7654 Write_Str
("DT_Entry_Count");
7656 when Decimal_Fixed_Point_Kind
=>
7657 Write_Str
("Scale_Value");
7659 when E_Discriminant
=>
7660 Write_Str
("Discriminant_Number");
7663 Write_Str
("Extra_Formal");
7667 Write_Str
("DT_Position");
7670 Write_Str
("Entry_Parameters_Type");
7672 when Enumeration_Kind
=>
7673 Write_Str
("Lit_Indexes");
7677 Write_Str
("Related_Instance");
7679 when E_Protected_Type
=>
7680 Write_Str
("Entry_Bodies_Array");
7682 when E_String_Literal_Subtype
=>
7683 Write_Str
("String_Literal_Low_Bound");
7686 Write_Str
("Field15??");
7688 end Write_Field15_Name
;
7690 ------------------------
7691 -- Write_Field16_Name --
7692 ------------------------
7694 procedure Write_Field16_Name
(Id
: Entity_Id
) is
7698 Write_Str
("Entry_Formal");
7702 Write_Str
("DTC_Entity");
7707 Write_Str
("First_Private_Entity");
7709 when E_Record_Type |
7710 E_Record_Type_With_Private
=>
7711 Write_Str
("Access_Disp_Table");
7713 when E_String_Literal_Subtype
=>
7714 Write_Str
("String_Literal_Length");
7716 when Enumeration_Kind
=>
7717 Write_Str
("Lit_Strings");
7721 Write_Str
("Unset_Reference");
7723 when E_Record_Subtype |
7724 E_Class_Wide_Subtype
=>
7725 Write_Str
("Cloned_Subtype");
7728 Write_Str
("Field16??");
7730 end Write_Field16_Name
;
7732 ------------------------
7733 -- Write_Field17_Name --
7734 ------------------------
7736 procedure Write_Field17_Name
(Id
: Entity_Id
) is
7740 Write_Str
("Digits_Value");
7743 Write_Str
("Prival");
7745 when E_Discriminant
=>
7746 Write_Str
("Discriminal");
7755 E_Generic_Function |
7757 E_Generic_Procedure |
7765 E_Return_Statement |
7767 E_Subprogram_Type
=>
7768 Write_Str
("First_Entity");
7771 Write_Str
("First_Index");
7773 when Enumeration_Kind
=>
7774 Write_Str
("First_Literal");
7777 Write_Str
("Master_Id");
7779 when Modular_Integer_Kind
=>
7780 Write_Str
("Modulus");
7784 E_Generic_In_Out_Parameter |
7786 Write_Str
("Actual_Subtype");
7788 when E_Incomplete_Type
=>
7789 Write_Str
("Non_Limited_View");
7791 when E_Incomplete_Subtype
=>
7792 if From_With_Type
(Id
) then
7793 Write_Str
("Non_Limited_View");
7797 Write_Str
("Field17??");
7799 end Write_Field17_Name
;
7801 ------------------------
7802 -- Write_Field18_Name --
7803 ------------------------
7805 procedure Write_Field18_Name
(Id
: Entity_Id
) is
7808 when E_Enumeration_Literal |
7812 Write_Str
("Alias");
7814 when E_Record_Type
=>
7815 Write_Str
("Corresponding_Concurrent_Type");
7817 when E_Subprogram_Body
=>
7818 Write_Str
("Corresponding_Protected_Entry");
7820 when E_Entry_Index_Parameter
=>
7821 Write_Str
("Entry_Index_Constant");
7823 when E_Class_Wide_Subtype |
7824 E_Access_Protected_Subprogram_Type |
7825 E_Anonymous_Access_Protected_Subprogram_Type |
7826 E_Access_Subprogram_Type |
7828 Write_Str
("Equivalent_Type");
7830 when Fixed_Point_Kind
=>
7831 Write_Str
("Delta_Value");
7834 Write_Str
("Renamed_Object");
7838 E_Generic_Function |
7839 E_Generic_Procedure |
7840 E_Generic_Package
=>
7841 Write_Str
("Renamed_Entity");
7843 when Incomplete_Or_Private_Kind |
7845 Write_Str
("Private_Dependents");
7847 when Concurrent_Kind
=>
7848 Write_Str
("Corresponding_Record_Type");
7853 Write_Str
("Enclosing_Scope");
7856 Write_Str
("Field18??");
7858 end Write_Field18_Name
;
7860 -----------------------
7861 -- Write_Field19_Name --
7862 -----------------------
7864 procedure Write_Field19_Name
(Id
: Entity_Id
) is
7869 Write_Str
("Related_Array_Object");
7875 E_Return_Statement |
7877 Write_Str
("Finalization_Chain_Entity");
7879 when E_Constant | E_Variable
=>
7880 Write_Str
("Size_Check_Code");
7882 when E_Discriminant
=>
7883 Write_Str
("Corresponding_Discriminant");
7886 E_Generic_Package
=>
7887 Write_Str
("Body_Entity");
7889 when E_Package_Body |
7891 Write_Str
("Spec_Entity");
7893 when Private_Kind
=>
7894 Write_Str
("Underlying_Full_View");
7896 when E_Record_Type
=>
7897 Write_Str
("Parent_Subtype");
7900 Write_Str
("Field19??");
7902 end Write_Field19_Name
;
7904 -----------------------
7905 -- Write_Field20_Name --
7906 -----------------------
7908 procedure Write_Field20_Name
(Id
: Entity_Id
) is
7912 Write_Str
("Component_Type");
7914 when E_In_Parameter |
7915 E_Generic_In_Parameter
=>
7916 Write_Str
("Default_Value");
7919 Write_Str
("Directly_Designated_Type");
7922 Write_Str
("Discriminant_Checking_Func");
7926 Write_Str
("Prival_Link");
7928 when E_Discriminant
=>
7929 Write_Str
("Discriminant_Default_Value");
7938 E_Generic_Function |
7940 E_Generic_Procedure |
7948 E_Return_Statement |
7950 E_Subprogram_Type
=>
7951 Write_Str
("Last_Entity");
7954 Write_Str
("Scalar_Range");
7957 Write_Str
("Register_Exception_Call");
7960 Write_Str
("Field20??");
7962 end Write_Field20_Name
;
7964 -----------------------
7965 -- Write_Field21_Name --
7966 -----------------------
7968 procedure Write_Field21_Name
(Id
: Entity_Id
) is
7974 E_Generic_Function |
7976 E_Generic_Procedure |
7978 Write_Str
("Interface_Name");
7980 when Concurrent_Kind |
7981 Incomplete_Or_Private_Kind |
7985 Write_Str
("Discriminant_Constraint");
7988 Write_Str
("Accept_Address");
7990 when Fixed_Point_Kind
=>
7991 Write_Str
("Small_Value");
7993 when E_In_Parameter
=>
7994 Write_Str
("Default_Expr_Function");
7997 Modular_Integer_Kind
=>
7998 Write_Str
("Original_Array_Type");
8001 Write_Str
("Field21??");
8003 end Write_Field21_Name
;
8005 -----------------------
8006 -- Write_Field22_Name --
8007 -----------------------
8009 procedure Write_Field22_Name
(Id
: Entity_Id
) is
8013 Write_Str
("Associated_Storage_Pool");
8016 Write_Str
("Component_Size");
8020 Write_Str
("Original_Record_Component");
8022 when E_Enumeration_Literal
=>
8023 Write_Str
("Enumeration_Rep_Expr");
8026 Write_Str
("Exception_Code");
8029 Write_Str
("Protected_Formal");
8031 when E_Record_Type
=>
8032 Write_Str
("Corresponding_Remote_Type");
8042 E_Generic_Function |
8043 E_Generic_Procedure |
8046 E_Return_Statement |
8049 Write_Str
("Scope_Depth_Value");
8051 when E_Record_Type_With_Private |
8052 E_Record_Subtype_With_Private |
8055 E_Limited_Private_Type |
8056 E_Limited_Private_Subtype
=>
8057 Write_Str
("Private_View");
8060 Write_Str
("Shared_Var_Procs_Instance");
8063 Write_Str
("Field22??");
8065 end Write_Field22_Name
;
8067 ------------------------
8068 -- Write_Field23_Name --
8069 ------------------------
8071 procedure Write_Field23_Name
(Id
: Entity_Id
) is
8075 Write_Str
("Associated_Final_Chain");
8078 Write_Str
("Packed_Array_Type");
8081 Write_Str
("Entry_Cancel_Parameter");
8083 when E_Discriminant
=>
8084 Write_Str
("CR_Discriminant");
8086 when E_Enumeration_Type
=>
8087 Write_Str
("Enum_Pos_To_Rep");
8091 Write_Str
("Extra_Constrained");
8093 when E_Generic_Function |
8095 E_Generic_Procedure
=>
8096 Write_Str
("Inner_Instances");
8098 when Concurrent_Kind |
8099 Incomplete_Or_Private_Kind |
8103 Write_Str
("Stored_Constraint");
8107 if Present
(Scope
(Id
))
8108 and then Is_Protected_Type
(Scope
(Id
))
8110 Write_Str
("Protection_Object");
8112 Write_Str
("Generic_Renamings");
8116 if Is_Generic_Instance
(Id
) then
8117 Write_Str
("Generic_Renamings");
8119 Write_Str
("Limited_View");
8123 Write_Str
("Protection_Object");
8126 Write_Str
("Field23??");
8128 end Write_Field23_Name
;
8130 ------------------------
8131 -- Write_Field24_Name --
8132 ------------------------
8134 procedure Write_Field24_Name
(Id
: Entity_Id
) is
8137 when Subprogram_Kind
=>
8138 Write_Str
("Spec_PPC_List");
8140 when E_Variable | E_Constant | Type_Kind
=>
8141 Write_Str
("Related_Expression");
8144 Write_Str
("Field24???");
8146 end Write_Field24_Name
;
8148 ------------------------
8149 -- Write_Field25_Name --
8150 ------------------------
8152 procedure Write_Field25_Name
(Id
: Entity_Id
) is
8156 Write_Str
("DT_Offset_To_Top_Func");
8160 Write_Str
("Interface_Alias");
8162 when E_Record_Type |
8164 E_Record_Type_With_Private |
8165 E_Record_Subtype_With_Private
=>
8166 Write_Str
("Interfaces");
8169 Write_Str
("Task_Body_Procedure");
8172 Write_Str
("Debug_Renaming_Link");
8176 Write_Str
("PPC_Wrapper");
8179 Write_Str
("Field25??");
8181 end Write_Field25_Name
;
8183 ------------------------
8184 -- Write_Field26_Name --
8185 ------------------------
8187 procedure Write_Field26_Name
(Id
: Entity_Id
) is
8190 when E_Generic_Package |
8192 Write_Str
("Package_Instantiation");
8196 if Is_Dispatching_Operation
(Id
) then
8197 Write_Str
("Overridden_Operation");
8199 Write_Str
("Static_Initialization");
8202 when E_Record_Type |
8203 E_Record_Type_With_Private
=>
8204 Write_Str
("Dispatch_Table_Wrappers");
8206 when E_In_Out_Parameter |
8209 Write_Str
("Last_Assignment");
8212 Write_Str
("Relative_Deadline_Variable");
8215 Write_Str
("Field26??");
8217 end Write_Field26_Name
;
8219 ------------------------
8220 -- Write_Field27_Name --
8221 ------------------------
8223 procedure Write_Field27_Name
(Id
: Entity_Id
) is
8229 Write_Str
("Related_Type");
8232 Write_Str
("Wrapped_Entity");
8234 when E_Package | Type_Kind
=>
8235 Write_Str
("Current_Use_Clause");
8238 Write_Str
("Field27??");
8240 end Write_Field27_Name
;
8242 ------------------------
8243 -- Write_Field28_Name --
8244 ------------------------
8246 procedure Write_Field28_Name
(Id
: Entity_Id
) is
8249 when Private_Kind
=>
8250 Write_Str
("Invariant_Procedure");
8252 when E_Procedure | E_Function | E_Entry
=>
8253 Write_Str
("Extra_Formals");
8255 when E_Record_Type
=>
8256 Write_Str
("Underlying_Record_View");
8259 Write_Str
("Field28??");
8261 end Write_Field28_Name
;
8263 procedure Write_Field29_Name
(Id
: Entity_Id
) is
8267 Write_Str
("Invariant_Procedure");
8270 Write_Str
("Field29??");
8272 end Write_Field29_Name
;
8274 -------------------------
8275 -- Iterator Procedures --
8276 -------------------------
8278 procedure Proc_Next_Component
(N
: in out Node_Id
) is
8280 N
:= Next_Component
(N
);
8281 end Proc_Next_Component
;
8283 procedure Proc_Next_Component_Or_Discriminant
(N
: in out Node_Id
) is
8285 N
:= Next_Entity
(N
);
8286 while Present
(N
) loop
8287 exit when Ekind_In
(N
, E_Component
, E_Discriminant
);
8288 N
:= Next_Entity
(N
);
8290 end Proc_Next_Component_Or_Discriminant
;
8292 procedure Proc_Next_Discriminant
(N
: in out Node_Id
) is
8294 N
:= Next_Discriminant
(N
);
8295 end Proc_Next_Discriminant
;
8297 procedure Proc_Next_Formal
(N
: in out Node_Id
) is
8299 N
:= Next_Formal
(N
);
8300 end Proc_Next_Formal
;
8302 procedure Proc_Next_Formal_With_Extras
(N
: in out Node_Id
) is
8304 N
:= Next_Formal_With_Extras
(N
);
8305 end Proc_Next_Formal_With_Extras
;
8307 procedure Proc_Next_Index
(N
: in out Node_Id
) is
8309 N
:= Next_Index
(N
);
8310 end Proc_Next_Index
;
8312 procedure Proc_Next_Inlined_Subprogram
(N
: in out Node_Id
) is
8314 N
:= Next_Inlined_Subprogram
(N
);
8315 end Proc_Next_Inlined_Subprogram
;
8317 procedure Proc_Next_Literal
(N
: in out Node_Id
) is
8319 N
:= Next_Literal
(N
);
8320 end Proc_Next_Literal
;
8322 procedure Proc_Next_Stored_Discriminant
(N
: in out Node_Id
) is
8324 N
:= Next_Stored_Discriminant
(N
);
8325 end Proc_Next_Stored_Discriminant
;