1 ------------------------------------------------------------------------------
3 -- GNAT COMPILER COMPONENTS --
9 -- Copyright (C) 1992-2013, 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 Namet
; use Namet
;
37 with Nlists
; use Nlists
;
38 with Output
; use Output
;
39 with Sinfo
; use Sinfo
;
40 with Stand
; use Stand
;
44 use Atree
.Unchecked_Access
;
45 -- This is one of the packages that is allowed direct untyped access to
46 -- the fields in a node, since it provides the next level abstraction
47 -- which incorporates appropriate checks.
49 ----------------------------------------------
50 -- Usage of Fields in Defining Entity Nodes --
51 ----------------------------------------------
53 -- Four of these fields are defined in Sinfo, since they in are the base
54 -- part of the node. The access routines for these four fields and the
55 -- corresponding set procedures are defined in Sinfo. These fields are
56 -- present in all entities. Note that Homonym is also in the base part of
57 -- the node, but has access routines that are more properly part of Einfo,
58 -- which is why they are defined here.
65 -- Remaining fields are present only in extended nodes (i.e. entities)
67 -- The following fields are present in all entities
70 -- First_Rep_Item Node6
73 -- The usage of other fields (and the entity kinds to which it applies)
74 -- depends on the particular field (see Einfo spec for details).
76 -- Associated_Node_For_Itype Node8
77 -- Dependent_Instances Elist8
78 -- Hiding_Loop_Variable Node8
79 -- Integrity_Level Uint8
80 -- Mechanism Uint8 (but returns Mechanism_Type)
81 -- Normalized_First_Bit Uint8
82 -- Postcondition_Proc Node8
83 -- Return_Applies_To Node8
84 -- First_Exit_Statement Node8
86 -- Class_Wide_Type Node9
87 -- Current_Value Node9
88 -- Refined_State Node9
91 -- Direct_Primitive_Operations Elist10
92 -- Discriminal_Link Node10
93 -- Float_Rep Uint10 (but returns Float_Rep_Kind)
94 -- Handler_Records List10
95 -- Normalized_Position_Max Uint10
97 -- Component_Bit_Offset Uint11
99 -- Entry_Component Node11
100 -- Enumeration_Pos Uint11
101 -- Generic_Homonym Node11
102 -- Protected_Body_Subprogram Node11
105 -- Barrier_Function Node12
106 -- Enumeration_Rep Uint12
108 -- Next_Inlined_Subprogram Node12
110 -- Component_Clause Node13
111 -- Elaboration_Entity Node13
112 -- Extra_Accessibility Node13
116 -- First_Optional_Parameter Node14
117 -- Normalized_Position Uint14
118 -- Shadow_Entities List14
120 -- Discriminant_Number Uint15
121 -- DT_Position Uint15
122 -- DT_Entry_Count Uint15
123 -- Entry_Bodies_Array Node15
124 -- Entry_Parameters_Type Node15
125 -- Extra_Formal Node15
126 -- Lit_Indexes Node15
127 -- Related_Instance Node15
128 -- Status_Flag_Or_Transient_Decl Node15
129 -- Scale_Value Uint15
130 -- Storage_Size_Variable Node15
131 -- String_Literal_Low_Bound Node15
133 -- Access_Disp_Table Elist16
134 -- Cloned_Subtype Node16
136 -- Entry_Formal Node16
137 -- First_Private_Entity Node16
138 -- Lit_Strings Node16
139 -- String_Literal_Length Uint16
140 -- Unset_Reference Node16
142 -- Actual_Subtype Node17
143 -- Digits_Value Uint17
144 -- Discriminal Node17
145 -- First_Entity Node17
146 -- First_Index Node17
147 -- First_Literal Node17
150 -- Non_Limited_View Node17
154 -- Corresponding_Concurrent_Type Node18
155 -- Corresponding_Protected_Entry Node18
156 -- Corresponding_Record_Type Node18
157 -- Delta_Value Ureal18
158 -- Enclosing_Scope Node18
159 -- Equivalent_Type Node18
160 -- Private_Dependents Elist18
161 -- Renamed_Entity Node18
162 -- Renamed_Object Node18
164 -- Body_Entity Node19
165 -- Corresponding_Discriminant Node19
166 -- Default_Aspect_Component_Value Node19
167 -- Default_Aspect_Value Node19
168 -- Extra_Accessibility_Of_Result Node19
169 -- Parent_Subtype Node19
170 -- Size_Check_Code Node19
171 -- Spec_Entity Node19
172 -- Underlying_Full_View Node19
174 -- Component_Type Node20
175 -- Default_Value Node20
176 -- Directly_Designated_Type Node20
177 -- Discriminant_Checking_Func Node20
178 -- Discriminant_Default_Value Node20
179 -- Last_Entity Node20
180 -- Prival_Link Node20
181 -- Register_Exception_Call Node20
182 -- Scalar_Range Node20
184 -- Accept_Address Elist21
185 -- Default_Expr_Function Node21
186 -- Discriminant_Constraint Elist21
187 -- Interface_Name Node21
188 -- Original_Array_Type Node21
189 -- Small_Value Ureal21
191 -- Associated_Storage_Pool Node22
192 -- Component_Size Uint22
193 -- Corresponding_Remote_Type Node22
194 -- Enumeration_Rep_Expr Node22
195 -- Exception_Code Uint22
196 -- Original_Record_Component Node22
197 -- Private_View Node22
198 -- Protected_Formal Node22
199 -- Scope_Depth_Value Uint22
200 -- Shared_Var_Procs_Instance Node22
202 -- CR_Discriminant Node23
203 -- Entry_Cancel_Parameter Node23
204 -- Enum_Pos_To_Rep Node23
205 -- Extra_Constrained Node23
206 -- Finalization_Master Node23
207 -- Generic_Renamings Elist23
208 -- Inner_Instances Elist23
209 -- Limited_View Node23
210 -- Packed_Array_Type Node23
211 -- Protection_Object Node23
212 -- Stored_Constraint Elist23
215 -- Related_Expression Node24
218 -- Interface_Alias Node25
219 -- Interfaces Elist25
220 -- Debug_Renaming_Link Node25
221 -- DT_Offset_To_Top_Func Node25
222 -- PPC_Wrapper Node25
223 -- Related_Array_Object Node25
224 -- Static_Predicate List25
225 -- Task_Body_Procedure Node25
227 -- Dispatch_Table_Wrappers Elist26
228 -- Last_Assignment Node26
229 -- Original_Access_Type Node26
230 -- Overridden_Operation Node26
231 -- Package_Instantiation Node26
232 -- Relative_Deadline_Variable Node26
234 -- Current_Use_Clause Node27
235 -- Related_Type Node27
236 -- Wrapped_Entity Node27
238 -- Extra_Formals Node28
239 -- Initialization_Statements Node28
240 -- Underlying_Record_View Node28
242 -- Subprograms_For_Type Node29
244 -- Corresponding_Equality Node30
245 -- Static_Initialization Node30
247 -- Thunk_Entity Node31
257 ---------------------------------------------
258 -- Usage of Flags in Defining Entity Nodes --
259 ---------------------------------------------
261 -- All flags are unique, there is no overlaying, so each flag is physically
262 -- present in every entity. However, for many of the flags, it only makes
263 -- sense for them to be set true for certain subsets of entity kinds. See
264 -- the spec of Einfo for further details.
266 -- Note: Flag1-Flag3 are not used, for historical reasons
269 -- Has_Discriminants Flag5
270 -- Is_Dispatching_Operation Flag6
271 -- Is_Immediately_Visible Flag7
273 -- Is_Potentially_Use_Visible Flag9
277 -- Is_Constrained Flag12
278 -- Is_Generic_Type Flag13
279 -- Depends_On_Private Flag14
281 -- Is_Volatile Flag16
282 -- Is_Internal Flag17
283 -- Has_Delayed_Freeze Flag18
284 -- Is_Abstract_Subprogram Flag19
285 -- Is_Concurrent_Record_Type Flag20
287 -- Has_Master_Entity Flag21
288 -- Needs_No_Actuals Flag22
289 -- Has_Storage_Size_Clause Flag23
290 -- Is_Imported Flag24
291 -- Is_Limited_Record Flag25
292 -- Has_Completion Flag26
293 -- Has_Pragma_Controlled Flag27
294 -- Is_Statically_Allocated Flag28
295 -- Has_Size_Clause Flag29
298 -- Checks_May_Be_Suppressed Flag31
299 -- Kill_Elaboration_Checks Flag32
300 -- Kill_Range_Checks Flag33
301 -- Has_Independent_Components Flag34
302 -- Is_Class_Wide_Equivalent_Type Flag35
303 -- Referenced_As_LHS Flag36
304 -- Is_Known_Non_Null Flag37
305 -- Can_Never_Be_Null Flag38
306 -- Has_Default_Aspect Flag39
307 -- Body_Needed_For_SAL Flag40
309 -- Treat_As_Volatile Flag41
310 -- Is_Controlled Flag42
311 -- Has_Controlled_Component Flag43
313 -- In_Private_Part Flag45
314 -- Has_Alignment_Clause Flag46
316 -- In_Package_Body Flag48
318 -- Delay_Subprogram_Descriptors Flag50
321 -- Is_Entry_Formal Flag52
322 -- Is_Private_Descendant Flag53
323 -- Return_Present Flag54
324 -- Is_Tagged_Type Flag55
325 -- Has_Homonym Flag56
327 -- Non_Binary_Modulus Flag58
328 -- Is_Preelaborated Flag59
329 -- Is_Shared_Passive Flag60
331 -- Is_Remote_Types Flag61
332 -- Is_Remote_Call_Interface Flag62
333 -- Is_Character_Type Flag63
334 -- Is_Intrinsic_Subprogram Flag64
335 -- Has_Record_Rep_Clause Flag65
336 -- Has_Enumeration_Rep_Clause Flag66
337 -- Has_Small_Clause Flag67
338 -- Has_Component_Size_Clause Flag68
339 -- Is_Access_Constant Flag69
340 -- Is_First_Subtype Flag70
342 -- Has_Completion_In_Body Flag71
343 -- Has_Unknown_Discriminants Flag72
344 -- Is_Child_Unit Flag73
345 -- Is_CPP_Class Flag74
346 -- Has_Non_Standard_Rep Flag75
347 -- Is_Constructor Flag76
348 -- Static_Elaboration_Desired Flag77
350 -- Has_All_Calls_Remote Flag79
351 -- Is_Constr_Subt_For_U_Nominal Flag80
353 -- Is_Asynchronous Flag81
354 -- Has_Gigi_Rep_Item Flag82
355 -- Has_Machine_Radix_Clause Flag83
356 -- Machine_Radix_10 Flag84
358 -- Has_Atomic_Components Flag86
359 -- Has_Volatile_Components Flag87
360 -- Discard_Names Flag88
361 -- Is_Interrupt_Handler Flag89
362 -- Returns_By_Ref Flag90
365 -- Size_Known_At_Compile_Time Flag92
366 -- Reverse_Storage_Order Flag93
367 -- Is_Generic_Actual_Type Flag94
368 -- Uses_Sec_Stack Flag95
369 -- Warnings_Off Flag96
370 -- Is_Controlling_Formal Flag97
371 -- Has_Controlling_Result Flag98
372 -- Is_Exported Flag99
373 -- Has_Specified_Layout Flag100
375 -- Has_Nested_Block_With_Handler Flag101
377 -- Is_Completely_Hidden Flag103
378 -- Address_Taken Flag104
379 -- Suppress_Initialization Flag105
380 -- Is_Limited_Composite Flag106
381 -- Is_Private_Composite Flag107
382 -- Default_Expressions_Processed Flag108
383 -- Is_Non_Static_Subtype Flag109
384 -- Has_External_Tag_Rep_Clause Flag110
386 -- Is_Formal_Subprogram Flag111
387 -- Is_Renaming_Of_Object Flag112
389 -- Delay_Cleanups Flag114
390 -- Never_Set_In_Source Flag115
391 -- Is_Visible_Lib_Unit Flag116
392 -- Is_Unchecked_Union Flag117
393 -- Is_For_Access_Subtype Flag118
394 -- Has_Convention_Pragma Flag119
395 -- Has_Primitive_Operations Flag120
397 -- Has_Pragma_Pack Flag121
398 -- Is_Bit_Packed_Array Flag122
399 -- Has_Unchecked_Union Flag123
400 -- Is_Eliminated Flag124
401 -- C_Pass_By_Copy Flag125
402 -- Is_Instantiated Flag126
403 -- Is_Valued_Procedure Flag127
404 -- (used for Component_Alignment) Flag128
405 -- (used for Component_Alignment) Flag129
406 -- Is_Generic_Instance Flag130
408 -- No_Pool_Assigned Flag131
409 -- Is_AST_Entry Flag132
410 -- Is_VMS_Exception Flag133
411 -- Is_Optional_Parameter Flag134
412 -- Has_Aliased_Components Flag135
413 -- No_Strict_Aliasing Flag136
414 -- Is_Machine_Code_Subprogram Flag137
415 -- Is_Packed_Array_Type Flag138
416 -- Has_Biased_Representation Flag139
417 -- Has_Complex_Representation Flag140
419 -- Is_Constr_Subt_For_UN_Aliased Flag141
420 -- Has_Missing_Return Flag142
421 -- Has_Recursive_Call Flag143
422 -- Is_Unsigned_Type Flag144
423 -- Strict_Alignment Flag145
424 -- Is_Abstract_Type Flag146
425 -- Needs_Debug_Info Flag147
426 -- Suppress_Elaboration_Warnings Flag148
427 -- Is_Compilation_Unit Flag149
428 -- Has_Pragma_Elaborate_Body Flag150
430 -- Has_Private_Ancestor Flag151
431 -- Entry_Accepted Flag152
432 -- Is_Obsolescent Flag153
433 -- Has_Per_Object_Constraint Flag154
434 -- Has_Private_Declaration Flag155
435 -- Referenced Flag156
436 -- Has_Pragma_Inline Flag157
437 -- Finalize_Storage_Only Flag158
438 -- From_With_Type Flag159
439 -- Is_Package_Body_Entity Flag160
441 -- Has_Qualified_Name Flag161
442 -- Nonzero_Is_True Flag162
443 -- Is_True_Constant Flag163
444 -- Reverse_Bit_Order Flag164
445 -- Suppress_Style_Checks Flag165
446 -- Debug_Info_Off Flag166
447 -- Sec_Stack_Needed_For_Return Flag167
448 -- Materialize_Entity Flag168
449 -- Has_Pragma_Thread_Local_Storage Flag169
450 -- Is_Known_Valid Flag170
452 -- Is_Hidden_Open_Scope Flag171
453 -- Has_Object_Size_Clause Flag172
454 -- Has_Fully_Qualified_Name Flag173
455 -- Elaboration_Entity_Required Flag174
456 -- Has_Forward_Instantiation Flag175
457 -- Is_Discrim_SO_Function Flag176
458 -- Size_Depends_On_Discriminant Flag177
459 -- Is_Null_Init_Proc Flag178
460 -- Has_Pragma_Pure_Function Flag179
461 -- Has_Pragma_Unreferenced Flag180
463 -- Has_Contiguous_Rep Flag181
464 -- Has_Xref_Entry Flag182
465 -- Must_Be_On_Byte_Boundary Flag183
466 -- Has_Stream_Size_Clause Flag184
467 -- Is_Ada_2005_Only Flag185
468 -- Is_Interface Flag186
469 -- Has_Constrained_Partial_View Flag187
470 -- Uses_Lock_Free Flag188
471 -- Is_Pure_Unit_Access_Type Flag189
472 -- Has_Specified_Stream_Input Flag190
474 -- Has_Specified_Stream_Output Flag191
475 -- Has_Specified_Stream_Read Flag192
476 -- Has_Specified_Stream_Write Flag193
477 -- Is_Local_Anonymous_Access Flag194
478 -- Is_Primitive_Wrapper Flag195
479 -- Was_Hidden Flag196
480 -- Is_Limited_Interface Flag197
481 -- Has_Pragma_Ordered Flag198
482 -- Is_Ada_2012_Only Flag199
484 -- Has_Delayed_Aspects Flag200
485 -- Has_Pragma_No_Inline Flag201
486 -- Itype_Printed Flag202
487 -- Has_Pragma_Pure Flag203
488 -- Is_Known_Null Flag204
489 -- Low_Bound_Tested Flag205
490 -- Is_Visible_Formal Flag206
491 -- Known_To_Have_Preelab_Init Flag207
492 -- Must_Have_Preelab_Init Flag208
493 -- Is_Return_Object Flag209
494 -- Elaborate_Body_Desirable Flag210
496 -- Has_Static_Discriminants Flag211
497 -- Has_Pragma_Unreferenced_Objects Flag212
498 -- Requires_Overriding Flag213
500 -- Has_Up_Level_Access Flag215
501 -- Universal_Aliasing Flag216
502 -- Suppress_Value_Tracking_On_Call Flag217
503 -- Is_Primitive Flag218
504 -- Has_Initial_Value Flag219
505 -- Has_Dispatch_Table Flag220
507 -- Has_Pragma_Preelab_Init Flag221
508 -- Used_As_Generic_Actual Flag222
509 -- Is_Descendent_Of_Address Flag223
512 -- Is_Only_Out_Parameter Flag226
513 -- Referenced_As_Out_Parameter Flag227
514 -- Has_Thunks Flag228
515 -- Can_Use_Internal_Rep Flag229
516 -- Has_Pragma_Inline_Always Flag230
518 -- Renamed_In_Spec Flag231
519 -- Has_Invariants Flag232
520 -- Has_Pragma_Unmodified Flag233
521 -- Is_Dispatch_Table_Entity Flag234
522 -- Is_Trivial_Subprogram Flag235
523 -- Warnings_Off_Used Flag236
524 -- Warnings_Off_Used_Unmodified Flag237
525 -- Warnings_Off_Used_Unreferenced Flag238
526 -- OK_To_Reorder_Components Flag239
527 -- Has_Postconditions Flag240
529 -- Optimize_Alignment_Space Flag241
530 -- Optimize_Alignment_Time Flag242
531 -- Overlays_Constant Flag243
532 -- Is_RACW_Stub_Type Flag244
533 -- Is_Private_Primitive Flag245
534 -- Is_Underlying_Record_View Flag246
535 -- OK_To_Rename Flag247
536 -- Has_Inheritable_Invariants Flag248
537 -- Is_Safe_To_Reevaluate Flag249
538 -- Has_Predicates Flag250
540 -- Has_Implicit_Dereference Flag251
541 -- Is_Processed_Transient Flag252
542 -- Has_Anonymous_Master Flag253
543 -- Is_Implementation_Defined Flag254
544 -- Is_Predicate_Function Flag255
545 -- Is_Predicate_Function_M Flag256
546 -- Is_Invariant_Procedure Flag257
547 -- Has_Dynamic_Predicate_Aspect Flag258
548 -- Has_Static_Predicate_Aspect Flag259
549 -- Has_Loop_Entry_Attributes Flag260
580 -- Note: Flag287-317 are defined in atree.ads/adb, but not yet in atree.h
582 -----------------------
583 -- Local subprograms --
584 -----------------------
586 function Has_Property
588 Prop_Nam
: Name_Id
) return Boolean;
589 -- Determine whether abstract state State has a particular property denoted
590 -- by the name Prop_Nam.
592 function Rep_Clause
(Id
: E
; Rep_Name
: Name_Id
) return N
;
593 -- Returns the attribute definition clause for Id whose name is Rep_Name.
594 -- Returns Empty if no matching attribute definition clause found for Id.
600 function Float_Rep
(Id
: E
) return F
is
601 pragma Assert
(Is_Floating_Point_Type
(Id
));
603 return F
'Val (UI_To_Int
(Uint10
(Base_Type
(Id
))));
610 function Has_Property
612 Prop_Nam
: Name_Id
) return Boolean
614 Par
: constant Node_Id
:= Parent
(State
);
618 pragma Assert
(Ekind
(State
) = E_Abstract_State
);
620 -- States with properties appear as extension aggregates in the tree
622 if Nkind
(Par
) = N_Extension_Aggregate
then
623 if Prop_Nam
= Name_Integrity
then
624 return Present
(Component_Associations
(Par
));
627 Prop
:= First
(Expressions
(Par
));
628 while Present
(Prop
) loop
629 if Chars
(Prop
) = Prop_Nam
then
645 function Rep_Clause
(Id
: E
; Rep_Name
: Name_Id
) return N
is
649 Ritem
:= First_Rep_Item
(Id
);
650 while Present
(Ritem
) loop
651 if Nkind
(Ritem
) = N_Attribute_Definition_Clause
652 and then Chars
(Ritem
) = Rep_Name
656 Next_Rep_Item
(Ritem
);
663 --------------------------------
664 -- Attribute Access Functions --
665 --------------------------------
667 function Abstract_States
(Id
: E
) return L
is
669 pragma Assert
(Ekind_In
(Id
, E_Generic_Package
, E_Package
));
673 function Accept_Address
(Id
: E
) return L
is
678 function Access_Disp_Table
(Id
: E
) return L
is
680 pragma Assert
(Ekind_In
(Id
, E_Record_Type
,
682 return Elist16
(Implementation_Base_Type
(Id
));
683 end Access_Disp_Table
;
685 function Actual_Subtype
(Id
: E
) return E
is
688 (Ekind_In
(Id
, E_Constant
, E_Variable
, E_Generic_In_Out_Parameter
)
689 or else Is_Formal
(Id
));
693 function Address_Taken
(Id
: E
) return B
is
698 function Alias
(Id
: E
) return E
is
701 (Is_Overloadable
(Id
) or else Ekind
(Id
) = E_Subprogram_Type
);
705 function Alignment
(Id
: E
) return U
is
707 pragma Assert
(Is_Type
(Id
)
708 or else Is_Formal
(Id
)
709 or else Ekind_In
(Id
, E_Loop_Parameter
,
716 function Associated_Formal_Package
(Id
: E
) return E
is
718 pragma Assert
(Ekind
(Id
) = E_Package
);
720 end Associated_Formal_Package
;
722 function Associated_Node_For_Itype
(Id
: E
) return N
is
725 end Associated_Node_For_Itype
;
727 function Associated_Storage_Pool
(Id
: E
) return E
is
729 pragma Assert
(Is_Access_Type
(Id
));
730 return Node22
(Root_Type
(Id
));
731 end Associated_Storage_Pool
;
733 function Barrier_Function
(Id
: E
) return N
is
735 pragma Assert
(Is_Entry
(Id
));
737 end Barrier_Function
;
739 function Block_Node
(Id
: E
) return N
is
741 pragma Assert
(Ekind
(Id
) = E_Block
);
745 function Body_Entity
(Id
: E
) return E
is
747 pragma Assert
(Ekind_In
(Id
, E_Package
, E_Generic_Package
));
751 function Body_Needed_For_SAL
(Id
: E
) return B
is
754 (Ekind
(Id
) = E_Package
755 or else Is_Subprogram
(Id
)
756 or else Is_Generic_Unit
(Id
));
758 end Body_Needed_For_SAL
;
760 function C_Pass_By_Copy
(Id
: E
) return B
is
762 pragma Assert
(Is_Record_Type
(Id
));
763 return Flag125
(Implementation_Base_Type
(Id
));
766 function Can_Never_Be_Null
(Id
: E
) return B
is
769 end Can_Never_Be_Null
;
771 function Checks_May_Be_Suppressed
(Id
: E
) return B
is
774 end Checks_May_Be_Suppressed
;
776 function Class_Wide_Type
(Id
: E
) return E
is
778 pragma Assert
(Is_Type
(Id
));
782 function Cloned_Subtype
(Id
: E
) return E
is
784 pragma Assert
(Ekind_In
(Id
, E_Record_Subtype
, E_Class_Wide_Subtype
));
788 function Component_Bit_Offset
(Id
: E
) return U
is
790 pragma Assert
(Ekind_In
(Id
, E_Component
, E_Discriminant
));
792 end Component_Bit_Offset
;
794 function Component_Clause
(Id
: E
) return N
is
796 pragma Assert
(Ekind_In
(Id
, E_Component
, E_Discriminant
));
798 end Component_Clause
;
800 function Component_Size
(Id
: E
) return U
is
802 pragma Assert
(Is_Array_Type
(Id
));
803 return Uint22
(Implementation_Base_Type
(Id
));
806 function Component_Type
(Id
: E
) return E
is
808 pragma Assert
(Is_Array_Type
(Id
) or else Is_String_Type
(Id
));
809 return Node20
(Implementation_Base_Type
(Id
));
812 function Corresponding_Concurrent_Type
(Id
: E
) return E
is
814 pragma Assert
(Ekind
(Id
) = E_Record_Type
);
816 end Corresponding_Concurrent_Type
;
818 function Corresponding_Discriminant
(Id
: E
) return E
is
820 pragma Assert
(Ekind
(Id
) = E_Discriminant
);
822 end Corresponding_Discriminant
;
824 function Corresponding_Equality
(Id
: E
) return E
is
827 (Ekind
(Id
) = E_Function
828 and then not Comes_From_Source
(Id
)
829 and then Chars
(Id
) = Name_Op_Ne
);
831 end Corresponding_Equality
;
833 function Corresponding_Protected_Entry
(Id
: E
) return E
is
835 pragma Assert
(Ekind
(Id
) = E_Subprogram_Body
);
837 end Corresponding_Protected_Entry
;
839 function Corresponding_Record_Type
(Id
: E
) return E
is
841 pragma Assert
(Is_Concurrent_Type
(Id
));
843 end Corresponding_Record_Type
;
845 function Corresponding_Remote_Type
(Id
: E
) return E
is
848 end Corresponding_Remote_Type
;
850 function Current_Use_Clause
(Id
: E
) return E
is
852 pragma Assert
(Ekind
(Id
) = E_Package
or else Is_Type
(Id
));
854 end Current_Use_Clause
;
856 function Current_Value
(Id
: E
) return N
is
858 pragma Assert
(Ekind
(Id
) in Object_Kind
);
862 function CR_Discriminant
(Id
: E
) return E
is
867 function Debug_Info_Off
(Id
: E
) return B
is
872 function Debug_Renaming_Link
(Id
: E
) return E
is
875 end Debug_Renaming_Link
;
877 function Default_Aspect_Component_Value
(Id
: E
) return N
is
879 pragma Assert
(Is_Array_Type
(Id
));
881 end Default_Aspect_Component_Value
;
883 function Default_Aspect_Value
(Id
: E
) return N
is
885 pragma Assert
(Is_Scalar_Type
(Id
));
887 end Default_Aspect_Value
;
889 function Default_Expr_Function
(Id
: E
) return E
is
891 pragma Assert
(Is_Formal
(Id
));
893 end Default_Expr_Function
;
895 function Default_Expressions_Processed
(Id
: E
) return B
is
898 end Default_Expressions_Processed
;
900 function Default_Value
(Id
: E
) return N
is
902 pragma Assert
(Is_Formal
(Id
));
906 function Delay_Cleanups
(Id
: E
) return B
is
911 function Delay_Subprogram_Descriptors
(Id
: E
) return B
is
914 end Delay_Subprogram_Descriptors
;
916 function Delta_Value
(Id
: E
) return R
is
918 pragma Assert
(Is_Fixed_Point_Type
(Id
));
922 function Dependent_Instances
(Id
: E
) return L
is
924 pragma Assert
(Is_Generic_Instance
(Id
));
926 end Dependent_Instances
;
928 function Depends_On_Private
(Id
: E
) return B
is
930 pragma Assert
(Nkind
(Id
) in N_Entity
);
932 end Depends_On_Private
;
934 function Digits_Value
(Id
: E
) return U
is
937 (Is_Floating_Point_Type
(Id
)
938 or else Is_Decimal_Fixed_Point_Type
(Id
));
942 function Direct_Primitive_Operations
(Id
: E
) return L
is
944 pragma Assert
(Is_Tagged_Type
(Id
));
946 end Direct_Primitive_Operations
;
948 function Directly_Designated_Type
(Id
: E
) return E
is
950 pragma Assert
(Is_Access_Type
(Id
));
952 end Directly_Designated_Type
;
954 function Discard_Names
(Id
: E
) return B
is
959 function Discriminal
(Id
: E
) return E
is
961 pragma Assert
(Ekind
(Id
) = E_Discriminant
);
965 function Discriminal_Link
(Id
: E
) return N
is
968 end Discriminal_Link
;
970 function Discriminant_Checking_Func
(Id
: E
) return E
is
972 pragma Assert
(Ekind
(Id
) = E_Component
);
974 end Discriminant_Checking_Func
;
976 function Discriminant_Constraint
(Id
: E
) return L
is
978 pragma Assert
(Is_Composite_Type
(Id
) and then Has_Discriminants
(Id
));
980 end Discriminant_Constraint
;
982 function Discriminant_Default_Value
(Id
: E
) return N
is
984 pragma Assert
(Ekind
(Id
) = E_Discriminant
);
986 end Discriminant_Default_Value
;
988 function Discriminant_Number
(Id
: E
) return U
is
990 pragma Assert
(Ekind
(Id
) = E_Discriminant
);
992 end Discriminant_Number
;
994 function Dispatch_Table_Wrappers
(Id
: E
) return L
is
996 pragma Assert
(Ekind_In
(Id
, E_Record_Type
,
998 return Elist26
(Implementation_Base_Type
(Id
));
999 end Dispatch_Table_Wrappers
;
1001 function DT_Entry_Count
(Id
: E
) return U
is
1003 pragma Assert
(Ekind
(Id
) = E_Component
and then Is_Tag
(Id
));
1007 function DT_Offset_To_Top_Func
(Id
: E
) return E
is
1009 pragma Assert
(Ekind
(Id
) = E_Component
and then Is_Tag
(Id
));
1011 end DT_Offset_To_Top_Func
;
1013 function DT_Position
(Id
: E
) return U
is
1015 pragma Assert
(Ekind_In
(Id
, E_Function
, E_Procedure
)
1016 and then Present
(DTC_Entity
(Id
)));
1020 function DTC_Entity
(Id
: E
) return E
is
1022 pragma Assert
(Ekind_In
(Id
, E_Function
, E_Procedure
));
1026 function Elaborate_Body_Desirable
(Id
: E
) return B
is
1028 pragma Assert
(Ekind
(Id
) = E_Package
);
1029 return Flag210
(Id
);
1030 end Elaborate_Body_Desirable
;
1032 function Elaboration_Entity
(Id
: E
) return E
is
1037 Ekind
(Id
) = E_Package
1039 Is_Generic_Unit
(Id
));
1041 end Elaboration_Entity
;
1043 function Elaboration_Entity_Required
(Id
: E
) return B
is
1048 Ekind
(Id
) = E_Package
1050 Is_Generic_Unit
(Id
));
1051 return Flag174
(Id
);
1052 end Elaboration_Entity_Required
;
1054 function Enclosing_Scope
(Id
: E
) return E
is
1057 end Enclosing_Scope
;
1059 function Entry_Accepted
(Id
: E
) return B
is
1061 pragma Assert
(Is_Entry
(Id
));
1062 return Flag152
(Id
);
1065 function Entry_Bodies_Array
(Id
: E
) return E
is
1068 end Entry_Bodies_Array
;
1070 function Entry_Cancel_Parameter
(Id
: E
) return E
is
1073 end Entry_Cancel_Parameter
;
1075 function Entry_Component
(Id
: E
) return E
is
1078 end Entry_Component
;
1080 function Entry_Formal
(Id
: E
) return E
is
1085 function Entry_Index_Constant
(Id
: E
) return N
is
1087 pragma Assert
(Ekind
(Id
) = E_Entry_Index_Parameter
);
1089 end Entry_Index_Constant
;
1091 function Contract
(Id
: E
) return N
is
1094 (Ekind_In
(Id
, E_Entry
, E_Entry_Family
)
1095 or else Is_Subprogram
(Id
)
1096 or else Is_Generic_Subprogram
(Id
));
1100 function Entry_Parameters_Type
(Id
: E
) return E
is
1103 end Entry_Parameters_Type
;
1105 function Enum_Pos_To_Rep
(Id
: E
) return E
is
1107 pragma Assert
(Ekind
(Id
) = E_Enumeration_Type
);
1109 end Enum_Pos_To_Rep
;
1111 function Enumeration_Pos
(Id
: E
) return Uint
is
1113 pragma Assert
(Ekind
(Id
) = E_Enumeration_Literal
);
1115 end Enumeration_Pos
;
1117 function Enumeration_Rep
(Id
: E
) return U
is
1119 pragma Assert
(Ekind
(Id
) = E_Enumeration_Literal
);
1121 end Enumeration_Rep
;
1123 function Enumeration_Rep_Expr
(Id
: E
) return N
is
1125 pragma Assert
(Ekind
(Id
) = E_Enumeration_Literal
);
1127 end Enumeration_Rep_Expr
;
1129 function Equivalent_Type
(Id
: E
) return E
is
1132 (Ekind_In
(Id
, E_Class_Wide_Type
,
1133 E_Class_Wide_Subtype
,
1134 E_Access_Protected_Subprogram_Type
,
1135 E_Anonymous_Access_Protected_Subprogram_Type
,
1136 E_Access_Subprogram_Type
,
1139 end Equivalent_Type
;
1141 function Esize
(Id
: E
) return Uint
is
1146 function Exception_Code
(Id
: E
) return Uint
is
1148 pragma Assert
(Ekind
(Id
) = E_Exception
);
1152 function Extra_Accessibility
(Id
: E
) return E
is
1155 (Is_Formal
(Id
) or else Ekind_In
(Id
, E_Variable
, E_Constant
));
1157 end Extra_Accessibility
;
1159 function Extra_Accessibility_Of_Result
(Id
: E
) return E
is
1161 pragma Assert
(Ekind_In
(Id
, E_Function
, E_Operator
, E_Subprogram_Type
));
1163 end Extra_Accessibility_Of_Result
;
1165 function Extra_Constrained
(Id
: E
) return E
is
1167 pragma Assert
(Is_Formal
(Id
) or else Ekind
(Id
) = E_Variable
);
1169 end Extra_Constrained
;
1171 function Extra_Formal
(Id
: E
) return E
is
1176 function Extra_Formals
(Id
: E
) return E
is
1179 (Is_Overloadable
(Id
)
1180 or else Ekind_In
(Id
, E_Entry_Family
,
1182 E_Subprogram_Type
));
1186 function Can_Use_Internal_Rep
(Id
: E
) return B
is
1188 pragma Assert
(Is_Access_Subprogram_Type
(Base_Type
(Id
)));
1189 return Flag229
(Base_Type
(Id
));
1190 end Can_Use_Internal_Rep
;
1192 function Finalization_Master
(Id
: E
) return E
is
1194 pragma Assert
(Is_Access_Type
(Id
));
1195 return Node23
(Root_Type
(Id
));
1196 end Finalization_Master
;
1198 function Finalize_Storage_Only
(Id
: E
) return B
is
1200 pragma Assert
(Is_Type
(Id
));
1201 return Flag158
(Base_Type
(Id
));
1202 end Finalize_Storage_Only
;
1204 function Finalizer
(Id
: E
) return E
is
1207 (Ekind
(Id
) = E_Package
1208 or else Ekind
(Id
) = E_Package_Body
);
1212 function First_Entity
(Id
: E
) return E
is
1217 function First_Exit_Statement
(Id
: E
) return N
is
1219 pragma Assert
(Ekind
(Id
) = E_Loop
);
1221 end First_Exit_Statement
;
1223 function First_Index
(Id
: E
) return N
is
1225 pragma Assert
(Is_Array_Type
(Id
) or else Is_String_Type
(Id
));
1229 function First_Literal
(Id
: E
) return E
is
1231 pragma Assert
(Is_Enumeration_Type
(Id
));
1235 function First_Optional_Parameter
(Id
: E
) return E
is
1237 pragma Assert
(Ekind_In
(Id
, E_Function
, E_Procedure
));
1239 end First_Optional_Parameter
;
1241 function First_Private_Entity
(Id
: E
) return E
is
1243 pragma Assert
(Ekind_In
(Id
, E_Package
, E_Generic_Package
)
1244 or else Ekind
(Id
) in Concurrent_Kind
);
1246 end First_Private_Entity
;
1248 function First_Rep_Item
(Id
: E
) return E
is
1253 function Freeze_Node
(Id
: E
) return N
is
1258 function From_With_Type
(Id
: E
) return B
is
1260 return Flag159
(Id
);
1263 function Full_View
(Id
: E
) return E
is
1265 pragma Assert
(Is_Type
(Id
) or else Ekind
(Id
) = E_Constant
);
1269 function Generic_Homonym
(Id
: E
) return E
is
1271 pragma Assert
(Ekind
(Id
) = E_Generic_Package
);
1273 end Generic_Homonym
;
1275 function Generic_Renamings
(Id
: E
) return L
is
1277 return Elist23
(Id
);
1278 end Generic_Renamings
;
1280 function Handler_Records
(Id
: E
) return S
is
1283 end Handler_Records
;
1285 function Has_Aliased_Components
(Id
: E
) return B
is
1287 return Flag135
(Implementation_Base_Type
(Id
));
1288 end Has_Aliased_Components
;
1290 function Has_Alignment_Clause
(Id
: E
) return B
is
1293 end Has_Alignment_Clause
;
1295 function Has_All_Calls_Remote
(Id
: E
) return B
is
1298 end Has_All_Calls_Remote
;
1300 function Has_Anonymous_Master
(Id
: E
) return B
is
1303 (Ekind_In
(Id
, E_Function
, E_Package
, E_Package_Body
, E_Procedure
));
1304 return Flag253
(Id
);
1305 end Has_Anonymous_Master
;
1307 function Has_Atomic_Components
(Id
: E
) return B
is
1309 return Flag86
(Implementation_Base_Type
(Id
));
1310 end Has_Atomic_Components
;
1312 function Has_Biased_Representation
(Id
: E
) return B
is
1314 return Flag139
(Id
);
1315 end Has_Biased_Representation
;
1317 function Has_Completion
(Id
: E
) return B
is
1322 function Has_Completion_In_Body
(Id
: E
) return B
is
1324 pragma Assert
(Is_Type
(Id
));
1326 end Has_Completion_In_Body
;
1328 function Has_Complex_Representation
(Id
: E
) return B
is
1330 pragma Assert
(Is_Type
(Id
));
1331 return Flag140
(Implementation_Base_Type
(Id
));
1332 end Has_Complex_Representation
;
1334 function Has_Component_Size_Clause
(Id
: E
) return B
is
1336 pragma Assert
(Is_Array_Type
(Id
));
1337 return Flag68
(Implementation_Base_Type
(Id
));
1338 end Has_Component_Size_Clause
;
1340 function Has_Constrained_Partial_View
(Id
: E
) return B
is
1342 pragma Assert
(Is_Type
(Id
));
1343 return Flag187
(Id
);
1344 end Has_Constrained_Partial_View
;
1346 function Has_Controlled_Component
(Id
: E
) return B
is
1348 return Flag43
(Base_Type
(Id
));
1349 end Has_Controlled_Component
;
1351 function Has_Contiguous_Rep
(Id
: E
) return B
is
1353 return Flag181
(Id
);
1354 end Has_Contiguous_Rep
;
1356 function Has_Controlling_Result
(Id
: E
) return B
is
1359 end Has_Controlling_Result
;
1361 function Has_Convention_Pragma
(Id
: E
) return B
is
1363 return Flag119
(Id
);
1364 end Has_Convention_Pragma
;
1366 function Has_Default_Aspect
(Id
: E
) return B
is
1368 return Flag39
(Base_Type
(Id
));
1369 end Has_Default_Aspect
;
1371 function Has_Delayed_Aspects
(Id
: E
) return B
is
1373 pragma Assert
(Nkind
(Id
) in N_Entity
);
1374 return Flag200
(Id
);
1375 end Has_Delayed_Aspects
;
1377 function Has_Delayed_Freeze
(Id
: E
) return B
is
1379 pragma Assert
(Nkind
(Id
) in N_Entity
);
1381 end Has_Delayed_Freeze
;
1383 function Has_Discriminants
(Id
: E
) return B
is
1385 pragma Assert
(Nkind
(Id
) in N_Entity
);
1387 end Has_Discriminants
;
1389 function Has_Dispatch_Table
(Id
: E
) return B
is
1391 pragma Assert
(Is_Tagged_Type
(Id
));
1392 return Flag220
(Id
);
1393 end Has_Dispatch_Table
;
1395 function Has_Dynamic_Predicate_Aspect
(Id
: E
) return B
is
1397 pragma Assert
(Is_Type
(Id
));
1398 return Flag258
(Id
);
1399 end Has_Dynamic_Predicate_Aspect
;
1401 function Has_Enumeration_Rep_Clause
(Id
: E
) return B
is
1403 pragma Assert
(Is_Enumeration_Type
(Id
));
1405 end Has_Enumeration_Rep_Clause
;
1407 function Has_Exit
(Id
: E
) return B
is
1412 function Has_External_Tag_Rep_Clause
(Id
: E
) return B
is
1414 pragma Assert
(Is_Tagged_Type
(Id
));
1415 return Flag110
(Id
);
1416 end Has_External_Tag_Rep_Clause
;
1418 function Has_Forward_Instantiation
(Id
: E
) return B
is
1420 return Flag175
(Id
);
1421 end Has_Forward_Instantiation
;
1423 function Has_Fully_Qualified_Name
(Id
: E
) return B
is
1425 return Flag173
(Id
);
1426 end Has_Fully_Qualified_Name
;
1428 function Has_Gigi_Rep_Item
(Id
: E
) return B
is
1431 end Has_Gigi_Rep_Item
;
1433 function Has_Homonym
(Id
: E
) return B
is
1438 function Has_Implicit_Dereference
(Id
: E
) return B
is
1440 return Flag251
(Id
);
1441 end Has_Implicit_Dereference
;
1443 function Has_Independent_Components
(Id
: E
) return B
is
1445 pragma Assert
(Is_Object
(Id
) or else Is_Type
(Id
));
1447 end Has_Independent_Components
;
1449 function Has_Inheritable_Invariants
(Id
: E
) return B
is
1451 pragma Assert
(Is_Type
(Id
));
1452 return Flag248
(Id
);
1453 end Has_Inheritable_Invariants
;
1455 function Has_Initial_Value
(Id
: E
) return B
is
1457 pragma Assert
(Ekind
(Id
) = E_Variable
or else Is_Formal
(Id
));
1458 return Flag219
(Id
);
1459 end Has_Initial_Value
;
1461 function Has_Invariants
(Id
: E
) return B
is
1463 pragma Assert
(Is_Type
(Id
));
1464 return Flag232
(Id
);
1467 function Has_Loop_Entry_Attributes
(Id
: E
) return B
is
1469 pragma Assert
(Ekind
(Id
) = E_Loop
);
1470 return Flag260
(Id
);
1471 end Has_Loop_Entry_Attributes
;
1473 function Has_Machine_Radix_Clause
(Id
: E
) return B
is
1475 pragma Assert
(Is_Decimal_Fixed_Point_Type
(Id
));
1477 end Has_Machine_Radix_Clause
;
1479 function Has_Master_Entity
(Id
: E
) return B
is
1482 end Has_Master_Entity
;
1484 function Has_Missing_Return
(Id
: E
) return B
is
1486 pragma Assert
(Ekind_In
(Id
, E_Function
, E_Generic_Function
));
1487 return Flag142
(Id
);
1488 end Has_Missing_Return
;
1490 function Has_Nested_Block_With_Handler
(Id
: E
) return B
is
1492 return Flag101
(Id
);
1493 end Has_Nested_Block_With_Handler
;
1495 function Has_Non_Standard_Rep
(Id
: E
) return B
is
1497 return Flag75
(Implementation_Base_Type
(Id
));
1498 end Has_Non_Standard_Rep
;
1500 function Has_Object_Size_Clause
(Id
: E
) return B
is
1502 pragma Assert
(Is_Type
(Id
));
1503 return Flag172
(Id
);
1504 end Has_Object_Size_Clause
;
1506 function Has_Per_Object_Constraint
(Id
: E
) return B
is
1508 return Flag154
(Id
);
1509 end Has_Per_Object_Constraint
;
1511 function Has_Postconditions
(Id
: E
) return B
is
1513 pragma Assert
(Is_Subprogram
(Id
));
1514 return Flag240
(Id
);
1515 end Has_Postconditions
;
1517 function Has_Pragma_Controlled
(Id
: E
) return B
is
1519 pragma Assert
(Is_Access_Type
(Id
));
1520 return Flag27
(Implementation_Base_Type
(Id
));
1521 end Has_Pragma_Controlled
;
1523 function Has_Pragma_Elaborate_Body
(Id
: E
) return B
is
1525 return Flag150
(Id
);
1526 end Has_Pragma_Elaborate_Body
;
1528 function Has_Pragma_Inline
(Id
: E
) return B
is
1530 return Flag157
(Id
);
1531 end Has_Pragma_Inline
;
1533 function Has_Pragma_Inline_Always
(Id
: E
) return B
is
1535 return Flag230
(Id
);
1536 end Has_Pragma_Inline_Always
;
1538 function Has_Pragma_No_Inline
(Id
: E
) return B
is
1540 return Flag201
(Id
);
1541 end Has_Pragma_No_Inline
;
1543 function Has_Pragma_Ordered
(Id
: E
) return B
is
1545 pragma Assert
(Is_Enumeration_Type
(Id
));
1546 return Flag198
(Implementation_Base_Type
(Id
));
1547 end Has_Pragma_Ordered
;
1549 function Has_Pragma_Pack
(Id
: E
) return B
is
1551 pragma Assert
(Is_Record_Type
(Id
) or else Is_Array_Type
(Id
));
1552 return Flag121
(Implementation_Base_Type
(Id
));
1553 end Has_Pragma_Pack
;
1555 function Has_Pragma_Preelab_Init
(Id
: E
) return B
is
1557 return Flag221
(Id
);
1558 end Has_Pragma_Preelab_Init
;
1560 function Has_Pragma_Pure
(Id
: E
) return B
is
1562 return Flag203
(Id
);
1563 end Has_Pragma_Pure
;
1565 function Has_Pragma_Pure_Function
(Id
: E
) return B
is
1567 return Flag179
(Id
);
1568 end Has_Pragma_Pure_Function
;
1570 function Has_Pragma_Thread_Local_Storage
(Id
: E
) return B
is
1572 return Flag169
(Id
);
1573 end Has_Pragma_Thread_Local_Storage
;
1575 function Has_Pragma_Unmodified
(Id
: E
) return B
is
1577 return Flag233
(Id
);
1578 end Has_Pragma_Unmodified
;
1580 function Has_Pragma_Unreferenced
(Id
: E
) return B
is
1582 return Flag180
(Id
);
1583 end Has_Pragma_Unreferenced
;
1585 function Has_Pragma_Unreferenced_Objects
(Id
: E
) return B
is
1587 pragma Assert
(Is_Type
(Id
));
1588 return Flag212
(Id
);
1589 end Has_Pragma_Unreferenced_Objects
;
1591 function Has_Predicates
(Id
: E
) return B
is
1593 pragma Assert
(Is_Type
(Id
));
1594 return Flag250
(Id
);
1597 function Has_Primitive_Operations
(Id
: E
) return B
is
1599 pragma Assert
(Is_Type
(Id
));
1600 return Flag120
(Base_Type
(Id
));
1601 end Has_Primitive_Operations
;
1603 function Has_Private_Ancestor
(Id
: E
) return B
is
1605 return Flag151
(Id
);
1606 end Has_Private_Ancestor
;
1608 function Has_Private_Declaration
(Id
: E
) return B
is
1610 return Flag155
(Id
);
1611 end Has_Private_Declaration
;
1613 function Has_Qualified_Name
(Id
: E
) return B
is
1615 return Flag161
(Id
);
1616 end Has_Qualified_Name
;
1618 function Has_RACW
(Id
: E
) return B
is
1620 pragma Assert
(Ekind
(Id
) = E_Package
);
1621 return Flag214
(Id
);
1624 function Has_Record_Rep_Clause
(Id
: E
) return B
is
1626 pragma Assert
(Is_Record_Type
(Id
));
1627 return Flag65
(Implementation_Base_Type
(Id
));
1628 end Has_Record_Rep_Clause
;
1630 function Has_Recursive_Call
(Id
: E
) return B
is
1632 pragma Assert
(Is_Subprogram
(Id
));
1633 return Flag143
(Id
);
1634 end Has_Recursive_Call
;
1636 function Has_Size_Clause
(Id
: E
) return B
is
1639 end Has_Size_Clause
;
1641 function Has_Small_Clause
(Id
: E
) return B
is
1644 end Has_Small_Clause
;
1646 function Has_Specified_Layout
(Id
: E
) return B
is
1648 pragma Assert
(Is_Type
(Id
));
1649 return Flag100
(Implementation_Base_Type
(Id
));
1650 end Has_Specified_Layout
;
1652 function Has_Specified_Stream_Input
(Id
: E
) return B
is
1654 pragma Assert
(Is_Type
(Id
));
1655 return Flag190
(Id
);
1656 end Has_Specified_Stream_Input
;
1658 function Has_Specified_Stream_Output
(Id
: E
) return B
is
1660 pragma Assert
(Is_Type
(Id
));
1661 return Flag191
(Id
);
1662 end Has_Specified_Stream_Output
;
1664 function Has_Specified_Stream_Read
(Id
: E
) return B
is
1666 pragma Assert
(Is_Type
(Id
));
1667 return Flag192
(Id
);
1668 end Has_Specified_Stream_Read
;
1670 function Has_Specified_Stream_Write
(Id
: E
) return B
is
1672 pragma Assert
(Is_Type
(Id
));
1673 return Flag193
(Id
);
1674 end Has_Specified_Stream_Write
;
1676 function Has_Static_Discriminants
(Id
: E
) return B
is
1678 pragma Assert
(Is_Type
(Id
));
1679 return Flag211
(Id
);
1680 end Has_Static_Discriminants
;
1682 function Has_Static_Predicate_Aspect
(Id
: E
) return B
is
1684 pragma Assert
(Is_Type
(Id
));
1685 return Flag259
(Id
);
1686 end Has_Static_Predicate_Aspect
;
1688 function Has_Storage_Size_Clause
(Id
: E
) return B
is
1690 pragma Assert
(Is_Access_Type
(Id
) or else Is_Task_Type
(Id
));
1691 return Flag23
(Implementation_Base_Type
(Id
));
1692 end Has_Storage_Size_Clause
;
1694 function Has_Stream_Size_Clause
(Id
: E
) return B
is
1696 return Flag184
(Id
);
1697 end Has_Stream_Size_Clause
;
1699 function Has_Task
(Id
: E
) return B
is
1701 return Flag30
(Base_Type
(Id
));
1704 function Has_Thunks
(Id
: E
) return B
is
1706 return Flag228
(Id
);
1709 function Has_Unchecked_Union
(Id
: E
) return B
is
1711 return Flag123
(Base_Type
(Id
));
1712 end Has_Unchecked_Union
;
1714 function Has_Unknown_Discriminants
(Id
: E
) return B
is
1716 pragma Assert
(Is_Type
(Id
));
1718 end Has_Unknown_Discriminants
;
1720 function Has_Up_Level_Access
(Id
: E
) return B
is
1723 (Ekind_In
(Id
, E_Variable
, E_Constant
, E_Loop_Parameter
));
1724 return Flag215
(Id
);
1725 end Has_Up_Level_Access
;
1727 function Has_Volatile_Components
(Id
: E
) return B
is
1729 return Flag87
(Implementation_Base_Type
(Id
));
1730 end Has_Volatile_Components
;
1732 function Has_Xref_Entry
(Id
: E
) return B
is
1734 return Flag182
(Id
);
1737 function Hiding_Loop_Variable
(Id
: E
) return E
is
1739 pragma Assert
(Ekind
(Id
) = E_Variable
);
1741 end Hiding_Loop_Variable
;
1743 function Homonym
(Id
: E
) return E
is
1748 function Interface_Alias
(Id
: E
) return E
is
1750 pragma Assert
(Is_Subprogram
(Id
));
1752 end Interface_Alias
;
1754 function Interfaces
(Id
: E
) return L
is
1756 pragma Assert
(Is_Record_Type
(Id
));
1757 return Elist25
(Id
);
1760 function In_Package_Body
(Id
: E
) return B
is
1763 end In_Package_Body
;
1765 function In_Private_Part
(Id
: E
) return B
is
1768 end In_Private_Part
;
1770 function In_Use
(Id
: E
) return B
is
1772 pragma Assert
(Nkind
(Id
) in N_Entity
);
1776 function Initialization_Statements
(Id
: E
) return N
is
1778 pragma Assert
(Ekind_In
(Id
, E_Constant
, E_Variable
));
1780 end Initialization_Statements
;
1782 function Integrity_Level
(Id
: E
) return U
is
1784 pragma Assert
(Ekind
(Id
) = E_Abstract_State
);
1786 end Integrity_Level
;
1788 function Inner_Instances
(Id
: E
) return L
is
1790 return Elist23
(Id
);
1791 end Inner_Instances
;
1793 function Interface_Name
(Id
: E
) return N
is
1798 function Is_Abstract_Subprogram
(Id
: E
) return B
is
1800 pragma Assert
(Is_Overloadable
(Id
));
1802 end Is_Abstract_Subprogram
;
1804 function Is_Abstract_Type
(Id
: E
) return B
is
1806 pragma Assert
(Is_Type
(Id
));
1807 return Flag146
(Id
);
1808 end Is_Abstract_Type
;
1810 function Is_Local_Anonymous_Access
(Id
: E
) return B
is
1812 pragma Assert
(Is_Access_Type
(Id
));
1813 return Flag194
(Id
);
1814 end Is_Local_Anonymous_Access
;
1816 function Is_Access_Constant
(Id
: E
) return B
is
1818 pragma Assert
(Is_Access_Type
(Id
));
1820 end Is_Access_Constant
;
1822 function Is_Ada_2005_Only
(Id
: E
) return B
is
1824 return Flag185
(Id
);
1825 end Is_Ada_2005_Only
;
1827 function Is_Ada_2012_Only
(Id
: E
) return B
is
1829 return Flag199
(Id
);
1830 end Is_Ada_2012_Only
;
1832 function Is_Aliased
(Id
: E
) return B
is
1834 pragma Assert
(Nkind
(Id
) in N_Entity
);
1838 function Is_AST_Entry
(Id
: E
) return B
is
1840 pragma Assert
(Is_Entry
(Id
));
1841 return Flag132
(Id
);
1844 function Is_Asynchronous
(Id
: E
) return B
is
1846 pragma Assert
(Ekind
(Id
) = E_Procedure
or else Is_Type
(Id
));
1848 end Is_Asynchronous
;
1850 function Is_Atomic
(Id
: E
) return B
is
1855 function Is_Bit_Packed_Array
(Id
: E
) return B
is
1857 return Flag122
(Implementation_Base_Type
(Id
));
1858 end Is_Bit_Packed_Array
;
1860 function Is_Called
(Id
: E
) return B
is
1862 pragma Assert
(Ekind_In
(Id
, E_Procedure
, E_Function
));
1863 return Flag102
(Id
);
1866 function Is_Character_Type
(Id
: E
) return B
is
1869 end Is_Character_Type
;
1871 function Is_Child_Unit
(Id
: E
) return B
is
1876 function Is_Class_Wide_Equivalent_Type
(Id
: E
) return B
is
1879 end Is_Class_Wide_Equivalent_Type
;
1881 function Is_Compilation_Unit
(Id
: E
) return B
is
1883 return Flag149
(Id
);
1884 end Is_Compilation_Unit
;
1886 function Is_Completely_Hidden
(Id
: E
) return B
is
1888 pragma Assert
(Ekind
(Id
) = E_Discriminant
);
1889 return Flag103
(Id
);
1890 end Is_Completely_Hidden
;
1892 function Is_Constr_Subt_For_U_Nominal
(Id
: E
) return B
is
1895 end Is_Constr_Subt_For_U_Nominal
;
1897 function Is_Constr_Subt_For_UN_Aliased
(Id
: E
) return B
is
1899 return Flag141
(Id
);
1900 end Is_Constr_Subt_For_UN_Aliased
;
1902 function Is_Constrained
(Id
: E
) return B
is
1904 pragma Assert
(Nkind
(Id
) in N_Entity
);
1908 function Is_Constructor
(Id
: E
) return B
is
1913 function Is_Controlled
(Id
: E
) return B
is
1915 return Flag42
(Base_Type
(Id
));
1918 function Is_Controlling_Formal
(Id
: E
) return B
is
1920 pragma Assert
(Is_Formal
(Id
));
1922 end Is_Controlling_Formal
;
1924 function Is_CPP_Class
(Id
: E
) return B
is
1929 function Is_Descendent_Of_Address
(Id
: E
) return B
is
1931 pragma Assert
(Is_Type
(Id
));
1932 return Flag223
(Id
);
1933 end Is_Descendent_Of_Address
;
1935 function Is_Discrim_SO_Function
(Id
: E
) return B
is
1937 return Flag176
(Id
);
1938 end Is_Discrim_SO_Function
;
1940 function Is_Dispatch_Table_Entity
(Id
: E
) return B
is
1942 return Flag234
(Id
);
1943 end Is_Dispatch_Table_Entity
;
1945 function Is_Dispatching_Operation
(Id
: E
) return B
is
1947 pragma Assert
(Nkind
(Id
) in N_Entity
);
1949 end Is_Dispatching_Operation
;
1951 function Is_Eliminated
(Id
: E
) return B
is
1953 return Flag124
(Id
);
1956 function Is_Entry_Formal
(Id
: E
) return B
is
1959 end Is_Entry_Formal
;
1961 function Is_Exported
(Id
: E
) return B
is
1966 function Is_First_Subtype
(Id
: E
) return B
is
1969 end Is_First_Subtype
;
1971 function Is_For_Access_Subtype
(Id
: E
) return B
is
1973 pragma Assert
(Ekind_In
(Id
, E_Record_Subtype
, E_Private_Subtype
));
1974 return Flag118
(Id
);
1975 end Is_For_Access_Subtype
;
1977 function Is_Formal_Subprogram
(Id
: E
) return B
is
1979 return Flag111
(Id
);
1980 end Is_Formal_Subprogram
;
1982 function Is_Frozen
(Id
: E
) return B
is
1987 function Is_Generic_Actual_Type
(Id
: E
) return B
is
1989 pragma Assert
(Is_Type
(Id
));
1991 end Is_Generic_Actual_Type
;
1993 function Is_Generic_Instance
(Id
: E
) return B
is
1995 return Flag130
(Id
);
1996 end Is_Generic_Instance
;
1998 function Is_Generic_Type
(Id
: E
) return B
is
2000 pragma Assert
(Nkind
(Id
) in N_Entity
);
2002 end Is_Generic_Type
;
2004 function Is_Hidden
(Id
: E
) return B
is
2009 function Is_Hidden_Open_Scope
(Id
: E
) return B
is
2011 return Flag171
(Id
);
2012 end Is_Hidden_Open_Scope
;
2014 function Is_Immediately_Visible
(Id
: E
) return B
is
2016 pragma Assert
(Nkind
(Id
) in N_Entity
);
2018 end Is_Immediately_Visible
;
2020 function Is_Implementation_Defined
(Id
: E
) return B
is
2022 return Flag254
(Id
);
2023 end Is_Implementation_Defined
;
2025 function Is_Imported
(Id
: E
) return B
is
2030 function Is_Inlined
(Id
: E
) return B
is
2035 function Is_Interface
(Id
: E
) return B
is
2037 return Flag186
(Id
);
2040 function Is_Instantiated
(Id
: E
) return B
is
2042 return Flag126
(Id
);
2043 end Is_Instantiated
;
2045 function Is_Internal
(Id
: E
) return B
is
2047 pragma Assert
(Nkind
(Id
) in N_Entity
);
2051 function Is_Interrupt_Handler
(Id
: E
) return B
is
2053 pragma Assert
(Nkind
(Id
) in N_Entity
);
2055 end Is_Interrupt_Handler
;
2057 function Is_Intrinsic_Subprogram
(Id
: E
) return B
is
2060 end Is_Intrinsic_Subprogram
;
2062 function Is_Invariant_Procedure
(Id
: E
) return B
is
2064 pragma Assert
(Ekind
(Id
) = E_Function
or else Ekind
(Id
) = E_Procedure
);
2065 return Flag257
(Id
);
2066 end Is_Invariant_Procedure
;
2068 function Is_Itype
(Id
: E
) return B
is
2073 function Is_Known_Non_Null
(Id
: E
) return B
is
2076 end Is_Known_Non_Null
;
2078 function Is_Known_Null
(Id
: E
) return B
is
2080 return Flag204
(Id
);
2083 function Is_Known_Valid
(Id
: E
) return B
is
2085 return Flag170
(Id
);
2088 function Is_Limited_Composite
(Id
: E
) return B
is
2090 return Flag106
(Id
);
2091 end Is_Limited_Composite
;
2093 function Is_Limited_Interface
(Id
: E
) return B
is
2095 return Flag197
(Id
);
2096 end Is_Limited_Interface
;
2098 function Is_Limited_Record
(Id
: E
) return B
is
2101 end Is_Limited_Record
;
2103 function Is_Machine_Code_Subprogram
(Id
: E
) return B
is
2105 pragma Assert
(Is_Subprogram
(Id
));
2106 return Flag137
(Id
);
2107 end Is_Machine_Code_Subprogram
;
2109 function Is_Non_Static_Subtype
(Id
: E
) return B
is
2111 pragma Assert
(Is_Type
(Id
));
2112 return Flag109
(Id
);
2113 end Is_Non_Static_Subtype
;
2115 function Is_Null_Init_Proc
(Id
: E
) return B
is
2117 pragma Assert
(Ekind
(Id
) = E_Procedure
);
2118 return Flag178
(Id
);
2119 end Is_Null_Init_Proc
;
2121 function Is_Obsolescent
(Id
: E
) return B
is
2123 return Flag153
(Id
);
2126 function Is_Only_Out_Parameter
(Id
: E
) return B
is
2128 pragma Assert
(Is_Formal
(Id
));
2129 return Flag226
(Id
);
2130 end Is_Only_Out_Parameter
;
2132 function Is_Optional_Parameter
(Id
: E
) return B
is
2134 pragma Assert
(Is_Formal
(Id
));
2135 return Flag134
(Id
);
2136 end Is_Optional_Parameter
;
2138 function Is_Package_Body_Entity
(Id
: E
) return B
is
2140 return Flag160
(Id
);
2141 end Is_Package_Body_Entity
;
2143 function Is_Packed
(Id
: E
) return B
is
2145 return Flag51
(Implementation_Base_Type
(Id
));
2148 function Is_Packed_Array_Type
(Id
: E
) return B
is
2150 return Flag138
(Id
);
2151 end Is_Packed_Array_Type
;
2153 function Is_Potentially_Use_Visible
(Id
: E
) return B
is
2155 pragma Assert
(Nkind
(Id
) in N_Entity
);
2157 end Is_Potentially_Use_Visible
;
2159 function Is_Predicate_Function
(Id
: E
) return B
is
2161 pragma Assert
(Ekind
(Id
) = E_Function
or else Ekind
(Id
) = E_Procedure
);
2162 return Flag255
(Id
);
2163 end Is_Predicate_Function
;
2165 function Is_Predicate_Function_M
(Id
: E
) return B
is
2167 pragma Assert
(Ekind
(Id
) = E_Function
or else Ekind
(Id
) = E_Procedure
);
2168 return Flag256
(Id
);
2169 end Is_Predicate_Function_M
;
2171 function Is_Preelaborated
(Id
: E
) return B
is
2174 end Is_Preelaborated
;
2176 function Is_Primitive
(Id
: E
) return B
is
2179 (Is_Overloadable
(Id
)
2180 or else Ekind_In
(Id
, E_Generic_Function
, E_Generic_Procedure
));
2181 return Flag218
(Id
);
2184 function Is_Primitive_Wrapper
(Id
: E
) return B
is
2186 pragma Assert
(Ekind_In
(Id
, E_Function
, E_Procedure
));
2187 return Flag195
(Id
);
2188 end Is_Primitive_Wrapper
;
2190 function Is_Private_Composite
(Id
: E
) return B
is
2192 pragma Assert
(Is_Type
(Id
));
2193 return Flag107
(Id
);
2194 end Is_Private_Composite
;
2196 function Is_Private_Descendant
(Id
: E
) return B
is
2199 end Is_Private_Descendant
;
2201 function Is_Private_Primitive
(Id
: E
) return B
is
2203 pragma Assert
(Ekind_In
(Id
, E_Function
, E_Procedure
));
2204 return Flag245
(Id
);
2205 end Is_Private_Primitive
;
2207 function Is_Processed_Transient
(Id
: E
) return B
is
2209 pragma Assert
(Ekind_In
(Id
, E_Constant
, E_Variable
));
2210 return Flag252
(Id
);
2211 end Is_Processed_Transient
;
2213 function Is_Public
(Id
: E
) return B
is
2215 pragma Assert
(Nkind
(Id
) in N_Entity
);
2219 function Is_Pure
(Id
: E
) return B
is
2224 function Is_Pure_Unit_Access_Type
(Id
: E
) return B
is
2226 pragma Assert
(Is_Access_Type
(Id
));
2227 return Flag189
(Id
);
2228 end Is_Pure_Unit_Access_Type
;
2230 function Is_RACW_Stub_Type
(Id
: E
) return B
is
2232 pragma Assert
(Is_Type
(Id
));
2233 return Flag244
(Id
);
2234 end Is_RACW_Stub_Type
;
2236 function Is_Raised
(Id
: E
) return B
is
2238 pragma Assert
(Ekind
(Id
) = E_Exception
);
2239 return Flag224
(Id
);
2242 function Is_Remote_Call_Interface
(Id
: E
) return B
is
2245 end Is_Remote_Call_Interface
;
2247 function Is_Remote_Types
(Id
: E
) return B
is
2250 end Is_Remote_Types
;
2252 function Is_Renaming_Of_Object
(Id
: E
) return B
is
2254 return Flag112
(Id
);
2255 end Is_Renaming_Of_Object
;
2257 function Is_Return_Object
(Id
: E
) return B
is
2259 return Flag209
(Id
);
2260 end Is_Return_Object
;
2262 function Is_Safe_To_Reevaluate
(Id
: E
) return B
is
2264 return Flag249
(Id
);
2265 end Is_Safe_To_Reevaluate
;
2267 function Is_Shared_Passive
(Id
: E
) return B
is
2270 end Is_Shared_Passive
;
2272 function Is_Statically_Allocated
(Id
: E
) return B
is
2275 end Is_Statically_Allocated
;
2277 function Is_Tag
(Id
: E
) return B
is
2279 pragma Assert
(Nkind
(Id
) in N_Entity
);
2283 function Is_Tagged_Type
(Id
: E
) return B
is
2288 function Is_Thunk
(Id
: E
) return B
is
2290 return Flag225
(Id
);
2293 function Is_Trivial_Subprogram
(Id
: E
) return B
is
2295 return Flag235
(Id
);
2296 end Is_Trivial_Subprogram
;
2298 function Is_True_Constant
(Id
: E
) return B
is
2300 return Flag163
(Id
);
2301 end Is_True_Constant
;
2303 function Is_Unchecked_Union
(Id
: E
) return B
is
2305 return Flag117
(Implementation_Base_Type
(Id
));
2306 end Is_Unchecked_Union
;
2308 function Is_Underlying_Record_View
(Id
: E
) return B
is
2310 return Flag246
(Id
);
2311 end Is_Underlying_Record_View
;
2313 function Is_Unsigned_Type
(Id
: E
) return B
is
2315 pragma Assert
(Is_Type
(Id
));
2316 return Flag144
(Id
);
2317 end Is_Unsigned_Type
;
2319 function Is_Valued_Procedure
(Id
: E
) return B
is
2321 pragma Assert
(Ekind
(Id
) = E_Procedure
);
2322 return Flag127
(Id
);
2323 end Is_Valued_Procedure
;
2325 function Is_Visible_Formal
(Id
: E
) return B
is
2327 return Flag206
(Id
);
2328 end Is_Visible_Formal
;
2330 function Is_Visible_Lib_Unit
(Id
: E
) return B
is
2332 return Flag116
(Id
);
2333 end Is_Visible_Lib_Unit
;
2335 function Is_VMS_Exception
(Id
: E
) return B
is
2337 return Flag133
(Id
);
2338 end Is_VMS_Exception
;
2340 function Is_Volatile
(Id
: E
) return B
is
2342 pragma Assert
(Nkind
(Id
) in N_Entity
);
2344 if Is_Type
(Id
) then
2345 return Flag16
(Base_Type
(Id
));
2351 function Itype_Printed
(Id
: E
) return B
is
2353 pragma Assert
(Is_Itype
(Id
));
2354 return Flag202
(Id
);
2357 function Kill_Elaboration_Checks
(Id
: E
) return B
is
2360 end Kill_Elaboration_Checks
;
2362 function Kill_Range_Checks
(Id
: E
) return B
is
2365 end Kill_Range_Checks
;
2367 function Known_To_Have_Preelab_Init
(Id
: E
) return B
is
2369 pragma Assert
(Is_Type
(Id
));
2370 return Flag207
(Id
);
2371 end Known_To_Have_Preelab_Init
;
2373 function Last_Assignment
(Id
: E
) return N
is
2375 pragma Assert
(Is_Assignable
(Id
));
2377 end Last_Assignment
;
2379 function Last_Entity
(Id
: E
) return E
is
2384 function Limited_View
(Id
: E
) return E
is
2386 pragma Assert
(Ekind
(Id
) = E_Package
);
2390 function Lit_Indexes
(Id
: E
) return E
is
2392 pragma Assert
(Is_Enumeration_Type
(Id
));
2396 function Lit_Strings
(Id
: E
) return E
is
2398 pragma Assert
(Is_Enumeration_Type
(Id
));
2402 function Low_Bound_Tested
(Id
: E
) return B
is
2404 return Flag205
(Id
);
2405 end Low_Bound_Tested
;
2407 function Machine_Radix_10
(Id
: E
) return B
is
2409 pragma Assert
(Is_Decimal_Fixed_Point_Type
(Id
));
2411 end Machine_Radix_10
;
2413 function Master_Id
(Id
: E
) return E
is
2415 pragma Assert
(Is_Access_Type
(Id
));
2419 function Materialize_Entity
(Id
: E
) return B
is
2421 return Flag168
(Id
);
2422 end Materialize_Entity
;
2424 function Mechanism
(Id
: E
) return M
is
2426 pragma Assert
(Ekind
(Id
) = E_Function
or else Is_Formal
(Id
));
2427 return UI_To_Int
(Uint8
(Id
));
2430 function Modulus
(Id
: E
) return Uint
is
2432 pragma Assert
(Is_Modular_Integer_Type
(Id
));
2433 return Uint17
(Base_Type
(Id
));
2436 function Must_Be_On_Byte_Boundary
(Id
: E
) return B
is
2438 pragma Assert
(Is_Type
(Id
));
2439 return Flag183
(Id
);
2440 end Must_Be_On_Byte_Boundary
;
2442 function Must_Have_Preelab_Init
(Id
: E
) return B
is
2444 pragma Assert
(Is_Type
(Id
));
2445 return Flag208
(Id
);
2446 end Must_Have_Preelab_Init
;
2448 function Needs_Debug_Info
(Id
: E
) return B
is
2450 return Flag147
(Id
);
2451 end Needs_Debug_Info
;
2453 function Needs_No_Actuals
(Id
: E
) return B
is
2456 (Is_Overloadable
(Id
)
2457 or else Ekind_In
(Id
, E_Subprogram_Type
, E_Entry_Family
));
2459 end Needs_No_Actuals
;
2461 function Never_Set_In_Source
(Id
: E
) return B
is
2463 return Flag115
(Id
);
2464 end Never_Set_In_Source
;
2466 function Next_Inlined_Subprogram
(Id
: E
) return E
is
2469 end Next_Inlined_Subprogram
;
2471 function No_Pool_Assigned
(Id
: E
) return B
is
2473 pragma Assert
(Is_Access_Type
(Id
));
2474 return Flag131
(Root_Type
(Id
));
2475 end No_Pool_Assigned
;
2477 function No_Return
(Id
: E
) return B
is
2479 return Flag113
(Id
);
2482 function No_Strict_Aliasing
(Id
: E
) return B
is
2484 pragma Assert
(Is_Access_Type
(Id
));
2485 return Flag136
(Base_Type
(Id
));
2486 end No_Strict_Aliasing
;
2488 function Non_Binary_Modulus
(Id
: E
) return B
is
2490 pragma Assert
(Is_Type
(Id
));
2491 return Flag58
(Base_Type
(Id
));
2492 end Non_Binary_Modulus
;
2494 function Non_Limited_View
(Id
: E
) return E
is
2496 pragma Assert
(Ekind
(Id
) in Incomplete_Kind
);
2498 end Non_Limited_View
;
2500 function Nonzero_Is_True
(Id
: E
) return B
is
2502 pragma Assert
(Root_Type
(Id
) = Standard_Boolean
);
2503 return Flag162
(Base_Type
(Id
));
2504 end Nonzero_Is_True
;
2506 function Normalized_First_Bit
(Id
: E
) return U
is
2508 pragma Assert
(Ekind_In
(Id
, E_Component
, E_Discriminant
));
2510 end Normalized_First_Bit
;
2512 function Normalized_Position
(Id
: E
) return U
is
2514 pragma Assert
(Ekind_In
(Id
, E_Component
, E_Discriminant
));
2516 end Normalized_Position
;
2518 function Normalized_Position_Max
(Id
: E
) return U
is
2520 pragma Assert
(Ekind_In
(Id
, E_Component
, E_Discriminant
));
2522 end Normalized_Position_Max
;
2524 function OK_To_Rename
(Id
: E
) return B
is
2526 pragma Assert
(Ekind
(Id
) = E_Variable
);
2527 return Flag247
(Id
);
2530 function OK_To_Reorder_Components
(Id
: E
) return B
is
2532 pragma Assert
(Is_Record_Type
(Id
));
2533 return Flag239
(Base_Type
(Id
));
2534 end OK_To_Reorder_Components
;
2536 function Optimize_Alignment_Space
(Id
: E
) return B
is
2539 (Is_Type
(Id
) or else Ekind_In
(Id
, E_Constant
, E_Variable
));
2540 return Flag241
(Id
);
2541 end Optimize_Alignment_Space
;
2543 function Optimize_Alignment_Time
(Id
: E
) return B
is
2546 (Is_Type
(Id
) or else Ekind_In
(Id
, E_Constant
, E_Variable
));
2547 return Flag242
(Id
);
2548 end Optimize_Alignment_Time
;
2550 function Original_Access_Type
(Id
: E
) return E
is
2552 pragma Assert
(Ekind
(Id
) = E_Access_Subprogram_Type
);
2554 end Original_Access_Type
;
2556 function Original_Array_Type
(Id
: E
) return E
is
2558 pragma Assert
(Is_Array_Type
(Id
) or else Is_Modular_Integer_Type
(Id
));
2560 end Original_Array_Type
;
2562 function Original_Record_Component
(Id
: E
) return E
is
2564 pragma Assert
(Ekind_In
(Id
, E_Void
, E_Component
, E_Discriminant
));
2566 end Original_Record_Component
;
2568 function Overlays_Constant
(Id
: E
) return B
is
2570 return Flag243
(Id
);
2571 end Overlays_Constant
;
2573 function Overridden_Operation
(Id
: E
) return E
is
2576 end Overridden_Operation
;
2578 function Package_Instantiation
(Id
: E
) return N
is
2580 pragma Assert
(Ekind_In
(Id
, E_Package
, E_Generic_Package
));
2582 end Package_Instantiation
;
2584 function Packed_Array_Type
(Id
: E
) return E
is
2586 pragma Assert
(Is_Array_Type
(Id
));
2588 end Packed_Array_Type
;
2590 function Parent_Subtype
(Id
: E
) return E
is
2592 pragma Assert
(Is_Record_Type
(Id
));
2593 return Node19
(Base_Type
(Id
));
2596 function Postcondition_Proc
(Id
: E
) return E
is
2598 pragma Assert
(Ekind
(Id
) = E_Procedure
);
2600 end Postcondition_Proc
;
2602 function PPC_Wrapper
(Id
: E
) return E
is
2604 pragma Assert
(Ekind_In
(Id
, E_Entry
, E_Entry_Family
));
2608 function Prival
(Id
: E
) return E
is
2610 pragma Assert
(Is_Protected_Component
(Id
));
2614 function Prival_Link
(Id
: E
) return E
is
2616 pragma Assert
(Ekind_In
(Id
, E_Constant
, E_Variable
));
2620 function Private_Dependents
(Id
: E
) return L
is
2622 pragma Assert
(Is_Incomplete_Or_Private_Type
(Id
));
2623 return Elist18
(Id
);
2624 end Private_Dependents
;
2626 function Private_View
(Id
: E
) return N
is
2628 pragma Assert
(Is_Private_Type
(Id
));
2632 function Protected_Body_Subprogram
(Id
: E
) return E
is
2634 pragma Assert
(Is_Subprogram
(Id
) or else Is_Entry
(Id
));
2636 end Protected_Body_Subprogram
;
2638 function Protected_Formal
(Id
: E
) return E
is
2640 pragma Assert
(Is_Formal
(Id
));
2642 end Protected_Formal
;
2644 function Protection_Object
(Id
: E
) return E
is
2647 (Ekind_In
(Id
, E_Entry
, E_Entry_Family
, E_Function
, E_Procedure
));
2649 end Protection_Object
;
2651 function Reachable
(Id
: E
) return B
is
2656 function Referenced
(Id
: E
) return B
is
2658 return Flag156
(Id
);
2661 function Referenced_As_LHS
(Id
: E
) return B
is
2664 end Referenced_As_LHS
;
2666 function Referenced_As_Out_Parameter
(Id
: E
) return B
is
2668 return Flag227
(Id
);
2669 end Referenced_As_Out_Parameter
;
2671 function Refined_State
(Id
: E
) return E
is
2673 pragma Assert
(Ekind
(Id
) = E_Abstract_State
);
2677 function Register_Exception_Call
(Id
: E
) return N
is
2679 pragma Assert
(Ekind
(Id
) = E_Exception
);
2681 end Register_Exception_Call
;
2683 function Related_Array_Object
(Id
: E
) return E
is
2685 pragma Assert
(Is_Array_Type
(Id
));
2687 end Related_Array_Object
;
2689 function Related_Expression
(Id
: E
) return N
is
2691 pragma Assert
(Ekind
(Id
) in Type_Kind
2692 or else Ekind_In
(Id
, E_Constant
, E_Variable
));
2694 end Related_Expression
;
2696 function Related_Instance
(Id
: E
) return E
is
2698 pragma Assert
(Ekind_In
(Id
, E_Package
, E_Package_Body
));
2700 end Related_Instance
;
2702 function Related_Type
(Id
: E
) return E
is
2704 pragma Assert
(Ekind_In
(Id
, E_Component
, E_Constant
, E_Variable
));
2708 function Relative_Deadline_Variable
(Id
: E
) return E
is
2710 pragma Assert
(Is_Task_Type
(Id
));
2711 return Node26
(Implementation_Base_Type
(Id
));
2712 end Relative_Deadline_Variable
;
2714 function Renamed_Entity
(Id
: E
) return N
is
2719 function Renamed_In_Spec
(Id
: E
) return B
is
2721 pragma Assert
(Ekind
(Id
) = E_Package
);
2722 return Flag231
(Id
);
2723 end Renamed_In_Spec
;
2725 function Renamed_Object
(Id
: E
) return N
is
2730 function Renaming_Map
(Id
: E
) return U
is
2735 function Requires_Overriding
(Id
: E
) return B
is
2737 pragma Assert
(Is_Overloadable
(Id
));
2738 return Flag213
(Id
);
2739 end Requires_Overriding
;
2741 function Return_Present
(Id
: E
) return B
is
2746 function Return_Applies_To
(Id
: E
) return N
is
2749 end Return_Applies_To
;
2751 function Returns_By_Ref
(Id
: E
) return B
is
2756 function Reverse_Bit_Order
(Id
: E
) return B
is
2758 pragma Assert
(Is_Record_Type
(Id
));
2759 return Flag164
(Base_Type
(Id
));
2760 end Reverse_Bit_Order
;
2762 function Reverse_Storage_Order
(Id
: E
) return B
is
2764 pragma Assert
(Is_Record_Type
(Id
) or else Is_Array_Type
(Id
));
2765 return Flag93
(Base_Type
(Id
));
2766 end Reverse_Storage_Order
;
2768 function RM_Size
(Id
: E
) return U
is
2770 pragma Assert
(Is_Type
(Id
));
2774 function Scalar_Range
(Id
: E
) return N
is
2779 function Scale_Value
(Id
: E
) return U
is
2784 function Scope_Depth_Value
(Id
: E
) return U
is
2787 end Scope_Depth_Value
;
2789 function Sec_Stack_Needed_For_Return
(Id
: E
) return B
is
2791 return Flag167
(Id
);
2792 end Sec_Stack_Needed_For_Return
;
2794 function Shadow_Entities
(Id
: E
) return S
is
2796 pragma Assert
(Ekind_In
(Id
, E_Package
, E_Generic_Package
));
2798 end Shadow_Entities
;
2800 function Shared_Var_Procs_Instance
(Id
: E
) return E
is
2802 pragma Assert
(Ekind
(Id
) = E_Variable
);
2804 end Shared_Var_Procs_Instance
;
2806 function Size_Check_Code
(Id
: E
) return N
is
2808 pragma Assert
(Ekind_In
(Id
, E_Constant
, E_Variable
));
2810 end Size_Check_Code
;
2812 function Size_Depends_On_Discriminant
(Id
: E
) return B
is
2814 return Flag177
(Id
);
2815 end Size_Depends_On_Discriminant
;
2817 function Size_Known_At_Compile_Time
(Id
: E
) return B
is
2820 end Size_Known_At_Compile_Time
;
2822 function Small_Value
(Id
: E
) return R
is
2824 pragma Assert
(Is_Fixed_Point_Type
(Id
));
2825 return Ureal21
(Id
);
2828 function Spec_Entity
(Id
: E
) return E
is
2830 pragma Assert
(Ekind
(Id
) = E_Package_Body
or else Is_Formal
(Id
));
2834 function Static_Predicate
(Id
: E
) return S
is
2836 pragma Assert
(Is_Discrete_Type
(Id
));
2838 end Static_Predicate
;
2840 function Status_Flag_Or_Transient_Decl
(Id
: E
) return N
is
2842 pragma Assert
(Ekind_In
(Id
, E_Constant
, E_Variable
));
2844 end Status_Flag_Or_Transient_Decl
;
2846 function Storage_Size_Variable
(Id
: E
) return E
is
2848 pragma Assert
(Is_Access_Type
(Id
) or else Is_Task_Type
(Id
));
2849 return Node15
(Implementation_Base_Type
(Id
));
2850 end Storage_Size_Variable
;
2852 function Static_Elaboration_Desired
(Id
: E
) return B
is
2854 pragma Assert
(Ekind
(Id
) = E_Package
);
2856 end Static_Elaboration_Desired
;
2858 function Static_Initialization
(Id
: E
) return N
is
2861 (Ekind
(Id
) = E_Procedure
and then not Is_Dispatching_Operation
(Id
));
2863 end Static_Initialization
;
2865 function Stored_Constraint
(Id
: E
) return L
is
2868 (Is_Composite_Type
(Id
) and then not Is_Array_Type
(Id
));
2869 return Elist23
(Id
);
2870 end Stored_Constraint
;
2872 function Strict_Alignment
(Id
: E
) return B
is
2874 return Flag145
(Implementation_Base_Type
(Id
));
2875 end Strict_Alignment
;
2877 function String_Literal_Length
(Id
: E
) return U
is
2880 end String_Literal_Length
;
2882 function String_Literal_Low_Bound
(Id
: E
) return N
is
2885 end String_Literal_Low_Bound
;
2887 function Subprograms_For_Type
(Id
: E
) return E
is
2889 pragma Assert
(Is_Type
(Id
) or else Is_Subprogram
(Id
));
2891 end Subprograms_For_Type
;
2893 function Suppress_Elaboration_Warnings
(Id
: E
) return B
is
2895 return Flag148
(Id
);
2896 end Suppress_Elaboration_Warnings
;
2898 function Suppress_Initialization
(Id
: E
) return B
is
2900 pragma Assert
(Is_Type
(Id
));
2901 return Flag105
(Id
);
2902 end Suppress_Initialization
;
2904 function Suppress_Style_Checks
(Id
: E
) return B
is
2906 return Flag165
(Id
);
2907 end Suppress_Style_Checks
;
2909 function Suppress_Value_Tracking_On_Call
(Id
: E
) return B
is
2911 return Flag217
(Id
);
2912 end Suppress_Value_Tracking_On_Call
;
2914 function Task_Body_Procedure
(Id
: E
) return N
is
2916 pragma Assert
(Ekind
(Id
) in Task_Kind
);
2918 end Task_Body_Procedure
;
2920 function Thunk_Entity
(Id
: E
) return E
is
2922 pragma Assert
(Ekind_In
(Id
, E_Function
, E_Procedure
)
2923 and then Is_Thunk
(Id
));
2927 function Treat_As_Volatile
(Id
: E
) return B
is
2930 end Treat_As_Volatile
;
2932 function Underlying_Full_View
(Id
: E
) return E
is
2934 pragma Assert
(Ekind
(Id
) in Private_Kind
);
2936 end Underlying_Full_View
;
2938 function Underlying_Record_View
(Id
: E
) return E
is
2941 end Underlying_Record_View
;
2943 function Universal_Aliasing
(Id
: E
) return B
is
2945 pragma Assert
(Is_Type
(Id
));
2946 return Flag216
(Implementation_Base_Type
(Id
));
2947 end Universal_Aliasing
;
2949 function Unset_Reference
(Id
: E
) return N
is
2952 end Unset_Reference
;
2954 function Used_As_Generic_Actual
(Id
: E
) return B
is
2956 return Flag222
(Id
);
2957 end Used_As_Generic_Actual
;
2959 function Uses_Lock_Free
(Id
: E
) return B
is
2961 pragma Assert
(Is_Protected_Type
(Id
));
2962 return Flag188
(Id
);
2965 function Uses_Sec_Stack
(Id
: E
) return B
is
2970 function Warnings_Off
(Id
: E
) return B
is
2975 function Warnings_Off_Used
(Id
: E
) return B
is
2977 return Flag236
(Id
);
2978 end Warnings_Off_Used
;
2980 function Warnings_Off_Used_Unmodified
(Id
: E
) return B
is
2982 return Flag237
(Id
);
2983 end Warnings_Off_Used_Unmodified
;
2985 function Warnings_Off_Used_Unreferenced
(Id
: E
) return B
is
2987 return Flag238
(Id
);
2988 end Warnings_Off_Used_Unreferenced
;
2990 function Wrapped_Entity
(Id
: E
) return E
is
2992 pragma Assert
(Ekind_In
(Id
, E_Function
, E_Procedure
)
2993 and then Is_Primitive_Wrapper
(Id
));
2997 function Was_Hidden
(Id
: E
) return B
is
2999 return Flag196
(Id
);
3002 ------------------------------
3003 -- Classification Functions --
3004 ------------------------------
3006 function Is_Access_Type
(Id
: E
) return B
is
3008 return Ekind
(Id
) in Access_Kind
;
3011 function Is_Access_Protected_Subprogram_Type
(Id
: E
) return B
is
3013 return Ekind
(Id
) in Access_Protected_Kind
;
3014 end Is_Access_Protected_Subprogram_Type
;
3016 function Is_Access_Subprogram_Type
(Id
: E
) return B
is
3018 return Ekind
(Id
) in Access_Subprogram_Kind
;
3019 end Is_Access_Subprogram_Type
;
3021 function Is_Aggregate_Type
(Id
: E
) return B
is
3023 return Ekind
(Id
) in Aggregate_Kind
;
3024 end Is_Aggregate_Type
;
3026 function Is_Array_Type
(Id
: E
) return B
is
3028 return Ekind
(Id
) in Array_Kind
;
3031 function Is_Assignable
(Id
: E
) return B
is
3033 return Ekind
(Id
) in Assignable_Kind
;
3036 function Is_Class_Wide_Type
(Id
: E
) return B
is
3038 return Ekind
(Id
) in Class_Wide_Kind
;
3039 end Is_Class_Wide_Type
;
3041 function Is_Composite_Type
(Id
: E
) return B
is
3043 return Ekind
(Id
) in Composite_Kind
;
3044 end Is_Composite_Type
;
3046 function Is_Concurrent_Body
(Id
: E
) return B
is
3048 return Ekind
(Id
) in
3049 Concurrent_Body_Kind
;
3050 end Is_Concurrent_Body
;
3052 function Is_Concurrent_Record_Type
(Id
: E
) return B
is
3055 end Is_Concurrent_Record_Type
;
3057 function Is_Concurrent_Type
(Id
: E
) return B
is
3059 return Ekind
(Id
) in Concurrent_Kind
;
3060 end Is_Concurrent_Type
;
3062 function Is_Decimal_Fixed_Point_Type
(Id
: E
) return B
is
3064 return Ekind
(Id
) in
3065 Decimal_Fixed_Point_Kind
;
3066 end Is_Decimal_Fixed_Point_Type
;
3068 function Is_Digits_Type
(Id
: E
) return B
is
3070 return Ekind
(Id
) in Digits_Kind
;
3073 function Is_Discrete_Or_Fixed_Point_Type
(Id
: E
) return B
is
3075 return Ekind
(Id
) in Discrete_Or_Fixed_Point_Kind
;
3076 end Is_Discrete_Or_Fixed_Point_Type
;
3078 function Is_Discrete_Type
(Id
: E
) return B
is
3080 return Ekind
(Id
) in Discrete_Kind
;
3081 end Is_Discrete_Type
;
3083 function Is_Elementary_Type
(Id
: E
) return B
is
3085 return Ekind
(Id
) in Elementary_Kind
;
3086 end Is_Elementary_Type
;
3088 function Is_Entry
(Id
: E
) return B
is
3090 return Ekind
(Id
) in Entry_Kind
;
3093 function Is_Enumeration_Type
(Id
: E
) return B
is
3095 return Ekind
(Id
) in
3097 end Is_Enumeration_Type
;
3099 function Is_Fixed_Point_Type
(Id
: E
) return B
is
3101 return Ekind
(Id
) in
3103 end Is_Fixed_Point_Type
;
3105 function Is_Floating_Point_Type
(Id
: E
) return B
is
3107 return Ekind
(Id
) in Float_Kind
;
3108 end Is_Floating_Point_Type
;
3110 function Is_Formal
(Id
: E
) return B
is
3112 return Ekind
(Id
) in Formal_Kind
;
3115 function Is_Formal_Object
(Id
: E
) return B
is
3117 return Ekind
(Id
) in Formal_Object_Kind
;
3118 end Is_Formal_Object
;
3120 function Is_Generic_Subprogram
(Id
: E
) return B
is
3122 return Ekind
(Id
) in Generic_Subprogram_Kind
;
3123 end Is_Generic_Subprogram
;
3125 function Is_Generic_Unit
(Id
: E
) return B
is
3127 return Ekind
(Id
) in Generic_Unit_Kind
;
3128 end Is_Generic_Unit
;
3130 function Is_Incomplete_Or_Private_Type
(Id
: E
) return B
is
3132 return Ekind
(Id
) in
3133 Incomplete_Or_Private_Kind
;
3134 end Is_Incomplete_Or_Private_Type
;
3136 function Is_Incomplete_Type
(Id
: E
) return B
is
3138 return Ekind
(Id
) in
3140 end Is_Incomplete_Type
;
3142 function Is_Integer_Type
(Id
: E
) return B
is
3144 return Ekind
(Id
) in Integer_Kind
;
3145 end Is_Integer_Type
;
3147 function Is_Modular_Integer_Type
(Id
: E
) return B
is
3149 return Ekind
(Id
) in
3150 Modular_Integer_Kind
;
3151 end Is_Modular_Integer_Type
;
3153 function Is_Named_Number
(Id
: E
) return B
is
3155 return Ekind
(Id
) in Named_Kind
;
3156 end Is_Named_Number
;
3158 function Is_Numeric_Type
(Id
: E
) return B
is
3160 return Ekind
(Id
) in Numeric_Kind
;
3161 end Is_Numeric_Type
;
3163 function Is_Object
(Id
: E
) return B
is
3165 return Ekind
(Id
) in Object_Kind
;
3168 function Is_Ordinary_Fixed_Point_Type
(Id
: E
) return B
is
3170 return Ekind
(Id
) in
3171 Ordinary_Fixed_Point_Kind
;
3172 end Is_Ordinary_Fixed_Point_Type
;
3174 function Is_Overloadable
(Id
: E
) return B
is
3176 return Ekind
(Id
) in Overloadable_Kind
;
3177 end Is_Overloadable
;
3179 function Is_Private_Type
(Id
: E
) return B
is
3181 return Ekind
(Id
) in Private_Kind
;
3182 end Is_Private_Type
;
3184 function Is_Protected_Type
(Id
: E
) return B
is
3186 return Ekind
(Id
) in Protected_Kind
;
3187 end Is_Protected_Type
;
3189 function Is_Real_Type
(Id
: E
) return B
is
3191 return Ekind
(Id
) in Real_Kind
;
3194 function Is_Record_Type
(Id
: E
) return B
is
3196 return Ekind
(Id
) in Record_Kind
;
3199 function Is_Scalar_Type
(Id
: E
) return B
is
3201 return Ekind
(Id
) in Scalar_Kind
;
3204 function Is_Signed_Integer_Type
(Id
: E
) return B
is
3206 return Ekind
(Id
) in Signed_Integer_Kind
;
3207 end Is_Signed_Integer_Type
;
3209 function Is_Subprogram
(Id
: E
) return B
is
3211 return Ekind
(Id
) in Subprogram_Kind
;
3214 function Is_Task_Type
(Id
: E
) return B
is
3216 return Ekind
(Id
) in Task_Kind
;
3219 function Is_Type
(Id
: E
) return B
is
3221 return Ekind
(Id
) in Type_Kind
;
3224 ------------------------------
3225 -- Attribute Set Procedures --
3226 ------------------------------
3228 -- Note: in many of these set procedures an "obvious" assertion is missing.
3229 -- The reason for this is that in many cases, a field is set before the
3230 -- Ekind field is set, so that the field is set when Ekind = E_Void. It
3231 -- it is possible to add assertions that specifically include the E_Void
3232 -- possibility, but in some cases, we just omit the assertions.
3234 procedure Set_Abstract_States
(Id
: E
; V
: L
) is
3236 pragma Assert
(Ekind_In
(Id
, E_Generic_Package
, E_Package
));
3237 Set_Elist25
(Id
, V
);
3238 end Set_Abstract_States
;
3240 procedure Set_Accept_Address
(Id
: E
; V
: L
) is
3242 Set_Elist21
(Id
, V
);
3243 end Set_Accept_Address
;
3245 procedure Set_Access_Disp_Table
(Id
: E
; V
: L
) is
3247 pragma Assert
(Ekind
(Id
) = E_Record_Type
3248 and then Id
= Implementation_Base_Type
(Id
));
3249 pragma Assert
(V
= No_Elist
or else Is_Tagged_Type
(Id
));
3250 Set_Elist16
(Id
, V
);
3251 end Set_Access_Disp_Table
;
3253 procedure Set_Associated_Formal_Package
(Id
: E
; V
: E
) is
3256 end Set_Associated_Formal_Package
;
3258 procedure Set_Associated_Node_For_Itype
(Id
: E
; V
: E
) is
3261 end Set_Associated_Node_For_Itype
;
3263 procedure Set_Associated_Storage_Pool
(Id
: E
; V
: E
) is
3265 pragma Assert
(Is_Access_Type
(Id
) and then Is_Base_Type
(Id
));
3267 end Set_Associated_Storage_Pool
;
3269 procedure Set_Actual_Subtype
(Id
: E
; V
: E
) is
3272 (Ekind_In
(Id
, E_Constant
, E_Variable
, E_Generic_In_Out_Parameter
)
3273 or else Is_Formal
(Id
));
3275 end Set_Actual_Subtype
;
3277 procedure Set_Address_Taken
(Id
: E
; V
: B
:= True) is
3279 Set_Flag104
(Id
, V
);
3280 end Set_Address_Taken
;
3282 procedure Set_Alias
(Id
: E
; V
: E
) is
3285 (Is_Overloadable
(Id
) or else Ekind
(Id
) = E_Subprogram_Type
);
3289 procedure Set_Alignment
(Id
: E
; V
: U
) is
3291 pragma Assert
(Is_Type
(Id
)
3292 or else Is_Formal
(Id
)
3293 or else Ekind_In
(Id
, E_Loop_Parameter
,
3300 procedure Set_Barrier_Function
(Id
: E
; V
: N
) is
3302 pragma Assert
(Is_Entry
(Id
));
3304 end Set_Barrier_Function
;
3306 procedure Set_Block_Node
(Id
: E
; V
: N
) is
3308 pragma Assert
(Ekind
(Id
) = E_Block
);
3312 procedure Set_Body_Entity
(Id
: E
; V
: E
) is
3314 pragma Assert
(Ekind_In
(Id
, E_Package
, E_Generic_Package
));
3316 end Set_Body_Entity
;
3318 procedure Set_Body_Needed_For_SAL
(Id
: E
; V
: B
:= True) is
3321 (Ekind
(Id
) = E_Package
3322 or else Is_Subprogram
(Id
)
3323 or else Is_Generic_Unit
(Id
));
3325 end Set_Body_Needed_For_SAL
;
3327 procedure Set_C_Pass_By_Copy
(Id
: E
; V
: B
:= True) is
3329 pragma Assert
(Is_Record_Type
(Id
) and then Is_Base_Type
(Id
));
3330 Set_Flag125
(Id
, V
);
3331 end Set_C_Pass_By_Copy
;
3333 procedure Set_Can_Never_Be_Null
(Id
: E
; V
: B
:= True) is
3336 end Set_Can_Never_Be_Null
;
3338 procedure Set_Checks_May_Be_Suppressed
(Id
: E
; V
: B
:= True) is
3341 end Set_Checks_May_Be_Suppressed
;
3343 procedure Set_Class_Wide_Type
(Id
: E
; V
: E
) is
3345 pragma Assert
(Is_Type
(Id
));
3347 end Set_Class_Wide_Type
;
3349 procedure Set_Cloned_Subtype
(Id
: E
; V
: E
) is
3351 pragma Assert
(Ekind_In
(Id
, E_Record_Subtype
, E_Class_Wide_Subtype
));
3353 end Set_Cloned_Subtype
;
3355 procedure Set_Component_Bit_Offset
(Id
: E
; V
: U
) is
3357 pragma Assert
(Ekind_In
(Id
, E_Component
, E_Discriminant
));
3359 end Set_Component_Bit_Offset
;
3361 procedure Set_Component_Clause
(Id
: E
; V
: N
) is
3363 pragma Assert
(Ekind_In
(Id
, E_Component
, E_Discriminant
));
3365 end Set_Component_Clause
;
3367 procedure Set_Component_Size
(Id
: E
; V
: U
) is
3369 pragma Assert
(Is_Array_Type
(Id
) and then Is_Base_Type
(Id
));
3371 end Set_Component_Size
;
3373 procedure Set_Component_Type
(Id
: E
; V
: E
) is
3375 pragma Assert
(Is_Array_Type
(Id
) and then Is_Base_Type
(Id
));
3377 end Set_Component_Type
;
3379 procedure Set_Corresponding_Concurrent_Type
(Id
: E
; V
: E
) is
3382 (Ekind
(Id
) = E_Record_Type
and then Is_Concurrent_Type
(V
));
3384 end Set_Corresponding_Concurrent_Type
;
3386 procedure Set_Corresponding_Discriminant
(Id
: E
; V
: E
) is
3388 pragma Assert
(Ekind
(Id
) = E_Discriminant
);
3390 end Set_Corresponding_Discriminant
;
3392 procedure Set_Corresponding_Equality
(Id
: E
; V
: E
) is
3395 (Ekind
(Id
) = E_Function
3396 and then not Comes_From_Source
(Id
)
3397 and then Chars
(Id
) = Name_Op_Ne
);
3399 end Set_Corresponding_Equality
;
3401 procedure Set_Corresponding_Protected_Entry
(Id
: E
; V
: E
) is
3403 pragma Assert
(Ekind_In
(Id
, E_Void
, E_Subprogram_Body
));
3405 end Set_Corresponding_Protected_Entry
;
3407 procedure Set_Corresponding_Record_Type
(Id
: E
; V
: E
) is
3409 pragma Assert
(Is_Concurrent_Type
(Id
));
3411 end Set_Corresponding_Record_Type
;
3413 procedure Set_Corresponding_Remote_Type
(Id
: E
; V
: E
) is
3416 end Set_Corresponding_Remote_Type
;
3418 procedure Set_Current_Use_Clause
(Id
: E
; V
: E
) is
3420 pragma Assert
(Ekind
(Id
) = E_Package
or else Is_Type
(Id
));
3422 end Set_Current_Use_Clause
;
3424 procedure Set_Current_Value
(Id
: E
; V
: N
) is
3426 pragma Assert
(Ekind
(Id
) in Object_Kind
or else Ekind
(Id
) = E_Void
);
3428 end Set_Current_Value
;
3430 procedure Set_CR_Discriminant
(Id
: E
; V
: E
) is
3433 end Set_CR_Discriminant
;
3435 procedure Set_Debug_Info_Off
(Id
: E
; V
: B
:= True) is
3437 Set_Flag166
(Id
, V
);
3438 end Set_Debug_Info_Off
;
3440 procedure Set_Debug_Renaming_Link
(Id
: E
; V
: E
) is
3443 end Set_Debug_Renaming_Link
;
3445 procedure Set_Default_Aspect_Component_Value
(Id
: E
; V
: E
) is
3447 pragma Assert
(Is_Array_Type
(Id
));
3449 end Set_Default_Aspect_Component_Value
;
3451 procedure Set_Default_Aspect_Value
(Id
: E
; V
: E
) is
3453 pragma Assert
(Is_Scalar_Type
(Id
));
3455 end Set_Default_Aspect_Value
;
3457 procedure Set_Default_Expr_Function
(Id
: E
; V
: E
) is
3459 pragma Assert
(Is_Formal
(Id
));
3461 end Set_Default_Expr_Function
;
3463 procedure Set_Default_Expressions_Processed
(Id
: E
; V
: B
:= True) is
3465 Set_Flag108
(Id
, V
);
3466 end Set_Default_Expressions_Processed
;
3468 procedure Set_Default_Value
(Id
: E
; V
: N
) is
3470 pragma Assert
(Is_Formal
(Id
));
3472 end Set_Default_Value
;
3474 procedure Set_Delay_Cleanups
(Id
: E
; V
: B
:= True) is
3478 or else Is_Task_Type
(Id
)
3479 or else Ekind
(Id
) = E_Block
);
3480 Set_Flag114
(Id
, V
);
3481 end Set_Delay_Cleanups
;
3483 procedure Set_Delay_Subprogram_Descriptors
(Id
: E
; V
: B
:= True) is
3486 (Is_Subprogram
(Id
) or else Ekind_In
(Id
, E_Package
, E_Package_Body
));
3489 end Set_Delay_Subprogram_Descriptors
;
3491 procedure Set_Delta_Value
(Id
: E
; V
: R
) is
3493 pragma Assert
(Is_Fixed_Point_Type
(Id
));
3494 Set_Ureal18
(Id
, V
);
3495 end Set_Delta_Value
;
3497 procedure Set_Dependent_Instances
(Id
: E
; V
: L
) is
3499 pragma Assert
(Is_Generic_Instance
(Id
));
3501 end Set_Dependent_Instances
;
3503 procedure Set_Depends_On_Private
(Id
: E
; V
: B
:= True) is
3505 pragma Assert
(Nkind
(Id
) in N_Entity
);
3507 end Set_Depends_On_Private
;
3509 procedure Set_Digits_Value
(Id
: E
; V
: U
) is
3512 (Is_Floating_Point_Type
(Id
)
3513 or else Is_Decimal_Fixed_Point_Type
(Id
));
3515 end Set_Digits_Value
;
3517 procedure Set_Directly_Designated_Type
(Id
: E
; V
: E
) is
3520 end Set_Directly_Designated_Type
;
3522 procedure Set_Discard_Names
(Id
: E
; V
: B
:= True) is
3525 end Set_Discard_Names
;
3527 procedure Set_Discriminal
(Id
: E
; V
: E
) is
3529 pragma Assert
(Ekind
(Id
) = E_Discriminant
);
3531 end Set_Discriminal
;
3533 procedure Set_Discriminal_Link
(Id
: E
; V
: E
) is
3536 end Set_Discriminal_Link
;
3538 procedure Set_Discriminant_Checking_Func
(Id
: E
; V
: E
) is
3540 pragma Assert
(Ekind
(Id
) = E_Component
);
3542 end Set_Discriminant_Checking_Func
;
3544 procedure Set_Discriminant_Constraint
(Id
: E
; V
: L
) is
3546 pragma Assert
(Nkind
(Id
) in N_Entity
);
3547 Set_Elist21
(Id
, V
);
3548 end Set_Discriminant_Constraint
;
3550 procedure Set_Discriminant_Default_Value
(Id
: E
; V
: N
) is
3553 end Set_Discriminant_Default_Value
;
3555 procedure Set_Discriminant_Number
(Id
: E
; V
: U
) is
3558 end Set_Discriminant_Number
;
3560 procedure Set_Dispatch_Table_Wrappers
(Id
: E
; V
: L
) is
3562 pragma Assert
(Ekind
(Id
) = E_Record_Type
3563 and then Id
= Implementation_Base_Type
(Id
));
3564 pragma Assert
(V
= No_Elist
or else Is_Tagged_Type
(Id
));
3565 Set_Elist26
(Id
, V
);
3566 end Set_Dispatch_Table_Wrappers
;
3568 procedure Set_DT_Entry_Count
(Id
: E
; V
: U
) is
3570 pragma Assert
(Ekind
(Id
) = E_Component
);
3572 end Set_DT_Entry_Count
;
3574 procedure Set_DT_Offset_To_Top_Func
(Id
: E
; V
: E
) is
3576 pragma Assert
(Ekind
(Id
) = E_Component
and then Is_Tag
(Id
));
3578 end Set_DT_Offset_To_Top_Func
;
3580 procedure Set_DT_Position
(Id
: E
; V
: U
) is
3582 pragma Assert
(Ekind_In
(Id
, E_Function
, E_Procedure
));
3584 end Set_DT_Position
;
3586 procedure Set_DTC_Entity
(Id
: E
; V
: E
) is
3588 pragma Assert
(Ekind_In
(Id
, E_Function
, E_Procedure
));
3592 procedure Set_Elaborate_Body_Desirable
(Id
: E
; V
: B
:= True) is
3594 pragma Assert
(Ekind
(Id
) = E_Package
);
3595 Set_Flag210
(Id
, V
);
3596 end Set_Elaborate_Body_Desirable
;
3598 procedure Set_Elaboration_Entity
(Id
: E
; V
: E
) is
3603 Ekind
(Id
) = E_Package
3605 Is_Generic_Unit
(Id
));
3607 end Set_Elaboration_Entity
;
3609 procedure Set_Elaboration_Entity_Required
(Id
: E
; V
: B
:= True) is
3614 Ekind
(Id
) = E_Package
3616 Is_Generic_Unit
(Id
));
3617 Set_Flag174
(Id
, V
);
3618 end Set_Elaboration_Entity_Required
;
3620 procedure Set_Enclosing_Scope
(Id
: E
; V
: E
) is
3623 end Set_Enclosing_Scope
;
3625 procedure Set_Entry_Accepted
(Id
: E
; V
: B
:= True) is
3627 pragma Assert
(Is_Entry
(Id
));
3628 Set_Flag152
(Id
, V
);
3629 end Set_Entry_Accepted
;
3631 procedure Set_Entry_Bodies_Array
(Id
: E
; V
: E
) is
3634 end Set_Entry_Bodies_Array
;
3636 procedure Set_Entry_Cancel_Parameter
(Id
: E
; V
: E
) is
3639 end Set_Entry_Cancel_Parameter
;
3641 procedure Set_Entry_Component
(Id
: E
; V
: E
) is
3644 end Set_Entry_Component
;
3646 procedure Set_Entry_Formal
(Id
: E
; V
: E
) is
3649 end Set_Entry_Formal
;
3651 procedure Set_Entry_Index_Constant
(Id
: E
; V
: E
) is
3653 pragma Assert
(Ekind
(Id
) = E_Entry_Index_Parameter
);
3655 end Set_Entry_Index_Constant
;
3657 procedure Set_Contract
(Id
: E
; V
: N
) is
3660 (Ekind_In
(Id
, E_Entry
, E_Entry_Family
, E_Void
)
3661 or else Is_Subprogram
(Id
)
3662 or else Is_Generic_Subprogram
(Id
));
3666 procedure Set_Entry_Parameters_Type
(Id
: E
; V
: E
) is
3669 end Set_Entry_Parameters_Type
;
3671 procedure Set_Enum_Pos_To_Rep
(Id
: E
; V
: E
) is
3673 pragma Assert
(Ekind
(Id
) = E_Enumeration_Type
);
3675 end Set_Enum_Pos_To_Rep
;
3677 procedure Set_Enumeration_Pos
(Id
: E
; V
: U
) is
3679 pragma Assert
(Ekind
(Id
) = E_Enumeration_Literal
);
3681 end Set_Enumeration_Pos
;
3683 procedure Set_Enumeration_Rep
(Id
: E
; V
: U
) is
3685 pragma Assert
(Ekind
(Id
) = E_Enumeration_Literal
);
3687 end Set_Enumeration_Rep
;
3689 procedure Set_Enumeration_Rep_Expr
(Id
: E
; V
: N
) is
3691 pragma Assert
(Ekind
(Id
) = E_Enumeration_Literal
);
3693 end Set_Enumeration_Rep_Expr
;
3695 procedure Set_Equivalent_Type
(Id
: E
; V
: E
) is
3698 (Ekind_In
(Id
, E_Class_Wide_Type
,
3699 E_Class_Wide_Subtype
,
3700 E_Access_Protected_Subprogram_Type
,
3701 E_Anonymous_Access_Protected_Subprogram_Type
,
3702 E_Access_Subprogram_Type
,
3705 end Set_Equivalent_Type
;
3707 procedure Set_Esize
(Id
: E
; V
: U
) is
3712 procedure Set_Exception_Code
(Id
: E
; V
: U
) is
3714 pragma Assert
(Ekind
(Id
) = E_Exception
);
3716 end Set_Exception_Code
;
3718 procedure Set_Extra_Accessibility
(Id
: E
; V
: E
) is
3721 (Is_Formal
(Id
) or else Ekind_In
(Id
, E_Variable
, E_Constant
));
3723 end Set_Extra_Accessibility
;
3725 procedure Set_Extra_Accessibility_Of_Result
(Id
: E
; V
: E
) is
3727 pragma Assert
(Ekind_In
(Id
, E_Function
, E_Operator
, E_Subprogram_Type
));
3729 end Set_Extra_Accessibility_Of_Result
;
3731 procedure Set_Extra_Constrained
(Id
: E
; V
: E
) is
3733 pragma Assert
(Is_Formal
(Id
) or else Ekind
(Id
) = E_Variable
);
3735 end Set_Extra_Constrained
;
3737 procedure Set_Extra_Formal
(Id
: E
; V
: E
) is
3740 end Set_Extra_Formal
;
3742 procedure Set_Extra_Formals
(Id
: E
; V
: E
) is
3745 (Is_Overloadable
(Id
)
3746 or else Ekind_In
(Id
, E_Entry_Family
,
3748 E_Subprogram_Type
));
3750 end Set_Extra_Formals
;
3752 procedure Set_Can_Use_Internal_Rep
(Id
: E
; V
: B
:= True) is
3755 (Is_Access_Subprogram_Type
(Id
) and then Is_Base_Type
(Id
));
3756 Set_Flag229
(Id
, V
);
3757 end Set_Can_Use_Internal_Rep
;
3759 procedure Set_Finalization_Master
(Id
: E
; V
: E
) is
3761 pragma Assert
(Is_Access_Type
(Id
) and then Is_Base_Type
(Id
));
3763 end Set_Finalization_Master
;
3765 procedure Set_Finalize_Storage_Only
(Id
: E
; V
: B
:= True) is
3767 pragma Assert
(Is_Type
(Id
) and then Is_Base_Type
(Id
));
3768 Set_Flag158
(Id
, V
);
3769 end Set_Finalize_Storage_Only
;
3771 procedure Set_Finalizer
(Id
: E
; V
: E
) is
3774 (Ekind
(Id
) = E_Package
3775 or else Ekind
(Id
) = E_Package_Body
);
3779 procedure Set_First_Entity
(Id
: E
; V
: E
) is
3782 end Set_First_Entity
;
3784 procedure Set_First_Exit_Statement
(Id
: E
; V
: N
) is
3786 pragma Assert
(Ekind
(Id
) = E_Loop
);
3788 end Set_First_Exit_Statement
;
3790 procedure Set_First_Index
(Id
: E
; V
: N
) is
3792 pragma Assert
(Is_Array_Type
(Id
) or else Is_String_Type
(Id
));
3794 end Set_First_Index
;
3796 procedure Set_First_Literal
(Id
: E
; V
: E
) is
3798 pragma Assert
(Is_Enumeration_Type
(Id
));
3800 end Set_First_Literal
;
3802 procedure Set_First_Optional_Parameter
(Id
: E
; V
: E
) is
3804 pragma Assert
(Ekind_In
(Id
, E_Function
, E_Procedure
));
3806 end Set_First_Optional_Parameter
;
3808 procedure Set_First_Private_Entity
(Id
: E
; V
: E
) is
3810 pragma Assert
(Ekind_In
(Id
, E_Package
, E_Generic_Package
)
3811 or else Ekind
(Id
) in Concurrent_Kind
);
3813 end Set_First_Private_Entity
;
3815 procedure Set_First_Rep_Item
(Id
: E
; V
: N
) is
3818 end Set_First_Rep_Item
;
3820 procedure Set_Float_Rep
(Id
: E
; V
: F
) is
3821 pragma Assert
(Ekind
(Id
) = E_Floating_Point_Type
);
3823 Set_Uint10
(Id
, UI_From_Int
(F
'Pos (V
)));
3826 procedure Set_Freeze_Node
(Id
: E
; V
: N
) is
3829 end Set_Freeze_Node
;
3831 procedure Set_From_With_Type
(Id
: E
; V
: B
:= True) is
3835 or else Ekind
(Id
) = E_Package
);
3836 Set_Flag159
(Id
, V
);
3837 end Set_From_With_Type
;
3839 procedure Set_Full_View
(Id
: E
; V
: E
) is
3841 pragma Assert
(Is_Type
(Id
) or else Ekind
(Id
) = E_Constant
);
3845 procedure Set_Generic_Homonym
(Id
: E
; V
: E
) is
3848 end Set_Generic_Homonym
;
3850 procedure Set_Generic_Renamings
(Id
: E
; V
: L
) is
3852 Set_Elist23
(Id
, V
);
3853 end Set_Generic_Renamings
;
3855 procedure Set_Handler_Records
(Id
: E
; V
: S
) is
3858 end Set_Handler_Records
;
3860 procedure Set_Has_Aliased_Components
(Id
: E
; V
: B
:= True) is
3862 pragma Assert
(Id
= Base_Type
(Id
));
3863 Set_Flag135
(Id
, V
);
3864 end Set_Has_Aliased_Components
;
3866 procedure Set_Has_Alignment_Clause
(Id
: E
; V
: B
:= True) is
3869 end Set_Has_Alignment_Clause
;
3871 procedure Set_Has_All_Calls_Remote
(Id
: E
; V
: B
:= True) is
3874 end Set_Has_All_Calls_Remote
;
3876 procedure Set_Has_Anonymous_Master
(Id
: E
; V
: B
:= True) is
3879 (Ekind_In
(Id
, E_Function
, E_Package
, E_Package_Body
, E_Procedure
));
3880 Set_Flag253
(Id
, V
);
3881 end Set_Has_Anonymous_Master
;
3883 procedure Set_Has_Atomic_Components
(Id
: E
; V
: B
:= True) is
3885 pragma Assert
(not Is_Type
(Id
) or else Is_Base_Type
(Id
));
3887 end Set_Has_Atomic_Components
;
3889 procedure Set_Has_Biased_Representation
(Id
: E
; V
: B
:= True) is
3892 ((V
= False) or else (Is_Discrete_Type
(Id
) or else Is_Object
(Id
)));
3893 Set_Flag139
(Id
, V
);
3894 end Set_Has_Biased_Representation
;
3896 procedure Set_Has_Completion
(Id
: E
; V
: B
:= True) is
3899 end Set_Has_Completion
;
3901 procedure Set_Has_Completion_In_Body
(Id
: E
; V
: B
:= True) is
3903 pragma Assert
(Is_Type
(Id
));
3905 end Set_Has_Completion_In_Body
;
3907 procedure Set_Has_Complex_Representation
(Id
: E
; V
: B
:= True) is
3909 pragma Assert
(Ekind
(Id
) = E_Record_Type
);
3910 Set_Flag140
(Id
, V
);
3911 end Set_Has_Complex_Representation
;
3913 procedure Set_Has_Component_Size_Clause
(Id
: E
; V
: B
:= True) is
3915 pragma Assert
(Ekind
(Id
) = E_Array_Type
);
3917 end Set_Has_Component_Size_Clause
;
3919 procedure Set_Has_Constrained_Partial_View
(Id
: E
; V
: B
:= True) is
3921 pragma Assert
(Is_Type
(Id
));
3922 Set_Flag187
(Id
, V
);
3923 end Set_Has_Constrained_Partial_View
;
3925 procedure Set_Has_Contiguous_Rep
(Id
: E
; V
: B
:= True) is
3927 Set_Flag181
(Id
, V
);
3928 end Set_Has_Contiguous_Rep
;
3930 procedure Set_Has_Controlled_Component
(Id
: E
; V
: B
:= True) is
3932 pragma Assert
(Id
= Base_Type
(Id
));
3934 end Set_Has_Controlled_Component
;
3936 procedure Set_Has_Controlling_Result
(Id
: E
; V
: B
:= True) is
3939 end Set_Has_Controlling_Result
;
3941 procedure Set_Has_Convention_Pragma
(Id
: E
; V
: B
:= True) is
3943 Set_Flag119
(Id
, V
);
3944 end Set_Has_Convention_Pragma
;
3946 procedure Set_Has_Default_Aspect
(Id
: E
; V
: B
:= True) is
3949 ((Is_Scalar_Type
(Id
) or else Is_Array_Type
(Id
))
3950 and then Is_Base_Type
(Id
));
3952 end Set_Has_Default_Aspect
;
3954 procedure Set_Has_Delayed_Aspects
(Id
: E
; V
: B
:= True) is
3956 pragma Assert
(Nkind
(Id
) in N_Entity
);
3957 Set_Flag200
(Id
, V
);
3958 end Set_Has_Delayed_Aspects
;
3960 procedure Set_Has_Delayed_Freeze
(Id
: E
; V
: B
:= True) is
3962 pragma Assert
(Nkind
(Id
) in N_Entity
);
3964 end Set_Has_Delayed_Freeze
;
3966 procedure Set_Has_Discriminants
(Id
: E
; V
: B
:= True) is
3968 pragma Assert
(Nkind
(Id
) in N_Entity
);
3970 end Set_Has_Discriminants
;
3972 procedure Set_Has_Dispatch_Table
(Id
: E
; V
: B
:= True) is
3974 pragma Assert
(Ekind
(Id
) = E_Record_Type
3975 and then Is_Tagged_Type
(Id
));
3976 Set_Flag220
(Id
, V
);
3977 end Set_Has_Dispatch_Table
;
3979 procedure Set_Has_Dynamic_Predicate_Aspect
(Id
: E
; V
: B
:= True) is
3981 pragma Assert
(Is_Type
(Id
));
3982 Set_Flag258
(Id
, V
);
3983 end Set_Has_Dynamic_Predicate_Aspect
;
3985 procedure Set_Has_Enumeration_Rep_Clause
(Id
: E
; V
: B
:= True) is
3987 pragma Assert
(Is_Enumeration_Type
(Id
));
3989 end Set_Has_Enumeration_Rep_Clause
;
3991 procedure Set_Has_Exit
(Id
: E
; V
: B
:= True) is
3996 procedure Set_Has_External_Tag_Rep_Clause
(Id
: E
; V
: B
:= True) is
3998 pragma Assert
(Is_Tagged_Type
(Id
));
3999 Set_Flag110
(Id
, V
);
4000 end Set_Has_External_Tag_Rep_Clause
;
4002 procedure Set_Has_Forward_Instantiation
(Id
: E
; V
: B
:= True) is
4004 Set_Flag175
(Id
, V
);
4005 end Set_Has_Forward_Instantiation
;
4007 procedure Set_Has_Fully_Qualified_Name
(Id
: E
; V
: B
:= True) is
4009 Set_Flag173
(Id
, V
);
4010 end Set_Has_Fully_Qualified_Name
;
4012 procedure Set_Has_Gigi_Rep_Item
(Id
: E
; V
: B
:= True) is
4015 end Set_Has_Gigi_Rep_Item
;
4017 procedure Set_Has_Homonym
(Id
: E
; V
: B
:= True) is
4020 end Set_Has_Homonym
;
4022 procedure Set_Has_Implicit_Dereference
(Id
: E
; V
: B
:= True) is
4024 Set_Flag251
(Id
, V
);
4025 end Set_Has_Implicit_Dereference
;
4027 procedure Set_Has_Independent_Components
(Id
: E
; V
: B
:= True) is
4029 pragma Assert
(Is_Object
(Id
) or else Is_Type
(Id
));
4031 end Set_Has_Independent_Components
;
4033 procedure Set_Has_Inheritable_Invariants
(Id
: E
; V
: B
:= True) is
4035 pragma Assert
(Is_Type
(Id
));
4036 Set_Flag248
(Id
, V
);
4037 end Set_Has_Inheritable_Invariants
;
4039 procedure Set_Has_Initial_Value
(Id
: E
; V
: B
:= True) is
4041 pragma Assert
(Ekind_In
(Id
, E_Variable
, E_Out_Parameter
));
4042 Set_Flag219
(Id
, V
);
4043 end Set_Has_Initial_Value
;
4045 procedure Set_Has_Invariants
(Id
: E
; V
: B
:= True) is
4047 pragma Assert
(Is_Type
(Id
));
4048 Set_Flag232
(Id
, V
);
4049 end Set_Has_Invariants
;
4051 procedure Set_Has_Loop_Entry_Attributes
(Id
: E
; V
: B
:= True) is
4053 pragma Assert
(Ekind
(Id
) = E_Loop
);
4054 Set_Flag260
(Id
, V
);
4055 end Set_Has_Loop_Entry_Attributes
;
4057 procedure Set_Has_Machine_Radix_Clause
(Id
: E
; V
: B
:= True) is
4059 pragma Assert
(Is_Decimal_Fixed_Point_Type
(Id
));
4061 end Set_Has_Machine_Radix_Clause
;
4063 procedure Set_Has_Master_Entity
(Id
: E
; V
: B
:= True) is
4066 end Set_Has_Master_Entity
;
4068 procedure Set_Has_Missing_Return
(Id
: E
; V
: B
:= True) is
4070 pragma Assert
(Ekind_In
(Id
, E_Function
, E_Generic_Function
));
4071 Set_Flag142
(Id
, V
);
4072 end Set_Has_Missing_Return
;
4074 procedure Set_Has_Nested_Block_With_Handler
(Id
: E
; V
: B
:= True) is
4076 Set_Flag101
(Id
, V
);
4077 end Set_Has_Nested_Block_With_Handler
;
4079 procedure Set_Has_Up_Level_Access
(Id
: E
; V
: B
:= True) is
4081 pragma Assert
(Ekind_In
(Id
, E_Variable
, E_Constant
, E_Loop_Parameter
));
4082 Set_Flag215
(Id
, V
);
4083 end Set_Has_Up_Level_Access
;
4085 procedure Set_Has_Non_Standard_Rep
(Id
: E
; V
: B
:= True) is
4087 pragma Assert
(Id
= Base_Type
(Id
));
4089 end Set_Has_Non_Standard_Rep
;
4091 procedure Set_Has_Object_Size_Clause
(Id
: E
; V
: B
:= True) is
4093 pragma Assert
(Is_Type
(Id
));
4094 Set_Flag172
(Id
, V
);
4095 end Set_Has_Object_Size_Clause
;
4097 procedure Set_Has_Per_Object_Constraint
(Id
: E
; V
: B
:= True) is
4099 Set_Flag154
(Id
, V
);
4100 end Set_Has_Per_Object_Constraint
;
4102 procedure Set_Has_Postconditions
(Id
: E
; V
: B
:= True) is
4104 pragma Assert
(Is_Subprogram
(Id
));
4105 Set_Flag240
(Id
, V
);
4106 end Set_Has_Postconditions
;
4108 procedure Set_Has_Pragma_Controlled
(Id
: E
; V
: B
:= True) is
4110 pragma Assert
(Is_Access_Type
(Id
));
4111 Set_Flag27
(Base_Type
(Id
), V
);
4112 end Set_Has_Pragma_Controlled
;
4114 procedure Set_Has_Pragma_Elaborate_Body
(Id
: E
; V
: B
:= True) is
4116 Set_Flag150
(Id
, V
);
4117 end Set_Has_Pragma_Elaborate_Body
;
4119 procedure Set_Has_Pragma_Inline
(Id
: E
; V
: B
:= True) is
4121 Set_Flag157
(Id
, V
);
4122 end Set_Has_Pragma_Inline
;
4124 procedure Set_Has_Pragma_Inline_Always
(Id
: E
; V
: B
:= True) is
4126 Set_Flag230
(Id
, V
);
4127 end Set_Has_Pragma_Inline_Always
;
4129 procedure Set_Has_Pragma_No_Inline
(Id
: E
; V
: B
:= True) is
4131 Set_Flag201
(Id
, V
);
4132 end Set_Has_Pragma_No_Inline
;
4134 procedure Set_Has_Pragma_Ordered
(Id
: E
; V
: B
:= True) is
4136 pragma Assert
(Is_Enumeration_Type
(Id
));
4137 pragma Assert
(Id
= Base_Type
(Id
));
4138 Set_Flag198
(Id
, V
);
4139 end Set_Has_Pragma_Ordered
;
4141 procedure Set_Has_Pragma_Pack
(Id
: E
; V
: B
:= True) is
4143 pragma Assert
(Is_Array_Type
(Id
) or else Is_Record_Type
(Id
));
4144 pragma Assert
(Id
= Base_Type
(Id
));
4145 Set_Flag121
(Id
, V
);
4146 end Set_Has_Pragma_Pack
;
4148 procedure Set_Has_Pragma_Preelab_Init
(Id
: E
; V
: B
:= True) is
4150 Set_Flag221
(Id
, V
);
4151 end Set_Has_Pragma_Preelab_Init
;
4153 procedure Set_Has_Pragma_Pure
(Id
: E
; V
: B
:= True) is
4155 Set_Flag203
(Id
, V
);
4156 end Set_Has_Pragma_Pure
;
4158 procedure Set_Has_Pragma_Pure_Function
(Id
: E
; V
: B
:= True) is
4160 Set_Flag179
(Id
, V
);
4161 end Set_Has_Pragma_Pure_Function
;
4163 procedure Set_Has_Pragma_Thread_Local_Storage
(Id
: E
; V
: B
:= True) is
4165 Set_Flag169
(Id
, V
);
4166 end Set_Has_Pragma_Thread_Local_Storage
;
4168 procedure Set_Has_Pragma_Unmodified
(Id
: E
; V
: B
:= True) is
4170 Set_Flag233
(Id
, V
);
4171 end Set_Has_Pragma_Unmodified
;
4173 procedure Set_Has_Pragma_Unreferenced
(Id
: E
; V
: B
:= True) is
4175 Set_Flag180
(Id
, V
);
4176 end Set_Has_Pragma_Unreferenced
;
4178 procedure Set_Has_Pragma_Unreferenced_Objects
(Id
: E
; V
: B
:= True) is
4180 pragma Assert
(Is_Type
(Id
));
4181 Set_Flag212
(Id
, V
);
4182 end Set_Has_Pragma_Unreferenced_Objects
;
4184 procedure Set_Has_Predicates
(Id
: E
; V
: B
:= True) is
4186 pragma Assert
(Is_Type
(Id
) or else Ekind
(Id
) = E_Void
);
4187 Set_Flag250
(Id
, V
);
4188 end Set_Has_Predicates
;
4190 procedure Set_Has_Primitive_Operations
(Id
: E
; V
: B
:= True) is
4192 pragma Assert
(Id
= Base_Type
(Id
));
4193 Set_Flag120
(Id
, V
);
4194 end Set_Has_Primitive_Operations
;
4196 procedure Set_Has_Private_Ancestor
(Id
: E
; V
: B
:= True) is
4198 pragma Assert
(Is_Type
(Id
));
4199 Set_Flag151
(Id
, V
);
4200 end Set_Has_Private_Ancestor
;
4202 procedure Set_Has_Private_Declaration
(Id
: E
; V
: B
:= True) is
4204 Set_Flag155
(Id
, V
);
4205 end Set_Has_Private_Declaration
;
4207 procedure Set_Has_Qualified_Name
(Id
: E
; V
: B
:= True) is
4209 Set_Flag161
(Id
, V
);
4210 end Set_Has_Qualified_Name
;
4212 procedure Set_Has_RACW
(Id
: E
; V
: B
:= True) is
4214 pragma Assert
(Ekind
(Id
) = E_Package
);
4215 Set_Flag214
(Id
, V
);
4218 procedure Set_Has_Record_Rep_Clause
(Id
: E
; V
: B
:= True) is
4220 pragma Assert
(Id
= Base_Type
(Id
));
4222 end Set_Has_Record_Rep_Clause
;
4224 procedure Set_Has_Recursive_Call
(Id
: E
; V
: B
:= True) is
4226 pragma Assert
(Is_Subprogram
(Id
));
4227 Set_Flag143
(Id
, V
);
4228 end Set_Has_Recursive_Call
;
4230 procedure Set_Has_Size_Clause
(Id
: E
; V
: B
:= True) is
4233 end Set_Has_Size_Clause
;
4235 procedure Set_Has_Small_Clause
(Id
: E
; V
: B
:= True) is
4238 end Set_Has_Small_Clause
;
4240 procedure Set_Has_Specified_Layout
(Id
: E
; V
: B
:= True) is
4242 pragma Assert
(Id
= Base_Type
(Id
));
4243 Set_Flag100
(Id
, V
);
4244 end Set_Has_Specified_Layout
;
4246 procedure Set_Has_Specified_Stream_Input
(Id
: E
; V
: B
:= True) is
4248 pragma Assert
(Is_Type
(Id
));
4249 Set_Flag190
(Id
, V
);
4250 end Set_Has_Specified_Stream_Input
;
4252 procedure Set_Has_Specified_Stream_Output
(Id
: E
; V
: B
:= True) is
4254 pragma Assert
(Is_Type
(Id
));
4255 Set_Flag191
(Id
, V
);
4256 end Set_Has_Specified_Stream_Output
;
4258 procedure Set_Has_Specified_Stream_Read
(Id
: E
; V
: B
:= True) is
4260 pragma Assert
(Is_Type
(Id
));
4261 Set_Flag192
(Id
, V
);
4262 end Set_Has_Specified_Stream_Read
;
4264 procedure Set_Has_Specified_Stream_Write
(Id
: E
; V
: B
:= True) is
4266 pragma Assert
(Is_Type
(Id
));
4267 Set_Flag193
(Id
, V
);
4268 end Set_Has_Specified_Stream_Write
;
4270 procedure Set_Has_Static_Discriminants
(Id
: E
; V
: B
:= True) is
4272 Set_Flag211
(Id
, V
);
4273 end Set_Has_Static_Discriminants
;
4275 procedure Set_Has_Static_Predicate_Aspect
(Id
: E
; V
: B
:= True) is
4277 pragma Assert
(Is_Type
(Id
));
4278 Set_Flag259
(Id
, V
);
4279 end Set_Has_Static_Predicate_Aspect
;
4281 procedure Set_Has_Storage_Size_Clause
(Id
: E
; V
: B
:= True) is
4283 pragma Assert
(Is_Access_Type
(Id
) or else Is_Task_Type
(Id
));
4284 pragma Assert
(Id
= Base_Type
(Id
));
4286 end Set_Has_Storage_Size_Clause
;
4288 procedure Set_Has_Stream_Size_Clause
(Id
: E
; V
: B
:= True) is
4290 pragma Assert
(Is_Elementary_Type
(Id
));
4291 Set_Flag184
(Id
, V
);
4292 end Set_Has_Stream_Size_Clause
;
4294 procedure Set_Has_Task
(Id
: E
; V
: B
:= True) is
4296 pragma Assert
(Id
= Base_Type
(Id
));
4300 procedure Set_Has_Thunks
(Id
: E
; V
: B
:= True) is
4302 pragma Assert
(Is_Tag
(Id
));
4303 Set_Flag228
(Id
, V
);
4306 procedure Set_Has_Unchecked_Union
(Id
: E
; V
: B
:= True) is
4308 pragma Assert
(Id
= Base_Type
(Id
));
4309 Set_Flag123
(Id
, V
);
4310 end Set_Has_Unchecked_Union
;
4312 procedure Set_Has_Unknown_Discriminants
(Id
: E
; V
: B
:= True) is
4314 pragma Assert
(Is_Type
(Id
));
4316 end Set_Has_Unknown_Discriminants
;
4318 procedure Set_Has_Volatile_Components
(Id
: E
; V
: B
:= True) is
4320 pragma Assert
(not Is_Type
(Id
) or else Is_Base_Type
(Id
));
4322 end Set_Has_Volatile_Components
;
4324 procedure Set_Has_Xref_Entry
(Id
: E
; V
: B
:= True) is
4326 Set_Flag182
(Id
, V
);
4327 end Set_Has_Xref_Entry
;
4329 procedure Set_Hiding_Loop_Variable
(Id
: E
; V
: E
) is
4331 pragma Assert
(Ekind
(Id
) = E_Variable
);
4333 end Set_Hiding_Loop_Variable
;
4335 procedure Set_Homonym
(Id
: E
; V
: E
) is
4337 pragma Assert
(Id
/= V
);
4341 procedure Set_Interface_Alias
(Id
: E
; V
: E
) is
4345 and then Is_Hidden
(Id
)
4346 and then (Ekind_In
(Id
, E_Procedure
, E_Function
)));
4348 end Set_Interface_Alias
;
4350 procedure Set_Interfaces
(Id
: E
; V
: L
) is
4352 pragma Assert
(Is_Record_Type
(Id
));
4353 Set_Elist25
(Id
, V
);
4356 procedure Set_In_Package_Body
(Id
: E
; V
: B
:= True) is
4359 end Set_In_Package_Body
;
4361 procedure Set_In_Private_Part
(Id
: E
; V
: B
:= True) is
4364 end Set_In_Private_Part
;
4366 procedure Set_In_Use
(Id
: E
; V
: B
:= True) is
4368 pragma Assert
(Nkind
(Id
) in N_Entity
);
4372 procedure Set_Initialization_Statements
(Id
: E
; V
: N
) is
4374 -- Tolerate an E_Void entity since this can be called while resolving
4375 -- an aggregate used as the initialization expression for an object
4376 -- declaration, and this occurs before the Ekind for the object is set.
4378 pragma Assert
(Ekind_In
(Id
, E_Void
, E_Constant
, E_Variable
));
4380 end Set_Initialization_Statements
;
4382 procedure Set_Integrity_Level
(Id
: E
; V
: Uint
) is
4384 pragma Assert
(Ekind
(Id
) = E_Abstract_State
);
4386 end Set_Integrity_Level
;
4388 procedure Set_Inner_Instances
(Id
: E
; V
: L
) is
4390 Set_Elist23
(Id
, V
);
4391 end Set_Inner_Instances
;
4393 procedure Set_Interface_Name
(Id
: E
; V
: N
) is
4396 end Set_Interface_Name
;
4398 procedure Set_Is_Abstract_Subprogram
(Id
: E
; V
: B
:= True) is
4400 pragma Assert
(Is_Overloadable
(Id
));
4402 end Set_Is_Abstract_Subprogram
;
4404 procedure Set_Is_Abstract_Type
(Id
: E
; V
: B
:= True) is
4406 pragma Assert
(Is_Type
(Id
));
4407 Set_Flag146
(Id
, V
);
4408 end Set_Is_Abstract_Type
;
4410 procedure Set_Is_Local_Anonymous_Access
(Id
: E
; V
: B
:= True) is
4412 pragma Assert
(Is_Access_Type
(Id
));
4413 Set_Flag194
(Id
, V
);
4414 end Set_Is_Local_Anonymous_Access
;
4416 procedure Set_Is_Access_Constant
(Id
: E
; V
: B
:= True) is
4418 pragma Assert
(Is_Access_Type
(Id
));
4420 end Set_Is_Access_Constant
;
4422 procedure Set_Is_Ada_2005_Only
(Id
: E
; V
: B
:= True) is
4424 Set_Flag185
(Id
, V
);
4425 end Set_Is_Ada_2005_Only
;
4427 procedure Set_Is_Ada_2012_Only
(Id
: E
; V
: B
:= True) is
4429 Set_Flag199
(Id
, V
);
4430 end Set_Is_Ada_2012_Only
;
4432 procedure Set_Is_Aliased
(Id
: E
; V
: B
:= True) is
4434 pragma Assert
(Nkind
(Id
) in N_Entity
);
4438 procedure Set_Is_AST_Entry
(Id
: E
; V
: B
:= True) is
4440 pragma Assert
(Is_Entry
(Id
));
4441 Set_Flag132
(Id
, V
);
4442 end Set_Is_AST_Entry
;
4444 procedure Set_Is_Asynchronous
(Id
: E
; V
: B
:= True) is
4447 (Ekind
(Id
) = E_Procedure
or else Is_Type
(Id
));
4449 end Set_Is_Asynchronous
;
4451 procedure Set_Is_Atomic
(Id
: E
; V
: B
:= True) is
4456 procedure Set_Is_Bit_Packed_Array
(Id
: E
; V
: B
:= True) is
4458 pragma Assert
((not V
)
4459 or else (Is_Array_Type
(Id
) and then Is_Base_Type
(Id
)));
4460 Set_Flag122
(Id
, V
);
4461 end Set_Is_Bit_Packed_Array
;
4463 procedure Set_Is_Called
(Id
: E
; V
: B
:= True) is
4465 pragma Assert
(Ekind_In
(Id
, E_Procedure
, E_Function
));
4466 Set_Flag102
(Id
, V
);
4469 procedure Set_Is_Character_Type
(Id
: E
; V
: B
:= True) is
4472 end Set_Is_Character_Type
;
4474 procedure Set_Is_Child_Unit
(Id
: E
; V
: B
:= True) is
4477 end Set_Is_Child_Unit
;
4479 procedure Set_Is_Class_Wide_Equivalent_Type
(Id
: E
; V
: B
:= True) is
4482 end Set_Is_Class_Wide_Equivalent_Type
;
4484 procedure Set_Is_Compilation_Unit
(Id
: E
; V
: B
:= True) is
4486 Set_Flag149
(Id
, V
);
4487 end Set_Is_Compilation_Unit
;
4489 procedure Set_Is_Completely_Hidden
(Id
: E
; V
: B
:= True) is
4491 pragma Assert
(Ekind
(Id
) = E_Discriminant
);
4492 Set_Flag103
(Id
, V
);
4493 end Set_Is_Completely_Hidden
;
4495 procedure Set_Is_Concurrent_Record_Type
(Id
: E
; V
: B
:= True) is
4498 end Set_Is_Concurrent_Record_Type
;
4500 procedure Set_Is_Constr_Subt_For_U_Nominal
(Id
: E
; V
: B
:= True) is
4503 end Set_Is_Constr_Subt_For_U_Nominal
;
4505 procedure Set_Is_Constr_Subt_For_UN_Aliased
(Id
: E
; V
: B
:= True) is
4507 Set_Flag141
(Id
, V
);
4508 end Set_Is_Constr_Subt_For_UN_Aliased
;
4510 procedure Set_Is_Constrained
(Id
: E
; V
: B
:= True) is
4512 pragma Assert
(Nkind
(Id
) in N_Entity
);
4514 end Set_Is_Constrained
;
4516 procedure Set_Is_Constructor
(Id
: E
; V
: B
:= True) is
4519 end Set_Is_Constructor
;
4521 procedure Set_Is_Controlled
(Id
: E
; V
: B
:= True) is
4523 pragma Assert
(Id
= Base_Type
(Id
));
4525 end Set_Is_Controlled
;
4527 procedure Set_Is_Controlling_Formal
(Id
: E
; V
: B
:= True) is
4529 pragma Assert
(Is_Formal
(Id
));
4531 end Set_Is_Controlling_Formal
;
4533 procedure Set_Is_CPP_Class
(Id
: E
; V
: B
:= True) is
4536 end Set_Is_CPP_Class
;
4538 procedure Set_Is_Descendent_Of_Address
(Id
: E
; V
: B
:= True) is
4540 pragma Assert
(Is_Type
(Id
));
4541 Set_Flag223
(Id
, V
);
4542 end Set_Is_Descendent_Of_Address
;
4544 procedure Set_Is_Discrim_SO_Function
(Id
: E
; V
: B
:= True) is
4546 Set_Flag176
(Id
, V
);
4547 end Set_Is_Discrim_SO_Function
;
4549 procedure Set_Is_Dispatch_Table_Entity
(Id
: E
; V
: B
:= True) is
4551 Set_Flag234
(Id
, V
);
4552 end Set_Is_Dispatch_Table_Entity
;
4554 procedure Set_Is_Dispatching_Operation
(Id
: E
; V
: B
:= True) is
4559 Is_Overloadable
(Id
)
4561 Ekind
(Id
) = E_Subprogram_Type
);
4564 end Set_Is_Dispatching_Operation
;
4566 procedure Set_Is_Eliminated
(Id
: E
; V
: B
:= True) is
4568 Set_Flag124
(Id
, V
);
4569 end Set_Is_Eliminated
;
4571 procedure Set_Is_Entry_Formal
(Id
: E
; V
: B
:= True) is
4574 end Set_Is_Entry_Formal
;
4576 procedure Set_Is_Exported
(Id
: E
; V
: B
:= True) is
4579 end Set_Is_Exported
;
4581 procedure Set_Is_First_Subtype
(Id
: E
; V
: B
:= True) is
4584 end Set_Is_First_Subtype
;
4586 procedure Set_Is_For_Access_Subtype
(Id
: E
; V
: B
:= True) is
4588 pragma Assert
(Ekind_In
(Id
, E_Record_Subtype
, E_Private_Subtype
));
4589 Set_Flag118
(Id
, V
);
4590 end Set_Is_For_Access_Subtype
;
4592 procedure Set_Is_Formal_Subprogram
(Id
: E
; V
: B
:= True) is
4594 Set_Flag111
(Id
, V
);
4595 end Set_Is_Formal_Subprogram
;
4597 procedure Set_Is_Frozen
(Id
: E
; V
: B
:= True) is
4599 pragma Assert
(Nkind
(Id
) in N_Entity
);
4603 procedure Set_Is_Generic_Actual_Type
(Id
: E
; V
: B
:= True) is
4605 pragma Assert
(Is_Type
(Id
));
4607 end Set_Is_Generic_Actual_Type
;
4609 procedure Set_Is_Generic_Instance
(Id
: E
; V
: B
:= True) is
4611 Set_Flag130
(Id
, V
);
4612 end Set_Is_Generic_Instance
;
4614 procedure Set_Is_Generic_Type
(Id
: E
; V
: B
:= True) is
4616 pragma Assert
(Nkind
(Id
) in N_Entity
);
4618 end Set_Is_Generic_Type
;
4620 procedure Set_Is_Hidden
(Id
: E
; V
: B
:= True) is
4625 procedure Set_Is_Hidden_Open_Scope
(Id
: E
; V
: B
:= True) is
4627 Set_Flag171
(Id
, V
);
4628 end Set_Is_Hidden_Open_Scope
;
4630 procedure Set_Is_Immediately_Visible
(Id
: E
; V
: B
:= True) is
4632 pragma Assert
(Nkind
(Id
) in N_Entity
);
4634 end Set_Is_Immediately_Visible
;
4636 procedure Set_Is_Implementation_Defined
(Id
: E
; V
: B
:= True) is
4638 Set_Flag254
(Id
, V
);
4639 end Set_Is_Implementation_Defined
;
4641 procedure Set_Is_Imported
(Id
: E
; V
: B
:= True) is
4644 end Set_Is_Imported
;
4646 procedure Set_Is_Inlined
(Id
: E
; V
: B
:= True) is
4651 procedure Set_Is_Interface
(Id
: E
; V
: B
:= True) is
4653 pragma Assert
(Is_Record_Type
(Id
));
4654 Set_Flag186
(Id
, V
);
4655 end Set_Is_Interface
;
4657 procedure Set_Is_Instantiated
(Id
: E
; V
: B
:= True) is
4659 Set_Flag126
(Id
, V
);
4660 end Set_Is_Instantiated
;
4662 procedure Set_Is_Internal
(Id
: E
; V
: B
:= True) is
4664 pragma Assert
(Nkind
(Id
) in N_Entity
);
4666 end Set_Is_Internal
;
4668 procedure Set_Is_Interrupt_Handler
(Id
: E
; V
: B
:= True) is
4670 pragma Assert
(Nkind
(Id
) in N_Entity
);
4672 end Set_Is_Interrupt_Handler
;
4674 procedure Set_Is_Intrinsic_Subprogram
(Id
: E
; V
: B
:= True) is
4677 end Set_Is_Intrinsic_Subprogram
;
4679 procedure Set_Is_Invariant_Procedure
(Id
: E
; V
: B
:= True) is
4681 pragma Assert
(Ekind
(Id
) = E_Function
or else Ekind
(Id
) = E_Procedure
);
4682 Set_Flag257
(Id
, V
);
4683 end Set_Is_Invariant_Procedure
;
4685 procedure Set_Is_Itype
(Id
: E
; V
: B
:= True) is
4690 procedure Set_Is_Known_Non_Null
(Id
: E
; V
: B
:= True) is
4693 end Set_Is_Known_Non_Null
;
4695 procedure Set_Is_Known_Null
(Id
: E
; V
: B
:= True) is
4697 Set_Flag204
(Id
, V
);
4698 end Set_Is_Known_Null
;
4700 procedure Set_Is_Known_Valid
(Id
: E
; V
: B
:= True) is
4702 Set_Flag170
(Id
, V
);
4703 end Set_Is_Known_Valid
;
4705 procedure Set_Is_Limited_Composite
(Id
: E
; V
: B
:= True) is
4707 pragma Assert
(Is_Type
(Id
));
4708 Set_Flag106
(Id
, V
);
4709 end Set_Is_Limited_Composite
;
4711 procedure Set_Is_Limited_Interface
(Id
: E
; V
: B
:= True) is
4713 pragma Assert
(Is_Interface
(Id
));
4714 Set_Flag197
(Id
, V
);
4715 end Set_Is_Limited_Interface
;
4717 procedure Set_Is_Limited_Record
(Id
: E
; V
: B
:= True) is
4720 end Set_Is_Limited_Record
;
4722 procedure Set_Is_Machine_Code_Subprogram
(Id
: E
; V
: B
:= True) is
4724 pragma Assert
(Is_Subprogram
(Id
));
4725 Set_Flag137
(Id
, V
);
4726 end Set_Is_Machine_Code_Subprogram
;
4728 procedure Set_Is_Non_Static_Subtype
(Id
: E
; V
: B
:= True) is
4730 pragma Assert
(Is_Type
(Id
));
4731 Set_Flag109
(Id
, V
);
4732 end Set_Is_Non_Static_Subtype
;
4734 procedure Set_Is_Null_Init_Proc
(Id
: E
; V
: B
:= True) is
4736 pragma Assert
(Ekind
(Id
) = E_Procedure
);
4737 Set_Flag178
(Id
, V
);
4738 end Set_Is_Null_Init_Proc
;
4740 procedure Set_Is_Obsolescent
(Id
: E
; V
: B
:= True) is
4742 Set_Flag153
(Id
, V
);
4743 end Set_Is_Obsolescent
;
4745 procedure Set_Is_Only_Out_Parameter
(Id
: E
; V
: B
:= True) is
4747 pragma Assert
(Ekind
(Id
) = E_Out_Parameter
);
4748 Set_Flag226
(Id
, V
);
4749 end Set_Is_Only_Out_Parameter
;
4751 procedure Set_Is_Optional_Parameter
(Id
: E
; V
: B
:= True) is
4753 pragma Assert
(Is_Formal
(Id
));
4754 Set_Flag134
(Id
, V
);
4755 end Set_Is_Optional_Parameter
;
4757 procedure Set_Is_Package_Body_Entity
(Id
: E
; V
: B
:= True) is
4759 Set_Flag160
(Id
, V
);
4760 end Set_Is_Package_Body_Entity
;
4762 procedure Set_Is_Packed
(Id
: E
; V
: B
:= True) is
4764 pragma Assert
(Id
= Base_Type
(Id
));
4768 procedure Set_Is_Packed_Array_Type
(Id
: E
; V
: B
:= True) is
4770 Set_Flag138
(Id
, V
);
4771 end Set_Is_Packed_Array_Type
;
4773 procedure Set_Is_Potentially_Use_Visible
(Id
: E
; V
: B
:= True) is
4775 pragma Assert
(Nkind
(Id
) in N_Entity
);
4777 end Set_Is_Potentially_Use_Visible
;
4779 procedure Set_Is_Predicate_Function
(Id
: E
; V
: B
:= True) is
4781 pragma Assert
(Ekind
(Id
) = E_Function
or else Ekind
(Id
) = E_Procedure
);
4782 Set_Flag255
(Id
, V
);
4783 end Set_Is_Predicate_Function
;
4785 procedure Set_Is_Predicate_Function_M
(Id
: E
; V
: B
:= True) is
4787 pragma Assert
(Ekind
(Id
) = E_Function
or else Ekind
(Id
) = E_Procedure
);
4788 Set_Flag256
(Id
, V
);
4789 end Set_Is_Predicate_Function_M
;
4791 procedure Set_Is_Preelaborated
(Id
: E
; V
: B
:= True) is
4794 end Set_Is_Preelaborated
;
4796 procedure Set_Is_Primitive
(Id
: E
; V
: B
:= True) is
4799 (Is_Overloadable
(Id
)
4800 or else Ekind_In
(Id
, E_Generic_Function
, E_Generic_Procedure
));
4801 Set_Flag218
(Id
, V
);
4802 end Set_Is_Primitive
;
4804 procedure Set_Is_Primitive_Wrapper
(Id
: E
; V
: B
:= True) is
4806 pragma Assert
(Ekind_In
(Id
, E_Function
, E_Procedure
));
4807 Set_Flag195
(Id
, V
);
4808 end Set_Is_Primitive_Wrapper
;
4810 procedure Set_Is_Private_Composite
(Id
: E
; V
: B
:= True) is
4812 pragma Assert
(Is_Type
(Id
));
4813 Set_Flag107
(Id
, V
);
4814 end Set_Is_Private_Composite
;
4816 procedure Set_Is_Private_Descendant
(Id
: E
; V
: B
:= True) is
4819 end Set_Is_Private_Descendant
;
4821 procedure Set_Is_Private_Primitive
(Id
: E
; V
: B
:= True) is
4823 pragma Assert
(Ekind_In
(Id
, E_Function
, E_Procedure
));
4824 Set_Flag245
(Id
, V
);
4825 end Set_Is_Private_Primitive
;
4827 procedure Set_Is_Processed_Transient
(Id
: E
; V
: B
:= True) is
4829 pragma Assert
(Ekind_In
(Id
, E_Constant
, E_Variable
));
4830 Set_Flag252
(Id
, V
);
4831 end Set_Is_Processed_Transient
;
4833 procedure Set_Is_Public
(Id
: E
; V
: B
:= True) is
4835 pragma Assert
(Nkind
(Id
) in N_Entity
);
4839 procedure Set_Is_Pure
(Id
: E
; V
: B
:= True) is
4844 procedure Set_Is_Pure_Unit_Access_Type
(Id
: E
; V
: B
:= True) is
4846 pragma Assert
(Is_Access_Type
(Id
));
4847 Set_Flag189
(Id
, V
);
4848 end Set_Is_Pure_Unit_Access_Type
;
4850 procedure Set_Is_RACW_Stub_Type
(Id
: E
; V
: B
:= True) is
4852 pragma Assert
(Is_Type
(Id
));
4853 Set_Flag244
(Id
, V
);
4854 end Set_Is_RACW_Stub_Type
;
4856 procedure Set_Is_Raised
(Id
: E
; V
: B
:= True) is
4858 pragma Assert
(Ekind
(Id
) = E_Exception
);
4859 Set_Flag224
(Id
, V
);
4862 procedure Set_Is_Remote_Call_Interface
(Id
: E
; V
: B
:= True) is
4865 end Set_Is_Remote_Call_Interface
;
4867 procedure Set_Is_Remote_Types
(Id
: E
; V
: B
:= True) is
4870 end Set_Is_Remote_Types
;
4872 procedure Set_Is_Renaming_Of_Object
(Id
: E
; V
: B
:= True) is
4874 Set_Flag112
(Id
, V
);
4875 end Set_Is_Renaming_Of_Object
;
4877 procedure Set_Is_Return_Object
(Id
: E
; V
: B
:= True) is
4879 Set_Flag209
(Id
, V
);
4880 end Set_Is_Return_Object
;
4882 procedure Set_Is_Safe_To_Reevaluate
(Id
: E
; V
: B
:= True) is
4884 pragma Assert
(Ekind
(Id
) = E_Variable
);
4885 Set_Flag249
(Id
, V
);
4886 end Set_Is_Safe_To_Reevaluate
;
4888 procedure Set_Is_Shared_Passive
(Id
: E
; V
: B
:= True) is
4891 end Set_Is_Shared_Passive
;
4893 procedure Set_Is_Statically_Allocated
(Id
: E
; V
: B
:= True) is
4897 or else Ekind_In
(Id
, E_Exception
,
4902 end Set_Is_Statically_Allocated
;
4904 procedure Set_Is_Tag
(Id
: E
; V
: B
:= True) is
4906 pragma Assert
(Ekind_In
(Id
, E_Component
, E_Constant
, E_Variable
));
4910 procedure Set_Is_Tagged_Type
(Id
: E
; V
: B
:= True) is
4913 end Set_Is_Tagged_Type
;
4915 procedure Set_Is_Thunk
(Id
: E
; V
: B
:= True) is
4917 pragma Assert
(Is_Subprogram
(Id
));
4918 Set_Flag225
(Id
, V
);
4921 procedure Set_Is_Trivial_Subprogram
(Id
: E
; V
: B
:= True) is
4923 Set_Flag235
(Id
, V
);
4924 end Set_Is_Trivial_Subprogram
;
4926 procedure Set_Is_True_Constant
(Id
: E
; V
: B
:= True) is
4928 Set_Flag163
(Id
, V
);
4929 end Set_Is_True_Constant
;
4931 procedure Set_Is_Unchecked_Union
(Id
: E
; V
: B
:= True) is
4933 pragma Assert
(Id
= Base_Type
(Id
));
4934 Set_Flag117
(Id
, V
);
4935 end Set_Is_Unchecked_Union
;
4937 procedure Set_Is_Underlying_Record_View
(Id
: E
; V
: B
:= True) is
4939 pragma Assert
(Ekind
(Id
) = E_Record_Type
);
4940 Set_Flag246
(Id
, V
);
4941 end Set_Is_Underlying_Record_View
;
4943 procedure Set_Is_Unsigned_Type
(Id
: E
; V
: B
:= True) is
4945 pragma Assert
(Is_Discrete_Or_Fixed_Point_Type
(Id
));
4946 Set_Flag144
(Id
, V
);
4947 end Set_Is_Unsigned_Type
;
4949 procedure Set_Is_Valued_Procedure
(Id
: E
; V
: B
:= True) is
4951 pragma Assert
(Ekind
(Id
) = E_Procedure
);
4952 Set_Flag127
(Id
, V
);
4953 end Set_Is_Valued_Procedure
;
4955 procedure Set_Is_Visible_Formal
(Id
: E
; V
: B
:= True) is
4957 Set_Flag206
(Id
, V
);
4958 end Set_Is_Visible_Formal
;
4960 procedure Set_Is_Visible_Lib_Unit
(Id
: E
; V
: B
:= True) is
4962 Set_Flag116
(Id
, V
);
4963 end Set_Is_Visible_Lib_Unit
;
4965 procedure Set_Is_VMS_Exception
(Id
: E
; V
: B
:= True) is
4967 pragma Assert
(Ekind
(Id
) = E_Exception
);
4968 Set_Flag133
(Id
, V
);
4969 end Set_Is_VMS_Exception
;
4971 procedure Set_Is_Volatile
(Id
: E
; V
: B
:= True) is
4973 pragma Assert
(Nkind
(Id
) in N_Entity
);
4975 end Set_Is_Volatile
;
4977 procedure Set_Itype_Printed
(Id
: E
; V
: B
:= True) is
4979 pragma Assert
(Is_Itype
(Id
));
4980 Set_Flag202
(Id
, V
);
4981 end Set_Itype_Printed
;
4983 procedure Set_Kill_Elaboration_Checks
(Id
: E
; V
: B
:= True) is
4986 end Set_Kill_Elaboration_Checks
;
4988 procedure Set_Kill_Range_Checks
(Id
: E
; V
: B
:= True) is
4991 end Set_Kill_Range_Checks
;
4993 procedure Set_Known_To_Have_Preelab_Init
(Id
: E
; V
: B
:= True) is
4995 pragma Assert
(Is_Type
(Id
));
4996 Set_Flag207
(Id
, V
);
4997 end Set_Known_To_Have_Preelab_Init
;
4999 procedure Set_Last_Assignment
(Id
: E
; V
: N
) is
5001 pragma Assert
(Is_Assignable
(Id
));
5003 end Set_Last_Assignment
;
5005 procedure Set_Last_Entity
(Id
: E
; V
: E
) is
5008 end Set_Last_Entity
;
5010 procedure Set_Limited_View
(Id
: E
; V
: E
) is
5012 pragma Assert
(Ekind
(Id
) = E_Package
);
5014 end Set_Limited_View
;
5016 procedure Set_Lit_Indexes
(Id
: E
; V
: E
) is
5018 pragma Assert
(Is_Enumeration_Type
(Id
) and then Root_Type
(Id
) = Id
);
5020 end Set_Lit_Indexes
;
5022 procedure Set_Lit_Strings
(Id
: E
; V
: E
) is
5024 pragma Assert
(Is_Enumeration_Type
(Id
) and then Root_Type
(Id
) = Id
);
5026 end Set_Lit_Strings
;
5028 procedure Set_Low_Bound_Tested
(Id
: E
; V
: B
:= True) is
5030 pragma Assert
(Is_Formal
(Id
));
5031 Set_Flag205
(Id
, V
);
5032 end Set_Low_Bound_Tested
;
5034 procedure Set_Machine_Radix_10
(Id
: E
; V
: B
:= True) is
5036 pragma Assert
(Is_Decimal_Fixed_Point_Type
(Id
));
5038 end Set_Machine_Radix_10
;
5040 procedure Set_Master_Id
(Id
: E
; V
: E
) is
5042 pragma Assert
(Is_Access_Type
(Id
));
5046 procedure Set_Materialize_Entity
(Id
: E
; V
: B
:= True) is
5048 Set_Flag168
(Id
, V
);
5049 end Set_Materialize_Entity
;
5051 procedure Set_Mechanism
(Id
: E
; V
: M
) is
5053 pragma Assert
(Ekind
(Id
) = E_Function
or else Is_Formal
(Id
));
5054 Set_Uint8
(Id
, UI_From_Int
(V
));
5057 procedure Set_Modulus
(Id
: E
; V
: U
) is
5059 pragma Assert
(Ekind
(Id
) = E_Modular_Integer_Type
);
5063 procedure Set_Must_Be_On_Byte_Boundary
(Id
: E
; V
: B
:= True) is
5065 pragma Assert
(Is_Type
(Id
));
5066 Set_Flag183
(Id
, V
);
5067 end Set_Must_Be_On_Byte_Boundary
;
5069 procedure Set_Must_Have_Preelab_Init
(Id
: E
; V
: B
:= True) is
5071 pragma Assert
(Is_Type
(Id
));
5072 Set_Flag208
(Id
, V
);
5073 end Set_Must_Have_Preelab_Init
;
5075 procedure Set_Needs_Debug_Info
(Id
: E
; V
: B
:= True) is
5077 Set_Flag147
(Id
, V
);
5078 end Set_Needs_Debug_Info
;
5080 procedure Set_Needs_No_Actuals
(Id
: E
; V
: B
:= True) is
5083 (Is_Overloadable
(Id
)
5084 or else Ekind_In
(Id
, E_Subprogram_Type
, E_Entry_Family
));
5086 end Set_Needs_No_Actuals
;
5088 procedure Set_Never_Set_In_Source
(Id
: E
; V
: B
:= True) is
5090 Set_Flag115
(Id
, V
);
5091 end Set_Never_Set_In_Source
;
5093 procedure Set_Next_Inlined_Subprogram
(Id
: E
; V
: E
) is
5096 end Set_Next_Inlined_Subprogram
;
5098 procedure Set_No_Pool_Assigned
(Id
: E
; V
: B
:= True) is
5100 pragma Assert
(Is_Access_Type
(Id
) and then Is_Base_Type
(Id
));
5101 Set_Flag131
(Id
, V
);
5102 end Set_No_Pool_Assigned
;
5104 procedure Set_No_Return
(Id
: E
; V
: B
:= True) is
5107 (V
= False or else Ekind_In
(Id
, E_Procedure
, E_Generic_Procedure
));
5108 Set_Flag113
(Id
, V
);
5111 procedure Set_No_Strict_Aliasing
(Id
: E
; V
: B
:= True) is
5113 pragma Assert
(Is_Access_Type
(Id
) and then Is_Base_Type
(Id
));
5114 Set_Flag136
(Id
, V
);
5115 end Set_No_Strict_Aliasing
;
5117 procedure Set_Non_Binary_Modulus
(Id
: E
; V
: B
:= True) is
5119 pragma Assert
(Is_Type
(Id
) and then Is_Base_Type
(Id
));
5121 end Set_Non_Binary_Modulus
;
5123 procedure Set_Non_Limited_View
(Id
: E
; V
: E
) is
5125 pragma Assert
(Ekind
(Id
) in Incomplete_Kind
);
5127 end Set_Non_Limited_View
;
5129 procedure Set_Nonzero_Is_True
(Id
: E
; V
: B
:= True) is
5132 (Root_Type
(Id
) = Standard_Boolean
5133 and then Ekind
(Id
) = E_Enumeration_Type
);
5134 Set_Flag162
(Id
, V
);
5135 end Set_Nonzero_Is_True
;
5137 procedure Set_Normalized_First_Bit
(Id
: E
; V
: U
) is
5139 pragma Assert
(Ekind_In
(Id
, E_Component
, E_Discriminant
));
5141 end Set_Normalized_First_Bit
;
5143 procedure Set_Normalized_Position
(Id
: E
; V
: U
) is
5145 pragma Assert
(Ekind_In
(Id
, E_Component
, E_Discriminant
));
5147 end Set_Normalized_Position
;
5149 procedure Set_Normalized_Position_Max
(Id
: E
; V
: U
) is
5151 pragma Assert
(Ekind_In
(Id
, E_Component
, E_Discriminant
));
5153 end Set_Normalized_Position_Max
;
5155 procedure Set_OK_To_Rename
(Id
: E
; V
: B
:= True) is
5157 pragma Assert
(Ekind
(Id
) = E_Variable
);
5158 Set_Flag247
(Id
, V
);
5159 end Set_OK_To_Rename
;
5161 procedure Set_OK_To_Reorder_Components
(Id
: E
; V
: B
:= True) is
5164 (Is_Record_Type
(Id
) and then Is_Base_Type
(Id
));
5165 Set_Flag239
(Id
, V
);
5166 end Set_OK_To_Reorder_Components
;
5168 procedure Set_Optimize_Alignment_Space
(Id
: E
; V
: B
:= True) is
5171 (Is_Type
(Id
) or else Ekind_In
(Id
, E_Constant
, E_Variable
));
5172 Set_Flag241
(Id
, V
);
5173 end Set_Optimize_Alignment_Space
;
5175 procedure Set_Optimize_Alignment_Time
(Id
: E
; V
: B
:= True) is
5178 (Is_Type
(Id
) or else Ekind_In
(Id
, E_Constant
, E_Variable
));
5179 Set_Flag242
(Id
, V
);
5180 end Set_Optimize_Alignment_Time
;
5182 procedure Set_Original_Access_Type
(Id
: E
; V
: E
) is
5184 pragma Assert
(Ekind
(Id
) = E_Access_Subprogram_Type
);
5186 end Set_Original_Access_Type
;
5188 procedure Set_Original_Array_Type
(Id
: E
; V
: E
) is
5190 pragma Assert
(Is_Array_Type
(Id
) or else Is_Modular_Integer_Type
(Id
));
5192 end Set_Original_Array_Type
;
5194 procedure Set_Original_Record_Component
(Id
: E
; V
: E
) is
5196 pragma Assert
(Ekind_In
(Id
, E_Void
, E_Component
, E_Discriminant
));
5198 end Set_Original_Record_Component
;
5200 procedure Set_Overlays_Constant
(Id
: E
; V
: B
:= True) is
5202 Set_Flag243
(Id
, V
);
5203 end Set_Overlays_Constant
;
5205 procedure Set_Overridden_Operation
(Id
: E
; V
: E
) is
5208 end Set_Overridden_Operation
;
5210 procedure Set_Package_Instantiation
(Id
: E
; V
: N
) is
5212 pragma Assert
(Ekind_In
(Id
, E_Void
, E_Generic_Package
, E_Package
));
5214 end Set_Package_Instantiation
;
5216 procedure Set_Packed_Array_Type
(Id
: E
; V
: E
) is
5218 pragma Assert
(Is_Array_Type
(Id
));
5220 end Set_Packed_Array_Type
;
5222 procedure Set_Parent_Subtype
(Id
: E
; V
: E
) is
5224 pragma Assert
(Ekind
(Id
) = E_Record_Type
);
5226 end Set_Parent_Subtype
;
5228 procedure Set_Postcondition_Proc
(Id
: E
; V
: E
) is
5230 pragma Assert
(Ekind
(Id
) = E_Procedure
);
5232 end Set_Postcondition_Proc
;
5234 procedure Set_PPC_Wrapper
(Id
: E
; V
: E
) is
5236 pragma Assert
(Ekind_In
(Id
, E_Entry
, E_Entry_Family
));
5238 end Set_PPC_Wrapper
;
5240 procedure Set_Direct_Primitive_Operations
(Id
: E
; V
: L
) is
5242 pragma Assert
(Is_Tagged_Type
(Id
));
5243 Set_Elist10
(Id
, V
);
5244 end Set_Direct_Primitive_Operations
;
5246 procedure Set_Prival
(Id
: E
; V
: E
) is
5248 pragma Assert
(Is_Protected_Component
(Id
));
5252 procedure Set_Prival_Link
(Id
: E
; V
: E
) is
5254 pragma Assert
(Ekind_In
(Id
, E_Constant
, E_Variable
));
5256 end Set_Prival_Link
;
5258 procedure Set_Private_Dependents
(Id
: E
; V
: L
) is
5260 pragma Assert
(Is_Incomplete_Or_Private_Type
(Id
));
5261 Set_Elist18
(Id
, V
);
5262 end Set_Private_Dependents
;
5264 procedure Set_Private_View
(Id
: E
; V
: N
) is
5266 pragma Assert
(Is_Private_Type
(Id
));
5268 end Set_Private_View
;
5270 procedure Set_Protected_Body_Subprogram
(Id
: E
; V
: E
) is
5272 pragma Assert
(Is_Subprogram
(Id
) or else Is_Entry
(Id
));
5274 end Set_Protected_Body_Subprogram
;
5276 procedure Set_Protected_Formal
(Id
: E
; V
: E
) is
5278 pragma Assert
(Is_Formal
(Id
));
5280 end Set_Protected_Formal
;
5282 procedure Set_Protection_Object
(Id
: E
; V
: E
) is
5284 pragma Assert
(Ekind_In
(Id
, E_Entry
,
5289 end Set_Protection_Object
;
5291 procedure Set_Reachable
(Id
: E
; V
: B
:= True) is
5296 procedure Set_Referenced
(Id
: E
; V
: B
:= True) is
5298 Set_Flag156
(Id
, V
);
5301 procedure Set_Referenced_As_LHS
(Id
: E
; V
: B
:= True) is
5304 end Set_Referenced_As_LHS
;
5306 procedure Set_Referenced_As_Out_Parameter
(Id
: E
; V
: B
:= True) is
5308 Set_Flag227
(Id
, V
);
5309 end Set_Referenced_As_Out_Parameter
;
5311 procedure Set_Refined_State
(Id
: E
; V
: E
) is
5313 pragma Assert
(Ekind
(Id
) = E_Abstract_State
);
5315 end Set_Refined_State
;
5317 procedure Set_Register_Exception_Call
(Id
: E
; V
: N
) is
5319 pragma Assert
(Ekind
(Id
) = E_Exception
);
5321 end Set_Register_Exception_Call
;
5323 procedure Set_Related_Array_Object
(Id
: E
; V
: E
) is
5325 pragma Assert
(Is_Array_Type
(Id
));
5327 end Set_Related_Array_Object
;
5329 procedure Set_Related_Expression
(Id
: E
; V
: N
) is
5331 pragma Assert
(Ekind
(Id
) in Type_Kind
5332 or else Ekind_In
(Id
, E_Constant
, E_Variable
, E_Void
));
5334 end Set_Related_Expression
;
5336 procedure Set_Related_Instance
(Id
: E
; V
: E
) is
5338 pragma Assert
(Ekind_In
(Id
, E_Package
, E_Package_Body
));
5340 end Set_Related_Instance
;
5342 procedure Set_Related_Type
(Id
: E
; V
: E
) is
5344 pragma Assert
(Ekind_In
(Id
, E_Component
, E_Constant
, E_Variable
));
5346 end Set_Related_Type
;
5348 procedure Set_Relative_Deadline_Variable
(Id
: E
; V
: E
) is
5350 pragma Assert
(Is_Task_Type
(Id
) and then Is_Base_Type
(Id
));
5352 end Set_Relative_Deadline_Variable
;
5354 procedure Set_Renamed_Entity
(Id
: E
; V
: N
) is
5357 end Set_Renamed_Entity
;
5359 procedure Set_Renamed_In_Spec
(Id
: E
; V
: B
:= True) is
5361 pragma Assert
(Ekind
(Id
) = E_Package
);
5362 Set_Flag231
(Id
, V
);
5363 end Set_Renamed_In_Spec
;
5365 procedure Set_Renamed_Object
(Id
: E
; V
: N
) is
5368 end Set_Renamed_Object
;
5370 procedure Set_Renaming_Map
(Id
: E
; V
: U
) is
5373 end Set_Renaming_Map
;
5375 procedure Set_Requires_Overriding
(Id
: E
; V
: B
:= True) is
5377 pragma Assert
(Is_Overloadable
(Id
));
5378 Set_Flag213
(Id
, V
);
5379 end Set_Requires_Overriding
;
5381 procedure Set_Return_Present
(Id
: E
; V
: B
:= True) is
5384 end Set_Return_Present
;
5386 procedure Set_Return_Applies_To
(Id
: E
; V
: N
) is
5389 end Set_Return_Applies_To
;
5391 procedure Set_Returns_By_Ref
(Id
: E
; V
: B
:= True) is
5394 end Set_Returns_By_Ref
;
5396 procedure Set_Reverse_Bit_Order
(Id
: E
; V
: B
:= True) is
5399 (Is_Record_Type
(Id
) and then Is_Base_Type
(Id
));
5400 Set_Flag164
(Id
, V
);
5401 end Set_Reverse_Bit_Order
;
5403 procedure Set_Reverse_Storage_Order
(Id
: E
; V
: B
:= True) is
5407 and then (Is_Record_Type
(Id
) or else Is_Array_Type
(Id
)));
5409 end Set_Reverse_Storage_Order
;
5411 procedure Set_RM_Size
(Id
: E
; V
: U
) is
5413 pragma Assert
(Is_Type
(Id
));
5417 procedure Set_Scalar_Range
(Id
: E
; V
: N
) is
5420 end Set_Scalar_Range
;
5422 procedure Set_Scale_Value
(Id
: E
; V
: U
) is
5425 end Set_Scale_Value
;
5427 procedure Set_Scope_Depth_Value
(Id
: E
; V
: U
) is
5429 pragma Assert
(not Is_Record_Type
(Id
));
5431 end Set_Scope_Depth_Value
;
5433 procedure Set_Sec_Stack_Needed_For_Return
(Id
: E
; V
: B
:= True) is
5435 Set_Flag167
(Id
, V
);
5436 end Set_Sec_Stack_Needed_For_Return
;
5438 procedure Set_Shadow_Entities
(Id
: E
; V
: S
) is
5440 pragma Assert
(Ekind_In
(Id
, E_Package
, E_Generic_Package
));
5442 end Set_Shadow_Entities
;
5444 procedure Set_Shared_Var_Procs_Instance
(Id
: E
; V
: E
) is
5446 pragma Assert
(Ekind
(Id
) = E_Variable
);
5448 end Set_Shared_Var_Procs_Instance
;
5450 procedure Set_Size_Check_Code
(Id
: E
; V
: N
) is
5452 pragma Assert
(Ekind_In
(Id
, E_Constant
, E_Variable
));
5454 end Set_Size_Check_Code
;
5456 procedure Set_Size_Depends_On_Discriminant
(Id
: E
; V
: B
:= True) is
5458 Set_Flag177
(Id
, V
);
5459 end Set_Size_Depends_On_Discriminant
;
5461 procedure Set_Size_Known_At_Compile_Time
(Id
: E
; V
: B
:= True) is
5464 end Set_Size_Known_At_Compile_Time
;
5466 procedure Set_Small_Value
(Id
: E
; V
: R
) is
5468 pragma Assert
(Is_Fixed_Point_Type
(Id
));
5469 Set_Ureal21
(Id
, V
);
5470 end Set_Small_Value
;
5472 procedure Set_Spec_Entity
(Id
: E
; V
: E
) is
5474 pragma Assert
(Ekind
(Id
) = E_Package_Body
or else Is_Formal
(Id
));
5476 end Set_Spec_Entity
;
5478 procedure Set_Static_Predicate
(Id
: E
; V
: S
) is
5481 (Ekind_In
(Id
, E_Enumeration_Subtype
,
5482 E_Modular_Integer_Subtype
,
5483 E_Signed_Integer_Subtype
)
5484 and then Has_Predicates
(Id
));
5486 end Set_Static_Predicate
;
5488 procedure Set_Status_Flag_Or_Transient_Decl
(Id
: E
; V
: E
) is
5490 pragma Assert
(Ekind_In
(Id
, E_Constant
, E_Variable
));
5492 end Set_Status_Flag_Or_Transient_Decl
;
5494 procedure Set_Storage_Size_Variable
(Id
: E
; V
: E
) is
5496 pragma Assert
(Is_Access_Type
(Id
) or else Is_Task_Type
(Id
));
5497 pragma Assert
(Id
= Base_Type
(Id
));
5499 end Set_Storage_Size_Variable
;
5501 procedure Set_Static_Elaboration_Desired
(Id
: E
; V
: B
) is
5503 pragma Assert
(Ekind
(Id
) = E_Package
);
5505 end Set_Static_Elaboration_Desired
;
5507 procedure Set_Static_Initialization
(Id
: E
; V
: N
) is
5510 (Ekind
(Id
) = E_Procedure
and then not Is_Dispatching_Operation
(Id
));
5512 end Set_Static_Initialization
;
5514 procedure Set_Stored_Constraint
(Id
: E
; V
: L
) is
5516 pragma Assert
(Nkind
(Id
) in N_Entity
);
5517 Set_Elist23
(Id
, V
);
5518 end Set_Stored_Constraint
;
5520 procedure Set_Strict_Alignment
(Id
: E
; V
: B
:= True) is
5522 pragma Assert
(Id
= Base_Type
(Id
));
5523 Set_Flag145
(Id
, V
);
5524 end Set_Strict_Alignment
;
5526 procedure Set_String_Literal_Length
(Id
: E
; V
: U
) is
5528 pragma Assert
(Ekind
(Id
) = E_String_Literal_Subtype
);
5530 end Set_String_Literal_Length
;
5532 procedure Set_String_Literal_Low_Bound
(Id
: E
; V
: N
) is
5534 pragma Assert
(Ekind
(Id
) = E_String_Literal_Subtype
);
5536 end Set_String_Literal_Low_Bound
;
5538 procedure Set_Subprograms_For_Type
(Id
: E
; V
: E
) is
5540 pragma Assert
(Is_Type
(Id
) or else Is_Subprogram
(Id
));
5542 end Set_Subprograms_For_Type
;
5544 procedure Set_Suppress_Elaboration_Warnings
(Id
: E
; V
: B
:= True) is
5546 Set_Flag148
(Id
, V
);
5547 end Set_Suppress_Elaboration_Warnings
;
5549 procedure Set_Suppress_Initialization
(Id
: E
; V
: B
:= True) is
5551 pragma Assert
(Is_Type
(Id
));
5552 Set_Flag105
(Id
, V
);
5553 end Set_Suppress_Initialization
;
5555 procedure Set_Suppress_Style_Checks
(Id
: E
; V
: B
:= True) is
5557 Set_Flag165
(Id
, V
);
5558 end Set_Suppress_Style_Checks
;
5560 procedure Set_Suppress_Value_Tracking_On_Call
(Id
: E
; V
: B
:= True) is
5562 Set_Flag217
(Id
, V
);
5563 end Set_Suppress_Value_Tracking_On_Call
;
5565 procedure Set_Task_Body_Procedure
(Id
: E
; V
: N
) is
5567 pragma Assert
(Ekind
(Id
) in Task_Kind
);
5569 end Set_Task_Body_Procedure
;
5571 procedure Set_Thunk_Entity
(Id
: E
; V
: E
) is
5573 pragma Assert
(Ekind_In
(Id
, E_Function
, E_Procedure
)
5574 and then Is_Thunk
(Id
));
5576 end Set_Thunk_Entity
;
5578 procedure Set_Treat_As_Volatile
(Id
: E
; V
: B
:= True) is
5581 end Set_Treat_As_Volatile
;
5583 procedure Set_Underlying_Full_View
(Id
: E
; V
: E
) is
5585 pragma Assert
(Ekind
(Id
) in Private_Kind
);
5587 end Set_Underlying_Full_View
;
5589 procedure Set_Underlying_Record_View
(Id
: E
; V
: E
) is
5591 pragma Assert
(Ekind
(Id
) = E_Record_Type
);
5593 end Set_Underlying_Record_View
;
5595 procedure Set_Universal_Aliasing
(Id
: E
; V
: B
:= True) is
5597 pragma Assert
(Is_Type
(Id
) and then Is_Base_Type
(Id
));
5598 Set_Flag216
(Id
, V
);
5599 end Set_Universal_Aliasing
;
5601 procedure Set_Unset_Reference
(Id
: E
; V
: N
) is
5604 end Set_Unset_Reference
;
5606 procedure Set_Used_As_Generic_Actual
(Id
: E
; V
: B
:= True) is
5608 Set_Flag222
(Id
, V
);
5609 end Set_Used_As_Generic_Actual
;
5611 procedure Set_Uses_Lock_Free
(Id
: E
; V
: B
:= True) is
5613 pragma Assert
(Ekind
(Id
) = E_Protected_Type
);
5614 Set_Flag188
(Id
, V
);
5615 end Set_Uses_Lock_Free
;
5617 procedure Set_Uses_Sec_Stack
(Id
: E
; V
: B
:= True) is
5620 end Set_Uses_Sec_Stack
;
5622 procedure Set_Warnings_Off
(Id
: E
; V
: B
:= True) is
5625 end Set_Warnings_Off
;
5627 procedure Set_Warnings_Off_Used
(Id
: E
; V
: B
:= True) is
5629 Set_Flag236
(Id
, V
);
5630 end Set_Warnings_Off_Used
;
5632 procedure Set_Warnings_Off_Used_Unmodified
(Id
: E
; V
: B
:= True) is
5634 Set_Flag237
(Id
, V
);
5635 end Set_Warnings_Off_Used_Unmodified
;
5637 procedure Set_Warnings_Off_Used_Unreferenced
(Id
: E
; V
: B
:= True) is
5639 Set_Flag238
(Id
, V
);
5640 end Set_Warnings_Off_Used_Unreferenced
;
5642 procedure Set_Was_Hidden
(Id
: E
; V
: B
:= True) is
5644 Set_Flag196
(Id
, V
);
5647 procedure Set_Wrapped_Entity
(Id
: E
; V
: E
) is
5649 pragma Assert
(Ekind_In
(Id
, E_Function
, E_Procedure
)
5650 and then Is_Primitive_Wrapper
(Id
));
5652 end Set_Wrapped_Entity
;
5654 -----------------------------------
5655 -- Field Initialization Routines --
5656 -----------------------------------
5658 procedure Init_Alignment
(Id
: E
) is
5660 Set_Uint14
(Id
, Uint_0
);
5663 procedure Init_Alignment
(Id
: E
; V
: Int
) is
5665 Set_Uint14
(Id
, UI_From_Int
(V
));
5668 procedure Init_Component_Bit_Offset
(Id
: E
) is
5670 Set_Uint11
(Id
, No_Uint
);
5671 end Init_Component_Bit_Offset
;
5673 procedure Init_Component_Bit_Offset
(Id
: E
; V
: Int
) is
5675 Set_Uint11
(Id
, UI_From_Int
(V
));
5676 end Init_Component_Bit_Offset
;
5678 procedure Init_Component_Size
(Id
: E
) is
5680 Set_Uint22
(Id
, Uint_0
);
5681 end Init_Component_Size
;
5683 procedure Init_Component_Size
(Id
: E
; V
: Int
) is
5685 Set_Uint22
(Id
, UI_From_Int
(V
));
5686 end Init_Component_Size
;
5688 procedure Init_Digits_Value
(Id
: E
) is
5690 Set_Uint17
(Id
, Uint_0
);
5691 end Init_Digits_Value
;
5693 procedure Init_Digits_Value
(Id
: E
; V
: Int
) is
5695 Set_Uint17
(Id
, UI_From_Int
(V
));
5696 end Init_Digits_Value
;
5698 procedure Init_Esize
(Id
: E
) is
5700 Set_Uint12
(Id
, Uint_0
);
5703 procedure Init_Esize
(Id
: E
; V
: Int
) is
5705 Set_Uint12
(Id
, UI_From_Int
(V
));
5708 procedure Init_Normalized_First_Bit
(Id
: E
) is
5710 Set_Uint8
(Id
, No_Uint
);
5711 end Init_Normalized_First_Bit
;
5713 procedure Init_Normalized_First_Bit
(Id
: E
; V
: Int
) is
5715 Set_Uint8
(Id
, UI_From_Int
(V
));
5716 end Init_Normalized_First_Bit
;
5718 procedure Init_Normalized_Position
(Id
: E
) is
5720 Set_Uint14
(Id
, No_Uint
);
5721 end Init_Normalized_Position
;
5723 procedure Init_Normalized_Position
(Id
: E
; V
: Int
) is
5725 Set_Uint14
(Id
, UI_From_Int
(V
));
5726 end Init_Normalized_Position
;
5728 procedure Init_Normalized_Position_Max
(Id
: E
) is
5730 Set_Uint10
(Id
, No_Uint
);
5731 end Init_Normalized_Position_Max
;
5733 procedure Init_Normalized_Position_Max
(Id
: E
; V
: Int
) is
5735 Set_Uint10
(Id
, UI_From_Int
(V
));
5736 end Init_Normalized_Position_Max
;
5738 procedure Init_RM_Size
(Id
: E
) is
5740 Set_Uint13
(Id
, Uint_0
);
5743 procedure Init_RM_Size
(Id
: E
; V
: Int
) is
5745 Set_Uint13
(Id
, UI_From_Int
(V
));
5748 -----------------------------
5749 -- Init_Component_Location --
5750 -----------------------------
5752 procedure Init_Component_Location
(Id
: E
) is
5754 Set_Uint8
(Id
, No_Uint
); -- Normalized_First_Bit
5755 Set_Uint10
(Id
, No_Uint
); -- Normalized_Position_Max
5756 Set_Uint11
(Id
, No_Uint
); -- Component_Bit_Offset
5757 Set_Uint12
(Id
, Uint_0
); -- Esize
5758 Set_Uint14
(Id
, No_Uint
); -- Normalized_Position
5759 end Init_Component_Location
;
5761 ----------------------------
5762 -- Init_Object_Size_Align --
5763 ----------------------------
5765 procedure Init_Object_Size_Align
(Id
: E
) is
5767 Set_Uint12
(Id
, Uint_0
); -- Esize
5768 Set_Uint14
(Id
, Uint_0
); -- Alignment
5769 end Init_Object_Size_Align
;
5775 procedure Init_Size
(Id
: E
; V
: Int
) is
5777 pragma Assert
(not Is_Object
(Id
));
5778 Set_Uint12
(Id
, UI_From_Int
(V
)); -- Esize
5779 Set_Uint13
(Id
, UI_From_Int
(V
)); -- RM_Size
5782 ---------------------
5783 -- Init_Size_Align --
5784 ---------------------
5786 procedure Init_Size_Align
(Id
: E
) is
5788 pragma Assert
(not Is_Object
(Id
));
5789 Set_Uint12
(Id
, Uint_0
); -- Esize
5790 Set_Uint13
(Id
, Uint_0
); -- RM_Size
5791 Set_Uint14
(Id
, Uint_0
); -- Alignment
5792 end Init_Size_Align
;
5794 ----------------------------------------------
5795 -- Type Representation Attribute Predicates --
5796 ----------------------------------------------
5798 function Known_Alignment
(E
: Entity_Id
) return B
is
5800 return Uint14
(E
) /= Uint_0
5801 and then Uint14
(E
) /= No_Uint
;
5802 end Known_Alignment
;
5804 function Known_Component_Bit_Offset
(E
: Entity_Id
) return B
is
5806 return Uint11
(E
) /= No_Uint
;
5807 end Known_Component_Bit_Offset
;
5809 function Known_Component_Size
(E
: Entity_Id
) return B
is
5811 return Uint22
(Base_Type
(E
)) /= Uint_0
5812 and then Uint22
(Base_Type
(E
)) /= No_Uint
;
5813 end Known_Component_Size
;
5815 function Known_Esize
(E
: Entity_Id
) return B
is
5817 return Uint12
(E
) /= Uint_0
5818 and then Uint12
(E
) /= No_Uint
;
5821 function Known_Normalized_First_Bit
(E
: Entity_Id
) return B
is
5823 return Uint8
(E
) /= No_Uint
;
5824 end Known_Normalized_First_Bit
;
5826 function Known_Normalized_Position
(E
: Entity_Id
) return B
is
5828 return Uint14
(E
) /= No_Uint
;
5829 end Known_Normalized_Position
;
5831 function Known_Normalized_Position_Max
(E
: Entity_Id
) return B
is
5833 return Uint10
(E
) /= No_Uint
;
5834 end Known_Normalized_Position_Max
;
5836 function Known_RM_Size
(E
: Entity_Id
) return B
is
5838 return Uint13
(E
) /= No_Uint
5839 and then (Uint13
(E
) /= Uint_0
5840 or else Is_Discrete_Type
(E
)
5841 or else Is_Fixed_Point_Type
(E
));
5844 function Known_Static_Component_Bit_Offset
(E
: Entity_Id
) return B
is
5846 return Uint11
(E
) /= No_Uint
5847 and then Uint11
(E
) >= Uint_0
;
5848 end Known_Static_Component_Bit_Offset
;
5850 function Known_Static_Component_Size
(E
: Entity_Id
) return B
is
5852 return Uint22
(Base_Type
(E
)) > Uint_0
;
5853 end Known_Static_Component_Size
;
5855 function Known_Static_Esize
(E
: Entity_Id
) return B
is
5857 return Uint12
(E
) > Uint_0
5858 and then not Is_Generic_Type
(E
);
5859 end Known_Static_Esize
;
5861 function Known_Static_Normalized_First_Bit
(E
: Entity_Id
) return B
is
5863 return Uint8
(E
) /= No_Uint
5864 and then Uint8
(E
) >= Uint_0
;
5865 end Known_Static_Normalized_First_Bit
;
5867 function Known_Static_Normalized_Position
(E
: Entity_Id
) return B
is
5869 return Uint14
(E
) /= No_Uint
5870 and then Uint14
(E
) >= Uint_0
;
5871 end Known_Static_Normalized_Position
;
5873 function Known_Static_Normalized_Position_Max
(E
: Entity_Id
) return B
is
5875 return Uint10
(E
) /= No_Uint
5876 and then Uint10
(E
) >= Uint_0
;
5877 end Known_Static_Normalized_Position_Max
;
5879 function Known_Static_RM_Size
(E
: Entity_Id
) return B
is
5881 return (Uint13
(E
) > Uint_0
5882 or else Is_Discrete_Type
(E
)
5883 or else Is_Fixed_Point_Type
(E
))
5884 and then not Is_Generic_Type
(E
);
5885 end Known_Static_RM_Size
;
5887 function Unknown_Alignment
(E
: Entity_Id
) return B
is
5889 return Uint14
(E
) = Uint_0
5890 or else Uint14
(E
) = No_Uint
;
5891 end Unknown_Alignment
;
5893 function Unknown_Component_Bit_Offset
(E
: Entity_Id
) return B
is
5895 return Uint11
(E
) = No_Uint
;
5896 end Unknown_Component_Bit_Offset
;
5898 function Unknown_Component_Size
(E
: Entity_Id
) return B
is
5900 return Uint22
(Base_Type
(E
)) = Uint_0
5902 Uint22
(Base_Type
(E
)) = No_Uint
;
5903 end Unknown_Component_Size
;
5905 function Unknown_Esize
(E
: Entity_Id
) return B
is
5907 return Uint12
(E
) = No_Uint
5909 Uint12
(E
) = Uint_0
;
5912 function Unknown_Normalized_First_Bit
(E
: Entity_Id
) return B
is
5914 return Uint8
(E
) = No_Uint
;
5915 end Unknown_Normalized_First_Bit
;
5917 function Unknown_Normalized_Position
(E
: Entity_Id
) return B
is
5919 return Uint14
(E
) = No_Uint
;
5920 end Unknown_Normalized_Position
;
5922 function Unknown_Normalized_Position_Max
(E
: Entity_Id
) return B
is
5924 return Uint10
(E
) = No_Uint
;
5925 end Unknown_Normalized_Position_Max
;
5927 function Unknown_RM_Size
(E
: Entity_Id
) return B
is
5929 return (Uint13
(E
) = Uint_0
5930 and then not Is_Discrete_Type
(E
)
5931 and then not Is_Fixed_Point_Type
(E
))
5932 or else Uint13
(E
) = No_Uint
;
5933 end Unknown_RM_Size
;
5935 --------------------
5936 -- Address_Clause --
5937 --------------------
5939 function Address_Clause
(Id
: E
) return N
is
5941 return Rep_Clause
(Id
, Name_Address
);
5948 function Aft_Value
(Id
: E
) return U
is
5950 Delta_Val
: Ureal
:= Delta_Value
(Id
);
5952 while Delta_Val
< Ureal_Tenth
loop
5953 Delta_Val
:= Delta_Val
* Ureal_10
;
5954 Result
:= Result
+ 1;
5957 return UI_From_Int
(Result
);
5960 ----------------------
5961 -- Alignment_Clause --
5962 ----------------------
5964 function Alignment_Clause
(Id
: E
) return N
is
5966 return Rep_Clause
(Id
, Name_Alignment
);
5967 end Alignment_Clause
;
5973 procedure Append_Entity
(Id
: Entity_Id
; V
: Entity_Id
) is
5975 if Last_Entity
(V
) = Empty
then
5976 Set_First_Entity
(Id
=> V
, V
=> Id
);
5978 Set_Next_Entity
(Last_Entity
(V
), Id
);
5981 Set_Next_Entity
(Id
, Empty
);
5983 Set_Last_Entity
(Id
=> V
, V
=> Id
);
5990 function Base_Type
(Id
: E
) return E
is
5992 if Is_Base_Type
(Id
) then
5995 pragma Assert
(Is_Type
(Id
));
6000 -------------------------
6001 -- Component_Alignment --
6002 -------------------------
6004 -- Component Alignment is encoded using two flags, Flag128/129 as
6005 -- follows. Note that both flags False = Align_Default, so that the
6006 -- default initialization of flags to False initializes component
6007 -- alignment to the default value as required.
6009 -- Flag128 Flag129 Value
6010 -- ------- ------- -----
6011 -- False False Calign_Default
6012 -- False True Calign_Component_Size
6013 -- True False Calign_Component_Size_4
6014 -- True True Calign_Storage_Unit
6016 function Component_Alignment
(Id
: E
) return C
is
6017 BT
: constant Node_Id
:= Base_Type
(Id
);
6020 pragma Assert
(Is_Array_Type
(Id
) or else Is_Record_Type
(Id
));
6022 if Flag128
(BT
) then
6023 if Flag129
(BT
) then
6024 return Calign_Storage_Unit
;
6026 return Calign_Component_Size_4
;
6030 if Flag129
(BT
) then
6031 return Calign_Component_Size
;
6033 return Calign_Default
;
6036 end Component_Alignment
;
6038 ----------------------
6039 -- Declaration_Node --
6040 ----------------------
6042 function Declaration_Node
(Id
: E
) return N
is
6046 if Ekind
(Id
) = E_Incomplete_Type
6047 and then Present
(Full_View
(Id
))
6049 P
:= Parent
(Full_View
(Id
));
6055 if Nkind
(P
) /= N_Selected_Component
6056 and then Nkind
(P
) /= N_Expanded_Name
6058 not (Nkind
(P
) = N_Defining_Program_Unit_Name
6059 and then Is_Child_Unit
(Id
))
6066 end Declaration_Node
;
6068 ---------------------
6069 -- Designated_Type --
6070 ---------------------
6072 function Designated_Type
(Id
: E
) return E
is
6076 Desig_Type
:= Directly_Designated_Type
(Id
);
6078 if Ekind
(Desig_Type
) = E_Incomplete_Type
6079 and then Present
(Full_View
(Desig_Type
))
6081 return Full_View
(Desig_Type
);
6083 elsif Is_Class_Wide_Type
(Desig_Type
)
6084 and then Ekind
(Etype
(Desig_Type
)) = E_Incomplete_Type
6085 and then Present
(Full_View
(Etype
(Desig_Type
)))
6086 and then Present
(Class_Wide_Type
(Full_View
(Etype
(Desig_Type
))))
6088 return Class_Wide_Type
(Full_View
(Etype
(Desig_Type
)));
6093 end Designated_Type
;
6095 ----------------------
6096 -- Entry_Index_Type --
6097 ----------------------
6099 function Entry_Index_Type
(Id
: E
) return N
is
6101 pragma Assert
(Ekind
(Id
) = E_Entry_Family
);
6102 return Etype
(Discrete_Subtype_Definition
(Parent
(Id
)));
6103 end Entry_Index_Type
;
6105 ---------------------
6106 -- First_Component --
6107 ---------------------
6109 function First_Component
(Id
: E
) return E
is
6114 (Is_Record_Type
(Id
) or else Is_Incomplete_Or_Private_Type
(Id
));
6116 Comp_Id
:= First_Entity
(Id
);
6117 while Present
(Comp_Id
) loop
6118 exit when Ekind
(Comp_Id
) = E_Component
;
6119 Comp_Id
:= Next_Entity
(Comp_Id
);
6123 end First_Component
;
6125 -------------------------------------
6126 -- First_Component_Or_Discriminant --
6127 -------------------------------------
6129 function First_Component_Or_Discriminant
(Id
: E
) return E
is
6134 (Is_Record_Type
(Id
)
6135 or else Is_Incomplete_Or_Private_Type
(Id
)
6136 or else Has_Discriminants
(Id
));
6138 Comp_Id
:= First_Entity
(Id
);
6139 while Present
(Comp_Id
) loop
6140 exit when Ekind_In
(Comp_Id
, E_Component
, E_Discriminant
);
6141 Comp_Id
:= Next_Entity
(Comp_Id
);
6145 end First_Component_Or_Discriminant
;
6151 function First_Formal
(Id
: E
) return E
is
6156 (Is_Overloadable
(Id
)
6157 or else Ekind_In
(Id
, E_Entry_Family
,
6159 E_Subprogram_Type
));
6161 if Ekind
(Id
) = E_Enumeration_Literal
then
6165 Formal
:= First_Entity
(Id
);
6167 if Present
(Formal
) and then Is_Formal
(Formal
) then
6175 ------------------------------
6176 -- First_Formal_With_Extras --
6177 ------------------------------
6179 function First_Formal_With_Extras
(Id
: E
) return E
is
6184 (Is_Overloadable
(Id
)
6185 or else Ekind_In
(Id
, E_Entry_Family
,
6187 E_Subprogram_Type
));
6189 if Ekind
(Id
) = E_Enumeration_Literal
then
6193 Formal
:= First_Entity
(Id
);
6195 if Present
(Formal
) and then Is_Formal
(Formal
) then
6198 return Extra_Formals
(Id
); -- Empty if no extra formals
6201 end First_Formal_With_Extras
;
6203 -------------------------------------
6204 -- Get_Attribute_Definition_Clause --
6205 -------------------------------------
6207 function Get_Attribute_Definition_Clause
6209 Id
: Attribute_Id
) return Node_Id
6214 N
:= First_Rep_Item
(E
);
6215 while Present
(N
) loop
6216 if Nkind
(N
) = N_Attribute_Definition_Clause
6217 and then Get_Attribute_Id
(Chars
(N
)) = Id
6226 end Get_Attribute_Definition_Clause
;
6232 function Get_Full_View
(T
: Entity_Id
) return Entity_Id
is
6234 if Ekind
(T
) = E_Incomplete_Type
and then Present
(Full_View
(T
)) then
6235 return Full_View
(T
);
6237 elsif Is_Class_Wide_Type
(T
)
6238 and then Ekind
(Root_Type
(T
)) = E_Incomplete_Type
6239 and then Present
(Full_View
(Root_Type
(T
)))
6241 return Class_Wide_Type
(Full_View
(Root_Type
(T
)));
6252 function Get_Pragma
(E
: Entity_Id
; Id
: Pragma_Id
) return Node_Id
6257 N
:= First_Rep_Item
(E
);
6258 while Present
(N
) loop
6259 if Nkind
(N
) = N_Pragma
6260 and then Get_Pragma_Id
(Pragma_Name
(N
)) = Id
6271 --------------------------------------
6272 -- Get_Record_Representation_Clause --
6273 --------------------------------------
6275 function Get_Record_Representation_Clause
(E
: Entity_Id
) return Node_Id
is
6279 N
:= First_Rep_Item
(E
);
6280 while Present
(N
) loop
6281 if Nkind
(N
) = N_Record_Representation_Clause
then
6289 end Get_Record_Representation_Clause
;
6291 ------------------------
6292 -- Has_Attach_Handler --
6293 ------------------------
6295 function Has_Attach_Handler
(Id
: E
) return B
is
6299 pragma Assert
(Is_Protected_Type
(Id
));
6301 Ritem
:= First_Rep_Item
(Id
);
6302 while Present
(Ritem
) loop
6303 if Nkind
(Ritem
) = N_Pragma
6304 and then Pragma_Name
(Ritem
) = Name_Attach_Handler
6308 Next_Rep_Item
(Ritem
);
6313 end Has_Attach_Handler
;
6319 function Has_Entries
(Id
: E
) return B
is
6323 pragma Assert
(Is_Concurrent_Type
(Id
));
6325 Ent
:= First_Entity
(Id
);
6326 while Present
(Ent
) loop
6327 if Is_Entry
(Ent
) then
6331 Ent
:= Next_Entity
(Ent
);
6337 ----------------------------
6338 -- Has_Foreign_Convention --
6339 ----------------------------
6341 function Has_Foreign_Convention
(Id
: E
) return B
is
6343 -- While regular Intrinsics such as the Standard operators fit in the
6344 -- "Ada" convention, those with an Interface_Name materialize GCC
6345 -- builtin imports for which Ada special treatments shouldn't apply.
6347 return Convention
(Id
) in Foreign_Convention
6348 or else (Convention
(Id
) = Convention_Intrinsic
6349 and then Present
(Interface_Name
(Id
)));
6350 end Has_Foreign_Convention
;
6352 ---------------------------
6353 -- Has_Interrupt_Handler --
6354 ---------------------------
6356 function Has_Interrupt_Handler
(Id
: E
) return B
is
6360 pragma Assert
(Is_Protected_Type
(Id
));
6362 Ritem
:= First_Rep_Item
(Id
);
6363 while Present
(Ritem
) loop
6364 if Nkind
(Ritem
) = N_Pragma
6365 and then Pragma_Name
(Ritem
) = Name_Interrupt_Handler
6369 Next_Rep_Item
(Ritem
);
6374 end Has_Interrupt_Handler
;
6376 --------------------
6377 -- Has_Unmodified --
6378 --------------------
6380 function Has_Unmodified
(E
: Entity_Id
) return Boolean is
6382 if Has_Pragma_Unmodified
(E
) then
6384 elsif Warnings_Off
(E
) then
6385 Set_Warnings_Off_Used_Unmodified
(E
);
6392 ---------------------
6393 -- Has_Unreferenced --
6394 ---------------------
6396 function Has_Unreferenced
(E
: Entity_Id
) return Boolean is
6398 if Has_Pragma_Unreferenced
(E
) then
6400 elsif Warnings_Off
(E
) then
6401 Set_Warnings_Off_Used_Unreferenced
(E
);
6406 end Has_Unreferenced
;
6408 ----------------------
6409 -- Has_Warnings_Off --
6410 ----------------------
6412 function Has_Warnings_Off
(E
: Entity_Id
) return Boolean is
6414 if Warnings_Off
(E
) then
6415 Set_Warnings_Off_Used
(E
);
6420 end Has_Warnings_Off
;
6422 ------------------------------
6423 -- Implementation_Base_Type --
6424 ------------------------------
6426 function Implementation_Base_Type
(Id
: E
) return E
is
6431 Bastyp
:= Base_Type
(Id
);
6433 if Is_Incomplete_Or_Private_Type
(Bastyp
) then
6434 Imptyp
:= Underlying_Type
(Bastyp
);
6436 -- If we have an implementation type, then just return it,
6437 -- otherwise we return the Base_Type anyway. This can only
6438 -- happen in error situations and should avoid some error bombs.
6440 if Present
(Imptyp
) then
6441 return Base_Type
(Imptyp
);
6449 end Implementation_Base_Type
;
6451 -------------------------
6452 -- Invariant_Procedure --
6453 -------------------------
6455 function Invariant_Procedure
(Id
: E
) return E
is
6459 pragma Assert
(Is_Type
(Id
) and then Has_Invariants
(Id
));
6461 if No
(Subprograms_For_Type
(Id
)) then
6465 S
:= Subprograms_For_Type
(Id
);
6466 while Present
(S
) loop
6467 if Is_Invariant_Procedure
(S
) then
6470 S
:= Subprograms_For_Type
(S
);
6476 end Invariant_Procedure
;
6482 -- Global flag table allowing rapid computation of this function
6484 Entity_Is_Base_Type
: constant array (Entity_Kind
) of Boolean :=
6485 (E_Enumeration_Subtype |
6487 E_Signed_Integer_Subtype |
6488 E_Modular_Integer_Subtype |
6489 E_Floating_Point_Subtype |
6490 E_Ordinary_Fixed_Point_Subtype |
6491 E_Decimal_Fixed_Point_Subtype |
6496 E_Record_Subtype_With_Private |
6497 E_Limited_Private_Subtype |
6499 E_Protected_Subtype |
6501 E_String_Literal_Subtype |
6502 E_Class_Wide_Subtype
=> False,
6505 function Is_Base_Type
(Id
: E
) return Boolean is
6507 return Entity_Is_Base_Type
(Ekind
(Id
));
6510 ---------------------
6511 -- Is_Boolean_Type --
6512 ---------------------
6514 function Is_Boolean_Type
(Id
: E
) return B
is
6516 return Root_Type
(Id
) = Standard_Boolean
;
6517 end Is_Boolean_Type
;
6519 ------------------------
6520 -- Is_Constant_Object --
6521 ------------------------
6523 function Is_Constant_Object
(Id
: E
) return B
is
6524 K
: constant Entity_Kind
:= Ekind
(Id
);
6527 K
= E_Constant
or else K
= E_In_Parameter
or else K
= E_Loop_Parameter
;
6528 end Is_Constant_Object
;
6530 --------------------
6531 -- Is_Discriminal --
6532 --------------------
6534 function Is_Discriminal
(Id
: E
) return B
is
6536 return (Ekind_In
(Id
, E_Constant
, E_In_Parameter
)
6537 and then Present
(Discriminal_Link
(Id
)));
6540 ----------------------
6541 -- Is_Dynamic_Scope --
6542 ----------------------
6544 function Is_Dynamic_Scope
(Id
: E
) return B
is
6547 Ekind
(Id
) = E_Block
6549 Ekind
(Id
) = E_Function
6551 Ekind
(Id
) = E_Procedure
6553 Ekind
(Id
) = E_Subprogram_Body
6555 Ekind
(Id
) = E_Task_Type
6557 (Ekind
(Id
) = E_Limited_Private_Type
6558 and then Present
(Full_View
(Id
))
6559 and then Ekind
(Full_View
(Id
)) = E_Task_Type
)
6561 Ekind
(Id
) = E_Entry
6563 Ekind
(Id
) = E_Entry_Family
6565 Ekind
(Id
) = E_Return_Statement
;
6566 end Is_Dynamic_Scope
;
6568 --------------------
6569 -- Is_Entity_Name --
6570 --------------------
6572 function Is_Entity_Name
(N
: Node_Id
) return Boolean is
6573 Kind
: constant Node_Kind
:= Nkind
(N
);
6576 -- Identifiers, operator symbols, expanded names are entity names
6578 return Kind
= N_Identifier
6579 or else Kind
= N_Operator_Symbol
6580 or else Kind
= N_Expanded_Name
6582 -- Attribute references are entity names if they refer to an entity.
6583 -- Note that we don't do this by testing for the presence of the
6584 -- Entity field in the N_Attribute_Reference node, since it may not
6585 -- have been set yet.
6587 or else (Kind
= N_Attribute_Reference
6588 and then Is_Entity_Attribute_Name
(Attribute_Name
(N
)));
6595 function Is_Finalizer
(Id
: E
) return B
is
6597 return Ekind
(Id
) = E_Procedure
and then Chars
(Id
) = Name_uFinalizer
;
6600 ---------------------
6601 -- Is_Ghost_Entity --
6602 ---------------------
6604 function Is_Ghost_Entity
(Id
: E
) return B
is
6606 if Present
(Id
) and then Ekind
(Id
) = E_Variable
then
6607 return Convention
(Id
) = Convention_Ghost
;
6609 return Is_Ghost_Subprogram
(Id
);
6611 end Is_Ghost_Entity
;
6613 -------------------------
6614 -- Is_Ghost_Subprogram --
6615 -------------------------
6617 function Is_Ghost_Subprogram
(Id
: E
) return B
is
6619 if Present
(Id
) and then Ekind_In
(Id
, E_Function
, E_Procedure
) then
6620 return Convention
(Id
) = Convention_Ghost
;
6624 end Is_Ghost_Subprogram
;
6626 --------------------
6627 -- Is_Input_State --
6628 --------------------
6630 function Is_Input_State
(Id
: E
) return B
is
6633 Ekind
(Id
) = E_Abstract_State
and then Has_Property
(Id
, Name_Input
);
6640 function Is_Null_State
(Id
: E
) return B
is
6643 Ekind
(Id
) = E_Abstract_State
and then Nkind
(Parent
(Id
)) = N_Null
;
6646 ---------------------
6647 -- Is_Output_State --
6648 ---------------------
6650 function Is_Output_State
(Id
: E
) return B
is
6653 Ekind
(Id
) = E_Abstract_State
and then Has_Property
(Id
, Name_Output
);
6654 end Is_Output_State
;
6656 -----------------------------------
6657 -- Is_Package_Or_Generic_Package --
6658 -----------------------------------
6660 function Is_Package_Or_Generic_Package
(Id
: E
) return B
is
6662 return Ekind_In
(Id
, E_Generic_Package
, E_Package
);
6663 end Is_Package_Or_Generic_Package
;
6669 function Is_Prival
(Id
: E
) return B
is
6671 return (Ekind_In
(Id
, E_Constant
, E_Variable
)
6672 and then Present
(Prival_Link
(Id
)));
6675 ----------------------------
6676 -- Is_Protected_Component --
6677 ----------------------------
6679 function Is_Protected_Component
(Id
: E
) return B
is
6681 return Ekind
(Id
) = E_Component
and then Is_Protected_Type
(Scope
(Id
));
6682 end Is_Protected_Component
;
6684 ----------------------------
6685 -- Is_Protected_Interface --
6686 ----------------------------
6688 function Is_Protected_Interface
(Id
: E
) return B
is
6689 Typ
: constant Entity_Id
:= Base_Type
(Id
);
6691 if not Is_Interface
(Typ
) then
6693 elsif Is_Class_Wide_Type
(Typ
) then
6694 return Is_Protected_Interface
(Etype
(Typ
));
6696 return Protected_Present
(Type_Definition
(Parent
(Typ
)));
6698 end Is_Protected_Interface
;
6700 ------------------------------
6701 -- Is_Protected_Record_Type --
6702 ------------------------------
6704 function Is_Protected_Record_Type
(Id
: E
) return B
is
6707 Is_Concurrent_Record_Type
(Id
)
6708 and then Is_Protected_Type
(Corresponding_Concurrent_Type
(Id
));
6709 end Is_Protected_Record_Type
;
6711 --------------------------------
6712 -- Is_Standard_Character_Type --
6713 --------------------------------
6715 function Is_Standard_Character_Type
(Id
: E
) return B
is
6717 if Is_Type
(Id
) then
6719 R
: constant Entity_Id
:= Root_Type
(Id
);
6722 R
= Standard_Character
6724 R
= Standard_Wide_Character
6726 R
= Standard_Wide_Wide_Character
;
6732 end Is_Standard_Character_Type
;
6734 --------------------
6735 -- Is_String_Type --
6736 --------------------
6738 function Is_String_Type
(Id
: E
) return B
is
6740 return Ekind
(Id
) in String_Kind
6741 or else (Is_Array_Type
(Id
)
6742 and then Id
/= Any_Composite
6743 and then Number_Dimensions
(Id
) = 1
6744 and then Is_Character_Type
(Component_Type
(Id
)));
6747 -------------------------------
6748 -- Is_Synchronized_Interface --
6749 -------------------------------
6751 function Is_Synchronized_Interface
(Id
: E
) return B
is
6752 Typ
: constant Entity_Id
:= Base_Type
(Id
);
6755 if not Is_Interface
(Typ
) then
6758 elsif Is_Class_Wide_Type
(Typ
) then
6759 return Is_Synchronized_Interface
(Etype
(Typ
));
6762 return Protected_Present
(Type_Definition
(Parent
(Typ
)))
6763 or else Synchronized_Present
(Type_Definition
(Parent
(Typ
)))
6764 or else Task_Present
(Type_Definition
(Parent
(Typ
)));
6766 end Is_Synchronized_Interface
;
6768 -----------------------
6769 -- Is_Task_Interface --
6770 -----------------------
6772 function Is_Task_Interface
(Id
: E
) return B
is
6773 Typ
: constant Entity_Id
:= Base_Type
(Id
);
6775 if not Is_Interface
(Typ
) then
6777 elsif Is_Class_Wide_Type
(Typ
) then
6778 return Is_Task_Interface
(Etype
(Typ
));
6780 return Task_Present
(Type_Definition
(Parent
(Typ
)));
6782 end Is_Task_Interface
;
6784 -------------------------
6785 -- Is_Task_Record_Type --
6786 -------------------------
6788 function Is_Task_Record_Type
(Id
: E
) return B
is
6791 Is_Concurrent_Record_Type
(Id
)
6792 and then Is_Task_Type
(Corresponding_Concurrent_Type
(Id
));
6793 end Is_Task_Record_Type
;
6795 -----------------------
6796 -- Is_Volatile_State --
6797 -----------------------
6799 function Is_Volatile_State
(Id
: E
) return B
is
6802 Ekind
(Id
) = E_Abstract_State
6803 and then Has_Property
(Id
, Name_Volatile
);
6804 end Is_Volatile_State
;
6806 ------------------------
6807 -- Is_Wrapper_Package --
6808 ------------------------
6810 function Is_Wrapper_Package
(Id
: E
) return B
is
6812 return (Ekind
(Id
) = E_Package
and then Present
(Related_Instance
(Id
)));
6813 end Is_Wrapper_Package
;
6819 function Last_Formal
(Id
: E
) return E
is
6824 (Is_Overloadable
(Id
)
6825 or else Ekind_In
(Id
, E_Entry_Family
,
6827 E_Subprogram_Type
));
6829 if Ekind
(Id
) = E_Enumeration_Literal
then
6833 Formal
:= First_Formal
(Id
);
6835 if Present
(Formal
) then
6836 while Present
(Next_Formal
(Formal
)) loop
6837 Formal
:= Next_Formal
(Formal
);
6845 function Model_Emin_Value
(Id
: E
) return Uint
is
6847 return Machine_Emin_Value
(Id
);
6848 end Model_Emin_Value
;
6850 -------------------------
6851 -- Model_Epsilon_Value --
6852 -------------------------
6854 function Model_Epsilon_Value
(Id
: E
) return Ureal
is
6855 Radix
: constant Ureal
:= UR_From_Uint
(Machine_Radix_Value
(Id
));
6857 return Radix
** (1 - Model_Mantissa_Value
(Id
));
6858 end Model_Epsilon_Value
;
6860 --------------------------
6861 -- Model_Mantissa_Value --
6862 --------------------------
6864 function Model_Mantissa_Value
(Id
: E
) return Uint
is
6866 return Machine_Mantissa_Value
(Id
);
6867 end Model_Mantissa_Value
;
6869 -----------------------
6870 -- Model_Small_Value --
6871 -----------------------
6873 function Model_Small_Value
(Id
: E
) return Ureal
is
6874 Radix
: constant Ureal
:= UR_From_Uint
(Machine_Radix_Value
(Id
));
6876 return Radix
** (Model_Emin_Value
(Id
) - 1);
6877 end Model_Small_Value
;
6879 ------------------------
6880 -- Machine_Emax_Value --
6881 ------------------------
6883 function Machine_Emax_Value
(Id
: E
) return Uint
is
6884 Digs
: constant Pos
:= UI_To_Int
(Digits_Value
(Base_Type
(Id
)));
6887 case Float_Rep
(Id
) is
6890 when 1 .. 6 => return Uint_128
;
6891 when 7 .. 15 => return 2**10;
6892 when 16 .. 33 => return 2**14;
6893 when others => return No_Uint
;
6898 when 1 .. 9 => return 2**7 - 1;
6899 when 10 .. 15 => return 2**10 - 1;
6900 when others => return No_Uint
;
6904 return Uint_2
** Uint_7
- Uint_1
;
6906 end Machine_Emax_Value
;
6908 ------------------------
6909 -- Machine_Emin_Value --
6910 ------------------------
6912 function Machine_Emin_Value
(Id
: E
) return Uint
is
6914 case Float_Rep
(Id
) is
6915 when IEEE_Binary
=> return Uint_3
- Machine_Emax_Value
(Id
);
6916 when VAX_Native
=> return -Machine_Emax_Value
(Id
);
6917 when AAMP
=> return -Machine_Emax_Value
(Id
);
6919 end Machine_Emin_Value
;
6921 ----------------------------
6922 -- Machine_Mantissa_Value --
6923 ----------------------------
6925 function Machine_Mantissa_Value
(Id
: E
) return Uint
is
6926 Digs
: constant Pos
:= UI_To_Int
(Digits_Value
(Base_Type
(Id
)));
6929 case Float_Rep
(Id
) is
6932 when 1 .. 6 => return Uint_24
;
6933 when 7 .. 15 => return UI_From_Int
(53);
6934 when 16 .. 18 => return Uint_64
;
6935 when 19 .. 33 => return UI_From_Int
(113);
6936 when others => return No_Uint
;
6941 when 1 .. 6 => return Uint_24
;
6942 when 7 .. 9 => return UI_From_Int
(56);
6943 when 10 .. 15 => return UI_From_Int
(53);
6944 when others => return No_Uint
;
6949 when 1 .. 6 => return Uint_24
;
6950 when 7 .. 9 => return UI_From_Int
(40);
6951 when others => return No_Uint
;
6954 end Machine_Mantissa_Value
;
6956 -------------------------
6957 -- Machine_Radix_Value --
6958 -------------------------
6960 function Machine_Radix_Value
(Id
: E
) return U
is
6962 case Float_Rep
(Id
) is
6963 when IEEE_Binary | VAX_Native | AAMP
=>
6966 end Machine_Radix_Value
;
6968 --------------------
6969 -- Next_Component --
6970 --------------------
6972 function Next_Component
(Id
: E
) return E
is
6976 Comp_Id
:= Next_Entity
(Id
);
6977 while Present
(Comp_Id
) loop
6978 exit when Ekind
(Comp_Id
) = E_Component
;
6979 Comp_Id
:= Next_Entity
(Comp_Id
);
6985 ------------------------------------
6986 -- Next_Component_Or_Discriminant --
6987 ------------------------------------
6989 function Next_Component_Or_Discriminant
(Id
: E
) return E
is
6993 Comp_Id
:= Next_Entity
(Id
);
6994 while Present
(Comp_Id
) loop
6995 exit when Ekind_In
(Comp_Id
, E_Component
, E_Discriminant
);
6996 Comp_Id
:= Next_Entity
(Comp_Id
);
7000 end Next_Component_Or_Discriminant
;
7002 -----------------------
7003 -- Next_Discriminant --
7004 -----------------------
7006 -- This function actually implements both Next_Discriminant and
7007 -- Next_Stored_Discriminant by making sure that the Discriminant
7008 -- returned is of the same variety as Id.
7010 function Next_Discriminant
(Id
: E
) return E
is
7012 -- Derived Tagged types with private extensions look like this...
7014 -- E_Discriminant d1
7015 -- E_Discriminant d2
7017 -- E_Discriminant d1
7018 -- E_Discriminant d2
7021 -- so it is critical not to go past the leading discriminants
7026 pragma Assert
(Ekind
(Id
) = E_Discriminant
);
7029 D
:= Next_Entity
(D
);
7031 or else (Ekind
(D
) /= E_Discriminant
7032 and then not Is_Itype
(D
))
7037 exit when Ekind
(D
) = E_Discriminant
7038 and then (Is_Completely_Hidden
(D
) = Is_Completely_Hidden
(Id
));
7042 end Next_Discriminant
;
7048 function Next_Formal
(Id
: E
) return E
is
7052 -- Follow the chain of declared entities as long as the kind of the
7053 -- entity corresponds to a formal parameter. Skip internal entities
7054 -- that may have been created for implicit subtypes, in the process
7055 -- of analyzing default expressions.
7059 P
:= Next_Entity
(P
);
7061 if No
(P
) or else Is_Formal
(P
) then
7063 elsif not Is_Internal
(P
) then
7069 -----------------------------
7070 -- Next_Formal_With_Extras --
7071 -----------------------------
7073 function Next_Formal_With_Extras
(Id
: E
) return E
is
7075 if Present
(Extra_Formal
(Id
)) then
7076 return Extra_Formal
(Id
);
7078 return Next_Formal
(Id
);
7080 end Next_Formal_With_Extras
;
7086 function Next_Index
(Id
: Node_Id
) return Node_Id
is
7095 function Next_Literal
(Id
: E
) return E
is
7097 pragma Assert
(Nkind
(Id
) in N_Entity
);
7101 ------------------------------
7102 -- Next_Stored_Discriminant --
7103 ------------------------------
7105 function Next_Stored_Discriminant
(Id
: E
) return E
is
7107 -- See comment in Next_Discriminant
7109 return Next_Discriminant
(Id
);
7110 end Next_Stored_Discriminant
;
7112 -----------------------
7113 -- Number_Dimensions --
7114 -----------------------
7116 function Number_Dimensions
(Id
: E
) return Pos
is
7121 if Ekind
(Id
) in String_Kind
then
7126 T
:= First_Index
(Id
);
7127 while Present
(T
) loop
7134 end Number_Dimensions
;
7136 --------------------
7137 -- Number_Entries --
7138 --------------------
7140 function Number_Entries
(Id
: E
) return Nat
is
7145 pragma Assert
(Is_Concurrent_Type
(Id
));
7148 Ent
:= First_Entity
(Id
);
7149 while Present
(Ent
) loop
7150 if Is_Entry
(Ent
) then
7154 Ent
:= Next_Entity
(Ent
);
7160 --------------------
7161 -- Number_Formals --
7162 --------------------
7164 function Number_Formals
(Id
: E
) return Pos
is
7170 Formal
:= First_Formal
(Id
);
7171 while Present
(Formal
) loop
7173 Formal
:= Next_Formal
(Formal
);
7179 --------------------
7180 -- Parameter_Mode --
7181 --------------------
7183 function Parameter_Mode
(Id
: E
) return Formal_Kind
is
7188 ------------------------
7189 -- Predicate_Function --
7190 ------------------------
7192 function Predicate_Function
(Id
: E
) return E
is
7197 pragma Assert
(Is_Type
(Id
));
7199 -- If type is private and has a completion, predicate may be defined
7200 -- on the full view.
7202 if Is_Private_Type
(Id
) and then Present
(Full_View
(Id
)) then
7203 T
:= Full_View
(Id
);
7208 if No
(Subprograms_For_Type
(T
)) then
7212 S
:= Subprograms_For_Type
(T
);
7213 while Present
(S
) loop
7214 if Is_Predicate_Function
(S
) then
7217 S
:= Subprograms_For_Type
(S
);
7223 end Predicate_Function
;
7225 --------------------------
7226 -- Predicate_Function_M --
7227 --------------------------
7229 function Predicate_Function_M
(Id
: E
) return E
is
7234 pragma Assert
(Is_Type
(Id
));
7236 -- If type is private and has a completion, predicate may be defined
7237 -- on the full view.
7239 if Is_Private_Type
(Id
) and then Present
(Full_View
(Id
)) then
7240 T
:= Full_View
(Id
);
7245 if No
(Subprograms_For_Type
(T
)) then
7249 S
:= Subprograms_For_Type
(T
);
7250 while Present
(S
) loop
7251 if Is_Predicate_Function_M
(S
) then
7254 S
:= Subprograms_For_Type
(S
);
7260 end Predicate_Function_M
;
7262 -------------------------
7263 -- Present_In_Rep_Item --
7264 -------------------------
7266 function Present_In_Rep_Item
(E
: Entity_Id
; N
: Node_Id
) return Boolean is
7270 Ritem
:= First_Rep_Item
(E
);
7272 while Present
(Ritem
) loop
7277 Next_Rep_Item
(Ritem
);
7281 end Present_In_Rep_Item
;
7283 --------------------------
7284 -- Primitive_Operations --
7285 --------------------------
7287 function Primitive_Operations
(Id
: E
) return L
is
7289 if Is_Concurrent_Type
(Id
) then
7290 if Present
(Corresponding_Record_Type
(Id
)) then
7291 return Direct_Primitive_Operations
7292 (Corresponding_Record_Type
(Id
));
7294 -- If expansion is disabled the corresponding record type is absent,
7295 -- but if the type has ancestors it may have primitive operations.
7297 elsif Is_Tagged_Type
(Id
) then
7298 return Direct_Primitive_Operations
(Id
);
7304 return Direct_Primitive_Operations
(Id
);
7306 end Primitive_Operations
;
7308 ---------------------
7309 -- Record_Rep_Item --
7310 ---------------------
7312 procedure Record_Rep_Item
(E
: Entity_Id
; N
: Node_Id
) is
7314 Set_Next_Rep_Item
(N
, First_Rep_Item
(E
));
7315 Set_First_Rep_Item
(E
, N
);
7316 end Record_Rep_Item
;
7322 function Root_Type
(Id
: E
) return E
is
7326 pragma Assert
(Nkind
(Id
) in N_Entity
);
7328 T
:= Base_Type
(Id
);
7330 if Ekind
(T
) = E_Class_Wide_Type
then
7342 -- Following test catches some error cases resulting from
7345 elsif No
(Etyp
) then
7346 Check_Error_Detected
;
7349 elsif Is_Private_Type
(T
) and then Etyp
= Full_View
(T
) then
7352 elsif Is_Private_Type
(Etyp
) and then Full_View
(Etyp
) = T
then
7358 -- Return if there is a circularity in the inheritance chain. This
7359 -- happens in some error situations and we do not want to get
7360 -- stuck in this loop.
7362 if T
= Base_Type
(Id
) then
7369 ---------------------
7370 -- Safe_Emax_Value --
7371 ---------------------
7373 function Safe_Emax_Value
(Id
: E
) return Uint
is
7375 return Machine_Emax_Value
(Id
);
7376 end Safe_Emax_Value
;
7378 ----------------------
7379 -- Safe_First_Value --
7380 ----------------------
7382 function Safe_First_Value
(Id
: E
) return Ureal
is
7384 return -Safe_Last_Value
(Id
);
7385 end Safe_First_Value
;
7387 ---------------------
7388 -- Safe_Last_Value --
7389 ---------------------
7391 function Safe_Last_Value
(Id
: E
) return Ureal
is
7392 Radix
: constant Uint
:= Machine_Radix_Value
(Id
);
7393 Mantissa
: constant Uint
:= Machine_Mantissa_Value
(Id
);
7394 Emax
: constant Uint
:= Safe_Emax_Value
(Id
);
7395 Significand
: constant Uint
:= Radix
** Mantissa
- 1;
7396 Exponent
: constant Uint
:= Emax
- Mantissa
;
7402 (Num
=> Significand
* 2 ** (Exponent
mod 4),
7403 Den
=> -Exponent
/ 4,
7409 (Num
=> Significand
,
7413 end Safe_Last_Value
;
7419 function Scope_Depth
(Id
: E
) return Uint
is
7424 while Is_Record_Type
(Scop
) loop
7425 Scop
:= Scope
(Scop
);
7428 return Scope_Depth_Value
(Scop
);
7431 ---------------------
7432 -- Scope_Depth_Set --
7433 ---------------------
7435 function Scope_Depth_Set
(Id
: E
) return B
is
7437 return not Is_Record_Type
(Id
)
7438 and then Field22
(Id
) /= Union_Id
(Empty
);
7439 end Scope_Depth_Set
;
7441 -----------------------------
7442 -- Set_Component_Alignment --
7443 -----------------------------
7445 -- Component Alignment is encoded using two flags, Flag128/129 as
7446 -- follows. Note that both flags False = Align_Default, so that the
7447 -- default initialization of flags to False initializes component
7448 -- alignment to the default value as required.
7450 -- Flag128 Flag129 Value
7451 -- ------- ------- -----
7452 -- False False Calign_Default
7453 -- False True Calign_Component_Size
7454 -- True False Calign_Component_Size_4
7455 -- True True Calign_Storage_Unit
7457 procedure Set_Component_Alignment
(Id
: E
; V
: C
) is
7459 pragma Assert
((Is_Array_Type
(Id
) or else Is_Record_Type
(Id
))
7460 and then Is_Base_Type
(Id
));
7463 when Calign_Default
=>
7464 Set_Flag128
(Id
, False);
7465 Set_Flag129
(Id
, False);
7467 when Calign_Component_Size
=>
7468 Set_Flag128
(Id
, False);
7469 Set_Flag129
(Id
, True);
7471 when Calign_Component_Size_4
=>
7472 Set_Flag128
(Id
, True);
7473 Set_Flag129
(Id
, False);
7475 when Calign_Storage_Unit
=>
7476 Set_Flag128
(Id
, True);
7477 Set_Flag129
(Id
, True);
7479 end Set_Component_Alignment
;
7481 -----------------------------
7482 -- Set_Invariant_Procedure --
7483 -----------------------------
7485 procedure Set_Invariant_Procedure
(Id
: E
; V
: E
) is
7489 pragma Assert
(Is_Type
(Id
) and then Has_Invariants
(Id
));
7491 S
:= Subprograms_For_Type
(Id
);
7492 Set_Subprograms_For_Type
(Id
, V
);
7493 Set_Subprograms_For_Type
(V
, S
);
7495 -- Check for duplicate entry
7497 while Present
(S
) loop
7498 if Is_Invariant_Procedure
(S
) then
7499 raise Program_Error
;
7501 S
:= Subprograms_For_Type
(S
);
7504 end Set_Invariant_Procedure
;
7506 ----------------------------
7507 -- Set_Predicate_Function --
7508 ----------------------------
7510 procedure Set_Predicate_Function
(Id
: E
; V
: E
) is
7514 pragma Assert
(Is_Type
(Id
) and then Has_Predicates
(Id
));
7516 S
:= Subprograms_For_Type
(Id
);
7517 Set_Subprograms_For_Type
(Id
, V
);
7518 Set_Subprograms_For_Type
(V
, S
);
7520 while Present
(S
) loop
7521 if Is_Predicate_Function
(S
) then
7522 raise Program_Error
;
7524 S
:= Subprograms_For_Type
(S
);
7527 end Set_Predicate_Function
;
7529 ------------------------------
7530 -- Set_Predicate_Function_M --
7531 ------------------------------
7533 procedure Set_Predicate_Function_M
(Id
: E
; V
: E
) is
7537 pragma Assert
(Is_Type
(Id
) and then Has_Predicates
(Id
));
7539 S
:= Subprograms_For_Type
(Id
);
7540 Set_Subprograms_For_Type
(Id
, V
);
7541 Set_Subprograms_For_Type
(V
, S
);
7543 -- Check for duplicates
7545 while Present
(S
) loop
7546 if Is_Predicate_Function_M
(S
) then
7547 raise Program_Error
;
7549 S
:= Subprograms_For_Type
(S
);
7552 end Set_Predicate_Function_M
;
7558 function Size_Clause
(Id
: E
) return N
is
7560 return Rep_Clause
(Id
, Name_Size
);
7563 ------------------------
7564 -- Stream_Size_Clause --
7565 ------------------------
7567 function Stream_Size_Clause
(Id
: E
) return N
is
7569 return Rep_Clause
(Id
, Name_Stream_Size
);
7570 end Stream_Size_Clause
;
7576 function Subtype_Kind
(K
: Entity_Kind
) return Entity_Kind
is
7582 Kind
:= E_Access_Subtype
;
7586 Kind
:= E_Array_Subtype
;
7588 when E_Class_Wide_Type |
7589 E_Class_Wide_Subtype
=>
7590 Kind
:= E_Class_Wide_Subtype
;
7592 when E_Decimal_Fixed_Point_Type |
7593 E_Decimal_Fixed_Point_Subtype
=>
7594 Kind
:= E_Decimal_Fixed_Point_Subtype
;
7596 when E_Ordinary_Fixed_Point_Type |
7597 E_Ordinary_Fixed_Point_Subtype
=>
7598 Kind
:= E_Ordinary_Fixed_Point_Subtype
;
7600 when E_Private_Type |
7601 E_Private_Subtype
=>
7602 Kind
:= E_Private_Subtype
;
7604 when E_Limited_Private_Type |
7605 E_Limited_Private_Subtype
=>
7606 Kind
:= E_Limited_Private_Subtype
;
7608 when E_Record_Type_With_Private |
7609 E_Record_Subtype_With_Private
=>
7610 Kind
:= E_Record_Subtype_With_Private
;
7612 when E_Record_Type |
7614 Kind
:= E_Record_Subtype
;
7616 when E_String_Type |
7618 Kind
:= E_String_Subtype
;
7620 when Enumeration_Kind
=>
7621 Kind
:= E_Enumeration_Subtype
;
7624 Kind
:= E_Floating_Point_Subtype
;
7626 when Signed_Integer_Kind
=>
7627 Kind
:= E_Signed_Integer_Subtype
;
7629 when Modular_Integer_Kind
=>
7630 Kind
:= E_Modular_Integer_Subtype
;
7632 when Protected_Kind
=>
7633 Kind
:= E_Protected_Subtype
;
7636 Kind
:= E_Task_Subtype
;
7640 raise Program_Error
;
7646 ---------------------
7647 -- Type_High_Bound --
7648 ---------------------
7650 function Type_High_Bound
(Id
: E
) return Node_Id
is
7651 Rng
: constant Node_Id
:= Scalar_Range
(Id
);
7653 if Nkind
(Rng
) = N_Subtype_Indication
then
7654 return High_Bound
(Range_Expression
(Constraint
(Rng
)));
7656 return High_Bound
(Rng
);
7658 end Type_High_Bound
;
7660 --------------------
7661 -- Type_Low_Bound --
7662 --------------------
7664 function Type_Low_Bound
(Id
: E
) return Node_Id
is
7665 Rng
: constant Node_Id
:= Scalar_Range
(Id
);
7667 if Nkind
(Rng
) = N_Subtype_Indication
then
7668 return Low_Bound
(Range_Expression
(Constraint
(Rng
)));
7670 return Low_Bound
(Rng
);
7674 ---------------------
7675 -- Underlying_Type --
7676 ---------------------
7678 function Underlying_Type
(Id
: E
) return E
is
7680 -- For record_with_private the underlying type is always the direct
7681 -- full view. Never try to take the full view of the parent it
7682 -- doesn't make sense.
7684 if Ekind
(Id
) = E_Record_Type_With_Private
then
7685 return Full_View
(Id
);
7687 elsif Ekind
(Id
) in Incomplete_Or_Private_Kind
then
7689 -- If we have an incomplete or private type with a full view,
7690 -- then we return the Underlying_Type of this full view
7692 if Present
(Full_View
(Id
)) then
7693 if Id
= Full_View
(Id
) then
7695 -- Previous error in declaration
7700 return Underlying_Type
(Full_View
(Id
));
7703 -- If we have an incomplete entity that comes from the limited
7704 -- view then we return the Underlying_Type of its non-limited
7707 elsif From_With_Type
(Id
)
7708 and then Present
(Non_Limited_View
(Id
))
7710 return Underlying_Type
(Non_Limited_View
(Id
));
7712 -- Otherwise check for the case where we have a derived type or
7713 -- subtype, and if so get the Underlying_Type of the parent type.
7715 elsif Etype
(Id
) /= Id
then
7716 return Underlying_Type
(Etype
(Id
));
7718 -- Otherwise we have an incomplete or private type that has
7719 -- no full view, which means that we have not encountered the
7720 -- completion, so return Empty to indicate the underlying type
7721 -- is not yet known.
7727 -- For non-incomplete, non-private types, return the type itself
7728 -- Also for entities that are not types at all return the entity
7734 end Underlying_Type
;
7740 function Vax_Float
(Id
: E
) return B
is
7742 return Is_Floating_Point_Type
(Id
) and then Float_Rep
(Id
) = VAX_Native
;
7745 ------------------------
7746 -- Write_Entity_Flags --
7747 ------------------------
7749 procedure Write_Entity_Flags
(Id
: Entity_Id
; Prefix
: String) is
7751 procedure W
(Flag_Name
: String; Flag
: Boolean);
7752 -- Write out given flag if it is set
7758 procedure W
(Flag_Name
: String; Flag
: Boolean) is
7762 Write_Str
(Flag_Name
);
7763 Write_Str
(" = True");
7768 -- Start of processing for Write_Entity_Flags
7771 if (Is_Array_Type
(Id
) or else Is_Record_Type
(Id
))
7772 and then Is_Base_Type
(Id
)
7775 Write_Str
("Component_Alignment = ");
7777 case Component_Alignment
(Id
) is
7778 when Calign_Default
=>
7779 Write_Str
("Calign_Default");
7781 when Calign_Component_Size
=>
7782 Write_Str
("Calign_Component_Size");
7784 when Calign_Component_Size_4
=>
7785 Write_Str
("Calign_Component_Size_4");
7787 when Calign_Storage_Unit
=>
7788 Write_Str
("Calign_Storage_Unit");
7794 W
("Address_Taken", Flag104
(Id
));
7795 W
("Body_Needed_For_SAL", Flag40
(Id
));
7796 W
("C_Pass_By_Copy", Flag125
(Id
));
7797 W
("Can_Never_Be_Null", Flag38
(Id
));
7798 W
("Checks_May_Be_Suppressed", Flag31
(Id
));
7799 W
("Debug_Info_Off", Flag166
(Id
));
7800 W
("Default_Expressions_Processed", Flag108
(Id
));
7801 W
("Delay_Cleanups", Flag114
(Id
));
7802 W
("Delay_Subprogram_Descriptors", Flag50
(Id
));
7803 W
("Depends_On_Private", Flag14
(Id
));
7804 W
("Discard_Names", Flag88
(Id
));
7805 W
("Elaboration_Entity_Required", Flag174
(Id
));
7806 W
("Elaborate_Body_Desirable", Flag210
(Id
));
7807 W
("Entry_Accepted", Flag152
(Id
));
7808 W
("Can_Use_Internal_Rep", Flag229
(Id
));
7809 W
("Finalize_Storage_Only", Flag158
(Id
));
7810 W
("From_With_Type", Flag159
(Id
));
7811 W
("Has_Aliased_Components", Flag135
(Id
));
7812 W
("Has_Alignment_Clause", Flag46
(Id
));
7813 W
("Has_All_Calls_Remote", Flag79
(Id
));
7814 W
("Has_Anonymous_Master", Flag253
(Id
));
7815 W
("Has_Atomic_Components", Flag86
(Id
));
7816 W
("Has_Biased_Representation", Flag139
(Id
));
7817 W
("Has_Completion", Flag26
(Id
));
7818 W
("Has_Completion_In_Body", Flag71
(Id
));
7819 W
("Has_Complex_Representation", Flag140
(Id
));
7820 W
("Has_Component_Size_Clause", Flag68
(Id
));
7821 W
("Has_Contiguous_Rep", Flag181
(Id
));
7822 W
("Has_Controlled_Component", Flag43
(Id
));
7823 W
("Has_Controlling_Result", Flag98
(Id
));
7824 W
("Has_Convention_Pragma", Flag119
(Id
));
7825 W
("Has_Default_Aspect", Flag39
(Id
));
7826 W
("Has_Delayed_Aspects", Flag200
(Id
));
7827 W
("Has_Delayed_Freeze", Flag18
(Id
));
7828 W
("Has_Discriminants", Flag5
(Id
));
7829 W
("Has_Dispatch_Table", Flag220
(Id
));
7830 W
("Has_Dynamic_Predicate_Aspect", Flag258
(Id
));
7831 W
("Has_Enumeration_Rep_Clause", Flag66
(Id
));
7832 W
("Has_Exit", Flag47
(Id
));
7833 W
("Has_External_Tag_Rep_Clause", Flag110
(Id
));
7834 W
("Has_Forward_Instantiation", Flag175
(Id
));
7835 W
("Has_Fully_Qualified_Name", Flag173
(Id
));
7836 W
("Has_Gigi_Rep_Item", Flag82
(Id
));
7837 W
("Has_Homonym", Flag56
(Id
));
7838 W
("Has_Implicit_Dereference", Flag251
(Id
));
7839 W
("Has_Inheritable_Invariants", Flag248
(Id
));
7840 W
("Has_Initial_Value", Flag219
(Id
));
7841 W
("Has_Invariants", Flag232
(Id
));
7842 W
("Has_Loop_Entry_Attributes", Flag260
(Id
));
7843 W
("Has_Machine_Radix_Clause", Flag83
(Id
));
7844 W
("Has_Master_Entity", Flag21
(Id
));
7845 W
("Has_Missing_Return", Flag142
(Id
));
7846 W
("Has_Nested_Block_With_Handler", Flag101
(Id
));
7847 W
("Has_Non_Standard_Rep", Flag75
(Id
));
7848 W
("Has_Object_Size_Clause", Flag172
(Id
));
7849 W
("Has_Per_Object_Constraint", Flag154
(Id
));
7850 W
("Has_Postconditions", Flag240
(Id
));
7851 W
("Has_Pragma_Controlled", Flag27
(Id
));
7852 W
("Has_Pragma_Elaborate_Body", Flag150
(Id
));
7853 W
("Has_Pragma_Inline", Flag157
(Id
));
7854 W
("Has_Pragma_Inline_Always", Flag230
(Id
));
7855 W
("Has_Pragma_No_Inline", Flag201
(Id
));
7856 W
("Has_Pragma_Ordered", Flag198
(Id
));
7857 W
("Has_Pragma_Pack", Flag121
(Id
));
7858 W
("Has_Pragma_Preelab_Init", Flag221
(Id
));
7859 W
("Has_Pragma_Pure", Flag203
(Id
));
7860 W
("Has_Pragma_Pure_Function", Flag179
(Id
));
7861 W
("Has_Pragma_Thread_Local_Storage", Flag169
(Id
));
7862 W
("Has_Pragma_Unmodified", Flag233
(Id
));
7863 W
("Has_Pragma_Unreferenced", Flag180
(Id
));
7864 W
("Has_Pragma_Unreferenced_Objects", Flag212
(Id
));
7865 W
("Has_Predicates", Flag250
(Id
));
7866 W
("Has_Primitive_Operations", Flag120
(Id
));
7867 W
("Has_Private_Ancestor", Flag151
(Id
));
7868 W
("Has_Private_Declaration", Flag155
(Id
));
7869 W
("Has_Qualified_Name", Flag161
(Id
));
7870 W
("Has_RACW", Flag214
(Id
));
7871 W
("Has_Record_Rep_Clause", Flag65
(Id
));
7872 W
("Has_Recursive_Call", Flag143
(Id
));
7873 W
("Has_Size_Clause", Flag29
(Id
));
7874 W
("Has_Small_Clause", Flag67
(Id
));
7875 W
("Has_Specified_Layout", Flag100
(Id
));
7876 W
("Has_Specified_Stream_Input", Flag190
(Id
));
7877 W
("Has_Specified_Stream_Output", Flag191
(Id
));
7878 W
("Has_Specified_Stream_Read", Flag192
(Id
));
7879 W
("Has_Specified_Stream_Write", Flag193
(Id
));
7880 W
("Has_Static_Discriminants", Flag211
(Id
));
7881 W
("Has_Static_Predicate_Aspect", Flag259
(Id
));
7882 W
("Has_Storage_Size_Clause", Flag23
(Id
));
7883 W
("Has_Stream_Size_Clause", Flag184
(Id
));
7884 W
("Has_Task", Flag30
(Id
));
7885 W
("Has_Thunks", Flag228
(Id
));
7886 W
("Has_Unchecked_Union", Flag123
(Id
));
7887 W
("Has_Unknown_Discriminants", Flag72
(Id
));
7888 W
("Has_Up_Level_Access", Flag215
(Id
));
7889 W
("Has_Volatile_Components", Flag87
(Id
));
7890 W
("Has_Xref_Entry", Flag182
(Id
));
7891 W
("In_Package_Body", Flag48
(Id
));
7892 W
("In_Private_Part", Flag45
(Id
));
7893 W
("In_Use", Flag8
(Id
));
7894 W
("Is_AST_Entry", Flag132
(Id
));
7895 W
("Is_Abstract_Subprogram", Flag19
(Id
));
7896 W
("Is_Abstract_Type", Flag146
(Id
));
7897 W
("Is_Local_Anonymous_Access", Flag194
(Id
));
7898 W
("Is_Access_Constant", Flag69
(Id
));
7899 W
("Is_Ada_2005_Only", Flag185
(Id
));
7900 W
("Is_Ada_2012_Only", Flag199
(Id
));
7901 W
("Is_Aliased", Flag15
(Id
));
7902 W
("Is_Asynchronous", Flag81
(Id
));
7903 W
("Is_Atomic", Flag85
(Id
));
7904 W
("Is_Bit_Packed_Array", Flag122
(Id
));
7905 W
("Is_CPP_Class", Flag74
(Id
));
7906 W
("Is_Called", Flag102
(Id
));
7907 W
("Is_Character_Type", Flag63
(Id
));
7908 W
("Is_Child_Unit", Flag73
(Id
));
7909 W
("Is_Class_Wide_Equivalent_Type", Flag35
(Id
));
7910 W
("Is_Compilation_Unit", Flag149
(Id
));
7911 W
("Is_Completely_Hidden", Flag103
(Id
));
7912 W
("Is_Concurrent_Record_Type", Flag20
(Id
));
7913 W
("Is_Constr_Subt_For_UN_Aliased", Flag141
(Id
));
7914 W
("Is_Constr_Subt_For_U_Nominal", Flag80
(Id
));
7915 W
("Is_Constrained", Flag12
(Id
));
7916 W
("Is_Constructor", Flag76
(Id
));
7917 W
("Is_Controlled", Flag42
(Id
));
7918 W
("Is_Controlling_Formal", Flag97
(Id
));
7919 W
("Is_Descendent_Of_Address", Flag223
(Id
));
7920 W
("Is_Discrim_SO_Function", Flag176
(Id
));
7921 W
("Is_Dispatch_Table_Entity", Flag234
(Id
));
7922 W
("Is_Dispatching_Operation", Flag6
(Id
));
7923 W
("Is_Eliminated", Flag124
(Id
));
7924 W
("Is_Entry_Formal", Flag52
(Id
));
7925 W
("Is_Exported", Flag99
(Id
));
7926 W
("Is_First_Subtype", Flag70
(Id
));
7927 W
("Is_For_Access_Subtype", Flag118
(Id
));
7928 W
("Is_Formal_Subprogram", Flag111
(Id
));
7929 W
("Is_Frozen", Flag4
(Id
));
7930 W
("Is_Generic_Actual_Type", Flag94
(Id
));
7931 W
("Is_Generic_Instance", Flag130
(Id
));
7932 W
("Is_Generic_Type", Flag13
(Id
));
7933 W
("Is_Hidden", Flag57
(Id
));
7934 W
("Is_Hidden_Open_Scope", Flag171
(Id
));
7935 W
("Is_Immediately_Visible", Flag7
(Id
));
7936 W
("Is_Implementation_Defined", Flag254
(Id
));
7937 W
("Is_Imported", Flag24
(Id
));
7938 W
("Is_Inlined", Flag11
(Id
));
7939 W
("Is_Instantiated", Flag126
(Id
));
7940 W
("Is_Interface", Flag186
(Id
));
7941 W
("Is_Internal", Flag17
(Id
));
7942 W
("Is_Interrupt_Handler", Flag89
(Id
));
7943 W
("Is_Intrinsic_Subprogram", Flag64
(Id
));
7944 W
("Is_Invariant_Procedure", Flag257
(Id
));
7945 W
("Is_Itype", Flag91
(Id
));
7946 W
("Is_Known_Non_Null", Flag37
(Id
));
7947 W
("Is_Known_Null", Flag204
(Id
));
7948 W
("Is_Known_Valid", Flag170
(Id
));
7949 W
("Is_Limited_Composite", Flag106
(Id
));
7950 W
("Is_Limited_Interface", Flag197
(Id
));
7951 W
("Is_Limited_Record", Flag25
(Id
));
7952 W
("Is_Machine_Code_Subprogram", Flag137
(Id
));
7953 W
("Is_Non_Static_Subtype", Flag109
(Id
));
7954 W
("Is_Null_Init_Proc", Flag178
(Id
));
7955 W
("Is_Obsolescent", Flag153
(Id
));
7956 W
("Is_Only_Out_Parameter", Flag226
(Id
));
7957 W
("Is_Optional_Parameter", Flag134
(Id
));
7958 W
("Is_Package_Body_Entity", Flag160
(Id
));
7959 W
("Is_Packed", Flag51
(Id
));
7960 W
("Is_Packed_Array_Type", Flag138
(Id
));
7961 W
("Is_Potentially_Use_Visible", Flag9
(Id
));
7962 W
("Is_Predicate_Function", Flag255
(Id
));
7963 W
("Is_Predicate_Function_M", Flag256
(Id
));
7964 W
("Is_Preelaborated", Flag59
(Id
));
7965 W
("Is_Primitive", Flag218
(Id
));
7966 W
("Is_Primitive_Wrapper", Flag195
(Id
));
7967 W
("Is_Private_Composite", Flag107
(Id
));
7968 W
("Is_Private_Descendant", Flag53
(Id
));
7969 W
("Is_Private_Primitive", Flag245
(Id
));
7970 W
("Is_Processed_Transient", Flag252
(Id
));
7971 W
("Is_Public", Flag10
(Id
));
7972 W
("Is_Pure", Flag44
(Id
));
7973 W
("Is_Pure_Unit_Access_Type", Flag189
(Id
));
7974 W
("Is_RACW_Stub_Type", Flag244
(Id
));
7975 W
("Is_Raised", Flag224
(Id
));
7976 W
("Is_Remote_Call_Interface", Flag62
(Id
));
7977 W
("Is_Remote_Types", Flag61
(Id
));
7978 W
("Is_Renaming_Of_Object", Flag112
(Id
));
7979 W
("Is_Return_Object", Flag209
(Id
));
7980 W
("Is_Safe_To_Reevaluate", Flag249
(Id
));
7981 W
("Is_Shared_Passive", Flag60
(Id
));
7982 W
("Is_Statically_Allocated", Flag28
(Id
));
7983 W
("Is_Tag", Flag78
(Id
));
7984 W
("Is_Tagged_Type", Flag55
(Id
));
7985 W
("Is_Thunk", Flag225
(Id
));
7986 W
("Is_Trivial_Subprogram", Flag235
(Id
));
7987 W
("Is_True_Constant", Flag163
(Id
));
7988 W
("Is_Unchecked_Union", Flag117
(Id
));
7989 W
("Is_Underlying_Record_View", Flag246
(Id
));
7990 W
("Is_Unsigned_Type", Flag144
(Id
));
7991 W
("Is_VMS_Exception", Flag133
(Id
));
7992 W
("Is_Valued_Procedure", Flag127
(Id
));
7993 W
("Is_Visible_Formal", Flag206
(Id
));
7994 W
("Is_Visible_Lib_Unit", Flag116
(Id
));
7995 W
("Is_Volatile", Flag16
(Id
));
7996 W
("Itype_Printed", Flag202
(Id
));
7997 W
("Kill_Elaboration_Checks", Flag32
(Id
));
7998 W
("Kill_Range_Checks", Flag33
(Id
));
7999 W
("Known_To_Have_Preelab_Init", Flag207
(Id
));
8000 W
("Low_Bound_Tested", Flag205
(Id
));
8001 W
("Machine_Radix_10", Flag84
(Id
));
8002 W
("Materialize_Entity", Flag168
(Id
));
8003 W
("Must_Be_On_Byte_Boundary", Flag183
(Id
));
8004 W
("Must_Have_Preelab_Init", Flag208
(Id
));
8005 W
("Needs_Debug_Info", Flag147
(Id
));
8006 W
("Needs_No_Actuals", Flag22
(Id
));
8007 W
("Never_Set_In_Source", Flag115
(Id
));
8008 W
("No_Pool_Assigned", Flag131
(Id
));
8009 W
("No_Return", Flag113
(Id
));
8010 W
("No_Strict_Aliasing", Flag136
(Id
));
8011 W
("Non_Binary_Modulus", Flag58
(Id
));
8012 W
("Nonzero_Is_True", Flag162
(Id
));
8013 W
("OK_To_Rename", Flag247
(Id
));
8014 W
("OK_To_Reorder_Components", Flag239
(Id
));
8015 W
("Optimize_Alignment_Space", Flag241
(Id
));
8016 W
("Optimize_Alignment_Time", Flag242
(Id
));
8017 W
("Overlays_Constant", Flag243
(Id
));
8018 W
("Reachable", Flag49
(Id
));
8019 W
("Referenced", Flag156
(Id
));
8020 W
("Referenced_As_LHS", Flag36
(Id
));
8021 W
("Referenced_As_Out_Parameter", Flag227
(Id
));
8022 W
("Renamed_In_Spec", Flag231
(Id
));
8023 W
("Requires_Overriding", Flag213
(Id
));
8024 W
("Return_Present", Flag54
(Id
));
8025 W
("Returns_By_Ref", Flag90
(Id
));
8026 W
("Reverse_Bit_Order", Flag164
(Id
));
8027 W
("Reverse_Storage_Order", Flag93
(Id
));
8028 W
("Sec_Stack_Needed_For_Return", Flag167
(Id
));
8029 W
("Size_Depends_On_Discriminant", Flag177
(Id
));
8030 W
("Size_Known_At_Compile_Time", Flag92
(Id
));
8031 W
("Static_Elaboration_Desired", Flag77
(Id
));
8032 W
("Strict_Alignment", Flag145
(Id
));
8033 W
("Suppress_Elaboration_Warnings", Flag148
(Id
));
8034 W
("Suppress_Initialization", Flag105
(Id
));
8035 W
("Suppress_Style_Checks", Flag165
(Id
));
8036 W
("Suppress_Value_Tracking_On_Call", Flag217
(Id
));
8037 W
("Treat_As_Volatile", Flag41
(Id
));
8038 W
("Universal_Aliasing", Flag216
(Id
));
8039 W
("Used_As_Generic_Actual", Flag222
(Id
));
8040 W
("Uses_Sec_Stack", Flag95
(Id
));
8041 W
("Warnings_Off", Flag96
(Id
));
8042 W
("Warnings_Off_Used", Flag236
(Id
));
8043 W
("Warnings_Off_Used_Unmodified", Flag237
(Id
));
8044 W
("Warnings_Off_Used_Unreferenced", Flag238
(Id
));
8045 W
("Was_Hidden", Flag196
(Id
));
8046 end Write_Entity_Flags
;
8048 -----------------------
8049 -- Write_Entity_Info --
8050 -----------------------
8052 procedure Write_Entity_Info
(Id
: Entity_Id
; Prefix
: String) is
8054 procedure Write_Attribute
(Which
: String; Nam
: E
);
8055 -- Write attribute value with given string name
8057 procedure Write_Kind
(Id
: Entity_Id
);
8058 -- Write Ekind field of entity
8060 ---------------------
8061 -- Write_Attribute --
8062 ---------------------
8064 procedure Write_Attribute
(Which
: String; Nam
: E
) is
8068 Write_Int
(Int
(Nam
));
8070 Write_Name
(Chars
(Nam
));
8072 end Write_Attribute
;
8078 procedure Write_Kind
(Id
: Entity_Id
) is
8079 K
: constant String := Entity_Kind
'Image (Ekind
(Id
));
8083 Write_Str
(" Kind ");
8085 if Is_Type
(Id
) and then Is_Tagged_Type
(Id
) then
8086 Write_Str
("TAGGED ");
8089 Write_Str
(K
(3 .. K
'Length));
8092 if Is_Type
(Id
) and then Depends_On_Private
(Id
) then
8093 Write_Str
("Depends_On_Private ");
8097 -- Start of processing for Write_Entity_Info
8101 Write_Attribute
("Name ", Id
);
8102 Write_Int
(Int
(Id
));
8106 Write_Attribute
(" Type ", Etype
(Id
));
8108 Write_Attribute
(" Scope ", Scope
(Id
));
8113 when Discrete_Kind
=>
8114 Write_Str
("Bounds: Id = ");
8116 if Present
(Scalar_Range
(Id
)) then
8117 Write_Int
(Int
(Type_Low_Bound
(Id
)));
8118 Write_Str
(" .. Id = ");
8119 Write_Int
(Int
(Type_High_Bound
(Id
)));
8121 Write_Str
("Empty");
8132 (" Component Type ", Component_Type
(Id
));
8135 Write_Str
(" Indexes ");
8137 Index
:= First_Index
(Id
);
8138 while Present
(Index
) loop
8139 Write_Attribute
(" ", Etype
(Index
));
8140 Index
:= Next_Index
(Index
);
8148 (" Directly Designated Type ",
8149 Directly_Designated_Type
(Id
));
8152 when Overloadable_Kind
=>
8153 if Present
(Homonym
(Id
)) then
8154 Write_Str
(" Homonym ");
8155 Write_Name
(Chars
(Homonym
(Id
)));
8157 Write_Int
(Int
(Homonym
(Id
)));
8164 if Ekind
(Scope
(Id
)) in Record_Kind
then
8166 " Original_Record_Component ",
8167 Original_Record_Component
(Id
));
8168 Write_Int
(Int
(Original_Record_Component
(Id
)));
8172 when others => null;
8174 end Write_Entity_Info
;
8176 -----------------------
8177 -- Write_Field6_Name --
8178 -----------------------
8180 procedure Write_Field6_Name
(Id
: Entity_Id
) is
8181 pragma Warnings
(Off
, Id
);
8183 Write_Str
("First_Rep_Item");
8184 end Write_Field6_Name
;
8186 -----------------------
8187 -- Write_Field7_Name --
8188 -----------------------
8190 procedure Write_Field7_Name
(Id
: Entity_Id
) is
8191 pragma Warnings
(Off
, Id
);
8193 Write_Str
("Freeze_Node");
8194 end Write_Field7_Name
;
8196 -----------------------
8197 -- Write_Field8_Name --
8198 -----------------------
8200 procedure Write_Field8_Name
(Id
: Entity_Id
) is
8204 Write_Str
("Associated_Node_For_Itype");
8207 Write_Str
("Dependent_Instances");
8210 Write_Str
("First_Exit_Statement");
8213 Write_Str
("Hiding_Loop_Variable");
8215 when E_Abstract_State
=>
8216 Write_Str
("Integrity_Level");
8220 E_Subprogram_Body
=>
8221 Write_Str
("Mechanism");
8225 Write_Str
("Normalized_First_Bit");
8228 Write_Str
("Postcondition_Proc");
8230 when E_Return_Statement
=>
8231 Write_Str
("Return_Applies_To");
8234 Write_Str
("Field8??");
8236 end Write_Field8_Name
;
8238 -----------------------
8239 -- Write_Field9_Name --
8240 -----------------------
8242 procedure Write_Field9_Name
(Id
: Entity_Id
) is
8246 Write_Str
("Class_Wide_Type");
8249 Write_Str
("Current_Value");
8251 when E_Abstract_State
=>
8252 Write_Str
("Refined_State");
8255 E_Generic_Function |
8257 E_Generic_Procedure |
8260 Write_Str
("Renaming_Map");
8263 Write_Str
("Field9??");
8265 end Write_Field9_Name
;
8267 ------------------------
8268 -- Write_Field10_Name --
8269 ------------------------
8271 procedure Write_Field10_Name
(Id
: Entity_Id
) is
8274 when Class_Wide_Kind |
8280 Write_Str
("Direct_Primitive_Operations");
8283 Write_Str
("Float_Rep");
8285 when E_In_Parameter |
8287 Write_Str
("Discriminal_Link");
8293 Write_Str
("Handler_Records");
8297 Write_Str
("Normalized_Position_Max");
8300 Write_Str
("Field10??");
8302 end Write_Field10_Name
;
8304 ------------------------
8305 -- Write_Field11_Name --
8306 ------------------------
8308 procedure Write_Field11_Name
(Id
: Entity_Id
) is
8312 Write_Str
("Block_Node");
8316 Write_Str
("Component_Bit_Offset");
8319 Write_Str
("Entry_Component");
8321 when E_Enumeration_Literal
=>
8322 Write_Str
("Enumeration_Pos");
8326 Write_Str
("Full_View");
8328 when E_Generic_Package
=>
8329 Write_Str
("Generic_Homonym");
8335 Write_Str
("Protected_Body_Subprogram");
8338 Write_Str
("Field11??");
8340 end Write_Field11_Name
;
8342 ------------------------
8343 -- Write_Field12_Name --
8344 ------------------------
8346 procedure Write_Field12_Name
(Id
: Entity_Id
) is
8350 Write_Str
("Associated_Formal_Package");
8353 Write_Str
("Barrier_Function");
8355 when E_Enumeration_Literal
=>
8356 Write_Str
("Enumeration_Rep");
8364 E_In_Out_Parameter |
8368 Write_Str
("Esize");
8372 Write_Str
("Next_Inlined_Subprogram");
8375 Write_Str
("Field12??");
8377 end Write_Field12_Name
;
8379 ------------------------
8380 -- Write_Field13_Name --
8381 ------------------------
8383 procedure Write_Field13_Name
(Id
: Entity_Id
) is
8388 Write_Str
("Component_Clause");
8391 Write_Str
("Elaboration_Entity");
8395 Generic_Unit_Kind
=>
8396 Write_Str
("Elaboration_Entity");
8400 Write_Str
("Extra_Accessibility");
8403 Write_Str
("RM_Size");
8406 Write_Str
("Field13??");
8408 end Write_Field13_Name
;
8410 -----------------------
8411 -- Write_Field14_Name --
8412 -----------------------
8414 procedure Write_Field14_Name
(Id
: Entity_Id
) is
8423 Write_Str
("Alignment");
8427 Write_Str
("First_Optional_Parameter");
8431 Write_Str
("Normalized_Position");
8434 E_Generic_Package
=>
8435 Write_Str
("Shadow_Entities");
8438 Write_Str
("Field14??");
8440 end Write_Field14_Name
;
8442 ------------------------
8443 -- Write_Field15_Name --
8444 ------------------------
8446 procedure Write_Field15_Name
(Id
: Entity_Id
) is
8449 when E_Discriminant
=>
8450 Write_Str
("Discriminant_Number");
8453 Write_Str
("DT_Entry_Count");
8457 Write_Str
("DT_Position");
8459 when E_Protected_Type
=>
8460 Write_Str
("Entry_Bodies_Array");
8463 Write_Str
("Entry_Parameters_Type");
8466 Write_Str
("Extra_Formal");
8468 when Enumeration_Kind
=>
8469 Write_Str
("Lit_Indexes");
8473 Write_Str
("Related_Instance");
8475 when Decimal_Fixed_Point_Kind
=>
8476 Write_Str
("Scale_Value");
8480 Write_Str
("Status_Flag_Or_Transient_Decl");
8484 Write_Str
("Storage_Size_Variable");
8486 when E_String_Literal_Subtype
=>
8487 Write_Str
("String_Literal_Low_Bound");
8490 Write_Str
("Field15??");
8492 end Write_Field15_Name
;
8494 ------------------------
8495 -- Write_Field16_Name --
8496 ------------------------
8498 procedure Write_Field16_Name
(Id
: Entity_Id
) is
8501 when E_Record_Type |
8502 E_Record_Type_With_Private
=>
8503 Write_Str
("Access_Disp_Table");
8505 when E_Record_Subtype |
8506 E_Class_Wide_Subtype
=>
8507 Write_Str
("Cloned_Subtype");
8511 Write_Str
("DTC_Entity");
8514 Write_Str
("Entry_Formal");
8519 Write_Str
("First_Private_Entity");
8521 when Enumeration_Kind
=>
8522 Write_Str
("Lit_Strings");
8524 when E_String_Literal_Subtype
=>
8525 Write_Str
("String_Literal_Length");
8529 Write_Str
("Unset_Reference");
8532 Write_Str
("Field16??");
8534 end Write_Field16_Name
;
8536 ------------------------
8537 -- Write_Field17_Name --
8538 ------------------------
8540 procedure Write_Field17_Name
(Id
: Entity_Id
) is
8545 E_Generic_In_Out_Parameter |
8547 Write_Str
("Actual_Subtype");
8550 Write_Str
("Digits_Value");
8552 when E_Discriminant
=>
8553 Write_Str
("Discriminal");
8562 E_Generic_Function |
8564 E_Generic_Procedure |
8572 E_Return_Statement |
8574 E_Subprogram_Type
=>
8575 Write_Str
("First_Entity");
8578 Write_Str
("First_Index");
8580 when Enumeration_Kind
=>
8581 Write_Str
("First_Literal");
8584 Write_Str
("Master_Id");
8586 when Modular_Integer_Kind
=>
8587 Write_Str
("Modulus");
8589 when E_Incomplete_Type
=>
8590 Write_Str
("Non_Limited_View");
8592 when E_Incomplete_Subtype
=>
8593 if From_With_Type
(Id
) then
8594 Write_Str
("Non_Limited_View");
8598 Write_Str
("Prival");
8601 Write_Str
("Field17??");
8603 end Write_Field17_Name
;
8605 ------------------------
8606 -- Write_Field18_Name --
8607 ------------------------
8609 procedure Write_Field18_Name
(Id
: Entity_Id
) is
8612 when E_Enumeration_Literal |
8616 Write_Str
("Alias");
8618 when E_Record_Type
=>
8619 Write_Str
("Corresponding_Concurrent_Type");
8621 when E_Subprogram_Body
=>
8622 Write_Str
("Corresponding_Protected_Entry");
8624 when Concurrent_Kind
=>
8625 Write_Str
("Corresponding_Record_Type");
8630 Write_Str
("Enclosing_Scope");
8632 when E_Entry_Index_Parameter
=>
8633 Write_Str
("Entry_Index_Constant");
8635 when E_Class_Wide_Subtype |
8636 E_Access_Protected_Subprogram_Type |
8637 E_Anonymous_Access_Protected_Subprogram_Type |
8638 E_Access_Subprogram_Type |
8640 Write_Str
("Equivalent_Type");
8642 when Fixed_Point_Kind
=>
8643 Write_Str
("Delta_Value");
8645 when Incomplete_Or_Private_Kind |
8647 Write_Str
("Private_Dependents");
8650 Write_Str
("Renamed_Object");
8654 E_Generic_Function |
8655 E_Generic_Procedure |
8656 E_Generic_Package
=>
8657 Write_Str
("Renamed_Entity");
8660 Write_Str
("Field18??");
8662 end Write_Field18_Name
;
8664 -----------------------
8665 -- Write_Field19_Name --
8666 -----------------------
8668 procedure Write_Field19_Name
(Id
: Entity_Id
) is
8672 E_Generic_Package
=>
8673 Write_Str
("Body_Entity");
8675 when E_Discriminant
=>
8676 Write_Str
("Corresponding_Discriminant");
8679 Write_Str
("Default_Value");
8681 when E_Array_Type
=>
8682 Write_Str
("Default_Component_Value");
8684 when E_Record_Type
=>
8685 Write_Str
("Parent_Subtype");
8689 Write_Str
("Size_Check_Code");
8691 when E_Package_Body |
8693 Write_Str
("Spec_Entity");
8695 when Private_Kind
=>
8696 Write_Str
("Underlying_Full_View");
8698 when E_Function | E_Operator | E_Subprogram_Type
=>
8699 Write_Str
("Extra_Accessibility_Of_Result");
8702 Write_Str
("Field19??");
8704 end Write_Field19_Name
;
8706 -----------------------
8707 -- Write_Field20_Name --
8708 -----------------------
8710 procedure Write_Field20_Name
(Id
: Entity_Id
) is
8714 Write_Str
("Component_Type");
8716 when E_In_Parameter |
8717 E_Generic_In_Parameter
=>
8718 Write_Str
("Default_Value");
8721 Write_Str
("Directly_Designated_Type");
8724 Write_Str
("Discriminant_Checking_Func");
8726 when E_Discriminant
=>
8727 Write_Str
("Discriminant_Default_Value");
8736 E_Generic_Function |
8738 E_Generic_Procedure |
8746 E_Return_Statement |
8748 E_Subprogram_Type
=>
8749 Write_Str
("Last_Entity");
8753 Write_Str
("Prival_Link");
8756 Write_Str
("Scalar_Range");
8759 Write_Str
("Register_Exception_Call");
8762 Write_Str
("Field20??");
8764 end Write_Field20_Name
;
8766 -----------------------
8767 -- Write_Field21_Name --
8768 -----------------------
8770 procedure Write_Field21_Name
(Id
: Entity_Id
) is
8774 Write_Str
("Accept_Address");
8776 when E_In_Parameter
=>
8777 Write_Str
("Default_Expr_Function");
8779 when Concurrent_Kind |
8780 Incomplete_Or_Private_Kind |
8784 Write_Str
("Discriminant_Constraint");
8789 E_Generic_Function |
8791 E_Generic_Procedure |
8793 Write_Str
("Interface_Name");
8796 Modular_Integer_Kind
=>
8797 Write_Str
("Original_Array_Type");
8799 when Fixed_Point_Kind
=>
8800 Write_Str
("Small_Value");
8803 Write_Str
("Field21??");
8805 end Write_Field21_Name
;
8807 -----------------------
8808 -- Write_Field22_Name --
8809 -----------------------
8811 procedure Write_Field22_Name
(Id
: Entity_Id
) is
8815 Write_Str
("Associated_Storage_Pool");
8818 Write_Str
("Component_Size");
8820 when E_Record_Type
=>
8821 Write_Str
("Corresponding_Remote_Type");
8825 Write_Str
("Original_Record_Component");
8827 when E_Enumeration_Literal
=>
8828 Write_Str
("Enumeration_Rep_Expr");
8831 Write_Str
("Exception_Code");
8833 when E_Record_Type_With_Private |
8834 E_Record_Subtype_With_Private |
8837 E_Limited_Private_Type |
8838 E_Limited_Private_Subtype
=>
8839 Write_Str
("Private_View");
8842 Write_Str
("Protected_Formal");
8852 E_Generic_Function |
8853 E_Generic_Procedure |
8856 E_Return_Statement |
8859 Write_Str
("Scope_Depth_Value");
8862 Write_Str
("Shared_Var_Procs_Instance");
8865 Write_Str
("Field22??");
8867 end Write_Field22_Name
;
8869 ------------------------
8870 -- Write_Field23_Name --
8871 ------------------------
8873 procedure Write_Field23_Name
(Id
: Entity_Id
) is
8876 when E_Discriminant
=>
8877 Write_Str
("CR_Discriminant");
8880 Write_Str
("Entry_Cancel_Parameter");
8882 when E_Enumeration_Type
=>
8883 Write_Str
("Enum_Pos_To_Rep");
8887 Write_Str
("Extra_Constrained");
8890 Write_Str
("Finalization_Master");
8892 when E_Generic_Function |
8894 E_Generic_Procedure
=>
8895 Write_Str
("Inner_Instances");
8898 Write_Str
("Packed_Array_Type");
8901 Write_Str
("Protection_Object");
8903 when Concurrent_Kind |
8904 Incomplete_Or_Private_Kind |
8908 Write_Str
("Stored_Constraint");
8912 if Present
(Scope
(Id
))
8913 and then Is_Protected_Type
(Scope
(Id
))
8915 Write_Str
("Protection_Object");
8917 Write_Str
("Generic_Renamings");
8921 if Is_Generic_Instance
(Id
) then
8922 Write_Str
("Generic_Renamings");
8924 Write_Str
("Limited_View");
8928 Write_Str
("Field23??");
8930 end Write_Field23_Name
;
8932 ------------------------
8933 -- Write_Field24_Name --
8934 ------------------------
8936 procedure Write_Field24_Name
(Id
: Entity_Id
) is
8941 Write_Str
("Finalizer");
8946 Write_Str
("Related_Expression");
8951 Generic_Subprogram_Kind
=>
8952 Write_Str
("Contract");
8955 Write_Str
("Field24???");
8957 end Write_Field24_Name
;
8959 ------------------------
8960 -- Write_Field25_Name --
8961 ------------------------
8963 procedure Write_Field25_Name
(Id
: Entity_Id
) is
8967 Write_Str
("Abstract_States");
8970 Write_Str
("Debug_Renaming_Link");
8973 Write_Str
("DT_Offset_To_Top_Func");
8977 Write_Str
("Interface_Alias");
8979 when E_Record_Type |
8981 E_Record_Type_With_Private |
8982 E_Record_Subtype_With_Private
=>
8983 Write_Str
("Interfaces");
8987 Write_Str
("Related_Array_Object");
8990 Write_Str
("Task_Body_Procedure");
8994 Write_Str
("PPC_Wrapper");
8996 when E_Enumeration_Subtype |
8997 E_Modular_Integer_Subtype |
8998 E_Signed_Integer_Subtype
=>
8999 Write_Str
("Static_Predicate");
9002 Write_Str
("Field25??");
9004 end Write_Field25_Name
;
9006 ------------------------
9007 -- Write_Field26_Name --
9008 ------------------------
9010 procedure Write_Field26_Name
(Id
: Entity_Id
) is
9013 when E_Record_Type |
9014 E_Record_Type_With_Private
=>
9015 Write_Str
("Dispatch_Table_Wrappers");
9017 when E_In_Out_Parameter |
9020 Write_Str
("Last_Assignment");
9022 when E_Access_Subprogram_Type
=>
9023 Write_Str
("Original_Access_Type");
9025 when E_Generic_Package |
9027 Write_Str
("Package_Instantiation");
9031 Write_Str
("Related_Type");
9034 Write_Str
("Relative_Deadline_Variable");
9038 Write_Str
("Overridden_Operation");
9041 Write_Str
("Field26??");
9043 end Write_Field26_Name
;
9045 ------------------------
9046 -- Write_Field27_Name --
9047 ------------------------
9049 procedure Write_Field27_Name
(Id
: Entity_Id
) is
9054 Write_Str
("Current_Use_Clause");
9059 Write_Str
("Related_Type");
9063 Write_Str
("Wrapped_Entity");
9066 Write_Str
("Field27??");
9068 end Write_Field27_Name
;
9070 ------------------------
9071 -- Write_Field28_Name --
9072 ------------------------
9074 procedure Write_Field28_Name
(Id
: Entity_Id
) is
9082 E_Subprogram_Type
=>
9083 Write_Str
("Extra_Formals");
9085 when E_Constant | E_Variable
=>
9086 Write_Str
("Initialization_Statements");
9088 when E_Record_Type
=>
9089 Write_Str
("Underlying_Record_View");
9092 Write_Str
("Field28??");
9094 end Write_Field28_Name
;
9096 ------------------------
9097 -- Write_Field29_Name --
9098 ------------------------
9100 procedure Write_Field29_Name
(Id
: Entity_Id
) is
9104 Write_Str
("Subprograms_For_Type");
9107 Write_Str
("Field29??");
9109 end Write_Field29_Name
;
9111 ------------------------
9112 -- Write_Field30_Name --
9113 ------------------------
9115 procedure Write_Field30_Name
(Id
: Entity_Id
) is
9119 Write_Str
("Corresponding_Equality");
9122 Write_Str
("Static_Initialization");
9125 Write_Str
("Field30??");
9127 end Write_Field30_Name
;
9129 ------------------------
9130 -- Write_Field31_Name --
9131 ------------------------
9133 procedure Write_Field31_Name
(Id
: Entity_Id
) is
9138 Write_Str
("Thunk_Entity");
9141 Write_Str
("Field31??");
9143 end Write_Field31_Name
;
9145 ------------------------
9146 -- Write_Field32_Name --
9147 ------------------------
9149 procedure Write_Field32_Name
(Id
: Entity_Id
) is
9153 Write_Str
("Field32??");
9155 end Write_Field32_Name
;
9157 ------------------------
9158 -- Write_Field33_Name --
9159 ------------------------
9161 procedure Write_Field33_Name
(Id
: Entity_Id
) is
9165 Write_Str
("Field33??");
9167 end Write_Field33_Name
;
9169 ------------------------
9170 -- Write_Field34_Name --
9171 ------------------------
9173 procedure Write_Field34_Name
(Id
: Entity_Id
) is
9177 Write_Str
("Field34??");
9179 end Write_Field34_Name
;
9181 ------------------------
9182 -- Write_Field35_Name --
9183 ------------------------
9185 procedure Write_Field35_Name
(Id
: Entity_Id
) is
9189 Write_Str
("Field35??");
9191 end Write_Field35_Name
;
9193 -------------------------
9194 -- Iterator Procedures --
9195 -------------------------
9197 procedure Proc_Next_Component
(N
: in out Node_Id
) is
9199 N
:= Next_Component
(N
);
9200 end Proc_Next_Component
;
9202 procedure Proc_Next_Component_Or_Discriminant
(N
: in out Node_Id
) is
9204 N
:= Next_Entity
(N
);
9205 while Present
(N
) loop
9206 exit when Ekind_In
(N
, E_Component
, E_Discriminant
);
9207 N
:= Next_Entity
(N
);
9209 end Proc_Next_Component_Or_Discriminant
;
9211 procedure Proc_Next_Discriminant
(N
: in out Node_Id
) is
9213 N
:= Next_Discriminant
(N
);
9214 end Proc_Next_Discriminant
;
9216 procedure Proc_Next_Formal
(N
: in out Node_Id
) is
9218 N
:= Next_Formal
(N
);
9219 end Proc_Next_Formal
;
9221 procedure Proc_Next_Formal_With_Extras
(N
: in out Node_Id
) is
9223 N
:= Next_Formal_With_Extras
(N
);
9224 end Proc_Next_Formal_With_Extras
;
9226 procedure Proc_Next_Index
(N
: in out Node_Id
) is
9228 N
:= Next_Index
(N
);
9229 end Proc_Next_Index
;
9231 procedure Proc_Next_Inlined_Subprogram
(N
: in out Node_Id
) is
9233 N
:= Next_Inlined_Subprogram
(N
);
9234 end Proc_Next_Inlined_Subprogram
;
9236 procedure Proc_Next_Literal
(N
: in out Node_Id
) is
9238 N
:= Next_Literal
(N
);
9239 end Proc_Next_Literal
;
9241 procedure Proc_Next_Stored_Discriminant
(N
: in out Node_Id
) is
9243 N
:= Next_Stored_Discriminant
(N
);
9244 end Proc_Next_Stored_Discriminant
;