1 ------------------------------------------------------------------------------
3 -- GNAT COMPILER COMPONENTS --
9 -- Copyright (C) 1992-2010, Free Software Foundation, Inc. --
11 -- GNAT is free software; you can redistribute it and/or modify it under --
12 -- terms of the GNU General Public License as published by the Free Soft- --
13 -- ware Foundation; either version 3, or (at your option) any later ver- --
14 -- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
15 -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
16 -- or FITNESS FOR A PARTICULAR PURPOSE. --
18 -- As a special exception under Section 7 of GPL version 3, you are granted --
19 -- additional permissions described in the GCC Runtime Library Exception, --
20 -- version 3.1, as published by the Free Software Foundation. --
22 -- You should have received a copy of the GNU General Public License and --
23 -- a copy of the GCC Runtime Library Exception along with this program; --
24 -- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see --
25 -- <http://www.gnu.org/licenses/>. --
27 -- GNAT was originally developed by the GNAT team at New York University. --
28 -- Extensive contributions were provided by Ada Core Technologies Inc. --
30 ------------------------------------------------------------------------------
32 pragma Style_Checks (All_Checks);
33 -- Turn off subprogram ordering, not used for this unit
35 with Atree; use Atree;
36 with Nlists; use Nlists;
37 with Output; use Output;
38 with Sinfo; use Sinfo;
39 with Stand; use Stand;
43 use Atree.Unchecked_Access;
44 -- This is one of the packages that is allowed direct untyped access to
45 -- the fields in a node, since it provides the next level abstraction
46 -- which incorporates appropriate checks.
48 ----------------------------------------------
49 -- Usage of Fields in Defining Entity Nodes --
50 ----------------------------------------------
52 -- Four of these fields are defined in Sinfo, since they in are the base
53 -- part of the node. The access routines for these four fields and the
54 -- corresponding set procedures are defined in Sinfo. These fields are
55 -- present in all entities. Note that Homonym is also in the base part of
56 -- the node, but has access routines that are more properly part of Einfo,
57 -- which is why they are defined here.
64 -- Remaining fields are present only in extended nodes (i.e. entities)
66 -- The following fields are present in all entities
69 -- First_Rep_Item Node6
72 -- The usage of other fields (and the entity kinds to which it applies)
73 -- depends on the particular field (see Einfo spec for details).
75 -- Associated_Node_For_Itype Node8
76 -- Dependent_Instances Elist8
77 -- Hiding_Loop_Variable Node8
78 -- Mechanism Uint8 (but returns Mechanism_Type)
79 -- Normalized_First_Bit Uint8
80 -- Postcondition_Proc Node8
81 -- Return_Applies_To Node8
82 -- First_Exit_Statement Node8
84 -- Class_Wide_Type Node9
85 -- Current_Value Node9
88 -- 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_Protected_Entry Node18
153 -- Corresponding_Record_Type Node18
154 -- Delta_Value Ureal18
155 -- Enclosing_Scope Node18
156 -- Equivalent_Type Node18
157 -- Private_Dependents Elist18
158 -- Renamed_Entity Node18
159 -- Renamed_Object Node18
161 -- Body_Entity Node19
162 -- Corresponding_Discriminant Node19
163 -- Finalization_Chain_Entity Node19
164 -- Parent_Subtype Node19
165 -- Related_Array_Object Node19
166 -- Size_Check_Code Node19
167 -- Spec_Entity Node19
168 -- Underlying_Full_View Node19
170 -- Component_Type Node20
171 -- Default_Value Node20
172 -- Directly_Designated_Type Node20
173 -- Discriminant_Checking_Func Node20
174 -- Discriminant_Default_Value Node20
175 -- Last_Entity Node20
176 -- Prival_Link Node20
177 -- Register_Exception_Call Node20
178 -- Scalar_Range Node20
180 -- Accept_Address Elist21
181 -- Default_Expr_Function Node21
182 -- Discriminant_Constraint Elist21
183 -- Interface_Name Node21
184 -- Original_Array_Type Node21
185 -- Small_Value Ureal21
187 -- Associated_Storage_Pool Node22
188 -- Component_Size Uint22
189 -- Corresponding_Remote_Type Node22
190 -- Enumeration_Rep_Expr Node22
191 -- Exception_Code Uint22
192 -- Original_Record_Component Node22
193 -- Private_View Node22
194 -- Protected_Formal Node22
195 -- Scope_Depth_Value Uint22
196 -- Shared_Var_Procs_Instance Node22
198 -- Associated_Final_Chain Node23
199 -- CR_Discriminant Node23
200 -- Entry_Cancel_Parameter Node23
201 -- Enum_Pos_To_Rep Node23
202 -- Extra_Constrained Node23
203 -- Generic_Renamings Elist23
204 -- Inner_Instances Elist23
205 -- Limited_View Node23
206 -- Packed_Array_Type Node23
207 -- Protection_Object Node23
208 -- Stored_Constraint Elist23
210 -- Related_Expression Node24
211 -- Spec_PPC_List 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 -- Relative_Deadline_Variable Node26
224 -- Static_Initialization Node26
226 -- Current_Use_Clause Node27
227 -- Related_Type Node27
228 -- Wrapped_Entity Node27
230 -- Extra_Formals Node28
231 -- Underlying_Record_View Node28
233 ---------------------------------------------
234 -- Usage of Flags in Defining Entity Nodes --
235 ---------------------------------------------
237 -- All flags are unique, there is no overlaying, so each flag is physically
238 -- present in every entity. However, for many of the flags, it only makes
239 -- sense for them to be set true for certain subsets of entity kinds. See
240 -- the spec of Einfo for further details.
242 -- Note: Flag1-Flag3 are absent from this list, since these flag positions
243 -- are used for the flags Analyzed, Comes_From_Source, and Error_Posted,
244 -- which are common to all nodes, including entity nodes.
247 -- Has_Discriminants Flag5
248 -- Is_Dispatching_Operation Flag6
249 -- Is_Immediately_Visible Flag7
251 -- Is_Potentially_Use_Visible Flag9
255 -- Is_Constrained Flag12
256 -- Is_Generic_Type Flag13
257 -- Depends_On_Private Flag14
259 -- Is_Volatile Flag16
260 -- Is_Internal Flag17
261 -- Has_Delayed_Freeze Flag18
262 -- Is_Abstract_Subprogram Flag19
263 -- Is_Concurrent_Record_Type Flag20
265 -- Has_Master_Entity Flag21
266 -- Needs_No_Actuals Flag22
267 -- Has_Storage_Size_Clause Flag23
268 -- Is_Imported Flag24
269 -- Is_Limited_Record Flag25
270 -- Has_Completion Flag26
271 -- Has_Pragma_Controlled Flag27
272 -- Is_Statically_Allocated Flag28
273 -- Has_Size_Clause Flag29
276 -- Checks_May_Be_Suppressed Flag31
277 -- Kill_Elaboration_Checks Flag32
278 -- Kill_Range_Checks Flag33
279 -- Kill_Tag_Checks Flag34
280 -- Is_Class_Wide_Equivalent_Type Flag35
281 -- Referenced_As_LHS Flag36
282 -- Is_Known_Non_Null Flag37
283 -- Can_Never_Be_Null Flag38
284 -- Is_Overriding_Operation Flag39
285 -- Body_Needed_For_SAL Flag40
287 -- Treat_As_Volatile Flag41
288 -- Is_Controlled Flag42
289 -- Has_Controlled_Component Flag43
291 -- In_Private_Part Flag45
292 -- Has_Alignment_Clause Flag46
294 -- In_Package_Body Flag48
296 -- Delay_Subprogram_Descriptors Flag50
299 -- Is_Entry_Formal Flag52
300 -- Is_Private_Descendant Flag53
301 -- Return_Present Flag54
302 -- Is_Tagged_Type Flag55
303 -- Has_Homonym Flag56
305 -- Non_Binary_Modulus Flag58
306 -- Is_Preelaborated Flag59
307 -- Is_Shared_Passive Flag60
309 -- Is_Remote_Types Flag61
310 -- Is_Remote_Call_Interface Flag62
311 -- Is_Character_Type Flag63
312 -- Is_Intrinsic_Subprogram Flag64
313 -- Has_Record_Rep_Clause Flag65
314 -- Has_Enumeration_Rep_Clause Flag66
315 -- Has_Small_Clause Flag67
316 -- Has_Component_Size_Clause Flag68
317 -- Is_Access_Constant Flag69
318 -- Is_First_Subtype Flag70
320 -- Has_Completion_In_Body Flag71
321 -- Has_Unknown_Discriminants Flag72
322 -- Is_Child_Unit Flag73
323 -- Is_CPP_Class Flag74
324 -- Has_Non_Standard_Rep Flag75
325 -- Is_Constructor Flag76
326 -- Static_Elaboration_Desired Flag77
328 -- Has_All_Calls_Remote Flag79
329 -- Is_Constr_Subt_For_U_Nominal Flag80
331 -- Is_Asynchronous Flag81
332 -- Has_Gigi_Rep_Item Flag82
333 -- Has_Machine_Radix_Clause Flag83
334 -- Machine_Radix_10 Flag84
336 -- Has_Atomic_Components Flag86
337 -- Has_Volatile_Components Flag87
338 -- Discard_Names Flag88
339 -- Is_Interrupt_Handler Flag89
340 -- Returns_By_Ref Flag90
343 -- Size_Known_At_Compile_Time Flag92
344 -- Has_Subprogram_Descriptor Flag93
345 -- Is_Generic_Actual_Type Flag94
346 -- Uses_Sec_Stack Flag95
347 -- Warnings_Off Flag96
348 -- Is_Controlling_Formal Flag97
349 -- Has_Controlling_Result Flag98
350 -- Is_Exported Flag99
351 -- Has_Specified_Layout Flag100
353 -- Has_Nested_Block_With_Handler Flag101
355 -- Is_Completely_Hidden Flag103
356 -- Address_Taken Flag104
357 -- Suppress_Init_Proc Flag105
358 -- Is_Limited_Composite Flag106
359 -- Is_Private_Composite Flag107
360 -- Default_Expressions_Processed Flag108
361 -- Is_Non_Static_Subtype Flag109
362 -- Has_External_Tag_Rep_Clause Flag110
364 -- Is_Formal_Subprogram Flag111
365 -- Is_Renaming_Of_Object Flag112
367 -- Delay_Cleanups Flag114
368 -- Never_Set_In_Source Flag115
369 -- Is_Visible_Child_Unit Flag116
370 -- Is_Unchecked_Union Flag117
371 -- Is_For_Access_Subtype Flag118
372 -- Has_Convention_Pragma Flag119
373 -- Has_Primitive_Operations Flag120
375 -- Has_Pragma_Pack Flag121
376 -- Is_Bit_Packed_Array Flag122
377 -- Has_Unchecked_Union Flag123
378 -- Is_Eliminated Flag124
379 -- C_Pass_By_Copy Flag125
380 -- Is_Instantiated Flag126
381 -- Is_Valued_Procedure Flag127
382 -- (used for Component_Alignment) Flag128
383 -- (used for Component_Alignment) Flag129
384 -- Is_Generic_Instance Flag130
386 -- No_Pool_Assigned Flag131
387 -- Is_AST_Entry Flag132
388 -- Is_VMS_Exception Flag133
389 -- Is_Optional_Parameter Flag134
390 -- Has_Aliased_Components Flag135
391 -- No_Strict_Aliasing Flag136
392 -- Is_Machine_Code_Subprogram Flag137
393 -- Is_Packed_Array_Type Flag138
394 -- Has_Biased_Representation Flag139
395 -- Has_Complex_Representation Flag140
397 -- Is_Constr_Subt_For_UN_Aliased Flag141
398 -- Has_Missing_Return Flag142
399 -- Has_Recursive_Call Flag143
400 -- Is_Unsigned_Type Flag144
401 -- Strict_Alignment Flag145
402 -- Is_Abstract_Type Flag146
403 -- Needs_Debug_Info Flag147
404 -- Suppress_Elaboration_Warnings Flag148
405 -- Is_Compilation_Unit Flag149
406 -- Has_Pragma_Elaborate_Body Flag150
409 -- Entry_Accepted Flag152
410 -- Is_Obsolescent Flag153
411 -- Has_Per_Object_Constraint Flag154
412 -- Has_Private_Declaration Flag155
413 -- Referenced Flag156
414 -- Has_Pragma_Inline Flag157
415 -- Finalize_Storage_Only Flag158
416 -- From_With_Type Flag159
417 -- Is_Package_Body_Entity Flag160
419 -- Has_Qualified_Name Flag161
420 -- Nonzero_Is_True Flag162
421 -- Is_True_Constant Flag163
422 -- Reverse_Bit_Order Flag164
423 -- Suppress_Style_Checks Flag165
424 -- Debug_Info_Off Flag166
425 -- Sec_Stack_Needed_For_Return Flag167
426 -- Materialize_Entity Flag168
427 -- Has_Pragma_Thread_Local_Storage Flag169
428 -- Is_Known_Valid Flag170
430 -- Is_Hidden_Open_Scope Flag171
431 -- Has_Object_Size_Clause Flag172
432 -- Has_Fully_Qualified_Name Flag173
433 -- Elaboration_Entity_Required Flag174
434 -- Has_Forward_Instantiation Flag175
435 -- Is_Discrim_SO_Function Flag176
436 -- Size_Depends_On_Discriminant Flag177
437 -- Is_Null_Init_Proc Flag178
438 -- Has_Pragma_Pure_Function Flag179
439 -- Has_Pragma_Unreferenced Flag180
441 -- Has_Contiguous_Rep Flag181
442 -- Has_Xref_Entry Flag182
443 -- Must_Be_On_Byte_Boundary Flag183
444 -- Has_Stream_Size_Clause Flag184
445 -- Is_Ada_2005_Only Flag185
446 -- Is_Interface Flag186
447 -- Has_Constrained_Partial_View Flag187
448 -- Has_Persistent_BSS Flag188
449 -- Is_Pure_Unit_Access_Type Flag189
450 -- Has_Specified_Stream_Input Flag190
452 -- Has_Specified_Stream_Output Flag191
453 -- Has_Specified_Stream_Read Flag192
454 -- Has_Specified_Stream_Write Flag193
455 -- Is_Local_Anonymous_Access Flag194
456 -- Is_Primitive_Wrapper Flag195
457 -- Was_Hidden Flag196
458 -- Is_Limited_Interface Flag197
460 -- Has_Anon_Block_Suffix Flag201
461 -- Itype_Printed Flag202
462 -- Has_Pragma_Pure Flag203
463 -- Is_Known_Null Flag204
464 -- Low_Bound_Tested Flag205
465 -- Is_Visible_Formal Flag206
466 -- Known_To_Have_Preelab_Init Flag207
467 -- Must_Have_Preelab_Init Flag208
468 -- Is_Return_Object Flag209
469 -- Elaborate_Body_Desirable Flag210
471 -- Has_Static_Discriminants Flag211
472 -- Has_Pragma_Unreferenced_Objects Flag212
473 -- Requires_Overriding Flag213
475 -- Has_Up_Level_Access Flag215
476 -- Universal_Aliasing Flag216
477 -- Suppress_Value_Tracking_On_Call Flag217
478 -- Is_Primitive Flag218
479 -- Has_Initial_Value Flag219
480 -- Has_Dispatch_Table Flag220
482 -- Has_Pragma_Preelab_Init Flag221
483 -- Used_As_Generic_Actual Flag222
484 -- Is_Descendent_Of_Address Flag223
487 -- Is_Only_Out_Parameter Flag226
488 -- Referenced_As_Out_Parameter Flag227
489 -- Has_Thunks Flag228
490 -- Can_Use_Internal_Rep Flag229
491 -- Has_Pragma_Inline_Always Flag230
493 -- Renamed_In_Spec Flag231
494 -- Implemented_By_Entry Flag232
495 -- Has_Pragma_Unmodified Flag233
496 -- Is_Dispatch_Table_Entity Flag234
497 -- Is_Trivial_Subprogram Flag235
498 -- Warnings_Off_Used Flag236
499 -- Warnings_Off_Used_Unmodified Flag237
500 -- Warnings_Off_Used_Unreferenced Flag238
501 -- OK_To_Reorder_Components Flag239
502 -- Has_Postconditions Flag240
504 -- Optimize_Alignment_Space Flag241
505 -- Optimize_Alignment_Time Flag242
506 -- Overlays_Constant Flag243
507 -- Is_RACW_Stub_Type Flag244
508 -- Is_Private_Primitive Flag245
509 -- Is_Underlying_Record_View Flag246
510 -- OK_To_Rename Flag247
516 -----------------------
517 -- Local subprograms --
518 -----------------------
520 function Rep_Clause (Id : E; Rep_Name : Name_Id) return N;
521 -- Returns the attribute definition clause for Id whose name is Rep_Name.
522 -- Returns Empty if no matching attribute definition clause found for Id.
528 function Rep_Clause (Id : E; Rep_Name : Name_Id) return N is
532 Ritem := First_Rep_Item (Id);
533 while Present (Ritem) loop
534 if Nkind (Ritem) = N_Attribute_Definition_Clause
535 and then Chars (Ritem) = Rep_Name
539 Ritem := Next_Rep_Item (Ritem);
546 --------------------------------
547 -- Attribute Access Functions --
548 --------------------------------
550 function Accept_Address (Id : E) return L is
555 function Access_Disp_Table (Id : E) return L is
557 pragma Assert (Is_Tagged_Type (Id));
558 return Elist16 (Implementation_Base_Type (Id));
559 end Access_Disp_Table;
561 function Actual_Subtype (Id : E) return E is
564 (Ekind_In (Id, E_Constant, E_Variable, E_Generic_In_Out_Parameter)
565 or else Is_Formal (Id));
569 function Address_Taken (Id : E) return B is
574 function Aft_Value (Id : E) return U is
576 Delta_Val : Ureal := Delta_Value (Id);
578 while Delta_Val < Ureal_Tenth loop
579 Delta_Val := Delta_Val * Ureal_10;
580 Result := Result + 1;
583 return UI_From_Int (Result);
586 function Alias (Id : E) return E is
589 (Is_Overloadable (Id) or else Ekind (Id) = E_Subprogram_Type);
593 function Alignment (Id : E) return U is
595 pragma Assert (Is_Type (Id)
596 or else Is_Formal (Id)
597 or else Ekind_In (Id, E_Loop_Parameter,
604 function Associated_Final_Chain (Id : E) return E is
606 pragma Assert (Is_Access_Type (Id));
608 end Associated_Final_Chain;
610 function Associated_Formal_Package (Id : E) return E is
612 pragma Assert (Ekind (Id) = E_Package);
614 end Associated_Formal_Package;
616 function Associated_Node_For_Itype (Id : E) return N is
619 end Associated_Node_For_Itype;
621 function Associated_Storage_Pool (Id : E) return E is
623 pragma Assert (Is_Access_Type (Id));
624 return Node22 (Root_Type (Id));
625 end Associated_Storage_Pool;
627 function Barrier_Function (Id : E) return N is
629 pragma Assert (Is_Entry (Id));
631 end Barrier_Function;
633 function Block_Node (Id : E) return N is
635 pragma Assert (Ekind (Id) = E_Block);
639 function Body_Entity (Id : E) return E is
641 pragma Assert (Ekind_In (Id, E_Package, E_Generic_Package));
645 function Body_Needed_For_SAL (Id : E) return B is
648 (Ekind (Id) = E_Package
649 or else Is_Subprogram (Id)
650 or else Is_Generic_Unit (Id));
652 end Body_Needed_For_SAL;
654 function C_Pass_By_Copy (Id : E) return B is
656 pragma Assert (Is_Record_Type (Id));
657 return Flag125 (Implementation_Base_Type (Id));
660 function Can_Never_Be_Null (Id : E) return B is
663 end Can_Never_Be_Null;
665 function Checks_May_Be_Suppressed (Id : E) return B is
668 end Checks_May_Be_Suppressed;
670 function Class_Wide_Type (Id : E) return E is
672 pragma Assert (Is_Type (Id));
676 function Cloned_Subtype (Id : E) return E is
678 pragma Assert (Ekind_In (Id, E_Record_Subtype, E_Class_Wide_Subtype));
682 function Component_Bit_Offset (Id : E) return U is
684 pragma Assert (Ekind_In (Id, E_Component, E_Discriminant));
686 end Component_Bit_Offset;
688 function Component_Clause (Id : E) return N is
690 pragma Assert (Ekind_In (Id, E_Component, E_Discriminant));
692 end Component_Clause;
694 function Component_Size (Id : E) return U is
696 pragma Assert (Is_Array_Type (Id));
697 return Uint22 (Implementation_Base_Type (Id));
700 function Component_Type (Id : E) return E is
702 pragma Assert (Is_Array_Type (Id) or else Is_String_Type (Id));
703 return Node20 (Implementation_Base_Type (Id));
706 function Corresponding_Concurrent_Type (Id : E) return E is
708 pragma Assert (Ekind (Id) = E_Record_Type);
710 end Corresponding_Concurrent_Type;
712 function Corresponding_Discriminant (Id : E) return E is
714 pragma Assert (Ekind (Id) = E_Discriminant);
716 end Corresponding_Discriminant;
718 function Corresponding_Equality (Id : E) return E is
721 (Ekind (Id) = E_Function
722 and then not Comes_From_Source (Id)
723 and then Chars (Id) = Name_Op_Ne);
725 end Corresponding_Equality;
727 function Corresponding_Protected_Entry (Id : E) return E is
730 (Ekind (Id) = E_Subprogram_Body);
732 end Corresponding_Protected_Entry;
734 function Corresponding_Record_Type (Id : E) return E is
736 pragma Assert (Is_Concurrent_Type (Id));
738 end Corresponding_Record_Type;
740 function Corresponding_Remote_Type (Id : E) return E is
743 end Corresponding_Remote_Type;
745 function Current_Use_Clause (Id : E) return E is
747 pragma Assert (Ekind (Id) = E_Package or else Is_Type (Id));
749 end Current_Use_Clause;
751 function Current_Value (Id : E) return N is
753 pragma Assert (Ekind (Id) in Object_Kind);
757 function CR_Discriminant (Id : E) return E is
762 function Debug_Info_Off (Id : E) return B is
767 function Debug_Renaming_Link (Id : E) return E is
770 end Debug_Renaming_Link;
772 function Default_Expr_Function (Id : E) return E is
774 pragma Assert (Is_Formal (Id));
776 end Default_Expr_Function;
778 function Default_Expressions_Processed (Id : E) return B is
781 end Default_Expressions_Processed;
783 function Default_Value (Id : E) return N is
785 pragma Assert (Is_Formal (Id));
789 function Delay_Cleanups (Id : E) return B is
794 function Delay_Subprogram_Descriptors (Id : E) return B is
797 end Delay_Subprogram_Descriptors;
799 function Delta_Value (Id : E) return R is
801 pragma Assert (Is_Fixed_Point_Type (Id));
805 function Dependent_Instances (Id : E) return L is
807 pragma Assert (Is_Generic_Instance (Id));
809 end Dependent_Instances;
811 function Depends_On_Private (Id : E) return B is
813 pragma Assert (Nkind (Id) in N_Entity);
815 end Depends_On_Private;
817 function Digits_Value (Id : E) return U is
820 (Is_Floating_Point_Type (Id)
821 or else Is_Decimal_Fixed_Point_Type (Id));
825 function Directly_Designated_Type (Id : E) return E is
827 pragma Assert (Is_Access_Type (Id));
829 end Directly_Designated_Type;
831 function Discard_Names (Id : E) return B is
836 function Discriminal (Id : E) return E is
838 pragma Assert (Ekind (Id) = E_Discriminant);
842 function Discriminal_Link (Id : E) return N is
845 end Discriminal_Link;
847 function Discriminant_Checking_Func (Id : E) return E is
849 pragma Assert (Ekind (Id) = E_Component);
851 end Discriminant_Checking_Func;
853 function Discriminant_Constraint (Id : E) return L is
855 pragma Assert (Is_Composite_Type (Id) and then Has_Discriminants (Id));
857 end Discriminant_Constraint;
859 function Discriminant_Default_Value (Id : E) return N is
861 pragma Assert (Ekind (Id) = E_Discriminant);
863 end Discriminant_Default_Value;
865 function Discriminant_Number (Id : E) return U is
867 pragma Assert (Ekind (Id) = E_Discriminant);
869 end Discriminant_Number;
871 function Dispatch_Table_Wrappers (Id : E) return L is
873 pragma Assert (Is_Tagged_Type (Id));
874 return Elist26 (Implementation_Base_Type (Id));
875 end Dispatch_Table_Wrappers;
877 function DT_Entry_Count (Id : E) return U is
879 pragma Assert (Ekind (Id) = E_Component and then Is_Tag (Id));
883 function DT_Offset_To_Top_Func (Id : E) return E is
885 pragma Assert (Ekind (Id) = E_Component and then Is_Tag (Id));
887 end DT_Offset_To_Top_Func;
889 function DT_Position (Id : E) return U is
891 pragma Assert (Ekind_In (Id, E_Function, E_Procedure)
892 and then Present (DTC_Entity (Id)));
896 function DTC_Entity (Id : E) return E is
898 pragma Assert (Ekind_In (Id, E_Function, E_Procedure));
902 function Elaborate_Body_Desirable (Id : E) return B is
904 pragma Assert (Ekind (Id) = E_Package);
906 end Elaborate_Body_Desirable;
908 function Elaboration_Entity (Id : E) return E is
913 Ekind (Id) = E_Package
915 Is_Generic_Unit (Id));
917 end Elaboration_Entity;
919 function Elaboration_Entity_Required (Id : E) return B is
924 Ekind (Id) = E_Package
926 Is_Generic_Unit (Id));
928 end Elaboration_Entity_Required;
930 function Enclosing_Scope (Id : E) return E is
935 function Entry_Accepted (Id : E) return B is
937 pragma Assert (Is_Entry (Id));
941 function Entry_Bodies_Array (Id : E) return E is
944 end Entry_Bodies_Array;
946 function Entry_Cancel_Parameter (Id : E) return E is
949 end Entry_Cancel_Parameter;
951 function Entry_Component (Id : E) return E is
956 function Entry_Formal (Id : E) return E is
961 function Entry_Index_Constant (Id : E) return N is
963 pragma Assert (Ekind (Id) = E_Entry_Index_Parameter);
965 end Entry_Index_Constant;
967 function Entry_Parameters_Type (Id : E) return E is
970 end Entry_Parameters_Type;
972 function Enum_Pos_To_Rep (Id : E) return E is
974 pragma Assert (Ekind (Id) = E_Enumeration_Type);
978 function Enumeration_Pos (Id : E) return Uint is
980 pragma Assert (Ekind (Id) = E_Enumeration_Literal);
984 function Enumeration_Rep (Id : E) return U is
986 pragma Assert (Ekind (Id) = E_Enumeration_Literal);
990 function Enumeration_Rep_Expr (Id : E) return N is
992 pragma Assert (Ekind (Id) = E_Enumeration_Literal);
994 end Enumeration_Rep_Expr;
996 function Equivalent_Type (Id : E) return E is
999 (Ekind_In (Id, E_Class_Wide_Type,
1000 E_Class_Wide_Subtype,
1001 E_Access_Protected_Subprogram_Type,
1002 E_Anonymous_Access_Protected_Subprogram_Type,
1003 E_Access_Subprogram_Type,
1006 end Equivalent_Type;
1008 function Esize (Id : E) return Uint is
1013 function Exception_Code (Id : E) return Uint is
1015 pragma Assert (Ekind (Id) = E_Exception);
1019 function Extra_Accessibility (Id : E) return E is
1021 pragma Assert (Is_Formal (Id) or else Ekind (Id) = E_Variable);
1023 end Extra_Accessibility;
1025 function Extra_Constrained (Id : E) return E is
1027 pragma Assert (Is_Formal (Id) or else Ekind (Id) = E_Variable);
1029 end Extra_Constrained;
1031 function Extra_Formal (Id : E) return E is
1036 function Extra_Formals (Id : E) return E is
1039 (Is_Overloadable (Id)
1040 or else Ekind_In (Id, E_Entry_Family,
1042 E_Subprogram_Type));
1046 function Can_Use_Internal_Rep (Id : E) return B is
1048 pragma Assert (Is_Access_Subprogram_Type (Base_Type (Id)));
1049 return Flag229 (Base_Type (Id));
1050 end Can_Use_Internal_Rep;
1052 function Finalization_Chain_Entity (Id : E) return E is
1055 end Finalization_Chain_Entity;
1057 function Finalize_Storage_Only (Id : E) return B is
1059 pragma Assert (Is_Type (Id));
1060 return Flag158 (Base_Type (Id));
1061 end Finalize_Storage_Only;
1063 function First_Entity (Id : E) return E is
1068 function First_Exit_Statement (Id : E) return N is
1070 pragma Assert (Ekind (Id) = E_Loop);
1072 end First_Exit_Statement;
1074 function First_Index (Id : E) return N is
1076 pragma Assert (Is_Array_Type (Id) or else Is_String_Type (Id));
1080 function First_Literal (Id : E) return E is
1082 pragma Assert (Is_Enumeration_Type (Id));
1086 function First_Optional_Parameter (Id : E) return E is
1088 pragma Assert (Ekind_In (Id, E_Function, E_Procedure));
1090 end First_Optional_Parameter;
1092 function First_Private_Entity (Id : E) return E is
1094 pragma Assert (Ekind_In (Id, E_Package, E_Generic_Package)
1095 or else Ekind (Id) in Concurrent_Kind);
1097 end First_Private_Entity;
1099 function First_Rep_Item (Id : E) return E is
1104 function Freeze_Node (Id : E) return N is
1109 function From_With_Type (Id : E) return B is
1111 return Flag159 (Id);
1114 function Full_View (Id : E) return E is
1116 pragma Assert (Is_Type (Id) or else Ekind (Id) = E_Constant);
1120 function Generic_Homonym (Id : E) return E is
1122 pragma Assert (Ekind (Id) = E_Generic_Package);
1124 end Generic_Homonym;
1126 function Generic_Renamings (Id : E) return L is
1128 return Elist23 (Id);
1129 end Generic_Renamings;
1131 function Handler_Records (Id : E) return S is
1134 end Handler_Records;
1136 function Has_Aliased_Components (Id : E) return B is
1138 return Flag135 (Implementation_Base_Type (Id));
1139 end Has_Aliased_Components;
1141 function Has_Alignment_Clause (Id : E) return B is
1144 end Has_Alignment_Clause;
1146 function Has_All_Calls_Remote (Id : E) return B is
1149 end Has_All_Calls_Remote;
1151 function Has_Anon_Block_Suffix (Id : E) return B is
1153 return Flag201 (Id);
1154 end Has_Anon_Block_Suffix;
1156 function Has_Atomic_Components (Id : E) return B is
1158 return Flag86 (Implementation_Base_Type (Id));
1159 end Has_Atomic_Components;
1161 function Has_Biased_Representation (Id : E) return B is
1163 return Flag139 (Id);
1164 end Has_Biased_Representation;
1166 function Has_Completion (Id : E) return B is
1171 function Has_Completion_In_Body (Id : E) return B is
1173 pragma Assert (Is_Type (Id));
1175 end Has_Completion_In_Body;
1177 function Has_Complex_Representation (Id : E) return B is
1179 pragma Assert (Is_Type (Id));
1180 return Flag140 (Implementation_Base_Type (Id));
1181 end Has_Complex_Representation;
1183 function Has_Component_Size_Clause (Id : E) return B is
1185 pragma Assert (Is_Array_Type (Id));
1186 return Flag68 (Implementation_Base_Type (Id));
1187 end Has_Component_Size_Clause;
1189 function Has_Constrained_Partial_View (Id : E) return B is
1191 pragma Assert (Is_Type (Id));
1192 return Flag187 (Id);
1193 end Has_Constrained_Partial_View;
1195 function Has_Controlled_Component (Id : E) return B is
1197 return Flag43 (Base_Type (Id));
1198 end Has_Controlled_Component;
1200 function Has_Contiguous_Rep (Id : E) return B is
1202 return Flag181 (Id);
1203 end Has_Contiguous_Rep;
1205 function Has_Controlling_Result (Id : E) return B is
1208 end Has_Controlling_Result;
1210 function Has_Convention_Pragma (Id : E) return B is
1212 return Flag119 (Id);
1213 end Has_Convention_Pragma;
1215 function Has_Delayed_Freeze (Id : E) return B is
1217 pragma Assert (Nkind (Id) in N_Entity);
1219 end Has_Delayed_Freeze;
1221 function Has_Discriminants (Id : E) return B is
1223 pragma Assert (Nkind (Id) in N_Entity);
1225 end Has_Discriminants;
1227 function Has_Dispatch_Table (Id : E) return B is
1229 pragma Assert (Is_Tagged_Type (Id));
1230 return Flag220 (Id);
1231 end Has_Dispatch_Table;
1233 function Has_Enumeration_Rep_Clause (Id : E) return B is
1235 pragma Assert (Is_Enumeration_Type (Id));
1237 end Has_Enumeration_Rep_Clause;
1239 function Has_Exit (Id : E) return B is
1244 function Has_External_Tag_Rep_Clause (Id : E) return B is
1246 pragma Assert (Is_Tagged_Type (Id));
1247 return Flag110 (Id);
1248 end Has_External_Tag_Rep_Clause;
1250 function Has_Forward_Instantiation (Id : E) return B is
1252 return Flag175 (Id);
1253 end Has_Forward_Instantiation;
1255 function Has_Fully_Qualified_Name (Id : E) return B is
1257 return Flag173 (Id);
1258 end Has_Fully_Qualified_Name;
1260 function Has_Gigi_Rep_Item (Id : E) return B is
1263 end Has_Gigi_Rep_Item;
1265 function Has_Homonym (Id : E) return B is
1270 function Has_Initial_Value (Id : E) return B is
1273 (Ekind (Id) = E_Variable or else Is_Formal (Id));
1274 return Flag219 (Id);
1275 end Has_Initial_Value;
1277 function Has_Machine_Radix_Clause (Id : E) return B is
1279 pragma Assert (Is_Decimal_Fixed_Point_Type (Id));
1281 end Has_Machine_Radix_Clause;
1283 function Has_Master_Entity (Id : E) return B is
1286 end Has_Master_Entity;
1288 function Has_Missing_Return (Id : E) return B is
1290 pragma Assert (Ekind_In (Id, E_Function, E_Generic_Function));
1291 return Flag142 (Id);
1292 end Has_Missing_Return;
1294 function Has_Nested_Block_With_Handler (Id : E) return B is
1296 return Flag101 (Id);
1297 end Has_Nested_Block_With_Handler;
1299 function Has_Non_Standard_Rep (Id : E) return B is
1301 return Flag75 (Implementation_Base_Type (Id));
1302 end Has_Non_Standard_Rep;
1304 function Has_Object_Size_Clause (Id : E) return B is
1306 pragma Assert (Is_Type (Id));
1307 return Flag172 (Id);
1308 end Has_Object_Size_Clause;
1310 function Has_Per_Object_Constraint (Id : E) return B is
1312 return Flag154 (Id);
1313 end Has_Per_Object_Constraint;
1315 function Has_Persistent_BSS (Id : E) return B is
1317 return Flag188 (Id);
1318 end Has_Persistent_BSS;
1320 function Has_Postconditions (Id : E) return B is
1322 pragma Assert (Is_Subprogram (Id));
1323 return Flag240 (Id);
1324 end Has_Postconditions;
1326 function Has_Pragma_Controlled (Id : E) return B is
1328 pragma Assert (Is_Access_Type (Id));
1329 return Flag27 (Implementation_Base_Type (Id));
1330 end Has_Pragma_Controlled;
1332 function Has_Pragma_Elaborate_Body (Id : E) return B is
1334 return Flag150 (Id);
1335 end Has_Pragma_Elaborate_Body;
1337 function Has_Pragma_Inline (Id : E) return B is
1339 return Flag157 (Id);
1340 end Has_Pragma_Inline;
1342 function Has_Pragma_Inline_Always (Id : E) return B is
1344 return Flag230 (Id);
1345 end Has_Pragma_Inline_Always;
1347 function Has_Pragma_Pack (Id : E) return B is
1349 pragma Assert (Is_Record_Type (Id) or else Is_Array_Type (Id));
1350 return Flag121 (Implementation_Base_Type (Id));
1351 end Has_Pragma_Pack;
1353 function Has_Pragma_Preelab_Init (Id : E) return B is
1355 return Flag221 (Id);
1356 end Has_Pragma_Preelab_Init;
1358 function Has_Pragma_Pure (Id : E) return B is
1360 return Flag203 (Id);
1361 end Has_Pragma_Pure;
1363 function Has_Pragma_Pure_Function (Id : E) return B is
1365 return Flag179 (Id);
1366 end Has_Pragma_Pure_Function;
1368 function Has_Pragma_Thread_Local_Storage (Id : E) return B is
1370 return Flag169 (Id);
1371 end Has_Pragma_Thread_Local_Storage;
1373 function Has_Pragma_Unmodified (Id : E) return B is
1375 return Flag233 (Id);
1376 end Has_Pragma_Unmodified;
1378 function Has_Pragma_Unreferenced (Id : E) return B is
1380 return Flag180 (Id);
1381 end Has_Pragma_Unreferenced;
1383 function Has_Pragma_Unreferenced_Objects (Id : E) return B is
1385 pragma Assert (Is_Type (Id));
1386 return Flag212 (Id);
1387 end Has_Pragma_Unreferenced_Objects;
1389 function Has_Primitive_Operations (Id : E) return B is
1391 pragma Assert (Is_Type (Id));
1392 return Flag120 (Base_Type (Id));
1393 end Has_Primitive_Operations;
1395 function Has_Private_Declaration (Id : E) return B is
1397 return Flag155 (Id);
1398 end Has_Private_Declaration;
1400 function Has_Qualified_Name (Id : E) return B is
1402 return Flag161 (Id);
1403 end Has_Qualified_Name;
1405 function Has_RACW (Id : E) return B is
1407 pragma Assert (Ekind (Id) = E_Package);
1408 return Flag214 (Id);
1411 function Has_Record_Rep_Clause (Id : E) return B is
1413 pragma Assert (Is_Record_Type (Id));
1414 return Flag65 (Implementation_Base_Type (Id));
1415 end Has_Record_Rep_Clause;
1417 function Has_Recursive_Call (Id : E) return B is
1419 pragma Assert (Is_Subprogram (Id));
1420 return Flag143 (Id);
1421 end Has_Recursive_Call;
1423 function Has_Size_Clause (Id : E) return B is
1426 end Has_Size_Clause;
1428 function Has_Small_Clause (Id : E) return B is
1431 end Has_Small_Clause;
1433 function Has_Specified_Layout (Id : E) return B is
1435 pragma Assert (Is_Type (Id));
1436 return Flag100 (Implementation_Base_Type (Id));
1437 end Has_Specified_Layout;
1439 function Has_Specified_Stream_Input (Id : E) return B is
1441 pragma Assert (Is_Type (Id));
1442 return Flag190 (Id);
1443 end Has_Specified_Stream_Input;
1445 function Has_Specified_Stream_Output (Id : E) return B is
1447 pragma Assert (Is_Type (Id));
1448 return Flag191 (Id);
1449 end Has_Specified_Stream_Output;
1451 function Has_Specified_Stream_Read (Id : E) return B is
1453 pragma Assert (Is_Type (Id));
1454 return Flag192 (Id);
1455 end Has_Specified_Stream_Read;
1457 function Has_Specified_Stream_Write (Id : E) return B is
1459 pragma Assert (Is_Type (Id));
1460 return Flag193 (Id);
1461 end Has_Specified_Stream_Write;
1463 function Has_Static_Discriminants (Id : E) return B is
1465 pragma Assert (Is_Type (Id));
1466 return Flag211 (Id);
1467 end Has_Static_Discriminants;
1469 function Has_Storage_Size_Clause (Id : E) return B is
1471 pragma Assert (Is_Access_Type (Id) or else Is_Task_Type (Id));
1472 return Flag23 (Implementation_Base_Type (Id));
1473 end Has_Storage_Size_Clause;
1475 function Has_Stream_Size_Clause (Id : E) return B is
1477 return Flag184 (Id);
1478 end Has_Stream_Size_Clause;
1480 function Has_Subprogram_Descriptor (Id : E) return B is
1483 end Has_Subprogram_Descriptor;
1485 function Has_Task (Id : E) return B is
1487 return Flag30 (Base_Type (Id));
1490 function Has_Thunks (Id : E) return B is
1492 return Flag228 (Id);
1495 function Has_Unchecked_Union (Id : E) return B is
1497 return Flag123 (Base_Type (Id));
1498 end Has_Unchecked_Union;
1500 function Has_Unknown_Discriminants (Id : E) return B is
1502 pragma Assert (Is_Type (Id));
1504 end Has_Unknown_Discriminants;
1506 function Has_Up_Level_Access (Id : E) return B is
1509 (Ekind_In (Id, E_Variable, E_Constant, E_Loop_Parameter));
1510 return Flag215 (Id);
1511 end Has_Up_Level_Access;
1513 function Has_Volatile_Components (Id : E) return B is
1515 return Flag87 (Implementation_Base_Type (Id));
1516 end Has_Volatile_Components;
1518 function Has_Xref_Entry (Id : E) return B is
1520 return Flag182 (Implementation_Base_Type (Id));
1523 function Hiding_Loop_Variable (Id : E) return E is
1525 pragma Assert (Ekind (Id) = E_Variable);
1527 end Hiding_Loop_Variable;
1529 function Homonym (Id : E) return E is
1534 function Implemented_By_Entry (Id : E) return B is
1536 pragma Assert (Ekind_In (Id, E_Function, E_Procedure));
1537 return Flag232 (Id);
1538 end Implemented_By_Entry;
1540 function Interfaces (Id : E) return L is
1542 pragma Assert (Is_Record_Type (Id));
1543 return Elist25 (Id);
1546 function Interface_Alias (Id : E) return E is
1548 pragma Assert (Is_Subprogram (Id));
1550 end Interface_Alias;
1552 function In_Package_Body (Id : E) return B is
1555 end In_Package_Body;
1557 function In_Private_Part (Id : E) return B is
1560 end In_Private_Part;
1562 function In_Use (Id : E) return B is
1564 pragma Assert (Nkind (Id) in N_Entity);
1568 function Inner_Instances (Id : E) return L is
1570 return Elist23 (Id);
1571 end Inner_Instances;
1573 function Interface_Name (Id : E) return N is
1578 function Is_Abstract_Subprogram (Id : E) return B is
1580 pragma Assert (Is_Overloadable (Id));
1582 end Is_Abstract_Subprogram;
1584 function Is_Abstract_Type (Id : E) return B is
1586 pragma Assert (Is_Type (Id));
1587 return Flag146 (Id);
1588 end Is_Abstract_Type;
1590 function Is_Local_Anonymous_Access (Id : E) return B is
1592 pragma Assert (Is_Access_Type (Id));
1593 return Flag194 (Id);
1594 end Is_Local_Anonymous_Access;
1596 function Is_Access_Constant (Id : E) return B is
1598 pragma Assert (Is_Access_Type (Id));
1600 end Is_Access_Constant;
1602 function Is_Ada_2005_Only (Id : E) return B is
1604 return Flag185 (Id);
1605 end Is_Ada_2005_Only;
1607 function Is_Aliased (Id : E) return B is
1609 pragma Assert (Nkind (Id) in N_Entity);
1613 function Is_AST_Entry (Id : E) return B is
1615 pragma Assert (Is_Entry (Id));
1616 return Flag132 (Id);
1619 function Is_Asynchronous (Id : E) return B is
1621 pragma Assert (Ekind (Id) = E_Procedure or else Is_Type (Id));
1623 end Is_Asynchronous;
1625 function Is_Atomic (Id : E) return B is
1630 function Is_Bit_Packed_Array (Id : E) return B is
1632 return Flag122 (Implementation_Base_Type (Id));
1633 end Is_Bit_Packed_Array;
1635 function Is_Called (Id : E) return B is
1637 pragma Assert (Ekind_In (Id, E_Procedure, E_Function));
1638 return Flag102 (Id);
1641 function Is_Character_Type (Id : E) return B is
1644 end Is_Character_Type;
1646 function Is_Child_Unit (Id : E) return B is
1651 function Is_Class_Wide_Equivalent_Type (Id : E) return B is
1654 end Is_Class_Wide_Equivalent_Type;
1656 function Is_Compilation_Unit (Id : E) return B is
1658 return Flag149 (Id);
1659 end Is_Compilation_Unit;
1661 function Is_Completely_Hidden (Id : E) return B is
1663 pragma Assert (Ekind (Id) = E_Discriminant);
1664 return Flag103 (Id);
1665 end Is_Completely_Hidden;
1667 function Is_Constr_Subt_For_U_Nominal (Id : E) return B is
1670 end Is_Constr_Subt_For_U_Nominal;
1672 function Is_Constr_Subt_For_UN_Aliased (Id : E) return B is
1674 return Flag141 (Id);
1675 end Is_Constr_Subt_For_UN_Aliased;
1677 function Is_Constrained (Id : E) return B is
1679 pragma Assert (Nkind (Id) in N_Entity);
1683 function Is_Constructor (Id : E) return B is
1688 function Is_Controlled (Id : E) return B is
1690 return Flag42 (Base_Type (Id));
1693 function Is_Controlling_Formal (Id : E) return B is
1695 pragma Assert (Is_Formal (Id));
1697 end Is_Controlling_Formal;
1699 function Is_CPP_Class (Id : E) return B is
1704 function Is_Descendent_Of_Address (Id : E) return B is
1706 pragma Assert (Is_Type (Id));
1707 return Flag223 (Id);
1708 end Is_Descendent_Of_Address;
1710 function Is_Discrim_SO_Function (Id : E) return B is
1712 return Flag176 (Id);
1713 end Is_Discrim_SO_Function;
1715 function Is_Dispatch_Table_Entity (Id : E) return B is
1717 return Flag234 (Id);
1718 end Is_Dispatch_Table_Entity;
1720 function Is_Dispatching_Operation (Id : E) return B is
1722 pragma Assert (Nkind (Id) in N_Entity);
1724 end Is_Dispatching_Operation;
1726 function Is_Eliminated (Id : E) return B is
1728 return Flag124 (Id);
1731 function Is_Entry_Formal (Id : E) return B is
1734 end Is_Entry_Formal;
1736 function Is_Exported (Id : E) return B is
1741 function Is_First_Subtype (Id : E) return B is
1744 end Is_First_Subtype;
1746 function Is_For_Access_Subtype (Id : E) return B is
1748 pragma Assert (Ekind_In (Id, E_Record_Subtype, E_Private_Subtype));
1749 return Flag118 (Id);
1750 end Is_For_Access_Subtype;
1752 function Is_Formal_Subprogram (Id : E) return B is
1754 return Flag111 (Id);
1755 end Is_Formal_Subprogram;
1757 function Is_Frozen (Id : E) return B is
1762 function Is_Generic_Actual_Type (Id : E) return B is
1764 pragma Assert (Is_Type (Id));
1766 end Is_Generic_Actual_Type;
1768 function Is_Generic_Instance (Id : E) return B is
1770 return Flag130 (Id);
1771 end Is_Generic_Instance;
1773 function Is_Generic_Type (Id : E) return B is
1775 pragma Assert (Nkind (Id) in N_Entity);
1777 end Is_Generic_Type;
1779 function Is_Hidden (Id : E) return B is
1784 function Is_Hidden_Open_Scope (Id : E) return B is
1786 return Flag171 (Id);
1787 end Is_Hidden_Open_Scope;
1789 function Is_Immediately_Visible (Id : E) return B is
1791 pragma Assert (Nkind (Id) in N_Entity);
1793 end Is_Immediately_Visible;
1795 function Is_Imported (Id : E) return B is
1800 function Is_Inlined (Id : E) return B is
1805 function Is_Interface (Id : E) return B is
1807 return Flag186 (Id);
1810 function Is_Instantiated (Id : E) return B is
1812 return Flag126 (Id);
1813 end Is_Instantiated;
1815 function Is_Internal (Id : E) return B is
1817 pragma Assert (Nkind (Id) in N_Entity);
1821 function Is_Interrupt_Handler (Id : E) return B is
1823 pragma Assert (Nkind (Id) in N_Entity);
1825 end Is_Interrupt_Handler;
1827 function Is_Intrinsic_Subprogram (Id : E) return B is
1830 end Is_Intrinsic_Subprogram;
1832 function Is_Itype (Id : E) return B is
1837 function Is_Known_Non_Null (Id : E) return B is
1840 end Is_Known_Non_Null;
1842 function Is_Known_Null (Id : E) return B is
1844 return Flag204 (Id);
1847 function Is_Known_Valid (Id : E) return B is
1849 return Flag170 (Id);
1852 function Is_Limited_Composite (Id : E) return B is
1854 return Flag106 (Id);
1855 end Is_Limited_Composite;
1857 function Is_Limited_Interface (Id : E) return B is
1859 return Flag197 (Id);
1860 end Is_Limited_Interface;
1862 function Is_Limited_Record (Id : E) return B is
1865 end Is_Limited_Record;
1867 function Is_Machine_Code_Subprogram (Id : E) return B is
1869 pragma Assert (Is_Subprogram (Id));
1870 return Flag137 (Id);
1871 end Is_Machine_Code_Subprogram;
1873 function Is_Non_Static_Subtype (Id : E) return B is
1875 pragma Assert (Is_Type (Id));
1876 return Flag109 (Id);
1877 end Is_Non_Static_Subtype;
1879 function Is_Null_Init_Proc (Id : E) return B is
1881 pragma Assert (Ekind (Id) = E_Procedure);
1882 return Flag178 (Id);
1883 end Is_Null_Init_Proc;
1885 function Is_Obsolescent (Id : E) return B is
1887 return Flag153 (Id);
1890 function Is_Only_Out_Parameter (Id : E) return B is
1892 pragma Assert (Is_Formal (Id));
1893 return Flag226 (Id);
1894 end Is_Only_Out_Parameter;
1896 function Is_Optional_Parameter (Id : E) return B is
1898 pragma Assert (Is_Formal (Id));
1899 return Flag134 (Id);
1900 end Is_Optional_Parameter;
1902 function Is_Overriding_Operation (Id : E) return B is
1904 pragma Assert (Is_Subprogram (Id));
1906 end Is_Overriding_Operation;
1908 function Is_Package_Body_Entity (Id : E) return B is
1910 return Flag160 (Id);
1911 end Is_Package_Body_Entity;
1913 function Is_Packed (Id : E) return B is
1915 return Flag51 (Implementation_Base_Type (Id));
1918 function Is_Packed_Array_Type (Id : E) return B is
1920 return Flag138 (Id);
1921 end Is_Packed_Array_Type;
1923 function Is_Potentially_Use_Visible (Id : E) return B is
1925 pragma Assert (Nkind (Id) in N_Entity);
1927 end Is_Potentially_Use_Visible;
1929 function Is_Preelaborated (Id : E) return B is
1932 end Is_Preelaborated;
1934 function Is_Primitive (Id : E) return B is
1937 (Is_Overloadable (Id)
1938 or else Ekind_In (Id, E_Generic_Function, E_Generic_Procedure));
1939 return Flag218 (Id);
1942 function Is_Primitive_Wrapper (Id : E) return B is
1944 pragma Assert (Ekind_In (Id, E_Function, E_Procedure));
1945 return Flag195 (Id);
1946 end Is_Primitive_Wrapper;
1948 function Is_Private_Composite (Id : E) return B is
1950 pragma Assert (Is_Type (Id));
1951 return Flag107 (Id);
1952 end Is_Private_Composite;
1954 function Is_Private_Descendant (Id : E) return B is
1957 end Is_Private_Descendant;
1959 function Is_Private_Primitive (Id : E) return B is
1961 pragma Assert (Ekind_In (Id, E_Function, E_Procedure));
1962 return Flag245 (Id);
1963 end Is_Private_Primitive;
1965 function Is_Public (Id : E) return B is
1967 pragma Assert (Nkind (Id) in N_Entity);
1971 function Is_Pure (Id : E) return B is
1976 function Is_Pure_Unit_Access_Type (Id : E) return B is
1978 pragma Assert (Is_Access_Type (Id));
1979 return Flag189 (Id);
1980 end Is_Pure_Unit_Access_Type;
1982 function Is_RACW_Stub_Type (Id : E) return B is
1984 pragma Assert (Is_Type (Id));
1985 return Flag244 (Id);
1986 end Is_RACW_Stub_Type;
1988 function Is_Raised (Id : E) return B is
1990 pragma Assert (Ekind (Id) = E_Exception);
1991 return Flag224 (Id);
1994 function Is_Remote_Call_Interface (Id : E) return B is
1997 end Is_Remote_Call_Interface;
1999 function Is_Remote_Types (Id : E) return B is
2002 end Is_Remote_Types;
2004 function Is_Renaming_Of_Object (Id : E) return B is
2006 return Flag112 (Id);
2007 end Is_Renaming_Of_Object;
2009 function Is_Return_Object (Id : E) return B is
2011 return Flag209 (Id);
2012 end Is_Return_Object;
2014 function Is_Shared_Passive (Id : E) return B is
2017 end Is_Shared_Passive;
2019 function Is_Statically_Allocated (Id : E) return B is
2022 end Is_Statically_Allocated;
2024 function Is_Tag (Id : E) return B is
2026 pragma Assert (Nkind (Id) in N_Entity);
2030 function Is_Tagged_Type (Id : E) return B is
2035 function Is_Thunk (Id : E) return B is
2037 pragma Assert (Is_Subprogram (Id));
2038 return Flag225 (Id);
2041 function Is_Trivial_Subprogram (Id : E) return B is
2043 return Flag235 (Id);
2044 end Is_Trivial_Subprogram;
2046 function Is_True_Constant (Id : E) return B is
2048 return Flag163 (Id);
2049 end Is_True_Constant;
2051 function Is_Unchecked_Union (Id : E) return B is
2053 return Flag117 (Implementation_Base_Type (Id));
2054 end Is_Unchecked_Union;
2056 function Is_Underlying_Record_View (Id : E) return B is
2058 return Flag246 (Id);
2059 end Is_Underlying_Record_View;
2061 function Is_Unsigned_Type (Id : E) return B is
2063 pragma Assert (Is_Type (Id));
2064 return Flag144 (Id);
2065 end Is_Unsigned_Type;
2067 function Is_Valued_Procedure (Id : E) return B is
2069 pragma Assert (Ekind (Id) = E_Procedure);
2070 return Flag127 (Id);
2071 end Is_Valued_Procedure;
2073 function Is_Visible_Child_Unit (Id : E) return B is
2075 pragma Assert (Is_Child_Unit (Id));
2076 return Flag116 (Id);
2077 end Is_Visible_Child_Unit;
2079 function Is_Visible_Formal (Id : E) return B is
2081 return Flag206 (Id);
2082 end Is_Visible_Formal;
2084 function Is_VMS_Exception (Id : E) return B is
2086 return Flag133 (Id);
2087 end Is_VMS_Exception;
2089 function Is_Volatile (Id : E) return B is
2091 pragma Assert (Nkind (Id) in N_Entity);
2093 if Is_Type (Id) then
2094 return Flag16 (Base_Type (Id));
2100 function Itype_Printed (Id : E) return B is
2102 pragma Assert (Is_Itype (Id));
2103 return Flag202 (Id);
2106 function Kill_Elaboration_Checks (Id : E) return B is
2109 end Kill_Elaboration_Checks;
2111 function Kill_Range_Checks (Id : E) return B is
2114 end Kill_Range_Checks;
2116 function Kill_Tag_Checks (Id : E) return B is
2119 end Kill_Tag_Checks;
2121 function Known_To_Have_Preelab_Init (Id : E) return B is
2123 pragma Assert (Is_Type (Id));
2124 return Flag207 (Id);
2125 end Known_To_Have_Preelab_Init;
2127 function Last_Assignment (Id : E) return N is
2129 pragma Assert (Is_Assignable (Id));
2131 end Last_Assignment;
2133 function Last_Entity (Id : E) return E is
2138 function Limited_View (Id : E) return E is
2140 pragma Assert (Ekind (Id) = E_Package);
2144 function Lit_Indexes (Id : E) return E is
2146 pragma Assert (Is_Enumeration_Type (Id));
2150 function Lit_Strings (Id : E) return E is
2152 pragma Assert (Is_Enumeration_Type (Id));
2156 function Low_Bound_Tested (Id : E) return B is
2158 return Flag205 (Id);
2159 end Low_Bound_Tested;
2161 function Machine_Radix_10 (Id : E) return B is
2163 pragma Assert (Is_Decimal_Fixed_Point_Type (Id));
2165 end Machine_Radix_10;
2167 function Master_Id (Id : E) return E is
2169 pragma Assert (Is_Access_Type (Id));
2173 function Materialize_Entity (Id : E) return B is
2175 return Flag168 (Id);
2176 end Materialize_Entity;
2178 function Mechanism (Id : E) return M is
2180 pragma Assert (Ekind (Id) = E_Function or else Is_Formal (Id));
2181 return UI_To_Int (Uint8 (Id));
2184 function Modulus (Id : E) return Uint is
2186 pragma Assert (Is_Modular_Integer_Type (Id));
2187 return Uint17 (Base_Type (Id));
2190 function Must_Be_On_Byte_Boundary (Id : E) return B is
2192 pragma Assert (Is_Type (Id));
2193 return Flag183 (Id);
2194 end Must_Be_On_Byte_Boundary;
2196 function Must_Have_Preelab_Init (Id : E) return B is
2198 pragma Assert (Is_Type (Id));
2199 return Flag208 (Id);
2200 end Must_Have_Preelab_Init;
2202 function Needs_Debug_Info (Id : E) return B is
2204 return Flag147 (Id);
2205 end Needs_Debug_Info;
2207 function Needs_No_Actuals (Id : E) return B is
2210 (Is_Overloadable (Id)
2211 or else Ekind_In (Id, E_Subprogram_Type, E_Entry_Family));
2213 end Needs_No_Actuals;
2215 function Never_Set_In_Source (Id : E) return B is
2217 return Flag115 (Id);
2218 end Never_Set_In_Source;
2220 function Next_Inlined_Subprogram (Id : E) return E is
2223 end Next_Inlined_Subprogram;
2225 function No_Pool_Assigned (Id : E) return B is
2227 pragma Assert (Is_Access_Type (Id));
2228 return Flag131 (Root_Type (Id));
2229 end No_Pool_Assigned;
2231 function No_Return (Id : E) return B is
2233 return Flag113 (Id);
2236 function No_Strict_Aliasing (Id : E) return B is
2238 pragma Assert (Is_Access_Type (Id));
2239 return Flag136 (Base_Type (Id));
2240 end No_Strict_Aliasing;
2242 function Non_Binary_Modulus (Id : E) return B is
2244 pragma Assert (Is_Type (Id));
2245 return Flag58 (Base_Type (Id));
2246 end Non_Binary_Modulus;
2248 function Non_Limited_View (Id : E) return E is
2250 pragma Assert (Ekind (Id) in Incomplete_Kind);
2252 end Non_Limited_View;
2254 function Nonzero_Is_True (Id : E) return B is
2256 pragma Assert (Root_Type (Id) = Standard_Boolean);
2257 return Flag162 (Base_Type (Id));
2258 end Nonzero_Is_True;
2260 function Normalized_First_Bit (Id : E) return U is
2262 pragma Assert (Ekind_In (Id, E_Component, E_Discriminant));
2264 end Normalized_First_Bit;
2266 function Normalized_Position (Id : E) return U is
2268 pragma Assert (Ekind_In (Id, E_Component, E_Discriminant));
2270 end Normalized_Position;
2272 function Normalized_Position_Max (Id : E) return U is
2274 pragma Assert (Ekind_In (Id, E_Component, E_Discriminant));
2276 end Normalized_Position_Max;
2278 function OK_To_Rename (Id : E) return B is
2280 pragma Assert (Ekind (Id) = E_Variable);
2281 return Flag247 (Id);
2284 function OK_To_Reorder_Components (Id : E) return B is
2286 pragma Assert (Is_Record_Type (Id));
2287 return Flag239 (Base_Type (Id));
2288 end OK_To_Reorder_Components;
2290 function Optimize_Alignment_Space (Id : E) return B is
2293 (Is_Type (Id) or else Ekind_In (Id, E_Constant, E_Variable));
2294 return Flag241 (Id);
2295 end Optimize_Alignment_Space;
2297 function Optimize_Alignment_Time (Id : E) return B is
2300 (Is_Type (Id) or else Ekind_In (Id, E_Constant, E_Variable));
2301 return Flag242 (Id);
2302 end Optimize_Alignment_Time;
2304 function Original_Array_Type (Id : E) return E is
2306 pragma Assert (Is_Array_Type (Id) or else Is_Modular_Integer_Type (Id));
2308 end Original_Array_Type;
2310 function Original_Record_Component (Id : E) return E is
2312 pragma Assert (Ekind_In (Id, E_Void, E_Component, E_Discriminant));
2314 end Original_Record_Component;
2316 function Overlays_Constant (Id : E) return B is
2318 return Flag243 (Id);
2319 end Overlays_Constant;
2321 function Overridden_Operation (Id : E) return E is
2324 end Overridden_Operation;
2326 function Package_Instantiation (Id : E) return N is
2328 pragma Assert (Ekind_In (Id, E_Package, E_Generic_Package));
2330 end Package_Instantiation;
2332 function Packed_Array_Type (Id : E) return E is
2334 pragma Assert (Is_Array_Type (Id));
2336 end Packed_Array_Type;
2338 function Parent_Subtype (Id : E) return E is
2340 pragma Assert (Is_Record_Type (Id));
2341 return Node19 (Base_Type (Id));
2344 function Postcondition_Proc (Id : E) return E is
2346 pragma Assert (Ekind (Id) = E_Procedure);
2348 end Postcondition_Proc;
2350 function Primitive_Operations (Id : E) return L is
2352 pragma Assert (Is_Tagged_Type (Id));
2353 return Elist15 (Id);
2354 end Primitive_Operations;
2356 function Prival (Id : E) return E is
2358 pragma Assert (Is_Protected_Component (Id));
2362 function Prival_Link (Id : E) return E is
2364 pragma Assert (Ekind_In (Id, E_Constant, E_Variable));
2368 function Private_Dependents (Id : E) return L is
2370 pragma Assert (Is_Incomplete_Or_Private_Type (Id));
2371 return Elist18 (Id);
2372 end Private_Dependents;
2374 function Private_View (Id : E) return N is
2376 pragma Assert (Is_Private_Type (Id));
2380 function Protected_Body_Subprogram (Id : E) return E is
2382 pragma Assert (Is_Subprogram (Id) or else Is_Entry (Id));
2384 end Protected_Body_Subprogram;
2386 function Protected_Formal (Id : E) return E is
2388 pragma Assert (Is_Formal (Id));
2390 end Protected_Formal;
2392 function Protection_Object (Id : E) return E is
2395 (Ekind_In (Id, E_Entry, E_Entry_Family, E_Function, E_Procedure));
2397 end Protection_Object;
2399 function Reachable (Id : E) return B is
2404 function Referenced (Id : E) return B is
2406 return Flag156 (Id);
2409 function Referenced_As_LHS (Id : E) return B is
2412 end Referenced_As_LHS;
2414 function Referenced_As_Out_Parameter (Id : E) return B is
2416 return Flag227 (Id);
2417 end Referenced_As_Out_Parameter;
2419 function Referenced_Object (Id : E) return N is
2421 pragma Assert (Is_Type (Id));
2423 end Referenced_Object;
2425 function Register_Exception_Call (Id : E) return N is
2427 pragma Assert (Ekind (Id) = E_Exception);
2429 end Register_Exception_Call;
2431 function Related_Array_Object (Id : E) return E is
2433 pragma Assert (Is_Array_Type (Id));
2435 end Related_Array_Object;
2437 function Related_Expression (Id : E) return N is
2439 pragma Assert (Ekind (Id) in Type_Kind
2440 or else Ekind_In (Id, E_Constant, E_Variable));
2442 end Related_Expression;
2444 function Related_Instance (Id : E) return E is
2446 pragma Assert (Ekind_In (Id, E_Package, E_Package_Body));
2448 end Related_Instance;
2450 function Related_Type (Id : E) return E is
2452 pragma Assert (Ekind_In (Id, E_Component, E_Constant, E_Variable));
2456 function Relative_Deadline_Variable (Id : E) return E is
2458 pragma Assert (Is_Task_Type (Id));
2459 return Node26 (Implementation_Base_Type (Id));
2460 end Relative_Deadline_Variable;
2462 function Renamed_Entity (Id : E) return N is
2467 function Renamed_In_Spec (Id : E) return B is
2469 pragma Assert (Ekind (Id) = E_Package);
2470 return Flag231 (Id);
2471 end Renamed_In_Spec;
2473 function Renamed_Object (Id : E) return N is
2478 function Renaming_Map (Id : E) return U is
2483 function Requires_Overriding (Id : E) return B is
2485 pragma Assert (Is_Overloadable (Id));
2486 return Flag213 (Id);
2487 end Requires_Overriding;
2489 function Return_Present (Id : E) return B is
2494 function Return_Applies_To (Id : E) return N is
2497 end Return_Applies_To;
2499 function Returns_By_Ref (Id : E) return B is
2504 function Reverse_Bit_Order (Id : E) return B is
2506 pragma Assert (Is_Record_Type (Id));
2507 return Flag164 (Base_Type (Id));
2508 end Reverse_Bit_Order;
2510 function RM_Size (Id : E) return U is
2512 pragma Assert (Is_Type (Id));
2516 function Scalar_Range (Id : E) return N is
2521 function Scale_Value (Id : E) return U is
2526 function Scope_Depth_Value (Id : E) return U is
2529 end Scope_Depth_Value;
2531 function Sec_Stack_Needed_For_Return (Id : E) return B is
2533 return Flag167 (Id);
2534 end Sec_Stack_Needed_For_Return;
2536 function Shadow_Entities (Id : E) return S is
2538 pragma Assert (Ekind_In (Id, E_Package, E_Generic_Package));
2540 end Shadow_Entities;
2542 function Shared_Var_Procs_Instance (Id : E) return E is
2544 pragma Assert (Ekind (Id) = E_Variable);
2546 end Shared_Var_Procs_Instance;
2548 function Size_Check_Code (Id : E) return N is
2550 pragma Assert (Ekind_In (Id, E_Constant, E_Variable));
2552 end Size_Check_Code;
2554 function Size_Depends_On_Discriminant (Id : E) return B is
2556 return Flag177 (Id);
2557 end Size_Depends_On_Discriminant;
2559 function Size_Known_At_Compile_Time (Id : E) return B is
2562 end Size_Known_At_Compile_Time;
2564 function Small_Value (Id : E) return R is
2566 pragma Assert (Is_Fixed_Point_Type (Id));
2567 return Ureal21 (Id);
2570 function Spec_Entity (Id : E) return E is
2572 pragma Assert (Ekind (Id) = E_Package_Body or else Is_Formal (Id));
2576 function Spec_PPC_List (Id : E) return N is
2578 pragma Assert (Is_Subprogram (Id) or else Is_Generic_Subprogram (Id));
2582 function Storage_Size_Variable (Id : E) return E is
2584 pragma Assert (Is_Access_Type (Id) or else Is_Task_Type (Id));
2585 return Node15 (Implementation_Base_Type (Id));
2586 end Storage_Size_Variable;
2588 function Static_Elaboration_Desired (Id : E) return B is
2590 pragma Assert (Ekind (Id) = E_Package);
2592 end Static_Elaboration_Desired;
2594 function Static_Initialization (Id : E) return N is
2597 (Ekind (Id) = E_Procedure and then not Is_Dispatching_Operation (Id));
2599 end Static_Initialization;
2601 function Stored_Constraint (Id : E) return L is
2604 (Is_Composite_Type (Id) and then not Is_Array_Type (Id));
2605 return Elist23 (Id);
2606 end Stored_Constraint;
2608 function Strict_Alignment (Id : E) return B is
2610 return Flag145 (Implementation_Base_Type (Id));
2611 end Strict_Alignment;
2613 function String_Literal_Length (Id : E) return U is
2616 end String_Literal_Length;
2618 function String_Literal_Low_Bound (Id : E) return N is
2621 end String_Literal_Low_Bound;
2623 function Suppress_Elaboration_Warnings (Id : E) return B is
2625 return Flag148 (Id);
2626 end Suppress_Elaboration_Warnings;
2628 function Suppress_Init_Proc (Id : E) return B is
2630 return Flag105 (Base_Type (Id));
2631 end Suppress_Init_Proc;
2633 function Suppress_Style_Checks (Id : E) return B is
2635 return Flag165 (Id);
2636 end Suppress_Style_Checks;
2638 function Suppress_Value_Tracking_On_Call (Id : E) return B is
2640 return Flag217 (Id);
2641 end Suppress_Value_Tracking_On_Call;
2643 function Task_Body_Procedure (Id : E) return N is
2645 pragma Assert (Ekind (Id) in Task_Kind);
2647 end Task_Body_Procedure;
2649 function Treat_As_Volatile (Id : E) return B is
2652 end Treat_As_Volatile;
2654 function Underlying_Full_View (Id : E) return E is
2656 pragma Assert (Ekind (Id) in Private_Kind);
2658 end Underlying_Full_View;
2660 function Underlying_Record_View (Id : E) return E is
2663 end Underlying_Record_View;
2665 function Universal_Aliasing (Id : E) return B is
2667 pragma Assert (Is_Type (Id));
2668 return Flag216 (Base_Type (Id));
2669 end Universal_Aliasing;
2671 function Unset_Reference (Id : E) return N is
2674 end Unset_Reference;
2676 function Used_As_Generic_Actual (Id : E) return B is
2678 return Flag222 (Id);
2679 end Used_As_Generic_Actual;
2681 function Uses_Sec_Stack (Id : E) return B is
2686 function Vax_Float (Id : E) return B is
2688 return Flag151 (Base_Type (Id));
2691 function Warnings_Off (Id : E) return B is
2696 function Warnings_Off_Used (Id : E) return B is
2698 return Flag236 (Id);
2699 end Warnings_Off_Used;
2701 function Warnings_Off_Used_Unmodified (Id : E) return B is
2703 return Flag237 (Id);
2704 end Warnings_Off_Used_Unmodified;
2706 function Warnings_Off_Used_Unreferenced (Id : E) return B is
2708 return Flag238 (Id);
2709 end Warnings_Off_Used_Unreferenced;
2711 function Wrapped_Entity (Id : E) return E is
2713 pragma Assert (Ekind_In (Id, E_Function, E_Procedure)
2714 and then Is_Primitive_Wrapper (Id));
2718 function Was_Hidden (Id : E) return B is
2720 return Flag196 (Id);
2723 ------------------------------
2724 -- Classification Functions --
2725 ------------------------------
2727 function Is_Access_Type (Id : E) return B is
2729 return Ekind (Id) in Access_Kind;
2732 function Is_Access_Protected_Subprogram_Type (Id : E) return B is
2734 return Ekind (Id) in Access_Protected_Kind;
2735 end Is_Access_Protected_Subprogram_Type;
2737 function Is_Access_Subprogram_Type (Id : E) return B is
2739 return Ekind (Id) in Access_Subprogram_Kind;
2740 end Is_Access_Subprogram_Type;
2742 function Is_Aggregate_Type (Id : E) return B is
2744 return Ekind (Id) in Aggregate_Kind;
2745 end Is_Aggregate_Type;
2747 function Is_Array_Type (Id : E) return B is
2749 return Ekind (Id) in Array_Kind;
2752 function Is_Assignable (Id : E) return B is
2754 return Ekind (Id) in Assignable_Kind;
2757 function Is_Class_Wide_Type (Id : E) return B is
2759 return Ekind (Id) in Class_Wide_Kind;
2760 end Is_Class_Wide_Type;
2762 function Is_Composite_Type (Id : E) return B is
2764 return Ekind (Id) in Composite_Kind;
2765 end Is_Composite_Type;
2767 function Is_Concurrent_Body (Id : E) return B is
2769 return Ekind (Id) in
2770 Concurrent_Body_Kind;
2771 end Is_Concurrent_Body;
2773 function Is_Concurrent_Record_Type (Id : E) return B is
2776 end Is_Concurrent_Record_Type;
2778 function Is_Concurrent_Type (Id : E) return B is
2780 return Ekind (Id) in Concurrent_Kind;
2781 end Is_Concurrent_Type;
2783 function Is_Decimal_Fixed_Point_Type (Id : E) return B is
2785 return Ekind (Id) in
2786 Decimal_Fixed_Point_Kind;
2787 end Is_Decimal_Fixed_Point_Type;
2789 function Is_Digits_Type (Id : E) return B is
2791 return Ekind (Id) in Digits_Kind;
2794 function Is_Discrete_Or_Fixed_Point_Type (Id : E) return B is
2796 return Ekind (Id) in Discrete_Or_Fixed_Point_Kind;
2797 end Is_Discrete_Or_Fixed_Point_Type;
2799 function Is_Discrete_Type (Id : E) return B is
2801 return Ekind (Id) in Discrete_Kind;
2802 end Is_Discrete_Type;
2804 function Is_Elementary_Type (Id : E) return B is
2806 return Ekind (Id) in Elementary_Kind;
2807 end Is_Elementary_Type;
2809 function Is_Entry (Id : E) return B is
2811 return Ekind (Id) in Entry_Kind;
2814 function Is_Enumeration_Type (Id : E) return B is
2816 return Ekind (Id) in
2818 end Is_Enumeration_Type;
2820 function Is_Fixed_Point_Type (Id : E) return B is
2822 return Ekind (Id) in
2824 end Is_Fixed_Point_Type;
2826 function Is_Floating_Point_Type (Id : E) return B is
2828 return Ekind (Id) in Float_Kind;
2829 end Is_Floating_Point_Type;
2831 function Is_Formal (Id : E) return B is
2833 return Ekind (Id) in Formal_Kind;
2836 function Is_Formal_Object (Id : E) return B is
2838 return Ekind (Id) in Formal_Object_Kind;
2839 end Is_Formal_Object;
2841 function Is_Generic_Subprogram (Id : E) return B is
2843 return Ekind (Id) in Generic_Subprogram_Kind;
2844 end Is_Generic_Subprogram;
2846 function Is_Generic_Unit (Id : E) return B is
2848 return Ekind (Id) in Generic_Unit_Kind;
2849 end Is_Generic_Unit;
2851 function Is_Incomplete_Or_Private_Type (Id : E) return B is
2853 return Ekind (Id) in
2854 Incomplete_Or_Private_Kind;
2855 end Is_Incomplete_Or_Private_Type;
2857 function Is_Incomplete_Type (Id : E) return B is
2859 return Ekind (Id) in
2861 end Is_Incomplete_Type;
2863 function Is_Integer_Type (Id : E) return B is
2865 return Ekind (Id) in Integer_Kind;
2866 end Is_Integer_Type;
2868 function Is_Modular_Integer_Type (Id : E) return B is
2870 return Ekind (Id) in
2871 Modular_Integer_Kind;
2872 end Is_Modular_Integer_Type;
2874 function Is_Named_Number (Id : E) return B is
2876 return Ekind (Id) in Named_Kind;
2877 end Is_Named_Number;
2879 function Is_Numeric_Type (Id : E) return B is
2881 return Ekind (Id) in Numeric_Kind;
2882 end Is_Numeric_Type;
2884 function Is_Object (Id : E) return B is
2886 return Ekind (Id) in Object_Kind;
2889 function Is_Ordinary_Fixed_Point_Type (Id : E) return B is
2891 return Ekind (Id) in
2892 Ordinary_Fixed_Point_Kind;
2893 end Is_Ordinary_Fixed_Point_Type;
2895 function Is_Overloadable (Id : E) return B is
2897 return Ekind (Id) in Overloadable_Kind;
2898 end Is_Overloadable;
2900 function Is_Private_Type (Id : E) return B is
2902 return Ekind (Id) in Private_Kind;
2903 end Is_Private_Type;
2905 function Is_Protected_Type (Id : E) return B is
2907 return Ekind (Id) in Protected_Kind;
2908 end Is_Protected_Type;
2910 function Is_Real_Type (Id : E) return B is
2912 return Ekind (Id) in Real_Kind;
2915 function Is_Record_Type (Id : E) return B is
2917 return Ekind (Id) in Record_Kind;
2920 function Is_Scalar_Type (Id : E) return B is
2922 return Ekind (Id) in Scalar_Kind;
2925 function Is_Signed_Integer_Type (Id : E) return B is
2927 return Ekind (Id) in Signed_Integer_Kind;
2928 end Is_Signed_Integer_Type;
2930 function Is_Subprogram (Id : E) return B is
2932 return Ekind (Id) in Subprogram_Kind;
2935 function Is_Task_Type (Id : E) return B is
2937 return Ekind (Id) in Task_Kind;
2940 function Is_Type (Id : E) return B is
2942 return Ekind (Id) in Type_Kind;
2945 ------------------------------
2946 -- Attribute Set Procedures --
2947 ------------------------------
2949 -- Note: in many of these set procedures an "obvious" assertion is missing.
2950 -- The reason for this is that in many cases, a field is set before the
2951 -- Ekind field is set, so that the field is set when Ekind = E_Void. It
2952 -- it is possible to add assertions that specifically include the E_Void
2953 -- possibility, but in some cases, we just omit the assertions.
2955 procedure Set_Accept_Address (Id : E; V : L) is
2957 Set_Elist21 (Id, V);
2958 end Set_Accept_Address;
2960 procedure Set_Access_Disp_Table (Id : E; V : L) is
2962 pragma Assert (Is_Tagged_Type (Id) and then Id = Base_Type (Id));
2963 Set_Elist16 (Id, V);
2964 end Set_Access_Disp_Table;
2966 procedure Set_Associated_Final_Chain (Id : E; V : E) is
2968 pragma Assert (Is_Access_Type (Id));
2970 end Set_Associated_Final_Chain;
2972 procedure Set_Associated_Formal_Package (Id : E; V : E) is
2975 end Set_Associated_Formal_Package;
2977 procedure Set_Associated_Node_For_Itype (Id : E; V : E) is
2980 end Set_Associated_Node_For_Itype;
2982 procedure Set_Associated_Storage_Pool (Id : E; V : E) is
2984 pragma Assert (Is_Access_Type (Id) and then Id = Base_Type (Id));
2986 end Set_Associated_Storage_Pool;
2988 procedure Set_Actual_Subtype (Id : E; V : E) is
2991 (Ekind_In (Id, E_Constant, E_Variable, E_Generic_In_Out_Parameter)
2992 or else Is_Formal (Id));
2994 end Set_Actual_Subtype;
2996 procedure Set_Address_Taken (Id : E; V : B := True) is
2998 Set_Flag104 (Id, V);
2999 end Set_Address_Taken;
3001 procedure Set_Alias (Id : E; V : E) is
3004 (Is_Overloadable (Id) or else Ekind (Id) = E_Subprogram_Type);
3008 procedure Set_Alignment (Id : E; V : U) is
3010 pragma Assert (Is_Type (Id)
3011 or else Is_Formal (Id)
3012 or else Ekind_In (Id, E_Loop_Parameter,
3019 procedure Set_Barrier_Function (Id : E; V : N) is
3021 pragma Assert (Is_Entry (Id));
3023 end Set_Barrier_Function;
3025 procedure Set_Block_Node (Id : E; V : N) is
3027 pragma Assert (Ekind (Id) = E_Block);
3031 procedure Set_Body_Entity (Id : E; V : E) is
3033 pragma Assert (Ekind_In (Id, E_Package, E_Generic_Package));
3035 end Set_Body_Entity;
3037 procedure Set_Body_Needed_For_SAL (Id : E; V : B := True) is
3040 (Ekind (Id) = E_Package
3041 or else Is_Subprogram (Id)
3042 or else Is_Generic_Unit (Id));
3044 end Set_Body_Needed_For_SAL;
3046 procedure Set_C_Pass_By_Copy (Id : E; V : B := True) is
3048 pragma Assert (Is_Record_Type (Id) and then Id = Base_Type (Id));
3049 Set_Flag125 (Id, V);
3050 end Set_C_Pass_By_Copy;
3052 procedure Set_Can_Never_Be_Null (Id : E; V : B := True) is
3055 end Set_Can_Never_Be_Null;
3057 procedure Set_Checks_May_Be_Suppressed (Id : E; V : B := True) is
3060 end Set_Checks_May_Be_Suppressed;
3062 procedure Set_Class_Wide_Type (Id : E; V : E) is
3064 pragma Assert (Is_Type (Id));
3066 end Set_Class_Wide_Type;
3068 procedure Set_Cloned_Subtype (Id : E; V : E) is
3070 pragma Assert (Ekind_In (Id, E_Record_Subtype, E_Class_Wide_Subtype));
3072 end Set_Cloned_Subtype;
3074 procedure Set_Component_Bit_Offset (Id : E; V : U) is
3076 pragma Assert (Ekind_In (Id, E_Component, E_Discriminant));
3078 end Set_Component_Bit_Offset;
3080 procedure Set_Component_Clause (Id : E; V : N) is
3082 pragma Assert (Ekind_In (Id, E_Component, E_Discriminant));
3084 end Set_Component_Clause;
3086 procedure Set_Component_Size (Id : E; V : U) is
3088 pragma Assert (Is_Array_Type (Id) and then Id = Base_Type (Id));
3090 end Set_Component_Size;
3092 procedure Set_Component_Type (Id : E; V : E) is
3094 pragma Assert (Is_Array_Type (Id) and then Id = Base_Type (Id));
3096 end Set_Component_Type;
3098 procedure Set_Corresponding_Concurrent_Type (Id : E; V : E) is
3101 (Ekind (Id) = E_Record_Type and then Is_Concurrent_Type (V));
3103 end Set_Corresponding_Concurrent_Type;
3105 procedure Set_Corresponding_Discriminant (Id : E; V : E) is
3107 pragma Assert (Ekind (Id) = E_Discriminant);
3109 end Set_Corresponding_Discriminant;
3111 procedure Set_Corresponding_Equality (Id : E; V : E) is
3114 (Ekind (Id) = E_Function
3115 and then not Comes_From_Source (Id)
3116 and then Chars (Id) = Name_Op_Ne);
3118 end Set_Corresponding_Equality;
3120 procedure Set_Corresponding_Protected_Entry (Id : E; V : E) is
3123 end Set_Corresponding_Protected_Entry;
3125 procedure Set_Corresponding_Record_Type (Id : E; V : E) is
3127 pragma Assert (Is_Concurrent_Type (Id));
3129 end Set_Corresponding_Record_Type;
3131 procedure Set_Corresponding_Remote_Type (Id : E; V : E) is
3134 end Set_Corresponding_Remote_Type;
3136 procedure Set_Current_Use_Clause (Id : E; V : E) is
3138 pragma Assert (Ekind (Id) = E_Package or else Is_Type (Id));
3140 end Set_Current_Use_Clause;
3142 procedure Set_Current_Value (Id : E; V : N) is
3144 pragma Assert (Ekind (Id) in Object_Kind or else Ekind (Id) = E_Void);
3146 end Set_Current_Value;
3148 procedure Set_CR_Discriminant (Id : E; V : E) is
3151 end Set_CR_Discriminant;
3153 procedure Set_Debug_Info_Off (Id : E; V : B := True) is
3155 Set_Flag166 (Id, V);
3156 end Set_Debug_Info_Off;
3158 procedure Set_Debug_Renaming_Link (Id : E; V : E) is
3161 end Set_Debug_Renaming_Link;
3163 procedure Set_Default_Expr_Function (Id : E; V : E) is
3165 pragma Assert (Is_Formal (Id));
3167 end Set_Default_Expr_Function;
3169 procedure Set_Default_Expressions_Processed (Id : E; V : B := True) is
3171 Set_Flag108 (Id, V);
3172 end Set_Default_Expressions_Processed;
3174 procedure Set_Default_Value (Id : E; V : N) is
3176 pragma Assert (Is_Formal (Id));
3178 end Set_Default_Value;
3180 procedure Set_Delay_Cleanups (Id : E; V : B := True) is
3184 or else Is_Task_Type (Id)
3185 or else Ekind (Id) = E_Block);
3186 Set_Flag114 (Id, V);
3187 end Set_Delay_Cleanups;
3189 procedure Set_Delay_Subprogram_Descriptors (Id : E; V : B := True) is
3192 (Is_Subprogram (Id) or else Ekind_In (Id, E_Package, E_Package_Body));
3194 end Set_Delay_Subprogram_Descriptors;
3196 procedure Set_Delta_Value (Id : E; V : R) is
3198 pragma Assert (Is_Fixed_Point_Type (Id));
3199 Set_Ureal18 (Id, V);
3200 end Set_Delta_Value;
3202 procedure Set_Dependent_Instances (Id : E; V : L) is
3204 pragma Assert (Is_Generic_Instance (Id));
3206 end Set_Dependent_Instances;
3208 procedure Set_Depends_On_Private (Id : E; V : B := True) is
3210 pragma Assert (Nkind (Id) in N_Entity);
3212 end Set_Depends_On_Private;
3214 procedure Set_Digits_Value (Id : E; V : U) is
3217 (Is_Floating_Point_Type (Id)
3218 or else Is_Decimal_Fixed_Point_Type (Id));
3220 end Set_Digits_Value;
3222 procedure Set_Directly_Designated_Type (Id : E; V : E) is
3225 end Set_Directly_Designated_Type;
3227 procedure Set_Discard_Names (Id : E; V : B := True) is
3230 end Set_Discard_Names;
3232 procedure Set_Discriminal (Id : E; V : E) is
3234 pragma Assert (Ekind (Id) = E_Discriminant);
3236 end Set_Discriminal;
3238 procedure Set_Discriminal_Link (Id : E; V : E) is
3241 end Set_Discriminal_Link;
3243 procedure Set_Discriminant_Checking_Func (Id : E; V : E) is
3245 pragma Assert (Ekind (Id) = E_Component);
3247 end Set_Discriminant_Checking_Func;
3249 procedure Set_Discriminant_Constraint (Id : E; V : L) is
3251 pragma Assert (Nkind (Id) in N_Entity);
3252 Set_Elist21 (Id, V);
3253 end Set_Discriminant_Constraint;
3255 procedure Set_Discriminant_Default_Value (Id : E; V : N) is
3258 end Set_Discriminant_Default_Value;
3260 procedure Set_Discriminant_Number (Id : E; V : U) is
3263 end Set_Discriminant_Number;
3265 procedure Set_Dispatch_Table_Wrappers (Id : E; V : L) is
3267 pragma Assert (Is_Tagged_Type (Id) and then Id = Base_Type (Id));
3268 Set_Elist26 (Id, V);
3269 end Set_Dispatch_Table_Wrappers;
3271 procedure Set_DT_Entry_Count (Id : E; V : U) is
3273 pragma Assert (Ekind (Id) = E_Component);
3275 end Set_DT_Entry_Count;
3277 procedure Set_DT_Offset_To_Top_Func (Id : E; V : E) is
3279 pragma Assert (Ekind (Id) = E_Component and then Is_Tag (Id));
3281 end Set_DT_Offset_To_Top_Func;
3283 procedure Set_DT_Position (Id : E; V : U) is
3285 pragma Assert (Ekind_In (Id, E_Function, E_Procedure));
3287 end Set_DT_Position;
3289 procedure Set_DTC_Entity (Id : E; V : E) is
3291 pragma Assert (Ekind_In (Id, E_Function, E_Procedure));
3295 procedure Set_Elaborate_Body_Desirable (Id : E; V : B := True) is
3297 pragma Assert (Ekind (Id) = E_Package);
3298 Set_Flag210 (Id, V);
3299 end Set_Elaborate_Body_Desirable;
3301 procedure Set_Elaboration_Entity (Id : E; V : E) is
3306 Ekind (Id) = E_Package
3308 Is_Generic_Unit (Id));
3310 end Set_Elaboration_Entity;
3312 procedure Set_Elaboration_Entity_Required (Id : E; V : B := True) is
3317 Ekind (Id) = E_Package
3319 Is_Generic_Unit (Id));
3320 Set_Flag174 (Id, V);
3321 end Set_Elaboration_Entity_Required;
3323 procedure Set_Enclosing_Scope (Id : E; V : E) is
3326 end Set_Enclosing_Scope;
3328 procedure Set_Entry_Accepted (Id : E; V : B := True) is
3330 pragma Assert (Is_Entry (Id));
3331 Set_Flag152 (Id, V);
3332 end Set_Entry_Accepted;
3334 procedure Set_Entry_Bodies_Array (Id : E; V : E) is
3337 end Set_Entry_Bodies_Array;
3339 procedure Set_Entry_Cancel_Parameter (Id : E; V : E) is
3342 end Set_Entry_Cancel_Parameter;
3344 procedure Set_Entry_Component (Id : E; V : E) is
3347 end Set_Entry_Component;
3349 procedure Set_Entry_Formal (Id : E; V : E) is
3352 end Set_Entry_Formal;
3354 procedure Set_Entry_Index_Constant (Id : E; V : E) is
3356 pragma Assert (Ekind (Id) = E_Entry_Index_Parameter);
3358 end Set_Entry_Index_Constant;
3360 procedure Set_Entry_Parameters_Type (Id : E; V : E) is
3363 end Set_Entry_Parameters_Type;
3365 procedure Set_Enum_Pos_To_Rep (Id : E; V : E) is
3367 pragma Assert (Ekind (Id) = E_Enumeration_Type);
3369 end Set_Enum_Pos_To_Rep;
3371 procedure Set_Enumeration_Pos (Id : E; V : U) is
3373 pragma Assert (Ekind (Id) = E_Enumeration_Literal);
3375 end Set_Enumeration_Pos;
3377 procedure Set_Enumeration_Rep (Id : E; V : U) is
3379 pragma Assert (Ekind (Id) = E_Enumeration_Literal);
3381 end Set_Enumeration_Rep;
3383 procedure Set_Enumeration_Rep_Expr (Id : E; V : N) is
3385 pragma Assert (Ekind (Id) = E_Enumeration_Literal);
3387 end Set_Enumeration_Rep_Expr;
3389 procedure Set_Equivalent_Type (Id : E; V : E) is
3392 (Ekind_In (Id, E_Class_Wide_Type,
3393 E_Class_Wide_Subtype,
3394 E_Access_Protected_Subprogram_Type,
3395 E_Anonymous_Access_Protected_Subprogram_Type,
3396 E_Access_Subprogram_Type,
3399 end Set_Equivalent_Type;
3401 procedure Set_Esize (Id : E; V : U) is
3406 procedure Set_Exception_Code (Id : E; V : U) is
3408 pragma Assert (Ekind (Id) = E_Exception);
3410 end Set_Exception_Code;
3412 procedure Set_Extra_Accessibility (Id : E; V : E) is
3414 pragma Assert (Is_Formal (Id) or else Ekind (Id) = E_Variable);
3416 end Set_Extra_Accessibility;
3418 procedure Set_Extra_Constrained (Id : E; V : E) is
3420 pragma Assert (Is_Formal (Id) or else Ekind (Id) = E_Variable);
3422 end Set_Extra_Constrained;
3424 procedure Set_Extra_Formal (Id : E; V : E) is
3427 end Set_Extra_Formal;
3429 procedure Set_Extra_Formals (Id : E; V : E) is
3432 (Is_Overloadable (Id)
3433 or else Ekind_In (Id, E_Entry_Family,
3435 E_Subprogram_Type));
3437 end Set_Extra_Formals;
3439 procedure Set_Can_Use_Internal_Rep (Id : E; V : B := True) is
3442 (Is_Access_Subprogram_Type (Id)
3443 and then Id = Base_Type (Id));
3444 Set_Flag229 (Id, V);
3445 end Set_Can_Use_Internal_Rep;
3447 procedure Set_Finalization_Chain_Entity (Id : E; V : E) is
3450 end Set_Finalization_Chain_Entity;
3452 procedure Set_Finalize_Storage_Only (Id : E; V : B := True) is
3454 pragma Assert (Is_Type (Id) and then Id = Base_Type (Id));
3455 Set_Flag158 (Id, V);
3456 end Set_Finalize_Storage_Only;
3458 procedure Set_First_Entity (Id : E; V : E) is
3461 end Set_First_Entity;
3463 procedure Set_First_Exit_Statement (Id : E; V : N) is
3465 pragma Assert (Ekind (Id) = E_Loop);
3467 end Set_First_Exit_Statement;
3469 procedure Set_First_Index (Id : E; V : N) is
3471 pragma Assert (Is_Array_Type (Id) or else Is_String_Type (Id));
3473 end Set_First_Index;
3475 procedure Set_First_Literal (Id : E; V : E) is
3477 pragma Assert (Is_Enumeration_Type (Id));
3479 end Set_First_Literal;
3481 procedure Set_First_Optional_Parameter (Id : E; V : E) is
3483 pragma Assert (Ekind_In (Id, E_Function, E_Procedure));
3485 end Set_First_Optional_Parameter;
3487 procedure Set_First_Private_Entity (Id : E; V : E) is
3489 pragma Assert (Ekind_In (Id, E_Package, E_Generic_Package)
3490 or else Ekind (Id) in Concurrent_Kind);
3492 end Set_First_Private_Entity;
3494 procedure Set_First_Rep_Item (Id : E; V : N) is
3497 end Set_First_Rep_Item;
3499 procedure Set_Freeze_Node (Id : E; V : N) is
3502 end Set_Freeze_Node;
3504 procedure Set_From_With_Type (Id : E; V : B := True) is
3508 or else Ekind (Id) = E_Package);
3509 Set_Flag159 (Id, V);
3510 end Set_From_With_Type;
3512 procedure Set_Full_View (Id : E; V : E) is
3514 pragma Assert (Is_Type (Id) or else Ekind (Id) = E_Constant);
3518 procedure Set_Generic_Homonym (Id : E; V : E) is
3521 end Set_Generic_Homonym;
3523 procedure Set_Generic_Renamings (Id : E; V : L) is
3525 Set_Elist23 (Id, V);
3526 end Set_Generic_Renamings;
3528 procedure Set_Handler_Records (Id : E; V : S) is
3531 end Set_Handler_Records;
3533 procedure Set_Has_Aliased_Components (Id : E; V : B := True) is
3535 pragma Assert (Id = Base_Type (Id));
3536 Set_Flag135 (Id, V);
3537 end Set_Has_Aliased_Components;
3539 procedure Set_Has_Alignment_Clause (Id : E; V : B := True) is
3542 end Set_Has_Alignment_Clause;
3544 procedure Set_Has_All_Calls_Remote (Id : E; V : B := True) is
3547 end Set_Has_All_Calls_Remote;
3549 procedure Set_Has_Anon_Block_Suffix (Id : E; V : B := True) is
3551 Set_Flag201 (Id, V);
3552 end Set_Has_Anon_Block_Suffix;
3554 procedure Set_Has_Atomic_Components (Id : E; V : B := True) is
3556 pragma Assert (not Is_Type (Id) or else Id = Base_Type (Id));
3558 end Set_Has_Atomic_Components;
3560 procedure Set_Has_Biased_Representation (Id : E; V : B := True) is
3563 ((V = False) or else (Is_Discrete_Type (Id) or else Is_Object (Id)));
3564 Set_Flag139 (Id, V);
3565 end Set_Has_Biased_Representation;
3567 procedure Set_Has_Completion (Id : E; V : B := True) is
3570 end Set_Has_Completion;
3572 procedure Set_Has_Completion_In_Body (Id : E; V : B := True) is
3574 pragma Assert (Is_Type (Id));
3576 end Set_Has_Completion_In_Body;
3578 procedure Set_Has_Complex_Representation (Id : E; V : B := True) is
3580 pragma Assert (Ekind (Id) = E_Record_Type);
3581 Set_Flag140 (Id, V);
3582 end Set_Has_Complex_Representation;
3584 procedure Set_Has_Component_Size_Clause (Id : E; V : B := True) is
3586 pragma Assert (Ekind (Id) = E_Array_Type);
3588 end Set_Has_Component_Size_Clause;
3590 procedure Set_Has_Constrained_Partial_View (Id : E; V : B := True) is
3592 pragma Assert (Is_Type (Id));
3593 Set_Flag187 (Id, V);
3594 end Set_Has_Constrained_Partial_View;
3596 procedure Set_Has_Contiguous_Rep (Id : E; V : B := True) is
3598 Set_Flag181 (Id, V);
3599 end Set_Has_Contiguous_Rep;
3601 procedure Set_Has_Controlled_Component (Id : E; V : B := True) is
3603 pragma Assert (Id = Base_Type (Id));
3605 end Set_Has_Controlled_Component;
3607 procedure Set_Has_Controlling_Result (Id : E; V : B := True) is
3610 end Set_Has_Controlling_Result;
3612 procedure Set_Has_Convention_Pragma (Id : E; V : B := True) is
3614 Set_Flag119 (Id, V);
3615 end Set_Has_Convention_Pragma;
3617 procedure Set_Has_Delayed_Freeze (Id : E; V : B := True) is
3619 pragma Assert (Nkind (Id) in N_Entity);
3621 end Set_Has_Delayed_Freeze;
3623 procedure Set_Has_Discriminants (Id : E; V : B := True) is
3625 pragma Assert (Nkind (Id) in N_Entity);
3627 end Set_Has_Discriminants;
3629 procedure Set_Has_Dispatch_Table (Id : E; V : B := True) is
3631 pragma Assert (Ekind (Id) = E_Record_Type
3632 and then Is_Tagged_Type (Id));
3633 Set_Flag220 (Id, V);
3634 end Set_Has_Dispatch_Table;
3636 procedure Set_Has_Enumeration_Rep_Clause (Id : E; V : B := True) is
3638 pragma Assert (Is_Enumeration_Type (Id));
3640 end Set_Has_Enumeration_Rep_Clause;
3642 procedure Set_Has_Exit (Id : E; V : B := True) is
3647 procedure Set_Has_External_Tag_Rep_Clause (Id : E; V : B := True) is
3649 pragma Assert (Is_Tagged_Type (Id));
3650 Set_Flag110 (Id, V);
3651 end Set_Has_External_Tag_Rep_Clause;
3653 procedure Set_Has_Forward_Instantiation (Id : E; V : B := True) is
3655 Set_Flag175 (Id, V);
3656 end Set_Has_Forward_Instantiation;
3658 procedure Set_Has_Fully_Qualified_Name (Id : E; V : B := True) is
3660 Set_Flag173 (Id, V);
3661 end Set_Has_Fully_Qualified_Name;
3663 procedure Set_Has_Gigi_Rep_Item (Id : E; V : B := True) is
3666 end Set_Has_Gigi_Rep_Item;
3668 procedure Set_Has_Homonym (Id : E; V : B := True) is
3671 end Set_Has_Homonym;
3673 procedure Set_Has_Initial_Value (Id : E; V : B := True) is
3675 pragma Assert (Ekind_In (Id, E_Variable, E_Out_Parameter));
3676 Set_Flag219 (Id, V);
3677 end Set_Has_Initial_Value;
3679 procedure Set_Has_Machine_Radix_Clause (Id : E; V : B := True) is
3681 pragma Assert (Is_Decimal_Fixed_Point_Type (Id));
3683 end Set_Has_Machine_Radix_Clause;
3685 procedure Set_Has_Master_Entity (Id : E; V : B := True) is
3688 end Set_Has_Master_Entity;
3690 procedure Set_Has_Missing_Return (Id : E; V : B := True) is
3692 pragma Assert (Ekind_In (Id, E_Function, E_Generic_Function));
3693 Set_Flag142 (Id, V);
3694 end Set_Has_Missing_Return;
3696 procedure Set_Has_Nested_Block_With_Handler (Id : E; V : B := True) is
3698 Set_Flag101 (Id, V);
3699 end Set_Has_Nested_Block_With_Handler;
3701 procedure Set_Has_Up_Level_Access (Id : E; V : B := True) is
3703 pragma Assert (Ekind_In (Id, E_Variable, E_Constant, E_Loop_Parameter));
3704 Set_Flag215 (Id, V);
3705 end Set_Has_Up_Level_Access;
3707 procedure Set_Has_Non_Standard_Rep (Id : E; V : B := True) is
3709 pragma Assert (Id = Base_Type (Id));
3711 end Set_Has_Non_Standard_Rep;
3713 procedure Set_Has_Object_Size_Clause (Id : E; V : B := True) is
3715 pragma Assert (Is_Type (Id));
3716 Set_Flag172 (Id, V);
3717 end Set_Has_Object_Size_Clause;
3719 procedure Set_Has_Per_Object_Constraint (Id : E; V : B := True) is
3721 Set_Flag154 (Id, V);
3722 end Set_Has_Per_Object_Constraint;
3724 procedure Set_Has_Persistent_BSS (Id : E; V : B := True) is
3726 Set_Flag188 (Id, V);
3727 end Set_Has_Persistent_BSS;
3729 procedure Set_Has_Postconditions (Id : E; V : B := True) is
3731 pragma Assert (Is_Subprogram (Id));
3732 Set_Flag240 (Id, V);
3733 end Set_Has_Postconditions;
3735 procedure Set_Has_Pragma_Controlled (Id : E; V : B := True) is
3737 pragma Assert (Is_Access_Type (Id));
3738 Set_Flag27 (Base_Type (Id), V);
3739 end Set_Has_Pragma_Controlled;
3741 procedure Set_Has_Pragma_Elaborate_Body (Id : E; V : B := True) is
3743 Set_Flag150 (Id, V);
3744 end Set_Has_Pragma_Elaborate_Body;
3746 procedure Set_Has_Pragma_Inline (Id : E; V : B := True) is
3748 Set_Flag157 (Id, V);
3749 end Set_Has_Pragma_Inline;
3751 procedure Set_Has_Pragma_Inline_Always (Id : E; V : B := True) is
3753 Set_Flag230 (Id, V);
3754 end Set_Has_Pragma_Inline_Always;
3756 procedure Set_Has_Pragma_Pack (Id : E; V : B := True) is
3758 pragma Assert (Is_Array_Type (Id) or else Is_Record_Type (Id));
3759 pragma Assert (Id = Base_Type (Id));
3760 Set_Flag121 (Id, V);
3761 end Set_Has_Pragma_Pack;
3763 procedure Set_Has_Pragma_Preelab_Init (Id : E; V : B := True) is
3765 Set_Flag221 (Id, V);
3766 end Set_Has_Pragma_Preelab_Init;
3768 procedure Set_Has_Pragma_Pure (Id : E; V : B := True) is
3770 Set_Flag203 (Id, V);
3771 end Set_Has_Pragma_Pure;
3773 procedure Set_Has_Pragma_Pure_Function (Id : E; V : B := True) is
3775 Set_Flag179 (Id, V);
3776 end Set_Has_Pragma_Pure_Function;
3778 procedure Set_Has_Pragma_Thread_Local_Storage (Id : E; V : B := True) is
3780 Set_Flag169 (Id, V);
3781 end Set_Has_Pragma_Thread_Local_Storage;
3783 procedure Set_Has_Pragma_Unmodified (Id : E; V : B := True) is
3785 Set_Flag233 (Id, V);
3786 end Set_Has_Pragma_Unmodified;
3788 procedure Set_Has_Pragma_Unreferenced (Id : E; V : B := True) is
3790 Set_Flag180 (Id, V);
3791 end Set_Has_Pragma_Unreferenced;
3793 procedure Set_Has_Pragma_Unreferenced_Objects (Id : E; V : B := True) is
3795 pragma Assert (Is_Type (Id));
3796 Set_Flag212 (Id, V);
3797 end Set_Has_Pragma_Unreferenced_Objects;
3799 procedure Set_Has_Primitive_Operations (Id : E; V : B := True) is
3801 pragma Assert (Id = Base_Type (Id));
3802 Set_Flag120 (Id, V);
3803 end Set_Has_Primitive_Operations;
3805 procedure Set_Has_Private_Declaration (Id : E; V : B := True) is
3807 Set_Flag155 (Id, V);
3808 end Set_Has_Private_Declaration;
3810 procedure Set_Has_Qualified_Name (Id : E; V : B := True) is
3812 Set_Flag161 (Id, V);
3813 end Set_Has_Qualified_Name;
3815 procedure Set_Has_RACW (Id : E; V : B := True) is
3817 pragma Assert (Ekind (Id) = E_Package);
3818 Set_Flag214 (Id, V);
3821 procedure Set_Has_Record_Rep_Clause (Id : E; V : B := True) is
3823 pragma Assert (Id = Base_Type (Id));
3825 end Set_Has_Record_Rep_Clause;
3827 procedure Set_Has_Recursive_Call (Id : E; V : B := True) is
3829 pragma Assert (Is_Subprogram (Id));
3830 Set_Flag143 (Id, V);
3831 end Set_Has_Recursive_Call;
3833 procedure Set_Has_Size_Clause (Id : E; V : B := True) is
3836 end Set_Has_Size_Clause;
3838 procedure Set_Has_Small_Clause (Id : E; V : B := True) is
3841 end Set_Has_Small_Clause;
3843 procedure Set_Has_Specified_Layout (Id : E; V : B := True) is
3845 pragma Assert (Id = Base_Type (Id));
3846 Set_Flag100 (Id, V);
3847 end Set_Has_Specified_Layout;
3849 procedure Set_Has_Specified_Stream_Input (Id : E; V : B := True) is
3851 pragma Assert (Is_Type (Id));
3852 Set_Flag190 (Id, V);
3853 end Set_Has_Specified_Stream_Input;
3855 procedure Set_Has_Specified_Stream_Output (Id : E; V : B := True) is
3857 pragma Assert (Is_Type (Id));
3858 Set_Flag191 (Id, V);
3859 end Set_Has_Specified_Stream_Output;
3861 procedure Set_Has_Specified_Stream_Read (Id : E; V : B := True) is
3863 pragma Assert (Is_Type (Id));
3864 Set_Flag192 (Id, V);
3865 end Set_Has_Specified_Stream_Read;
3867 procedure Set_Has_Specified_Stream_Write (Id : E; V : B := True) is
3869 pragma Assert (Is_Type (Id));
3870 Set_Flag193 (Id, V);
3871 end Set_Has_Specified_Stream_Write;
3873 procedure Set_Has_Static_Discriminants (Id : E; V : B := True) is
3875 Set_Flag211 (Id, V);
3876 end Set_Has_Static_Discriminants;
3878 procedure Set_Has_Storage_Size_Clause (Id : E; V : B := True) is
3880 pragma Assert (Is_Access_Type (Id) or else Is_Task_Type (Id));
3881 pragma Assert (Id = Base_Type (Id));
3883 end Set_Has_Storage_Size_Clause;
3885 procedure Set_Has_Stream_Size_Clause (Id : E; V : B := True) is
3887 pragma Assert (Is_Elementary_Type (Id));
3888 Set_Flag184 (Id, V);
3889 end Set_Has_Stream_Size_Clause;
3891 procedure Set_Has_Subprogram_Descriptor (Id : E; V : B := True) is
3894 end Set_Has_Subprogram_Descriptor;
3896 procedure Set_Has_Task (Id : E; V : B := True) is
3898 pragma Assert (Id = Base_Type (Id));
3902 procedure Set_Has_Thunks (Id : E; V : B := True) is
3904 pragma Assert (Is_Tag (Id));
3905 Set_Flag228 (Id, V);
3908 procedure Set_Has_Unchecked_Union (Id : E; V : B := True) is
3910 pragma Assert (Id = Base_Type (Id));
3911 Set_Flag123 (Id, V);
3912 end Set_Has_Unchecked_Union;
3914 procedure Set_Has_Unknown_Discriminants (Id : E; V : B := True) is
3916 pragma Assert (Is_Type (Id));
3918 end Set_Has_Unknown_Discriminants;
3920 procedure Set_Has_Volatile_Components (Id : E; V : B := True) is
3922 pragma Assert (not Is_Type (Id) or else Id = Base_Type (Id));
3924 end Set_Has_Volatile_Components;
3926 procedure Set_Has_Xref_Entry (Id : E; V : B := True) is
3928 Set_Flag182 (Id, V);
3929 end Set_Has_Xref_Entry;
3931 procedure Set_Hiding_Loop_Variable (Id : E; V : E) is
3933 pragma Assert (Ekind (Id) = E_Variable);
3935 end Set_Hiding_Loop_Variable;
3937 procedure Set_Homonym (Id : E; V : E) is
3939 pragma Assert (Id /= V);
3943 procedure Set_Implemented_By_Entry (Id : E; V : B := True) is
3945 pragma Assert (Ekind_In (Id, E_Function, E_Procedure));
3946 Set_Flag232 (Id, V);
3947 end Set_Implemented_By_Entry;
3949 procedure Set_Interfaces (Id : E; V : L) is
3951 pragma Assert (Is_Record_Type (Id));
3952 Set_Elist25 (Id, V);
3955 procedure Set_Interface_Alias (Id : E; V : E) is
3959 and then Is_Hidden (Id)
3960 and then (Ekind_In (Id, E_Procedure, E_Function)));
3962 end Set_Interface_Alias;
3964 procedure Set_In_Package_Body (Id : E; V : B := True) is
3967 end Set_In_Package_Body;
3969 procedure Set_In_Private_Part (Id : E; V : B := True) is
3972 end Set_In_Private_Part;
3974 procedure Set_In_Use (Id : E; V : B := True) is
3976 pragma Assert (Nkind (Id) in N_Entity);
3980 procedure Set_Inner_Instances (Id : E; V : L) is
3982 Set_Elist23 (Id, V);
3983 end Set_Inner_Instances;
3985 procedure Set_Interface_Name (Id : E; V : N) is
3988 end Set_Interface_Name;
3990 procedure Set_Is_Abstract_Subprogram (Id : E; V : B := True) is
3992 pragma Assert (Is_Overloadable (Id));
3994 end Set_Is_Abstract_Subprogram;
3996 procedure Set_Is_Abstract_Type (Id : E; V : B := True) is
3998 pragma Assert (Is_Type (Id));
3999 Set_Flag146 (Id, V);
4000 end Set_Is_Abstract_Type;
4002 procedure Set_Is_Local_Anonymous_Access (Id : E; V : B := True) is
4004 pragma Assert (Is_Access_Type (Id));
4005 Set_Flag194 (Id, V);
4006 end Set_Is_Local_Anonymous_Access;
4008 procedure Set_Is_Access_Constant (Id : E; V : B := True) is
4010 pragma Assert (Is_Access_Type (Id));
4012 end Set_Is_Access_Constant;
4014 procedure Set_Is_Ada_2005_Only (Id : E; V : B := True) is
4016 Set_Flag185 (Id, V);
4017 end Set_Is_Ada_2005_Only;
4019 procedure Set_Is_Aliased (Id : E; V : B := True) is
4021 pragma Assert (Nkind (Id) in N_Entity);
4025 procedure Set_Is_AST_Entry (Id : E; V : B := True) is
4027 pragma Assert (Is_Entry (Id));
4028 Set_Flag132 (Id, V);
4029 end Set_Is_AST_Entry;
4031 procedure Set_Is_Asynchronous (Id : E; V : B := True) is
4034 (Ekind (Id) = E_Procedure or else Is_Type (Id));
4036 end Set_Is_Asynchronous;
4038 procedure Set_Is_Atomic (Id : E; V : B := True) is
4043 procedure Set_Is_Bit_Packed_Array (Id : E; V : B := True) is
4045 pragma Assert ((not V)
4046 or else (Is_Array_Type (Id) and then Id = Base_Type (Id)));
4048 Set_Flag122 (Id, V);
4049 end Set_Is_Bit_Packed_Array;
4051 procedure Set_Is_Called (Id : E; V : B := True) is
4053 pragma Assert (Ekind_In (Id, E_Procedure, E_Function));
4054 Set_Flag102 (Id, V);
4057 procedure Set_Is_Character_Type (Id : E; V : B := True) is
4060 end Set_Is_Character_Type;
4062 procedure Set_Is_Child_Unit (Id : E; V : B := True) is
4065 end Set_Is_Child_Unit;
4067 procedure Set_Is_Class_Wide_Equivalent_Type (Id : E; V : B := True) is
4070 end Set_Is_Class_Wide_Equivalent_Type;
4072 procedure Set_Is_Compilation_Unit (Id : E; V : B := True) is
4074 Set_Flag149 (Id, V);
4075 end Set_Is_Compilation_Unit;
4077 procedure Set_Is_Completely_Hidden (Id : E; V : B := True) is
4079 pragma Assert (Ekind (Id) = E_Discriminant);
4080 Set_Flag103 (Id, V);
4081 end Set_Is_Completely_Hidden;
4083 procedure Set_Is_Concurrent_Record_Type (Id : E; V : B := True) is
4086 end Set_Is_Concurrent_Record_Type;
4088 procedure Set_Is_Constr_Subt_For_U_Nominal (Id : E; V : B := True) is
4091 end Set_Is_Constr_Subt_For_U_Nominal;
4093 procedure Set_Is_Constr_Subt_For_UN_Aliased (Id : E; V : B := True) is
4095 Set_Flag141 (Id, V);
4096 end Set_Is_Constr_Subt_For_UN_Aliased;
4098 procedure Set_Is_Constrained (Id : E; V : B := True) is
4100 pragma Assert (Nkind (Id) in N_Entity);
4102 end Set_Is_Constrained;
4104 procedure Set_Is_Constructor (Id : E; V : B := True) is
4107 end Set_Is_Constructor;
4109 procedure Set_Is_Controlled (Id : E; V : B := True) is
4111 pragma Assert (Id = Base_Type (Id));
4113 end Set_Is_Controlled;
4115 procedure Set_Is_Controlling_Formal (Id : E; V : B := True) is
4117 pragma Assert (Is_Formal (Id));
4119 end Set_Is_Controlling_Formal;
4121 procedure Set_Is_CPP_Class (Id : E; V : B := True) is
4124 end Set_Is_CPP_Class;
4126 procedure Set_Is_Descendent_Of_Address (Id : E; V : B := True) is
4128 pragma Assert (Is_Type (Id));
4129 Set_Flag223 (Id, V);
4130 end Set_Is_Descendent_Of_Address;
4132 procedure Set_Is_Discrim_SO_Function (Id : E; V : B := True) is
4134 Set_Flag176 (Id, V);
4135 end Set_Is_Discrim_SO_Function;
4137 procedure Set_Is_Dispatch_Table_Entity (Id : E; V : B := True) is
4139 Set_Flag234 (Id, V);
4140 end Set_Is_Dispatch_Table_Entity;
4142 procedure Set_Is_Dispatching_Operation (Id : E; V : B := True) is
4147 Is_Overloadable (Id)
4149 Ekind (Id) = E_Subprogram_Type);
4152 end Set_Is_Dispatching_Operation;
4154 procedure Set_Is_Eliminated (Id : E; V : B := True) is
4156 Set_Flag124 (Id, V);
4157 end Set_Is_Eliminated;
4159 procedure Set_Is_Entry_Formal (Id : E; V : B := True) is
4162 end Set_Is_Entry_Formal;
4164 procedure Set_Is_Exported (Id : E; V : B := True) is
4167 end Set_Is_Exported;
4169 procedure Set_Is_First_Subtype (Id : E; V : B := True) is
4172 end Set_Is_First_Subtype;
4174 procedure Set_Is_For_Access_Subtype (Id : E; V : B := True) is
4176 pragma Assert (Ekind_In (Id, E_Record_Subtype, E_Private_Subtype));
4177 Set_Flag118 (Id, V);
4178 end Set_Is_For_Access_Subtype;
4180 procedure Set_Is_Formal_Subprogram (Id : E; V : B := True) is
4182 Set_Flag111 (Id, V);
4183 end Set_Is_Formal_Subprogram;
4185 procedure Set_Is_Frozen (Id : E; V : B := True) is
4187 pragma Assert (Nkind (Id) in N_Entity);
4191 procedure Set_Is_Generic_Actual_Type (Id : E; V : B := True) is
4193 pragma Assert (Is_Type (Id));
4195 end Set_Is_Generic_Actual_Type;
4197 procedure Set_Is_Generic_Instance (Id : E; V : B := True) is
4199 Set_Flag130 (Id, V);
4200 end Set_Is_Generic_Instance;
4202 procedure Set_Is_Generic_Type (Id : E; V : B := True) is
4204 pragma Assert (Nkind (Id) in N_Entity);
4206 end Set_Is_Generic_Type;
4208 procedure Set_Is_Hidden (Id : E; V : B := True) is
4213 procedure Set_Is_Hidden_Open_Scope (Id : E; V : B := True) is
4215 Set_Flag171 (Id, V);
4216 end Set_Is_Hidden_Open_Scope;
4218 procedure Set_Is_Immediately_Visible (Id : E; V : B := True) is
4220 pragma Assert (Nkind (Id) in N_Entity);
4222 end Set_Is_Immediately_Visible;
4224 procedure Set_Is_Imported (Id : E; V : B := True) is
4227 end Set_Is_Imported;
4229 procedure Set_Is_Inlined (Id : E; V : B := True) is
4234 procedure Set_Is_Interface (Id : E; V : B := True) is
4237 (Ekind_In (Id, E_Record_Type,
4239 E_Record_Type_With_Private,
4240 E_Record_Subtype_With_Private,
4242 E_Class_Wide_Subtype));
4243 Set_Flag186 (Id, V);
4244 end Set_Is_Interface;
4246 procedure Set_Is_Instantiated (Id : E; V : B := True) is
4248 Set_Flag126 (Id, V);
4249 end Set_Is_Instantiated;
4251 procedure Set_Is_Internal (Id : E; V : B := True) is
4253 pragma Assert (Nkind (Id) in N_Entity);
4255 end Set_Is_Internal;
4257 procedure Set_Is_Interrupt_Handler (Id : E; V : B := True) is
4259 pragma Assert (Nkind (Id) in N_Entity);
4261 end Set_Is_Interrupt_Handler;
4263 procedure Set_Is_Intrinsic_Subprogram (Id : E; V : B := True) is
4266 end Set_Is_Intrinsic_Subprogram;
4268 procedure Set_Is_Itype (Id : E; V : B := True) is
4273 procedure Set_Is_Known_Non_Null (Id : E; V : B := True) is
4276 end Set_Is_Known_Non_Null;
4278 procedure Set_Is_Known_Null (Id : E; V : B := True) is
4280 Set_Flag204 (Id, V);
4281 end Set_Is_Known_Null;
4283 procedure Set_Is_Known_Valid (Id : E; V : B := True) is
4285 Set_Flag170 (Id, V);
4286 end Set_Is_Known_Valid;
4288 procedure Set_Is_Limited_Composite (Id : E; V : B := True) is
4290 pragma Assert (Is_Type (Id));
4291 Set_Flag106 (Id, V);
4292 end Set_Is_Limited_Composite;
4294 procedure Set_Is_Limited_Interface (Id : E; V : B := True) is
4296 pragma Assert (Is_Interface (Id));
4297 Set_Flag197 (Id, V);
4298 end Set_Is_Limited_Interface;
4300 procedure Set_Is_Limited_Record (Id : E; V : B := True) is
4303 end Set_Is_Limited_Record;
4305 procedure Set_Is_Machine_Code_Subprogram (Id : E; V : B := True) is
4307 pragma Assert (Is_Subprogram (Id));
4308 Set_Flag137 (Id, V);
4309 end Set_Is_Machine_Code_Subprogram;
4311 procedure Set_Is_Non_Static_Subtype (Id : E; V : B := True) is
4313 pragma Assert (Is_Type (Id));
4314 Set_Flag109 (Id, V);
4315 end Set_Is_Non_Static_Subtype;
4317 procedure Set_Is_Null_Init_Proc (Id : E; V : B := True) is
4319 pragma Assert (Ekind (Id) = E_Procedure);
4320 Set_Flag178 (Id, V);
4321 end Set_Is_Null_Init_Proc;
4323 procedure Set_Is_Obsolescent (Id : E; V : B := True) is
4325 Set_Flag153 (Id, V);
4326 end Set_Is_Obsolescent;
4328 procedure Set_Is_Only_Out_Parameter (Id : E; V : B := True) is
4330 pragma Assert (Ekind (Id) = E_Out_Parameter);
4331 Set_Flag226 (Id, V);
4332 end Set_Is_Only_Out_Parameter;
4334 procedure Set_Is_Optional_Parameter (Id : E; V : B := True) is
4336 pragma Assert (Is_Formal (Id));
4337 Set_Flag134 (Id, V);
4338 end Set_Is_Optional_Parameter;
4340 procedure Set_Is_Overriding_Operation (Id : E; V : B := True) is
4342 pragma Assert (Is_Subprogram (Id));
4344 end Set_Is_Overriding_Operation;
4346 procedure Set_Is_Package_Body_Entity (Id : E; V : B := True) is
4348 Set_Flag160 (Id, V);
4349 end Set_Is_Package_Body_Entity;
4351 procedure Set_Is_Packed (Id : E; V : B := True) is
4353 pragma Assert (Id = Base_Type (Id));
4357 procedure Set_Is_Packed_Array_Type (Id : E; V : B := True) is
4359 Set_Flag138 (Id, V);
4360 end Set_Is_Packed_Array_Type;
4362 procedure Set_Is_Potentially_Use_Visible (Id : E; V : B := True) is
4364 pragma Assert (Nkind (Id) in N_Entity);
4366 end Set_Is_Potentially_Use_Visible;
4368 procedure Set_Is_Preelaborated (Id : E; V : B := True) is
4371 end Set_Is_Preelaborated;
4373 procedure Set_Is_Primitive (Id : E; V : B := True) is
4376 (Is_Overloadable (Id)
4377 or else Ekind_In (Id, E_Generic_Function, E_Generic_Procedure));
4378 Set_Flag218 (Id, V);
4379 end Set_Is_Primitive;
4381 procedure Set_Is_Primitive_Wrapper (Id : E; V : B := True) is
4383 pragma Assert (Ekind_In (Id, E_Function, E_Procedure));
4384 Set_Flag195 (Id, V);
4385 end Set_Is_Primitive_Wrapper;
4387 procedure Set_Is_Private_Composite (Id : E; V : B := True) is
4389 pragma Assert (Is_Type (Id));
4390 Set_Flag107 (Id, V);
4391 end Set_Is_Private_Composite;
4393 procedure Set_Is_Private_Descendant (Id : E; V : B := True) is
4396 end Set_Is_Private_Descendant;
4398 procedure Set_Is_Private_Primitive (Id : E; V : B := True) is
4400 pragma Assert (Ekind_In (Id, E_Function, E_Procedure));
4401 Set_Flag245 (Id, V);
4402 end Set_Is_Private_Primitive;
4404 procedure Set_Is_Public (Id : E; V : B := True) is
4406 pragma Assert (Nkind (Id) in N_Entity);
4410 procedure Set_Is_Pure (Id : E; V : B := True) is
4415 procedure Set_Is_Pure_Unit_Access_Type (Id : E; V : B := True) is
4417 pragma Assert (Is_Access_Type (Id));
4418 Set_Flag189 (Id, V);
4419 end Set_Is_Pure_Unit_Access_Type;
4421 procedure Set_Is_RACW_Stub_Type (Id : E; V : B := True) is
4423 pragma Assert (Is_Type (Id));
4424 Set_Flag244 (Id, V);
4425 end Set_Is_RACW_Stub_Type;
4427 procedure Set_Is_Raised (Id : E; V : B := True) is
4429 pragma Assert (Ekind (Id) = E_Exception);
4430 Set_Flag224 (Id, V);
4433 procedure Set_Is_Remote_Call_Interface (Id : E; V : B := True) is
4436 end Set_Is_Remote_Call_Interface;
4438 procedure Set_Is_Remote_Types (Id : E; V : B := True) is
4441 end Set_Is_Remote_Types;
4443 procedure Set_Is_Renaming_Of_Object (Id : E; V : B := True) is
4445 Set_Flag112 (Id, V);
4446 end Set_Is_Renaming_Of_Object;
4448 procedure Set_Is_Return_Object (Id : E; V : B := True) is
4450 Set_Flag209 (Id, V);
4451 end Set_Is_Return_Object;
4453 procedure Set_Is_Shared_Passive (Id : E; V : B := True) is
4456 end Set_Is_Shared_Passive;
4458 procedure Set_Is_Statically_Allocated (Id : E; V : B := True) is
4462 or else Ekind_In (Id, E_Exception,
4467 end Set_Is_Statically_Allocated;
4469 procedure Set_Is_Tag (Id : E; V : B := True) is
4471 pragma Assert (Ekind_In (Id, E_Component, E_Constant, E_Variable));
4475 procedure Set_Is_Tagged_Type (Id : E; V : B := True) is
4478 end Set_Is_Tagged_Type;
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
4889 pragma Assert (Ekind (Id) in Type_Kind
4890 or else Ekind_In (Id, E_Constant, E_Variable, E_Void));
4892 end Set_Related_Expression;
4894 procedure Set_Related_Instance (Id : E; V : E) is
4896 pragma Assert (Ekind_In (Id, E_Package, E_Package_Body));
4898 end Set_Related_Instance;
4900 procedure Set_Related_Type (Id : E; V : E) is
4902 pragma Assert (Ekind_In (Id, E_Component, E_Constant, E_Variable));
4904 end Set_Related_Type;
4906 procedure Set_Relative_Deadline_Variable (Id : E; V : E) is
4908 pragma Assert (Is_Task_Type (Id) and then Id = Base_Type (Id));
4910 end Set_Relative_Deadline_Variable;
4912 procedure Set_Renamed_Entity (Id : E; V : N) is
4915 end Set_Renamed_Entity;
4917 procedure Set_Renamed_In_Spec (Id : E; V : B := True) is
4919 pragma Assert (Ekind (Id) = E_Package);
4920 Set_Flag231 (Id, V);
4921 end Set_Renamed_In_Spec;
4923 procedure Set_Renamed_Object (Id : E; V : N) is
4926 end Set_Renamed_Object;
4928 procedure Set_Renaming_Map (Id : E; V : U) is
4931 end Set_Renaming_Map;
4933 procedure Set_Requires_Overriding (Id : E; V : B := True) is
4935 pragma Assert (Is_Overloadable (Id));
4936 Set_Flag213 (Id, V);
4937 end Set_Requires_Overriding;
4939 procedure Set_Return_Present (Id : E; V : B := True) is
4942 end Set_Return_Present;
4944 procedure Set_Return_Applies_To (Id : E; V : N) is
4947 end Set_Return_Applies_To;
4949 procedure Set_Returns_By_Ref (Id : E; V : B := True) is
4952 end Set_Returns_By_Ref;
4954 procedure Set_Reverse_Bit_Order (Id : E; V : B := True) is
4957 (Is_Record_Type (Id) and then Id = Base_Type (Id));
4958 Set_Flag164 (Id, V);
4959 end Set_Reverse_Bit_Order;
4961 procedure Set_RM_Size (Id : E; V : U) is
4963 pragma Assert (Is_Type (Id));
4967 procedure Set_Scalar_Range (Id : E; V : N) is
4970 end Set_Scalar_Range;
4972 procedure Set_Scale_Value (Id : E; V : U) is
4975 end Set_Scale_Value;
4977 procedure Set_Scope_Depth_Value (Id : E; V : U) is
4979 pragma Assert (not Is_Record_Type (Id));
4981 end Set_Scope_Depth_Value;
4983 procedure Set_Sec_Stack_Needed_For_Return (Id : E; V : B := True) is
4985 Set_Flag167 (Id, V);
4986 end Set_Sec_Stack_Needed_For_Return;
4988 procedure Set_Shadow_Entities (Id : E; V : S) is
4990 pragma Assert (Ekind_In (Id, E_Package, E_Generic_Package));
4992 end Set_Shadow_Entities;
4994 procedure Set_Shared_Var_Procs_Instance (Id : E; V : E) is
4996 pragma Assert (Ekind (Id) = E_Variable);
4998 end Set_Shared_Var_Procs_Instance;
5000 procedure Set_Size_Check_Code (Id : E; V : N) is
5002 pragma Assert (Ekind_In (Id, E_Constant, E_Variable));
5004 end Set_Size_Check_Code;
5006 procedure Set_Size_Depends_On_Discriminant (Id : E; V : B := True) is
5008 Set_Flag177 (Id, V);
5009 end Set_Size_Depends_On_Discriminant;
5011 procedure Set_Size_Known_At_Compile_Time (Id : E; V : B := True) is
5014 end Set_Size_Known_At_Compile_Time;
5016 procedure Set_Small_Value (Id : E; V : R) is
5018 pragma Assert (Is_Fixed_Point_Type (Id));
5019 Set_Ureal21 (Id, V);
5020 end Set_Small_Value;
5022 procedure Set_Spec_Entity (Id : E; V : E) is
5024 pragma Assert (Ekind (Id) = E_Package_Body or else Is_Formal (Id));
5026 end Set_Spec_Entity;
5028 procedure Set_Spec_PPC_List (Id : E; V : N) is
5030 pragma Assert (Is_Subprogram (Id) or else Is_Generic_Subprogram (Id));
5032 end Set_Spec_PPC_List;
5034 procedure Set_Storage_Size_Variable (Id : E; V : E) is
5036 pragma Assert (Is_Access_Type (Id) or else Is_Task_Type (Id));
5037 pragma Assert (Id = Base_Type (Id));
5039 end Set_Storage_Size_Variable;
5041 procedure Set_Static_Elaboration_Desired (Id : E; V : B) is
5043 pragma Assert (Ekind (Id) = E_Package);
5045 end Set_Static_Elaboration_Desired;
5047 procedure Set_Static_Initialization (Id : E; V : N) is
5050 (Ekind (Id) = E_Procedure and then not Is_Dispatching_Operation (Id));
5052 end Set_Static_Initialization;
5054 procedure Set_Stored_Constraint (Id : E; V : L) is
5056 pragma Assert (Nkind (Id) in N_Entity);
5057 Set_Elist23 (Id, V);
5058 end Set_Stored_Constraint;
5060 procedure Set_Strict_Alignment (Id : E; V : B := True) is
5062 pragma Assert (Id = Base_Type (Id));
5063 Set_Flag145 (Id, V);
5064 end Set_Strict_Alignment;
5066 procedure Set_String_Literal_Length (Id : E; V : U) is
5068 pragma Assert (Ekind (Id) = E_String_Literal_Subtype);
5070 end Set_String_Literal_Length;
5072 procedure Set_String_Literal_Low_Bound (Id : E; V : N) is
5074 pragma Assert (Ekind (Id) = E_String_Literal_Subtype);
5076 end Set_String_Literal_Low_Bound;
5078 procedure Set_Suppress_Elaboration_Warnings (Id : E; V : B := True) is
5080 Set_Flag148 (Id, V);
5081 end Set_Suppress_Elaboration_Warnings;
5083 procedure Set_Suppress_Init_Proc (Id : E; V : B := True) is
5085 pragma Assert (Id = Base_Type (Id));
5086 Set_Flag105 (Id, V);
5087 end Set_Suppress_Init_Proc;
5089 procedure Set_Suppress_Style_Checks (Id : E; V : B := True) is
5091 Set_Flag165 (Id, V);
5092 end Set_Suppress_Style_Checks;
5094 procedure Set_Suppress_Value_Tracking_On_Call (Id : E; V : B := True) is
5096 Set_Flag217 (Id, V);
5097 end Set_Suppress_Value_Tracking_On_Call;
5099 procedure Set_Task_Body_Procedure (Id : E; V : N) is
5101 pragma Assert (Ekind (Id) in Task_Kind);
5103 end Set_Task_Body_Procedure;
5105 procedure Set_Treat_As_Volatile (Id : E; V : B := True) is
5108 end Set_Treat_As_Volatile;
5110 procedure Set_Underlying_Full_View (Id : E; V : E) is
5112 pragma Assert (Ekind (Id) in Private_Kind);
5114 end Set_Underlying_Full_View;
5116 procedure Set_Underlying_Record_View (Id : E; V : E) is
5118 pragma Assert (Ekind (Id) = E_Record_Type);
5120 end Set_Underlying_Record_View;
5122 procedure Set_Universal_Aliasing (Id : E; V : B := True) is
5124 pragma Assert (Is_Type (Id) and then Id = Base_Type (Id));
5125 Set_Flag216 (Id, V);
5126 end Set_Universal_Aliasing;
5128 procedure Set_Unset_Reference (Id : E; V : N) is
5131 end Set_Unset_Reference;
5133 procedure Set_Uses_Sec_Stack (Id : E; V : B := True) is
5136 end Set_Uses_Sec_Stack;
5138 procedure Set_Used_As_Generic_Actual (Id : E; V : B := True) is
5140 Set_Flag222 (Id, V);
5141 end Set_Used_As_Generic_Actual;
5143 procedure Set_Vax_Float (Id : E; V : B := True) is
5145 pragma Assert (Id = Base_Type (Id));
5146 Set_Flag151 (Id, V);
5149 procedure Set_Warnings_Off (Id : E; V : B := True) is
5152 end Set_Warnings_Off;
5154 procedure Set_Warnings_Off_Used (Id : E; V : B := True) is
5156 Set_Flag236 (Id, V);
5157 end Set_Warnings_Off_Used;
5159 procedure Set_Warnings_Off_Used_Unmodified (Id : E; V : B := True) is
5161 Set_Flag237 (Id, V);
5162 end Set_Warnings_Off_Used_Unmodified;
5164 procedure Set_Warnings_Off_Used_Unreferenced (Id : E; V : B := True) is
5166 Set_Flag238 (Id, V);
5167 end Set_Warnings_Off_Used_Unreferenced;
5169 procedure Set_Was_Hidden (Id : E; V : B := True) is
5171 Set_Flag196 (Id, V);
5174 procedure Set_Wrapped_Entity (Id : E; V : E) is
5176 pragma Assert (Ekind_In (Id, E_Function, E_Procedure)
5177 and then Is_Primitive_Wrapper (Id));
5179 end Set_Wrapped_Entity;
5181 -----------------------------------
5182 -- Field Initialization Routines --
5183 -----------------------------------
5185 procedure Init_Alignment (Id : E) is
5187 Set_Uint14 (Id, Uint_0);
5190 procedure Init_Alignment (Id : E; V : Int) is
5192 Set_Uint14 (Id, UI_From_Int (V));
5195 procedure Init_Component_Bit_Offset (Id : E) is
5197 Set_Uint11 (Id, No_Uint);
5198 end Init_Component_Bit_Offset;
5200 procedure Init_Component_Bit_Offset (Id : E; V : Int) is
5202 Set_Uint11 (Id, UI_From_Int (V));
5203 end Init_Component_Bit_Offset;
5205 procedure Init_Component_Size (Id : E) is
5207 Set_Uint22 (Id, Uint_0);
5208 end Init_Component_Size;
5210 procedure Init_Component_Size (Id : E; V : Int) is
5212 Set_Uint22 (Id, UI_From_Int (V));
5213 end Init_Component_Size;
5215 procedure Init_Digits_Value (Id : E) is
5217 Set_Uint17 (Id, Uint_0);
5218 end Init_Digits_Value;
5220 procedure Init_Digits_Value (Id : E; V : Int) is
5222 Set_Uint17 (Id, UI_From_Int (V));
5223 end Init_Digits_Value;
5225 procedure Init_Esize (Id : E) is
5227 Set_Uint12 (Id, Uint_0);
5230 procedure Init_Esize (Id : E; V : Int) is
5232 Set_Uint12 (Id, UI_From_Int (V));
5235 procedure Init_Normalized_First_Bit (Id : E) is
5237 Set_Uint8 (Id, No_Uint);
5238 end Init_Normalized_First_Bit;
5240 procedure Init_Normalized_First_Bit (Id : E; V : Int) is
5242 Set_Uint8 (Id, UI_From_Int (V));
5243 end Init_Normalized_First_Bit;
5245 procedure Init_Normalized_Position (Id : E) is
5247 Set_Uint14 (Id, No_Uint);
5248 end Init_Normalized_Position;
5250 procedure Init_Normalized_Position (Id : E; V : Int) is
5252 Set_Uint14 (Id, UI_From_Int (V));
5253 end Init_Normalized_Position;
5255 procedure Init_Normalized_Position_Max (Id : E) is
5257 Set_Uint10 (Id, No_Uint);
5258 end Init_Normalized_Position_Max;
5260 procedure Init_Normalized_Position_Max (Id : E; V : Int) is
5262 Set_Uint10 (Id, UI_From_Int (V));
5263 end Init_Normalized_Position_Max;
5265 procedure Init_RM_Size (Id : E) is
5267 Set_Uint13 (Id, Uint_0);
5270 procedure Init_RM_Size (Id : E; V : Int) is
5272 Set_Uint13 (Id, UI_From_Int (V));
5275 -----------------------------
5276 -- Init_Component_Location --
5277 -----------------------------
5279 procedure Init_Component_Location (Id : E) is
5281 Set_Uint8 (Id, No_Uint); -- Normalized_First_Bit
5282 Set_Uint10 (Id, No_Uint); -- Normalized_Position_Max
5283 Set_Uint11 (Id, No_Uint); -- Component_Bit_Offset
5284 Set_Uint12 (Id, Uint_0); -- Esize
5285 Set_Uint14 (Id, No_Uint); -- Normalized_Position
5286 end Init_Component_Location;
5292 procedure Init_Size (Id : E; V : Int) is
5294 Set_Uint12 (Id, UI_From_Int (V)); -- Esize
5295 Set_Uint13 (Id, UI_From_Int (V)); -- RM_Size
5298 ---------------------
5299 -- Init_Size_Align --
5300 ---------------------
5302 procedure Init_Size_Align (Id : E) is
5304 Set_Uint12 (Id, Uint_0); -- Esize
5305 Set_Uint13 (Id, Uint_0); -- RM_Size
5306 Set_Uint14 (Id, Uint_0); -- Alignment
5307 end Init_Size_Align;
5309 ----------------------------------------------
5310 -- Type Representation Attribute Predicates --
5311 ----------------------------------------------
5313 function Known_Alignment (E : Entity_Id) return B is
5315 return Uint14 (E) /= Uint_0
5316 and then Uint14 (E) /= No_Uint;
5317 end Known_Alignment;
5319 function Known_Component_Bit_Offset (E : Entity_Id) return B is
5321 return Uint11 (E) /= No_Uint;
5322 end Known_Component_Bit_Offset;
5324 function Known_Component_Size (E : Entity_Id) return B is
5326 return Uint22 (Base_Type (E)) /= Uint_0
5327 and then Uint22 (Base_Type (E)) /= No_Uint;
5328 end Known_Component_Size;
5330 function Known_Esize (E : Entity_Id) return B is
5332 return Uint12 (E) /= Uint_0
5333 and then Uint12 (E) /= No_Uint;
5336 function Known_Normalized_First_Bit (E : Entity_Id) return B is
5338 return Uint8 (E) /= No_Uint;
5339 end Known_Normalized_First_Bit;
5341 function Known_Normalized_Position (E : Entity_Id) return B is
5343 return Uint14 (E) /= No_Uint;
5344 end Known_Normalized_Position;
5346 function Known_Normalized_Position_Max (E : Entity_Id) return B is
5348 return Uint10 (E) /= No_Uint;
5349 end Known_Normalized_Position_Max;
5351 function Known_RM_Size (E : Entity_Id) return B is
5353 return Uint13 (E) /= No_Uint
5354 and then (Uint13 (E) /= Uint_0
5355 or else Is_Discrete_Type (E)
5356 or else Is_Fixed_Point_Type (E));
5359 function Known_Static_Component_Bit_Offset (E : Entity_Id) return B is
5361 return Uint11 (E) /= No_Uint
5362 and then Uint11 (E) >= Uint_0;
5363 end Known_Static_Component_Bit_Offset;
5365 function Known_Static_Component_Size (E : Entity_Id) return B is
5367 return Uint22 (Base_Type (E)) > Uint_0;
5368 end Known_Static_Component_Size;
5370 function Known_Static_Esize (E : Entity_Id) return B is
5372 return Uint12 (E) > Uint_0
5373 and then not Is_Generic_Type (E);
5374 end Known_Static_Esize;
5376 function Known_Static_Normalized_First_Bit (E : Entity_Id) return B is
5378 return Uint8 (E) /= No_Uint
5379 and then Uint8 (E) >= Uint_0;
5380 end Known_Static_Normalized_First_Bit;
5382 function Known_Static_Normalized_Position (E : Entity_Id) return B is
5384 return Uint14 (E) /= No_Uint
5385 and then Uint14 (E) >= Uint_0;
5386 end Known_Static_Normalized_Position;
5388 function Known_Static_Normalized_Position_Max (E : Entity_Id) return B is
5390 return Uint10 (E) /= No_Uint
5391 and then Uint10 (E) >= Uint_0;
5392 end Known_Static_Normalized_Position_Max;
5394 function Known_Static_RM_Size (E : Entity_Id) return B is
5396 return (Uint13 (E) > Uint_0
5397 or else Is_Discrete_Type (E)
5398 or else Is_Fixed_Point_Type (E))
5399 and then not Is_Generic_Type (E);
5400 end Known_Static_RM_Size;
5402 function Unknown_Alignment (E : Entity_Id) return B is
5404 return Uint14 (E) = Uint_0
5405 or else Uint14 (E) = No_Uint;
5406 end Unknown_Alignment;
5408 function Unknown_Component_Bit_Offset (E : Entity_Id) return B is
5410 return Uint11 (E) = No_Uint;
5411 end Unknown_Component_Bit_Offset;
5413 function Unknown_Component_Size (E : Entity_Id) return B is
5415 return Uint22 (Base_Type (E)) = Uint_0
5417 Uint22 (Base_Type (E)) = No_Uint;
5418 end Unknown_Component_Size;
5420 function Unknown_Esize (E : Entity_Id) return B is
5422 return Uint12 (E) = No_Uint
5424 Uint12 (E) = Uint_0;
5427 function Unknown_Normalized_First_Bit (E : Entity_Id) return B is
5429 return Uint8 (E) = No_Uint;
5430 end Unknown_Normalized_First_Bit;
5432 function Unknown_Normalized_Position (E : Entity_Id) return B is
5434 return Uint14 (E) = No_Uint;
5435 end Unknown_Normalized_Position;
5437 function Unknown_Normalized_Position_Max (E : Entity_Id) return B is
5439 return Uint10 (E) = No_Uint;
5440 end Unknown_Normalized_Position_Max;
5442 function Unknown_RM_Size (E : Entity_Id) return B is
5444 return (Uint13 (E) = Uint_0
5445 and then not Is_Discrete_Type (E)
5446 and then not Is_Fixed_Point_Type (E))
5447 or else Uint13 (E) = No_Uint;
5448 end Unknown_RM_Size;
5450 --------------------
5451 -- Address_Clause --
5452 --------------------
5454 function Address_Clause (Id : E) return N is
5456 return Rep_Clause (Id, Name_Address);
5459 ----------------------
5460 -- Alignment_Clause --
5461 ----------------------
5463 function Alignment_Clause (Id : E) return N is
5465 return Rep_Clause (Id, Name_Alignment);
5466 end Alignment_Clause;
5472 procedure Append_Entity (Id : Entity_Id; V : Entity_Id) is
5474 if Last_Entity (V) = Empty then
5475 Set_First_Entity (Id => V, V => Id);
5477 Set_Next_Entity (Last_Entity (V), Id);
5480 Set_Next_Entity (Id, Empty);
5482 Set_Last_Entity (Id => V, V => Id);
5489 function Base_Type (Id : E) return E is
5492 when E_Enumeration_Subtype |
5494 E_Signed_Integer_Subtype |
5495 E_Modular_Integer_Subtype |
5496 E_Floating_Point_Subtype |
5497 E_Ordinary_Fixed_Point_Subtype |
5498 E_Decimal_Fixed_Point_Subtype |
5503 E_Record_Subtype_With_Private |
5504 E_Limited_Private_Subtype |
5506 E_Protected_Subtype |
5508 E_String_Literal_Subtype |
5509 E_Class_Wide_Subtype =>
5517 -------------------------
5518 -- Component_Alignment --
5519 -------------------------
5521 -- Component Alignment is encoded using two flags, Flag128/129 as
5522 -- follows. Note that both flags False = Align_Default, so that the
5523 -- default initialization of flags to False initializes component
5524 -- alignment to the default value as required.
5526 -- Flag128 Flag129 Value
5527 -- ------- ------- -----
5528 -- False False Calign_Default
5529 -- False True Calign_Component_Size
5530 -- True False Calign_Component_Size_4
5531 -- True True Calign_Storage_Unit
5533 function Component_Alignment (Id : E) return C is
5534 BT : constant Node_Id := Base_Type (Id);
5537 pragma Assert (Is_Array_Type (Id) or else Is_Record_Type (Id));
5539 if Flag128 (BT) then
5540 if Flag129 (BT) then
5541 return Calign_Storage_Unit;
5543 return Calign_Component_Size_4;
5547 if Flag129 (BT) then
5548 return Calign_Component_Size;
5550 return Calign_Default;
5553 end Component_Alignment;
5555 ----------------------
5556 -- Declaration_Node --
5557 ----------------------
5559 function Declaration_Node (Id : E) return N is
5563 if Ekind (Id) = E_Incomplete_Type
5564 and then Present (Full_View (Id))
5566 P := Parent (Full_View (Id));
5572 if Nkind (P) /= N_Selected_Component
5573 and then Nkind (P) /= N_Expanded_Name
5575 not (Nkind (P) = N_Defining_Program_Unit_Name
5576 and then Is_Child_Unit (Id))
5583 end Declaration_Node;
5585 ---------------------
5586 -- Designated_Type --
5587 ---------------------
5589 function Designated_Type (Id : E) return E is
5593 Desig_Type := Directly_Designated_Type (Id);
5595 if Ekind (Desig_Type) = E_Incomplete_Type
5596 and then Present (Full_View (Desig_Type))
5598 return Full_View (Desig_Type);
5600 elsif Is_Class_Wide_Type (Desig_Type)
5601 and then Ekind (Etype (Desig_Type)) = E_Incomplete_Type
5602 and then Present (Full_View (Etype (Desig_Type)))
5603 and then Present (Class_Wide_Type (Full_View (Etype (Desig_Type))))
5605 return Class_Wide_Type (Full_View (Etype (Desig_Type)));
5610 end Designated_Type;
5612 ----------------------
5613 -- Entry_Index_Type --
5614 ----------------------
5616 function Entry_Index_Type (Id : E) return N is
5618 pragma Assert (Ekind (Id) = E_Entry_Family);
5619 return Etype (Discrete_Subtype_Definition (Parent (Id)));
5620 end Entry_Index_Type;
5622 ---------------------
5623 -- First_Component --
5624 ---------------------
5626 function First_Component (Id : E) return E is
5631 (Is_Record_Type (Id) or else Is_Incomplete_Or_Private_Type (Id));
5633 Comp_Id := First_Entity (Id);
5634 while Present (Comp_Id) loop
5635 exit when Ekind (Comp_Id) = E_Component;
5636 Comp_Id := Next_Entity (Comp_Id);
5640 end First_Component;
5642 -------------------------------------
5643 -- First_Component_Or_Discriminant --
5644 -------------------------------------
5646 function First_Component_Or_Discriminant (Id : E) return E is
5651 (Is_Record_Type (Id) or else Is_Incomplete_Or_Private_Type (Id));
5653 Comp_Id := First_Entity (Id);
5654 while Present (Comp_Id) loop
5655 exit when Ekind (Comp_Id) = E_Component
5657 Ekind (Comp_Id) = E_Discriminant;
5658 Comp_Id := Next_Entity (Comp_Id);
5662 end First_Component_Or_Discriminant;
5668 function First_Formal (Id : E) return E is
5673 (Is_Overloadable (Id)
5674 or else Ekind_In (Id, E_Entry_Family,
5676 E_Subprogram_Type));
5678 if Ekind (Id) = E_Enumeration_Literal then
5682 Formal := First_Entity (Id);
5684 if Present (Formal) and then Is_Formal (Formal) then
5692 ------------------------------
5693 -- First_Formal_With_Extras --
5694 ------------------------------
5696 function First_Formal_With_Extras (Id : E) return E is
5701 (Is_Overloadable (Id)
5702 or else Ekind_In (Id, E_Entry_Family,
5704 E_Subprogram_Type));
5706 if Ekind (Id) = E_Enumeration_Literal then
5710 Formal := First_Entity (Id);
5712 if Present (Formal) and then Is_Formal (Formal) then
5715 return Extra_Formals (Id); -- Empty if no extra formals
5718 end First_Formal_With_Extras;
5720 -------------------------------------
5721 -- Get_Attribute_Definition_Clause --
5722 -------------------------------------
5724 function Get_Attribute_Definition_Clause
5726 Id : Attribute_Id) return Node_Id
5731 N := First_Rep_Item (E);
5732 while Present (N) loop
5733 if Nkind (N) = N_Attribute_Definition_Clause
5734 and then Get_Attribute_Id (Chars (N)) = Id
5743 end Get_Attribute_Definition_Clause;
5749 function Get_Full_View (T : Entity_Id) return Entity_Id is
5751 if Ekind (T) = E_Incomplete_Type and then Present (Full_View (T)) then
5752 return Full_View (T);
5754 elsif Is_Class_Wide_Type (T)
5755 and then Ekind (Root_Type (T)) = E_Incomplete_Type
5756 and then Present (Full_View (Root_Type (T)))
5758 return Class_Wide_Type (Full_View (Root_Type (T)));
5765 --------------------------------------
5766 -- Get_Record_Representation_Clause --
5767 --------------------------------------
5769 function Get_Record_Representation_Clause (E : Entity_Id) return Node_Id is
5773 N := First_Rep_Item (E);
5774 while Present (N) loop
5775 if Nkind (N) = N_Record_Representation_Clause then
5783 end Get_Record_Representation_Clause;
5785 --------------------
5786 -- Get_Rep_Pragma --
5787 --------------------
5789 function Get_Rep_Pragma (E : Entity_Id; Nam : Name_Id) return Node_Id is
5793 N := First_Rep_Item (E);
5794 while Present (N) loop
5795 if Nkind (N) = N_Pragma and then Pragma_Name (N) = Nam then
5805 ------------------------
5806 -- Has_Attach_Handler --
5807 ------------------------
5809 function Has_Attach_Handler (Id : E) return B is
5813 pragma Assert (Is_Protected_Type (Id));
5815 Ritem := First_Rep_Item (Id);
5816 while Present (Ritem) loop
5817 if Nkind (Ritem) = N_Pragma
5818 and then Pragma_Name (Ritem) = Name_Attach_Handler
5822 Ritem := Next_Rep_Item (Ritem);
5827 end Has_Attach_Handler;
5829 -------------------------------------
5830 -- Has_Attribute_Definition_Clause --
5831 -------------------------------------
5833 function Has_Attribute_Definition_Clause
5835 Id : Attribute_Id) return Boolean
5838 return Present (Get_Attribute_Definition_Clause (E, Id));
5839 end Has_Attribute_Definition_Clause;
5845 function Has_Entries (Id : E) return B is
5849 pragma Assert (Is_Concurrent_Type (Id));
5851 Ent := First_Entity (Id);
5852 while Present (Ent) loop
5853 if Is_Entry (Ent) then
5857 Ent := Next_Entity (Ent);
5863 ----------------------------
5864 -- Has_Foreign_Convention --
5865 ----------------------------
5867 function Has_Foreign_Convention (Id : E) return B is
5869 -- While regular Intrinsics such as the Standard operators fit in the
5870 -- "Ada" convention, those with an Interface_Name materialize GCC
5871 -- builtin imports for which Ada special treatments shouldn't apply.
5873 return Convention (Id) in Foreign_Convention
5874 or else (Convention (Id) = Convention_Intrinsic
5875 and then Present (Interface_Name (Id)));
5876 end Has_Foreign_Convention;
5878 ---------------------------
5879 -- Has_Interrupt_Handler --
5880 ---------------------------
5882 function Has_Interrupt_Handler (Id : E) return B is
5886 pragma Assert (Is_Protected_Type (Id));
5888 Ritem := First_Rep_Item (Id);
5889 while Present (Ritem) loop
5890 if Nkind (Ritem) = N_Pragma
5891 and then Pragma_Name (Ritem) = Name_Interrupt_Handler
5895 Ritem := Next_Rep_Item (Ritem);
5900 end Has_Interrupt_Handler;
5902 --------------------------
5903 -- Has_Private_Ancestor --
5904 --------------------------
5906 function Has_Private_Ancestor (Id : E) return B is
5907 R : constant Entity_Id := Root_Type (Id);
5908 T1 : Entity_Id := Id;
5911 if Is_Private_Type (T1) then
5919 end Has_Private_Ancestor;
5921 --------------------
5922 -- Has_Rep_Pragma --
5923 --------------------
5925 function Has_Rep_Pragma (E : Entity_Id; Nam : Name_Id) return Boolean is
5927 return Present (Get_Rep_Pragma (E, Nam));
5930 --------------------
5931 -- Has_Unmodified --
5932 --------------------
5934 function Has_Unmodified (E : Entity_Id) return Boolean is
5936 if Has_Pragma_Unmodified (E) then
5938 elsif Warnings_Off (E) then
5939 Set_Warnings_Off_Used_Unmodified (E);
5946 ---------------------
5947 -- Has_Unreferenced --
5948 ---------------------
5950 function Has_Unreferenced (E : Entity_Id) return Boolean is
5952 if Has_Pragma_Unreferenced (E) then
5954 elsif Warnings_Off (E) then
5955 Set_Warnings_Off_Used_Unreferenced (E);
5960 end Has_Unreferenced;
5962 ----------------------
5963 -- Has_Warnings_Off --
5964 ----------------------
5966 function Has_Warnings_Off (E : Entity_Id) return Boolean is
5968 if Warnings_Off (E) then
5969 Set_Warnings_Off_Used (E);
5974 end Has_Warnings_Off;
5976 ------------------------------
5977 -- Implementation_Base_Type --
5978 ------------------------------
5980 function Implementation_Base_Type (Id : E) return E is
5985 Bastyp := Base_Type (Id);
5987 if Is_Incomplete_Or_Private_Type (Bastyp) then
5988 Imptyp := Underlying_Type (Bastyp);
5990 -- If we have an implementation type, then just return it,
5991 -- otherwise we return the Base_Type anyway. This can only
5992 -- happen in error situations and should avoid some error bombs.
5994 if Present (Imptyp) then
5995 return Base_Type (Imptyp);
6003 end Implementation_Base_Type;
6005 ---------------------
6006 -- Is_Boolean_Type --
6007 ---------------------
6009 function Is_Boolean_Type (Id : E) return B is
6011 return Root_Type (Id) = Standard_Boolean;
6012 end Is_Boolean_Type;
6014 ------------------------
6015 -- Is_Constant_Object --
6016 ------------------------
6018 function Is_Constant_Object (Id : E) return B is
6019 K : constant Entity_Kind := Ekind (Id);
6022 K = E_Constant or else K = E_In_Parameter or else K = E_Loop_Parameter;
6023 end Is_Constant_Object;
6025 --------------------
6026 -- Is_Discriminal --
6027 --------------------
6029 function Is_Discriminal (Id : E) return B is
6031 return (Ekind_In (Id, E_Constant, E_In_Parameter)
6032 and then Present (Discriminal_Link (Id)));
6035 ----------------------
6036 -- Is_Dynamic_Scope --
6037 ----------------------
6039 function Is_Dynamic_Scope (Id : E) return B is
6042 Ekind (Id) = E_Block
6044 Ekind (Id) = E_Function
6046 Ekind (Id) = E_Procedure
6048 Ekind (Id) = E_Subprogram_Body
6050 Ekind (Id) = E_Task_Type
6052 Ekind (Id) = E_Entry
6054 Ekind (Id) = E_Entry_Family
6056 Ekind (Id) = E_Return_Statement;
6057 end Is_Dynamic_Scope;
6059 --------------------
6060 -- Is_Entity_Name --
6061 --------------------
6063 function Is_Entity_Name (N : Node_Id) return Boolean is
6064 Kind : constant Node_Kind := Nkind (N);
6067 -- Identifiers, operator symbols, expanded names are entity names
6069 return Kind = N_Identifier
6070 or else Kind = N_Operator_Symbol
6071 or else Kind = N_Expanded_Name
6073 -- Attribute references are entity names if they refer to an entity.
6074 -- Note that we don't do this by testing for the presence of the
6075 -- Entity field in the N_Attribute_Reference node, since it may not
6076 -- have been set yet.
6078 or else (Kind = N_Attribute_Reference
6079 and then Is_Entity_Attribute_Name (Attribute_Name (N)));
6082 -----------------------------------
6083 -- Is_Package_Or_Generic_Package --
6084 -----------------------------------
6086 function Is_Package_Or_Generic_Package (Id : E) return B is
6089 Ekind (Id) = E_Package
6091 Ekind (Id) = E_Generic_Package;
6092 end Is_Package_Or_Generic_Package;
6098 function Is_Prival (Id : E) return B is
6100 return (Ekind_In (Id, E_Constant, E_Variable)
6101 and then Present (Prival_Link (Id)));
6104 ----------------------------
6105 -- Is_Protected_Component --
6106 ----------------------------
6108 function Is_Protected_Component (Id : E) return B is
6110 return Ekind (Id) = E_Component
6111 and then Is_Protected_Type (Scope (Id));
6112 end Is_Protected_Component;
6114 ----------------------------
6115 -- Is_Protected_Interface --
6116 ----------------------------
6118 function Is_Protected_Interface (Id : E) return B is
6119 Typ : constant Entity_Id := Base_Type (Id);
6121 if not Is_Interface (Typ) then
6123 elsif Is_Class_Wide_Type (Typ) then
6124 return Is_Protected_Interface (Etype (Typ));
6126 return Protected_Present (Type_Definition (Parent (Typ)));
6128 end Is_Protected_Interface;
6130 ------------------------------
6131 -- Is_Protected_Record_Type --
6132 ------------------------------
6134 function Is_Protected_Record_Type (Id : E) return B is
6137 Is_Concurrent_Record_Type (Id)
6138 and then Is_Protected_Type (Corresponding_Concurrent_Type (Id));
6139 end Is_Protected_Record_Type;
6141 --------------------------------
6142 -- Is_Standard_Character_Type --
6143 --------------------------------
6145 function Is_Standard_Character_Type (Id : E) return B is
6147 if Is_Type (Id) then
6149 R : constant Entity_Id := Root_Type (Id);
6152 R = Standard_Character
6154 R = Standard_Wide_Character
6156 R = Standard_Wide_Wide_Character;
6162 end Is_Standard_Character_Type;
6164 --------------------
6165 -- Is_String_Type --
6166 --------------------
6168 function Is_String_Type (Id : E) return B is
6170 return Ekind (Id) in String_Kind
6171 or else (Is_Array_Type (Id)
6172 and then Number_Dimensions (Id) = 1
6173 and then Is_Character_Type (Component_Type (Id)));
6176 -------------------------------
6177 -- Is_Synchronized_Interface --
6178 -------------------------------
6180 function Is_Synchronized_Interface (Id : E) return B is
6181 Typ : constant Entity_Id := Base_Type (Id);
6184 if not Is_Interface (Typ) then
6187 elsif Is_Class_Wide_Type (Typ) then
6188 return Is_Synchronized_Interface (Etype (Typ));
6191 return Protected_Present (Type_Definition (Parent (Typ)))
6192 or else Synchronized_Present (Type_Definition (Parent (Typ)))
6193 or else Task_Present (Type_Definition (Parent (Typ)));
6195 end Is_Synchronized_Interface;
6197 -----------------------
6198 -- Is_Task_Interface --
6199 -----------------------
6201 function Is_Task_Interface (Id : E) return B is
6202 Typ : constant Entity_Id := Base_Type (Id);
6204 if not Is_Interface (Typ) then
6206 elsif Is_Class_Wide_Type (Typ) then
6207 return Is_Task_Interface (Etype (Typ));
6209 return Task_Present (Type_Definition (Parent (Typ)));
6211 end Is_Task_Interface;
6213 -------------------------
6214 -- Is_Task_Record_Type --
6215 -------------------------
6217 function Is_Task_Record_Type (Id : E) return B is
6220 Is_Concurrent_Record_Type (Id)
6221 and then Is_Task_Type (Corresponding_Concurrent_Type (Id));
6222 end Is_Task_Record_Type;
6224 ------------------------
6225 -- Is_Wrapper_Package --
6226 ------------------------
6228 function Is_Wrapper_Package (Id : E) return B is
6230 return (Ekind (Id) = E_Package
6231 and then Present (Related_Instance (Id)));
6232 end Is_Wrapper_Package;
6238 function Last_Formal (Id : E) return E is
6243 (Is_Overloadable (Id)
6244 or else Ekind_In (Id, E_Entry_Family,
6246 E_Subprogram_Type));
6248 if Ekind (Id) = E_Enumeration_Literal then
6252 Formal := First_Formal (Id);
6254 if Present (Formal) then
6255 while Present (Next_Formal (Formal)) loop
6256 Formal := Next_Formal (Formal);
6264 --------------------
6265 -- Next_Component --
6266 --------------------
6268 function Next_Component (Id : E) return E is
6272 Comp_Id := Next_Entity (Id);
6273 while Present (Comp_Id) loop
6274 exit when Ekind (Comp_Id) = E_Component;
6275 Comp_Id := Next_Entity (Comp_Id);
6281 ------------------------------------
6282 -- Next_Component_Or_Discriminant --
6283 ------------------------------------
6285 function Next_Component_Or_Discriminant (Id : E) return E is
6289 Comp_Id := Next_Entity (Id);
6290 while Present (Comp_Id) loop
6291 exit when Ekind_In (Comp_Id, E_Component, E_Discriminant);
6292 Comp_Id := Next_Entity (Comp_Id);
6296 end Next_Component_Or_Discriminant;
6298 -----------------------
6299 -- Next_Discriminant --
6300 -----------------------
6302 -- This function actually implements both Next_Discriminant and
6303 -- Next_Stored_Discriminant by making sure that the Discriminant
6304 -- returned is of the same variety as Id.
6306 function Next_Discriminant (Id : E) return E is
6308 -- Derived Tagged types with private extensions look like this...
6310 -- E_Discriminant d1
6311 -- E_Discriminant d2
6313 -- E_Discriminant d1
6314 -- E_Discriminant d2
6317 -- so it is critical not to go past the leading discriminants
6322 pragma Assert (Ekind (Id) = E_Discriminant);
6325 D := Next_Entity (D);
6327 or else (Ekind (D) /= E_Discriminant
6328 and then not Is_Itype (D))
6333 exit when Ekind (D) = E_Discriminant
6334 and then (Is_Completely_Hidden (D) = Is_Completely_Hidden (Id));
6338 end Next_Discriminant;
6344 function Next_Formal (Id : E) return E is
6348 -- Follow the chain of declared entities as long as the kind of the
6349 -- entity corresponds to a formal parameter. Skip internal entities
6350 -- that may have been created for implicit subtypes, in the process
6351 -- of analyzing default expressions.
6356 P := Next_Entity (P);
6358 if No (P) or else Is_Formal (P) then
6360 elsif not Is_Internal (P) then
6366 -----------------------------
6367 -- Next_Formal_With_Extras --
6368 -----------------------------
6370 function Next_Formal_With_Extras (Id : E) return E is
6372 if Present (Extra_Formal (Id)) then
6373 return Extra_Formal (Id);
6375 return Next_Formal (Id);
6377 end Next_Formal_With_Extras;
6383 function Next_Index (Id : Node_Id) return Node_Id is
6392 function Next_Literal (Id : E) return E is
6394 pragma Assert (Nkind (Id) in N_Entity);
6398 ------------------------------
6399 -- Next_Stored_Discriminant --
6400 ------------------------------
6402 function Next_Stored_Discriminant (Id : E) return E is
6404 -- See comment in Next_Discriminant
6406 return Next_Discriminant (Id);
6407 end Next_Stored_Discriminant;
6409 -----------------------
6410 -- Number_Dimensions --
6411 -----------------------
6413 function Number_Dimensions (Id : E) return Pos is
6418 if Ekind (Id) in String_Kind then
6423 T := First_Index (Id);
6424 while Present (T) loop
6431 end Number_Dimensions;
6433 --------------------
6434 -- Number_Entries --
6435 --------------------
6437 function Number_Entries (Id : E) return Nat is
6442 pragma Assert (Is_Concurrent_Type (Id));
6445 Ent := First_Entity (Id);
6446 while Present (Ent) loop
6447 if Is_Entry (Ent) then
6451 Ent := Next_Entity (Ent);
6457 --------------------
6458 -- Number_Formals --
6459 --------------------
6461 function Number_Formals (Id : E) return Pos is
6467 Formal := First_Formal (Id);
6468 while Present (Formal) loop
6470 Formal := Next_Formal (Formal);
6476 --------------------
6477 -- Parameter_Mode --
6478 --------------------
6480 function Parameter_Mode (Id : E) return Formal_Kind is
6485 ---------------------
6486 -- Record_Rep_Item --
6487 ---------------------
6489 procedure Record_Rep_Item (E : Entity_Id; N : Node_Id) is
6491 Set_Next_Rep_Item (N, First_Rep_Item (E));
6492 Set_First_Rep_Item (E, N);
6493 end Record_Rep_Item;
6499 function Root_Type (Id : E) return E is
6503 pragma Assert (Nkind (Id) in N_Entity);
6505 T := Base_Type (Id);
6507 if Ekind (T) = E_Class_Wide_Type then
6510 elsif Ekind (T) = E_Class_Wide_Subtype then
6511 return Etype (Base_Type (T));
6513 -- ??? T comes from Base_Type, how can it be a subtype?
6514 -- Also Base_Type is supposed to be idempotent, so either way
6515 -- this is equivalent to "return Etype (T)" and should be merged
6516 -- with the E_Class_Wide_Type case.
6527 -- Following test catches some error cases resulting from
6530 elsif No (Etyp) then
6533 elsif Is_Private_Type (T) and then Etyp = Full_View (T) then
6536 elsif Is_Private_Type (Etyp) and then Full_View (Etyp) = T then
6542 -- Return if there is a circularity in the inheritance chain. This
6543 -- happens in some error situations and we do not want to get
6544 -- stuck in this loop.
6546 if T = Base_Type (Id) then
6557 function Scope_Depth (Id : E) return Uint is
6562 while Is_Record_Type (Scop) loop
6563 Scop := Scope (Scop);
6566 return Scope_Depth_Value (Scop);
6569 ---------------------
6570 -- Scope_Depth_Set --
6571 ---------------------
6573 function Scope_Depth_Set (Id : E) return B is
6575 return not Is_Record_Type (Id)
6576 and then Field22 (Id) /= Union_Id (Empty);
6577 end Scope_Depth_Set;
6579 -----------------------------
6580 -- Set_Component_Alignment --
6581 -----------------------------
6583 -- Component Alignment is encoded using two flags, Flag128/129 as
6584 -- follows. Note that both flags False = Align_Default, so that the
6585 -- default initialization of flags to False initializes component
6586 -- alignment to the default value as required.
6588 -- Flag128 Flag129 Value
6589 -- ------- ------- -----
6590 -- False False Calign_Default
6591 -- False True Calign_Component_Size
6592 -- True False Calign_Component_Size_4
6593 -- True True Calign_Storage_Unit
6595 procedure Set_Component_Alignment (Id : E; V : C) is
6597 pragma Assert ((Is_Array_Type (Id) or else Is_Record_Type (Id))
6598 and then Id = Base_Type (Id));
6601 when Calign_Default =>
6602 Set_Flag128 (Id, False);
6603 Set_Flag129 (Id, False);
6605 when Calign_Component_Size =>
6606 Set_Flag128 (Id, False);
6607 Set_Flag129 (Id, True);
6609 when Calign_Component_Size_4 =>
6610 Set_Flag128 (Id, True);
6611 Set_Flag129 (Id, False);
6613 when Calign_Storage_Unit =>
6614 Set_Flag128 (Id, True);
6615 Set_Flag129 (Id, True);
6617 end Set_Component_Alignment;
6623 function Size_Clause (Id : E) return N is
6625 return Rep_Clause (Id, Name_Size);
6628 ------------------------
6629 -- Stream_Size_Clause --
6630 ------------------------
6632 function Stream_Size_Clause (Id : E) return N is
6634 return Rep_Clause (Id, Name_Stream_Size);
6635 end Stream_Size_Clause;
6641 function Subtype_Kind (K : Entity_Kind) return Entity_Kind is
6647 Kind := E_Access_Subtype;
6651 Kind := E_Array_Subtype;
6653 when E_Class_Wide_Type |
6654 E_Class_Wide_Subtype =>
6655 Kind := E_Class_Wide_Subtype;
6657 when E_Decimal_Fixed_Point_Type |
6658 E_Decimal_Fixed_Point_Subtype =>
6659 Kind := E_Decimal_Fixed_Point_Subtype;
6661 when E_Ordinary_Fixed_Point_Type |
6662 E_Ordinary_Fixed_Point_Subtype =>
6663 Kind := E_Ordinary_Fixed_Point_Subtype;
6665 when E_Private_Type |
6666 E_Private_Subtype =>
6667 Kind := E_Private_Subtype;
6669 when E_Limited_Private_Type |
6670 E_Limited_Private_Subtype =>
6671 Kind := E_Limited_Private_Subtype;
6673 when E_Record_Type_With_Private |
6674 E_Record_Subtype_With_Private =>
6675 Kind := E_Record_Subtype_With_Private;
6677 when E_Record_Type |
6679 Kind := E_Record_Subtype;
6681 when E_String_Type |
6683 Kind := E_String_Subtype;
6685 when Enumeration_Kind =>
6686 Kind := E_Enumeration_Subtype;
6689 Kind := E_Floating_Point_Subtype;
6691 when Signed_Integer_Kind =>
6692 Kind := E_Signed_Integer_Subtype;
6694 when Modular_Integer_Kind =>
6695 Kind := E_Modular_Integer_Subtype;
6697 when Protected_Kind =>
6698 Kind := E_Protected_Subtype;
6701 Kind := E_Task_Subtype;
6705 raise Program_Error;
6711 ---------------------
6712 -- Type_High_Bound --
6713 ---------------------
6715 function Type_High_Bound (Id : E) return Node_Id is
6716 Rng : constant Node_Id := Scalar_Range (Id);
6718 if Nkind (Rng) = N_Subtype_Indication then
6719 return High_Bound (Range_Expression (Constraint (Rng)));
6721 return High_Bound (Rng);
6723 end Type_High_Bound;
6725 --------------------
6726 -- Type_Low_Bound --
6727 --------------------
6729 function Type_Low_Bound (Id : E) return Node_Id is
6730 Rng : constant Node_Id := Scalar_Range (Id);
6732 if Nkind (Rng) = N_Subtype_Indication then
6733 return Low_Bound (Range_Expression (Constraint (Rng)));
6735 return Low_Bound (Rng);
6739 ---------------------
6740 -- Underlying_Type --
6741 ---------------------
6743 function Underlying_Type (Id : E) return E is
6745 -- For record_with_private the underlying type is always the direct
6746 -- full view. Never try to take the full view of the parent it
6747 -- doesn't make sense.
6749 if Ekind (Id) = E_Record_Type_With_Private then
6750 return Full_View (Id);
6752 elsif Ekind (Id) in Incomplete_Or_Private_Kind then
6754 -- If we have an incomplete or private type with a full view,
6755 -- then we return the Underlying_Type of this full view
6757 if Present (Full_View (Id)) then
6758 if Id = Full_View (Id) then
6760 -- Previous error in declaration
6765 return Underlying_Type (Full_View (Id));
6768 -- If we have an incomplete entity that comes from the limited
6769 -- view then we return the Underlying_Type of its non-limited
6772 elsif From_With_Type (Id)
6773 and then Present (Non_Limited_View (Id))
6775 return Underlying_Type (Non_Limited_View (Id));
6777 -- Otherwise check for the case where we have a derived type or
6778 -- subtype, and if so get the Underlying_Type of the parent type.
6780 elsif Etype (Id) /= Id then
6781 return Underlying_Type (Etype (Id));
6783 -- Otherwise we have an incomplete or private type that has
6784 -- no full view, which means that we have not encountered the
6785 -- completion, so return Empty to indicate the underlying type
6786 -- is not yet known.
6792 -- For non-incomplete, non-private types, return the type itself
6793 -- Also for entities that are not types at all return the entity
6799 end Underlying_Type;
6801 ------------------------
6802 -- Write_Entity_Flags --
6803 ------------------------
6805 procedure Write_Entity_Flags (Id : Entity_Id; Prefix : String) is
6807 procedure W (Flag_Name : String; Flag : Boolean);
6808 -- Write out given flag if it is set
6814 procedure W (Flag_Name : String; Flag : Boolean) is
6818 Write_Str (Flag_Name);
6819 Write_Str (" = True");
6824 -- Start of processing for Write_Entity_Flags
6827 if (Is_Array_Type (Id) or else Is_Record_Type (Id))
6828 and then Id = Base_Type (Id)
6831 Write_Str ("Component_Alignment = ");
6833 case Component_Alignment (Id) is
6834 when Calign_Default =>
6835 Write_Str ("Calign_Default");
6837 when Calign_Component_Size =>
6838 Write_Str ("Calign_Component_Size");
6840 when Calign_Component_Size_4 =>
6841 Write_Str ("Calign_Component_Size_4");
6843 when Calign_Storage_Unit =>
6844 Write_Str ("Calign_Storage_Unit");
6850 W ("Address_Taken", Flag104 (Id));
6851 W ("Body_Needed_For_SAL", Flag40 (Id));
6852 W ("C_Pass_By_Copy", Flag125 (Id));
6853 W ("Can_Never_Be_Null", Flag38 (Id));
6854 W ("Checks_May_Be_Suppressed", Flag31 (Id));
6855 W ("Debug_Info_Off", Flag166 (Id));
6856 W ("Default_Expressions_Processed", Flag108 (Id));
6857 W ("Delay_Cleanups", Flag114 (Id));
6858 W ("Delay_Subprogram_Descriptors", Flag50 (Id));
6859 W ("Depends_On_Private", Flag14 (Id));
6860 W ("Discard_Names", Flag88 (Id));
6861 W ("Elaboration_Entity_Required", Flag174 (Id));
6862 W ("Elaborate_Body_Desirable", Flag210 (Id));
6863 W ("Entry_Accepted", Flag152 (Id));
6864 W ("Can_Use_Internal_Rep", Flag229 (Id));
6865 W ("Finalize_Storage_Only", Flag158 (Id));
6866 W ("From_With_Type", Flag159 (Id));
6867 W ("Has_Aliased_Components", Flag135 (Id));
6868 W ("Has_Alignment_Clause", Flag46 (Id));
6869 W ("Has_All_Calls_Remote", Flag79 (Id));
6870 W ("Has_Anon_Block_Suffix", Flag201 (Id));
6871 W ("Has_Atomic_Components", Flag86 (Id));
6872 W ("Has_Biased_Representation", Flag139 (Id));
6873 W ("Has_Completion", Flag26 (Id));
6874 W ("Has_Completion_In_Body", Flag71 (Id));
6875 W ("Has_Complex_Representation", Flag140 (Id));
6876 W ("Has_Component_Size_Clause", Flag68 (Id));
6877 W ("Has_Contiguous_Rep", Flag181 (Id));
6878 W ("Has_Controlled_Component", Flag43 (Id));
6879 W ("Has_Controlling_Result", Flag98 (Id));
6880 W ("Has_Convention_Pragma", Flag119 (Id));
6881 W ("Has_Delayed_Freeze", Flag18 (Id));
6882 W ("Has_Discriminants", Flag5 (Id));
6883 W ("Has_Enumeration_Rep_Clause", Flag66 (Id));
6884 W ("Has_Exit", Flag47 (Id));
6885 W ("Has_External_Tag_Rep_Clause", Flag110 (Id));
6886 W ("Has_Forward_Instantiation", Flag175 (Id));
6887 W ("Has_Fully_Qualified_Name", Flag173 (Id));
6888 W ("Has_Gigi_Rep_Item", Flag82 (Id));
6889 W ("Has_Homonym", Flag56 (Id));
6890 W ("Has_Initial_Value", Flag219 (Id));
6891 W ("Has_Machine_Radix_Clause", Flag83 (Id));
6892 W ("Has_Master_Entity", Flag21 (Id));
6893 W ("Has_Missing_Return", Flag142 (Id));
6894 W ("Has_Nested_Block_With_Handler", Flag101 (Id));
6895 W ("Has_Non_Standard_Rep", Flag75 (Id));
6896 W ("Has_Object_Size_Clause", Flag172 (Id));
6897 W ("Has_Per_Object_Constraint", Flag154 (Id));
6898 W ("Has_Persistent_BSS", Flag188 (Id));
6899 W ("Has_Postconditions", Flag240 (Id));
6900 W ("Has_Pragma_Controlled", Flag27 (Id));
6901 W ("Has_Pragma_Elaborate_Body", Flag150 (Id));
6902 W ("Has_Pragma_Inline", Flag157 (Id));
6903 W ("Has_Pragma_Inline_Always", Flag230 (Id));
6904 W ("Has_Pragma_Pack", Flag121 (Id));
6905 W ("Has_Pragma_Preelab_Init", Flag221 (Id));
6906 W ("Has_Pragma_Pure", Flag203 (Id));
6907 W ("Has_Pragma_Pure_Function", Flag179 (Id));
6908 W ("Has_Pragma_Thread_Local_Storage", Flag169 (Id));
6909 W ("Has_Pragma_Unmodified", Flag233 (Id));
6910 W ("Has_Pragma_Unreferenced", Flag180 (Id));
6911 W ("Has_Pragma_Unreferenced_Objects", Flag212 (Id));
6912 W ("Has_Primitive_Operations", Flag120 (Id));
6913 W ("Has_Private_Declaration", Flag155 (Id));
6914 W ("Has_Qualified_Name", Flag161 (Id));
6915 W ("Has_RACW", Flag214 (Id));
6916 W ("Has_Record_Rep_Clause", Flag65 (Id));
6917 W ("Has_Recursive_Call", Flag143 (Id));
6918 W ("Has_Size_Clause", Flag29 (Id));
6919 W ("Has_Small_Clause", Flag67 (Id));
6920 W ("Has_Specified_Layout", Flag100 (Id));
6921 W ("Has_Specified_Stream_Input", Flag190 (Id));
6922 W ("Has_Specified_Stream_Output", Flag191 (Id));
6923 W ("Has_Specified_Stream_Read", Flag192 (Id));
6924 W ("Has_Specified_Stream_Write", Flag193 (Id));
6925 W ("Has_Static_Discriminants", Flag211 (Id));
6926 W ("Has_Storage_Size_Clause", Flag23 (Id));
6927 W ("Has_Stream_Size_Clause", Flag184 (Id));
6928 W ("Has_Subprogram_Descriptor", Flag93 (Id));
6929 W ("Has_Task", Flag30 (Id));
6930 W ("Has_Thunks", Flag228 (Id));
6931 W ("Has_Unchecked_Union", Flag123 (Id));
6932 W ("Has_Unknown_Discriminants", Flag72 (Id));
6933 W ("Has_Up_Level_Access", Flag215 (Id));
6934 W ("Has_Volatile_Components", Flag87 (Id));
6935 W ("Has_Xref_Entry", Flag182 (Id));
6936 W ("Implemented_By_Entry", Flag232 (Id));
6937 W ("In_Package_Body", Flag48 (Id));
6938 W ("In_Private_Part", Flag45 (Id));
6939 W ("In_Use", Flag8 (Id));
6940 W ("Is_AST_Entry", Flag132 (Id));
6941 W ("Is_Abstract_Subprogram", Flag19 (Id));
6942 W ("Is_Abstract_Type", Flag146 (Id));
6943 W ("Is_Local_Anonymous_Access", Flag194 (Id));
6944 W ("Is_Access_Constant", Flag69 (Id));
6945 W ("Is_Ada_2005_Only", Flag185 (Id));
6946 W ("Is_Aliased", Flag15 (Id));
6947 W ("Is_Asynchronous", Flag81 (Id));
6948 W ("Is_Atomic", Flag85 (Id));
6949 W ("Is_Bit_Packed_Array", Flag122 (Id));
6950 W ("Is_CPP_Class", Flag74 (Id));
6951 W ("Is_Called", Flag102 (Id));
6952 W ("Is_Character_Type", Flag63 (Id));
6953 W ("Is_Child_Unit", Flag73 (Id));
6954 W ("Is_Class_Wide_Equivalent_Type", Flag35 (Id));
6955 W ("Is_Compilation_Unit", Flag149 (Id));
6956 W ("Is_Completely_Hidden", Flag103 (Id));
6957 W ("Is_Concurrent_Record_Type", Flag20 (Id));
6958 W ("Is_Constr_Subt_For_UN_Aliased", Flag141 (Id));
6959 W ("Is_Constr_Subt_For_U_Nominal", Flag80 (Id));
6960 W ("Is_Constrained", Flag12 (Id));
6961 W ("Is_Constructor", Flag76 (Id));
6962 W ("Is_Controlled", Flag42 (Id));
6963 W ("Is_Controlling_Formal", Flag97 (Id));
6964 W ("Is_Descendent_Of_Address", Flag223 (Id));
6965 W ("Is_Discrim_SO_Function", Flag176 (Id));
6966 W ("Is_Dispatch_Table_Entity", Flag234 (Id));
6967 W ("Is_Dispatching_Operation", Flag6 (Id));
6968 W ("Is_Eliminated", Flag124 (Id));
6969 W ("Is_Entry_Formal", Flag52 (Id));
6970 W ("Is_Exported", Flag99 (Id));
6971 W ("Is_First_Subtype", Flag70 (Id));
6972 W ("Is_For_Access_Subtype", Flag118 (Id));
6973 W ("Is_Formal_Subprogram", Flag111 (Id));
6974 W ("Is_Frozen", Flag4 (Id));
6975 W ("Is_Generic_Actual_Type", Flag94 (Id));
6976 W ("Is_Generic_Instance", Flag130 (Id));
6977 W ("Is_Generic_Type", Flag13 (Id));
6978 W ("Is_Hidden", Flag57 (Id));
6979 W ("Is_Hidden_Open_Scope", Flag171 (Id));
6980 W ("Is_Immediately_Visible", Flag7 (Id));
6981 W ("Is_Imported", Flag24 (Id));
6982 W ("Is_Inlined", Flag11 (Id));
6983 W ("Is_Instantiated", Flag126 (Id));
6984 W ("Is_Interface", Flag186 (Id));
6985 W ("Is_Internal", Flag17 (Id));
6986 W ("Is_Interrupt_Handler", Flag89 (Id));
6987 W ("Is_Intrinsic_Subprogram", Flag64 (Id));
6988 W ("Is_Itype", Flag91 (Id));
6989 W ("Is_Known_Non_Null", Flag37 (Id));
6990 W ("Is_Known_Null", Flag204 (Id));
6991 W ("Is_Known_Valid", Flag170 (Id));
6992 W ("Is_Limited_Composite", Flag106 (Id));
6993 W ("Is_Limited_Interface", Flag197 (Id));
6994 W ("Is_Limited_Record", Flag25 (Id));
6995 W ("Is_Machine_Code_Subprogram", Flag137 (Id));
6996 W ("Is_Non_Static_Subtype", Flag109 (Id));
6997 W ("Is_Null_Init_Proc", Flag178 (Id));
6998 W ("Is_Obsolescent", Flag153 (Id));
6999 W ("Is_Only_Out_Parameter", Flag226 (Id));
7000 W ("Is_Optional_Parameter", Flag134 (Id));
7001 W ("Is_Overriding_Operation", Flag39 (Id));
7002 W ("Is_Package_Body_Entity", Flag160 (Id));
7003 W ("Is_Packed", Flag51 (Id));
7004 W ("Is_Packed_Array_Type", Flag138 (Id));
7005 W ("Is_Potentially_Use_Visible", Flag9 (Id));
7006 W ("Is_Preelaborated", Flag59 (Id));
7007 W ("Is_Primitive", Flag218 (Id));
7008 W ("Is_Primitive_Wrapper", Flag195 (Id));
7009 W ("Is_Private_Composite", Flag107 (Id));
7010 W ("Is_Private_Descendant", Flag53 (Id));
7011 W ("Is_Private_Primitive", Flag245 (Id));
7012 W ("Is_Public", Flag10 (Id));
7013 W ("Is_Pure", Flag44 (Id));
7014 W ("Is_Pure_Unit_Access_Type", Flag189 (Id));
7015 W ("Is_RACW_Stub_Type", Flag244 (Id));
7016 W ("Is_Raised", Flag224 (Id));
7017 W ("Is_Remote_Call_Interface", Flag62 (Id));
7018 W ("Is_Remote_Types", Flag61 (Id));
7019 W ("Is_Renaming_Of_Object", Flag112 (Id));
7020 W ("Is_Return_Object", Flag209 (Id));
7021 W ("Is_Shared_Passive", Flag60 (Id));
7022 W ("Is_Statically_Allocated", Flag28 (Id));
7023 W ("Is_Tag", Flag78 (Id));
7024 W ("Is_Tagged_Type", Flag55 (Id));
7025 W ("Is_Thunk", Flag225 (Id));
7026 W ("Is_Trivial_Subprogram", Flag235 (Id));
7027 W ("Is_True_Constant", Flag163 (Id));
7028 W ("Is_Unchecked_Union", Flag117 (Id));
7029 W ("Is_Underlying_Record_View", Flag246 (Id));
7030 W ("Is_Unsigned_Type", Flag144 (Id));
7031 W ("Is_VMS_Exception", Flag133 (Id));
7032 W ("Is_Valued_Procedure", Flag127 (Id));
7033 W ("Is_Visible_Child_Unit", Flag116 (Id));
7034 W ("Is_Visible_Formal", Flag206 (Id));
7035 W ("Is_Volatile", Flag16 (Id));
7036 W ("Itype_Printed", Flag202 (Id));
7037 W ("Kill_Elaboration_Checks", Flag32 (Id));
7038 W ("Kill_Range_Checks", Flag33 (Id));
7039 W ("Kill_Tag_Checks", Flag34 (Id));
7040 W ("Known_To_Have_Preelab_Init", Flag207 (Id));
7041 W ("Low_Bound_Tested", Flag205 (Id));
7042 W ("Machine_Radix_10", Flag84 (Id));
7043 W ("Materialize_Entity", Flag168 (Id));
7044 W ("Must_Be_On_Byte_Boundary", Flag183 (Id));
7045 W ("Must_Have_Preelab_Init", Flag208 (Id));
7046 W ("Needs_Debug_Info", Flag147 (Id));
7047 W ("Needs_No_Actuals", Flag22 (Id));
7048 W ("Never_Set_In_Source", Flag115 (Id));
7049 W ("No_Pool_Assigned", Flag131 (Id));
7050 W ("No_Return", Flag113 (Id));
7051 W ("No_Strict_Aliasing", Flag136 (Id));
7052 W ("Non_Binary_Modulus", Flag58 (Id));
7053 W ("Nonzero_Is_True", Flag162 (Id));
7054 W ("OK_To_Rename", Flag247 (Id));
7055 W ("OK_To_Reorder_Components", Flag239 (Id));
7056 W ("Optimize_Alignment_Space", Flag241 (Id));
7057 W ("Optimize_Alignment_Time", Flag242 (Id));
7058 W ("Overlays_Constant", Flag243 (Id));
7059 W ("Reachable", Flag49 (Id));
7060 W ("Referenced", Flag156 (Id));
7061 W ("Referenced_As_LHS", Flag36 (Id));
7062 W ("Referenced_As_Out_Parameter", Flag227 (Id));
7063 W ("Renamed_In_Spec", Flag231 (Id));
7064 W ("Requires_Overriding", Flag213 (Id));
7065 W ("Return_Present", Flag54 (Id));
7066 W ("Returns_By_Ref", Flag90 (Id));
7067 W ("Reverse_Bit_Order", Flag164 (Id));
7068 W ("Sec_Stack_Needed_For_Return", Flag167 (Id));
7069 W ("Size_Depends_On_Discriminant", Flag177 (Id));
7070 W ("Size_Known_At_Compile_Time", Flag92 (Id));
7071 W ("Static_Elaboration_Desired", Flag77 (Id));
7072 W ("Strict_Alignment", Flag145 (Id));
7073 W ("Suppress_Elaboration_Warnings", Flag148 (Id));
7074 W ("Suppress_Init_Proc", Flag105 (Id));
7075 W ("Suppress_Style_Checks", Flag165 (Id));
7076 W ("Suppress_Value_Tracking_On_Call", Flag217 (Id));
7077 W ("Treat_As_Volatile", Flag41 (Id));
7078 W ("Universal_Aliasing", Flag216 (Id));
7079 W ("Used_As_Generic_Actual", Flag222 (Id));
7080 W ("Uses_Sec_Stack", Flag95 (Id));
7081 W ("Vax_Float", Flag151 (Id));
7082 W ("Warnings_Off", Flag96 (Id));
7083 W ("Warnings_Off_Used", Flag236 (Id));
7084 W ("Warnings_Off_Used_Unmodified", Flag237 (Id));
7085 W ("Warnings_Off_Used_Unreferenced", Flag238 (Id));
7086 W ("Was_Hidden", Flag196 (Id));
7087 end Write_Entity_Flags;
7089 -----------------------
7090 -- Write_Entity_Info --
7091 -----------------------
7093 procedure Write_Entity_Info (Id : Entity_Id; Prefix : String) is
7095 procedure Write_Attribute (Which : String; Nam : E);
7096 -- Write attribute value with given string name
7098 procedure Write_Kind (Id : Entity_Id);
7099 -- Write Ekind field of entity
7101 ---------------------
7102 -- Write_Attribute --
7103 ---------------------
7105 procedure Write_Attribute (Which : String; Nam : E) is
7109 Write_Int (Int (Nam));
7111 Write_Name (Chars (Nam));
7113 end Write_Attribute;
7119 procedure Write_Kind (Id : Entity_Id) is
7120 K : constant String := Entity_Kind'Image (Ekind (Id));
7124 Write_Str (" Kind ");
7126 if Is_Type (Id) and then Is_Tagged_Type (Id) then
7127 Write_Str ("TAGGED ");
7130 Write_Str (K (3 .. K'Length));
7133 if Is_Type (Id) and then Depends_On_Private (Id) then
7134 Write_Str ("Depends_On_Private ");
7138 -- Start of processing for Write_Entity_Info
7142 Write_Attribute ("Name ", Id);
7143 Write_Int (Int (Id));
7147 Write_Attribute (" Type ", Etype (Id));
7149 Write_Attribute (" Scope ", Scope (Id));
7154 when Discrete_Kind =>
7155 Write_Str ("Bounds: Id = ");
7157 if Present (Scalar_Range (Id)) then
7158 Write_Int (Int (Type_Low_Bound (Id)));
7159 Write_Str (" .. Id = ");
7160 Write_Int (Int (Type_High_Bound (Id)));
7162 Write_Str ("Empty");
7173 (" Component Type ", Component_Type (Id));
7176 Write_Str (" Indices ");
7178 Index := First_Index (Id);
7179 while Present (Index) loop
7180 Write_Attribute (" ", Etype (Index));
7181 Index := Next_Index (Index);
7189 (" Directly Designated Type ",
7190 Directly_Designated_Type (Id));
7193 when Overloadable_Kind =>
7194 if Present (Homonym (Id)) then
7195 Write_Str (" Homonym ");
7196 Write_Name (Chars (Homonym (Id)));
7198 Write_Int (Int (Homonym (Id)));
7205 if Ekind (Scope (Id)) in Record_Kind then
7207 " Original_Record_Component ",
7208 Original_Record_Component (Id));
7209 Write_Int (Int (Original_Record_Component (Id)));
7213 when others => null;
7215 end Write_Entity_Info;
7217 -----------------------
7218 -- Write_Field6_Name --
7219 -----------------------
7221 procedure Write_Field6_Name (Id : Entity_Id) is
7222 pragma Warnings (Off, Id);
7224 Write_Str ("First_Rep_Item");
7225 end Write_Field6_Name;
7227 -----------------------
7228 -- Write_Field7_Name --
7229 -----------------------
7231 procedure Write_Field7_Name (Id : Entity_Id) is
7232 pragma Warnings (Off, Id);
7234 Write_Str ("Freeze_Node");
7235 end Write_Field7_Name;
7237 -----------------------
7238 -- Write_Field8_Name --
7239 -----------------------
7241 procedure Write_Field8_Name (Id : Entity_Id) is
7246 Write_Str ("Normalized_First_Bit");
7250 E_Subprogram_Body =>
7251 Write_Str ("Mechanism");
7254 Write_Str ("Associated_Node_For_Itype");
7257 Write_Str ("First_Exit_Statement");
7260 Write_Str ("Dependent_Instances");
7263 Write_Str ("Postcondition_Proc");
7265 when E_Return_Statement =>
7266 Write_Str ("Return_Applies_To");
7269 Write_Str ("Hiding_Loop_Variable");
7272 Write_Str ("Field8??");
7274 end Write_Field8_Name;
7276 -----------------------
7277 -- Write_Field9_Name --
7278 -----------------------
7280 procedure Write_Field9_Name (Id : Entity_Id) is
7284 Write_Str ("Class_Wide_Type");
7287 E_Generic_Function |
7289 E_Generic_Procedure |
7292 Write_Str ("Renaming_Map");
7295 Write_Str ("Current_Value");
7298 Write_Str ("Field9??");
7300 end Write_Field9_Name;
7302 ------------------------
7303 -- Write_Field10_Name --
7304 ------------------------
7306 procedure Write_Field10_Name (Id : Entity_Id) is
7310 Write_Str ("Referenced_Object");
7312 when E_In_Parameter |
7314 Write_Str ("Discriminal_Link");
7320 Write_Str ("Handler_Records");
7324 Write_Str ("Normalized_Position_Max");
7327 Write_Str ("Field10??");
7329 end Write_Field10_Name;
7331 ------------------------
7332 -- Write_Field11_Name --
7333 ------------------------
7335 procedure Write_Field11_Name (Id : Entity_Id) is
7339 Write_Str ("Entry_Component");
7343 Write_Str ("Component_Bit_Offset");
7346 Write_Str ("Full_View");
7348 when E_Enumeration_Literal =>
7349 Write_Str ("Enumeration_Pos");
7352 Write_Str ("Block_Node");
7358 Write_Str ("Protected_Body_Subprogram");
7360 when E_Generic_Package =>
7361 Write_Str ("Generic_Homonym");
7364 Write_Str ("Full_View");
7367 Write_Str ("Field11??");
7369 end Write_Field11_Name;
7371 ------------------------
7372 -- Write_Field12_Name --
7373 ------------------------
7375 procedure Write_Field12_Name (Id : Entity_Id) is
7379 Write_Str ("Barrier_Function");
7381 when E_Enumeration_Literal =>
7382 Write_Str ("Enumeration_Rep");
7390 E_In_Out_Parameter |
7394 Write_Str ("Esize");
7398 Write_Str ("Next_Inlined_Subprogram");
7401 Write_Str ("Associated_Formal_Package");
7404 Write_Str ("Field12??");
7406 end Write_Field12_Name;
7408 ------------------------
7409 -- Write_Field13_Name --
7410 ------------------------
7412 procedure Write_Field13_Name (Id : Entity_Id) is
7416 Write_Str ("RM_Size");
7420 Write_Str ("Component_Clause");
7423 if not Comes_From_Source (Id)
7425 Chars (Id) = Name_Op_Ne
7427 Write_Str ("Corresponding_Equality");
7429 elsif Comes_From_Source (Id) then
7430 Write_Str ("Elaboration_Entity");
7433 Write_Str ("Field13??");
7438 Write_Str ("Extra_Accessibility");
7442 Generic_Unit_Kind =>
7443 Write_Str ("Elaboration_Entity");
7446 Write_Str ("Field13??");
7448 end Write_Field13_Name;
7450 -----------------------
7451 -- Write_Field14_Name --
7452 -----------------------
7454 procedure Write_Field14_Name (Id : Entity_Id) is
7463 Write_Str ("Alignment");
7467 Write_Str ("Normalized_Position");
7471 Write_Str ("First_Optional_Parameter");
7474 E_Generic_Package =>
7475 Write_Str ("Shadow_Entities");
7478 Write_Str ("Field14??");
7480 end Write_Field14_Name;
7482 ------------------------
7483 -- Write_Field15_Name --
7484 ------------------------
7486 procedure Write_Field15_Name (Id : Entity_Id) is
7491 Write_Str ("Storage_Size_Variable");
7493 when Class_Wide_Kind |
7498 Write_Str ("Primitive_Operations");
7501 Write_Str ("DT_Entry_Count");
7503 when Decimal_Fixed_Point_Kind =>
7504 Write_Str ("Scale_Value");
7506 when E_Discriminant =>
7507 Write_Str ("Discriminant_Number");
7510 Write_Str ("Extra_Formal");
7514 Write_Str ("DT_Position");
7517 Write_Str ("Entry_Parameters_Type");
7519 when Enumeration_Kind =>
7520 Write_Str ("Lit_Indexes");
7524 Write_Str ("Related_Instance");
7526 when E_Protected_Type =>
7527 Write_Str ("Entry_Bodies_Array");
7529 when E_String_Literal_Subtype =>
7530 Write_Str ("String_Literal_Low_Bound");
7533 Write_Str ("Field15??");
7535 end Write_Field15_Name;
7537 ------------------------
7538 -- Write_Field16_Name --
7539 ------------------------
7541 procedure Write_Field16_Name (Id : Entity_Id) is
7545 Write_Str ("Entry_Formal");
7549 Write_Str ("DTC_Entity");
7554 Write_Str ("First_Private_Entity");
7556 when E_Record_Type |
7557 E_Record_Type_With_Private =>
7558 Write_Str ("Access_Disp_Table");
7560 when E_String_Literal_Subtype =>
7561 Write_Str ("String_Literal_Length");
7563 when Enumeration_Kind =>
7564 Write_Str ("Lit_Strings");
7568 Write_Str ("Unset_Reference");
7570 when E_Record_Subtype |
7571 E_Class_Wide_Subtype =>
7572 Write_Str ("Cloned_Subtype");
7575 Write_Str ("Field16??");
7577 end Write_Field16_Name;
7579 ------------------------
7580 -- Write_Field17_Name --
7581 ------------------------
7583 procedure Write_Field17_Name (Id : Entity_Id) is
7587 Write_Str ("Digits_Value");
7590 Write_Str ("Prival");
7592 when E_Discriminant =>
7593 Write_Str ("Discriminal");
7602 E_Generic_Function |
7604 E_Generic_Procedure |
7612 E_Return_Statement |
7614 E_Subprogram_Type =>
7615 Write_Str ("First_Entity");
7618 Write_Str ("First_Index");
7620 when Enumeration_Kind =>
7621 Write_Str ("First_Literal");
7624 Write_Str ("Master_Id");
7626 when Modular_Integer_Kind =>
7627 Write_Str ("Modulus");
7631 E_Generic_In_Out_Parameter |
7633 Write_Str ("Actual_Subtype");
7635 when E_Incomplete_Type =>
7636 Write_Str ("Non_Limited_View");
7638 when E_Incomplete_Subtype =>
7639 if From_With_Type (Id) then
7640 Write_Str ("Non_Limited_View");
7644 Write_Str ("Field17??");
7646 end Write_Field17_Name;
7648 ------------------------
7649 -- Write_Field18_Name --
7650 ------------------------
7652 procedure Write_Field18_Name (Id : Entity_Id) is
7655 when E_Enumeration_Literal |
7659 Write_Str ("Alias");
7661 when E_Record_Type =>
7662 Write_Str ("Corresponding_Concurrent_Type");
7664 when E_Subprogram_Body =>
7665 Write_Str ("Corresponding_Protected_Entry");
7667 when E_Entry_Index_Parameter =>
7668 Write_Str ("Entry_Index_Constant");
7670 when E_Class_Wide_Subtype |
7671 E_Access_Protected_Subprogram_Type |
7672 E_Anonymous_Access_Protected_Subprogram_Type |
7673 E_Access_Subprogram_Type |
7675 Write_Str ("Equivalent_Type");
7677 when Fixed_Point_Kind =>
7678 Write_Str ("Delta_Value");
7681 Write_Str ("Renamed_Object");
7685 E_Generic_Function |
7686 E_Generic_Procedure |
7687 E_Generic_Package =>
7688 Write_Str ("Renamed_Entity");
7690 when Incomplete_Or_Private_Kind =>
7691 Write_Str ("Private_Dependents");
7693 when Concurrent_Kind =>
7694 Write_Str ("Corresponding_Record_Type");
7699 Write_Str ("Enclosing_Scope");
7702 Write_Str ("Field18??");
7704 end Write_Field18_Name;
7706 -----------------------
7707 -- Write_Field19_Name --
7708 -----------------------
7710 procedure Write_Field19_Name (Id : Entity_Id) is
7715 Write_Str ("Related_Array_Object");
7721 E_Return_Statement |
7723 Write_Str ("Finalization_Chain_Entity");
7725 when E_Constant | E_Variable =>
7726 Write_Str ("Size_Check_Code");
7728 when E_Discriminant =>
7729 Write_Str ("Corresponding_Discriminant");
7732 E_Generic_Package =>
7733 Write_Str ("Body_Entity");
7735 when E_Package_Body |
7737 Write_Str ("Spec_Entity");
7739 when Private_Kind =>
7740 Write_Str ("Underlying_Full_View");
7742 when E_Record_Type =>
7743 Write_Str ("Parent_Subtype");
7746 Write_Str ("Field19??");
7748 end Write_Field19_Name;
7750 -----------------------
7751 -- Write_Field20_Name --
7752 -----------------------
7754 procedure Write_Field20_Name (Id : Entity_Id) is
7758 Write_Str ("Component_Type");
7760 when E_In_Parameter |
7761 E_Generic_In_Parameter =>
7762 Write_Str ("Default_Value");
7765 Write_Str ("Directly_Designated_Type");
7768 Write_Str ("Discriminant_Checking_Func");
7772 Write_Str ("Prival_Link");
7774 when E_Discriminant =>
7775 Write_Str ("Discriminant_Default_Value");
7784 E_Generic_Function |
7786 E_Generic_Procedure |
7794 E_Return_Statement |
7796 E_Subprogram_Type =>
7798 Write_Str ("Last_Entity");
7801 Write_Str ("Scalar_Range");
7804 Write_Str ("Register_Exception_Call");
7807 Write_Str ("Field20??");
7809 end Write_Field20_Name;
7811 -----------------------
7812 -- Write_Field21_Name --
7813 -----------------------
7815 procedure Write_Field21_Name (Id : Entity_Id) is
7821 E_Generic_Function |
7823 E_Generic_Procedure |
7825 Write_Str ("Interface_Name");
7827 when Concurrent_Kind |
7828 Incomplete_Or_Private_Kind |
7832 Write_Str ("Discriminant_Constraint");
7835 Write_Str ("Accept_Address");
7837 when Fixed_Point_Kind =>
7838 Write_Str ("Small_Value");
7840 when E_In_Parameter =>
7841 Write_Str ("Default_Expr_Function");
7844 Modular_Integer_Kind =>
7845 Write_Str ("Original_Array_Type");
7848 Write_Str ("Field21??");
7850 end Write_Field21_Name;
7852 -----------------------
7853 -- Write_Field22_Name --
7854 -----------------------
7856 procedure Write_Field22_Name (Id : Entity_Id) is
7860 Write_Str ("Associated_Storage_Pool");
7863 Write_Str ("Component_Size");
7867 Write_Str ("Original_Record_Component");
7869 when E_Enumeration_Literal =>
7870 Write_Str ("Enumeration_Rep_Expr");
7873 Write_Str ("Exception_Code");
7876 Write_Str ("Protected_Formal");
7878 when E_Record_Type =>
7879 Write_Str ("Corresponding_Remote_Type");
7889 E_Generic_Function |
7890 E_Generic_Procedure |
7893 E_Return_Statement |
7896 Write_Str ("Scope_Depth_Value");
7898 when E_Record_Type_With_Private |
7899 E_Record_Subtype_With_Private |
7902 E_Limited_Private_Type |
7903 E_Limited_Private_Subtype =>
7904 Write_Str ("Private_View");
7907 Write_Str ("Shared_Var_Procs_Instance");
7910 Write_Str ("Field22??");
7912 end Write_Field22_Name;
7914 ------------------------
7915 -- Write_Field23_Name --
7916 ------------------------
7918 procedure Write_Field23_Name (Id : Entity_Id) is
7922 Write_Str ("Associated_Final_Chain");
7925 Write_Str ("Packed_Array_Type");
7928 Write_Str ("Entry_Cancel_Parameter");
7930 when E_Discriminant =>
7931 Write_Str ("CR_Discriminant");
7933 when E_Enumeration_Type =>
7934 Write_Str ("Enum_Pos_To_Rep");
7938 Write_Str ("Extra_Constrained");
7940 when E_Generic_Function |
7942 E_Generic_Procedure =>
7943 Write_Str ("Inner_Instances");
7945 when Concurrent_Kind |
7946 Incomplete_Or_Private_Kind |
7950 Write_Str ("Stored_Constraint");
7954 if Present (Scope (Id))
7955 and then Is_Protected_Type (Scope (Id))
7957 Write_Str ("Protection_Object");
7959 Write_Str ("Generic_Renamings");
7963 if Is_Generic_Instance (Id) then
7964 Write_Str ("Generic_Renamings");
7966 Write_Str ("Limited_View");
7970 Write_Str ("Protection_Object");
7973 Write_Str ("Field23??");
7975 end Write_Field23_Name;
7977 ------------------------
7978 -- Write_Field24_Name --
7979 ------------------------
7981 procedure Write_Field24_Name (Id : Entity_Id) is
7984 when Subprogram_Kind =>
7985 Write_Str ("Spec_PPC_List");
7987 when E_Variable | E_Constant | Type_Kind =>
7988 Write_Str ("Related_Expression");
7991 Write_Str ("Field24???");
7993 end Write_Field24_Name;
7995 ------------------------
7996 -- Write_Field25_Name --
7997 ------------------------
7999 procedure Write_Field25_Name (Id : Entity_Id) is
8003 Write_Str ("DT_Offset_To_Top_Func");
8007 Write_Str ("Interface_Alias");
8009 when E_Record_Type |
8011 E_Record_Type_With_Private |
8012 E_Record_Subtype_With_Private =>
8013 Write_Str ("Interfaces");
8016 Write_Str ("Task_Body_Procedure");
8019 Write_Str ("Debug_Renaming_Link");
8022 Write_Str ("Field25??");
8024 end Write_Field25_Name;
8026 ------------------------
8027 -- Write_Field26_Name --
8028 ------------------------
8030 procedure Write_Field26_Name (Id : Entity_Id) is
8033 when E_Generic_Package |
8035 Write_Str ("Package_Instantiation");
8040 if Is_Dispatching_Operation (Id) then
8041 Write_Str ("Overridden_Operation");
8043 Write_Str ("Static_Initialization");
8046 when E_Record_Type |
8047 E_Record_Type_With_Private =>
8048 Write_Str ("Dispatch_Table_Wrappers");
8050 when E_In_Out_Parameter |
8053 Write_Str ("Last_Assignment");
8056 Write_Str ("Relative_Deadline_Variable");
8059 Write_Str ("Field26??");
8061 end Write_Field26_Name;
8063 ------------------------
8064 -- Write_Field27_Name --
8065 ------------------------
8067 procedure Write_Field27_Name (Id : Entity_Id) is
8073 Write_Str ("Related_Type");
8076 Write_Str ("Wrapped_Entity");
8078 when E_Package | Type_Kind =>
8079 Write_Str ("Current_Use_Clause");
8082 Write_Str ("Field27??");
8084 end Write_Field27_Name;
8086 ------------------------
8087 -- Write_Field28_Name --
8088 ------------------------
8090 procedure Write_Field28_Name (Id : Entity_Id) is
8093 when E_Procedure | E_Function | E_Entry =>
8094 Write_Str ("Extra_Formals");
8096 when E_Record_Type =>
8097 Write_Str ("Underlying_Record_View");
8100 Write_Str ("Field28??");
8102 end Write_Field28_Name;
8104 -------------------------
8105 -- Iterator Procedures --
8106 -------------------------
8108 procedure Proc_Next_Component (N : in out Node_Id) is
8110 N := Next_Component (N);
8111 end Proc_Next_Component;
8113 procedure Proc_Next_Component_Or_Discriminant (N : in out Node_Id) is
8115 N := Next_Entity (N);
8116 while Present (N) loop
8117 exit when Ekind_In (N, E_Component, E_Discriminant);
8118 N := Next_Entity (N);
8120 end Proc_Next_Component_Or_Discriminant;
8122 procedure Proc_Next_Discriminant (N : in out Node_Id) is
8124 N := Next_Discriminant (N);
8125 end Proc_Next_Discriminant;
8127 procedure Proc_Next_Formal (N : in out Node_Id) is
8129 N := Next_Formal (N);
8130 end Proc_Next_Formal;
8132 procedure Proc_Next_Formal_With_Extras (N : in out Node_Id) is
8134 N := Next_Formal_With_Extras (N);
8135 end Proc_Next_Formal_With_Extras;
8137 procedure Proc_Next_Index (N : in out Node_Id) is
8139 N := Next_Index (N);
8140 end Proc_Next_Index;
8142 procedure Proc_Next_Inlined_Subprogram (N : in out Node_Id) is
8144 N := Next_Inlined_Subprogram (N);
8145 end Proc_Next_Inlined_Subprogram;
8147 procedure Proc_Next_Literal (N : in out Node_Id) is
8149 N := Next_Literal (N);
8150 end Proc_Next_Literal;
8152 procedure Proc_Next_Stored_Discriminant (N : in out Node_Id) is
8154 N := Next_Stored_Discriminant (N);
8155 end Proc_Next_Stored_Discriminant;