1 ------------------------------------------------------------------------------
3 -- GNAT COMPILER COMPONENTS --
9 -- Copyright (C) 1992-2009, 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 -- Discriminal_Link Node10
89 -- Handler_Records List10
90 -- Normalized_Position_Max Uint10
91 -- Referenced_Object Node10
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 -- Primitive_Operations Elist15
125 -- Related_Instance Node15
126 -- Scale_Value Uint15
127 -- Storage_Size_Variable Node15
128 -- String_Literal_Low_Bound Node15
130 -- Access_Disp_Table Elist16
131 -- Cloned_Subtype Node16
133 -- Entry_Formal Node16
134 -- First_Private_Entity Node16
135 -- Lit_Strings Node16
136 -- String_Literal_Length Uint16
137 -- Unset_Reference Node16
139 -- Actual_Subtype Node17
140 -- Digits_Value Uint17
141 -- Discriminal Node17
142 -- First_Entity Node17
143 -- First_Index Node17
144 -- First_Literal Node17
147 -- Non_Limited_View Node17
151 -- Corresponding_Concurrent_Type 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
211 -- Underlying_Record_View Node24
213 -- Interface_Alias Node25
214 -- Interfaces Elist25
215 -- Debug_Renaming_Link Node25
216 -- DT_Offset_To_Top_Func Node25
217 -- Task_Body_Procedure Node25
219 -- Dispatch_Table_Wrappers Elist26
220 -- Last_Assignment Node26
221 -- Overridden_Operation Node26
222 -- Package_Instantiation Node26
223 -- Related_Type Node26
224 -- Relative_Deadline_Variable Node26
225 -- Static_Initialization Node26
227 -- Current_Use_Clause Node27
228 -- Wrapped_Entity Node27
230 -- Extra_Formals Node28
232 ---------------------------------------------
233 -- Usage of Flags in Defining Entity Nodes --
234 ---------------------------------------------
236 -- All flags are unique, there is no overlaying, so each flag is physically
237 -- present in every entity. However, for many of the flags, it only makes
238 -- sense for them to be set true for certain subsets of entity kinds. See
239 -- the spec of Einfo for further details.
241 -- Note: Flag1-Flag3 are absent from this list, since these flag positions
242 -- are used for the flags Analyzed, Comes_From_Source, and Error_Posted,
243 -- which are common to all nodes, including entity nodes.
246 -- Has_Discriminants Flag5
247 -- Is_Dispatching_Operation Flag6
248 -- Is_Immediately_Visible Flag7
250 -- Is_Potentially_Use_Visible Flag9
254 -- Is_Constrained Flag12
255 -- Is_Generic_Type Flag13
256 -- Depends_On_Private Flag14
258 -- Is_Volatile Flag16
259 -- Is_Internal Flag17
260 -- Has_Delayed_Freeze Flag18
261 -- Is_Abstract_Subprogram Flag19
262 -- Is_Concurrent_Record_Type Flag20
264 -- Has_Master_Entity Flag21
265 -- Needs_No_Actuals Flag22
266 -- Has_Storage_Size_Clause Flag23
267 -- Is_Imported Flag24
268 -- Is_Limited_Record Flag25
269 -- Has_Completion Flag26
270 -- Has_Pragma_Controlled Flag27
271 -- Is_Statically_Allocated Flag28
272 -- Has_Size_Clause Flag29
275 -- Checks_May_Be_Suppressed Flag31
276 -- Kill_Elaboration_Checks Flag32
277 -- Kill_Range_Checks Flag33
278 -- Kill_Tag_Checks Flag34
279 -- Is_Class_Wide_Equivalent_Type Flag35
280 -- Referenced_As_LHS Flag36
281 -- Is_Known_Non_Null Flag37
282 -- Can_Never_Be_Null Flag38
283 -- Is_Overriding_Operation Flag39
284 -- Body_Needed_For_SAL Flag40
286 -- Treat_As_Volatile Flag41
287 -- Is_Controlled Flag42
288 -- Has_Controlled_Component Flag43
290 -- In_Private_Part Flag45
291 -- Has_Alignment_Clause Flag46
293 -- In_Package_Body Flag48
295 -- Delay_Subprogram_Descriptors Flag50
298 -- Is_Entry_Formal Flag52
299 -- Is_Private_Descendant Flag53
300 -- Return_Present Flag54
301 -- Is_Tagged_Type Flag55
302 -- Has_Homonym Flag56
304 -- Non_Binary_Modulus Flag58
305 -- Is_Preelaborated Flag59
306 -- Is_Shared_Passive Flag60
308 -- Is_Remote_Types Flag61
309 -- Is_Remote_Call_Interface Flag62
310 -- Is_Character_Type Flag63
311 -- Is_Intrinsic_Subprogram Flag64
312 -- Has_Record_Rep_Clause Flag65
313 -- Has_Enumeration_Rep_Clause Flag66
314 -- Has_Small_Clause Flag67
315 -- Has_Component_Size_Clause Flag68
316 -- Is_Access_Constant Flag69
317 -- Is_First_Subtype Flag70
319 -- Has_Completion_In_Body Flag71
320 -- Has_Unknown_Discriminants Flag72
321 -- Is_Child_Unit Flag73
322 -- Is_CPP_Class Flag74
323 -- Has_Non_Standard_Rep Flag75
324 -- Is_Constructor Flag76
325 -- Static_Elaboration_Desired Flag77
327 -- Has_All_Calls_Remote Flag79
328 -- Is_Constr_Subt_For_U_Nominal Flag80
330 -- Is_Asynchronous Flag81
331 -- Has_Gigi_Rep_Item Flag82
332 -- Has_Machine_Radix_Clause Flag83
333 -- Machine_Radix_10 Flag84
335 -- Has_Atomic_Components Flag86
336 -- Has_Volatile_Components Flag87
337 -- Discard_Names Flag88
338 -- Is_Interrupt_Handler Flag89
339 -- Returns_By_Ref Flag90
342 -- Size_Known_At_Compile_Time Flag92
343 -- Has_Subprogram_Descriptor Flag93
344 -- Is_Generic_Actual_Type Flag94
345 -- Uses_Sec_Stack Flag95
346 -- Warnings_Off Flag96
347 -- Is_Controlling_Formal Flag97
348 -- Has_Controlling_Result Flag98
349 -- Is_Exported Flag99
350 -- Has_Specified_Layout Flag100
352 -- Has_Nested_Block_With_Handler Flag101
354 -- Is_Completely_Hidden Flag103
355 -- Address_Taken Flag104
356 -- Suppress_Init_Proc Flag105
357 -- Is_Limited_Composite Flag106
358 -- Is_Private_Composite Flag107
359 -- Default_Expressions_Processed Flag108
360 -- Is_Non_Static_Subtype Flag109
361 -- Has_External_Tag_Rep_Clause Flag110
363 -- Is_Formal_Subprogram Flag111
364 -- Is_Renaming_Of_Object Flag112
366 -- Delay_Cleanups Flag114
367 -- Never_Set_In_Source Flag115
368 -- Is_Visible_Child_Unit Flag116
369 -- Is_Unchecked_Union Flag117
370 -- Is_For_Access_Subtype Flag118
371 -- Has_Convention_Pragma Flag119
372 -- Has_Primitive_Operations Flag120
374 -- Has_Pragma_Pack Flag121
375 -- Is_Bit_Packed_Array Flag122
376 -- Has_Unchecked_Union Flag123
377 -- Is_Eliminated Flag124
378 -- C_Pass_By_Copy Flag125
379 -- Is_Instantiated Flag126
380 -- Is_Valued_Procedure Flag127
381 -- (used for Component_Alignment) Flag128
382 -- (used for Component_Alignment) Flag129
383 -- Is_Generic_Instance Flag130
385 -- No_Pool_Assigned Flag131
386 -- Is_AST_Entry Flag132
387 -- Is_VMS_Exception Flag133
388 -- Is_Optional_Parameter Flag134
389 -- Has_Aliased_Components Flag135
390 -- No_Strict_Aliasing Flag136
391 -- Is_Machine_Code_Subprogram Flag137
392 -- Is_Packed_Array_Type Flag138
393 -- Has_Biased_Representation Flag139
394 -- Has_Complex_Representation Flag140
396 -- Is_Constr_Subt_For_UN_Aliased Flag141
397 -- Has_Missing_Return Flag142
398 -- Has_Recursive_Call Flag143
399 -- Is_Unsigned_Type Flag144
400 -- Strict_Alignment Flag145
401 -- Is_Abstract_Type Flag146
402 -- Needs_Debug_Info Flag147
403 -- Suppress_Elaboration_Warnings Flag148
404 -- Is_Compilation_Unit Flag149
405 -- Has_Pragma_Elaborate_Body Flag150
408 -- Entry_Accepted Flag152
409 -- Is_Obsolescent Flag153
410 -- Has_Per_Object_Constraint Flag154
411 -- Has_Private_Declaration Flag155
412 -- Referenced Flag156
413 -- Has_Pragma_Inline Flag157
414 -- Finalize_Storage_Only Flag158
415 -- From_With_Type Flag159
416 -- Is_Package_Body_Entity Flag160
418 -- Has_Qualified_Name Flag161
419 -- Nonzero_Is_True Flag162
420 -- Is_True_Constant Flag163
421 -- Reverse_Bit_Order Flag164
422 -- Suppress_Style_Checks Flag165
423 -- Debug_Info_Off Flag166
424 -- Sec_Stack_Needed_For_Return Flag167
425 -- Materialize_Entity Flag168
426 -- Has_Pragma_Thread_Local_Storage Flag169
427 -- Is_Known_Valid Flag170
429 -- Is_Hidden_Open_Scope Flag171
430 -- Has_Object_Size_Clause Flag172
431 -- Has_Fully_Qualified_Name Flag173
432 -- Elaboration_Entity_Required Flag174
433 -- Has_Forward_Instantiation Flag175
434 -- Is_Discrim_SO_Function Flag176
435 -- Size_Depends_On_Discriminant Flag177
436 -- Is_Null_Init_Proc Flag178
437 -- Has_Pragma_Pure_Function Flag179
438 -- Has_Pragma_Unreferenced Flag180
440 -- Has_Contiguous_Rep Flag181
441 -- Has_Xref_Entry Flag182
442 -- Must_Be_On_Byte_Boundary Flag183
443 -- Has_Stream_Size_Clause Flag184
444 -- Is_Ada_2005_Only Flag185
445 -- Is_Interface Flag186
446 -- Has_Constrained_Partial_View Flag187
447 -- Has_Persistent_BSS Flag188
448 -- Is_Pure_Unit_Access_Type Flag189
449 -- Has_Specified_Stream_Input Flag190
451 -- Has_Specified_Stream_Output Flag191
452 -- Has_Specified_Stream_Read Flag192
453 -- Has_Specified_Stream_Write Flag193
454 -- Is_Local_Anonymous_Access Flag194
455 -- Is_Primitive_Wrapper Flag195
456 -- Was_Hidden Flag196
457 -- Is_Limited_Interface Flag197
458 -- Is_Protected_Interface Flag198
459 -- Is_Synchronized_Interface Flag199
460 -- Is_Task_Interface Flag200
462 -- Has_Anon_Block_Suffix Flag201
463 -- Itype_Printed Flag202
464 -- Has_Pragma_Pure Flag203
465 -- Is_Known_Null Flag204
466 -- Low_Bound_Tested Flag205
467 -- Is_Visible_Formal Flag206
468 -- Known_To_Have_Preelab_Init Flag207
469 -- Must_Have_Preelab_Init Flag208
470 -- Is_Return_Object Flag209
471 -- Elaborate_Body_Desirable Flag210
473 -- Has_Static_Discriminants Flag211
474 -- Has_Pragma_Unreferenced_Objects Flag212
475 -- Requires_Overriding Flag213
477 -- Has_Up_Level_Access Flag215
478 -- Universal_Aliasing Flag216
479 -- Suppress_Value_Tracking_On_Call Flag217
480 -- Is_Primitive Flag218
481 -- Has_Initial_Value Flag219
482 -- Has_Dispatch_Table Flag220
484 -- Has_Pragma_Preelab_Init Flag221
485 -- Used_As_Generic_Actual Flag222
486 -- Is_Descendent_Of_Address Flag223
489 -- Is_Only_Out_Parameter Flag226
490 -- Referenced_As_Out_Parameter Flag227
491 -- Has_Thunks Flag228
492 -- Can_Use_Internal_Rep Flag229
493 -- Has_Pragma_Inline_Always Flag230
495 -- Renamed_In_Spec Flag231
496 -- Implemented_By_Entry Flag232
497 -- Has_Pragma_Unmodified Flag233
498 -- Is_Dispatch_Table_Entity Flag234
499 -- Is_Trivial_Subprogram Flag235
500 -- Warnings_Off_Used Flag236
501 -- Warnings_Off_Used_Unmodified Flag237
502 -- Warnings_Off_Used_Unreferenced Flag238
503 -- OK_To_Reorder_Components Flag239
504 -- Has_Postconditions Flag240
506 -- Optimize_Alignment_Space Flag241
507 -- Optimize_Alignment_Time Flag242
508 -- Overlays_Constant Flag243
509 -- Is_RACW_Stub_Type Flag244
510 -- Is_Private_Primitive Flag245
511 -- Is_Underlying_Record_View Flag246
512 -- OK_To_Rename Flag247
514 -----------------------
515 -- Local subprograms --
516 -----------------------
518 function Rep_Clause (Id : E; Rep_Name : Name_Id) return N;
519 -- Returns the attribute definition clause for Id whose name is Rep_Name.
520 -- Returns Empty if no matching attribute definition clause found for Id.
526 function Rep_Clause (Id : E; Rep_Name : Name_Id) return N is
530 Ritem := First_Rep_Item (Id);
531 while Present (Ritem) loop
532 if Nkind (Ritem) = N_Attribute_Definition_Clause
533 and then Chars (Ritem) = Rep_Name
537 Ritem := Next_Rep_Item (Ritem);
544 --------------------------------
545 -- Attribute Access Functions --
546 --------------------------------
548 function Accept_Address (Id : E) return L is
553 function Access_Disp_Table (Id : E) return L is
555 pragma Assert (Is_Tagged_Type (Id));
556 return Elist16 (Implementation_Base_Type (Id));
557 end Access_Disp_Table;
559 function Actual_Subtype (Id : E) return E is
562 (Ekind_In (Id, E_Constant, E_Variable, E_Generic_In_Out_Parameter)
563 or else Is_Formal (Id));
567 function Address_Taken (Id : E) return B is
572 function Alias (Id : E) return E is
575 (Is_Overloadable (Id) or else Ekind (Id) = E_Subprogram_Type);
579 function Alignment (Id : E) return U is
581 pragma Assert (Is_Type (Id)
582 or else Is_Formal (Id)
583 or else Ekind_In (Id, E_Loop_Parameter,
590 function Associated_Final_Chain (Id : E) return E is
592 pragma Assert (Is_Access_Type (Id));
594 end Associated_Final_Chain;
596 function Associated_Formal_Package (Id : E) return E is
598 pragma Assert (Ekind (Id) = E_Package);
600 end Associated_Formal_Package;
602 function Associated_Node_For_Itype (Id : E) return N is
605 end Associated_Node_For_Itype;
607 function Associated_Storage_Pool (Id : E) return E is
609 pragma Assert (Is_Access_Type (Id));
610 return Node22 (Root_Type (Id));
611 end Associated_Storage_Pool;
613 function Barrier_Function (Id : E) return N is
615 pragma Assert (Is_Entry (Id));
617 end Barrier_Function;
619 function Block_Node (Id : E) return N is
621 pragma Assert (Ekind (Id) = E_Block);
625 function Body_Entity (Id : E) return E is
627 pragma Assert (Ekind_In (Id, E_Package, E_Generic_Package));
631 function Body_Needed_For_SAL (Id : E) return B is
634 (Ekind (Id) = E_Package
635 or else Is_Subprogram (Id)
636 or else Is_Generic_Unit (Id));
638 end Body_Needed_For_SAL;
640 function C_Pass_By_Copy (Id : E) return B is
642 pragma Assert (Is_Record_Type (Id));
643 return Flag125 (Implementation_Base_Type (Id));
646 function Can_Never_Be_Null (Id : E) return B is
649 end Can_Never_Be_Null;
651 function Checks_May_Be_Suppressed (Id : E) return B is
654 end Checks_May_Be_Suppressed;
656 function Class_Wide_Type (Id : E) return E is
658 pragma Assert (Is_Type (Id));
662 function Cloned_Subtype (Id : E) return E is
664 pragma Assert (Ekind_In (Id, E_Record_Subtype, E_Class_Wide_Subtype));
668 function Component_Bit_Offset (Id : E) return U is
670 pragma Assert (Ekind_In (Id, E_Component, E_Discriminant));
672 end Component_Bit_Offset;
674 function Component_Clause (Id : E) return N is
676 pragma Assert (Ekind_In (Id, E_Component, E_Discriminant));
678 end Component_Clause;
680 function Component_Size (Id : E) return U is
682 pragma Assert (Is_Array_Type (Id));
683 return Uint22 (Implementation_Base_Type (Id));
686 function Component_Type (Id : E) return E is
688 pragma Assert (Is_Array_Type (Id) or else Is_String_Type (Id));
689 return Node20 (Implementation_Base_Type (Id));
692 function Corresponding_Concurrent_Type (Id : E) return E is
694 pragma Assert (Ekind (Id) = E_Record_Type);
696 end Corresponding_Concurrent_Type;
698 function Corresponding_Discriminant (Id : E) return E is
700 pragma Assert (Ekind (Id) = E_Discriminant);
702 end Corresponding_Discriminant;
704 function Corresponding_Equality (Id : E) return E is
707 (Ekind (Id) = E_Function
708 and then not Comes_From_Source (Id)
709 and then Chars (Id) = Name_Op_Ne);
711 end Corresponding_Equality;
713 function Corresponding_Record_Type (Id : E) return E is
715 pragma Assert (Is_Concurrent_Type (Id));
717 end Corresponding_Record_Type;
719 function Corresponding_Remote_Type (Id : E) return E is
722 end Corresponding_Remote_Type;
724 function Current_Use_Clause (Id : E) return E is
726 pragma Assert (Ekind (Id) = E_Package or else Is_Type (Id));
728 end Current_Use_Clause;
730 function Current_Value (Id : E) return N is
732 pragma Assert (Ekind (Id) in Object_Kind);
736 function CR_Discriminant (Id : E) return E is
741 function Debug_Info_Off (Id : E) return B is
746 function Debug_Renaming_Link (Id : E) return E is
749 end Debug_Renaming_Link;
751 function Default_Expr_Function (Id : E) return E is
753 pragma Assert (Is_Formal (Id));
755 end Default_Expr_Function;
757 function Default_Expressions_Processed (Id : E) return B is
760 end Default_Expressions_Processed;
762 function Default_Value (Id : E) return N is
764 pragma Assert (Is_Formal (Id));
768 function Delay_Cleanups (Id : E) return B is
773 function Delay_Subprogram_Descriptors (Id : E) return B is
776 end Delay_Subprogram_Descriptors;
778 function Delta_Value (Id : E) return R is
780 pragma Assert (Is_Fixed_Point_Type (Id));
784 function Dependent_Instances (Id : E) return L is
786 pragma Assert (Is_Generic_Instance (Id));
788 end Dependent_Instances;
790 function Depends_On_Private (Id : E) return B is
792 pragma Assert (Nkind (Id) in N_Entity);
794 end Depends_On_Private;
796 function Digits_Value (Id : E) return U is
799 (Is_Floating_Point_Type (Id)
800 or else Is_Decimal_Fixed_Point_Type (Id));
804 function Directly_Designated_Type (Id : E) return E is
806 pragma Assert (Is_Access_Type (Id));
808 end Directly_Designated_Type;
810 function Discard_Names (Id : E) return B is
815 function Discriminal (Id : E) return E is
817 pragma Assert (Ekind (Id) = E_Discriminant);
821 function Discriminal_Link (Id : E) return N is
824 end Discriminal_Link;
826 function Discriminant_Checking_Func (Id : E) return E is
828 pragma Assert (Ekind (Id) = E_Component);
830 end Discriminant_Checking_Func;
832 function Discriminant_Constraint (Id : E) return L is
834 pragma Assert (Is_Composite_Type (Id) and then Has_Discriminants (Id));
836 end Discriminant_Constraint;
838 function Discriminant_Default_Value (Id : E) return N is
840 pragma Assert (Ekind (Id) = E_Discriminant);
842 end Discriminant_Default_Value;
844 function Discriminant_Number (Id : E) return U is
846 pragma Assert (Ekind (Id) = E_Discriminant);
848 end Discriminant_Number;
850 function Dispatch_Table_Wrappers (Id : E) return L is
852 pragma Assert (Is_Tagged_Type (Id));
853 return Elist26 (Implementation_Base_Type (Id));
854 end Dispatch_Table_Wrappers;
856 function DT_Entry_Count (Id : E) return U is
858 pragma Assert (Ekind (Id) = E_Component and then Is_Tag (Id));
862 function DT_Offset_To_Top_Func (Id : E) return E is
864 pragma Assert (Ekind (Id) = E_Component and then Is_Tag (Id));
866 end DT_Offset_To_Top_Func;
868 function DT_Position (Id : E) return U is
870 pragma Assert (Ekind_In (Id, E_Function, E_Procedure)
871 and then Present (DTC_Entity (Id)));
875 function DTC_Entity (Id : E) return E is
877 pragma Assert (Ekind_In (Id, E_Function, E_Procedure));
881 function Elaborate_Body_Desirable (Id : E) return B is
883 pragma Assert (Ekind (Id) = E_Package);
885 end Elaborate_Body_Desirable;
887 function Elaboration_Entity (Id : E) return E is
892 Ekind (Id) = E_Package
894 Is_Generic_Unit (Id));
896 end Elaboration_Entity;
898 function Elaboration_Entity_Required (Id : E) return B is
903 Ekind (Id) = E_Package
905 Is_Generic_Unit (Id));
907 end Elaboration_Entity_Required;
909 function Enclosing_Scope (Id : E) return E is
914 function Entry_Accepted (Id : E) return B is
916 pragma Assert (Is_Entry (Id));
920 function Entry_Bodies_Array (Id : E) return E is
923 end Entry_Bodies_Array;
925 function Entry_Cancel_Parameter (Id : E) return E is
928 end Entry_Cancel_Parameter;
930 function Entry_Component (Id : E) return E is
935 function Entry_Formal (Id : E) return E is
940 function Entry_Index_Constant (Id : E) return N is
942 pragma Assert (Ekind (Id) = E_Entry_Index_Parameter);
944 end Entry_Index_Constant;
946 function Entry_Parameters_Type (Id : E) return E is
949 end Entry_Parameters_Type;
951 function Enum_Pos_To_Rep (Id : E) return E is
953 pragma Assert (Ekind (Id) = E_Enumeration_Type);
957 function Enumeration_Pos (Id : E) return Uint is
959 pragma Assert (Ekind (Id) = E_Enumeration_Literal);
963 function Enumeration_Rep (Id : E) return U is
965 pragma Assert (Ekind (Id) = E_Enumeration_Literal);
969 function Enumeration_Rep_Expr (Id : E) return N is
971 pragma Assert (Ekind (Id) = E_Enumeration_Literal);
973 end Enumeration_Rep_Expr;
975 function Equivalent_Type (Id : E) return E is
978 (Ekind_In (Id, E_Class_Wide_Type,
979 E_Class_Wide_Subtype,
980 E_Access_Protected_Subprogram_Type,
981 E_Anonymous_Access_Protected_Subprogram_Type,
982 E_Access_Subprogram_Type,
987 function Esize (Id : E) return Uint is
992 function Exception_Code (Id : E) return Uint is
994 pragma Assert (Ekind (Id) = E_Exception);
998 function Extra_Accessibility (Id : E) return E is
1000 pragma Assert (Is_Formal (Id) or else Ekind (Id) = E_Variable);
1002 end Extra_Accessibility;
1004 function Extra_Constrained (Id : E) return E is
1006 pragma Assert (Is_Formal (Id) or else Ekind (Id) = E_Variable);
1008 end Extra_Constrained;
1010 function Extra_Formal (Id : E) return E is
1015 function Extra_Formals (Id : E) return E is
1018 (Is_Overloadable (Id)
1019 or else Ekind_In (Id, E_Entry_Family,
1021 E_Subprogram_Type));
1025 function Can_Use_Internal_Rep (Id : E) return B is
1027 pragma Assert (Is_Access_Subprogram_Type (Base_Type (Id)));
1028 return Flag229 (Base_Type (Id));
1029 end Can_Use_Internal_Rep;
1031 function Finalization_Chain_Entity (Id : E) return E is
1034 end Finalization_Chain_Entity;
1036 function Finalize_Storage_Only (Id : E) return B is
1038 pragma Assert (Is_Type (Id));
1039 return Flag158 (Base_Type (Id));
1040 end Finalize_Storage_Only;
1042 function First_Entity (Id : E) return E is
1047 function First_Exit_Statement (Id : E) return N is
1049 pragma Assert (Ekind (Id) = E_Loop);
1051 end First_Exit_Statement;
1053 function First_Index (Id : E) return N is
1055 pragma Assert (Is_Array_Type (Id) or else Is_String_Type (Id));
1059 function First_Literal (Id : E) return E is
1061 pragma Assert (Is_Enumeration_Type (Id));
1065 function First_Optional_Parameter (Id : E) return E is
1067 pragma Assert (Ekind_In (Id, E_Function, E_Procedure));
1069 end First_Optional_Parameter;
1071 function First_Private_Entity (Id : E) return E is
1073 pragma Assert (Ekind_In (Id, E_Package, E_Generic_Package)
1074 or else Ekind (Id) in Concurrent_Kind);
1076 end First_Private_Entity;
1078 function First_Rep_Item (Id : E) return E is
1083 function Freeze_Node (Id : E) return N is
1088 function From_With_Type (Id : E) return B is
1090 return Flag159 (Id);
1093 function Full_View (Id : E) return E is
1095 pragma Assert (Is_Type (Id) or else Ekind (Id) = E_Constant);
1099 function Generic_Homonym (Id : E) return E is
1101 pragma Assert (Ekind (Id) = E_Generic_Package);
1103 end Generic_Homonym;
1105 function Generic_Renamings (Id : E) return L is
1107 return Elist23 (Id);
1108 end Generic_Renamings;
1110 function Handler_Records (Id : E) return S is
1113 end Handler_Records;
1115 function Has_Aliased_Components (Id : E) return B is
1117 return Flag135 (Implementation_Base_Type (Id));
1118 end Has_Aliased_Components;
1120 function Has_Alignment_Clause (Id : E) return B is
1123 end Has_Alignment_Clause;
1125 function Has_All_Calls_Remote (Id : E) return B is
1128 end Has_All_Calls_Remote;
1130 function Has_Anon_Block_Suffix (Id : E) return B is
1132 return Flag201 (Id);
1133 end Has_Anon_Block_Suffix;
1135 function Has_Atomic_Components (Id : E) return B is
1137 return Flag86 (Implementation_Base_Type (Id));
1138 end Has_Atomic_Components;
1140 function Has_Biased_Representation (Id : E) return B is
1142 return Flag139 (Id);
1143 end Has_Biased_Representation;
1145 function Has_Completion (Id : E) return B is
1150 function Has_Completion_In_Body (Id : E) return B is
1152 pragma Assert (Is_Type (Id));
1154 end Has_Completion_In_Body;
1156 function Has_Complex_Representation (Id : E) return B is
1158 pragma Assert (Is_Type (Id));
1159 return Flag140 (Implementation_Base_Type (Id));
1160 end Has_Complex_Representation;
1162 function Has_Component_Size_Clause (Id : E) return B is
1164 pragma Assert (Is_Array_Type (Id));
1165 return Flag68 (Implementation_Base_Type (Id));
1166 end Has_Component_Size_Clause;
1168 function Has_Constrained_Partial_View (Id : E) return B is
1170 pragma Assert (Is_Type (Id));
1171 return Flag187 (Id);
1172 end Has_Constrained_Partial_View;
1174 function Has_Controlled_Component (Id : E) return B is
1176 return Flag43 (Base_Type (Id));
1177 end Has_Controlled_Component;
1179 function Has_Contiguous_Rep (Id : E) return B is
1181 return Flag181 (Id);
1182 end Has_Contiguous_Rep;
1184 function Has_Controlling_Result (Id : E) return B is
1187 end Has_Controlling_Result;
1189 function Has_Convention_Pragma (Id : E) return B is
1191 return Flag119 (Id);
1192 end Has_Convention_Pragma;
1194 function Has_Delayed_Freeze (Id : E) return B is
1196 pragma Assert (Nkind (Id) in N_Entity);
1198 end Has_Delayed_Freeze;
1200 function Has_Discriminants (Id : E) return B is
1202 pragma Assert (Nkind (Id) in N_Entity);
1204 end Has_Discriminants;
1206 function Has_Dispatch_Table (Id : E) return B is
1208 pragma Assert (Is_Tagged_Type (Id));
1209 return Flag220 (Id);
1210 end Has_Dispatch_Table;
1212 function Has_Enumeration_Rep_Clause (Id : E) return B is
1214 pragma Assert (Is_Enumeration_Type (Id));
1216 end Has_Enumeration_Rep_Clause;
1218 function Has_Exit (Id : E) return B is
1223 function Has_External_Tag_Rep_Clause (Id : E) return B is
1225 pragma Assert (Is_Tagged_Type (Id));
1226 return Flag110 (Id);
1227 end Has_External_Tag_Rep_Clause;
1229 function Has_Forward_Instantiation (Id : E) return B is
1231 return Flag175 (Id);
1232 end Has_Forward_Instantiation;
1234 function Has_Fully_Qualified_Name (Id : E) return B is
1236 return Flag173 (Id);
1237 end Has_Fully_Qualified_Name;
1239 function Has_Gigi_Rep_Item (Id : E) return B is
1242 end Has_Gigi_Rep_Item;
1244 function Has_Homonym (Id : E) return B is
1249 function Has_Initial_Value (Id : E) return B is
1252 (Ekind (Id) = E_Variable or else Is_Formal (Id));
1253 return Flag219 (Id);
1254 end Has_Initial_Value;
1256 function Has_Machine_Radix_Clause (Id : E) return B is
1258 pragma Assert (Is_Decimal_Fixed_Point_Type (Id));
1260 end Has_Machine_Radix_Clause;
1262 function Has_Master_Entity (Id : E) return B is
1265 end Has_Master_Entity;
1267 function Has_Missing_Return (Id : E) return B is
1269 pragma Assert (Ekind_In (Id, E_Function, E_Generic_Function));
1270 return Flag142 (Id);
1271 end Has_Missing_Return;
1273 function Has_Nested_Block_With_Handler (Id : E) return B is
1275 return Flag101 (Id);
1276 end Has_Nested_Block_With_Handler;
1278 function Has_Non_Standard_Rep (Id : E) return B is
1280 return Flag75 (Implementation_Base_Type (Id));
1281 end Has_Non_Standard_Rep;
1283 function Has_Object_Size_Clause (Id : E) return B is
1285 pragma Assert (Is_Type (Id));
1286 return Flag172 (Id);
1287 end Has_Object_Size_Clause;
1289 function Has_Per_Object_Constraint (Id : E) return B is
1291 return Flag154 (Id);
1292 end Has_Per_Object_Constraint;
1294 function Has_Persistent_BSS (Id : E) return B is
1296 return Flag188 (Id);
1297 end Has_Persistent_BSS;
1299 function Has_Postconditions (Id : E) return B is
1301 pragma Assert (Is_Subprogram (Id));
1302 return Flag240 (Id);
1303 end Has_Postconditions;
1305 function Has_Pragma_Controlled (Id : E) return B is
1307 pragma Assert (Is_Access_Type (Id));
1308 return Flag27 (Implementation_Base_Type (Id));
1309 end Has_Pragma_Controlled;
1311 function Has_Pragma_Elaborate_Body (Id : E) return B is
1313 return Flag150 (Id);
1314 end Has_Pragma_Elaborate_Body;
1316 function Has_Pragma_Inline (Id : E) return B is
1318 return Flag157 (Id);
1319 end Has_Pragma_Inline;
1321 function Has_Pragma_Inline_Always (Id : E) return B is
1323 return Flag230 (Id);
1324 end Has_Pragma_Inline_Always;
1326 function Has_Pragma_Pack (Id : E) return B is
1328 pragma Assert (Is_Record_Type (Id) or else Is_Array_Type (Id));
1329 return Flag121 (Implementation_Base_Type (Id));
1330 end Has_Pragma_Pack;
1332 function Has_Pragma_Preelab_Init (Id : E) return B is
1334 return Flag221 (Id);
1335 end Has_Pragma_Preelab_Init;
1337 function Has_Pragma_Pure (Id : E) return B is
1339 return Flag203 (Id);
1340 end Has_Pragma_Pure;
1342 function Has_Pragma_Pure_Function (Id : E) return B is
1344 return Flag179 (Id);
1345 end Has_Pragma_Pure_Function;
1347 function Has_Pragma_Thread_Local_Storage (Id : E) return B is
1349 return Flag169 (Id);
1350 end Has_Pragma_Thread_Local_Storage;
1352 function Has_Pragma_Unmodified (Id : E) return B is
1354 return Flag233 (Id);
1355 end Has_Pragma_Unmodified;
1357 function Has_Pragma_Unreferenced (Id : E) return B is
1359 return Flag180 (Id);
1360 end Has_Pragma_Unreferenced;
1362 function Has_Pragma_Unreferenced_Objects (Id : E) return B is
1364 pragma Assert (Is_Type (Id));
1365 return Flag212 (Id);
1366 end Has_Pragma_Unreferenced_Objects;
1368 function Has_Primitive_Operations (Id : E) return B is
1370 pragma Assert (Is_Type (Id));
1371 return Flag120 (Base_Type (Id));
1372 end Has_Primitive_Operations;
1374 function Has_Private_Declaration (Id : E) return B is
1376 return Flag155 (Id);
1377 end Has_Private_Declaration;
1379 function Has_Qualified_Name (Id : E) return B is
1381 return Flag161 (Id);
1382 end Has_Qualified_Name;
1384 function Has_RACW (Id : E) return B is
1386 pragma Assert (Ekind (Id) = E_Package);
1387 return Flag214 (Id);
1390 function Has_Record_Rep_Clause (Id : E) return B is
1392 pragma Assert (Is_Record_Type (Id));
1393 return Flag65 (Implementation_Base_Type (Id));
1394 end Has_Record_Rep_Clause;
1396 function Has_Recursive_Call (Id : E) return B is
1398 pragma Assert (Is_Subprogram (Id));
1399 return Flag143 (Id);
1400 end Has_Recursive_Call;
1402 function Has_Size_Clause (Id : E) return B is
1405 end Has_Size_Clause;
1407 function Has_Small_Clause (Id : E) return B is
1410 end Has_Small_Clause;
1412 function Has_Specified_Layout (Id : E) return B is
1414 pragma Assert (Is_Type (Id));
1415 return Flag100 (Implementation_Base_Type (Id));
1416 end Has_Specified_Layout;
1418 function Has_Specified_Stream_Input (Id : E) return B is
1420 pragma Assert (Is_Type (Id));
1421 return Flag190 (Id);
1422 end Has_Specified_Stream_Input;
1424 function Has_Specified_Stream_Output (Id : E) return B is
1426 pragma Assert (Is_Type (Id));
1427 return Flag191 (Id);
1428 end Has_Specified_Stream_Output;
1430 function Has_Specified_Stream_Read (Id : E) return B is
1432 pragma Assert (Is_Type (Id));
1433 return Flag192 (Id);
1434 end Has_Specified_Stream_Read;
1436 function Has_Specified_Stream_Write (Id : E) return B is
1438 pragma Assert (Is_Type (Id));
1439 return Flag193 (Id);
1440 end Has_Specified_Stream_Write;
1442 function Has_Static_Discriminants (Id : E) return B is
1444 pragma Assert (Is_Type (Id));
1445 return Flag211 (Id);
1446 end Has_Static_Discriminants;
1448 function Has_Storage_Size_Clause (Id : E) return B is
1450 pragma Assert (Is_Access_Type (Id) or else Is_Task_Type (Id));
1451 return Flag23 (Implementation_Base_Type (Id));
1452 end Has_Storage_Size_Clause;
1454 function Has_Stream_Size_Clause (Id : E) return B is
1456 return Flag184 (Id);
1457 end Has_Stream_Size_Clause;
1459 function Has_Subprogram_Descriptor (Id : E) return B is
1462 end Has_Subprogram_Descriptor;
1464 function Has_Task (Id : E) return B is
1466 return Flag30 (Base_Type (Id));
1469 function Has_Thunks (Id : E) return B is
1471 pragma Assert (Ekind (Id) = E_Constant);
1472 return Flag228 (Id);
1475 function Has_Unchecked_Union (Id : E) return B is
1477 return Flag123 (Base_Type (Id));
1478 end Has_Unchecked_Union;
1480 function Has_Unknown_Discriminants (Id : E) return B is
1482 pragma Assert (Is_Type (Id));
1484 end Has_Unknown_Discriminants;
1486 function Has_Up_Level_Access (Id : E) return B is
1489 (Ekind_In (Id, E_Variable, E_Constant, E_Loop_Parameter));
1490 return Flag215 (Id);
1491 end Has_Up_Level_Access;
1493 function Has_Volatile_Components (Id : E) return B is
1495 return Flag87 (Implementation_Base_Type (Id));
1496 end Has_Volatile_Components;
1498 function Has_Xref_Entry (Id : E) return B is
1500 return Flag182 (Implementation_Base_Type (Id));
1503 function Hiding_Loop_Variable (Id : E) return E is
1505 pragma Assert (Ekind (Id) = E_Variable);
1507 end Hiding_Loop_Variable;
1509 function Homonym (Id : E) return E is
1514 function Implemented_By_Entry (Id : E) return B is
1516 pragma Assert (Ekind_In (Id, E_Function, E_Procedure));
1517 return Flag232 (Id);
1518 end Implemented_By_Entry;
1520 function Interfaces (Id : E) return L is
1522 pragma Assert (Is_Record_Type (Id));
1523 return Elist25 (Id);
1526 function Interface_Alias (Id : E) return E is
1528 pragma Assert (Is_Subprogram (Id));
1530 end Interface_Alias;
1532 function In_Package_Body (Id : E) return B is
1535 end In_Package_Body;
1537 function In_Private_Part (Id : E) return B is
1540 end In_Private_Part;
1542 function In_Use (Id : E) return B is
1544 pragma Assert (Nkind (Id) in N_Entity);
1548 function Inner_Instances (Id : E) return L is
1550 return Elist23 (Id);
1551 end Inner_Instances;
1553 function Interface_Name (Id : E) return N is
1558 function Is_Abstract_Subprogram (Id : E) return B is
1560 pragma Assert (Is_Overloadable (Id));
1562 end Is_Abstract_Subprogram;
1564 function Is_Abstract_Type (Id : E) return B is
1566 pragma Assert (Is_Type (Id));
1567 return Flag146 (Id);
1568 end Is_Abstract_Type;
1570 function Is_Local_Anonymous_Access (Id : E) return B is
1572 pragma Assert (Is_Access_Type (Id));
1573 return Flag194 (Id);
1574 end Is_Local_Anonymous_Access;
1576 function Is_Access_Constant (Id : E) return B is
1578 pragma Assert (Is_Access_Type (Id));
1580 end Is_Access_Constant;
1582 function Is_Ada_2005_Only (Id : E) return B is
1584 return Flag185 (Id);
1585 end Is_Ada_2005_Only;
1587 function Is_Aliased (Id : E) return B is
1589 pragma Assert (Nkind (Id) in N_Entity);
1593 function Is_AST_Entry (Id : E) return B is
1595 pragma Assert (Is_Entry (Id));
1596 return Flag132 (Id);
1599 function Is_Asynchronous (Id : E) return B is
1601 pragma Assert (Ekind (Id) = E_Procedure or else Is_Type (Id));
1603 end Is_Asynchronous;
1605 function Is_Atomic (Id : E) return B is
1610 function Is_Bit_Packed_Array (Id : E) return B is
1612 return Flag122 (Implementation_Base_Type (Id));
1613 end Is_Bit_Packed_Array;
1615 function Is_Called (Id : E) return B is
1617 pragma Assert (Ekind_In (Id, E_Procedure, E_Function));
1618 return Flag102 (Id);
1621 function Is_Character_Type (Id : E) return B is
1624 end Is_Character_Type;
1626 function Is_Child_Unit (Id : E) return B is
1631 function Is_Class_Wide_Equivalent_Type (Id : E) return B is
1634 end Is_Class_Wide_Equivalent_Type;
1636 function Is_Compilation_Unit (Id : E) return B is
1638 return Flag149 (Id);
1639 end Is_Compilation_Unit;
1641 function Is_Completely_Hidden (Id : E) return B is
1643 pragma Assert (Ekind (Id) = E_Discriminant);
1644 return Flag103 (Id);
1645 end Is_Completely_Hidden;
1647 function Is_Constr_Subt_For_U_Nominal (Id : E) return B is
1650 end Is_Constr_Subt_For_U_Nominal;
1652 function Is_Constr_Subt_For_UN_Aliased (Id : E) return B is
1654 return Flag141 (Id);
1655 end Is_Constr_Subt_For_UN_Aliased;
1657 function Is_Constrained (Id : E) return B is
1659 pragma Assert (Nkind (Id) in N_Entity);
1663 function Is_Constructor (Id : E) return B is
1668 function Is_Controlled (Id : E) return B is
1670 return Flag42 (Base_Type (Id));
1673 function Is_Controlling_Formal (Id : E) return B is
1675 pragma Assert (Is_Formal (Id));
1677 end Is_Controlling_Formal;
1679 function Is_CPP_Class (Id : E) return B is
1684 function Is_Descendent_Of_Address (Id : E) return B is
1686 pragma Assert (Is_Type (Id));
1687 return Flag223 (Id);
1688 end Is_Descendent_Of_Address;
1690 function Is_Discrim_SO_Function (Id : E) return B is
1692 return Flag176 (Id);
1693 end Is_Discrim_SO_Function;
1695 function Is_Dispatch_Table_Entity (Id : E) return B is
1697 return Flag234 (Id);
1698 end Is_Dispatch_Table_Entity;
1700 function Is_Dispatching_Operation (Id : E) return B is
1702 pragma Assert (Nkind (Id) in N_Entity);
1704 end Is_Dispatching_Operation;
1706 function Is_Eliminated (Id : E) return B is
1708 return Flag124 (Id);
1711 function Is_Entry_Formal (Id : E) return B is
1714 end Is_Entry_Formal;
1716 function Is_Exported (Id : E) return B is
1721 function Is_First_Subtype (Id : E) return B is
1724 end Is_First_Subtype;
1726 function Is_For_Access_Subtype (Id : E) return B is
1728 pragma Assert (Ekind_In (Id, E_Record_Subtype, E_Private_Subtype));
1729 return Flag118 (Id);
1730 end Is_For_Access_Subtype;
1732 function Is_Formal_Subprogram (Id : E) return B is
1734 return Flag111 (Id);
1735 end Is_Formal_Subprogram;
1737 function Is_Frozen (Id : E) return B is
1742 function Is_Generic_Actual_Type (Id : E) return B is
1744 pragma Assert (Is_Type (Id));
1746 end Is_Generic_Actual_Type;
1748 function Is_Generic_Instance (Id : E) return B is
1750 return Flag130 (Id);
1751 end Is_Generic_Instance;
1753 function Is_Generic_Type (Id : E) return B is
1755 pragma Assert (Nkind (Id) in N_Entity);
1757 end Is_Generic_Type;
1759 function Is_Hidden (Id : E) return B is
1764 function Is_Hidden_Open_Scope (Id : E) return B is
1766 return Flag171 (Id);
1767 end Is_Hidden_Open_Scope;
1769 function Is_Immediately_Visible (Id : E) return B is
1771 pragma Assert (Nkind (Id) in N_Entity);
1773 end Is_Immediately_Visible;
1775 function Is_Imported (Id : E) return B is
1780 function Is_Inlined (Id : E) return B is
1785 function Is_Interface (Id : E) return B is
1787 return Flag186 (Id);
1790 function Is_Instantiated (Id : E) return B is
1792 return Flag126 (Id);
1793 end Is_Instantiated;
1795 function Is_Internal (Id : E) return B is
1797 pragma Assert (Nkind (Id) in N_Entity);
1801 function Is_Interrupt_Handler (Id : E) return B is
1803 pragma Assert (Nkind (Id) in N_Entity);
1805 end Is_Interrupt_Handler;
1807 function Is_Intrinsic_Subprogram (Id : E) return B is
1810 end Is_Intrinsic_Subprogram;
1812 function Is_Itype (Id : E) return B is
1817 function Is_Known_Non_Null (Id : E) return B is
1820 end Is_Known_Non_Null;
1822 function Is_Known_Null (Id : E) return B is
1824 return Flag204 (Id);
1827 function Is_Known_Valid (Id : E) return B is
1829 return Flag170 (Id);
1832 function Is_Limited_Composite (Id : E) return B is
1834 return Flag106 (Id);
1835 end Is_Limited_Composite;
1837 function Is_Limited_Interface (Id : E) return B is
1839 return Flag197 (Id);
1840 end Is_Limited_Interface;
1842 function Is_Limited_Record (Id : E) return B is
1845 end Is_Limited_Record;
1847 function Is_Machine_Code_Subprogram (Id : E) return B is
1849 pragma Assert (Is_Subprogram (Id));
1850 return Flag137 (Id);
1851 end Is_Machine_Code_Subprogram;
1853 function Is_Non_Static_Subtype (Id : E) return B is
1855 pragma Assert (Is_Type (Id));
1856 return Flag109 (Id);
1857 end Is_Non_Static_Subtype;
1859 function Is_Null_Init_Proc (Id : E) return B is
1861 pragma Assert (Ekind (Id) = E_Procedure);
1862 return Flag178 (Id);
1863 end Is_Null_Init_Proc;
1865 function Is_Obsolescent (Id : E) return B is
1867 return Flag153 (Id);
1870 function Is_Only_Out_Parameter (Id : E) return B is
1872 pragma Assert (Is_Formal (Id));
1873 return Flag226 (Id);
1874 end Is_Only_Out_Parameter;
1876 function Is_Optional_Parameter (Id : E) return B is
1878 pragma Assert (Is_Formal (Id));
1879 return Flag134 (Id);
1880 end Is_Optional_Parameter;
1882 function Is_Overriding_Operation (Id : E) return B is
1884 pragma Assert (Is_Subprogram (Id));
1886 end Is_Overriding_Operation;
1888 function Is_Package_Body_Entity (Id : E) return B is
1890 return Flag160 (Id);
1891 end Is_Package_Body_Entity;
1893 function Is_Packed (Id : E) return B is
1895 return Flag51 (Implementation_Base_Type (Id));
1898 function Is_Packed_Array_Type (Id : E) return B is
1900 return Flag138 (Id);
1901 end Is_Packed_Array_Type;
1903 function Is_Potentially_Use_Visible (Id : E) return B is
1905 pragma Assert (Nkind (Id) in N_Entity);
1907 end Is_Potentially_Use_Visible;
1909 function Is_Preelaborated (Id : E) return B is
1912 end Is_Preelaborated;
1914 function Is_Primitive (Id : E) return B is
1917 (Is_Overloadable (Id)
1918 or else Ekind_In (Id, E_Generic_Function, E_Generic_Procedure));
1919 return Flag218 (Id);
1922 function Is_Primitive_Wrapper (Id : E) return B is
1924 pragma Assert (Ekind_In (Id, E_Function, E_Procedure));
1925 return Flag195 (Id);
1926 end Is_Primitive_Wrapper;
1928 function Is_Private_Composite (Id : E) return B is
1930 pragma Assert (Is_Type (Id));
1931 return Flag107 (Id);
1932 end Is_Private_Composite;
1934 function Is_Private_Descendant (Id : E) return B is
1937 end Is_Private_Descendant;
1939 function Is_Private_Primitive (Id : E) return B is
1941 pragma Assert (Ekind_In (Id, E_Function, E_Procedure));
1942 return Flag245 (Id);
1943 end Is_Private_Primitive;
1945 function Is_Protected_Interface (Id : E) return B is
1947 pragma Assert (Is_Interface (Id));
1948 return Flag198 (Id);
1949 end Is_Protected_Interface;
1951 function Is_Public (Id : E) return B is
1953 pragma Assert (Nkind (Id) in N_Entity);
1957 function Is_Pure (Id : E) return B is
1962 function Is_Pure_Unit_Access_Type (Id : E) return B is
1964 pragma Assert (Is_Access_Type (Id));
1965 return Flag189 (Id);
1966 end Is_Pure_Unit_Access_Type;
1968 function Is_RACW_Stub_Type (Id : E) return B is
1970 pragma Assert (Is_Type (Id));
1971 return Flag244 (Id);
1972 end Is_RACW_Stub_Type;
1974 function Is_Raised (Id : E) return B is
1976 pragma Assert (Ekind (Id) = E_Exception);
1977 return Flag224 (Id);
1980 function Is_Remote_Call_Interface (Id : E) return B is
1983 end Is_Remote_Call_Interface;
1985 function Is_Remote_Types (Id : E) return B is
1988 end Is_Remote_Types;
1990 function Is_Renaming_Of_Object (Id : E) return B is
1992 return Flag112 (Id);
1993 end Is_Renaming_Of_Object;
1995 function Is_Return_Object (Id : E) return B is
1997 return Flag209 (Id);
1998 end Is_Return_Object;
2000 function Is_Shared_Passive (Id : E) return B is
2003 end Is_Shared_Passive;
2005 function Is_Statically_Allocated (Id : E) return B is
2008 end Is_Statically_Allocated;
2010 function Is_Synchronized_Interface (Id : E) return B is
2012 pragma Assert (Is_Interface (Id));
2013 return Flag199 (Id);
2014 end Is_Synchronized_Interface;
2016 function Is_Tag (Id : E) return B is
2018 pragma Assert (Nkind (Id) in N_Entity);
2022 function Is_Tagged_Type (Id : E) return B is
2027 function Is_Task_Interface (Id : E) return B is
2029 pragma Assert (Is_Interface (Id));
2030 return Flag200 (Id);
2031 end Is_Task_Interface;
2033 function Is_Thunk (Id : E) return B is
2035 pragma Assert (Is_Subprogram (Id));
2036 return Flag225 (Id);
2039 function Is_Trivial_Subprogram (Id : E) return B is
2041 return Flag235 (Id);
2042 end Is_Trivial_Subprogram;
2044 function Is_True_Constant (Id : E) return B is
2046 return Flag163 (Id);
2047 end Is_True_Constant;
2049 function Is_Unchecked_Union (Id : E) return B is
2051 return Flag117 (Implementation_Base_Type (Id));
2052 end Is_Unchecked_Union;
2054 function Is_Underlying_Record_View (Id : E) return B is
2056 return Flag246 (Id);
2057 end Is_Underlying_Record_View;
2059 function Is_Unsigned_Type (Id : E) return B is
2061 pragma Assert (Is_Type (Id));
2062 return Flag144 (Id);
2063 end Is_Unsigned_Type;
2065 function Is_Valued_Procedure (Id : E) return B is
2067 pragma Assert (Ekind (Id) = E_Procedure);
2068 return Flag127 (Id);
2069 end Is_Valued_Procedure;
2071 function Is_Visible_Child_Unit (Id : E) return B is
2073 pragma Assert (Is_Child_Unit (Id));
2074 return Flag116 (Id);
2075 end Is_Visible_Child_Unit;
2077 function Is_Visible_Formal (Id : E) return B is
2079 return Flag206 (Id);
2080 end Is_Visible_Formal;
2082 function Is_VMS_Exception (Id : E) return B is
2084 return Flag133 (Id);
2085 end Is_VMS_Exception;
2087 function Is_Volatile (Id : E) return B is
2089 pragma Assert (Nkind (Id) in N_Entity);
2091 if Is_Type (Id) then
2092 return Flag16 (Base_Type (Id));
2098 function Itype_Printed (Id : E) return B is
2100 pragma Assert (Is_Itype (Id));
2101 return Flag202 (Id);
2104 function Kill_Elaboration_Checks (Id : E) return B is
2107 end Kill_Elaboration_Checks;
2109 function Kill_Range_Checks (Id : E) return B is
2112 end Kill_Range_Checks;
2114 function Kill_Tag_Checks (Id : E) return B is
2117 end Kill_Tag_Checks;
2119 function Known_To_Have_Preelab_Init (Id : E) return B is
2121 pragma Assert (Is_Type (Id));
2122 return Flag207 (Id);
2123 end Known_To_Have_Preelab_Init;
2125 function Last_Assignment (Id : E) return N is
2127 pragma Assert (Is_Assignable (Id));
2129 end Last_Assignment;
2131 function Last_Entity (Id : E) return E is
2136 function Limited_View (Id : E) return E is
2138 pragma Assert (Ekind (Id) = E_Package);
2142 function Lit_Indexes (Id : E) return E is
2144 pragma Assert (Is_Enumeration_Type (Id));
2148 function Lit_Strings (Id : E) return E is
2150 pragma Assert (Is_Enumeration_Type (Id));
2154 function Low_Bound_Tested (Id : E) return B is
2156 return Flag205 (Id);
2157 end Low_Bound_Tested;
2159 function Machine_Radix_10 (Id : E) return B is
2161 pragma Assert (Is_Decimal_Fixed_Point_Type (Id));
2163 end Machine_Radix_10;
2165 function Master_Id (Id : E) return E is
2167 pragma Assert (Is_Access_Type (Id));
2171 function Materialize_Entity (Id : E) return B is
2173 return Flag168 (Id);
2174 end Materialize_Entity;
2176 function Mechanism (Id : E) return M is
2178 pragma Assert (Ekind (Id) = E_Function or else Is_Formal (Id));
2179 return UI_To_Int (Uint8 (Id));
2182 function Modulus (Id : E) return Uint is
2184 pragma Assert (Is_Modular_Integer_Type (Id));
2185 return Uint17 (Base_Type (Id));
2188 function Must_Be_On_Byte_Boundary (Id : E) return B is
2190 pragma Assert (Is_Type (Id));
2191 return Flag183 (Id);
2192 end Must_Be_On_Byte_Boundary;
2194 function Must_Have_Preelab_Init (Id : E) return B is
2196 pragma Assert (Is_Type (Id));
2197 return Flag208 (Id);
2198 end Must_Have_Preelab_Init;
2200 function Needs_Debug_Info (Id : E) return B is
2202 return Flag147 (Id);
2203 end Needs_Debug_Info;
2205 function Needs_No_Actuals (Id : E) return B is
2208 (Is_Overloadable (Id)
2209 or else Ekind_In (Id, E_Subprogram_Type, E_Entry_Family));
2211 end Needs_No_Actuals;
2213 function Never_Set_In_Source (Id : E) return B is
2215 return Flag115 (Id);
2216 end Never_Set_In_Source;
2218 function Next_Inlined_Subprogram (Id : E) return E is
2221 end Next_Inlined_Subprogram;
2223 function No_Pool_Assigned (Id : E) return B is
2225 pragma Assert (Is_Access_Type (Id));
2226 return Flag131 (Root_Type (Id));
2227 end No_Pool_Assigned;
2229 function No_Return (Id : E) return B is
2231 return Flag113 (Id);
2234 function No_Strict_Aliasing (Id : E) return B is
2236 pragma Assert (Is_Access_Type (Id));
2237 return Flag136 (Base_Type (Id));
2238 end No_Strict_Aliasing;
2240 function Non_Binary_Modulus (Id : E) return B is
2242 pragma Assert (Is_Type (Id));
2243 return Flag58 (Base_Type (Id));
2244 end Non_Binary_Modulus;
2246 function Non_Limited_View (Id : E) return E is
2248 pragma Assert (Ekind (Id) in Incomplete_Kind);
2250 end Non_Limited_View;
2252 function Nonzero_Is_True (Id : E) return B is
2254 pragma Assert (Root_Type (Id) = Standard_Boolean);
2255 return Flag162 (Base_Type (Id));
2256 end Nonzero_Is_True;
2258 function Normalized_First_Bit (Id : E) return U is
2260 pragma Assert (Ekind_In (Id, E_Component, E_Discriminant));
2262 end Normalized_First_Bit;
2264 function Normalized_Position (Id : E) return U is
2266 pragma Assert (Ekind_In (Id, E_Component, E_Discriminant));
2268 end Normalized_Position;
2270 function Normalized_Position_Max (Id : E) return U is
2272 pragma Assert (Ekind_In (Id, E_Component, E_Discriminant));
2274 end Normalized_Position_Max;
2276 function OK_To_Rename (Id : E) return B is
2278 pragma Assert (Ekind (Id) = E_Variable);
2279 return Flag247 (Id);
2282 function OK_To_Reorder_Components (Id : E) return B is
2284 pragma Assert (Is_Record_Type (Id));
2285 return Flag239 (Base_Type (Id));
2286 end OK_To_Reorder_Components;
2288 function Optimize_Alignment_Space (Id : E) return B is
2291 (Is_Type (Id) or else Ekind_In (Id, E_Constant, E_Variable));
2292 return Flag241 (Id);
2293 end Optimize_Alignment_Space;
2295 function Optimize_Alignment_Time (Id : E) return B is
2298 (Is_Type (Id) or else Ekind_In (Id, E_Constant, E_Variable));
2299 return Flag242 (Id);
2300 end Optimize_Alignment_Time;
2302 function Original_Array_Type (Id : E) return E is
2304 pragma Assert (Is_Array_Type (Id) or else Is_Modular_Integer_Type (Id));
2306 end Original_Array_Type;
2308 function Original_Record_Component (Id : E) return E is
2310 pragma Assert (Ekind_In (Id, E_Void, E_Component, E_Discriminant));
2312 end Original_Record_Component;
2314 function Overlays_Constant (Id : E) return B is
2316 return Flag243 (Id);
2317 end Overlays_Constant;
2319 function Overridden_Operation (Id : E) return E is
2322 end Overridden_Operation;
2324 function Package_Instantiation (Id : E) return N is
2326 pragma Assert (Ekind_In (Id, E_Package, E_Generic_Package));
2328 end Package_Instantiation;
2330 function Packed_Array_Type (Id : E) return E is
2332 pragma Assert (Is_Array_Type (Id));
2334 end Packed_Array_Type;
2336 function Parent_Subtype (Id : E) return E is
2338 pragma Assert (Is_Record_Type (Id));
2339 return Node19 (Base_Type (Id));
2342 function Postcondition_Proc (Id : E) return E is
2344 pragma Assert (Ekind (Id) = E_Procedure);
2346 end Postcondition_Proc;
2348 function Primitive_Operations (Id : E) return L is
2350 pragma Assert (Is_Tagged_Type (Id));
2351 return Elist15 (Id);
2352 end Primitive_Operations;
2354 function Prival (Id : E) return E is
2356 pragma Assert (Is_Protected_Component (Id));
2360 function Prival_Link (Id : E) return E is
2362 pragma Assert (Ekind_In (Id, E_Constant, E_Variable));
2366 function Private_Dependents (Id : E) return L is
2368 pragma Assert (Is_Incomplete_Or_Private_Type (Id));
2369 return Elist18 (Id);
2370 end Private_Dependents;
2372 function Private_View (Id : E) return N is
2374 pragma Assert (Is_Private_Type (Id));
2378 function Protected_Body_Subprogram (Id : E) return E is
2380 pragma Assert (Is_Subprogram (Id) or else Is_Entry (Id));
2382 end Protected_Body_Subprogram;
2384 function Protected_Formal (Id : E) return E is
2386 pragma Assert (Is_Formal (Id));
2388 end Protected_Formal;
2390 function Protection_Object (Id : E) return E is
2393 (Ekind_In (Id, E_Entry, E_Entry_Family, E_Function, E_Procedure));
2395 end Protection_Object;
2397 function Reachable (Id : E) return B is
2402 function Referenced (Id : E) return B is
2404 return Flag156 (Id);
2407 function Referenced_As_LHS (Id : E) return B is
2410 end Referenced_As_LHS;
2412 function Referenced_As_Out_Parameter (Id : E) return B is
2414 return Flag227 (Id);
2415 end Referenced_As_Out_Parameter;
2417 function Referenced_Object (Id : E) return N is
2419 pragma Assert (Is_Type (Id));
2421 end Referenced_Object;
2423 function Register_Exception_Call (Id : E) return N is
2425 pragma Assert (Ekind (Id) = E_Exception);
2427 end Register_Exception_Call;
2429 function Related_Array_Object (Id : E) return E is
2431 pragma Assert (Is_Array_Type (Id));
2433 end Related_Array_Object;
2435 function Related_Expression (Id : E) return N is
2437 pragma Assert (Ekind_In (Id, E_Constant, E_Variable));
2439 end Related_Expression;
2441 function Related_Instance (Id : E) return E is
2443 pragma Assert (Ekind_In (Id, E_Package, E_Package_Body));
2445 end Related_Instance;
2447 function Related_Type (Id : E) return E is
2449 pragma Assert (Ekind_In (Id, E_Component, E_Constant));
2453 function Relative_Deadline_Variable (Id : E) return E is
2455 pragma Assert (Is_Task_Type (Id));
2456 return Node26 (Implementation_Base_Type (Id));
2457 end Relative_Deadline_Variable;
2459 function Renamed_Entity (Id : E) return N is
2464 function Renamed_In_Spec (Id : E) return B is
2466 pragma Assert (Ekind (Id) = E_Package);
2467 return Flag231 (Id);
2468 end Renamed_In_Spec;
2470 function Renamed_Object (Id : E) return N is
2475 function Renaming_Map (Id : E) return U is
2480 function Requires_Overriding (Id : E) return B is
2482 pragma Assert (Is_Overloadable (Id));
2483 return Flag213 (Id);
2484 end Requires_Overriding;
2486 function Return_Present (Id : E) return B is
2491 function Return_Applies_To (Id : E) return N is
2494 end Return_Applies_To;
2496 function Returns_By_Ref (Id : E) return B is
2501 function Reverse_Bit_Order (Id : E) return B is
2503 pragma Assert (Is_Record_Type (Id));
2504 return Flag164 (Base_Type (Id));
2505 end Reverse_Bit_Order;
2507 function RM_Size (Id : E) return U is
2509 pragma Assert (Is_Type (Id));
2513 function Scalar_Range (Id : E) return N is
2518 function Scale_Value (Id : E) return U is
2523 function Scope_Depth_Value (Id : E) return U is
2526 end Scope_Depth_Value;
2528 function Sec_Stack_Needed_For_Return (Id : E) return B is
2530 return Flag167 (Id);
2531 end Sec_Stack_Needed_For_Return;
2533 function Shadow_Entities (Id : E) return S is
2535 pragma Assert (Ekind_In (Id, E_Package, E_Generic_Package));
2537 end Shadow_Entities;
2539 function Shared_Var_Procs_Instance (Id : E) return E is
2541 pragma Assert (Ekind (Id) = E_Variable);
2543 end Shared_Var_Procs_Instance;
2545 function Size_Check_Code (Id : E) return N is
2547 pragma Assert (Ekind_In (Id, E_Constant, E_Variable));
2549 end Size_Check_Code;
2551 function Size_Depends_On_Discriminant (Id : E) return B is
2553 return Flag177 (Id);
2554 end Size_Depends_On_Discriminant;
2556 function Size_Known_At_Compile_Time (Id : E) return B is
2559 end Size_Known_At_Compile_Time;
2561 function Small_Value (Id : E) return R is
2563 pragma Assert (Is_Fixed_Point_Type (Id));
2564 return Ureal21 (Id);
2567 function Spec_Entity (Id : E) return E is
2569 pragma Assert (Ekind (Id) = E_Package_Body or else Is_Formal (Id));
2573 function Spec_PPC_List (Id : E) return N is
2575 pragma Assert (Is_Subprogram (Id) or else Is_Generic_Subprogram (Id));
2579 function Storage_Size_Variable (Id : E) return E is
2581 pragma Assert (Is_Access_Type (Id) or else Is_Task_Type (Id));
2582 return Node15 (Implementation_Base_Type (Id));
2583 end Storage_Size_Variable;
2585 function Static_Elaboration_Desired (Id : E) return B is
2587 pragma Assert (Ekind (Id) = E_Package);
2589 end Static_Elaboration_Desired;
2591 function Static_Initialization (Id : E) return N is
2594 (Ekind (Id) = E_Procedure and then not Is_Dispatching_Operation (Id));
2596 end Static_Initialization;
2598 function Stored_Constraint (Id : E) return L is
2601 (Is_Composite_Type (Id) and then not Is_Array_Type (Id));
2602 return Elist23 (Id);
2603 end Stored_Constraint;
2605 function Strict_Alignment (Id : E) return B is
2607 return Flag145 (Implementation_Base_Type (Id));
2608 end Strict_Alignment;
2610 function String_Literal_Length (Id : E) return U is
2613 end String_Literal_Length;
2615 function String_Literal_Low_Bound (Id : E) return N is
2618 end String_Literal_Low_Bound;
2620 function Suppress_Elaboration_Warnings (Id : E) return B is
2622 return Flag148 (Id);
2623 end Suppress_Elaboration_Warnings;
2625 function Suppress_Init_Proc (Id : E) return B is
2627 return Flag105 (Base_Type (Id));
2628 end Suppress_Init_Proc;
2630 function Suppress_Style_Checks (Id : E) return B is
2632 return Flag165 (Id);
2633 end Suppress_Style_Checks;
2635 function Suppress_Value_Tracking_On_Call (Id : E) return B is
2637 return Flag217 (Id);
2638 end Suppress_Value_Tracking_On_Call;
2640 function Task_Body_Procedure (Id : E) return N is
2642 pragma Assert (Ekind (Id) in Task_Kind);
2644 end Task_Body_Procedure;
2646 function Treat_As_Volatile (Id : E) return B is
2649 end Treat_As_Volatile;
2651 function Underlying_Full_View (Id : E) return E is
2653 pragma Assert (Ekind (Id) in Private_Kind);
2655 end Underlying_Full_View;
2657 function Underlying_Record_View (Id : E) return E is
2660 end Underlying_Record_View;
2662 function Universal_Aliasing (Id : E) return B is
2664 pragma Assert (Is_Type (Id));
2665 return Flag216 (Base_Type (Id));
2666 end Universal_Aliasing;
2668 function Unset_Reference (Id : E) return N is
2671 end Unset_Reference;
2673 function Used_As_Generic_Actual (Id : E) return B is
2675 return Flag222 (Id);
2676 end Used_As_Generic_Actual;
2678 function Uses_Sec_Stack (Id : E) return B is
2683 function Vax_Float (Id : E) return B is
2685 return Flag151 (Base_Type (Id));
2688 function Warnings_Off (Id : E) return B is
2693 function Warnings_Off_Used (Id : E) return B is
2695 return Flag236 (Id);
2696 end Warnings_Off_Used;
2698 function Warnings_Off_Used_Unmodified (Id : E) return B is
2700 return Flag237 (Id);
2701 end Warnings_Off_Used_Unmodified;
2703 function Warnings_Off_Used_Unreferenced (Id : E) return B is
2705 return Flag238 (Id);
2706 end Warnings_Off_Used_Unreferenced;
2708 function Wrapped_Entity (Id : E) return E is
2710 pragma Assert (Ekind_In (Id, E_Function, E_Procedure)
2711 and then Is_Primitive_Wrapper (Id));
2715 function Was_Hidden (Id : E) return B is
2717 return Flag196 (Id);
2720 ------------------------------
2721 -- Classification Functions --
2722 ------------------------------
2724 function Is_Access_Type (Id : E) return B is
2726 return Ekind (Id) in Access_Kind;
2729 function Is_Access_Protected_Subprogram_Type (Id : E) return B is
2731 return Ekind (Id) in Access_Protected_Kind;
2732 end Is_Access_Protected_Subprogram_Type;
2734 function Is_Access_Subprogram_Type (Id : E) return B is
2736 return Ekind (Id) in Access_Subprogram_Kind;
2737 end Is_Access_Subprogram_Type;
2739 function Is_Array_Type (Id : E) return B is
2741 return Ekind (Id) in Array_Kind;
2744 function Is_Assignable (Id : E) return B is
2746 return Ekind (Id) in Assignable_Kind;
2749 function Is_Class_Wide_Type (Id : E) return B is
2751 return Ekind (Id) in Class_Wide_Kind;
2752 end Is_Class_Wide_Type;
2754 function Is_Composite_Type (Id : E) return B is
2756 return Ekind (Id) in Composite_Kind;
2757 end Is_Composite_Type;
2759 function Is_Concurrent_Body (Id : E) return B is
2761 return Ekind (Id) in
2762 Concurrent_Body_Kind;
2763 end Is_Concurrent_Body;
2765 function Is_Concurrent_Record_Type (Id : E) return B is
2768 end Is_Concurrent_Record_Type;
2770 function Is_Concurrent_Type (Id : E) return B is
2772 return Ekind (Id) in Concurrent_Kind;
2773 end Is_Concurrent_Type;
2775 function Is_Decimal_Fixed_Point_Type (Id : E) return B is
2777 return Ekind (Id) in
2778 Decimal_Fixed_Point_Kind;
2779 end Is_Decimal_Fixed_Point_Type;
2781 function Is_Digits_Type (Id : E) return B is
2783 return Ekind (Id) in Digits_Kind;
2786 function Is_Discrete_Or_Fixed_Point_Type (Id : E) return B is
2788 return Ekind (Id) in Discrete_Or_Fixed_Point_Kind;
2789 end Is_Discrete_Or_Fixed_Point_Type;
2791 function Is_Discrete_Type (Id : E) return B is
2793 return Ekind (Id) in Discrete_Kind;
2794 end Is_Discrete_Type;
2796 function Is_Elementary_Type (Id : E) return B is
2798 return Ekind (Id) in Elementary_Kind;
2799 end Is_Elementary_Type;
2801 function Is_Entry (Id : E) return B is
2803 return Ekind (Id) in Entry_Kind;
2806 function Is_Enumeration_Type (Id : E) return B is
2808 return Ekind (Id) in
2810 end Is_Enumeration_Type;
2812 function Is_Fixed_Point_Type (Id : E) return B is
2814 return Ekind (Id) in
2816 end Is_Fixed_Point_Type;
2818 function Is_Floating_Point_Type (Id : E) return B is
2820 return Ekind (Id) in Float_Kind;
2821 end Is_Floating_Point_Type;
2823 function Is_Formal (Id : E) return B is
2825 return Ekind (Id) in Formal_Kind;
2828 function Is_Formal_Object (Id : E) return B is
2830 return Ekind (Id) in Formal_Object_Kind;
2831 end Is_Formal_Object;
2833 function Is_Generic_Subprogram (Id : E) return B is
2835 return Ekind (Id) in Generic_Subprogram_Kind;
2836 end Is_Generic_Subprogram;
2838 function Is_Generic_Unit (Id : E) return B is
2840 return Ekind (Id) in Generic_Unit_Kind;
2841 end Is_Generic_Unit;
2843 function Is_Incomplete_Or_Private_Type (Id : E) return B is
2845 return Ekind (Id) in
2846 Incomplete_Or_Private_Kind;
2847 end Is_Incomplete_Or_Private_Type;
2849 function Is_Incomplete_Type (Id : E) return B is
2851 return Ekind (Id) in
2853 end Is_Incomplete_Type;
2855 function Is_Integer_Type (Id : E) return B is
2857 return Ekind (Id) in Integer_Kind;
2858 end Is_Integer_Type;
2860 function Is_Modular_Integer_Type (Id : E) return B is
2862 return Ekind (Id) in
2863 Modular_Integer_Kind;
2864 end Is_Modular_Integer_Type;
2866 function Is_Named_Number (Id : E) return B is
2868 return Ekind (Id) in Named_Kind;
2869 end Is_Named_Number;
2871 function Is_Numeric_Type (Id : E) return B is
2873 return Ekind (Id) in Numeric_Kind;
2874 end Is_Numeric_Type;
2876 function Is_Object (Id : E) return B is
2878 return Ekind (Id) in Object_Kind;
2881 function Is_Ordinary_Fixed_Point_Type (Id : E) return B is
2883 return Ekind (Id) in
2884 Ordinary_Fixed_Point_Kind;
2885 end Is_Ordinary_Fixed_Point_Type;
2887 function Is_Overloadable (Id : E) return B is
2889 return Ekind (Id) in Overloadable_Kind;
2890 end Is_Overloadable;
2892 function Is_Private_Type (Id : E) return B is
2894 return Ekind (Id) in Private_Kind;
2895 end Is_Private_Type;
2897 function Is_Protected_Type (Id : E) return B is
2899 return Ekind (Id) in Protected_Kind;
2900 end Is_Protected_Type;
2902 function Is_Real_Type (Id : E) return B is
2904 return Ekind (Id) in Real_Kind;
2907 function Is_Record_Type (Id : E) return B is
2909 return Ekind (Id) in Record_Kind;
2912 function Is_Scalar_Type (Id : E) return B is
2914 return Ekind (Id) in Scalar_Kind;
2917 function Is_Signed_Integer_Type (Id : E) return B is
2919 return Ekind (Id) in Signed_Integer_Kind;
2920 end Is_Signed_Integer_Type;
2922 function Is_Subprogram (Id : E) return B is
2924 return Ekind (Id) in Subprogram_Kind;
2927 function Is_Task_Type (Id : E) return B is
2929 return Ekind (Id) in Task_Kind;
2932 function Is_Type (Id : E) return B is
2934 return Ekind (Id) in Type_Kind;
2937 ------------------------------
2938 -- Attribute Set Procedures --
2939 ------------------------------
2941 procedure Set_Accept_Address (Id : E; V : L) is
2943 Set_Elist21 (Id, V);
2944 end Set_Accept_Address;
2946 procedure Set_Access_Disp_Table (Id : E; V : L) is
2948 pragma Assert (Is_Tagged_Type (Id) and then Id = Base_Type (Id));
2949 Set_Elist16 (Id, V);
2950 end Set_Access_Disp_Table;
2952 procedure Set_Associated_Final_Chain (Id : E; V : E) is
2954 pragma Assert (Is_Access_Type (Id));
2956 end Set_Associated_Final_Chain;
2958 procedure Set_Associated_Formal_Package (Id : E; V : E) is
2961 end Set_Associated_Formal_Package;
2963 procedure Set_Associated_Node_For_Itype (Id : E; V : E) is
2966 end Set_Associated_Node_For_Itype;
2968 procedure Set_Associated_Storage_Pool (Id : E; V : E) is
2970 pragma Assert (Is_Access_Type (Id) and then Id = Base_Type (Id));
2972 end Set_Associated_Storage_Pool;
2974 procedure Set_Actual_Subtype (Id : E; V : E) is
2977 (Ekind_In (Id, E_Constant, E_Variable, E_Generic_In_Out_Parameter)
2978 or else Is_Formal (Id));
2980 end Set_Actual_Subtype;
2982 procedure Set_Address_Taken (Id : E; V : B := True) is
2984 Set_Flag104 (Id, V);
2985 end Set_Address_Taken;
2987 procedure Set_Alias (Id : E; V : E) is
2990 (Is_Overloadable (Id) or else Ekind (Id) = E_Subprogram_Type);
2994 procedure Set_Alignment (Id : E; V : U) is
2996 pragma Assert (Is_Type (Id)
2997 or else Is_Formal (Id)
2998 or else Ekind_In (Id, E_Loop_Parameter,
3005 procedure Set_Barrier_Function (Id : E; V : N) is
3007 pragma Assert (Is_Entry (Id));
3009 end Set_Barrier_Function;
3011 procedure Set_Block_Node (Id : E; V : N) is
3013 pragma Assert (Ekind (Id) = E_Block);
3017 procedure Set_Body_Entity (Id : E; V : E) is
3019 pragma Assert (Ekind_In (Id, E_Package, E_Generic_Package));
3021 end Set_Body_Entity;
3023 procedure Set_Body_Needed_For_SAL (Id : E; V : B := True) is
3026 (Ekind (Id) = E_Package
3027 or else Is_Subprogram (Id)
3028 or else Is_Generic_Unit (Id));
3030 end Set_Body_Needed_For_SAL;
3032 procedure Set_C_Pass_By_Copy (Id : E; V : B := True) is
3034 pragma Assert (Is_Record_Type (Id) and then Id = Base_Type (Id));
3035 Set_Flag125 (Id, V);
3036 end Set_C_Pass_By_Copy;
3038 procedure Set_Can_Never_Be_Null (Id : E; V : B := True) is
3041 end Set_Can_Never_Be_Null;
3043 procedure Set_Checks_May_Be_Suppressed (Id : E; V : B := True) is
3046 end Set_Checks_May_Be_Suppressed;
3048 procedure Set_Class_Wide_Type (Id : E; V : E) is
3050 pragma Assert (Is_Type (Id));
3052 end Set_Class_Wide_Type;
3054 procedure Set_Cloned_Subtype (Id : E; V : E) is
3056 pragma Assert (Ekind_In (Id, E_Record_Subtype, E_Class_Wide_Subtype));
3058 end Set_Cloned_Subtype;
3060 procedure Set_Component_Bit_Offset (Id : E; V : U) is
3062 pragma Assert (Ekind_In (Id, E_Component, E_Discriminant));
3064 end Set_Component_Bit_Offset;
3066 procedure Set_Component_Clause (Id : E; V : N) is
3068 pragma Assert (Ekind_In (Id, E_Component, E_Discriminant));
3070 end Set_Component_Clause;
3072 procedure Set_Component_Size (Id : E; V : U) is
3074 pragma Assert (Is_Array_Type (Id) and then Id = Base_Type (Id));
3076 end Set_Component_Size;
3078 procedure Set_Component_Type (Id : E; V : E) is
3080 pragma Assert (Is_Array_Type (Id) and then Id = Base_Type (Id));
3082 end Set_Component_Type;
3084 procedure Set_Corresponding_Concurrent_Type (Id : E; V : E) is
3087 (Ekind (Id) = E_Record_Type and then Is_Concurrent_Type (V));
3089 end Set_Corresponding_Concurrent_Type;
3091 procedure Set_Corresponding_Discriminant (Id : E; V : E) is
3093 pragma Assert (Ekind (Id) = E_Discriminant);
3095 end Set_Corresponding_Discriminant;
3097 procedure Set_Corresponding_Equality (Id : E; V : E) is
3100 (Ekind (Id) = E_Function
3101 and then not Comes_From_Source (Id)
3102 and then Chars (Id) = Name_Op_Ne);
3104 end Set_Corresponding_Equality;
3106 procedure Set_Corresponding_Record_Type (Id : E; V : E) is
3108 pragma Assert (Is_Concurrent_Type (Id));
3110 end Set_Corresponding_Record_Type;
3112 procedure Set_Corresponding_Remote_Type (Id : E; V : E) is
3115 end Set_Corresponding_Remote_Type;
3117 procedure Set_Current_Use_Clause (Id : E; V : E) is
3119 pragma Assert (Ekind (Id) = E_Package or else Is_Type (Id));
3121 end Set_Current_Use_Clause;
3123 procedure Set_Current_Value (Id : E; V : N) is
3125 pragma Assert (Ekind (Id) in Object_Kind or else Ekind (Id) = E_Void);
3127 end Set_Current_Value;
3129 procedure Set_CR_Discriminant (Id : E; V : E) is
3132 end Set_CR_Discriminant;
3134 procedure Set_Debug_Info_Off (Id : E; V : B := True) is
3136 Set_Flag166 (Id, V);
3137 end Set_Debug_Info_Off;
3139 procedure Set_Debug_Renaming_Link (Id : E; V : E) is
3142 end Set_Debug_Renaming_Link;
3144 procedure Set_Default_Expr_Function (Id : E; V : E) is
3146 pragma Assert (Is_Formal (Id));
3148 end Set_Default_Expr_Function;
3150 procedure Set_Default_Expressions_Processed (Id : E; V : B := True) is
3152 Set_Flag108 (Id, V);
3153 end Set_Default_Expressions_Processed;
3155 procedure Set_Default_Value (Id : E; V : N) is
3157 pragma Assert (Is_Formal (Id));
3159 end Set_Default_Value;
3161 procedure Set_Delay_Cleanups (Id : E; V : B := True) is
3165 or else Is_Task_Type (Id)
3166 or else Ekind (Id) = E_Block);
3167 Set_Flag114 (Id, V);
3168 end Set_Delay_Cleanups;
3170 procedure Set_Delay_Subprogram_Descriptors (Id : E; V : B := True) is
3173 (Is_Subprogram (Id) or else Ekind_In (Id, E_Package, E_Package_Body));
3175 end Set_Delay_Subprogram_Descriptors;
3177 procedure Set_Delta_Value (Id : E; V : R) is
3179 pragma Assert (Is_Fixed_Point_Type (Id));
3180 Set_Ureal18 (Id, V);
3181 end Set_Delta_Value;
3183 procedure Set_Dependent_Instances (Id : E; V : L) is
3185 pragma Assert (Is_Generic_Instance (Id));
3187 end Set_Dependent_Instances;
3189 procedure Set_Depends_On_Private (Id : E; V : B := True) is
3191 pragma Assert (Nkind (Id) in N_Entity);
3193 end Set_Depends_On_Private;
3195 procedure Set_Digits_Value (Id : E; V : U) is
3198 (Is_Floating_Point_Type (Id)
3199 or else Is_Decimal_Fixed_Point_Type (Id));
3201 end Set_Digits_Value;
3203 procedure Set_Directly_Designated_Type (Id : E; V : E) is
3206 end Set_Directly_Designated_Type;
3208 procedure Set_Discard_Names (Id : E; V : B := True) is
3211 end Set_Discard_Names;
3213 procedure Set_Discriminal (Id : E; V : E) is
3215 pragma Assert (Ekind (Id) = E_Discriminant);
3217 end Set_Discriminal;
3219 procedure Set_Discriminal_Link (Id : E; V : E) is
3222 end Set_Discriminal_Link;
3224 procedure Set_Discriminant_Checking_Func (Id : E; V : E) is
3226 pragma Assert (Ekind (Id) = E_Component);
3228 end Set_Discriminant_Checking_Func;
3230 procedure Set_Discriminant_Constraint (Id : E; V : L) is
3232 pragma Assert (Nkind (Id) in N_Entity);
3233 Set_Elist21 (Id, V);
3234 end Set_Discriminant_Constraint;
3236 procedure Set_Discriminant_Default_Value (Id : E; V : N) is
3239 end Set_Discriminant_Default_Value;
3241 procedure Set_Discriminant_Number (Id : E; V : U) is
3244 end Set_Discriminant_Number;
3246 procedure Set_Dispatch_Table_Wrappers (Id : E; V : L) is
3248 pragma Assert (Is_Tagged_Type (Id) and then Id = Base_Type (Id));
3249 Set_Elist26 (Id, V);
3250 end Set_Dispatch_Table_Wrappers;
3252 procedure Set_DT_Entry_Count (Id : E; V : U) is
3254 pragma Assert (Ekind (Id) = E_Component);
3256 end Set_DT_Entry_Count;
3258 procedure Set_DT_Offset_To_Top_Func (Id : E; V : E) is
3260 pragma Assert (Ekind (Id) = E_Component and then Is_Tag (Id));
3262 end Set_DT_Offset_To_Top_Func;
3264 procedure Set_DT_Position (Id : E; V : U) is
3266 pragma Assert (Ekind_In (Id, E_Function, E_Procedure));
3268 end Set_DT_Position;
3270 procedure Set_DTC_Entity (Id : E; V : E) is
3272 pragma Assert (Ekind_In (Id, E_Function, E_Procedure));
3276 procedure Set_Elaborate_Body_Desirable (Id : E; V : B := True) is
3278 pragma Assert (Ekind (Id) = E_Package);
3279 Set_Flag210 (Id, V);
3280 end Set_Elaborate_Body_Desirable;
3282 procedure Set_Elaboration_Entity (Id : E; V : E) is
3287 Ekind (Id) = E_Package
3289 Is_Generic_Unit (Id));
3291 end Set_Elaboration_Entity;
3293 procedure Set_Elaboration_Entity_Required (Id : E; V : B := True) is
3298 Ekind (Id) = E_Package
3300 Is_Generic_Unit (Id));
3301 Set_Flag174 (Id, V);
3302 end Set_Elaboration_Entity_Required;
3304 procedure Set_Enclosing_Scope (Id : E; V : E) is
3307 end Set_Enclosing_Scope;
3309 procedure Set_Entry_Accepted (Id : E; V : B := True) is
3311 pragma Assert (Is_Entry (Id));
3312 Set_Flag152 (Id, V);
3313 end Set_Entry_Accepted;
3315 procedure Set_Entry_Bodies_Array (Id : E; V : E) is
3318 end Set_Entry_Bodies_Array;
3320 procedure Set_Entry_Cancel_Parameter (Id : E; V : E) is
3323 end Set_Entry_Cancel_Parameter;
3325 procedure Set_Entry_Component (Id : E; V : E) is
3328 end Set_Entry_Component;
3330 procedure Set_Entry_Formal (Id : E; V : E) is
3333 end Set_Entry_Formal;
3335 procedure Set_Entry_Index_Constant (Id : E; V : E) is
3337 pragma Assert (Ekind (Id) = E_Entry_Index_Parameter);
3339 end Set_Entry_Index_Constant;
3341 procedure Set_Entry_Parameters_Type (Id : E; V : E) is
3344 end Set_Entry_Parameters_Type;
3346 procedure Set_Enum_Pos_To_Rep (Id : E; V : E) is
3348 pragma Assert (Ekind (Id) = E_Enumeration_Type);
3350 end Set_Enum_Pos_To_Rep;
3352 procedure Set_Enumeration_Pos (Id : E; V : U) is
3354 pragma Assert (Ekind (Id) = E_Enumeration_Literal);
3356 end Set_Enumeration_Pos;
3358 procedure Set_Enumeration_Rep (Id : E; V : U) is
3360 pragma Assert (Ekind (Id) = E_Enumeration_Literal);
3362 end Set_Enumeration_Rep;
3364 procedure Set_Enumeration_Rep_Expr (Id : E; V : N) is
3366 pragma Assert (Ekind (Id) = E_Enumeration_Literal);
3368 end Set_Enumeration_Rep_Expr;
3370 procedure Set_Equivalent_Type (Id : E; V : E) is
3373 (Ekind_In (Id, E_Class_Wide_Type,
3374 E_Class_Wide_Subtype,
3375 E_Access_Protected_Subprogram_Type,
3376 E_Anonymous_Access_Protected_Subprogram_Type,
3377 E_Access_Subprogram_Type,
3380 end Set_Equivalent_Type;
3382 procedure Set_Esize (Id : E; V : U) is
3387 procedure Set_Exception_Code (Id : E; V : U) is
3389 pragma Assert (Ekind (Id) = E_Exception);
3391 end Set_Exception_Code;
3393 procedure Set_Extra_Accessibility (Id : E; V : E) is
3395 pragma Assert (Is_Formal (Id) or else Ekind (Id) = E_Variable);
3397 end Set_Extra_Accessibility;
3399 procedure Set_Extra_Constrained (Id : E; V : E) is
3401 pragma Assert (Is_Formal (Id) or else Ekind (Id) = E_Variable);
3403 end Set_Extra_Constrained;
3405 procedure Set_Extra_Formal (Id : E; V : E) is
3408 end Set_Extra_Formal;
3410 procedure Set_Extra_Formals (Id : E; V : E) is
3413 (Is_Overloadable (Id)
3414 or else Ekind_In (Id, E_Entry_Family,
3416 E_Subprogram_Type));
3418 end Set_Extra_Formals;
3420 procedure Set_Can_Use_Internal_Rep (Id : E; V : B := True) is
3423 (Is_Access_Subprogram_Type (Id)
3424 and then Id = Base_Type (Id));
3425 Set_Flag229 (Id, V);
3426 end Set_Can_Use_Internal_Rep;
3428 procedure Set_Finalization_Chain_Entity (Id : E; V : E) is
3431 end Set_Finalization_Chain_Entity;
3433 procedure Set_Finalize_Storage_Only (Id : E; V : B := True) is
3435 pragma Assert (Is_Type (Id) and then Id = Base_Type (Id));
3436 Set_Flag158 (Id, V);
3437 end Set_Finalize_Storage_Only;
3439 procedure Set_First_Entity (Id : E; V : E) is
3442 end Set_First_Entity;
3444 procedure Set_First_Exit_Statement (Id : E; V : N) is
3446 pragma Assert (Ekind (Id) = E_Loop);
3448 end Set_First_Exit_Statement;
3450 procedure Set_First_Index (Id : E; V : N) is
3452 pragma Assert (Is_Array_Type (Id) or else Is_String_Type (Id));
3454 end Set_First_Index;
3456 procedure Set_First_Literal (Id : E; V : E) is
3458 pragma Assert (Is_Enumeration_Type (Id));
3460 end Set_First_Literal;
3462 procedure Set_First_Optional_Parameter (Id : E; V : E) is
3464 pragma Assert (Ekind_In (Id, E_Function, E_Procedure));
3466 end Set_First_Optional_Parameter;
3468 procedure Set_First_Private_Entity (Id : E; V : E) is
3470 pragma Assert (Ekind_In (Id, E_Package, E_Generic_Package)
3471 or else Ekind (Id) in Concurrent_Kind);
3473 end Set_First_Private_Entity;
3475 procedure Set_First_Rep_Item (Id : E; V : N) is
3478 end Set_First_Rep_Item;
3480 procedure Set_Freeze_Node (Id : E; V : N) is
3483 end Set_Freeze_Node;
3485 procedure Set_From_With_Type (Id : E; V : B := True) is
3489 or else Ekind (Id) = E_Package);
3490 Set_Flag159 (Id, V);
3491 end Set_From_With_Type;
3493 procedure Set_Full_View (Id : E; V : E) is
3495 pragma Assert (Is_Type (Id) or else Ekind (Id) = E_Constant);
3499 procedure Set_Generic_Homonym (Id : E; V : E) is
3502 end Set_Generic_Homonym;
3504 procedure Set_Generic_Renamings (Id : E; V : L) is
3506 Set_Elist23 (Id, V);
3507 end Set_Generic_Renamings;
3509 procedure Set_Handler_Records (Id : E; V : S) is
3512 end Set_Handler_Records;
3514 procedure Set_Has_Aliased_Components (Id : E; V : B := True) is
3516 pragma Assert (Id = Base_Type (Id));
3517 Set_Flag135 (Id, V);
3518 end Set_Has_Aliased_Components;
3520 procedure Set_Has_Alignment_Clause (Id : E; V : B := True) is
3523 end Set_Has_Alignment_Clause;
3525 procedure Set_Has_All_Calls_Remote (Id : E; V : B := True) is
3528 end Set_Has_All_Calls_Remote;
3530 procedure Set_Has_Anon_Block_Suffix (Id : E; V : B := True) is
3532 Set_Flag201 (Id, V);
3533 end Set_Has_Anon_Block_Suffix;
3535 procedure Set_Has_Atomic_Components (Id : E; V : B := True) is
3537 pragma Assert (not Is_Type (Id) or else Id = Base_Type (Id));
3539 end Set_Has_Atomic_Components;
3541 procedure Set_Has_Biased_Representation (Id : E; V : B := True) is
3544 ((V = False) or else (Is_Discrete_Type (Id) or else Is_Object (Id)));
3545 Set_Flag139 (Id, V);
3546 end Set_Has_Biased_Representation;
3548 procedure Set_Has_Completion (Id : E; V : B := True) is
3551 end Set_Has_Completion;
3553 procedure Set_Has_Completion_In_Body (Id : E; V : B := True) is
3555 pragma Assert (Is_Type (Id));
3557 end Set_Has_Completion_In_Body;
3559 procedure Set_Has_Complex_Representation (Id : E; V : B := True) is
3561 pragma Assert (Ekind (Id) = E_Record_Type);
3562 Set_Flag140 (Id, V);
3563 end Set_Has_Complex_Representation;
3565 procedure Set_Has_Component_Size_Clause (Id : E; V : B := True) is
3567 pragma Assert (Ekind (Id) = E_Array_Type);
3569 end Set_Has_Component_Size_Clause;
3571 procedure Set_Has_Constrained_Partial_View (Id : E; V : B := True) is
3573 pragma Assert (Is_Type (Id));
3574 Set_Flag187 (Id, V);
3575 end Set_Has_Constrained_Partial_View;
3577 procedure Set_Has_Contiguous_Rep (Id : E; V : B := True) is
3579 Set_Flag181 (Id, V);
3580 end Set_Has_Contiguous_Rep;
3582 procedure Set_Has_Controlled_Component (Id : E; V : B := True) is
3584 pragma Assert (Id = Base_Type (Id));
3586 end Set_Has_Controlled_Component;
3588 procedure Set_Has_Controlling_Result (Id : E; V : B := True) is
3591 end Set_Has_Controlling_Result;
3593 procedure Set_Has_Convention_Pragma (Id : E; V : B := True) is
3595 Set_Flag119 (Id, V);
3596 end Set_Has_Convention_Pragma;
3598 procedure Set_Has_Delayed_Freeze (Id : E; V : B := True) is
3600 pragma Assert (Nkind (Id) in N_Entity);
3602 end Set_Has_Delayed_Freeze;
3604 procedure Set_Has_Discriminants (Id : E; V : B := True) is
3606 pragma Assert (Nkind (Id) in N_Entity);
3608 end Set_Has_Discriminants;
3610 procedure Set_Has_Dispatch_Table (Id : E; V : B := True) is
3612 pragma Assert (Ekind (Id) = E_Record_Type
3613 and then Is_Tagged_Type (Id));
3614 Set_Flag220 (Id, V);
3615 end Set_Has_Dispatch_Table;
3617 procedure Set_Has_Enumeration_Rep_Clause (Id : E; V : B := True) is
3619 pragma Assert (Is_Enumeration_Type (Id));
3621 end Set_Has_Enumeration_Rep_Clause;
3623 procedure Set_Has_Exit (Id : E; V : B := True) is
3628 procedure Set_Has_External_Tag_Rep_Clause (Id : E; V : B := True) is
3630 pragma Assert (Is_Tagged_Type (Id));
3631 Set_Flag110 (Id, V);
3632 end Set_Has_External_Tag_Rep_Clause;
3634 procedure Set_Has_Forward_Instantiation (Id : E; V : B := True) is
3636 Set_Flag175 (Id, V);
3637 end Set_Has_Forward_Instantiation;
3639 procedure Set_Has_Fully_Qualified_Name (Id : E; V : B := True) is
3641 Set_Flag173 (Id, V);
3642 end Set_Has_Fully_Qualified_Name;
3644 procedure Set_Has_Gigi_Rep_Item (Id : E; V : B := True) is
3647 end Set_Has_Gigi_Rep_Item;
3649 procedure Set_Has_Homonym (Id : E; V : B := True) is
3652 end Set_Has_Homonym;
3654 procedure Set_Has_Initial_Value (Id : E; V : B := True) is
3656 pragma Assert (Ekind_In (Id, E_Variable, E_Out_Parameter));
3657 Set_Flag219 (Id, V);
3658 end Set_Has_Initial_Value;
3660 procedure Set_Has_Machine_Radix_Clause (Id : E; V : B := True) is
3662 pragma Assert (Is_Decimal_Fixed_Point_Type (Id));
3664 end Set_Has_Machine_Radix_Clause;
3666 procedure Set_Has_Master_Entity (Id : E; V : B := True) is
3669 end Set_Has_Master_Entity;
3671 procedure Set_Has_Missing_Return (Id : E; V : B := True) is
3673 pragma Assert (Ekind_In (Id, E_Function, E_Generic_Function));
3674 Set_Flag142 (Id, V);
3675 end Set_Has_Missing_Return;
3677 procedure Set_Has_Nested_Block_With_Handler (Id : E; V : B := True) is
3679 Set_Flag101 (Id, V);
3680 end Set_Has_Nested_Block_With_Handler;
3682 procedure Set_Has_Up_Level_Access (Id : E; V : B := True) is
3684 pragma Assert (Ekind_In (Id, E_Variable, E_Constant, E_Loop_Parameter));
3685 Set_Flag215 (Id, V);
3686 end Set_Has_Up_Level_Access;
3688 procedure Set_Has_Non_Standard_Rep (Id : E; V : B := True) is
3690 pragma Assert (Id = Base_Type (Id));
3692 end Set_Has_Non_Standard_Rep;
3694 procedure Set_Has_Object_Size_Clause (Id : E; V : B := True) is
3696 pragma Assert (Is_Type (Id));
3697 Set_Flag172 (Id, V);
3698 end Set_Has_Object_Size_Clause;
3700 procedure Set_Has_Per_Object_Constraint (Id : E; V : B := True) is
3702 Set_Flag154 (Id, V);
3703 end Set_Has_Per_Object_Constraint;
3705 procedure Set_Has_Persistent_BSS (Id : E; V : B := True) is
3707 Set_Flag188 (Id, V);
3708 end Set_Has_Persistent_BSS;
3710 procedure Set_Has_Postconditions (Id : E; V : B := True) is
3712 pragma Assert (Is_Subprogram (Id));
3713 Set_Flag240 (Id, V);
3714 end Set_Has_Postconditions;
3716 procedure Set_Has_Pragma_Controlled (Id : E; V : B := True) is
3718 pragma Assert (Is_Access_Type (Id));
3719 Set_Flag27 (Base_Type (Id), V);
3720 end Set_Has_Pragma_Controlled;
3722 procedure Set_Has_Pragma_Elaborate_Body (Id : E; V : B := True) is
3724 Set_Flag150 (Id, V);
3725 end Set_Has_Pragma_Elaborate_Body;
3727 procedure Set_Has_Pragma_Inline (Id : E; V : B := True) is
3729 Set_Flag157 (Id, V);
3730 end Set_Has_Pragma_Inline;
3732 procedure Set_Has_Pragma_Inline_Always (Id : E; V : B := True) is
3734 Set_Flag230 (Id, V);
3735 end Set_Has_Pragma_Inline_Always;
3737 procedure Set_Has_Pragma_Pack (Id : E; V : B := True) is
3739 pragma Assert (Is_Array_Type (Id) or else Is_Record_Type (Id));
3740 pragma Assert (Id = Base_Type (Id));
3741 Set_Flag121 (Id, V);
3742 end Set_Has_Pragma_Pack;
3744 procedure Set_Has_Pragma_Preelab_Init (Id : E; V : B := True) is
3746 Set_Flag221 (Id, V);
3747 end Set_Has_Pragma_Preelab_Init;
3749 procedure Set_Has_Pragma_Pure (Id : E; V : B := True) is
3751 Set_Flag203 (Id, V);
3752 end Set_Has_Pragma_Pure;
3754 procedure Set_Has_Pragma_Pure_Function (Id : E; V : B := True) is
3756 Set_Flag179 (Id, V);
3757 end Set_Has_Pragma_Pure_Function;
3759 procedure Set_Has_Pragma_Thread_Local_Storage (Id : E; V : B := True) is
3761 Set_Flag169 (Id, V);
3762 end Set_Has_Pragma_Thread_Local_Storage;
3764 procedure Set_Has_Pragma_Unmodified (Id : E; V : B := True) is
3766 Set_Flag233 (Id, V);
3767 end Set_Has_Pragma_Unmodified;
3769 procedure Set_Has_Pragma_Unreferenced (Id : E; V : B := True) is
3771 Set_Flag180 (Id, V);
3772 end Set_Has_Pragma_Unreferenced;
3774 procedure Set_Has_Pragma_Unreferenced_Objects (Id : E; V : B := True) is
3776 pragma Assert (Is_Type (Id));
3777 Set_Flag212 (Id, V);
3778 end Set_Has_Pragma_Unreferenced_Objects;
3780 procedure Set_Has_Primitive_Operations (Id : E; V : B := True) is
3782 pragma Assert (Id = Base_Type (Id));
3783 Set_Flag120 (Id, V);
3784 end Set_Has_Primitive_Operations;
3786 procedure Set_Has_Private_Declaration (Id : E; V : B := True) is
3788 Set_Flag155 (Id, V);
3789 end Set_Has_Private_Declaration;
3791 procedure Set_Has_Qualified_Name (Id : E; V : B := True) is
3793 Set_Flag161 (Id, V);
3794 end Set_Has_Qualified_Name;
3796 procedure Set_Has_RACW (Id : E; V : B := True) is
3798 pragma Assert (Ekind (Id) = E_Package);
3799 Set_Flag214 (Id, V);
3802 procedure Set_Has_Record_Rep_Clause (Id : E; V : B := True) is
3804 pragma Assert (Id = Base_Type (Id));
3806 end Set_Has_Record_Rep_Clause;
3808 procedure Set_Has_Recursive_Call (Id : E; V : B := True) is
3810 pragma Assert (Is_Subprogram (Id));
3811 Set_Flag143 (Id, V);
3812 end Set_Has_Recursive_Call;
3814 procedure Set_Has_Size_Clause (Id : E; V : B := True) is
3817 end Set_Has_Size_Clause;
3819 procedure Set_Has_Small_Clause (Id : E; V : B := True) is
3822 end Set_Has_Small_Clause;
3824 procedure Set_Has_Specified_Layout (Id : E; V : B := True) is
3826 pragma Assert (Id = Base_Type (Id));
3827 Set_Flag100 (Id, V);
3828 end Set_Has_Specified_Layout;
3830 procedure Set_Has_Specified_Stream_Input (Id : E; V : B := True) is
3832 pragma Assert (Is_Type (Id));
3833 Set_Flag190 (Id, V);
3834 end Set_Has_Specified_Stream_Input;
3836 procedure Set_Has_Specified_Stream_Output (Id : E; V : B := True) is
3838 pragma Assert (Is_Type (Id));
3839 Set_Flag191 (Id, V);
3840 end Set_Has_Specified_Stream_Output;
3842 procedure Set_Has_Specified_Stream_Read (Id : E; V : B := True) is
3844 pragma Assert (Is_Type (Id));
3845 Set_Flag192 (Id, V);
3846 end Set_Has_Specified_Stream_Read;
3848 procedure Set_Has_Specified_Stream_Write (Id : E; V : B := True) is
3850 pragma Assert (Is_Type (Id));
3851 Set_Flag193 (Id, V);
3852 end Set_Has_Specified_Stream_Write;
3854 procedure Set_Has_Static_Discriminants (Id : E; V : B := True) is
3856 Set_Flag211 (Id, V);
3857 end Set_Has_Static_Discriminants;
3859 procedure Set_Has_Storage_Size_Clause (Id : E; V : B := True) is
3861 pragma Assert (Is_Access_Type (Id) or else Is_Task_Type (Id));
3862 pragma Assert (Id = Base_Type (Id));
3864 end Set_Has_Storage_Size_Clause;
3866 procedure Set_Has_Stream_Size_Clause (Id : E; V : B := True) is
3868 pragma Assert (Is_Elementary_Type (Id));
3869 Set_Flag184 (Id, V);
3870 end Set_Has_Stream_Size_Clause;
3872 procedure Set_Has_Subprogram_Descriptor (Id : E; V : B := True) is
3875 end Set_Has_Subprogram_Descriptor;
3877 procedure Set_Has_Task (Id : E; V : B := True) is
3879 pragma Assert (Id = Base_Type (Id));
3883 procedure Set_Has_Thunks (Id : E; V : B := True) is
3885 pragma Assert (Is_Tag (Id)
3886 and then Ekind (Id) = E_Constant);
3887 Set_Flag228 (Id, V);
3890 procedure Set_Has_Unchecked_Union (Id : E; V : B := True) is
3892 pragma Assert (Id = Base_Type (Id));
3893 Set_Flag123 (Id, V);
3894 end Set_Has_Unchecked_Union;
3896 procedure Set_Has_Unknown_Discriminants (Id : E; V : B := True) is
3898 pragma Assert (Is_Type (Id));
3900 end Set_Has_Unknown_Discriminants;
3902 procedure Set_Has_Volatile_Components (Id : E; V : B := True) is
3904 pragma Assert (not Is_Type (Id) or else Id = Base_Type (Id));
3906 end Set_Has_Volatile_Components;
3908 procedure Set_Has_Xref_Entry (Id : E; V : B := True) is
3910 Set_Flag182 (Id, V);
3911 end Set_Has_Xref_Entry;
3913 procedure Set_Hiding_Loop_Variable (Id : E; V : E) is
3915 pragma Assert (Ekind (Id) = E_Variable);
3917 end Set_Hiding_Loop_Variable;
3919 procedure Set_Homonym (Id : E; V : E) is
3921 pragma Assert (Id /= V);
3925 procedure Set_Implemented_By_Entry (Id : E; V : B := True) is
3927 pragma Assert (Ekind_In (Id, E_Function, E_Procedure));
3928 Set_Flag232 (Id, V);
3929 end Set_Implemented_By_Entry;
3931 procedure Set_Interfaces (Id : E; V : L) is
3933 pragma Assert (Is_Record_Type (Id));
3934 Set_Elist25 (Id, V);
3937 procedure Set_Interface_Alias (Id : E; V : E) is
3941 and then Is_Hidden (Id)
3942 and then (Ekind_In (Id, E_Procedure, E_Function)));
3944 end Set_Interface_Alias;
3946 procedure Set_In_Package_Body (Id : E; V : B := True) is
3949 end Set_In_Package_Body;
3951 procedure Set_In_Private_Part (Id : E; V : B := True) is
3954 end Set_In_Private_Part;
3956 procedure Set_In_Use (Id : E; V : B := True) is
3958 pragma Assert (Nkind (Id) in N_Entity);
3962 procedure Set_Inner_Instances (Id : E; V : L) is
3964 Set_Elist23 (Id, V);
3965 end Set_Inner_Instances;
3967 procedure Set_Interface_Name (Id : E; V : N) is
3970 end Set_Interface_Name;
3972 procedure Set_Is_Abstract_Subprogram (Id : E; V : B := True) is
3974 pragma Assert (Is_Overloadable (Id));
3976 end Set_Is_Abstract_Subprogram;
3978 procedure Set_Is_Abstract_Type (Id : E; V : B := True) is
3980 pragma Assert (Is_Type (Id));
3981 Set_Flag146 (Id, V);
3982 end Set_Is_Abstract_Type;
3984 procedure Set_Is_Local_Anonymous_Access (Id : E; V : B := True) is
3986 pragma Assert (Is_Access_Type (Id));
3987 Set_Flag194 (Id, V);
3988 end Set_Is_Local_Anonymous_Access;
3990 procedure Set_Is_Access_Constant (Id : E; V : B := True) is
3992 pragma Assert (Is_Access_Type (Id));
3994 end Set_Is_Access_Constant;
3996 procedure Set_Is_Ada_2005_Only (Id : E; V : B := True) is
3998 Set_Flag185 (Id, V);
3999 end Set_Is_Ada_2005_Only;
4001 procedure Set_Is_Aliased (Id : E; V : B := True) is
4003 pragma Assert (Nkind (Id) in N_Entity);
4007 procedure Set_Is_AST_Entry (Id : E; V : B := True) is
4009 pragma Assert (Is_Entry (Id));
4010 Set_Flag132 (Id, V);
4011 end Set_Is_AST_Entry;
4013 procedure Set_Is_Asynchronous (Id : E; V : B := True) is
4016 (Ekind (Id) = E_Procedure or else Is_Type (Id));
4018 end Set_Is_Asynchronous;
4020 procedure Set_Is_Atomic (Id : E; V : B := True) is
4025 procedure Set_Is_Bit_Packed_Array (Id : E; V : B := True) is
4027 pragma Assert ((not V)
4028 or else (Is_Array_Type (Id) and then Id = Base_Type (Id)));
4030 Set_Flag122 (Id, V);
4031 end Set_Is_Bit_Packed_Array;
4033 procedure Set_Is_Called (Id : E; V : B := True) is
4035 pragma Assert (Ekind_In (Id, E_Procedure, E_Function));
4036 Set_Flag102 (Id, V);
4039 procedure Set_Is_Character_Type (Id : E; V : B := True) is
4042 end Set_Is_Character_Type;
4044 procedure Set_Is_Child_Unit (Id : E; V : B := True) is
4047 end Set_Is_Child_Unit;
4049 procedure Set_Is_Class_Wide_Equivalent_Type (Id : E; V : B := True) is
4052 end Set_Is_Class_Wide_Equivalent_Type;
4054 procedure Set_Is_Compilation_Unit (Id : E; V : B := True) is
4056 Set_Flag149 (Id, V);
4057 end Set_Is_Compilation_Unit;
4059 procedure Set_Is_Completely_Hidden (Id : E; V : B := True) is
4061 pragma Assert (Ekind (Id) = E_Discriminant);
4062 Set_Flag103 (Id, V);
4063 end Set_Is_Completely_Hidden;
4065 procedure Set_Is_Concurrent_Record_Type (Id : E; V : B := True) is
4068 end Set_Is_Concurrent_Record_Type;
4070 procedure Set_Is_Constr_Subt_For_U_Nominal (Id : E; V : B := True) is
4073 end Set_Is_Constr_Subt_For_U_Nominal;
4075 procedure Set_Is_Constr_Subt_For_UN_Aliased (Id : E; V : B := True) is
4077 Set_Flag141 (Id, V);
4078 end Set_Is_Constr_Subt_For_UN_Aliased;
4080 procedure Set_Is_Constrained (Id : E; V : B := True) is
4082 pragma Assert (Nkind (Id) in N_Entity);
4084 end Set_Is_Constrained;
4086 procedure Set_Is_Constructor (Id : E; V : B := True) is
4089 end Set_Is_Constructor;
4091 procedure Set_Is_Controlled (Id : E; V : B := True) is
4093 pragma Assert (Id = Base_Type (Id));
4095 end Set_Is_Controlled;
4097 procedure Set_Is_Controlling_Formal (Id : E; V : B := True) is
4099 pragma Assert (Is_Formal (Id));
4101 end Set_Is_Controlling_Formal;
4103 procedure Set_Is_CPP_Class (Id : E; V : B := True) is
4106 end Set_Is_CPP_Class;
4108 procedure Set_Is_Descendent_Of_Address (Id : E; V : B := True) is
4110 pragma Assert (Is_Type (Id));
4111 Set_Flag223 (Id, V);
4112 end Set_Is_Descendent_Of_Address;
4114 procedure Set_Is_Discrim_SO_Function (Id : E; V : B := True) is
4116 Set_Flag176 (Id, V);
4117 end Set_Is_Discrim_SO_Function;
4119 procedure Set_Is_Dispatch_Table_Entity (Id : E; V : B := True) is
4121 Set_Flag234 (Id, V);
4122 end Set_Is_Dispatch_Table_Entity;
4124 procedure Set_Is_Dispatching_Operation (Id : E; V : B := True) is
4129 Is_Overloadable (Id)
4131 Ekind (Id) = E_Subprogram_Type);
4134 end Set_Is_Dispatching_Operation;
4136 procedure Set_Is_Eliminated (Id : E; V : B := True) is
4138 Set_Flag124 (Id, V);
4139 end Set_Is_Eliminated;
4141 procedure Set_Is_Entry_Formal (Id : E; V : B := True) is
4144 end Set_Is_Entry_Formal;
4146 procedure Set_Is_Exported (Id : E; V : B := True) is
4149 end Set_Is_Exported;
4151 procedure Set_Is_First_Subtype (Id : E; V : B := True) is
4154 end Set_Is_First_Subtype;
4156 procedure Set_Is_For_Access_Subtype (Id : E; V : B := True) is
4158 pragma Assert (Ekind_In (Id, E_Record_Subtype, E_Private_Subtype));
4159 Set_Flag118 (Id, V);
4160 end Set_Is_For_Access_Subtype;
4162 procedure Set_Is_Formal_Subprogram (Id : E; V : B := True) is
4164 Set_Flag111 (Id, V);
4165 end Set_Is_Formal_Subprogram;
4167 procedure Set_Is_Frozen (Id : E; V : B := True) is
4169 pragma Assert (Nkind (Id) in N_Entity);
4173 procedure Set_Is_Generic_Actual_Type (Id : E; V : B := True) is
4175 pragma Assert (Is_Type (Id));
4177 end Set_Is_Generic_Actual_Type;
4179 procedure Set_Is_Generic_Instance (Id : E; V : B := True) is
4181 Set_Flag130 (Id, V);
4182 end Set_Is_Generic_Instance;
4184 procedure Set_Is_Generic_Type (Id : E; V : B := True) is
4186 pragma Assert (Nkind (Id) in N_Entity);
4188 end Set_Is_Generic_Type;
4190 procedure Set_Is_Hidden (Id : E; V : B := True) is
4195 procedure Set_Is_Hidden_Open_Scope (Id : E; V : B := True) is
4197 Set_Flag171 (Id, V);
4198 end Set_Is_Hidden_Open_Scope;
4200 procedure Set_Is_Immediately_Visible (Id : E; V : B := True) is
4202 pragma Assert (Nkind (Id) in N_Entity);
4204 end Set_Is_Immediately_Visible;
4206 procedure Set_Is_Imported (Id : E; V : B := True) is
4209 end Set_Is_Imported;
4211 procedure Set_Is_Inlined (Id : E; V : B := True) is
4216 procedure Set_Is_Interface (Id : E; V : B := True) is
4219 (Ekind_In (Id, E_Record_Type,
4221 E_Record_Type_With_Private,
4222 E_Record_Subtype_With_Private,
4224 E_Class_Wide_Subtype));
4225 Set_Flag186 (Id, V);
4226 end Set_Is_Interface;
4228 procedure Set_Is_Instantiated (Id : E; V : B := True) is
4230 Set_Flag126 (Id, V);
4231 end Set_Is_Instantiated;
4233 procedure Set_Is_Internal (Id : E; V : B := True) is
4235 pragma Assert (Nkind (Id) in N_Entity);
4237 end Set_Is_Internal;
4239 procedure Set_Is_Interrupt_Handler (Id : E; V : B := True) is
4241 pragma Assert (Nkind (Id) in N_Entity);
4243 end Set_Is_Interrupt_Handler;
4245 procedure Set_Is_Intrinsic_Subprogram (Id : E; V : B := True) is
4248 end Set_Is_Intrinsic_Subprogram;
4250 procedure Set_Is_Itype (Id : E; V : B := True) is
4255 procedure Set_Is_Known_Non_Null (Id : E; V : B := True) is
4258 end Set_Is_Known_Non_Null;
4260 procedure Set_Is_Known_Null (Id : E; V : B := True) is
4262 Set_Flag204 (Id, V);
4263 end Set_Is_Known_Null;
4265 procedure Set_Is_Known_Valid (Id : E; V : B := True) is
4267 Set_Flag170 (Id, V);
4268 end Set_Is_Known_Valid;
4270 procedure Set_Is_Limited_Composite (Id : E; V : B := True) is
4272 pragma Assert (Is_Type (Id));
4273 Set_Flag106 (Id, V);
4274 end Set_Is_Limited_Composite;
4276 procedure Set_Is_Limited_Interface (Id : E; V : B := True) is
4278 pragma Assert (Is_Interface (Id));
4279 Set_Flag197 (Id, V);
4280 end Set_Is_Limited_Interface;
4282 procedure Set_Is_Limited_Record (Id : E; V : B := True) is
4285 end Set_Is_Limited_Record;
4287 procedure Set_Is_Machine_Code_Subprogram (Id : E; V : B := True) is
4289 pragma Assert (Is_Subprogram (Id));
4290 Set_Flag137 (Id, V);
4291 end Set_Is_Machine_Code_Subprogram;
4293 procedure Set_Is_Non_Static_Subtype (Id : E; V : B := True) is
4295 pragma Assert (Is_Type (Id));
4296 Set_Flag109 (Id, V);
4297 end Set_Is_Non_Static_Subtype;
4299 procedure Set_Is_Null_Init_Proc (Id : E; V : B := True) is
4301 pragma Assert (Ekind (Id) = E_Procedure);
4302 Set_Flag178 (Id, V);
4303 end Set_Is_Null_Init_Proc;
4305 procedure Set_Is_Obsolescent (Id : E; V : B := True) is
4307 Set_Flag153 (Id, V);
4308 end Set_Is_Obsolescent;
4310 procedure Set_Is_Only_Out_Parameter (Id : E; V : B := True) is
4312 pragma Assert (Ekind (Id) = E_Out_Parameter);
4313 Set_Flag226 (Id, V);
4314 end Set_Is_Only_Out_Parameter;
4316 procedure Set_Is_Optional_Parameter (Id : E; V : B := True) is
4318 pragma Assert (Is_Formal (Id));
4319 Set_Flag134 (Id, V);
4320 end Set_Is_Optional_Parameter;
4322 procedure Set_Is_Overriding_Operation (Id : E; V : B := True) is
4324 pragma Assert (Is_Subprogram (Id));
4326 end Set_Is_Overriding_Operation;
4328 procedure Set_Is_Package_Body_Entity (Id : E; V : B := True) is
4330 Set_Flag160 (Id, V);
4331 end Set_Is_Package_Body_Entity;
4333 procedure Set_Is_Packed (Id : E; V : B := True) is
4335 pragma Assert (Id = Base_Type (Id));
4339 procedure Set_Is_Packed_Array_Type (Id : E; V : B := True) is
4341 Set_Flag138 (Id, V);
4342 end Set_Is_Packed_Array_Type;
4344 procedure Set_Is_Potentially_Use_Visible (Id : E; V : B := True) is
4346 pragma Assert (Nkind (Id) in N_Entity);
4348 end Set_Is_Potentially_Use_Visible;
4350 procedure Set_Is_Preelaborated (Id : E; V : B := True) is
4353 end Set_Is_Preelaborated;
4355 procedure Set_Is_Primitive (Id : E; V : B := True) is
4358 (Is_Overloadable (Id)
4359 or else Ekind_In (Id, E_Generic_Function, E_Generic_Procedure));
4360 Set_Flag218 (Id, V);
4361 end Set_Is_Primitive;
4363 procedure Set_Is_Primitive_Wrapper (Id : E; V : B := True) is
4365 pragma Assert (Ekind_In (Id, E_Function, E_Procedure));
4366 Set_Flag195 (Id, V);
4367 end Set_Is_Primitive_Wrapper;
4369 procedure Set_Is_Private_Composite (Id : E; V : B := True) is
4371 pragma Assert (Is_Type (Id));
4372 Set_Flag107 (Id, V);
4373 end Set_Is_Private_Composite;
4375 procedure Set_Is_Private_Descendant (Id : E; V : B := True) is
4378 end Set_Is_Private_Descendant;
4380 procedure Set_Is_Private_Primitive (Id : E; V : B := True) is
4382 pragma Assert (Ekind_In (Id, E_Function, E_Procedure));
4383 Set_Flag245 (Id, V);
4384 end Set_Is_Private_Primitive;
4386 procedure Set_Is_Protected_Interface (Id : E; V : B := True) is
4388 pragma Assert (Is_Interface (Id));
4389 Set_Flag198 (Id, V);
4390 end Set_Is_Protected_Interface;
4392 procedure Set_Is_Public (Id : E; V : B := True) is
4394 pragma Assert (Nkind (Id) in N_Entity);
4398 procedure Set_Is_Pure (Id : E; V : B := True) is
4403 procedure Set_Is_Pure_Unit_Access_Type (Id : E; V : B := True) is
4405 pragma Assert (Is_Access_Type (Id));
4406 Set_Flag189 (Id, V);
4407 end Set_Is_Pure_Unit_Access_Type;
4409 procedure Set_Is_RACW_Stub_Type (Id : E; V : B := True) is
4411 pragma Assert (Is_Type (Id));
4412 Set_Flag244 (Id, V);
4413 end Set_Is_RACW_Stub_Type;
4415 procedure Set_Is_Raised (Id : E; V : B := True) is
4417 pragma Assert (Ekind (Id) = E_Exception);
4418 Set_Flag224 (Id, V);
4421 procedure Set_Is_Remote_Call_Interface (Id : E; V : B := True) is
4424 end Set_Is_Remote_Call_Interface;
4426 procedure Set_Is_Remote_Types (Id : E; V : B := True) is
4429 end Set_Is_Remote_Types;
4431 procedure Set_Is_Renaming_Of_Object (Id : E; V : B := True) is
4433 Set_Flag112 (Id, V);
4434 end Set_Is_Renaming_Of_Object;
4436 procedure Set_Is_Return_Object (Id : E; V : B := True) is
4438 Set_Flag209 (Id, V);
4439 end Set_Is_Return_Object;
4441 procedure Set_Is_Shared_Passive (Id : E; V : B := True) is
4444 end Set_Is_Shared_Passive;
4446 procedure Set_Is_Statically_Allocated (Id : E; V : B := True) is
4450 or else Ekind_In (Id, E_Exception,
4455 end Set_Is_Statically_Allocated;
4457 procedure Set_Is_Synchronized_Interface (Id : E; V : B := True) is
4459 pragma Assert (Is_Interface (Id));
4460 Set_Flag199 (Id, V);
4461 end Set_Is_Synchronized_Interface;
4463 procedure Set_Is_Tag (Id : E; V : B := True) is
4465 pragma Assert (Ekind_In (Id, E_Component, E_Constant));
4469 procedure Set_Is_Tagged_Type (Id : E; V : B := True) is
4472 end Set_Is_Tagged_Type;
4474 procedure Set_Is_Task_Interface (Id : E; V : B := True) is
4476 pragma Assert (Is_Interface (Id));
4477 Set_Flag200 (Id, V);
4478 end Set_Is_Task_Interface;
4480 procedure Set_Is_Thunk (Id : E; V : B := True) is
4482 Set_Flag225 (Id, V);
4485 procedure Set_Is_Trivial_Subprogram (Id : E; V : B := True) is
4487 Set_Flag235 (Id, V);
4488 end Set_Is_Trivial_Subprogram;
4490 procedure Set_Is_True_Constant (Id : E; V : B := True) is
4492 Set_Flag163 (Id, V);
4493 end Set_Is_True_Constant;
4495 procedure Set_Is_Unchecked_Union (Id : E; V : B := True) is
4497 pragma Assert (Id = Base_Type (Id));
4498 Set_Flag117 (Id, V);
4499 end Set_Is_Unchecked_Union;
4501 procedure Set_Is_Underlying_Record_View (Id : E; V : B := True) is
4503 pragma Assert (Ekind (Id) = E_Record_Type);
4504 Set_Flag246 (Id, V);
4505 end Set_Is_Underlying_Record_View;
4507 procedure Set_Is_Unsigned_Type (Id : E; V : B := True) is
4509 pragma Assert (Is_Discrete_Or_Fixed_Point_Type (Id));
4510 Set_Flag144 (Id, V);
4511 end Set_Is_Unsigned_Type;
4513 procedure Set_Is_Valued_Procedure (Id : E; V : B := True) is
4515 pragma Assert (Ekind (Id) = E_Procedure);
4516 Set_Flag127 (Id, V);
4517 end Set_Is_Valued_Procedure;
4519 procedure Set_Is_Visible_Child_Unit (Id : E; V : B := True) is
4521 pragma Assert (Is_Child_Unit (Id));
4522 Set_Flag116 (Id, V);
4523 end Set_Is_Visible_Child_Unit;
4525 procedure Set_Is_Visible_Formal (Id : E; V : B := True) is
4527 Set_Flag206 (Id, V);
4528 end Set_Is_Visible_Formal;
4530 procedure Set_Is_VMS_Exception (Id : E; V : B := True) is
4532 pragma Assert (Ekind (Id) = E_Exception);
4533 Set_Flag133 (Id, V);
4534 end Set_Is_VMS_Exception;
4536 procedure Set_Is_Volatile (Id : E; V : B := True) is
4538 pragma Assert (Nkind (Id) in N_Entity);
4540 end Set_Is_Volatile;
4542 procedure Set_Itype_Printed (Id : E; V : B := True) is
4544 pragma Assert (Is_Itype (Id));
4545 Set_Flag202 (Id, V);
4546 end Set_Itype_Printed;
4548 procedure Set_Kill_Elaboration_Checks (Id : E; V : B := True) is
4551 end Set_Kill_Elaboration_Checks;
4553 procedure Set_Kill_Range_Checks (Id : E; V : B := True) is
4556 end Set_Kill_Range_Checks;
4558 procedure Set_Kill_Tag_Checks (Id : E; V : B := True) is
4561 end Set_Kill_Tag_Checks;
4563 procedure Set_Known_To_Have_Preelab_Init (Id : E; V : B := True) is
4565 pragma Assert (Is_Type (Id));
4566 Set_Flag207 (Id, V);
4567 end Set_Known_To_Have_Preelab_Init;
4569 procedure Set_Last_Assignment (Id : E; V : N) is
4571 pragma Assert (Is_Assignable (Id));
4573 end Set_Last_Assignment;
4575 procedure Set_Last_Entity (Id : E; V : E) is
4578 end Set_Last_Entity;
4580 procedure Set_Limited_View (Id : E; V : E) is
4582 pragma Assert (Ekind (Id) = E_Package);
4584 end Set_Limited_View;
4586 procedure Set_Lit_Indexes (Id : E; V : E) is
4588 pragma Assert (Is_Enumeration_Type (Id) and then Root_Type (Id) = Id);
4590 end Set_Lit_Indexes;
4592 procedure Set_Lit_Strings (Id : E; V : E) is
4594 pragma Assert (Is_Enumeration_Type (Id) and then Root_Type (Id) = Id);
4596 end Set_Lit_Strings;
4598 procedure Set_Low_Bound_Tested (Id : E; V : B := True) is
4600 pragma Assert (Is_Formal (Id));
4601 Set_Flag205 (Id, V);
4602 end Set_Low_Bound_Tested;
4604 procedure Set_Machine_Radix_10 (Id : E; V : B := True) is
4606 pragma Assert (Is_Decimal_Fixed_Point_Type (Id));
4608 end Set_Machine_Radix_10;
4610 procedure Set_Master_Id (Id : E; V : E) is
4612 pragma Assert (Is_Access_Type (Id));
4616 procedure Set_Materialize_Entity (Id : E; V : B := True) is
4618 Set_Flag168 (Id, V);
4619 end Set_Materialize_Entity;
4621 procedure Set_Mechanism (Id : E; V : M) is
4623 pragma Assert (Ekind (Id) = E_Function or else Is_Formal (Id));
4624 Set_Uint8 (Id, UI_From_Int (V));
4627 procedure Set_Modulus (Id : E; V : U) is
4629 pragma Assert (Ekind (Id) = E_Modular_Integer_Type);
4633 procedure Set_Must_Be_On_Byte_Boundary (Id : E; V : B := True) is
4635 pragma Assert (Is_Type (Id));
4636 Set_Flag183 (Id, V);
4637 end Set_Must_Be_On_Byte_Boundary;
4639 procedure Set_Must_Have_Preelab_Init (Id : E; V : B := True) is
4641 pragma Assert (Is_Type (Id));
4642 Set_Flag208 (Id, V);
4643 end Set_Must_Have_Preelab_Init;
4645 procedure Set_Needs_Debug_Info (Id : E; V : B := True) is
4647 Set_Flag147 (Id, V);
4648 end Set_Needs_Debug_Info;
4650 procedure Set_Needs_No_Actuals (Id : E; V : B := True) is
4653 (Is_Overloadable (Id)
4654 or else Ekind_In (Id, E_Subprogram_Type, E_Entry_Family));
4656 end Set_Needs_No_Actuals;
4658 procedure Set_Never_Set_In_Source (Id : E; V : B := True) is
4660 Set_Flag115 (Id, V);
4661 end Set_Never_Set_In_Source;
4663 procedure Set_Next_Inlined_Subprogram (Id : E; V : E) is
4666 end Set_Next_Inlined_Subprogram;
4668 procedure Set_No_Pool_Assigned (Id : E; V : B := True) is
4670 pragma Assert (Is_Access_Type (Id) and then Id = Base_Type (Id));
4671 Set_Flag131 (Id, V);
4672 end Set_No_Pool_Assigned;
4674 procedure Set_No_Return (Id : E; V : B := True) is
4677 (V = False or else Ekind_In (Id, E_Procedure, E_Generic_Procedure));
4678 Set_Flag113 (Id, V);
4681 procedure Set_No_Strict_Aliasing (Id : E; V : B := True) is
4683 pragma Assert (Is_Access_Type (Id) and then Id = Base_Type (Id));
4684 Set_Flag136 (Id, V);
4685 end Set_No_Strict_Aliasing;
4687 procedure Set_Non_Binary_Modulus (Id : E; V : B := True) is
4689 pragma Assert (Is_Type (Id) and then Id = Base_Type (Id));
4691 end Set_Non_Binary_Modulus;
4693 procedure Set_Non_Limited_View (Id : E; V : E) is
4695 pragma Assert (Ekind (Id) in Incomplete_Kind);
4697 end Set_Non_Limited_View;
4699 procedure Set_Nonzero_Is_True (Id : E; V : B := True) is
4702 (Root_Type (Id) = Standard_Boolean
4703 and then Ekind (Id) = E_Enumeration_Type);
4704 Set_Flag162 (Id, V);
4705 end Set_Nonzero_Is_True;
4707 procedure Set_Normalized_First_Bit (Id : E; V : U) is
4709 pragma Assert (Ekind_In (Id, E_Component, E_Discriminant));
4711 end Set_Normalized_First_Bit;
4713 procedure Set_Normalized_Position (Id : E; V : U) is
4715 pragma Assert (Ekind_In (Id, E_Component, E_Discriminant));
4717 end Set_Normalized_Position;
4719 procedure Set_Normalized_Position_Max (Id : E; V : U) is
4721 pragma Assert (Ekind_In (Id, E_Component, E_Discriminant));
4723 end Set_Normalized_Position_Max;
4725 procedure Set_OK_To_Rename (Id : E; V : B := True) is
4727 pragma Assert (Ekind (Id) = E_Variable);
4728 Set_Flag247 (Id, V);
4729 end Set_OK_To_Rename;
4731 procedure Set_OK_To_Reorder_Components (Id : E; V : B := True) is
4734 (Is_Record_Type (Id) and then Id = Base_Type (Id));
4735 Set_Flag239 (Id, V);
4736 end Set_OK_To_Reorder_Components;
4738 procedure Set_Optimize_Alignment_Space (Id : E; V : B := True) is
4741 (Is_Type (Id) or else Ekind_In (Id, E_Constant, E_Variable));
4742 Set_Flag241 (Id, V);
4743 end Set_Optimize_Alignment_Space;
4745 procedure Set_Optimize_Alignment_Time (Id : E; V : B := True) is
4748 (Is_Type (Id) or else Ekind_In (Id, E_Constant, E_Variable));
4749 Set_Flag242 (Id, V);
4750 end Set_Optimize_Alignment_Time;
4752 procedure Set_Original_Array_Type (Id : E; V : E) is
4754 pragma Assert (Is_Array_Type (Id) or else Is_Modular_Integer_Type (Id));
4756 end Set_Original_Array_Type;
4758 procedure Set_Original_Record_Component (Id : E; V : E) is
4760 pragma Assert (Ekind_In (Id, E_Void, E_Component, E_Discriminant));
4762 end Set_Original_Record_Component;
4764 procedure Set_Overlays_Constant (Id : E; V : B := True) is
4766 Set_Flag243 (Id, V);
4767 end Set_Overlays_Constant;
4769 procedure Set_Overridden_Operation (Id : E; V : E) is
4772 end Set_Overridden_Operation;
4774 procedure Set_Package_Instantiation (Id : E; V : N) is
4776 pragma Assert (Ekind_In (Id, E_Void, E_Generic_Package, E_Package));
4778 end Set_Package_Instantiation;
4780 procedure Set_Packed_Array_Type (Id : E; V : E) is
4782 pragma Assert (Is_Array_Type (Id));
4784 end Set_Packed_Array_Type;
4786 procedure Set_Parent_Subtype (Id : E; V : E) is
4788 pragma Assert (Ekind (Id) = E_Record_Type);
4790 end Set_Parent_Subtype;
4792 procedure Set_Postcondition_Proc (Id : E; V : E) is
4794 pragma Assert (Ekind (Id) = E_Procedure);
4796 end Set_Postcondition_Proc;
4798 procedure Set_Primitive_Operations (Id : E; V : L) is
4800 pragma Assert (Is_Tagged_Type (Id));
4801 Set_Elist15 (Id, V);
4802 end Set_Primitive_Operations;
4804 procedure Set_Prival (Id : E; V : E) is
4806 pragma Assert (Is_Protected_Component (Id));
4810 procedure Set_Prival_Link (Id : E; V : E) is
4812 pragma Assert (Ekind_In (Id, E_Constant, E_Variable));
4814 end Set_Prival_Link;
4816 procedure Set_Private_Dependents (Id : E; V : L) is
4818 pragma Assert (Is_Incomplete_Or_Private_Type (Id));
4819 Set_Elist18 (Id, V);
4820 end Set_Private_Dependents;
4822 procedure Set_Private_View (Id : E; V : N) is
4824 pragma Assert (Is_Private_Type (Id));
4826 end Set_Private_View;
4828 procedure Set_Protected_Body_Subprogram (Id : E; V : E) is
4830 pragma Assert (Is_Subprogram (Id) or else Is_Entry (Id));
4832 end Set_Protected_Body_Subprogram;
4834 procedure Set_Protected_Formal (Id : E; V : E) is
4836 pragma Assert (Is_Formal (Id));
4838 end Set_Protected_Formal;
4840 procedure Set_Protection_Object (Id : E; V : E) is
4842 pragma Assert (Ekind_In (Id, E_Entry,
4847 end Set_Protection_Object;
4849 procedure Set_Reachable (Id : E; V : B := True) is
4854 procedure Set_Referenced (Id : E; V : B := True) is
4856 Set_Flag156 (Id, V);
4859 procedure Set_Referenced_As_LHS (Id : E; V : B := True) is
4862 end Set_Referenced_As_LHS;
4864 procedure Set_Referenced_As_Out_Parameter (Id : E; V : B := True) is
4866 Set_Flag227 (Id, V);
4867 end Set_Referenced_As_Out_Parameter;
4869 procedure Set_Referenced_Object (Id : E; V : N) is
4871 pragma Assert (Is_Type (Id));
4873 end Set_Referenced_Object;
4875 procedure Set_Register_Exception_Call (Id : E; V : N) is
4877 pragma Assert (Ekind (Id) = E_Exception);
4879 end Set_Register_Exception_Call;
4881 procedure Set_Related_Array_Object (Id : E; V : E) is
4883 pragma Assert (Is_Array_Type (Id));
4885 end Set_Related_Array_Object;
4887 procedure Set_Related_Expression (Id : E; V : N) is
4890 end Set_Related_Expression;
4892 procedure Set_Related_Instance (Id : E; V : E) is
4894 pragma Assert (Ekind_In (Id, E_Package, E_Package_Body));
4896 end Set_Related_Instance;
4898 procedure Set_Related_Type (Id : E; V : E) is
4900 pragma Assert (Ekind_In (Id, E_Component, E_Constant));
4902 end Set_Related_Type;
4904 procedure Set_Relative_Deadline_Variable (Id : E; V : E) is
4906 pragma Assert (Is_Task_Type (Id) and then Id = Base_Type (Id));
4908 end Set_Relative_Deadline_Variable;
4910 procedure Set_Renamed_Entity (Id : E; V : N) is
4913 end Set_Renamed_Entity;
4915 procedure Set_Renamed_In_Spec (Id : E; V : B := True) is
4917 pragma Assert (Ekind (Id) = E_Package);
4918 Set_Flag231 (Id, V);
4919 end Set_Renamed_In_Spec;
4921 procedure Set_Renamed_Object (Id : E; V : N) is
4924 end Set_Renamed_Object;
4926 procedure Set_Renaming_Map (Id : E; V : U) is
4929 end Set_Renaming_Map;
4931 procedure Set_Requires_Overriding (Id : E; V : B := True) is
4933 pragma Assert (Is_Overloadable (Id));
4934 Set_Flag213 (Id, V);
4935 end Set_Requires_Overriding;
4937 procedure Set_Return_Present (Id : E; V : B := True) is
4940 end Set_Return_Present;
4942 procedure Set_Return_Applies_To (Id : E; V : N) is
4945 end Set_Return_Applies_To;
4947 procedure Set_Returns_By_Ref (Id : E; V : B := True) is
4950 end Set_Returns_By_Ref;
4952 procedure Set_Reverse_Bit_Order (Id : E; V : B := True) is
4955 (Is_Record_Type (Id) and then Id = Base_Type (Id));
4956 Set_Flag164 (Id, V);
4957 end Set_Reverse_Bit_Order;
4959 procedure Set_RM_Size (Id : E; V : U) is
4961 pragma Assert (Is_Type (Id));
4965 procedure Set_Scalar_Range (Id : E; V : N) is
4968 end Set_Scalar_Range;
4970 procedure Set_Scale_Value (Id : E; V : U) is
4973 end Set_Scale_Value;
4975 procedure Set_Scope_Depth_Value (Id : E; V : U) is
4977 pragma Assert (not Is_Record_Type (Id));
4979 end Set_Scope_Depth_Value;
4981 procedure Set_Sec_Stack_Needed_For_Return (Id : E; V : B := True) is
4983 Set_Flag167 (Id, V);
4984 end Set_Sec_Stack_Needed_For_Return;
4986 procedure Set_Shadow_Entities (Id : E; V : S) is
4988 pragma Assert (Ekind_In (Id, E_Package, E_Generic_Package));
4990 end Set_Shadow_Entities;
4992 procedure Set_Shared_Var_Procs_Instance (Id : E; V : E) is
4994 pragma Assert (Ekind (Id) = E_Variable);
4996 end Set_Shared_Var_Procs_Instance;
4998 procedure Set_Size_Check_Code (Id : E; V : N) is
5000 pragma Assert (Ekind_In (Id, E_Constant, E_Variable));
5002 end Set_Size_Check_Code;
5004 procedure Set_Size_Depends_On_Discriminant (Id : E; V : B := True) is
5006 Set_Flag177 (Id, V);
5007 end Set_Size_Depends_On_Discriminant;
5009 procedure Set_Size_Known_At_Compile_Time (Id : E; V : B := True) is
5012 end Set_Size_Known_At_Compile_Time;
5014 procedure Set_Small_Value (Id : E; V : R) is
5016 pragma Assert (Is_Fixed_Point_Type (Id));
5017 Set_Ureal21 (Id, V);
5018 end Set_Small_Value;
5020 procedure Set_Spec_Entity (Id : E; V : E) is
5022 pragma Assert (Ekind (Id) = E_Package_Body or else Is_Formal (Id));
5024 end Set_Spec_Entity;
5026 procedure Set_Spec_PPC_List (Id : E; V : N) is
5028 pragma Assert (Is_Subprogram (Id) or else Is_Generic_Subprogram (Id));
5030 end Set_Spec_PPC_List;
5032 procedure Set_Storage_Size_Variable (Id : E; V : E) is
5034 pragma Assert (Is_Access_Type (Id) or else Is_Task_Type (Id));
5035 pragma Assert (Id = Base_Type (Id));
5037 end Set_Storage_Size_Variable;
5039 procedure Set_Static_Elaboration_Desired (Id : E; V : B) is
5041 pragma Assert (Ekind (Id) = E_Package);
5043 end Set_Static_Elaboration_Desired;
5045 procedure Set_Static_Initialization (Id : E; V : N) is
5048 (Ekind (Id) = E_Procedure and then not Is_Dispatching_Operation (Id));
5050 end Set_Static_Initialization;
5052 procedure Set_Stored_Constraint (Id : E; V : L) is
5054 pragma Assert (Nkind (Id) in N_Entity);
5055 Set_Elist23 (Id, V);
5056 end Set_Stored_Constraint;
5058 procedure Set_Strict_Alignment (Id : E; V : B := True) is
5060 pragma Assert (Id = Base_Type (Id));
5061 Set_Flag145 (Id, V);
5062 end Set_Strict_Alignment;
5064 procedure Set_String_Literal_Length (Id : E; V : U) is
5066 pragma Assert (Ekind (Id) = E_String_Literal_Subtype);
5068 end Set_String_Literal_Length;
5070 procedure Set_String_Literal_Low_Bound (Id : E; V : N) is
5072 pragma Assert (Ekind (Id) = E_String_Literal_Subtype);
5074 end Set_String_Literal_Low_Bound;
5076 procedure Set_Suppress_Elaboration_Warnings (Id : E; V : B := True) is
5078 Set_Flag148 (Id, V);
5079 end Set_Suppress_Elaboration_Warnings;
5081 procedure Set_Suppress_Init_Proc (Id : E; V : B := True) is
5083 pragma Assert (Id = Base_Type (Id));
5084 Set_Flag105 (Id, V);
5085 end Set_Suppress_Init_Proc;
5087 procedure Set_Suppress_Style_Checks (Id : E; V : B := True) is
5089 Set_Flag165 (Id, V);
5090 end Set_Suppress_Style_Checks;
5092 procedure Set_Suppress_Value_Tracking_On_Call (Id : E; V : B := True) is
5094 Set_Flag217 (Id, V);
5095 end Set_Suppress_Value_Tracking_On_Call;
5097 procedure Set_Task_Body_Procedure (Id : E; V : N) is
5099 pragma Assert (Ekind (Id) in Task_Kind);
5101 end Set_Task_Body_Procedure;
5103 procedure Set_Treat_As_Volatile (Id : E; V : B := True) is
5106 end Set_Treat_As_Volatile;
5108 procedure Set_Underlying_Full_View (Id : E; V : E) is
5110 pragma Assert (Ekind (Id) in Private_Kind);
5112 end Set_Underlying_Full_View;
5114 procedure Set_Underlying_Record_View (Id : E; V : E) is
5116 pragma Assert (Ekind (Id) = E_Record_Type);
5118 end Set_Underlying_Record_View;
5120 procedure Set_Universal_Aliasing (Id : E; V : B := True) is
5122 pragma Assert (Is_Type (Id) and then Id = Base_Type (Id));
5123 Set_Flag216 (Id, V);
5124 end Set_Universal_Aliasing;
5126 procedure Set_Unset_Reference (Id : E; V : N) is
5129 end Set_Unset_Reference;
5131 procedure Set_Uses_Sec_Stack (Id : E; V : B := True) is
5134 end Set_Uses_Sec_Stack;
5136 procedure Set_Used_As_Generic_Actual (Id : E; V : B := True) is
5138 Set_Flag222 (Id, V);
5139 end Set_Used_As_Generic_Actual;
5141 procedure Set_Vax_Float (Id : E; V : B := True) is
5143 pragma Assert (Id = Base_Type (Id));
5144 Set_Flag151 (Id, V);
5147 procedure Set_Warnings_Off (Id : E; V : B := True) is
5150 end Set_Warnings_Off;
5152 procedure Set_Warnings_Off_Used (Id : E; V : B := True) is
5154 Set_Flag236 (Id, V);
5155 end Set_Warnings_Off_Used;
5157 procedure Set_Warnings_Off_Used_Unmodified (Id : E; V : B := True) is
5159 Set_Flag237 (Id, V);
5160 end Set_Warnings_Off_Used_Unmodified;
5162 procedure Set_Warnings_Off_Used_Unreferenced (Id : E; V : B := True) is
5164 Set_Flag238 (Id, V);
5165 end Set_Warnings_Off_Used_Unreferenced;
5167 procedure Set_Was_Hidden (Id : E; V : B := True) is
5169 Set_Flag196 (Id, V);
5172 procedure Set_Wrapped_Entity (Id : E; V : E) is
5174 pragma Assert (Ekind_In (Id, E_Function, E_Procedure)
5175 and then Is_Primitive_Wrapper (Id));
5177 end Set_Wrapped_Entity;
5179 -----------------------------------
5180 -- Field Initialization Routines --
5181 -----------------------------------
5183 procedure Init_Alignment (Id : E) is
5185 Set_Uint14 (Id, Uint_0);
5188 procedure Init_Alignment (Id : E; V : Int) is
5190 Set_Uint14 (Id, UI_From_Int (V));
5193 procedure Init_Component_Bit_Offset (Id : E) is
5195 Set_Uint11 (Id, No_Uint);
5196 end Init_Component_Bit_Offset;
5198 procedure Init_Component_Bit_Offset (Id : E; V : Int) is
5200 Set_Uint11 (Id, UI_From_Int (V));
5201 end Init_Component_Bit_Offset;
5203 procedure Init_Component_Size (Id : E) is
5205 Set_Uint22 (Id, Uint_0);
5206 end Init_Component_Size;
5208 procedure Init_Component_Size (Id : E; V : Int) is
5210 Set_Uint22 (Id, UI_From_Int (V));
5211 end Init_Component_Size;
5213 procedure Init_Digits_Value (Id : E) is
5215 Set_Uint17 (Id, Uint_0);
5216 end Init_Digits_Value;
5218 procedure Init_Digits_Value (Id : E; V : Int) is
5220 Set_Uint17 (Id, UI_From_Int (V));
5221 end Init_Digits_Value;
5223 procedure Init_Esize (Id : E) is
5225 Set_Uint12 (Id, Uint_0);
5228 procedure Init_Esize (Id : E; V : Int) is
5230 Set_Uint12 (Id, UI_From_Int (V));
5233 procedure Init_Normalized_First_Bit (Id : E) is
5235 Set_Uint8 (Id, No_Uint);
5236 end Init_Normalized_First_Bit;
5238 procedure Init_Normalized_First_Bit (Id : E; V : Int) is
5240 Set_Uint8 (Id, UI_From_Int (V));
5241 end Init_Normalized_First_Bit;
5243 procedure Init_Normalized_Position (Id : E) is
5245 Set_Uint14 (Id, No_Uint);
5246 end Init_Normalized_Position;
5248 procedure Init_Normalized_Position (Id : E; V : Int) is
5250 Set_Uint14 (Id, UI_From_Int (V));
5251 end Init_Normalized_Position;
5253 procedure Init_Normalized_Position_Max (Id : E) is
5255 Set_Uint10 (Id, No_Uint);
5256 end Init_Normalized_Position_Max;
5258 procedure Init_Normalized_Position_Max (Id : E; V : Int) is
5260 Set_Uint10 (Id, UI_From_Int (V));
5261 end Init_Normalized_Position_Max;
5263 procedure Init_RM_Size (Id : E) is
5265 Set_Uint13 (Id, Uint_0);
5268 procedure Init_RM_Size (Id : E; V : Int) is
5270 Set_Uint13 (Id, UI_From_Int (V));
5273 -----------------------------
5274 -- Init_Component_Location --
5275 -----------------------------
5277 procedure Init_Component_Location (Id : E) is
5279 Set_Uint8 (Id, No_Uint); -- Normalized_First_Bit
5280 Set_Uint10 (Id, No_Uint); -- Normalized_Position_Max
5281 Set_Uint11 (Id, No_Uint); -- Component_Bit_Offset
5282 Set_Uint12 (Id, Uint_0); -- Esize
5283 Set_Uint14 (Id, No_Uint); -- Normalized_Position
5284 end Init_Component_Location;
5290 procedure Init_Size (Id : E; V : Int) is
5292 Set_Uint12 (Id, UI_From_Int (V)); -- Esize
5293 Set_Uint13 (Id, UI_From_Int (V)); -- RM_Size
5296 ---------------------
5297 -- Init_Size_Align --
5298 ---------------------
5300 procedure Init_Size_Align (Id : E) is
5302 Set_Uint12 (Id, Uint_0); -- Esize
5303 Set_Uint13 (Id, Uint_0); -- RM_Size
5304 Set_Uint14 (Id, Uint_0); -- Alignment
5305 end Init_Size_Align;
5307 ----------------------------------------------
5308 -- Type Representation Attribute Predicates --
5309 ----------------------------------------------
5311 function Known_Alignment (E : Entity_Id) return B is
5313 return Uint14 (E) /= Uint_0
5314 and then Uint14 (E) /= No_Uint;
5315 end Known_Alignment;
5317 function Known_Component_Bit_Offset (E : Entity_Id) return B is
5319 return Uint11 (E) /= No_Uint;
5320 end Known_Component_Bit_Offset;
5322 function Known_Component_Size (E : Entity_Id) return B is
5324 return Uint22 (Base_Type (E)) /= Uint_0
5325 and then Uint22 (Base_Type (E)) /= No_Uint;
5326 end Known_Component_Size;
5328 function Known_Esize (E : Entity_Id) return B is
5330 return Uint12 (E) /= Uint_0
5331 and then Uint12 (E) /= No_Uint;
5334 function Known_Normalized_First_Bit (E : Entity_Id) return B is
5336 return Uint8 (E) /= No_Uint;
5337 end Known_Normalized_First_Bit;
5339 function Known_Normalized_Position (E : Entity_Id) return B is
5341 return Uint14 (E) /= No_Uint;
5342 end Known_Normalized_Position;
5344 function Known_Normalized_Position_Max (E : Entity_Id) return B is
5346 return Uint10 (E) /= No_Uint;
5347 end Known_Normalized_Position_Max;
5349 function Known_RM_Size (E : Entity_Id) return B is
5351 return Uint13 (E) /= No_Uint
5352 and then (Uint13 (E) /= Uint_0
5353 or else Is_Discrete_Type (E)
5354 or else Is_Fixed_Point_Type (E));
5357 function Known_Static_Component_Bit_Offset (E : Entity_Id) return B is
5359 return Uint11 (E) /= No_Uint
5360 and then Uint11 (E) >= Uint_0;
5361 end Known_Static_Component_Bit_Offset;
5363 function Known_Static_Component_Size (E : Entity_Id) return B is
5365 return Uint22 (Base_Type (E)) > Uint_0;
5366 end Known_Static_Component_Size;
5368 function Known_Static_Esize (E : Entity_Id) return B is
5370 return Uint12 (E) > Uint_0;
5371 end Known_Static_Esize;
5373 function Known_Static_Normalized_First_Bit (E : Entity_Id) return B is
5375 return Uint8 (E) /= No_Uint
5376 and then Uint8 (E) >= Uint_0;
5377 end Known_Static_Normalized_First_Bit;
5379 function Known_Static_Normalized_Position (E : Entity_Id) return B is
5381 return Uint14 (E) /= No_Uint
5382 and then Uint14 (E) >= Uint_0;
5383 end Known_Static_Normalized_Position;
5385 function Known_Static_Normalized_Position_Max (E : Entity_Id) return B is
5387 return Uint10 (E) /= No_Uint
5388 and then Uint10 (E) >= Uint_0;
5389 end Known_Static_Normalized_Position_Max;
5391 function Known_Static_RM_Size (E : Entity_Id) return B is
5393 return Uint13 (E) > Uint_0
5394 or else Is_Discrete_Type (E)
5395 or else Is_Fixed_Point_Type (E);
5396 end Known_Static_RM_Size;
5398 function Unknown_Alignment (E : Entity_Id) return B is
5400 return Uint14 (E) = Uint_0
5401 or else Uint14 (E) = No_Uint;
5402 end Unknown_Alignment;
5404 function Unknown_Component_Bit_Offset (E : Entity_Id) return B is
5406 return Uint11 (E) = No_Uint;
5407 end Unknown_Component_Bit_Offset;
5409 function Unknown_Component_Size (E : Entity_Id) return B is
5411 return Uint22 (Base_Type (E)) = Uint_0
5413 Uint22 (Base_Type (E)) = No_Uint;
5414 end Unknown_Component_Size;
5416 function Unknown_Esize (E : Entity_Id) return B is
5418 return Uint12 (E) = No_Uint
5420 Uint12 (E) = Uint_0;
5423 function Unknown_Normalized_First_Bit (E : Entity_Id) return B is
5425 return Uint8 (E) = No_Uint;
5426 end Unknown_Normalized_First_Bit;
5428 function Unknown_Normalized_Position (E : Entity_Id) return B is
5430 return Uint14 (E) = No_Uint;
5431 end Unknown_Normalized_Position;
5433 function Unknown_Normalized_Position_Max (E : Entity_Id) return B is
5435 return Uint10 (E) = No_Uint;
5436 end Unknown_Normalized_Position_Max;
5438 function Unknown_RM_Size (E : Entity_Id) return B is
5440 return (Uint13 (E) = Uint_0
5441 and then not Is_Discrete_Type (E)
5442 and then not Is_Fixed_Point_Type (E))
5443 or else Uint13 (E) = No_Uint;
5444 end Unknown_RM_Size;
5446 --------------------
5447 -- Address_Clause --
5448 --------------------
5450 function Address_Clause (Id : E) return N is
5452 return Rep_Clause (Id, Name_Address);
5455 ----------------------
5456 -- Alignment_Clause --
5457 ----------------------
5459 function Alignment_Clause (Id : E) return N is
5461 return Rep_Clause (Id, Name_Alignment);
5462 end Alignment_Clause;
5468 procedure Append_Entity (Id : Entity_Id; V : Entity_Id) is
5470 if Last_Entity (V) = Empty then
5471 Set_First_Entity (Id => V, V => Id);
5473 Set_Next_Entity (Last_Entity (V), Id);
5476 Set_Next_Entity (Id, Empty);
5478 Set_Last_Entity (Id => V, V => Id);
5485 function Base_Type (Id : E) return E is
5488 when E_Enumeration_Subtype |
5490 E_Signed_Integer_Subtype |
5491 E_Modular_Integer_Subtype |
5492 E_Floating_Point_Subtype |
5493 E_Ordinary_Fixed_Point_Subtype |
5494 E_Decimal_Fixed_Point_Subtype |
5499 E_Record_Subtype_With_Private |
5500 E_Limited_Private_Subtype |
5502 E_Protected_Subtype |
5504 E_String_Literal_Subtype |
5505 E_Class_Wide_Subtype =>
5513 -------------------------
5514 -- Component_Alignment --
5515 -------------------------
5517 -- Component Alignment is encoded using two flags, Flag128/129 as
5518 -- follows. Note that both flags False = Align_Default, so that the
5519 -- default initialization of flags to False initializes component
5520 -- alignment to the default value as required.
5522 -- Flag128 Flag129 Value
5523 -- ------- ------- -----
5524 -- False False Calign_Default
5525 -- False True Calign_Component_Size
5526 -- True False Calign_Component_Size_4
5527 -- True True Calign_Storage_Unit
5529 function Component_Alignment (Id : E) return C is
5530 BT : constant Node_Id := Base_Type (Id);
5533 pragma Assert (Is_Array_Type (Id) or else Is_Record_Type (Id));
5535 if Flag128 (BT) then
5536 if Flag129 (BT) then
5537 return Calign_Storage_Unit;
5539 return Calign_Component_Size_4;
5543 if Flag129 (BT) then
5544 return Calign_Component_Size;
5546 return Calign_Default;
5549 end Component_Alignment;
5551 ----------------------
5552 -- Declaration_Node --
5553 ----------------------
5555 function Declaration_Node (Id : E) return N is
5559 if Ekind (Id) = E_Incomplete_Type
5560 and then Present (Full_View (Id))
5562 P := Parent (Full_View (Id));
5568 if Nkind (P) /= N_Selected_Component
5569 and then Nkind (P) /= N_Expanded_Name
5571 not (Nkind (P) = N_Defining_Program_Unit_Name
5572 and then Is_Child_Unit (Id))
5579 end Declaration_Node;
5581 ---------------------
5582 -- Designated_Type --
5583 ---------------------
5585 function Designated_Type (Id : E) return E is
5589 Desig_Type := Directly_Designated_Type (Id);
5591 if Ekind (Desig_Type) = E_Incomplete_Type
5592 and then Present (Full_View (Desig_Type))
5594 return Full_View (Desig_Type);
5596 elsif Is_Class_Wide_Type (Desig_Type)
5597 and then Ekind (Etype (Desig_Type)) = E_Incomplete_Type
5598 and then Present (Full_View (Etype (Desig_Type)))
5599 and then Present (Class_Wide_Type (Full_View (Etype (Desig_Type))))
5601 return Class_Wide_Type (Full_View (Etype (Desig_Type)));
5606 end Designated_Type;
5608 ----------------------
5609 -- Entry_Index_Type --
5610 ----------------------
5612 function Entry_Index_Type (Id : E) return N is
5614 pragma Assert (Ekind (Id) = E_Entry_Family);
5615 return Etype (Discrete_Subtype_Definition (Parent (Id)));
5616 end Entry_Index_Type;
5618 ---------------------
5619 -- First_Component --
5620 ---------------------
5622 function First_Component (Id : E) return E is
5627 (Is_Record_Type (Id) or else Is_Incomplete_Or_Private_Type (Id));
5629 Comp_Id := First_Entity (Id);
5630 while Present (Comp_Id) loop
5631 exit when Ekind (Comp_Id) = E_Component;
5632 Comp_Id := Next_Entity (Comp_Id);
5636 end First_Component;
5638 -------------------------------------
5639 -- First_Component_Or_Discriminant --
5640 -------------------------------------
5642 function First_Component_Or_Discriminant (Id : E) return E is
5647 (Is_Record_Type (Id) or else Is_Incomplete_Or_Private_Type (Id));
5649 Comp_Id := First_Entity (Id);
5650 while Present (Comp_Id) loop
5651 exit when Ekind (Comp_Id) = E_Component
5653 Ekind (Comp_Id) = E_Discriminant;
5654 Comp_Id := Next_Entity (Comp_Id);
5658 end First_Component_Or_Discriminant;
5664 function First_Formal (Id : E) return E is
5669 (Is_Overloadable (Id)
5670 or else Ekind_In (Id, E_Entry_Family,
5672 E_Subprogram_Type));
5674 if Ekind (Id) = E_Enumeration_Literal then
5678 Formal := First_Entity (Id);
5680 if Present (Formal) and then Is_Formal (Formal) then
5688 ------------------------------
5689 -- First_Formal_With_Extras --
5690 ------------------------------
5692 function First_Formal_With_Extras (Id : E) return E is
5697 (Is_Overloadable (Id)
5698 or else Ekind_In (Id, E_Entry_Family,
5700 E_Subprogram_Type));
5702 if Ekind (Id) = E_Enumeration_Literal then
5706 Formal := First_Entity (Id);
5708 if Present (Formal) and then Is_Formal (Formal) then
5711 return Extra_Formals (Id); -- Empty if no extra formals
5714 end First_Formal_With_Extras;
5716 -------------------------------------
5717 -- Get_Attribute_Definition_Clause --
5718 -------------------------------------
5720 function Get_Attribute_Definition_Clause
5722 Id : Attribute_Id) return Node_Id
5727 N := First_Rep_Item (E);
5728 while Present (N) loop
5729 if Nkind (N) = N_Attribute_Definition_Clause
5730 and then Get_Attribute_Id (Chars (N)) = Id
5739 end Get_Attribute_Definition_Clause;
5745 function Get_Full_View (T : Entity_Id) return Entity_Id is
5747 if Ekind (T) = E_Incomplete_Type
5748 and then Present (Full_View (T))
5750 return Full_View (T);
5752 elsif Is_Class_Wide_Type (T)
5753 and then Ekind (Root_Type (T)) = E_Incomplete_Type
5754 and then Present (Full_View (Root_Type (T)))
5756 return Class_Wide_Type (Full_View (Root_Type (T)));
5763 --------------------------------------
5764 -- Get_Record_Representation_Clause --
5765 --------------------------------------
5767 function Get_Record_Representation_Clause (E : Entity_Id) return Node_Id is
5771 N := First_Rep_Item (E);
5772 while Present (N) loop
5773 if Nkind (N) = N_Record_Representation_Clause then
5781 end Get_Record_Representation_Clause;
5783 --------------------
5784 -- Get_Rep_Pragma --
5785 --------------------
5787 function Get_Rep_Pragma (E : Entity_Id; Nam : Name_Id) return Node_Id is
5791 N := First_Rep_Item (E);
5792 while Present (N) loop
5793 if Nkind (N) = N_Pragma and then Pragma_Name (N) = Nam then
5803 ------------------------
5804 -- Has_Attach_Handler --
5805 ------------------------
5807 function Has_Attach_Handler (Id : E) return B is
5811 pragma Assert (Is_Protected_Type (Id));
5813 Ritem := First_Rep_Item (Id);
5814 while Present (Ritem) loop
5815 if Nkind (Ritem) = N_Pragma
5816 and then Pragma_Name (Ritem) = Name_Attach_Handler
5820 Ritem := Next_Rep_Item (Ritem);
5825 end Has_Attach_Handler;
5827 -------------------------------------
5828 -- Has_Attribute_Definition_Clause --
5829 -------------------------------------
5831 function Has_Attribute_Definition_Clause
5833 Id : Attribute_Id) return Boolean
5836 return Present (Get_Attribute_Definition_Clause (E, Id));
5837 end Has_Attribute_Definition_Clause;
5843 function Has_Entries (Id : E) return B is
5847 pragma Assert (Is_Concurrent_Type (Id));
5849 Ent := First_Entity (Id);
5850 while Present (Ent) loop
5851 if Is_Entry (Ent) then
5855 Ent := Next_Entity (Ent);
5861 ----------------------------
5862 -- Has_Foreign_Convention --
5863 ----------------------------
5865 function Has_Foreign_Convention (Id : E) return B is
5867 return Convention (Id) in Foreign_Convention;
5868 end Has_Foreign_Convention;
5870 ---------------------------
5871 -- Has_Interrupt_Handler --
5872 ---------------------------
5874 function Has_Interrupt_Handler (Id : E) return B is
5878 pragma Assert (Is_Protected_Type (Id));
5880 Ritem := First_Rep_Item (Id);
5881 while Present (Ritem) loop
5882 if Nkind (Ritem) = N_Pragma
5883 and then Pragma_Name (Ritem) = Name_Interrupt_Handler
5887 Ritem := Next_Rep_Item (Ritem);
5892 end Has_Interrupt_Handler;
5894 --------------------------
5895 -- Has_Private_Ancestor --
5896 --------------------------
5898 function Has_Private_Ancestor (Id : E) return B is
5899 R : constant Entity_Id := Root_Type (Id);
5900 T1 : Entity_Id := Id;
5903 if Is_Private_Type (T1) then
5911 end Has_Private_Ancestor;
5913 --------------------
5914 -- Has_Rep_Pragma --
5915 --------------------
5917 function Has_Rep_Pragma (E : Entity_Id; Nam : Name_Id) return Boolean is
5919 return Present (Get_Rep_Pragma (E, Nam));
5922 --------------------
5923 -- Has_Unmodified --
5924 --------------------
5926 function Has_Unmodified (E : Entity_Id) return Boolean is
5928 if Has_Pragma_Unmodified (E) then
5930 elsif Warnings_Off (E) then
5931 Set_Warnings_Off_Used_Unmodified (E);
5938 ---------------------
5939 -- Has_Unreferenced --
5940 ---------------------
5942 function Has_Unreferenced (E : Entity_Id) return Boolean is
5944 if Has_Pragma_Unreferenced (E) then
5946 elsif Warnings_Off (E) then
5947 Set_Warnings_Off_Used_Unreferenced (E);
5952 end Has_Unreferenced;
5954 ----------------------
5955 -- Has_Warnings_Off --
5956 ----------------------
5958 function Has_Warnings_Off (E : Entity_Id) return Boolean is
5960 if Warnings_Off (E) then
5961 Set_Warnings_Off_Used (E);
5966 end Has_Warnings_Off;
5968 ------------------------------
5969 -- Implementation_Base_Type --
5970 ------------------------------
5972 function Implementation_Base_Type (Id : E) return E is
5977 Bastyp := Base_Type (Id);
5979 if Is_Incomplete_Or_Private_Type (Bastyp) then
5980 Imptyp := Underlying_Type (Bastyp);
5982 -- If we have an implementation type, then just return it,
5983 -- otherwise we return the Base_Type anyway. This can only
5984 -- happen in error situations and should avoid some error bombs.
5986 if Present (Imptyp) then
5987 return Base_Type (Imptyp);
5995 end Implementation_Base_Type;
5997 ---------------------
5998 -- Is_Boolean_Type --
5999 ---------------------
6001 function Is_Boolean_Type (Id : E) return B is
6003 return Root_Type (Id) = Standard_Boolean;
6004 end Is_Boolean_Type;
6006 ------------------------
6007 -- Is_Constant_Object --
6008 ------------------------
6010 function Is_Constant_Object (Id : E) return B is
6011 K : constant Entity_Kind := Ekind (Id);
6014 K = E_Constant or else K = E_In_Parameter or else K = E_Loop_Parameter;
6015 end Is_Constant_Object;
6017 --------------------
6018 -- Is_Discriminal --
6019 --------------------
6021 function Is_Discriminal (Id : E) return B is
6023 return (Ekind_In (Id, E_Constant, E_In_Parameter)
6024 and then Present (Discriminal_Link (Id)));
6027 ----------------------
6028 -- Is_Dynamic_Scope --
6029 ----------------------
6031 function Is_Dynamic_Scope (Id : E) return B is
6034 Ekind (Id) = E_Block
6036 Ekind (Id) = E_Function
6038 Ekind (Id) = E_Procedure
6040 Ekind (Id) = E_Subprogram_Body
6042 Ekind (Id) = E_Task_Type
6044 Ekind (Id) = E_Entry
6046 Ekind (Id) = E_Entry_Family
6048 Ekind (Id) = E_Return_Statement;
6049 end Is_Dynamic_Scope;
6051 --------------------
6052 -- Is_Entity_Name --
6053 --------------------
6055 function Is_Entity_Name (N : Node_Id) return Boolean is
6056 Kind : constant Node_Kind := Nkind (N);
6059 -- Identifiers, operator symbols, expanded names are entity names
6061 return Kind = N_Identifier
6062 or else Kind = N_Operator_Symbol
6063 or else Kind = N_Expanded_Name
6065 -- Attribute references are entity names if they refer to an entity.
6066 -- Note that we don't do this by testing for the presence of the
6067 -- Entity field in the N_Attribute_Reference node, since it may not
6068 -- have been set yet.
6070 or else (Kind = N_Attribute_Reference
6071 and then Is_Entity_Attribute_Name (Attribute_Name (N)));
6074 -----------------------------------
6075 -- Is_Package_Or_Generic_Package --
6076 -----------------------------------
6078 function Is_Package_Or_Generic_Package (Id : E) return B is
6081 Ekind (Id) = E_Package
6083 Ekind (Id) = E_Generic_Package;
6084 end Is_Package_Or_Generic_Package;
6090 function Is_Prival (Id : E) return B is
6092 return (Ekind_In (Id, E_Constant, E_Variable)
6093 and then Present (Prival_Link (Id)));
6096 ----------------------------
6097 -- Is_Protected_Component --
6098 ----------------------------
6100 function Is_Protected_Component (Id : E) return B is
6102 return Ekind (Id) = E_Component
6103 and then Is_Protected_Type (Scope (Id));
6104 end Is_Protected_Component;
6106 ------------------------------
6107 -- Is_Protected_Record_Type --
6108 ------------------------------
6110 function Is_Protected_Record_Type (Id : E) return B is
6113 Is_Concurrent_Record_Type (Id)
6114 and then Is_Protected_Type (Corresponding_Concurrent_Type (Id));
6115 end Is_Protected_Record_Type;
6117 --------------------------------
6118 -- Is_Standard_Character_Type --
6119 --------------------------------
6121 function Is_Standard_Character_Type (Id : E) return B is
6123 if Is_Type (Id) then
6125 R : constant Entity_Id := Root_Type (Id);
6128 R = Standard_Character
6130 R = Standard_Wide_Character
6132 R = Standard_Wide_Wide_Character;
6138 end Is_Standard_Character_Type;
6140 --------------------
6141 -- Is_String_Type --
6142 --------------------
6144 function Is_String_Type (Id : E) return B is
6146 return Ekind (Id) in String_Kind
6147 or else (Is_Array_Type (Id)
6148 and then Number_Dimensions (Id) = 1
6149 and then Is_Character_Type (Component_Type (Id)));
6152 -------------------------
6153 -- Is_Task_Record_Type --
6154 -------------------------
6156 function Is_Task_Record_Type (Id : E) return B is
6159 Is_Concurrent_Record_Type (Id)
6160 and then Is_Task_Type (Corresponding_Concurrent_Type (Id));
6161 end Is_Task_Record_Type;
6163 ------------------------
6164 -- Is_Wrapper_Package --
6165 ------------------------
6167 function Is_Wrapper_Package (Id : E) return B is
6169 return (Ekind (Id) = E_Package
6170 and then Present (Related_Instance (Id)));
6171 end Is_Wrapper_Package;
6173 --------------------
6174 -- Next_Component --
6175 --------------------
6177 function Next_Component (Id : E) return E is
6181 Comp_Id := Next_Entity (Id);
6182 while Present (Comp_Id) loop
6183 exit when Ekind (Comp_Id) = E_Component;
6184 Comp_Id := Next_Entity (Comp_Id);
6190 ------------------------------------
6191 -- Next_Component_Or_Discriminant --
6192 ------------------------------------
6194 function Next_Component_Or_Discriminant (Id : E) return E is
6198 Comp_Id := Next_Entity (Id);
6199 while Present (Comp_Id) loop
6200 exit when Ekind_In (Comp_Id, E_Component, E_Discriminant);
6201 Comp_Id := Next_Entity (Comp_Id);
6205 end Next_Component_Or_Discriminant;
6207 -----------------------
6208 -- Next_Discriminant --
6209 -----------------------
6211 -- This function actually implements both Next_Discriminant and
6212 -- Next_Stored_Discriminant by making sure that the Discriminant
6213 -- returned is of the same variety as Id.
6215 function Next_Discriminant (Id : E) return E is
6217 -- Derived Tagged types with private extensions look like this...
6219 -- E_Discriminant d1
6220 -- E_Discriminant d2
6222 -- E_Discriminant d1
6223 -- E_Discriminant d2
6226 -- so it is critical not to go past the leading discriminants
6231 pragma Assert (Ekind (Id) = E_Discriminant);
6234 D := Next_Entity (D);
6236 or else (Ekind (D) /= E_Discriminant
6237 and then not Is_Itype (D))
6242 exit when Ekind (D) = E_Discriminant
6243 and then (Is_Completely_Hidden (D) = Is_Completely_Hidden (Id));
6247 end Next_Discriminant;
6253 function Next_Formal (Id : E) return E is
6257 -- Follow the chain of declared entities as long as the kind of the
6258 -- entity corresponds to a formal parameter. Skip internal entities
6259 -- that may have been created for implicit subtypes, in the process
6260 -- of analyzing default expressions.
6265 P := Next_Entity (P);
6267 if No (P) or else Is_Formal (P) then
6269 elsif not Is_Internal (P) then
6275 -----------------------------
6276 -- Next_Formal_With_Extras --
6277 -----------------------------
6279 function Next_Formal_With_Extras (Id : E) return E is
6281 if Present (Extra_Formal (Id)) then
6282 return Extra_Formal (Id);
6284 return Next_Formal (Id);
6286 end Next_Formal_With_Extras;
6292 function Next_Index (Id : Node_Id) return Node_Id is
6301 function Next_Literal (Id : E) return E is
6303 pragma Assert (Nkind (Id) in N_Entity);
6307 ------------------------------
6308 -- Next_Stored_Discriminant --
6309 ------------------------------
6311 function Next_Stored_Discriminant (Id : E) return E is
6313 -- See comment in Next_Discriminant
6315 return Next_Discriminant (Id);
6316 end Next_Stored_Discriminant;
6318 -----------------------
6319 -- Number_Dimensions --
6320 -----------------------
6322 function Number_Dimensions (Id : E) return Pos is
6327 if Ekind (Id) in String_Kind then
6332 T := First_Index (Id);
6333 while Present (T) loop
6340 end Number_Dimensions;
6342 --------------------
6343 -- Number_Entries --
6344 --------------------
6346 function Number_Entries (Id : E) return Nat is
6351 pragma Assert (Is_Concurrent_Type (Id));
6354 Ent := First_Entity (Id);
6355 while Present (Ent) loop
6356 if Is_Entry (Ent) then
6360 Ent := Next_Entity (Ent);
6366 --------------------
6367 -- Number_Formals --
6368 --------------------
6370 function Number_Formals (Id : E) return Pos is
6376 Formal := First_Formal (Id);
6377 while Present (Formal) loop
6379 Formal := Next_Formal (Formal);
6385 --------------------
6386 -- Parameter_Mode --
6387 --------------------
6389 function Parameter_Mode (Id : E) return Formal_Kind is
6394 ---------------------
6395 -- Record_Rep_Item --
6396 ---------------------
6398 procedure Record_Rep_Item (E : Entity_Id; N : Node_Id) is
6400 Set_Next_Rep_Item (N, First_Rep_Item (E));
6401 Set_First_Rep_Item (E, N);
6402 end Record_Rep_Item;
6408 function Root_Type (Id : E) return E is
6412 pragma Assert (Nkind (Id) in N_Entity);
6414 T := Base_Type (Id);
6416 if Ekind (T) = E_Class_Wide_Type then
6419 elsif Ekind (T) = E_Class_Wide_Subtype then
6420 return Etype (Base_Type (T));
6422 -- ??? T comes from Base_Type, how can it be a subtype?
6423 -- Also Base_Type is supposed to be idempotent, so either way
6424 -- this is equivalent to "return Etype (T)" and should be merged
6425 -- with the E_Class_Wide_Type case.
6436 -- Following test catches some error cases resulting from
6439 elsif No (Etyp) then
6442 elsif Is_Private_Type (T) and then Etyp = Full_View (T) then
6445 elsif Is_Private_Type (Etyp) and then Full_View (Etyp) = T then
6451 -- Return if there is a circularity in the inheritance chain. This
6452 -- happens in some error situations and we do not want to get
6453 -- stuck in this loop.
6455 if T = Base_Type (Id) then
6466 function Scope_Depth (Id : E) return Uint is
6471 while Is_Record_Type (Scop) loop
6472 Scop := Scope (Scop);
6475 return Scope_Depth_Value (Scop);
6478 ---------------------
6479 -- Scope_Depth_Set --
6480 ---------------------
6482 function Scope_Depth_Set (Id : E) return B is
6484 return not Is_Record_Type (Id)
6485 and then Field22 (Id) /= Union_Id (Empty);
6486 end Scope_Depth_Set;
6488 -----------------------------
6489 -- Set_Component_Alignment --
6490 -----------------------------
6492 -- Component Alignment is encoded using two flags, Flag128/129 as
6493 -- follows. Note that both flags False = Align_Default, so that the
6494 -- default initialization of flags to False initializes component
6495 -- alignment to the default value as required.
6497 -- Flag128 Flag129 Value
6498 -- ------- ------- -----
6499 -- False False Calign_Default
6500 -- False True Calign_Component_Size
6501 -- True False Calign_Component_Size_4
6502 -- True True Calign_Storage_Unit
6504 procedure Set_Component_Alignment (Id : E; V : C) is
6506 pragma Assert ((Is_Array_Type (Id) or else Is_Record_Type (Id))
6507 and then Id = Base_Type (Id));
6510 when Calign_Default =>
6511 Set_Flag128 (Id, False);
6512 Set_Flag129 (Id, False);
6514 when Calign_Component_Size =>
6515 Set_Flag128 (Id, False);
6516 Set_Flag129 (Id, True);
6518 when Calign_Component_Size_4 =>
6519 Set_Flag128 (Id, True);
6520 Set_Flag129 (Id, False);
6522 when Calign_Storage_Unit =>
6523 Set_Flag128 (Id, True);
6524 Set_Flag129 (Id, True);
6526 end Set_Component_Alignment;
6532 function Size_Clause (Id : E) return N is
6534 return Rep_Clause (Id, Name_Size);
6537 ------------------------
6538 -- Stream_Size_Clause --
6539 ------------------------
6541 function Stream_Size_Clause (Id : E) return N is
6543 return Rep_Clause (Id, Name_Stream_Size);
6544 end Stream_Size_Clause;
6550 function Subtype_Kind (K : Entity_Kind) return Entity_Kind is
6556 Kind := E_Access_Subtype;
6560 Kind := E_Array_Subtype;
6562 when E_Class_Wide_Type |
6563 E_Class_Wide_Subtype =>
6564 Kind := E_Class_Wide_Subtype;
6566 when E_Decimal_Fixed_Point_Type |
6567 E_Decimal_Fixed_Point_Subtype =>
6568 Kind := E_Decimal_Fixed_Point_Subtype;
6570 when E_Ordinary_Fixed_Point_Type |
6571 E_Ordinary_Fixed_Point_Subtype =>
6572 Kind := E_Ordinary_Fixed_Point_Subtype;
6574 when E_Private_Type |
6575 E_Private_Subtype =>
6576 Kind := E_Private_Subtype;
6578 when E_Limited_Private_Type |
6579 E_Limited_Private_Subtype =>
6580 Kind := E_Limited_Private_Subtype;
6582 when E_Record_Type_With_Private |
6583 E_Record_Subtype_With_Private =>
6584 Kind := E_Record_Subtype_With_Private;
6586 when E_Record_Type |
6588 Kind := E_Record_Subtype;
6590 when E_String_Type |
6592 Kind := E_String_Subtype;
6594 when Enumeration_Kind =>
6595 Kind := E_Enumeration_Subtype;
6598 Kind := E_Floating_Point_Subtype;
6600 when Signed_Integer_Kind =>
6601 Kind := E_Signed_Integer_Subtype;
6603 when Modular_Integer_Kind =>
6604 Kind := E_Modular_Integer_Subtype;
6606 when Protected_Kind =>
6607 Kind := E_Protected_Subtype;
6610 Kind := E_Task_Subtype;
6614 raise Program_Error;
6620 ---------------------
6621 -- Type_High_Bound --
6622 ---------------------
6624 function Type_High_Bound (Id : E) return Node_Id is
6625 Rng : constant Node_Id := Scalar_Range (Id);
6627 if Nkind (Rng) = N_Subtype_Indication then
6628 return High_Bound (Range_Expression (Constraint (Rng)));
6630 return High_Bound (Rng);
6632 end Type_High_Bound;
6634 --------------------
6635 -- Type_Low_Bound --
6636 --------------------
6638 function Type_Low_Bound (Id : E) return Node_Id is
6639 Rng : constant Node_Id := Scalar_Range (Id);
6641 if Nkind (Rng) = N_Subtype_Indication then
6642 return Low_Bound (Range_Expression (Constraint (Rng)));
6644 return Low_Bound (Rng);
6648 ---------------------
6649 -- Underlying_Type --
6650 ---------------------
6652 function Underlying_Type (Id : E) return E is
6654 -- For record_with_private the underlying type is always the direct
6655 -- full view. Never try to take the full view of the parent it
6656 -- doesn't make sense.
6658 if Ekind (Id) = E_Record_Type_With_Private then
6659 return Full_View (Id);
6661 elsif Ekind (Id) in Incomplete_Or_Private_Kind then
6663 -- If we have an incomplete or private type with a full view,
6664 -- then we return the Underlying_Type of this full view
6666 if Present (Full_View (Id)) then
6667 if Id = Full_View (Id) then
6669 -- Previous error in declaration
6674 return Underlying_Type (Full_View (Id));
6677 -- If we have an incomplete entity that comes from the limited
6678 -- view then we return the Underlying_Type of its non-limited
6681 elsif From_With_Type (Id)
6682 and then Present (Non_Limited_View (Id))
6684 return Underlying_Type (Non_Limited_View (Id));
6686 -- Otherwise check for the case where we have a derived type or
6687 -- subtype, and if so get the Underlying_Type of the parent type.
6689 elsif Etype (Id) /= Id then
6690 return Underlying_Type (Etype (Id));
6692 -- Otherwise we have an incomplete or private type that has
6693 -- no full view, which means that we have not encountered the
6694 -- completion, so return Empty to indicate the underlying type
6695 -- is not yet known.
6701 -- For non-incomplete, non-private types, return the type itself
6702 -- Also for entities that are not types at all return the entity
6708 end Underlying_Type;
6710 ------------------------
6711 -- Write_Entity_Flags --
6712 ------------------------
6714 procedure Write_Entity_Flags (Id : Entity_Id; Prefix : String) is
6716 procedure W (Flag_Name : String; Flag : Boolean);
6717 -- Write out given flag if it is set
6723 procedure W (Flag_Name : String; Flag : Boolean) is
6727 Write_Str (Flag_Name);
6728 Write_Str (" = True");
6733 -- Start of processing for Write_Entity_Flags
6736 if (Is_Array_Type (Id) or else Is_Record_Type (Id))
6737 and then Id = Base_Type (Id)
6740 Write_Str ("Component_Alignment = ");
6742 case Component_Alignment (Id) is
6743 when Calign_Default =>
6744 Write_Str ("Calign_Default");
6746 when Calign_Component_Size =>
6747 Write_Str ("Calign_Component_Size");
6749 when Calign_Component_Size_4 =>
6750 Write_Str ("Calign_Component_Size_4");
6752 when Calign_Storage_Unit =>
6753 Write_Str ("Calign_Storage_Unit");
6759 W ("Address_Taken", Flag104 (Id));
6760 W ("Body_Needed_For_SAL", Flag40 (Id));
6761 W ("C_Pass_By_Copy", Flag125 (Id));
6762 W ("Can_Never_Be_Null", Flag38 (Id));
6763 W ("Checks_May_Be_Suppressed", Flag31 (Id));
6764 W ("Debug_Info_Off", Flag166 (Id));
6765 W ("Default_Expressions_Processed", Flag108 (Id));
6766 W ("Delay_Cleanups", Flag114 (Id));
6767 W ("Delay_Subprogram_Descriptors", Flag50 (Id));
6768 W ("Depends_On_Private", Flag14 (Id));
6769 W ("Discard_Names", Flag88 (Id));
6770 W ("Elaboration_Entity_Required", Flag174 (Id));
6771 W ("Elaborate_Body_Desirable", Flag210 (Id));
6772 W ("Entry_Accepted", Flag152 (Id));
6773 W ("Can_Use_Internal_Rep", Flag229 (Id));
6774 W ("Finalize_Storage_Only", Flag158 (Id));
6775 W ("From_With_Type", Flag159 (Id));
6776 W ("Has_Aliased_Components", Flag135 (Id));
6777 W ("Has_Alignment_Clause", Flag46 (Id));
6778 W ("Has_All_Calls_Remote", Flag79 (Id));
6779 W ("Has_Anon_Block_Suffix", Flag201 (Id));
6780 W ("Has_Atomic_Components", Flag86 (Id));
6781 W ("Has_Biased_Representation", Flag139 (Id));
6782 W ("Has_Completion", Flag26 (Id));
6783 W ("Has_Completion_In_Body", Flag71 (Id));
6784 W ("Has_Complex_Representation", Flag140 (Id));
6785 W ("Has_Component_Size_Clause", Flag68 (Id));
6786 W ("Has_Contiguous_Rep", Flag181 (Id));
6787 W ("Has_Controlled_Component", Flag43 (Id));
6788 W ("Has_Controlling_Result", Flag98 (Id));
6789 W ("Has_Convention_Pragma", Flag119 (Id));
6790 W ("Has_Delayed_Freeze", Flag18 (Id));
6791 W ("Has_Discriminants", Flag5 (Id));
6792 W ("Has_Enumeration_Rep_Clause", Flag66 (Id));
6793 W ("Has_Exit", Flag47 (Id));
6794 W ("Has_External_Tag_Rep_Clause", Flag110 (Id));
6795 W ("Has_Forward_Instantiation", Flag175 (Id));
6796 W ("Has_Fully_Qualified_Name", Flag173 (Id));
6797 W ("Has_Gigi_Rep_Item", Flag82 (Id));
6798 W ("Has_Homonym", Flag56 (Id));
6799 W ("Has_Initial_Value", Flag219 (Id));
6800 W ("Has_Machine_Radix_Clause", Flag83 (Id));
6801 W ("Has_Master_Entity", Flag21 (Id));
6802 W ("Has_Missing_Return", Flag142 (Id));
6803 W ("Has_Nested_Block_With_Handler", Flag101 (Id));
6804 W ("Has_Non_Standard_Rep", Flag75 (Id));
6805 W ("Has_Object_Size_Clause", Flag172 (Id));
6806 W ("Has_Per_Object_Constraint", Flag154 (Id));
6807 W ("Has_Persistent_BSS", Flag188 (Id));
6808 W ("Has_Postconditions", Flag240 (Id));
6809 W ("Has_Pragma_Controlled", Flag27 (Id));
6810 W ("Has_Pragma_Elaborate_Body", Flag150 (Id));
6811 W ("Has_Pragma_Inline", Flag157 (Id));
6812 W ("Has_Pragma_Inline_Always", Flag230 (Id));
6813 W ("Has_Pragma_Pack", Flag121 (Id));
6814 W ("Has_Pragma_Preelab_Init", Flag221 (Id));
6815 W ("Has_Pragma_Pure", Flag203 (Id));
6816 W ("Has_Pragma_Pure_Function", Flag179 (Id));
6817 W ("Has_Pragma_Thread_Local_Storage", Flag169 (Id));
6818 W ("Has_Pragma_Unmodified", Flag233 (Id));
6819 W ("Has_Pragma_Unreferenced", Flag180 (Id));
6820 W ("Has_Pragma_Unreferenced_Objects", Flag212 (Id));
6821 W ("Has_Primitive_Operations", Flag120 (Id));
6822 W ("Has_Private_Declaration", Flag155 (Id));
6823 W ("Has_Qualified_Name", Flag161 (Id));
6824 W ("Has_RACW", Flag214 (Id));
6825 W ("Has_Record_Rep_Clause", Flag65 (Id));
6826 W ("Has_Recursive_Call", Flag143 (Id));
6827 W ("Has_Size_Clause", Flag29 (Id));
6828 W ("Has_Small_Clause", Flag67 (Id));
6829 W ("Has_Specified_Layout", Flag100 (Id));
6830 W ("Has_Specified_Stream_Input", Flag190 (Id));
6831 W ("Has_Specified_Stream_Output", Flag191 (Id));
6832 W ("Has_Specified_Stream_Read", Flag192 (Id));
6833 W ("Has_Specified_Stream_Write", Flag193 (Id));
6834 W ("Has_Static_Discriminants", Flag211 (Id));
6835 W ("Has_Storage_Size_Clause", Flag23 (Id));
6836 W ("Has_Stream_Size_Clause", Flag184 (Id));
6837 W ("Has_Subprogram_Descriptor", Flag93 (Id));
6838 W ("Has_Task", Flag30 (Id));
6839 W ("Has_Thunks", Flag228 (Id));
6840 W ("Has_Unchecked_Union", Flag123 (Id));
6841 W ("Has_Unknown_Discriminants", Flag72 (Id));
6842 W ("Has_Up_Level_Access", Flag215 (Id));
6843 W ("Has_Volatile_Components", Flag87 (Id));
6844 W ("Has_Xref_Entry", Flag182 (Id));
6845 W ("Implemented_By_Entry", Flag232 (Id));
6846 W ("In_Package_Body", Flag48 (Id));
6847 W ("In_Private_Part", Flag45 (Id));
6848 W ("In_Use", Flag8 (Id));
6849 W ("Is_AST_Entry", Flag132 (Id));
6850 W ("Is_Abstract_Subprogram", Flag19 (Id));
6851 W ("Is_Abstract_Type", Flag146 (Id));
6852 W ("Is_Local_Anonymous_Access", Flag194 (Id));
6853 W ("Is_Access_Constant", Flag69 (Id));
6854 W ("Is_Ada_2005_Only", Flag185 (Id));
6855 W ("Is_Aliased", Flag15 (Id));
6856 W ("Is_Asynchronous", Flag81 (Id));
6857 W ("Is_Atomic", Flag85 (Id));
6858 W ("Is_Bit_Packed_Array", Flag122 (Id));
6859 W ("Is_CPP_Class", Flag74 (Id));
6860 W ("Is_Called", Flag102 (Id));
6861 W ("Is_Character_Type", Flag63 (Id));
6862 W ("Is_Child_Unit", Flag73 (Id));
6863 W ("Is_Class_Wide_Equivalent_Type", Flag35 (Id));
6864 W ("Is_Compilation_Unit", Flag149 (Id));
6865 W ("Is_Completely_Hidden", Flag103 (Id));
6866 W ("Is_Concurrent_Record_Type", Flag20 (Id));
6867 W ("Is_Constr_Subt_For_UN_Aliased", Flag141 (Id));
6868 W ("Is_Constr_Subt_For_U_Nominal", Flag80 (Id));
6869 W ("Is_Constrained", Flag12 (Id));
6870 W ("Is_Constructor", Flag76 (Id));
6871 W ("Is_Controlled", Flag42 (Id));
6872 W ("Is_Controlling_Formal", Flag97 (Id));
6873 W ("Is_Descendent_Of_Address", Flag223 (Id));
6874 W ("Is_Discrim_SO_Function", Flag176 (Id));
6875 W ("Is_Dispatch_Table_Entity", Flag234 (Id));
6876 W ("Is_Dispatching_Operation", Flag6 (Id));
6877 W ("Is_Eliminated", Flag124 (Id));
6878 W ("Is_Entry_Formal", Flag52 (Id));
6879 W ("Is_Exported", Flag99 (Id));
6880 W ("Is_First_Subtype", Flag70 (Id));
6881 W ("Is_For_Access_Subtype", Flag118 (Id));
6882 W ("Is_Formal_Subprogram", Flag111 (Id));
6883 W ("Is_Frozen", Flag4 (Id));
6884 W ("Is_Generic_Actual_Type", Flag94 (Id));
6885 W ("Is_Generic_Instance", Flag130 (Id));
6886 W ("Is_Generic_Type", Flag13 (Id));
6887 W ("Is_Hidden", Flag57 (Id));
6888 W ("Is_Hidden_Open_Scope", Flag171 (Id));
6889 W ("Is_Immediately_Visible", Flag7 (Id));
6890 W ("Is_Imported", Flag24 (Id));
6891 W ("Is_Inlined", Flag11 (Id));
6892 W ("Is_Instantiated", Flag126 (Id));
6893 W ("Is_Interface", Flag186 (Id));
6894 W ("Is_Internal", Flag17 (Id));
6895 W ("Is_Interrupt_Handler", Flag89 (Id));
6896 W ("Is_Intrinsic_Subprogram", Flag64 (Id));
6897 W ("Is_Itype", Flag91 (Id));
6898 W ("Is_Known_Non_Null", Flag37 (Id));
6899 W ("Is_Known_Null", Flag204 (Id));
6900 W ("Is_Known_Valid", Flag170 (Id));
6901 W ("Is_Limited_Composite", Flag106 (Id));
6902 W ("Is_Limited_Interface", Flag197 (Id));
6903 W ("Is_Limited_Record", Flag25 (Id));
6904 W ("Is_Machine_Code_Subprogram", Flag137 (Id));
6905 W ("Is_Non_Static_Subtype", Flag109 (Id));
6906 W ("Is_Null_Init_Proc", Flag178 (Id));
6907 W ("Is_Obsolescent", Flag153 (Id));
6908 W ("Is_Only_Out_Parameter", Flag226 (Id));
6909 W ("Is_Optional_Parameter", Flag134 (Id));
6910 W ("Is_Overriding_Operation", Flag39 (Id));
6911 W ("Is_Package_Body_Entity", Flag160 (Id));
6912 W ("Is_Packed", Flag51 (Id));
6913 W ("Is_Packed_Array_Type", Flag138 (Id));
6914 W ("Is_Potentially_Use_Visible", Flag9 (Id));
6915 W ("Is_Preelaborated", Flag59 (Id));
6916 W ("Is_Primitive", Flag218 (Id));
6917 W ("Is_Primitive_Wrapper", Flag195 (Id));
6918 W ("Is_Private_Composite", Flag107 (Id));
6919 W ("Is_Private_Descendant", Flag53 (Id));
6920 W ("Is_Private_Primitive", Flag245 (Id));
6921 W ("Is_Protected_Interface", Flag198 (Id));
6922 W ("Is_Public", Flag10 (Id));
6923 W ("Is_Pure", Flag44 (Id));
6924 W ("Is_Pure_Unit_Access_Type", Flag189 (Id));
6925 W ("Is_RACW_Stub_Type", Flag244 (Id));
6926 W ("Is_Raised", Flag224 (Id));
6927 W ("Is_Remote_Call_Interface", Flag62 (Id));
6928 W ("Is_Remote_Types", Flag61 (Id));
6929 W ("Is_Renaming_Of_Object", Flag112 (Id));
6930 W ("Is_Return_Object", Flag209 (Id));
6931 W ("Is_Shared_Passive", Flag60 (Id));
6932 W ("Is_Synchronized_Interface", Flag199 (Id));
6933 W ("Is_Statically_Allocated", Flag28 (Id));
6934 W ("Is_Tag", Flag78 (Id));
6935 W ("Is_Tagged_Type", Flag55 (Id));
6936 W ("Is_Task_Interface", Flag200 (Id));
6937 W ("Is_Thunk", Flag225 (Id));
6938 W ("Is_Trivial_Subprogram", Flag235 (Id));
6939 W ("Is_True_Constant", Flag163 (Id));
6940 W ("Is_Unchecked_Union", Flag117 (Id));
6941 W ("Is_Underlying_Record_View", Flag246 (Id));
6942 W ("Is_Unsigned_Type", Flag144 (Id));
6943 W ("Is_VMS_Exception", Flag133 (Id));
6944 W ("Is_Valued_Procedure", Flag127 (Id));
6945 W ("Is_Visible_Child_Unit", Flag116 (Id));
6946 W ("Is_Visible_Formal", Flag206 (Id));
6947 W ("Is_Volatile", Flag16 (Id));
6948 W ("Itype_Printed", Flag202 (Id));
6949 W ("Kill_Elaboration_Checks", Flag32 (Id));
6950 W ("Kill_Range_Checks", Flag33 (Id));
6951 W ("Kill_Tag_Checks", Flag34 (Id));
6952 W ("Known_To_Have_Preelab_Init", Flag207 (Id));
6953 W ("Low_Bound_Tested", Flag205 (Id));
6954 W ("Machine_Radix_10", Flag84 (Id));
6955 W ("Materialize_Entity", Flag168 (Id));
6956 W ("Must_Be_On_Byte_Boundary", Flag183 (Id));
6957 W ("Must_Have_Preelab_Init", Flag208 (Id));
6958 W ("Needs_Debug_Info", Flag147 (Id));
6959 W ("Needs_No_Actuals", Flag22 (Id));
6960 W ("Never_Set_In_Source", Flag115 (Id));
6961 W ("No_Pool_Assigned", Flag131 (Id));
6962 W ("No_Return", Flag113 (Id));
6963 W ("No_Strict_Aliasing", Flag136 (Id));
6964 W ("Non_Binary_Modulus", Flag58 (Id));
6965 W ("Nonzero_Is_True", Flag162 (Id));
6966 W ("OK_To_Rename", Flag247 (Id));
6967 W ("OK_To_Reorder_Components", Flag239 (Id));
6968 W ("Optimize_Alignment_Space", Flag241 (Id));
6969 W ("Optimize_Alignment_Time", Flag242 (Id));
6970 W ("Overlays_Constant", Flag243 (Id));
6971 W ("Reachable", Flag49 (Id));
6972 W ("Referenced", Flag156 (Id));
6973 W ("Referenced_As_LHS", Flag36 (Id));
6974 W ("Referenced_As_Out_Parameter", Flag227 (Id));
6975 W ("Renamed_In_Spec", Flag231 (Id));
6976 W ("Requires_Overriding", Flag213 (Id));
6977 W ("Return_Present", Flag54 (Id));
6978 W ("Returns_By_Ref", Flag90 (Id));
6979 W ("Reverse_Bit_Order", Flag164 (Id));
6980 W ("Sec_Stack_Needed_For_Return", Flag167 (Id));
6981 W ("Size_Depends_On_Discriminant", Flag177 (Id));
6982 W ("Size_Known_At_Compile_Time", Flag92 (Id));
6983 W ("Static_Elaboration_Desired", Flag77 (Id));
6984 W ("Strict_Alignment", Flag145 (Id));
6985 W ("Suppress_Elaboration_Warnings", Flag148 (Id));
6986 W ("Suppress_Init_Proc", Flag105 (Id));
6987 W ("Suppress_Style_Checks", Flag165 (Id));
6988 W ("Suppress_Value_Tracking_On_Call", Flag217 (Id));
6989 W ("Treat_As_Volatile", Flag41 (Id));
6990 W ("Universal_Aliasing", Flag216 (Id));
6991 W ("Used_As_Generic_Actual", Flag222 (Id));
6992 W ("Uses_Sec_Stack", Flag95 (Id));
6993 W ("Vax_Float", Flag151 (Id));
6994 W ("Warnings_Off", Flag96 (Id));
6995 W ("Warnings_Off_Used", Flag236 (Id));
6996 W ("Warnings_Off_Used_Unmodified", Flag237 (Id));
6997 W ("Warnings_Off_Used_Unreferenced", Flag238 (Id));
6998 W ("Was_Hidden", Flag196 (Id));
6999 end Write_Entity_Flags;
7001 -----------------------
7002 -- Write_Entity_Info --
7003 -----------------------
7005 procedure Write_Entity_Info (Id : Entity_Id; Prefix : String) is
7007 procedure Write_Attribute (Which : String; Nam : E);
7008 -- Write attribute value with given string name
7010 procedure Write_Kind (Id : Entity_Id);
7011 -- Write Ekind field of entity
7013 ---------------------
7014 -- Write_Attribute --
7015 ---------------------
7017 procedure Write_Attribute (Which : String; Nam : E) is
7021 Write_Int (Int (Nam));
7023 Write_Name (Chars (Nam));
7025 end Write_Attribute;
7031 procedure Write_Kind (Id : Entity_Id) is
7032 K : constant String := Entity_Kind'Image (Ekind (Id));
7036 Write_Str (" Kind ");
7038 if Is_Type (Id) and then Is_Tagged_Type (Id) then
7039 Write_Str ("TAGGED ");
7042 Write_Str (K (3 .. K'Length));
7045 if Is_Type (Id) and then Depends_On_Private (Id) then
7046 Write_Str ("Depends_On_Private ");
7050 -- Start of processing for Write_Entity_Info
7054 Write_Attribute ("Name ", Id);
7055 Write_Int (Int (Id));
7059 Write_Attribute (" Type ", Etype (Id));
7061 Write_Attribute (" Scope ", Scope (Id));
7066 when Discrete_Kind =>
7067 Write_Str ("Bounds: Id = ");
7069 if Present (Scalar_Range (Id)) then
7070 Write_Int (Int (Type_Low_Bound (Id)));
7071 Write_Str (" .. Id = ");
7072 Write_Int (Int (Type_High_Bound (Id)));
7074 Write_Str ("Empty");
7085 (" Component Type ", Component_Type (Id));
7088 Write_Str (" Indices ");
7090 Index := First_Index (Id);
7091 while Present (Index) loop
7092 Write_Attribute (" ", Etype (Index));
7093 Index := Next_Index (Index);
7101 (" Directly Designated Type ",
7102 Directly_Designated_Type (Id));
7105 when Overloadable_Kind =>
7106 if Present (Homonym (Id)) then
7107 Write_Str (" Homonym ");
7108 Write_Name (Chars (Homonym (Id)));
7110 Write_Int (Int (Homonym (Id)));
7117 if Ekind (Scope (Id)) in Record_Kind then
7119 " Original_Record_Component ",
7120 Original_Record_Component (Id));
7121 Write_Int (Int (Original_Record_Component (Id)));
7125 when others => null;
7127 end Write_Entity_Info;
7129 -----------------------
7130 -- Write_Field6_Name --
7131 -----------------------
7133 procedure Write_Field6_Name (Id : Entity_Id) is
7134 pragma Warnings (Off, Id);
7136 Write_Str ("First_Rep_Item");
7137 end Write_Field6_Name;
7139 -----------------------
7140 -- Write_Field7_Name --
7141 -----------------------
7143 procedure Write_Field7_Name (Id : Entity_Id) is
7144 pragma Warnings (Off, Id);
7146 Write_Str ("Freeze_Node");
7147 end Write_Field7_Name;
7149 -----------------------
7150 -- Write_Field8_Name --
7151 -----------------------
7153 procedure Write_Field8_Name (Id : Entity_Id) is
7158 Write_Str ("Normalized_First_Bit");
7162 E_Subprogram_Body =>
7163 Write_Str ("Mechanism");
7166 Write_Str ("Associated_Node_For_Itype");
7169 Write_Str ("First_Exit_Statement");
7172 Write_Str ("Dependent_Instances");
7175 Write_Str ("Postcondition_Proc");
7177 when E_Return_Statement =>
7178 Write_Str ("Return_Applies_To");
7181 Write_Str ("Hiding_Loop_Variable");
7184 Write_Str ("Field8??");
7186 end Write_Field8_Name;
7188 -----------------------
7189 -- Write_Field9_Name --
7190 -----------------------
7192 procedure Write_Field9_Name (Id : Entity_Id) is
7196 Write_Str ("Class_Wide_Type");
7199 E_Generic_Function |
7201 E_Generic_Procedure |
7204 Write_Str ("Renaming_Map");
7207 Write_Str ("Current_Value");
7210 Write_Str ("Field9??");
7212 end Write_Field9_Name;
7214 ------------------------
7215 -- Write_Field10_Name --
7216 ------------------------
7218 procedure Write_Field10_Name (Id : Entity_Id) is
7222 Write_Str ("Referenced_Object");
7224 when E_In_Parameter |
7226 Write_Str ("Discriminal_Link");
7232 Write_Str ("Handler_Records");
7236 Write_Str ("Normalized_Position_Max");
7239 Write_Str ("Field10??");
7241 end Write_Field10_Name;
7243 ------------------------
7244 -- Write_Field11_Name --
7245 ------------------------
7247 procedure Write_Field11_Name (Id : Entity_Id) is
7251 Write_Str ("Entry_Component");
7255 Write_Str ("Component_Bit_Offset");
7258 Write_Str ("Full_View");
7260 when E_Enumeration_Literal =>
7261 Write_Str ("Enumeration_Pos");
7264 Write_Str ("Block_Node");
7270 Write_Str ("Protected_Body_Subprogram");
7272 when E_Generic_Package =>
7273 Write_Str ("Generic_Homonym");
7276 Write_Str ("Full_View");
7279 Write_Str ("Field11??");
7281 end Write_Field11_Name;
7283 ------------------------
7284 -- Write_Field12_Name --
7285 ------------------------
7287 procedure Write_Field12_Name (Id : Entity_Id) is
7291 Write_Str ("Barrier_Function");
7293 when E_Enumeration_Literal =>
7294 Write_Str ("Enumeration_Rep");
7302 E_In_Out_Parameter |
7306 Write_Str ("Esize");
7310 Write_Str ("Next_Inlined_Subprogram");
7313 Write_Str ("Associated_Formal_Package");
7316 Write_Str ("Field12??");
7318 end Write_Field12_Name;
7320 ------------------------
7321 -- Write_Field13_Name --
7322 ------------------------
7324 procedure Write_Field13_Name (Id : Entity_Id) is
7328 Write_Str ("RM_Size");
7332 Write_Str ("Component_Clause");
7335 if not Comes_From_Source (Id)
7337 Chars (Id) = Name_Op_Ne
7339 Write_Str ("Corresponding_Equality");
7341 elsif Comes_From_Source (Id) then
7342 Write_Str ("Elaboration_Entity");
7345 Write_Str ("Field13??");
7350 Write_Str ("Extra_Accessibility");
7354 Generic_Unit_Kind =>
7355 Write_Str ("Elaboration_Entity");
7358 Write_Str ("Field13??");
7360 end Write_Field13_Name;
7362 -----------------------
7363 -- Write_Field14_Name --
7364 -----------------------
7366 procedure Write_Field14_Name (Id : Entity_Id) is
7375 Write_Str ("Alignment");
7379 Write_Str ("Normalized_Position");
7383 Write_Str ("First_Optional_Parameter");
7386 E_Generic_Package =>
7387 Write_Str ("Shadow_Entities");
7390 Write_Str ("Field14??");
7392 end Write_Field14_Name;
7394 ------------------------
7395 -- Write_Field15_Name --
7396 ------------------------
7398 procedure Write_Field15_Name (Id : Entity_Id) is
7403 Write_Str ("Storage_Size_Variable");
7405 when Class_Wide_Kind |
7409 Write_Str ("Primitive_Operations");
7412 Write_Str ("DT_Entry_Count");
7414 when Decimal_Fixed_Point_Kind =>
7415 Write_Str ("Scale_Value");
7417 when E_Discriminant =>
7418 Write_Str ("Discriminant_Number");
7421 Write_Str ("Extra_Formal");
7425 Write_Str ("DT_Position");
7428 Write_Str ("Entry_Parameters_Type");
7430 when Enumeration_Kind =>
7431 Write_Str ("Lit_Indexes");
7435 Write_Str ("Related_Instance");
7437 when E_Protected_Type =>
7438 Write_Str ("Entry_Bodies_Array");
7440 when E_String_Literal_Subtype =>
7441 Write_Str ("String_Literal_Low_Bound");
7444 Write_Str ("Field15??");
7446 end Write_Field15_Name;
7448 ------------------------
7449 -- Write_Field16_Name --
7450 ------------------------
7452 procedure Write_Field16_Name (Id : Entity_Id) is
7456 Write_Str ("Entry_Formal");
7460 Write_Str ("DTC_Entity");
7465 Write_Str ("First_Private_Entity");
7467 when E_Record_Type |
7468 E_Record_Type_With_Private =>
7469 Write_Str ("Access_Disp_Table");
7471 when E_String_Literal_Subtype =>
7472 Write_Str ("String_Literal_Length");
7474 when Enumeration_Kind =>
7475 Write_Str ("Lit_Strings");
7479 Write_Str ("Unset_Reference");
7481 when E_Record_Subtype |
7482 E_Class_Wide_Subtype =>
7483 Write_Str ("Cloned_Subtype");
7486 Write_Str ("Field16??");
7488 end Write_Field16_Name;
7490 ------------------------
7491 -- Write_Field17_Name --
7492 ------------------------
7494 procedure Write_Field17_Name (Id : Entity_Id) is
7498 Write_Str ("Digits_Value");
7501 Write_Str ("Prival");
7503 when E_Discriminant =>
7504 Write_Str ("Discriminal");
7513 E_Generic_Function |
7515 E_Generic_Procedure |
7523 E_Return_Statement |
7525 E_Subprogram_Type =>
7526 Write_Str ("First_Entity");
7529 Write_Str ("First_Index");
7531 when Enumeration_Kind =>
7532 Write_Str ("First_Literal");
7535 Write_Str ("Master_Id");
7537 when Modular_Integer_Kind =>
7538 Write_Str ("Modulus");
7542 E_Generic_In_Out_Parameter |
7544 Write_Str ("Actual_Subtype");
7546 when E_Incomplete_Type =>
7547 Write_Str ("Non_Limited_View");
7549 when E_Incomplete_Subtype =>
7550 if From_With_Type (Id) then
7551 Write_Str ("Non_Limited_View");
7555 Write_Str ("Field17??");
7557 end Write_Field17_Name;
7559 ------------------------
7560 -- Write_Field18_Name --
7561 ------------------------
7563 procedure Write_Field18_Name (Id : Entity_Id) is
7566 when E_Enumeration_Literal |
7570 Write_Str ("Alias");
7572 when E_Record_Type =>
7573 Write_Str ("Corresponding_Concurrent_Type");
7575 when E_Entry_Index_Parameter =>
7576 Write_Str ("Entry_Index_Constant");
7578 when E_Class_Wide_Subtype |
7579 E_Access_Protected_Subprogram_Type |
7580 E_Anonymous_Access_Protected_Subprogram_Type |
7581 E_Access_Subprogram_Type |
7583 Write_Str ("Equivalent_Type");
7585 when Fixed_Point_Kind =>
7586 Write_Str ("Delta_Value");
7589 Write_Str ("Renamed_Object");
7593 E_Generic_Function |
7594 E_Generic_Procedure |
7595 E_Generic_Package =>
7596 Write_Str ("Renamed_Entity");
7598 when Incomplete_Or_Private_Kind =>
7599 Write_Str ("Private_Dependents");
7601 when Concurrent_Kind =>
7602 Write_Str ("Corresponding_Record_Type");
7607 Write_Str ("Enclosing_Scope");
7610 Write_Str ("Field18??");
7612 end Write_Field18_Name;
7614 -----------------------
7615 -- Write_Field19_Name --
7616 -----------------------
7618 procedure Write_Field19_Name (Id : Entity_Id) is
7623 Write_Str ("Related_Array_Object");
7629 E_Return_Statement |
7631 Write_Str ("Finalization_Chain_Entity");
7633 when E_Constant | E_Variable =>
7634 Write_Str ("Size_Check_Code");
7636 when E_Discriminant =>
7637 Write_Str ("Corresponding_Discriminant");
7640 E_Generic_Package =>
7641 Write_Str ("Body_Entity");
7643 when E_Package_Body |
7645 Write_Str ("Spec_Entity");
7647 when Private_Kind =>
7648 Write_Str ("Underlying_Full_View");
7650 when E_Record_Type =>
7651 Write_Str ("Parent_Subtype");
7654 Write_Str ("Field19??");
7656 end Write_Field19_Name;
7658 -----------------------
7659 -- Write_Field20_Name --
7660 -----------------------
7662 procedure Write_Field20_Name (Id : Entity_Id) is
7666 Write_Str ("Component_Type");
7668 when E_In_Parameter |
7669 E_Generic_In_Parameter =>
7670 Write_Str ("Default_Value");
7673 Write_Str ("Directly_Designated_Type");
7676 Write_Str ("Discriminant_Checking_Func");
7680 Write_Str ("Prival_Link");
7682 when E_Discriminant =>
7683 Write_Str ("Discriminant_Default_Value");
7692 E_Generic_Function |
7694 E_Generic_Procedure |
7702 E_Return_Statement |
7704 E_Subprogram_Type =>
7706 Write_Str ("Last_Entity");
7709 Write_Str ("Scalar_Range");
7712 Write_Str ("Register_Exception_Call");
7715 Write_Str ("Field20??");
7717 end Write_Field20_Name;
7719 -----------------------
7720 -- Write_Field21_Name --
7721 -----------------------
7723 procedure Write_Field21_Name (Id : Entity_Id) is
7729 E_Generic_Function |
7731 E_Generic_Procedure |
7733 Write_Str ("Interface_Name");
7735 when Concurrent_Kind |
7736 Incomplete_Or_Private_Kind |
7740 Write_Str ("Discriminant_Constraint");
7743 Write_Str ("Accept_Address");
7745 when Fixed_Point_Kind =>
7746 Write_Str ("Small_Value");
7748 when E_In_Parameter =>
7749 Write_Str ("Default_Expr_Function");
7752 Modular_Integer_Kind =>
7753 Write_Str ("Original_Array_Type");
7756 Write_Str ("Field21??");
7758 end Write_Field21_Name;
7760 -----------------------
7761 -- Write_Field22_Name --
7762 -----------------------
7764 procedure Write_Field22_Name (Id : Entity_Id) is
7768 Write_Str ("Associated_Storage_Pool");
7771 Write_Str ("Component_Size");
7775 Write_Str ("Original_Record_Component");
7777 when E_Enumeration_Literal =>
7778 Write_Str ("Enumeration_Rep_Expr");
7781 Write_Str ("Exception_Code");
7784 Write_Str ("Protected_Formal");
7786 when E_Record_Type =>
7787 Write_Str ("Corresponding_Remote_Type");
7797 E_Generic_Function |
7798 E_Generic_Procedure |
7801 E_Return_Statement |
7804 Write_Str ("Scope_Depth_Value");
7806 when E_Record_Type_With_Private |
7807 E_Record_Subtype_With_Private |
7810 E_Limited_Private_Type |
7811 E_Limited_Private_Subtype =>
7812 Write_Str ("Private_View");
7815 Write_Str ("Shared_Var_Procs_Instance");
7818 Write_Str ("Field22??");
7820 end Write_Field22_Name;
7822 ------------------------
7823 -- Write_Field23_Name --
7824 ------------------------
7826 procedure Write_Field23_Name (Id : Entity_Id) is
7830 Write_Str ("Associated_Final_Chain");
7833 Write_Str ("Packed_Array_Type");
7836 Write_Str ("Entry_Cancel_Parameter");
7838 when E_Discriminant =>
7839 Write_Str ("CR_Discriminant");
7841 when E_Enumeration_Type =>
7842 Write_Str ("Enum_Pos_To_Rep");
7846 Write_Str ("Extra_Constrained");
7848 when E_Generic_Function |
7850 E_Generic_Procedure =>
7851 Write_Str ("Inner_Instances");
7853 when Concurrent_Kind |
7854 Incomplete_Or_Private_Kind |
7858 Write_Str ("Stored_Constraint");
7862 if Present (Scope (Id))
7863 and then Is_Protected_Type (Scope (Id))
7865 Write_Str ("Protection_Object");
7867 Write_Str ("Generic_Renamings");
7871 if Is_Generic_Instance (Id) then
7872 Write_Str ("Generic_Renamings");
7874 Write_Str ("Limited_View");
7878 Write_Str ("Protection_Object");
7881 Write_Str ("Field23??");
7883 end Write_Field23_Name;
7885 ------------------------
7886 -- Write_Field24_Name --
7887 ------------------------
7889 procedure Write_Field24_Name (Id : Entity_Id) is
7892 when Subprogram_Kind =>
7893 Write_Str ("Spec_PPC_List");
7895 when E_Record_Type =>
7896 Write_Str ("Underlying_Record_View");
7898 when E_Variable | E_Constant =>
7899 Write_Str ("Related_Expression");
7904 end Write_Field24_Name;
7906 ------------------------
7907 -- Write_Field25_Name --
7908 ------------------------
7910 procedure Write_Field25_Name (Id : Entity_Id) is
7914 Write_Str ("DT_Offset_To_Top_Func");
7918 Write_Str ("Interface_Alias");
7920 when E_Record_Type |
7922 E_Record_Type_With_Private |
7923 E_Record_Subtype_With_Private =>
7924 Write_Str ("Interfaces");
7927 Write_Str ("Task_Body_Procedure");
7930 Write_Str ("Debug_Renaming_Link");
7933 Write_Str ("Field25??");
7935 end Write_Field25_Name;
7937 ------------------------
7938 -- Write_Field26_Name --
7939 ------------------------
7941 procedure Write_Field26_Name (Id : Entity_Id) is
7946 Write_Str ("Related_Type");
7948 when E_Generic_Package |
7950 Write_Str ("Package_Instantiation");
7955 if Is_Dispatching_Operation (Id) then
7956 Write_Str ("Overridden_Operation");
7958 Write_Str ("Static_Initialization");
7961 when E_Record_Type |
7962 E_Record_Type_With_Private =>
7963 Write_Str ("Dispatch_Table_Wrappers");
7965 when E_In_Out_Parameter |
7968 Write_Str ("Last_Assignment");
7971 Write_Str ("Relative_Deadline_Variable");
7974 Write_Str ("Field26??");
7976 end Write_Field26_Name;
7978 ------------------------
7979 -- Write_Field27_Name --
7980 ------------------------
7982 procedure Write_Field27_Name (Id : Entity_Id) is
7986 Write_Str ("Wrapped_Entity");
7988 when E_Package | Type_Kind =>
7989 Write_Str ("Current_Use_Clause");
7992 Write_Str ("Field27??");
7994 end Write_Field27_Name;
7996 ------------------------
7997 -- Write_Field28_Name --
7998 ------------------------
8000 procedure Write_Field28_Name (Id : Entity_Id) is
8003 when E_Procedure | E_Function | E_Entry =>
8004 Write_Str ("Extra_Formals");
8007 Write_Str ("Field28??");
8009 end Write_Field28_Name;
8011 -------------------------
8012 -- Iterator Procedures --
8013 -------------------------
8015 procedure Proc_Next_Component (N : in out Node_Id) is
8017 N := Next_Component (N);
8018 end Proc_Next_Component;
8020 procedure Proc_Next_Component_Or_Discriminant (N : in out Node_Id) is
8022 N := Next_Entity (N);
8023 while Present (N) loop
8024 exit when Ekind_In (N, E_Component, E_Discriminant);
8025 N := Next_Entity (N);
8027 end Proc_Next_Component_Or_Discriminant;
8029 procedure Proc_Next_Discriminant (N : in out Node_Id) is
8031 N := Next_Discriminant (N);
8032 end Proc_Next_Discriminant;
8034 procedure Proc_Next_Formal (N : in out Node_Id) is
8036 N := Next_Formal (N);
8037 end Proc_Next_Formal;
8039 procedure Proc_Next_Formal_With_Extras (N : in out Node_Id) is
8041 N := Next_Formal_With_Extras (N);
8042 end Proc_Next_Formal_With_Extras;
8044 procedure Proc_Next_Index (N : in out Node_Id) is
8046 N := Next_Index (N);
8047 end Proc_Next_Index;
8049 procedure Proc_Next_Inlined_Subprogram (N : in out Node_Id) is
8051 N := Next_Inlined_Subprogram (N);
8052 end Proc_Next_Inlined_Subprogram;
8054 procedure Proc_Next_Literal (N : in out Node_Id) is
8056 N := Next_Literal (N);
8057 end Proc_Next_Literal;
8059 procedure Proc_Next_Stored_Discriminant (N : in out Node_Id) is
8061 N := Next_Stored_Discriminant (N);
8062 end Proc_Next_Stored_Discriminant;