1 ------------------------------------------------------------------------------
3 -- GNAT COMPILER COMPONENTS --
9 -- Copyright (C) 1992-2011, Free Software Foundation, Inc. --
11 -- GNAT is free software; you can redistribute it and/or modify it under --
12 -- terms of the GNU General Public License as published by the Free Soft- --
13 -- ware Foundation; either version 3, or (at your option) any later ver- --
14 -- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
15 -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
16 -- or FITNESS FOR A PARTICULAR PURPOSE. --
18 -- As a special exception under Section 7 of GPL version 3, you are granted --
19 -- additional permissions described in the GCC Runtime Library Exception, --
20 -- version 3.1, as published by the Free Software Foundation. --
22 -- You should have received a copy of the GNU General Public License and --
23 -- a copy of the GCC Runtime Library Exception along with this program; --
24 -- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see --
25 -- <http://www.gnu.org/licenses/>. --
27 -- GNAT was originally developed by the GNAT team at New York University. --
28 -- Extensive contributions were provided by Ada Core Technologies Inc. --
30 ------------------------------------------------------------------------------
32 pragma Style_Checks
(All_Checks
);
33 -- Turn off subprogram ordering, not used for this unit
35 with Atree
; use Atree
;
36 with Nlists
; use Nlists
;
37 with Output
; use Output
;
38 with Sinfo
; use Sinfo
;
39 with Stand
; use Stand
;
43 use Atree
.Unchecked_Access
;
44 -- This is one of the packages that is allowed direct untyped access to
45 -- the fields in a node, since it provides the next level abstraction
46 -- which incorporates appropriate checks.
48 ----------------------------------------------
49 -- Usage of Fields in Defining Entity Nodes --
50 ----------------------------------------------
52 -- Four of these fields are defined in Sinfo, since they in are the base
53 -- part of the node. The access routines for these four fields and the
54 -- corresponding set procedures are defined in Sinfo. These fields are
55 -- present in all entities. Note that Homonym is also in the base part of
56 -- the node, but has access routines that are more properly part of Einfo,
57 -- which is why they are defined here.
64 -- Remaining fields are present only in extended nodes (i.e. entities)
66 -- The following fields are present in all entities
69 -- First_Rep_Item Node6
72 -- The usage of other fields (and the entity kinds to which it applies)
73 -- depends on the particular field (see Einfo spec for details).
75 -- Associated_Node_For_Itype Node8
76 -- Dependent_Instances Elist8
77 -- Hiding_Loop_Variable Node8
78 -- Mechanism Uint8 (but returns Mechanism_Type)
79 -- Normalized_First_Bit Uint8
80 -- Postcondition_Proc Node8
81 -- Return_Applies_To Node8
82 -- First_Exit_Statement Node8
84 -- Class_Wide_Type Node9
85 -- Current_Value Node9
88 -- Direct_Primitive_Operations Elist10
89 -- Discriminal_Link Node10
90 -- Float_Rep Uint10 (but returns Float_Rep_Kind)
91 -- Handler_Records List10
92 -- Normalized_Position_Max Uint10
94 -- Component_Bit_Offset Uint11
96 -- Entry_Component Node11
97 -- Enumeration_Pos Uint11
98 -- Generic_Homonym Node11
99 -- Protected_Body_Subprogram Node11
102 -- Barrier_Function Node12
103 -- Enumeration_Rep Uint12
105 -- Next_Inlined_Subprogram Node12
107 -- Corresponding_Equality Node13
108 -- Component_Clause Node13
109 -- Elaboration_Entity Node13
110 -- Extra_Accessibility Node13
114 -- First_Optional_Parameter Node14
115 -- Normalized_Position Uint14
116 -- Shadow_Entities List14
118 -- Discriminant_Number Uint15
119 -- DT_Position Uint15
120 -- DT_Entry_Count Uint15
121 -- Entry_Bodies_Array Node15
122 -- Entry_Parameters_Type Node15
123 -- Extra_Formal Node15
124 -- Lit_Indexes Node15
125 -- Related_Instance Node15
126 -- Return_Flag_Or_Transient_Decl Node15
127 -- Scale_Value Uint15
128 -- Storage_Size_Variable Node15
129 -- String_Literal_Low_Bound Node15
131 -- Access_Disp_Table Elist16
132 -- Cloned_Subtype Node16
134 -- Entry_Formal Node16
135 -- First_Private_Entity Node16
136 -- Lit_Strings Node16
137 -- String_Literal_Length Uint16
138 -- Unset_Reference Node16
140 -- Actual_Subtype Node17
141 -- Digits_Value Uint17
142 -- Discriminal Node17
143 -- First_Entity Node17
144 -- First_Index Node17
145 -- First_Literal Node17
148 -- Non_Limited_View Node17
152 -- Corresponding_Concurrent_Type Node18
153 -- Corresponding_Protected_Entry Node18
154 -- Corresponding_Record_Type Node18
155 -- Delta_Value Ureal18
156 -- Enclosing_Scope Node18
157 -- Equivalent_Type Node18
158 -- Private_Dependents Elist18
159 -- Renamed_Entity Node18
160 -- Renamed_Object Node18
162 -- Body_Entity Node19
163 -- Corresponding_Discriminant Node19
164 -- Extra_Accessibility_Of_Result Node19
165 -- Parent_Subtype Node19
166 -- Related_Array_Object Node19
167 -- Size_Check_Code Node19
168 -- Spec_Entity Node19
169 -- Underlying_Full_View Node19
171 -- Component_Type Node20
172 -- Default_Value Node20
173 -- Directly_Designated_Type Node20
174 -- Discriminant_Checking_Func Node20
175 -- Discriminant_Default_Value Node20
176 -- Last_Entity Node20
177 -- Prival_Link Node20
178 -- Register_Exception_Call Node20
179 -- Scalar_Range Node20
181 -- Accept_Address Elist21
182 -- Default_Expr_Function Node21
183 -- Discriminant_Constraint Elist21
184 -- Interface_Name Node21
185 -- Original_Array_Type Node21
186 -- Small_Value Ureal21
188 -- Associated_Storage_Pool Node22
189 -- Component_Size Uint22
190 -- Corresponding_Remote_Type Node22
191 -- Enumeration_Rep_Expr Node22
192 -- Exception_Code Uint22
193 -- Original_Record_Component Node22
194 -- Private_View Node22
195 -- Protected_Formal Node22
196 -- Scope_Depth_Value Uint22
197 -- Shared_Var_Procs_Instance Node22
199 -- CR_Discriminant Node23
200 -- Entry_Cancel_Parameter Node23
201 -- Enum_Pos_To_Rep Node23
202 -- Extra_Constrained Node23
203 -- Finalization_Master Node23
204 -- Generic_Renamings Elist23
205 -- Inner_Instances Elist23
206 -- Limited_View Node23
207 -- Packed_Array_Type Node23
208 -- Protection_Object Node23
209 -- Stored_Constraint Elist23
212 -- Related_Expression Node24
215 -- Interface_Alias Node25
216 -- Interfaces Elist25
217 -- Debug_Renaming_Link Node25
218 -- DT_Offset_To_Top_Func Node25
219 -- PPC_Wrapper Node25
220 -- Static_Predicate List25
221 -- Task_Body_Procedure Node25
223 -- Dispatch_Table_Wrappers Elist26
224 -- Last_Assignment Node26
225 -- Original_Access_Type Node26
226 -- Overridden_Operation Node26
227 -- Package_Instantiation Node26
228 -- Relative_Deadline_Variable Node26
229 -- Static_Initialization Node26
231 -- Current_Use_Clause Node27
232 -- Related_Type Node27
233 -- Wrapped_Entity Node27
235 -- Extra_Formals Node28
236 -- Underlying_Record_View Node28
238 -- Subprograms_For_Type Node29
240 ---------------------------------------------
241 -- Usage of Flags in Defining Entity Nodes --
242 ---------------------------------------------
244 -- All flags are unique, there is no overlaying, so each flag is physically
245 -- present in every entity. However, for many of the flags, it only makes
246 -- sense for them to be set true for certain subsets of entity kinds. See
247 -- the spec of Einfo for further details.
249 -- Note: Flag1-Flag3 are absent from this list, for historical reasons
252 -- Has_Discriminants Flag5
253 -- Is_Dispatching_Operation Flag6
254 -- Is_Immediately_Visible Flag7
256 -- Is_Potentially_Use_Visible Flag9
260 -- Is_Constrained Flag12
261 -- Is_Generic_Type Flag13
262 -- Depends_On_Private Flag14
264 -- Is_Volatile Flag16
265 -- Is_Internal Flag17
266 -- Has_Delayed_Freeze Flag18
267 -- Is_Abstract_Subprogram Flag19
268 -- Is_Concurrent_Record_Type Flag20
270 -- Has_Master_Entity Flag21
271 -- Needs_No_Actuals Flag22
272 -- Has_Storage_Size_Clause Flag23
273 -- Is_Imported Flag24
274 -- Is_Limited_Record Flag25
275 -- Has_Completion Flag26
276 -- Has_Pragma_Controlled Flag27
277 -- Is_Statically_Allocated Flag28
278 -- Has_Size_Clause Flag29
281 -- Checks_May_Be_Suppressed Flag31
282 -- Kill_Elaboration_Checks Flag32
283 -- Kill_Range_Checks Flag33
284 -- Kill_Tag_Checks Flag34
285 -- Is_Class_Wide_Equivalent_Type Flag35
286 -- Referenced_As_LHS Flag36
287 -- Is_Known_Non_Null Flag37
288 -- Can_Never_Be_Null Flag38
289 -- Has_Default_Aspect Flag39
290 -- Body_Needed_For_SAL Flag40
292 -- Treat_As_Volatile Flag41
293 -- Is_Controlled Flag42
294 -- Has_Controlled_Component Flag43
296 -- In_Private_Part Flag45
297 -- Has_Alignment_Clause Flag46
299 -- In_Package_Body Flag48
301 -- Delay_Subprogram_Descriptors Flag50
304 -- Is_Entry_Formal Flag52
305 -- Is_Private_Descendant Flag53
306 -- Return_Present Flag54
307 -- Is_Tagged_Type Flag55
308 -- Has_Homonym Flag56
310 -- Non_Binary_Modulus Flag58
311 -- Is_Preelaborated Flag59
312 -- Is_Shared_Passive Flag60
314 -- Is_Remote_Types Flag61
315 -- Is_Remote_Call_Interface Flag62
316 -- Is_Character_Type Flag63
317 -- Is_Intrinsic_Subprogram Flag64
318 -- Has_Record_Rep_Clause Flag65
319 -- Has_Enumeration_Rep_Clause Flag66
320 -- Has_Small_Clause Flag67
321 -- Has_Component_Size_Clause Flag68
322 -- Is_Access_Constant Flag69
323 -- Is_First_Subtype Flag70
325 -- Has_Completion_In_Body Flag71
326 -- Has_Unknown_Discriminants Flag72
327 -- Is_Child_Unit Flag73
328 -- Is_CPP_Class Flag74
329 -- Has_Non_Standard_Rep Flag75
330 -- Is_Constructor Flag76
331 -- Static_Elaboration_Desired Flag77
333 -- Has_All_Calls_Remote Flag79
334 -- Is_Constr_Subt_For_U_Nominal Flag80
336 -- Is_Asynchronous Flag81
337 -- Has_Gigi_Rep_Item Flag82
338 -- Has_Machine_Radix_Clause Flag83
339 -- Machine_Radix_10 Flag84
341 -- Has_Atomic_Components Flag86
342 -- Has_Volatile_Components Flag87
343 -- Discard_Names Flag88
344 -- Is_Interrupt_Handler Flag89
345 -- Returns_By_Ref Flag90
348 -- Size_Known_At_Compile_Time Flag92
349 -- Has_Subprogram_Descriptor Flag93
350 -- Is_Generic_Actual_Type Flag94
351 -- Uses_Sec_Stack Flag95
352 -- Warnings_Off Flag96
353 -- Is_Controlling_Formal Flag97
354 -- Has_Controlling_Result Flag98
355 -- Is_Exported Flag99
356 -- Has_Specified_Layout Flag100
358 -- Has_Nested_Block_With_Handler Flag101
360 -- Is_Completely_Hidden Flag103
361 -- Address_Taken Flag104
362 -- Suppress_Initialization Flag105
363 -- Is_Limited_Composite Flag106
364 -- Is_Private_Composite Flag107
365 -- Default_Expressions_Processed Flag108
366 -- Is_Non_Static_Subtype Flag109
367 -- Has_External_Tag_Rep_Clause Flag110
369 -- Is_Formal_Subprogram Flag111
370 -- Is_Renaming_Of_Object Flag112
372 -- Delay_Cleanups Flag114
373 -- Never_Set_In_Source Flag115
374 -- Is_Visible_Child_Unit Flag116
375 -- Is_Unchecked_Union Flag117
376 -- Is_For_Access_Subtype Flag118
377 -- Has_Convention_Pragma Flag119
378 -- Has_Primitive_Operations Flag120
380 -- Has_Pragma_Pack Flag121
381 -- Is_Bit_Packed_Array Flag122
382 -- Has_Unchecked_Union Flag123
383 -- Is_Eliminated Flag124
384 -- C_Pass_By_Copy Flag125
385 -- Is_Instantiated Flag126
386 -- Is_Valued_Procedure Flag127
387 -- (used for Component_Alignment) Flag128
388 -- (used for Component_Alignment) Flag129
389 -- Is_Generic_Instance Flag130
391 -- No_Pool_Assigned Flag131
392 -- Is_AST_Entry Flag132
393 -- Is_VMS_Exception Flag133
394 -- Is_Optional_Parameter Flag134
395 -- Has_Aliased_Components Flag135
396 -- No_Strict_Aliasing Flag136
397 -- Is_Machine_Code_Subprogram Flag137
398 -- Is_Packed_Array_Type Flag138
399 -- Has_Biased_Representation Flag139
400 -- Has_Complex_Representation Flag140
402 -- Is_Constr_Subt_For_UN_Aliased Flag141
403 -- Has_Missing_Return Flag142
404 -- Has_Recursive_Call Flag143
405 -- Is_Unsigned_Type Flag144
406 -- Strict_Alignment Flag145
407 -- Is_Abstract_Type Flag146
408 -- Needs_Debug_Info Flag147
409 -- Suppress_Elaboration_Warnings Flag148
410 -- Is_Compilation_Unit Flag149
411 -- Has_Pragma_Elaborate_Body Flag150
413 -- Has_Private_Ancestor Flag151
414 -- Entry_Accepted Flag152
415 -- Is_Obsolescent Flag153
416 -- Has_Per_Object_Constraint Flag154
417 -- Has_Private_Declaration Flag155
418 -- Referenced Flag156
419 -- Has_Pragma_Inline Flag157
420 -- Finalize_Storage_Only Flag158
421 -- From_With_Type Flag159
422 -- Is_Package_Body_Entity Flag160
424 -- Has_Qualified_Name Flag161
425 -- Nonzero_Is_True Flag162
426 -- Is_True_Constant Flag163
427 -- Reverse_Bit_Order Flag164
428 -- Suppress_Style_Checks Flag165
429 -- Debug_Info_Off Flag166
430 -- Sec_Stack_Needed_For_Return Flag167
431 -- Materialize_Entity Flag168
432 -- Has_Pragma_Thread_Local_Storage Flag169
433 -- Is_Known_Valid Flag170
435 -- Is_Hidden_Open_Scope Flag171
436 -- Has_Object_Size_Clause Flag172
437 -- Has_Fully_Qualified_Name Flag173
438 -- Elaboration_Entity_Required Flag174
439 -- Has_Forward_Instantiation Flag175
440 -- Is_Discrim_SO_Function Flag176
441 -- Size_Depends_On_Discriminant Flag177
442 -- Is_Null_Init_Proc Flag178
443 -- Has_Pragma_Pure_Function Flag179
444 -- Has_Pragma_Unreferenced Flag180
446 -- Has_Contiguous_Rep Flag181
447 -- Has_Xref_Entry Flag182
448 -- Must_Be_On_Byte_Boundary Flag183
449 -- Has_Stream_Size_Clause Flag184
450 -- Is_Ada_2005_Only Flag185
451 -- Is_Interface Flag186
452 -- Has_Constrained_Partial_View Flag187
453 -- Has_Persistent_BSS Flag188
454 -- Is_Pure_Unit_Access_Type Flag189
455 -- Has_Specified_Stream_Input Flag190
457 -- Has_Specified_Stream_Output Flag191
458 -- Has_Specified_Stream_Read Flag192
459 -- Has_Specified_Stream_Write Flag193
460 -- Is_Local_Anonymous_Access Flag194
461 -- Is_Primitive_Wrapper Flag195
462 -- Was_Hidden Flag196
463 -- Is_Limited_Interface Flag197
464 -- Has_Pragma_Ordered Flag198
465 -- Is_Ada_2012_Only Flag199
467 -- Has_Delayed_Aspects Flag200
468 -- Has_Anon_Block_Suffix Flag201
469 -- Itype_Printed Flag202
470 -- Has_Pragma_Pure Flag203
471 -- Is_Known_Null Flag204
472 -- Low_Bound_Tested Flag205
473 -- Is_Visible_Formal Flag206
474 -- Known_To_Have_Preelab_Init Flag207
475 -- Must_Have_Preelab_Init Flag208
476 -- Is_Return_Object Flag209
477 -- Elaborate_Body_Desirable Flag210
479 -- Has_Static_Discriminants Flag211
480 -- Has_Pragma_Unreferenced_Objects Flag212
481 -- Requires_Overriding Flag213
483 -- Has_Up_Level_Access Flag215
484 -- Universal_Aliasing Flag216
485 -- Suppress_Value_Tracking_On_Call Flag217
486 -- Is_Primitive Flag218
487 -- Has_Initial_Value Flag219
488 -- Has_Dispatch_Table Flag220
490 -- Has_Pragma_Preelab_Init Flag221
491 -- Used_As_Generic_Actual Flag222
492 -- Is_Descendent_Of_Address Flag223
495 -- Is_Only_Out_Parameter Flag226
496 -- Referenced_As_Out_Parameter Flag227
497 -- Has_Thunks Flag228
498 -- Can_Use_Internal_Rep Flag229
499 -- Has_Pragma_Inline_Always Flag230
501 -- Renamed_In_Spec Flag231
502 -- Has_Invariants Flag232
503 -- Has_Pragma_Unmodified Flag233
504 -- Is_Dispatch_Table_Entity Flag234
505 -- Is_Trivial_Subprogram Flag235
506 -- Warnings_Off_Used Flag236
507 -- Warnings_Off_Used_Unmodified Flag237
508 -- Warnings_Off_Used_Unreferenced Flag238
509 -- OK_To_Reorder_Components Flag239
510 -- Has_Postconditions Flag240
512 -- Optimize_Alignment_Space Flag241
513 -- Optimize_Alignment_Time Flag242
514 -- Overlays_Constant Flag243
515 -- Is_RACW_Stub_Type Flag244
516 -- Is_Private_Primitive Flag245
517 -- Is_Underlying_Record_View Flag246
518 -- OK_To_Rename Flag247
519 -- Has_Inheritable_Invariants Flag248
520 -- Is_Safe_To_Reevaluate Flag249
521 -- Has_Predicates Flag250
523 -- Has_Implicit_Dereference Flag251
524 -- Is_Processed_Transient Flag252
525 -- Has_Anonymous_Master Flag253
526 -- Is_Implementation_Defined Flag254
528 -----------------------
529 -- Local subprograms --
530 -----------------------
532 function Rep_Clause
(Id
: E
; Rep_Name
: Name_Id
) return N
;
533 -- Returns the attribute definition clause for Id whose name is Rep_Name.
534 -- Returns Empty if no matching attribute definition clause found for Id.
540 function Float_Rep
(Id
: E
) return F
is
541 pragma Assert
(Is_Floating_Point_Type
(Id
));
543 return F
'Val (UI_To_Int
(Uint10
(Base_Type
(Id
))));
550 function Rep_Clause
(Id
: E
; Rep_Name
: Name_Id
) return N
is
554 Ritem
:= First_Rep_Item
(Id
);
555 while Present
(Ritem
) loop
556 if Nkind
(Ritem
) = N_Attribute_Definition_Clause
557 and then Chars
(Ritem
) = Rep_Name
561 Next_Rep_Item
(Ritem
);
568 --------------------------------
569 -- Attribute Access Functions --
570 --------------------------------
572 function Accept_Address
(Id
: E
) return L
is
577 function Access_Disp_Table
(Id
: E
) return L
is
579 pragma Assert
(Ekind_In
(Id
, E_Record_Type
,
581 return Elist16
(Implementation_Base_Type
(Id
));
582 end Access_Disp_Table
;
584 function Actual_Subtype
(Id
: E
) return E
is
587 (Ekind_In
(Id
, E_Constant
, E_Variable
, E_Generic_In_Out_Parameter
)
588 or else Is_Formal
(Id
));
592 function Address_Taken
(Id
: E
) return B
is
597 function Alias
(Id
: E
) return E
is
600 (Is_Overloadable
(Id
) or else Ekind
(Id
) = E_Subprogram_Type
);
604 function Alignment
(Id
: E
) return U
is
606 pragma Assert
(Is_Type
(Id
)
607 or else Is_Formal
(Id
)
608 or else Ekind_In
(Id
, E_Loop_Parameter
,
615 function Associated_Formal_Package
(Id
: E
) return E
is
617 pragma Assert
(Ekind
(Id
) = E_Package
);
619 end Associated_Formal_Package
;
621 function Associated_Node_For_Itype
(Id
: E
) return N
is
624 end Associated_Node_For_Itype
;
626 function Associated_Storage_Pool
(Id
: E
) return E
is
628 pragma Assert
(Is_Access_Type
(Id
));
629 return Node22
(Root_Type
(Id
));
630 end Associated_Storage_Pool
;
632 function Barrier_Function
(Id
: E
) return N
is
634 pragma Assert
(Is_Entry
(Id
));
636 end Barrier_Function
;
638 function Block_Node
(Id
: E
) return N
is
640 pragma Assert
(Ekind
(Id
) = E_Block
);
644 function Body_Entity
(Id
: E
) return E
is
646 pragma Assert
(Ekind_In
(Id
, E_Package
, E_Generic_Package
));
650 function Body_Needed_For_SAL
(Id
: E
) return B
is
653 (Ekind
(Id
) = E_Package
654 or else Is_Subprogram
(Id
)
655 or else Is_Generic_Unit
(Id
));
657 end Body_Needed_For_SAL
;
659 function C_Pass_By_Copy
(Id
: E
) return B
is
661 pragma Assert
(Is_Record_Type
(Id
));
662 return Flag125
(Implementation_Base_Type
(Id
));
665 function Can_Never_Be_Null
(Id
: E
) return B
is
668 end Can_Never_Be_Null
;
670 function Checks_May_Be_Suppressed
(Id
: E
) return B
is
673 end Checks_May_Be_Suppressed
;
675 function Class_Wide_Type
(Id
: E
) return E
is
677 pragma Assert
(Is_Type
(Id
));
681 function Cloned_Subtype
(Id
: E
) return E
is
683 pragma Assert
(Ekind_In
(Id
, E_Record_Subtype
, E_Class_Wide_Subtype
));
687 function Component_Bit_Offset
(Id
: E
) return U
is
689 pragma Assert
(Ekind_In
(Id
, E_Component
, E_Discriminant
));
691 end Component_Bit_Offset
;
693 function Component_Clause
(Id
: E
) return N
is
695 pragma Assert
(Ekind_In
(Id
, E_Component
, E_Discriminant
));
697 end Component_Clause
;
699 function Component_Size
(Id
: E
) return U
is
701 pragma Assert
(Is_Array_Type
(Id
));
702 return Uint22
(Implementation_Base_Type
(Id
));
705 function Component_Type
(Id
: E
) return E
is
707 pragma Assert
(Is_Array_Type
(Id
) or else Is_String_Type
(Id
));
708 return Node20
(Implementation_Base_Type
(Id
));
711 function Corresponding_Concurrent_Type
(Id
: E
) return E
is
713 pragma Assert
(Ekind
(Id
) = E_Record_Type
);
715 end Corresponding_Concurrent_Type
;
717 function Corresponding_Discriminant
(Id
: E
) return E
is
719 pragma Assert
(Ekind
(Id
) = E_Discriminant
);
721 end Corresponding_Discriminant
;
723 function Corresponding_Equality
(Id
: E
) return E
is
726 (Ekind
(Id
) = E_Function
727 and then not Comes_From_Source
(Id
)
728 and then Chars
(Id
) = Name_Op_Ne
);
730 end Corresponding_Equality
;
732 function Corresponding_Protected_Entry
(Id
: E
) return E
is
734 pragma Assert
(Ekind
(Id
) = E_Subprogram_Body
);
736 end Corresponding_Protected_Entry
;
738 function Corresponding_Record_Type
(Id
: E
) return E
is
740 pragma Assert
(Is_Concurrent_Type
(Id
));
742 end Corresponding_Record_Type
;
744 function Corresponding_Remote_Type
(Id
: E
) return E
is
747 end Corresponding_Remote_Type
;
749 function Current_Use_Clause
(Id
: E
) return E
is
751 pragma Assert
(Ekind
(Id
) = E_Package
or else Is_Type
(Id
));
753 end Current_Use_Clause
;
755 function Current_Value
(Id
: E
) return N
is
757 pragma Assert
(Ekind
(Id
) in Object_Kind
);
761 function CR_Discriminant
(Id
: E
) return E
is
766 function Debug_Info_Off
(Id
: E
) return B
is
771 function Debug_Renaming_Link
(Id
: E
) return E
is
774 end Debug_Renaming_Link
;
776 function Default_Expr_Function
(Id
: E
) return E
is
778 pragma Assert
(Is_Formal
(Id
));
780 end Default_Expr_Function
;
782 function Default_Expressions_Processed
(Id
: E
) return B
is
785 end Default_Expressions_Processed
;
787 function Default_Value
(Id
: E
) return N
is
789 pragma Assert
(Is_Formal
(Id
));
793 function Delay_Cleanups
(Id
: E
) return B
is
798 function Delay_Subprogram_Descriptors
(Id
: E
) return B
is
801 end Delay_Subprogram_Descriptors
;
803 function Delta_Value
(Id
: E
) return R
is
805 pragma Assert
(Is_Fixed_Point_Type
(Id
));
809 function Dependent_Instances
(Id
: E
) return L
is
811 pragma Assert
(Is_Generic_Instance
(Id
));
813 end Dependent_Instances
;
815 function Depends_On_Private
(Id
: E
) return B
is
817 pragma Assert
(Nkind
(Id
) in N_Entity
);
819 end Depends_On_Private
;
821 function Digits_Value
(Id
: E
) return U
is
824 (Is_Floating_Point_Type
(Id
)
825 or else Is_Decimal_Fixed_Point_Type
(Id
));
829 function Direct_Primitive_Operations
(Id
: E
) return L
is
831 pragma Assert
(Is_Tagged_Type
(Id
));
833 end Direct_Primitive_Operations
;
835 function Directly_Designated_Type
(Id
: E
) return E
is
837 pragma Assert
(Is_Access_Type
(Id
));
839 end Directly_Designated_Type
;
841 function Discard_Names
(Id
: E
) return B
is
846 function Discriminal
(Id
: E
) return E
is
848 pragma Assert
(Ekind
(Id
) = E_Discriminant
);
852 function Discriminal_Link
(Id
: E
) return N
is
855 end Discriminal_Link
;
857 function Discriminant_Checking_Func
(Id
: E
) return E
is
859 pragma Assert
(Ekind
(Id
) = E_Component
);
861 end Discriminant_Checking_Func
;
863 function Discriminant_Constraint
(Id
: E
) return L
is
865 pragma Assert
(Is_Composite_Type
(Id
) and then Has_Discriminants
(Id
));
867 end Discriminant_Constraint
;
869 function Discriminant_Default_Value
(Id
: E
) return N
is
871 pragma Assert
(Ekind
(Id
) = E_Discriminant
);
873 end Discriminant_Default_Value
;
875 function Discriminant_Number
(Id
: E
) return U
is
877 pragma Assert
(Ekind
(Id
) = E_Discriminant
);
879 end Discriminant_Number
;
881 function Dispatch_Table_Wrappers
(Id
: E
) return L
is
883 pragma Assert
(Ekind_In
(Id
, E_Record_Type
,
885 return Elist26
(Implementation_Base_Type
(Id
));
886 end Dispatch_Table_Wrappers
;
888 function DT_Entry_Count
(Id
: E
) return U
is
890 pragma Assert
(Ekind
(Id
) = E_Component
and then Is_Tag
(Id
));
894 function DT_Offset_To_Top_Func
(Id
: E
) return E
is
896 pragma Assert
(Ekind
(Id
) = E_Component
and then Is_Tag
(Id
));
898 end DT_Offset_To_Top_Func
;
900 function DT_Position
(Id
: E
) return U
is
902 pragma Assert
(Ekind_In
(Id
, E_Function
, E_Procedure
)
903 and then Present
(DTC_Entity
(Id
)));
907 function DTC_Entity
(Id
: E
) return E
is
909 pragma Assert
(Ekind_In
(Id
, E_Function
, E_Procedure
));
913 function Elaborate_Body_Desirable
(Id
: E
) return B
is
915 pragma Assert
(Ekind
(Id
) = E_Package
);
917 end Elaborate_Body_Desirable
;
919 function Elaboration_Entity
(Id
: E
) return E
is
924 Ekind
(Id
) = E_Package
926 Is_Generic_Unit
(Id
));
928 end Elaboration_Entity
;
930 function Elaboration_Entity_Required
(Id
: E
) return B
is
935 Ekind
(Id
) = E_Package
937 Is_Generic_Unit
(Id
));
939 end Elaboration_Entity_Required
;
941 function Enclosing_Scope
(Id
: E
) return E
is
946 function Entry_Accepted
(Id
: E
) return B
is
948 pragma Assert
(Is_Entry
(Id
));
952 function Entry_Bodies_Array
(Id
: E
) return E
is
955 end Entry_Bodies_Array
;
957 function Entry_Cancel_Parameter
(Id
: E
) return E
is
960 end Entry_Cancel_Parameter
;
962 function Entry_Component
(Id
: E
) return E
is
967 function Entry_Formal
(Id
: E
) return E
is
972 function Entry_Index_Constant
(Id
: E
) return N
is
974 pragma Assert
(Ekind
(Id
) = E_Entry_Index_Parameter
);
976 end Entry_Index_Constant
;
978 function Contract
(Id
: E
) return N
is
981 (Ekind_In
(Id
, E_Entry
, E_Entry_Family
)
982 or else Is_Subprogram
(Id
)
983 or else Is_Generic_Subprogram
(Id
));
987 function Entry_Parameters_Type
(Id
: E
) return E
is
990 end Entry_Parameters_Type
;
992 function Enum_Pos_To_Rep
(Id
: E
) return E
is
994 pragma Assert
(Ekind
(Id
) = E_Enumeration_Type
);
998 function Enumeration_Pos
(Id
: E
) return Uint
is
1000 pragma Assert
(Ekind
(Id
) = E_Enumeration_Literal
);
1002 end Enumeration_Pos
;
1004 function Enumeration_Rep
(Id
: E
) return U
is
1006 pragma Assert
(Ekind
(Id
) = E_Enumeration_Literal
);
1008 end Enumeration_Rep
;
1010 function Enumeration_Rep_Expr
(Id
: E
) return N
is
1012 pragma Assert
(Ekind
(Id
) = E_Enumeration_Literal
);
1014 end Enumeration_Rep_Expr
;
1016 function Equivalent_Type
(Id
: E
) return E
is
1019 (Ekind_In
(Id
, E_Class_Wide_Type
,
1020 E_Class_Wide_Subtype
,
1021 E_Access_Protected_Subprogram_Type
,
1022 E_Anonymous_Access_Protected_Subprogram_Type
,
1023 E_Access_Subprogram_Type
,
1026 end Equivalent_Type
;
1028 function Esize
(Id
: E
) return Uint
is
1033 function Exception_Code
(Id
: E
) return Uint
is
1035 pragma Assert
(Ekind
(Id
) = E_Exception
);
1039 function Extra_Accessibility
(Id
: E
) return E
is
1042 (Is_Formal
(Id
) or else Ekind_In
(Id
, E_Variable
, E_Constant
));
1044 end Extra_Accessibility
;
1046 function Extra_Accessibility_Of_Result
(Id
: E
) return E
is
1048 pragma Assert
(Ekind_In
(Id
, E_Function
, E_Operator
, E_Subprogram_Type
));
1050 end Extra_Accessibility_Of_Result
;
1052 function Extra_Constrained
(Id
: E
) return E
is
1054 pragma Assert
(Is_Formal
(Id
) or else Ekind
(Id
) = E_Variable
);
1056 end Extra_Constrained
;
1058 function Extra_Formal
(Id
: E
) return E
is
1063 function Extra_Formals
(Id
: E
) return E
is
1066 (Is_Overloadable
(Id
)
1067 or else Ekind_In
(Id
, E_Entry_Family
,
1069 E_Subprogram_Type
));
1073 function Can_Use_Internal_Rep
(Id
: E
) return B
is
1075 pragma Assert
(Is_Access_Subprogram_Type
(Base_Type
(Id
)));
1076 return Flag229
(Base_Type
(Id
));
1077 end Can_Use_Internal_Rep
;
1079 function Finalization_Master
(Id
: E
) return E
is
1081 pragma Assert
(Is_Access_Type
(Id
));
1082 return Node23
(Root_Type
(Id
));
1083 end Finalization_Master
;
1085 function Finalize_Storage_Only
(Id
: E
) return B
is
1087 pragma Assert
(Is_Type
(Id
));
1088 return Flag158
(Base_Type
(Id
));
1089 end Finalize_Storage_Only
;
1091 function Finalizer
(Id
: E
) return E
is
1094 (Ekind
(Id
) = E_Package
1095 or else Ekind
(Id
) = E_Package_Body
);
1099 function First_Entity
(Id
: E
) return E
is
1104 function First_Exit_Statement
(Id
: E
) return N
is
1106 pragma Assert
(Ekind
(Id
) = E_Loop
);
1108 end First_Exit_Statement
;
1110 function First_Index
(Id
: E
) return N
is
1112 pragma Assert
(Is_Array_Type
(Id
) or else Is_String_Type
(Id
));
1116 function First_Literal
(Id
: E
) return E
is
1118 pragma Assert
(Is_Enumeration_Type
(Id
));
1122 function First_Optional_Parameter
(Id
: E
) return E
is
1124 pragma Assert
(Ekind_In
(Id
, E_Function
, E_Procedure
));
1126 end First_Optional_Parameter
;
1128 function First_Private_Entity
(Id
: E
) return E
is
1130 pragma Assert
(Ekind_In
(Id
, E_Package
, E_Generic_Package
)
1131 or else Ekind
(Id
) in Concurrent_Kind
);
1133 end First_Private_Entity
;
1135 function First_Rep_Item
(Id
: E
) return E
is
1140 function Freeze_Node
(Id
: E
) return N
is
1145 function From_With_Type
(Id
: E
) return B
is
1147 return Flag159
(Id
);
1150 function Full_View
(Id
: E
) return E
is
1152 pragma Assert
(Is_Type
(Id
) or else Ekind
(Id
) = E_Constant
);
1156 function Generic_Homonym
(Id
: E
) return E
is
1158 pragma Assert
(Ekind
(Id
) = E_Generic_Package
);
1160 end Generic_Homonym
;
1162 function Generic_Renamings
(Id
: E
) return L
is
1164 return Elist23
(Id
);
1165 end Generic_Renamings
;
1167 function Handler_Records
(Id
: E
) return S
is
1170 end Handler_Records
;
1172 function Has_Aliased_Components
(Id
: E
) return B
is
1174 return Flag135
(Implementation_Base_Type
(Id
));
1175 end Has_Aliased_Components
;
1177 function Has_Alignment_Clause
(Id
: E
) return B
is
1180 end Has_Alignment_Clause
;
1182 function Has_All_Calls_Remote
(Id
: E
) return B
is
1185 end Has_All_Calls_Remote
;
1187 function Has_Anon_Block_Suffix
(Id
: E
) return B
is
1189 return Flag201
(Id
);
1190 end Has_Anon_Block_Suffix
;
1192 function Has_Anonymous_Master
(Id
: E
) return B
is
1195 (Ekind_In
(Id
, E_Function
, E_Package
, E_Package_Body
, E_Procedure
));
1196 return Flag253
(Id
);
1197 end Has_Anonymous_Master
;
1199 function Has_Atomic_Components
(Id
: E
) return B
is
1201 return Flag86
(Implementation_Base_Type
(Id
));
1202 end Has_Atomic_Components
;
1204 function Has_Biased_Representation
(Id
: E
) return B
is
1206 return Flag139
(Id
);
1207 end Has_Biased_Representation
;
1209 function Has_Completion
(Id
: E
) return B
is
1214 function Has_Completion_In_Body
(Id
: E
) return B
is
1216 pragma Assert
(Is_Type
(Id
));
1218 end Has_Completion_In_Body
;
1220 function Has_Complex_Representation
(Id
: E
) return B
is
1222 pragma Assert
(Is_Type
(Id
));
1223 return Flag140
(Implementation_Base_Type
(Id
));
1224 end Has_Complex_Representation
;
1226 function Has_Component_Size_Clause
(Id
: E
) return B
is
1228 pragma Assert
(Is_Array_Type
(Id
));
1229 return Flag68
(Implementation_Base_Type
(Id
));
1230 end Has_Component_Size_Clause
;
1232 function Has_Constrained_Partial_View
(Id
: E
) return B
is
1234 pragma Assert
(Is_Type
(Id
));
1235 return Flag187
(Id
);
1236 end Has_Constrained_Partial_View
;
1238 function Has_Controlled_Component
(Id
: E
) return B
is
1240 return Flag43
(Base_Type
(Id
));
1241 end Has_Controlled_Component
;
1243 function Has_Contiguous_Rep
(Id
: E
) return B
is
1245 return Flag181
(Id
);
1246 end Has_Contiguous_Rep
;
1248 function Has_Controlling_Result
(Id
: E
) return B
is
1251 end Has_Controlling_Result
;
1253 function Has_Convention_Pragma
(Id
: E
) return B
is
1255 return Flag119
(Id
);
1256 end Has_Convention_Pragma
;
1258 function Has_Default_Aspect
(Id
: E
) return B
is
1260 return Flag39
(Base_Type
(Id
));
1261 end Has_Default_Aspect
;
1263 function Has_Delayed_Aspects
(Id
: E
) return B
is
1265 pragma Assert
(Nkind
(Id
) in N_Entity
);
1266 return Flag200
(Id
);
1267 end Has_Delayed_Aspects
;
1269 function Has_Delayed_Freeze
(Id
: E
) return B
is
1271 pragma Assert
(Nkind
(Id
) in N_Entity
);
1273 end Has_Delayed_Freeze
;
1275 function Has_Discriminants
(Id
: E
) return B
is
1277 pragma Assert
(Nkind
(Id
) in N_Entity
);
1279 end Has_Discriminants
;
1281 function Has_Dispatch_Table
(Id
: E
) return B
is
1283 pragma Assert
(Is_Tagged_Type
(Id
));
1284 return Flag220
(Id
);
1285 end Has_Dispatch_Table
;
1287 function Has_Enumeration_Rep_Clause
(Id
: E
) return B
is
1289 pragma Assert
(Is_Enumeration_Type
(Id
));
1291 end Has_Enumeration_Rep_Clause
;
1293 function Has_Exit
(Id
: E
) return B
is
1298 function Has_External_Tag_Rep_Clause
(Id
: E
) return B
is
1300 pragma Assert
(Is_Tagged_Type
(Id
));
1301 return Flag110
(Id
);
1302 end Has_External_Tag_Rep_Clause
;
1304 function Has_Forward_Instantiation
(Id
: E
) return B
is
1306 return Flag175
(Id
);
1307 end Has_Forward_Instantiation
;
1309 function Has_Fully_Qualified_Name
(Id
: E
) return B
is
1311 return Flag173
(Id
);
1312 end Has_Fully_Qualified_Name
;
1314 function Has_Gigi_Rep_Item
(Id
: E
) return B
is
1317 end Has_Gigi_Rep_Item
;
1319 function Has_Homonym
(Id
: E
) return B
is
1324 function Has_Implicit_Dereference
(Id
: E
) return B
is
1326 return Flag251
(Id
);
1327 end Has_Implicit_Dereference
;
1329 function Has_Inheritable_Invariants
(Id
: E
) return B
is
1331 pragma Assert
(Is_Type
(Id
));
1332 return Flag248
(Id
);
1333 end Has_Inheritable_Invariants
;
1335 function Has_Initial_Value
(Id
: E
) return B
is
1337 pragma Assert
(Ekind
(Id
) = E_Variable
or else Is_Formal
(Id
));
1338 return Flag219
(Id
);
1339 end Has_Initial_Value
;
1341 function Has_Invariants
(Id
: E
) return B
is
1343 pragma Assert
(Is_Type
(Id
)
1344 or else Ekind
(Id
) = E_Procedure
1345 or else Ekind
(Id
) = E_Generic_Procedure
);
1346 return Flag232
(Id
);
1349 function Has_Machine_Radix_Clause
(Id
: E
) return B
is
1351 pragma Assert
(Is_Decimal_Fixed_Point_Type
(Id
));
1353 end Has_Machine_Radix_Clause
;
1355 function Has_Master_Entity
(Id
: E
) return B
is
1358 end Has_Master_Entity
;
1360 function Has_Missing_Return
(Id
: E
) return B
is
1362 pragma Assert
(Ekind_In
(Id
, E_Function
, E_Generic_Function
));
1363 return Flag142
(Id
);
1364 end Has_Missing_Return
;
1366 function Has_Nested_Block_With_Handler
(Id
: E
) return B
is
1368 return Flag101
(Id
);
1369 end Has_Nested_Block_With_Handler
;
1371 function Has_Non_Standard_Rep
(Id
: E
) return B
is
1373 return Flag75
(Implementation_Base_Type
(Id
));
1374 end Has_Non_Standard_Rep
;
1376 function Has_Object_Size_Clause
(Id
: E
) return B
is
1378 pragma Assert
(Is_Type
(Id
));
1379 return Flag172
(Id
);
1380 end Has_Object_Size_Clause
;
1382 function Has_Per_Object_Constraint
(Id
: E
) return B
is
1384 return Flag154
(Id
);
1385 end Has_Per_Object_Constraint
;
1387 function Has_Persistent_BSS
(Id
: E
) return B
is
1389 return Flag188
(Id
);
1390 end Has_Persistent_BSS
;
1392 function Has_Postconditions
(Id
: E
) return B
is
1394 pragma Assert
(Is_Subprogram
(Id
));
1395 return Flag240
(Id
);
1396 end Has_Postconditions
;
1398 function Has_Pragma_Controlled
(Id
: E
) return B
is
1400 pragma Assert
(Is_Access_Type
(Id
));
1401 return Flag27
(Implementation_Base_Type
(Id
));
1402 end Has_Pragma_Controlled
;
1404 function Has_Pragma_Elaborate_Body
(Id
: E
) return B
is
1406 return Flag150
(Id
);
1407 end Has_Pragma_Elaborate_Body
;
1409 function Has_Pragma_Inline
(Id
: E
) return B
is
1411 return Flag157
(Id
);
1412 end Has_Pragma_Inline
;
1414 function Has_Pragma_Inline_Always
(Id
: E
) return B
is
1416 return Flag230
(Id
);
1417 end Has_Pragma_Inline_Always
;
1419 function Has_Pragma_Ordered
(Id
: E
) return B
is
1421 pragma Assert
(Is_Enumeration_Type
(Id
));
1422 return Flag198
(Implementation_Base_Type
(Id
));
1423 end Has_Pragma_Ordered
;
1425 function Has_Pragma_Pack
(Id
: E
) return B
is
1427 pragma Assert
(Is_Record_Type
(Id
) or else Is_Array_Type
(Id
));
1428 return Flag121
(Implementation_Base_Type
(Id
));
1429 end Has_Pragma_Pack
;
1431 function Has_Pragma_Preelab_Init
(Id
: E
) return B
is
1433 return Flag221
(Id
);
1434 end Has_Pragma_Preelab_Init
;
1436 function Has_Pragma_Pure
(Id
: E
) return B
is
1438 return Flag203
(Id
);
1439 end Has_Pragma_Pure
;
1441 function Has_Pragma_Pure_Function
(Id
: E
) return B
is
1443 return Flag179
(Id
);
1444 end Has_Pragma_Pure_Function
;
1446 function Has_Pragma_Thread_Local_Storage
(Id
: E
) return B
is
1448 return Flag169
(Id
);
1449 end Has_Pragma_Thread_Local_Storage
;
1451 function Has_Pragma_Unmodified
(Id
: E
) return B
is
1453 return Flag233
(Id
);
1454 end Has_Pragma_Unmodified
;
1456 function Has_Pragma_Unreferenced
(Id
: E
) return B
is
1458 return Flag180
(Id
);
1459 end Has_Pragma_Unreferenced
;
1461 function Has_Pragma_Unreferenced_Objects
(Id
: E
) return B
is
1463 pragma Assert
(Is_Type
(Id
));
1464 return Flag212
(Id
);
1465 end Has_Pragma_Unreferenced_Objects
;
1467 function Has_Predicates
(Id
: E
) return B
is
1469 return Flag250
(Id
);
1472 function Has_Primitive_Operations
(Id
: E
) return B
is
1474 pragma Assert
(Is_Type
(Id
));
1475 return Flag120
(Base_Type
(Id
));
1476 end Has_Primitive_Operations
;
1478 function Has_Private_Ancestor
(Id
: E
) return B
is
1480 return Flag151
(Id
);
1481 end Has_Private_Ancestor
;
1483 function Has_Private_Declaration
(Id
: E
) return B
is
1485 return Flag155
(Id
);
1486 end Has_Private_Declaration
;
1488 function Has_Qualified_Name
(Id
: E
) return B
is
1490 return Flag161
(Id
);
1491 end Has_Qualified_Name
;
1493 function Has_RACW
(Id
: E
) return B
is
1495 pragma Assert
(Ekind
(Id
) = E_Package
);
1496 return Flag214
(Id
);
1499 function Has_Record_Rep_Clause
(Id
: E
) return B
is
1501 pragma Assert
(Is_Record_Type
(Id
));
1502 return Flag65
(Implementation_Base_Type
(Id
));
1503 end Has_Record_Rep_Clause
;
1505 function Has_Recursive_Call
(Id
: E
) return B
is
1507 pragma Assert
(Is_Subprogram
(Id
));
1508 return Flag143
(Id
);
1509 end Has_Recursive_Call
;
1511 function Has_Size_Clause
(Id
: E
) return B
is
1514 end Has_Size_Clause
;
1516 function Has_Small_Clause
(Id
: E
) return B
is
1519 end Has_Small_Clause
;
1521 function Has_Specified_Layout
(Id
: E
) return B
is
1523 pragma Assert
(Is_Type
(Id
));
1524 return Flag100
(Implementation_Base_Type
(Id
));
1525 end Has_Specified_Layout
;
1527 function Has_Specified_Stream_Input
(Id
: E
) return B
is
1529 pragma Assert
(Is_Type
(Id
));
1530 return Flag190
(Id
);
1531 end Has_Specified_Stream_Input
;
1533 function Has_Specified_Stream_Output
(Id
: E
) return B
is
1535 pragma Assert
(Is_Type
(Id
));
1536 return Flag191
(Id
);
1537 end Has_Specified_Stream_Output
;
1539 function Has_Specified_Stream_Read
(Id
: E
) return B
is
1541 pragma Assert
(Is_Type
(Id
));
1542 return Flag192
(Id
);
1543 end Has_Specified_Stream_Read
;
1545 function Has_Specified_Stream_Write
(Id
: E
) return B
is
1547 pragma Assert
(Is_Type
(Id
));
1548 return Flag193
(Id
);
1549 end Has_Specified_Stream_Write
;
1551 function Has_Static_Discriminants
(Id
: E
) return B
is
1553 pragma Assert
(Is_Type
(Id
));
1554 return Flag211
(Id
);
1555 end Has_Static_Discriminants
;
1557 function Has_Storage_Size_Clause
(Id
: E
) return B
is
1559 pragma Assert
(Is_Access_Type
(Id
) or else Is_Task_Type
(Id
));
1560 return Flag23
(Implementation_Base_Type
(Id
));
1561 end Has_Storage_Size_Clause
;
1563 function Has_Stream_Size_Clause
(Id
: E
) return B
is
1565 return Flag184
(Id
);
1566 end Has_Stream_Size_Clause
;
1568 function Has_Subprogram_Descriptor
(Id
: E
) return B
is
1571 end Has_Subprogram_Descriptor
;
1573 function Has_Task
(Id
: E
) return B
is
1575 return Flag30
(Base_Type
(Id
));
1578 function Has_Thunks
(Id
: E
) return B
is
1580 return Flag228
(Id
);
1583 function Has_Unchecked_Union
(Id
: E
) return B
is
1585 return Flag123
(Base_Type
(Id
));
1586 end Has_Unchecked_Union
;
1588 function Has_Unknown_Discriminants
(Id
: E
) return B
is
1590 pragma Assert
(Is_Type
(Id
));
1592 end Has_Unknown_Discriminants
;
1594 function Has_Up_Level_Access
(Id
: E
) return B
is
1597 (Ekind_In
(Id
, E_Variable
, E_Constant
, E_Loop_Parameter
));
1598 return Flag215
(Id
);
1599 end Has_Up_Level_Access
;
1601 function Has_Volatile_Components
(Id
: E
) return B
is
1603 return Flag87
(Implementation_Base_Type
(Id
));
1604 end Has_Volatile_Components
;
1606 function Has_Xref_Entry
(Id
: E
) return B
is
1608 return Flag182
(Id
);
1611 function Hiding_Loop_Variable
(Id
: E
) return E
is
1613 pragma Assert
(Ekind
(Id
) = E_Variable
);
1615 end Hiding_Loop_Variable
;
1617 function Homonym
(Id
: E
) return E
is
1622 function Interface_Alias
(Id
: E
) return E
is
1624 pragma Assert
(Is_Subprogram
(Id
));
1626 end Interface_Alias
;
1628 function Interfaces
(Id
: E
) return L
is
1630 pragma Assert
(Is_Record_Type
(Id
));
1631 return Elist25
(Id
);
1634 function In_Package_Body
(Id
: E
) return B
is
1637 end In_Package_Body
;
1639 function In_Private_Part
(Id
: E
) return B
is
1642 end In_Private_Part
;
1644 function In_Use
(Id
: E
) return B
is
1646 pragma Assert
(Nkind
(Id
) in N_Entity
);
1650 function Inner_Instances
(Id
: E
) return L
is
1652 return Elist23
(Id
);
1653 end Inner_Instances
;
1655 function Interface_Name
(Id
: E
) return N
is
1660 function Is_Abstract_Subprogram
(Id
: E
) return B
is
1662 pragma Assert
(Is_Overloadable
(Id
));
1664 end Is_Abstract_Subprogram
;
1666 function Is_Abstract_Type
(Id
: E
) return B
is
1668 pragma Assert
(Is_Type
(Id
));
1669 return Flag146
(Id
);
1670 end Is_Abstract_Type
;
1672 function Is_Local_Anonymous_Access
(Id
: E
) return B
is
1674 pragma Assert
(Is_Access_Type
(Id
));
1675 return Flag194
(Id
);
1676 end Is_Local_Anonymous_Access
;
1678 function Is_Access_Constant
(Id
: E
) return B
is
1680 pragma Assert
(Is_Access_Type
(Id
));
1682 end Is_Access_Constant
;
1684 function Is_Ada_2005_Only
(Id
: E
) return B
is
1686 return Flag185
(Id
);
1687 end Is_Ada_2005_Only
;
1689 function Is_Ada_2012_Only
(Id
: E
) return B
is
1691 return Flag199
(Id
);
1692 end Is_Ada_2012_Only
;
1694 function Is_Aliased
(Id
: E
) return B
is
1696 pragma Assert
(Nkind
(Id
) in N_Entity
);
1700 function Is_AST_Entry
(Id
: E
) return B
is
1702 pragma Assert
(Is_Entry
(Id
));
1703 return Flag132
(Id
);
1706 function Is_Asynchronous
(Id
: E
) return B
is
1708 pragma Assert
(Ekind
(Id
) = E_Procedure
or else Is_Type
(Id
));
1710 end Is_Asynchronous
;
1712 function Is_Atomic
(Id
: E
) return B
is
1717 function Is_Bit_Packed_Array
(Id
: E
) return B
is
1719 return Flag122
(Implementation_Base_Type
(Id
));
1720 end Is_Bit_Packed_Array
;
1722 function Is_Called
(Id
: E
) return B
is
1724 pragma Assert
(Ekind_In
(Id
, E_Procedure
, E_Function
));
1725 return Flag102
(Id
);
1728 function Is_Character_Type
(Id
: E
) return B
is
1731 end Is_Character_Type
;
1733 function Is_Child_Unit
(Id
: E
) return B
is
1738 function Is_Class_Wide_Equivalent_Type
(Id
: E
) return B
is
1741 end Is_Class_Wide_Equivalent_Type
;
1743 function Is_Compilation_Unit
(Id
: E
) return B
is
1745 return Flag149
(Id
);
1746 end Is_Compilation_Unit
;
1748 function Is_Completely_Hidden
(Id
: E
) return B
is
1750 pragma Assert
(Ekind
(Id
) = E_Discriminant
);
1751 return Flag103
(Id
);
1752 end Is_Completely_Hidden
;
1754 function Is_Constr_Subt_For_U_Nominal
(Id
: E
) return B
is
1757 end Is_Constr_Subt_For_U_Nominal
;
1759 function Is_Constr_Subt_For_UN_Aliased
(Id
: E
) return B
is
1761 return Flag141
(Id
);
1762 end Is_Constr_Subt_For_UN_Aliased
;
1764 function Is_Constrained
(Id
: E
) return B
is
1766 pragma Assert
(Nkind
(Id
) in N_Entity
);
1770 function Is_Constructor
(Id
: E
) return B
is
1775 function Is_Controlled
(Id
: E
) return B
is
1777 return Flag42
(Base_Type
(Id
));
1780 function Is_Controlling_Formal
(Id
: E
) return B
is
1782 pragma Assert
(Is_Formal
(Id
));
1784 end Is_Controlling_Formal
;
1786 function Is_CPP_Class
(Id
: E
) return B
is
1791 function Is_Descendent_Of_Address
(Id
: E
) return B
is
1793 pragma Assert
(Is_Type
(Id
));
1794 return Flag223
(Id
);
1795 end Is_Descendent_Of_Address
;
1797 function Is_Discrim_SO_Function
(Id
: E
) return B
is
1799 return Flag176
(Id
);
1800 end Is_Discrim_SO_Function
;
1802 function Is_Dispatch_Table_Entity
(Id
: E
) return B
is
1804 return Flag234
(Id
);
1805 end Is_Dispatch_Table_Entity
;
1807 function Is_Dispatching_Operation
(Id
: E
) return B
is
1809 pragma Assert
(Nkind
(Id
) in N_Entity
);
1811 end Is_Dispatching_Operation
;
1813 function Is_Eliminated
(Id
: E
) return B
is
1815 return Flag124
(Id
);
1818 function Is_Entry_Formal
(Id
: E
) return B
is
1821 end Is_Entry_Formal
;
1823 function Is_Exported
(Id
: E
) return B
is
1828 function Is_First_Subtype
(Id
: E
) return B
is
1831 end Is_First_Subtype
;
1833 function Is_For_Access_Subtype
(Id
: E
) return B
is
1835 pragma Assert
(Ekind_In
(Id
, E_Record_Subtype
, E_Private_Subtype
));
1836 return Flag118
(Id
);
1837 end Is_For_Access_Subtype
;
1839 function Is_Formal_Subprogram
(Id
: E
) return B
is
1841 return Flag111
(Id
);
1842 end Is_Formal_Subprogram
;
1844 function Is_Frozen
(Id
: E
) return B
is
1849 function Is_Generic_Actual_Type
(Id
: E
) return B
is
1851 pragma Assert
(Is_Type
(Id
));
1853 end Is_Generic_Actual_Type
;
1855 function Is_Generic_Instance
(Id
: E
) return B
is
1857 return Flag130
(Id
);
1858 end Is_Generic_Instance
;
1860 function Is_Generic_Type
(Id
: E
) return B
is
1862 pragma Assert
(Nkind
(Id
) in N_Entity
);
1864 end Is_Generic_Type
;
1866 function Is_Hidden
(Id
: E
) return B
is
1871 function Is_Hidden_Open_Scope
(Id
: E
) return B
is
1873 return Flag171
(Id
);
1874 end Is_Hidden_Open_Scope
;
1876 function Is_Immediately_Visible
(Id
: E
) return B
is
1878 pragma Assert
(Nkind
(Id
) in N_Entity
);
1880 end Is_Immediately_Visible
;
1882 function Is_Implementation_Defined
(Id
: E
) return B
is
1884 return Flag254
(Id
);
1885 end Is_Implementation_Defined
;
1887 function Is_Imported
(Id
: E
) return B
is
1892 function Is_Inlined
(Id
: E
) return B
is
1897 function Is_Interface
(Id
: E
) return B
is
1899 return Flag186
(Id
);
1902 function Is_Instantiated
(Id
: E
) return B
is
1904 return Flag126
(Id
);
1905 end Is_Instantiated
;
1907 function Is_Internal
(Id
: E
) return B
is
1909 pragma Assert
(Nkind
(Id
) in N_Entity
);
1913 function Is_Interrupt_Handler
(Id
: E
) return B
is
1915 pragma Assert
(Nkind
(Id
) in N_Entity
);
1917 end Is_Interrupt_Handler
;
1919 function Is_Intrinsic_Subprogram
(Id
: E
) return B
is
1922 end Is_Intrinsic_Subprogram
;
1924 function Is_Itype
(Id
: E
) return B
is
1929 function Is_Known_Non_Null
(Id
: E
) return B
is
1932 end Is_Known_Non_Null
;
1934 function Is_Known_Null
(Id
: E
) return B
is
1936 return Flag204
(Id
);
1939 function Is_Known_Valid
(Id
: E
) return B
is
1941 return Flag170
(Id
);
1944 function Is_Limited_Composite
(Id
: E
) return B
is
1946 return Flag106
(Id
);
1947 end Is_Limited_Composite
;
1949 function Is_Limited_Interface
(Id
: E
) return B
is
1951 return Flag197
(Id
);
1952 end Is_Limited_Interface
;
1954 function Is_Limited_Record
(Id
: E
) return B
is
1957 end Is_Limited_Record
;
1959 function Is_Machine_Code_Subprogram
(Id
: E
) return B
is
1961 pragma Assert
(Is_Subprogram
(Id
));
1962 return Flag137
(Id
);
1963 end Is_Machine_Code_Subprogram
;
1965 function Is_Non_Static_Subtype
(Id
: E
) return B
is
1967 pragma Assert
(Is_Type
(Id
));
1968 return Flag109
(Id
);
1969 end Is_Non_Static_Subtype
;
1971 function Is_Null_Init_Proc
(Id
: E
) return B
is
1973 pragma Assert
(Ekind
(Id
) = E_Procedure
);
1974 return Flag178
(Id
);
1975 end Is_Null_Init_Proc
;
1977 function Is_Obsolescent
(Id
: E
) return B
is
1979 return Flag153
(Id
);
1982 function Is_Only_Out_Parameter
(Id
: E
) return B
is
1984 pragma Assert
(Is_Formal
(Id
));
1985 return Flag226
(Id
);
1986 end Is_Only_Out_Parameter
;
1988 function Is_Optional_Parameter
(Id
: E
) return B
is
1990 pragma Assert
(Is_Formal
(Id
));
1991 return Flag134
(Id
);
1992 end Is_Optional_Parameter
;
1994 function Is_Package_Body_Entity
(Id
: E
) return B
is
1996 return Flag160
(Id
);
1997 end Is_Package_Body_Entity
;
1999 function Is_Packed
(Id
: E
) return B
is
2001 return Flag51
(Implementation_Base_Type
(Id
));
2004 function Is_Packed_Array_Type
(Id
: E
) return B
is
2006 return Flag138
(Id
);
2007 end Is_Packed_Array_Type
;
2009 function Is_Potentially_Use_Visible
(Id
: E
) return B
is
2011 pragma Assert
(Nkind
(Id
) in N_Entity
);
2013 end Is_Potentially_Use_Visible
;
2015 function Is_Preelaborated
(Id
: E
) return B
is
2018 end Is_Preelaborated
;
2020 function Is_Primitive
(Id
: E
) return B
is
2023 (Is_Overloadable
(Id
)
2024 or else Ekind_In
(Id
, E_Generic_Function
, E_Generic_Procedure
));
2025 return Flag218
(Id
);
2028 function Is_Primitive_Wrapper
(Id
: E
) return B
is
2030 pragma Assert
(Ekind_In
(Id
, E_Function
, E_Procedure
));
2031 return Flag195
(Id
);
2032 end Is_Primitive_Wrapper
;
2034 function Is_Private_Composite
(Id
: E
) return B
is
2036 pragma Assert
(Is_Type
(Id
));
2037 return Flag107
(Id
);
2038 end Is_Private_Composite
;
2040 function Is_Private_Descendant
(Id
: E
) return B
is
2043 end Is_Private_Descendant
;
2045 function Is_Private_Primitive
(Id
: E
) return B
is
2047 pragma Assert
(Ekind_In
(Id
, E_Function
, E_Procedure
));
2048 return Flag245
(Id
);
2049 end Is_Private_Primitive
;
2051 function Is_Processed_Transient
(Id
: E
) return B
is
2053 pragma Assert
(Ekind_In
(Id
, E_Constant
, E_Variable
));
2054 return Flag252
(Id
);
2055 end Is_Processed_Transient
;
2057 function Is_Public
(Id
: E
) return B
is
2059 pragma Assert
(Nkind
(Id
) in N_Entity
);
2063 function Is_Pure
(Id
: E
) return B
is
2068 function Is_Pure_Unit_Access_Type
(Id
: E
) return B
is
2070 pragma Assert
(Is_Access_Type
(Id
));
2071 return Flag189
(Id
);
2072 end Is_Pure_Unit_Access_Type
;
2074 function Is_RACW_Stub_Type
(Id
: E
) return B
is
2076 pragma Assert
(Is_Type
(Id
));
2077 return Flag244
(Id
);
2078 end Is_RACW_Stub_Type
;
2080 function Is_Raised
(Id
: E
) return B
is
2082 pragma Assert
(Ekind
(Id
) = E_Exception
);
2083 return Flag224
(Id
);
2086 function Is_Remote_Call_Interface
(Id
: E
) return B
is
2089 end Is_Remote_Call_Interface
;
2091 function Is_Remote_Types
(Id
: E
) return B
is
2094 end Is_Remote_Types
;
2096 function Is_Renaming_Of_Object
(Id
: E
) return B
is
2098 return Flag112
(Id
);
2099 end Is_Renaming_Of_Object
;
2101 function Is_Return_Object
(Id
: E
) return B
is
2103 return Flag209
(Id
);
2104 end Is_Return_Object
;
2106 function Is_Safe_To_Reevaluate
(Id
: E
) return B
is
2108 return Flag249
(Id
);
2109 end Is_Safe_To_Reevaluate
;
2111 function Is_Shared_Passive
(Id
: E
) return B
is
2114 end Is_Shared_Passive
;
2116 function Is_Statically_Allocated
(Id
: E
) return B
is
2119 end Is_Statically_Allocated
;
2121 function Is_Tag
(Id
: E
) return B
is
2123 pragma Assert
(Nkind
(Id
) in N_Entity
);
2127 function Is_Tagged_Type
(Id
: E
) return B
is
2132 function Is_Thunk
(Id
: E
) return B
is
2134 pragma Assert
(Is_Subprogram
(Id
));
2135 return Flag225
(Id
);
2138 function Is_Trivial_Subprogram
(Id
: E
) return B
is
2140 return Flag235
(Id
);
2141 end Is_Trivial_Subprogram
;
2143 function Is_True_Constant
(Id
: E
) return B
is
2145 return Flag163
(Id
);
2146 end Is_True_Constant
;
2148 function Is_Unchecked_Union
(Id
: E
) return B
is
2150 return Flag117
(Implementation_Base_Type
(Id
));
2151 end Is_Unchecked_Union
;
2153 function Is_Underlying_Record_View
(Id
: E
) return B
is
2155 return Flag246
(Id
);
2156 end Is_Underlying_Record_View
;
2158 function Is_Unsigned_Type
(Id
: E
) return B
is
2160 pragma Assert
(Is_Type
(Id
));
2161 return Flag144
(Id
);
2162 end Is_Unsigned_Type
;
2164 function Is_Valued_Procedure
(Id
: E
) return B
is
2166 pragma Assert
(Ekind
(Id
) = E_Procedure
);
2167 return Flag127
(Id
);
2168 end Is_Valued_Procedure
;
2170 function Is_Visible_Child_Unit
(Id
: E
) return B
is
2172 pragma Assert
(Is_Child_Unit
(Id
));
2173 return Flag116
(Id
);
2174 end Is_Visible_Child_Unit
;
2176 function Is_Visible_Formal
(Id
: E
) return B
is
2178 return Flag206
(Id
);
2179 end Is_Visible_Formal
;
2181 function Is_VMS_Exception
(Id
: E
) return B
is
2183 return Flag133
(Id
);
2184 end Is_VMS_Exception
;
2186 function Is_Volatile
(Id
: E
) return B
is
2188 pragma Assert
(Nkind
(Id
) in N_Entity
);
2190 if Is_Type
(Id
) then
2191 return Flag16
(Base_Type
(Id
));
2197 function Itype_Printed
(Id
: E
) return B
is
2199 pragma Assert
(Is_Itype
(Id
));
2200 return Flag202
(Id
);
2203 function Kill_Elaboration_Checks
(Id
: E
) return B
is
2206 end Kill_Elaboration_Checks
;
2208 function Kill_Range_Checks
(Id
: E
) return B
is
2211 end Kill_Range_Checks
;
2213 function Kill_Tag_Checks
(Id
: E
) return B
is
2216 end Kill_Tag_Checks
;
2218 function Known_To_Have_Preelab_Init
(Id
: E
) return B
is
2220 pragma Assert
(Is_Type
(Id
));
2221 return Flag207
(Id
);
2222 end Known_To_Have_Preelab_Init
;
2224 function Last_Assignment
(Id
: E
) return N
is
2226 pragma Assert
(Is_Assignable
(Id
));
2228 end Last_Assignment
;
2230 function Last_Entity
(Id
: E
) return E
is
2235 function Limited_View
(Id
: E
) return E
is
2237 pragma Assert
(Ekind
(Id
) = E_Package
);
2241 function Lit_Indexes
(Id
: E
) return E
is
2243 pragma Assert
(Is_Enumeration_Type
(Id
));
2247 function Lit_Strings
(Id
: E
) return E
is
2249 pragma Assert
(Is_Enumeration_Type
(Id
));
2253 function Low_Bound_Tested
(Id
: E
) return B
is
2255 return Flag205
(Id
);
2256 end Low_Bound_Tested
;
2258 function Machine_Radix_10
(Id
: E
) return B
is
2260 pragma Assert
(Is_Decimal_Fixed_Point_Type
(Id
));
2262 end Machine_Radix_10
;
2264 function Master_Id
(Id
: E
) return E
is
2266 pragma Assert
(Is_Access_Type
(Id
));
2270 function Materialize_Entity
(Id
: E
) return B
is
2272 return Flag168
(Id
);
2273 end Materialize_Entity
;
2275 function Mechanism
(Id
: E
) return M
is
2277 pragma Assert
(Ekind
(Id
) = E_Function
or else Is_Formal
(Id
));
2278 return UI_To_Int
(Uint8
(Id
));
2281 function Modulus
(Id
: E
) return Uint
is
2283 pragma Assert
(Is_Modular_Integer_Type
(Id
));
2284 return Uint17
(Base_Type
(Id
));
2287 function Must_Be_On_Byte_Boundary
(Id
: E
) return B
is
2289 pragma Assert
(Is_Type
(Id
));
2290 return Flag183
(Id
);
2291 end Must_Be_On_Byte_Boundary
;
2293 function Must_Have_Preelab_Init
(Id
: E
) return B
is
2295 pragma Assert
(Is_Type
(Id
));
2296 return Flag208
(Id
);
2297 end Must_Have_Preelab_Init
;
2299 function Needs_Debug_Info
(Id
: E
) return B
is
2301 return Flag147
(Id
);
2302 end Needs_Debug_Info
;
2304 function Needs_No_Actuals
(Id
: E
) return B
is
2307 (Is_Overloadable
(Id
)
2308 or else Ekind_In
(Id
, E_Subprogram_Type
, E_Entry_Family
));
2310 end Needs_No_Actuals
;
2312 function Never_Set_In_Source
(Id
: E
) return B
is
2314 return Flag115
(Id
);
2315 end Never_Set_In_Source
;
2317 function Next_Inlined_Subprogram
(Id
: E
) return E
is
2320 end Next_Inlined_Subprogram
;
2322 function No_Pool_Assigned
(Id
: E
) return B
is
2324 pragma Assert
(Is_Access_Type
(Id
));
2325 return Flag131
(Root_Type
(Id
));
2326 end No_Pool_Assigned
;
2328 function No_Return
(Id
: E
) return B
is
2330 return Flag113
(Id
);
2333 function No_Strict_Aliasing
(Id
: E
) return B
is
2335 pragma Assert
(Is_Access_Type
(Id
));
2336 return Flag136
(Base_Type
(Id
));
2337 end No_Strict_Aliasing
;
2339 function Non_Binary_Modulus
(Id
: E
) return B
is
2341 pragma Assert
(Is_Type
(Id
));
2342 return Flag58
(Base_Type
(Id
));
2343 end Non_Binary_Modulus
;
2345 function Non_Limited_View
(Id
: E
) return E
is
2347 pragma Assert
(Ekind
(Id
) in Incomplete_Kind
);
2349 end Non_Limited_View
;
2351 function Nonzero_Is_True
(Id
: E
) return B
is
2353 pragma Assert
(Root_Type
(Id
) = Standard_Boolean
);
2354 return Flag162
(Base_Type
(Id
));
2355 end Nonzero_Is_True
;
2357 function Normalized_First_Bit
(Id
: E
) return U
is
2359 pragma Assert
(Ekind_In
(Id
, E_Component
, E_Discriminant
));
2361 end Normalized_First_Bit
;
2363 function Normalized_Position
(Id
: E
) return U
is
2365 pragma Assert
(Ekind_In
(Id
, E_Component
, E_Discriminant
));
2367 end Normalized_Position
;
2369 function Normalized_Position_Max
(Id
: E
) return U
is
2371 pragma Assert
(Ekind_In
(Id
, E_Component
, E_Discriminant
));
2373 end Normalized_Position_Max
;
2375 function OK_To_Rename
(Id
: E
) return B
is
2377 pragma Assert
(Ekind
(Id
) = E_Variable
);
2378 return Flag247
(Id
);
2381 function OK_To_Reorder_Components
(Id
: E
) return B
is
2383 pragma Assert
(Is_Record_Type
(Id
));
2384 return Flag239
(Base_Type
(Id
));
2385 end OK_To_Reorder_Components
;
2387 function Optimize_Alignment_Space
(Id
: E
) return B
is
2390 (Is_Type
(Id
) or else Ekind_In
(Id
, E_Constant
, E_Variable
));
2391 return Flag241
(Id
);
2392 end Optimize_Alignment_Space
;
2394 function Optimize_Alignment_Time
(Id
: E
) return B
is
2397 (Is_Type
(Id
) or else Ekind_In
(Id
, E_Constant
, E_Variable
));
2398 return Flag242
(Id
);
2399 end Optimize_Alignment_Time
;
2401 function Original_Access_Type
(Id
: E
) return E
is
2403 pragma Assert
(Ekind
(Id
) = E_Access_Subprogram_Type
);
2405 end Original_Access_Type
;
2407 function Original_Array_Type
(Id
: E
) return E
is
2409 pragma Assert
(Is_Array_Type
(Id
) or else Is_Modular_Integer_Type
(Id
));
2411 end Original_Array_Type
;
2413 function Original_Record_Component
(Id
: E
) return E
is
2415 pragma Assert
(Ekind_In
(Id
, E_Void
, E_Component
, E_Discriminant
));
2417 end Original_Record_Component
;
2419 function Overlays_Constant
(Id
: E
) return B
is
2421 return Flag243
(Id
);
2422 end Overlays_Constant
;
2424 function Overridden_Operation
(Id
: E
) return E
is
2427 end Overridden_Operation
;
2429 function Package_Instantiation
(Id
: E
) return N
is
2431 pragma Assert
(Ekind_In
(Id
, E_Package
, E_Generic_Package
));
2433 end Package_Instantiation
;
2435 function Packed_Array_Type
(Id
: E
) return E
is
2437 pragma Assert
(Is_Array_Type
(Id
));
2439 end Packed_Array_Type
;
2441 function Parent_Subtype
(Id
: E
) return E
is
2443 pragma Assert
(Is_Record_Type
(Id
));
2444 return Node19
(Base_Type
(Id
));
2447 function Postcondition_Proc
(Id
: E
) return E
is
2449 pragma Assert
(Ekind
(Id
) = E_Procedure
);
2451 end Postcondition_Proc
;
2453 function PPC_Wrapper
(Id
: E
) return E
is
2455 pragma Assert
(Ekind_In
(Id
, E_Entry
, E_Entry_Family
));
2459 function Prival
(Id
: E
) return E
is
2461 pragma Assert
(Is_Protected_Component
(Id
));
2465 function Prival_Link
(Id
: E
) return E
is
2467 pragma Assert
(Ekind_In
(Id
, E_Constant
, E_Variable
));
2471 function Private_Dependents
(Id
: E
) return L
is
2473 pragma Assert
(Is_Incomplete_Or_Private_Type
(Id
));
2474 return Elist18
(Id
);
2475 end Private_Dependents
;
2477 function Private_View
(Id
: E
) return N
is
2479 pragma Assert
(Is_Private_Type
(Id
));
2483 function Protected_Body_Subprogram
(Id
: E
) return E
is
2485 pragma Assert
(Is_Subprogram
(Id
) or else Is_Entry
(Id
));
2487 end Protected_Body_Subprogram
;
2489 function Protected_Formal
(Id
: E
) return E
is
2491 pragma Assert
(Is_Formal
(Id
));
2493 end Protected_Formal
;
2495 function Protection_Object
(Id
: E
) return E
is
2498 (Ekind_In
(Id
, E_Entry
, E_Entry_Family
, E_Function
, E_Procedure
));
2500 end Protection_Object
;
2502 function Reachable
(Id
: E
) return B
is
2507 function Referenced
(Id
: E
) return B
is
2509 return Flag156
(Id
);
2512 function Referenced_As_LHS
(Id
: E
) return B
is
2515 end Referenced_As_LHS
;
2517 function Referenced_As_Out_Parameter
(Id
: E
) return B
is
2519 return Flag227
(Id
);
2520 end Referenced_As_Out_Parameter
;
2522 function Register_Exception_Call
(Id
: E
) return N
is
2524 pragma Assert
(Ekind
(Id
) = E_Exception
);
2526 end Register_Exception_Call
;
2528 function Related_Array_Object
(Id
: E
) return E
is
2530 pragma Assert
(Is_Array_Type
(Id
));
2532 end Related_Array_Object
;
2534 function Related_Expression
(Id
: E
) return N
is
2536 pragma Assert
(Ekind
(Id
) in Type_Kind
2537 or else Ekind_In
(Id
, E_Constant
, E_Variable
));
2539 end Related_Expression
;
2541 function Related_Instance
(Id
: E
) return E
is
2543 pragma Assert
(Ekind_In
(Id
, E_Package
, E_Package_Body
));
2545 end Related_Instance
;
2547 function Related_Type
(Id
: E
) return E
is
2549 pragma Assert
(Ekind_In
(Id
, E_Component
, E_Constant
, E_Variable
));
2553 function Relative_Deadline_Variable
(Id
: E
) return E
is
2555 pragma Assert
(Is_Task_Type
(Id
));
2556 return Node26
(Implementation_Base_Type
(Id
));
2557 end Relative_Deadline_Variable
;
2559 function Renamed_Entity
(Id
: E
) return N
is
2564 function Renamed_In_Spec
(Id
: E
) return B
is
2566 pragma Assert
(Ekind
(Id
) = E_Package
);
2567 return Flag231
(Id
);
2568 end Renamed_In_Spec
;
2570 function Renamed_Object
(Id
: E
) return N
is
2575 function Renaming_Map
(Id
: E
) return U
is
2580 function Requires_Overriding
(Id
: E
) return B
is
2582 pragma Assert
(Is_Overloadable
(Id
));
2583 return Flag213
(Id
);
2584 end Requires_Overriding
;
2586 function Return_Flag_Or_Transient_Decl
(Id
: E
) return N
is
2588 pragma Assert
(Ekind_In
(Id
, E_Constant
, E_Variable
));
2590 end Return_Flag_Or_Transient_Decl
;
2592 function Return_Present
(Id
: E
) return B
is
2597 function Return_Applies_To
(Id
: E
) return N
is
2600 end Return_Applies_To
;
2602 function Returns_By_Ref
(Id
: E
) return B
is
2607 function Reverse_Bit_Order
(Id
: E
) return B
is
2609 pragma Assert
(Is_Record_Type
(Id
));
2610 return Flag164
(Base_Type
(Id
));
2611 end Reverse_Bit_Order
;
2613 function RM_Size
(Id
: E
) return U
is
2615 pragma Assert
(Is_Type
(Id
));
2619 function Scalar_Range
(Id
: E
) return N
is
2624 function Scale_Value
(Id
: E
) return U
is
2629 function Scope_Depth_Value
(Id
: E
) return U
is
2632 end Scope_Depth_Value
;
2634 function Sec_Stack_Needed_For_Return
(Id
: E
) return B
is
2636 return Flag167
(Id
);
2637 end Sec_Stack_Needed_For_Return
;
2639 function Shadow_Entities
(Id
: E
) return S
is
2641 pragma Assert
(Ekind_In
(Id
, E_Package
, E_Generic_Package
));
2643 end Shadow_Entities
;
2645 function Shared_Var_Procs_Instance
(Id
: E
) return E
is
2647 pragma Assert
(Ekind
(Id
) = E_Variable
);
2649 end Shared_Var_Procs_Instance
;
2651 function Size_Check_Code
(Id
: E
) return N
is
2653 pragma Assert
(Ekind_In
(Id
, E_Constant
, E_Variable
));
2655 end Size_Check_Code
;
2657 function Size_Depends_On_Discriminant
(Id
: E
) return B
is
2659 return Flag177
(Id
);
2660 end Size_Depends_On_Discriminant
;
2662 function Size_Known_At_Compile_Time
(Id
: E
) return B
is
2665 end Size_Known_At_Compile_Time
;
2667 function Small_Value
(Id
: E
) return R
is
2669 pragma Assert
(Is_Fixed_Point_Type
(Id
));
2670 return Ureal21
(Id
);
2673 function Spec_Entity
(Id
: E
) return E
is
2675 pragma Assert
(Ekind
(Id
) = E_Package_Body
or else Is_Formal
(Id
));
2679 function Static_Predicate
(Id
: E
) return S
is
2681 pragma Assert
(Is_Discrete_Type
(Id
));
2683 end Static_Predicate
;
2685 function Storage_Size_Variable
(Id
: E
) return E
is
2687 pragma Assert
(Is_Access_Type
(Id
) or else Is_Task_Type
(Id
));
2688 return Node15
(Implementation_Base_Type
(Id
));
2689 end Storage_Size_Variable
;
2691 function Static_Elaboration_Desired
(Id
: E
) return B
is
2693 pragma Assert
(Ekind
(Id
) = E_Package
);
2695 end Static_Elaboration_Desired
;
2697 function Static_Initialization
(Id
: E
) return N
is
2700 (Ekind
(Id
) = E_Procedure
and then not Is_Dispatching_Operation
(Id
));
2702 end Static_Initialization
;
2704 function Stored_Constraint
(Id
: E
) return L
is
2707 (Is_Composite_Type
(Id
) and then not Is_Array_Type
(Id
));
2708 return Elist23
(Id
);
2709 end Stored_Constraint
;
2711 function Strict_Alignment
(Id
: E
) return B
is
2713 return Flag145
(Implementation_Base_Type
(Id
));
2714 end Strict_Alignment
;
2716 function String_Literal_Length
(Id
: E
) return U
is
2719 end String_Literal_Length
;
2721 function String_Literal_Low_Bound
(Id
: E
) return N
is
2724 end String_Literal_Low_Bound
;
2726 function Subprograms_For_Type
(Id
: E
) return E
is
2728 pragma Assert
(Is_Type
(Id
) or else Is_Subprogram
(Id
));
2730 end Subprograms_For_Type
;
2732 function Suppress_Elaboration_Warnings
(Id
: E
) return B
is
2734 return Flag148
(Id
);
2735 end Suppress_Elaboration_Warnings
;
2737 function Suppress_Initialization
(Id
: E
) return B
is
2739 pragma Assert
(Is_Type
(Id
));
2740 return Flag105
(Id
);
2741 end Suppress_Initialization
;
2743 function Suppress_Style_Checks
(Id
: E
) return B
is
2745 return Flag165
(Id
);
2746 end Suppress_Style_Checks
;
2748 function Suppress_Value_Tracking_On_Call
(Id
: E
) return B
is
2750 return Flag217
(Id
);
2751 end Suppress_Value_Tracking_On_Call
;
2753 function Task_Body_Procedure
(Id
: E
) return N
is
2755 pragma Assert
(Ekind
(Id
) in Task_Kind
);
2757 end Task_Body_Procedure
;
2759 function Treat_As_Volatile
(Id
: E
) return B
is
2762 end Treat_As_Volatile
;
2764 function Underlying_Full_View
(Id
: E
) return E
is
2766 pragma Assert
(Ekind
(Id
) in Private_Kind
);
2768 end Underlying_Full_View
;
2770 function Underlying_Record_View
(Id
: E
) return E
is
2773 end Underlying_Record_View
;
2775 function Universal_Aliasing
(Id
: E
) return B
is
2777 pragma Assert
(Is_Type
(Id
));
2778 return Flag216
(Base_Type
(Id
));
2779 end Universal_Aliasing
;
2781 function Unset_Reference
(Id
: E
) return N
is
2784 end Unset_Reference
;
2786 function Used_As_Generic_Actual
(Id
: E
) return B
is
2788 return Flag222
(Id
);
2789 end Used_As_Generic_Actual
;
2791 function Uses_Sec_Stack
(Id
: E
) return B
is
2796 function Warnings_Off
(Id
: E
) return B
is
2801 function Warnings_Off_Used
(Id
: E
) return B
is
2803 return Flag236
(Id
);
2804 end Warnings_Off_Used
;
2806 function Warnings_Off_Used_Unmodified
(Id
: E
) return B
is
2808 return Flag237
(Id
);
2809 end Warnings_Off_Used_Unmodified
;
2811 function Warnings_Off_Used_Unreferenced
(Id
: E
) return B
is
2813 return Flag238
(Id
);
2814 end Warnings_Off_Used_Unreferenced
;
2816 function Wrapped_Entity
(Id
: E
) return E
is
2818 pragma Assert
(Ekind_In
(Id
, E_Function
, E_Procedure
)
2819 and then Is_Primitive_Wrapper
(Id
));
2823 function Was_Hidden
(Id
: E
) return B
is
2825 return Flag196
(Id
);
2828 ------------------------------
2829 -- Classification Functions --
2830 ------------------------------
2832 function Is_Access_Type
(Id
: E
) return B
is
2834 return Ekind
(Id
) in Access_Kind
;
2837 function Is_Access_Protected_Subprogram_Type
(Id
: E
) return B
is
2839 return Ekind
(Id
) in Access_Protected_Kind
;
2840 end Is_Access_Protected_Subprogram_Type
;
2842 function Is_Access_Subprogram_Type
(Id
: E
) return B
is
2844 return Ekind
(Id
) in Access_Subprogram_Kind
;
2845 end Is_Access_Subprogram_Type
;
2847 function Is_Aggregate_Type
(Id
: E
) return B
is
2849 return Ekind
(Id
) in Aggregate_Kind
;
2850 end Is_Aggregate_Type
;
2852 function Is_Array_Type
(Id
: E
) return B
is
2854 return Ekind
(Id
) in Array_Kind
;
2857 function Is_Assignable
(Id
: E
) return B
is
2859 return Ekind
(Id
) in Assignable_Kind
;
2862 function Is_Class_Wide_Type
(Id
: E
) return B
is
2864 return Ekind
(Id
) in Class_Wide_Kind
;
2865 end Is_Class_Wide_Type
;
2867 function Is_Composite_Type
(Id
: E
) return B
is
2869 return Ekind
(Id
) in Composite_Kind
;
2870 end Is_Composite_Type
;
2872 function Is_Concurrent_Body
(Id
: E
) return B
is
2874 return Ekind
(Id
) in
2875 Concurrent_Body_Kind
;
2876 end Is_Concurrent_Body
;
2878 function Is_Concurrent_Record_Type
(Id
: E
) return B
is
2881 end Is_Concurrent_Record_Type
;
2883 function Is_Concurrent_Type
(Id
: E
) return B
is
2885 return Ekind
(Id
) in Concurrent_Kind
;
2886 end Is_Concurrent_Type
;
2888 function Is_Decimal_Fixed_Point_Type
(Id
: E
) return B
is
2890 return Ekind
(Id
) in
2891 Decimal_Fixed_Point_Kind
;
2892 end Is_Decimal_Fixed_Point_Type
;
2894 function Is_Digits_Type
(Id
: E
) return B
is
2896 return Ekind
(Id
) in Digits_Kind
;
2899 function Is_Discrete_Or_Fixed_Point_Type
(Id
: E
) return B
is
2901 return Ekind
(Id
) in Discrete_Or_Fixed_Point_Kind
;
2902 end Is_Discrete_Or_Fixed_Point_Type
;
2904 function Is_Discrete_Type
(Id
: E
) return B
is
2906 return Ekind
(Id
) in Discrete_Kind
;
2907 end Is_Discrete_Type
;
2909 function Is_Elementary_Type
(Id
: E
) return B
is
2911 return Ekind
(Id
) in Elementary_Kind
;
2912 end Is_Elementary_Type
;
2914 function Is_Entry
(Id
: E
) return B
is
2916 return Ekind
(Id
) in Entry_Kind
;
2919 function Is_Enumeration_Type
(Id
: E
) return B
is
2921 return Ekind
(Id
) in
2923 end Is_Enumeration_Type
;
2925 function Is_Fixed_Point_Type
(Id
: E
) return B
is
2927 return Ekind
(Id
) in
2929 end Is_Fixed_Point_Type
;
2931 function Is_Floating_Point_Type
(Id
: E
) return B
is
2933 return Ekind
(Id
) in Float_Kind
;
2934 end Is_Floating_Point_Type
;
2936 function Is_Formal
(Id
: E
) return B
is
2938 return Ekind
(Id
) in Formal_Kind
;
2941 function Is_Formal_Object
(Id
: E
) return B
is
2943 return Ekind
(Id
) in Formal_Object_Kind
;
2944 end Is_Formal_Object
;
2946 function Is_Generic_Subprogram
(Id
: E
) return B
is
2948 return Ekind
(Id
) in Generic_Subprogram_Kind
;
2949 end Is_Generic_Subprogram
;
2951 function Is_Generic_Unit
(Id
: E
) return B
is
2953 return Ekind
(Id
) in Generic_Unit_Kind
;
2954 end Is_Generic_Unit
;
2956 function Is_Incomplete_Or_Private_Type
(Id
: E
) return B
is
2958 return Ekind
(Id
) in
2959 Incomplete_Or_Private_Kind
;
2960 end Is_Incomplete_Or_Private_Type
;
2962 function Is_Incomplete_Type
(Id
: E
) return B
is
2964 return Ekind
(Id
) in
2966 end Is_Incomplete_Type
;
2968 function Is_Integer_Type
(Id
: E
) return B
is
2970 return Ekind
(Id
) in Integer_Kind
;
2971 end Is_Integer_Type
;
2973 function Is_Modular_Integer_Type
(Id
: E
) return B
is
2975 return Ekind
(Id
) in
2976 Modular_Integer_Kind
;
2977 end Is_Modular_Integer_Type
;
2979 function Is_Named_Number
(Id
: E
) return B
is
2981 return Ekind
(Id
) in Named_Kind
;
2982 end Is_Named_Number
;
2984 function Is_Numeric_Type
(Id
: E
) return B
is
2986 return Ekind
(Id
) in Numeric_Kind
;
2987 end Is_Numeric_Type
;
2989 function Is_Object
(Id
: E
) return B
is
2991 return Ekind
(Id
) in Object_Kind
;
2994 function Is_Ordinary_Fixed_Point_Type
(Id
: E
) return B
is
2996 return Ekind
(Id
) in
2997 Ordinary_Fixed_Point_Kind
;
2998 end Is_Ordinary_Fixed_Point_Type
;
3000 function Is_Overloadable
(Id
: E
) return B
is
3002 return Ekind
(Id
) in Overloadable_Kind
;
3003 end Is_Overloadable
;
3005 function Is_Private_Type
(Id
: E
) return B
is
3007 return Ekind
(Id
) in Private_Kind
;
3008 end Is_Private_Type
;
3010 function Is_Protected_Type
(Id
: E
) return B
is
3012 return Ekind
(Id
) in Protected_Kind
;
3013 end Is_Protected_Type
;
3015 function Is_Real_Type
(Id
: E
) return B
is
3017 return Ekind
(Id
) in Real_Kind
;
3020 function Is_Record_Type
(Id
: E
) return B
is
3022 return Ekind
(Id
) in Record_Kind
;
3025 function Is_Scalar_Type
(Id
: E
) return B
is
3027 return Ekind
(Id
) in Scalar_Kind
;
3030 function Is_Signed_Integer_Type
(Id
: E
) return B
is
3032 return Ekind
(Id
) in Signed_Integer_Kind
;
3033 end Is_Signed_Integer_Type
;
3035 function Is_Subprogram
(Id
: E
) return B
is
3037 return Ekind
(Id
) in Subprogram_Kind
;
3040 function Is_Task_Type
(Id
: E
) return B
is
3042 return Ekind
(Id
) in Task_Kind
;
3045 function Is_Type
(Id
: E
) return B
is
3047 return Ekind
(Id
) in Type_Kind
;
3050 ------------------------------
3051 -- Attribute Set Procedures --
3052 ------------------------------
3054 -- Note: in many of these set procedures an "obvious" assertion is missing.
3055 -- The reason for this is that in many cases, a field is set before the
3056 -- Ekind field is set, so that the field is set when Ekind = E_Void. It
3057 -- it is possible to add assertions that specifically include the E_Void
3058 -- possibility, but in some cases, we just omit the assertions.
3060 procedure Set_Accept_Address
(Id
: E
; V
: L
) is
3062 Set_Elist21
(Id
, V
);
3063 end Set_Accept_Address
;
3065 procedure Set_Access_Disp_Table
(Id
: E
; V
: L
) is
3067 pragma Assert
(Ekind
(Id
) = E_Record_Type
3068 and then Id
= Implementation_Base_Type
(Id
));
3069 pragma Assert
(V
= No_Elist
or else Is_Tagged_Type
(Id
));
3070 Set_Elist16
(Id
, V
);
3071 end Set_Access_Disp_Table
;
3073 procedure Set_Associated_Formal_Package
(Id
: E
; V
: E
) is
3076 end Set_Associated_Formal_Package
;
3078 procedure Set_Associated_Node_For_Itype
(Id
: E
; V
: E
) is
3081 end Set_Associated_Node_For_Itype
;
3083 procedure Set_Associated_Storage_Pool
(Id
: E
; V
: E
) is
3085 pragma Assert
(Is_Access_Type
(Id
) and then Is_Base_Type
(Id
));
3087 end Set_Associated_Storage_Pool
;
3089 procedure Set_Actual_Subtype
(Id
: E
; V
: E
) is
3092 (Ekind_In
(Id
, E_Constant
, E_Variable
, E_Generic_In_Out_Parameter
)
3093 or else Is_Formal
(Id
));
3095 end Set_Actual_Subtype
;
3097 procedure Set_Address_Taken
(Id
: E
; V
: B
:= True) is
3099 Set_Flag104
(Id
, V
);
3100 end Set_Address_Taken
;
3102 procedure Set_Alias
(Id
: E
; V
: E
) is
3105 (Is_Overloadable
(Id
) or else Ekind
(Id
) = E_Subprogram_Type
);
3109 procedure Set_Alignment
(Id
: E
; V
: U
) is
3111 pragma Assert
(Is_Type
(Id
)
3112 or else Is_Formal
(Id
)
3113 or else Ekind_In
(Id
, E_Loop_Parameter
,
3120 procedure Set_Barrier_Function
(Id
: E
; V
: N
) is
3122 pragma Assert
(Is_Entry
(Id
));
3124 end Set_Barrier_Function
;
3126 procedure Set_Block_Node
(Id
: E
; V
: N
) is
3128 pragma Assert
(Ekind
(Id
) = E_Block
);
3132 procedure Set_Body_Entity
(Id
: E
; V
: E
) is
3134 pragma Assert
(Ekind_In
(Id
, E_Package
, E_Generic_Package
));
3136 end Set_Body_Entity
;
3138 procedure Set_Body_Needed_For_SAL
(Id
: E
; V
: B
:= True) is
3141 (Ekind
(Id
) = E_Package
3142 or else Is_Subprogram
(Id
)
3143 or else Is_Generic_Unit
(Id
));
3145 end Set_Body_Needed_For_SAL
;
3147 procedure Set_C_Pass_By_Copy
(Id
: E
; V
: B
:= True) is
3149 pragma Assert
(Is_Record_Type
(Id
) and then Is_Base_Type
(Id
));
3150 Set_Flag125
(Id
, V
);
3151 end Set_C_Pass_By_Copy
;
3153 procedure Set_Can_Never_Be_Null
(Id
: E
; V
: B
:= True) is
3156 end Set_Can_Never_Be_Null
;
3158 procedure Set_Checks_May_Be_Suppressed
(Id
: E
; V
: B
:= True) is
3161 end Set_Checks_May_Be_Suppressed
;
3163 procedure Set_Class_Wide_Type
(Id
: E
; V
: E
) is
3165 pragma Assert
(Is_Type
(Id
));
3167 end Set_Class_Wide_Type
;
3169 procedure Set_Cloned_Subtype
(Id
: E
; V
: E
) is
3171 pragma Assert
(Ekind_In
(Id
, E_Record_Subtype
, E_Class_Wide_Subtype
));
3173 end Set_Cloned_Subtype
;
3175 procedure Set_Component_Bit_Offset
(Id
: E
; V
: U
) is
3177 pragma Assert
(Ekind_In
(Id
, E_Component
, E_Discriminant
));
3179 end Set_Component_Bit_Offset
;
3181 procedure Set_Component_Clause
(Id
: E
; V
: N
) is
3183 pragma Assert
(Ekind_In
(Id
, E_Component
, E_Discriminant
));
3185 end Set_Component_Clause
;
3187 procedure Set_Component_Size
(Id
: E
; V
: U
) is
3189 pragma Assert
(Is_Array_Type
(Id
) and then Is_Base_Type
(Id
));
3191 end Set_Component_Size
;
3193 procedure Set_Component_Type
(Id
: E
; V
: E
) is
3195 pragma Assert
(Is_Array_Type
(Id
) and then Is_Base_Type
(Id
));
3197 end Set_Component_Type
;
3199 procedure Set_Corresponding_Concurrent_Type
(Id
: E
; V
: E
) is
3202 (Ekind
(Id
) = E_Record_Type
and then Is_Concurrent_Type
(V
));
3204 end Set_Corresponding_Concurrent_Type
;
3206 procedure Set_Corresponding_Discriminant
(Id
: E
; V
: E
) is
3208 pragma Assert
(Ekind
(Id
) = E_Discriminant
);
3210 end Set_Corresponding_Discriminant
;
3212 procedure Set_Corresponding_Equality
(Id
: E
; V
: E
) is
3215 (Ekind
(Id
) = E_Function
3216 and then not Comes_From_Source
(Id
)
3217 and then Chars
(Id
) = Name_Op_Ne
);
3219 end Set_Corresponding_Equality
;
3221 procedure Set_Corresponding_Protected_Entry
(Id
: E
; V
: E
) is
3223 pragma Assert
(Ekind_In
(Id
, E_Void
, E_Subprogram_Body
));
3225 end Set_Corresponding_Protected_Entry
;
3227 procedure Set_Corresponding_Record_Type
(Id
: E
; V
: E
) is
3229 pragma Assert
(Is_Concurrent_Type
(Id
));
3231 end Set_Corresponding_Record_Type
;
3233 procedure Set_Corresponding_Remote_Type
(Id
: E
; V
: E
) is
3236 end Set_Corresponding_Remote_Type
;
3238 procedure Set_Current_Use_Clause
(Id
: E
; V
: E
) is
3240 pragma Assert
(Ekind
(Id
) = E_Package
or else Is_Type
(Id
));
3242 end Set_Current_Use_Clause
;
3244 procedure Set_Current_Value
(Id
: E
; V
: N
) is
3246 pragma Assert
(Ekind
(Id
) in Object_Kind
or else Ekind
(Id
) = E_Void
);
3248 end Set_Current_Value
;
3250 procedure Set_CR_Discriminant
(Id
: E
; V
: E
) is
3253 end Set_CR_Discriminant
;
3255 procedure Set_Debug_Info_Off
(Id
: E
; V
: B
:= True) is
3257 Set_Flag166
(Id
, V
);
3258 end Set_Debug_Info_Off
;
3260 procedure Set_Debug_Renaming_Link
(Id
: E
; V
: E
) is
3263 end Set_Debug_Renaming_Link
;
3265 procedure Set_Default_Expr_Function
(Id
: E
; V
: E
) is
3267 pragma Assert
(Is_Formal
(Id
));
3269 end Set_Default_Expr_Function
;
3271 procedure Set_Default_Expressions_Processed
(Id
: E
; V
: B
:= True) is
3273 Set_Flag108
(Id
, V
);
3274 end Set_Default_Expressions_Processed
;
3276 procedure Set_Default_Value
(Id
: E
; V
: N
) is
3278 pragma Assert
(Is_Formal
(Id
));
3280 end Set_Default_Value
;
3282 procedure Set_Delay_Cleanups
(Id
: E
; V
: B
:= True) is
3286 or else Is_Task_Type
(Id
)
3287 or else Ekind
(Id
) = E_Block
);
3288 Set_Flag114
(Id
, V
);
3289 end Set_Delay_Cleanups
;
3291 procedure Set_Delay_Subprogram_Descriptors
(Id
: E
; V
: B
:= True) is
3294 (Is_Subprogram
(Id
) or else Ekind_In
(Id
, E_Package
, E_Package_Body
));
3297 end Set_Delay_Subprogram_Descriptors
;
3299 procedure Set_Delta_Value
(Id
: E
; V
: R
) is
3301 pragma Assert
(Is_Fixed_Point_Type
(Id
));
3302 Set_Ureal18
(Id
, V
);
3303 end Set_Delta_Value
;
3305 procedure Set_Dependent_Instances
(Id
: E
; V
: L
) is
3307 pragma Assert
(Is_Generic_Instance
(Id
));
3309 end Set_Dependent_Instances
;
3311 procedure Set_Depends_On_Private
(Id
: E
; V
: B
:= True) is
3313 pragma Assert
(Nkind
(Id
) in N_Entity
);
3315 end Set_Depends_On_Private
;
3317 procedure Set_Digits_Value
(Id
: E
; V
: U
) is
3320 (Is_Floating_Point_Type
(Id
)
3321 or else Is_Decimal_Fixed_Point_Type
(Id
));
3323 end Set_Digits_Value
;
3325 procedure Set_Directly_Designated_Type
(Id
: E
; V
: E
) is
3328 end Set_Directly_Designated_Type
;
3330 procedure Set_Discard_Names
(Id
: E
; V
: B
:= True) is
3333 end Set_Discard_Names
;
3335 procedure Set_Discriminal
(Id
: E
; V
: E
) is
3337 pragma Assert
(Ekind
(Id
) = E_Discriminant
);
3339 end Set_Discriminal
;
3341 procedure Set_Discriminal_Link
(Id
: E
; V
: E
) is
3344 end Set_Discriminal_Link
;
3346 procedure Set_Discriminant_Checking_Func
(Id
: E
; V
: E
) is
3348 pragma Assert
(Ekind
(Id
) = E_Component
);
3350 end Set_Discriminant_Checking_Func
;
3352 procedure Set_Discriminant_Constraint
(Id
: E
; V
: L
) is
3354 pragma Assert
(Nkind
(Id
) in N_Entity
);
3355 Set_Elist21
(Id
, V
);
3356 end Set_Discriminant_Constraint
;
3358 procedure Set_Discriminant_Default_Value
(Id
: E
; V
: N
) is
3361 end Set_Discriminant_Default_Value
;
3363 procedure Set_Discriminant_Number
(Id
: E
; V
: U
) is
3366 end Set_Discriminant_Number
;
3368 procedure Set_Dispatch_Table_Wrappers
(Id
: E
; V
: L
) is
3370 pragma Assert
(Ekind
(Id
) = E_Record_Type
3371 and then Id
= Implementation_Base_Type
(Id
));
3372 pragma Assert
(V
= No_Elist
or else Is_Tagged_Type
(Id
));
3373 Set_Elist26
(Id
, V
);
3374 end Set_Dispatch_Table_Wrappers
;
3376 procedure Set_DT_Entry_Count
(Id
: E
; V
: U
) is
3378 pragma Assert
(Ekind
(Id
) = E_Component
);
3380 end Set_DT_Entry_Count
;
3382 procedure Set_DT_Offset_To_Top_Func
(Id
: E
; V
: E
) is
3384 pragma Assert
(Ekind
(Id
) = E_Component
and then Is_Tag
(Id
));
3386 end Set_DT_Offset_To_Top_Func
;
3388 procedure Set_DT_Position
(Id
: E
; V
: U
) is
3390 pragma Assert
(Ekind_In
(Id
, E_Function
, E_Procedure
));
3392 end Set_DT_Position
;
3394 procedure Set_DTC_Entity
(Id
: E
; V
: E
) is
3396 pragma Assert
(Ekind_In
(Id
, E_Function
, E_Procedure
));
3400 procedure Set_Elaborate_Body_Desirable
(Id
: E
; V
: B
:= True) is
3402 pragma Assert
(Ekind
(Id
) = E_Package
);
3403 Set_Flag210
(Id
, V
);
3404 end Set_Elaborate_Body_Desirable
;
3406 procedure Set_Elaboration_Entity
(Id
: E
; V
: E
) is
3411 Ekind
(Id
) = E_Package
3413 Is_Generic_Unit
(Id
));
3415 end Set_Elaboration_Entity
;
3417 procedure Set_Elaboration_Entity_Required
(Id
: E
; V
: B
:= True) is
3422 Ekind
(Id
) = E_Package
3424 Is_Generic_Unit
(Id
));
3425 Set_Flag174
(Id
, V
);
3426 end Set_Elaboration_Entity_Required
;
3428 procedure Set_Enclosing_Scope
(Id
: E
; V
: E
) is
3431 end Set_Enclosing_Scope
;
3433 procedure Set_Entry_Accepted
(Id
: E
; V
: B
:= True) is
3435 pragma Assert
(Is_Entry
(Id
));
3436 Set_Flag152
(Id
, V
);
3437 end Set_Entry_Accepted
;
3439 procedure Set_Entry_Bodies_Array
(Id
: E
; V
: E
) is
3442 end Set_Entry_Bodies_Array
;
3444 procedure Set_Entry_Cancel_Parameter
(Id
: E
; V
: E
) is
3447 end Set_Entry_Cancel_Parameter
;
3449 procedure Set_Entry_Component
(Id
: E
; V
: E
) is
3452 end Set_Entry_Component
;
3454 procedure Set_Entry_Formal
(Id
: E
; V
: E
) is
3457 end Set_Entry_Formal
;
3459 procedure Set_Entry_Index_Constant
(Id
: E
; V
: E
) is
3461 pragma Assert
(Ekind
(Id
) = E_Entry_Index_Parameter
);
3463 end Set_Entry_Index_Constant
;
3465 procedure Set_Contract
(Id
: E
; V
: N
) is
3468 (Ekind_In
(Id
, E_Entry
, E_Entry_Family
, E_Void
)
3469 or else Is_Subprogram
(Id
)
3470 or else Is_Generic_Subprogram
(Id
));
3474 procedure Set_Entry_Parameters_Type
(Id
: E
; V
: E
) is
3477 end Set_Entry_Parameters_Type
;
3479 procedure Set_Enum_Pos_To_Rep
(Id
: E
; V
: E
) is
3481 pragma Assert
(Ekind
(Id
) = E_Enumeration_Type
);
3483 end Set_Enum_Pos_To_Rep
;
3485 procedure Set_Enumeration_Pos
(Id
: E
; V
: U
) is
3487 pragma Assert
(Ekind
(Id
) = E_Enumeration_Literal
);
3489 end Set_Enumeration_Pos
;
3491 procedure Set_Enumeration_Rep
(Id
: E
; V
: U
) is
3493 pragma Assert
(Ekind
(Id
) = E_Enumeration_Literal
);
3495 end Set_Enumeration_Rep
;
3497 procedure Set_Enumeration_Rep_Expr
(Id
: E
; V
: N
) is
3499 pragma Assert
(Ekind
(Id
) = E_Enumeration_Literal
);
3501 end Set_Enumeration_Rep_Expr
;
3503 procedure Set_Equivalent_Type
(Id
: E
; V
: E
) is
3506 (Ekind_In
(Id
, E_Class_Wide_Type
,
3507 E_Class_Wide_Subtype
,
3508 E_Access_Protected_Subprogram_Type
,
3509 E_Anonymous_Access_Protected_Subprogram_Type
,
3510 E_Access_Subprogram_Type
,
3513 end Set_Equivalent_Type
;
3515 procedure Set_Esize
(Id
: E
; V
: U
) is
3520 procedure Set_Exception_Code
(Id
: E
; V
: U
) is
3522 pragma Assert
(Ekind
(Id
) = E_Exception
);
3524 end Set_Exception_Code
;
3526 procedure Set_Extra_Accessibility
(Id
: E
; V
: E
) is
3529 (Is_Formal
(Id
) or else Ekind_In
(Id
, E_Variable
, E_Constant
));
3531 end Set_Extra_Accessibility
;
3533 procedure Set_Extra_Accessibility_Of_Result
(Id
: E
; V
: E
) is
3535 pragma Assert
(Ekind_In
(Id
, E_Function
, E_Operator
, E_Subprogram_Type
));
3537 end Set_Extra_Accessibility_Of_Result
;
3539 procedure Set_Extra_Constrained
(Id
: E
; V
: E
) is
3541 pragma Assert
(Is_Formal
(Id
) or else Ekind
(Id
) = E_Variable
);
3543 end Set_Extra_Constrained
;
3545 procedure Set_Extra_Formal
(Id
: E
; V
: E
) is
3548 end Set_Extra_Formal
;
3550 procedure Set_Extra_Formals
(Id
: E
; V
: E
) is
3553 (Is_Overloadable
(Id
)
3554 or else Ekind_In
(Id
, E_Entry_Family
,
3556 E_Subprogram_Type
));
3558 end Set_Extra_Formals
;
3560 procedure Set_Can_Use_Internal_Rep
(Id
: E
; V
: B
:= True) is
3563 (Is_Access_Subprogram_Type
(Id
) and then Is_Base_Type
(Id
));
3564 Set_Flag229
(Id
, V
);
3565 end Set_Can_Use_Internal_Rep
;
3567 procedure Set_Finalization_Master
(Id
: E
; V
: E
) is
3569 pragma Assert
(Is_Access_Type
(Id
) and then Is_Base_Type
(Id
));
3571 end Set_Finalization_Master
;
3573 procedure Set_Finalize_Storage_Only
(Id
: E
; V
: B
:= True) is
3575 pragma Assert
(Is_Type
(Id
) and then Is_Base_Type
(Id
));
3576 Set_Flag158
(Id
, V
);
3577 end Set_Finalize_Storage_Only
;
3579 procedure Set_Finalizer
(Id
: E
; V
: E
) is
3582 (Ekind
(Id
) = E_Package
3583 or else Ekind
(Id
) = E_Package_Body
);
3587 procedure Set_First_Entity
(Id
: E
; V
: E
) is
3590 end Set_First_Entity
;
3592 procedure Set_First_Exit_Statement
(Id
: E
; V
: N
) is
3594 pragma Assert
(Ekind
(Id
) = E_Loop
);
3596 end Set_First_Exit_Statement
;
3598 procedure Set_First_Index
(Id
: E
; V
: N
) is
3600 pragma Assert
(Is_Array_Type
(Id
) or else Is_String_Type
(Id
));
3602 end Set_First_Index
;
3604 procedure Set_First_Literal
(Id
: E
; V
: E
) is
3606 pragma Assert
(Is_Enumeration_Type
(Id
));
3608 end Set_First_Literal
;
3610 procedure Set_First_Optional_Parameter
(Id
: E
; V
: E
) is
3612 pragma Assert
(Ekind_In
(Id
, E_Function
, E_Procedure
));
3614 end Set_First_Optional_Parameter
;
3616 procedure Set_First_Private_Entity
(Id
: E
; V
: E
) is
3618 pragma Assert
(Ekind_In
(Id
, E_Package
, E_Generic_Package
)
3619 or else Ekind
(Id
) in Concurrent_Kind
);
3621 end Set_First_Private_Entity
;
3623 procedure Set_First_Rep_Item
(Id
: E
; V
: N
) is
3626 end Set_First_Rep_Item
;
3628 procedure Set_Float_Rep
(Id
: E
; V
: F
) is
3629 pragma Assert
(Ekind
(Id
) = E_Floating_Point_Type
);
3631 Set_Uint10
(Id
, UI_From_Int
(F
'Pos (V
)));
3634 procedure Set_Freeze_Node
(Id
: E
; V
: N
) is
3637 end Set_Freeze_Node
;
3639 procedure Set_From_With_Type
(Id
: E
; V
: B
:= True) is
3643 or else Ekind
(Id
) = E_Package
);
3644 Set_Flag159
(Id
, V
);
3645 end Set_From_With_Type
;
3647 procedure Set_Full_View
(Id
: E
; V
: E
) is
3649 pragma Assert
(Is_Type
(Id
) or else Ekind
(Id
) = E_Constant
);
3653 procedure Set_Generic_Homonym
(Id
: E
; V
: E
) is
3656 end Set_Generic_Homonym
;
3658 procedure Set_Generic_Renamings
(Id
: E
; V
: L
) is
3660 Set_Elist23
(Id
, V
);
3661 end Set_Generic_Renamings
;
3663 procedure Set_Handler_Records
(Id
: E
; V
: S
) is
3666 end Set_Handler_Records
;
3668 procedure Set_Has_Aliased_Components
(Id
: E
; V
: B
:= True) is
3670 pragma Assert
(Id
= Base_Type
(Id
));
3671 Set_Flag135
(Id
, V
);
3672 end Set_Has_Aliased_Components
;
3674 procedure Set_Has_Alignment_Clause
(Id
: E
; V
: B
:= True) is
3677 end Set_Has_Alignment_Clause
;
3679 procedure Set_Has_All_Calls_Remote
(Id
: E
; V
: B
:= True) is
3682 end Set_Has_All_Calls_Remote
;
3684 procedure Set_Has_Anon_Block_Suffix
(Id
: E
; V
: B
:= True) is
3686 Set_Flag201
(Id
, V
);
3687 end Set_Has_Anon_Block_Suffix
;
3689 procedure Set_Has_Anonymous_Master
(Id
: E
; V
: B
:= True) is
3692 (Ekind_In
(Id
, E_Function
, E_Package
, E_Package_Body
, E_Procedure
));
3693 Set_Flag253
(Id
, V
);
3694 end Set_Has_Anonymous_Master
;
3696 procedure Set_Has_Atomic_Components
(Id
: E
; V
: B
:= True) is
3698 pragma Assert
(not Is_Type
(Id
) or else Is_Base_Type
(Id
));
3700 end Set_Has_Atomic_Components
;
3702 procedure Set_Has_Biased_Representation
(Id
: E
; V
: B
:= True) is
3705 ((V
= False) or else (Is_Discrete_Type
(Id
) or else Is_Object
(Id
)));
3706 Set_Flag139
(Id
, V
);
3707 end Set_Has_Biased_Representation
;
3709 procedure Set_Has_Completion
(Id
: E
; V
: B
:= True) is
3712 end Set_Has_Completion
;
3714 procedure Set_Has_Completion_In_Body
(Id
: E
; V
: B
:= True) is
3716 pragma Assert
(Is_Type
(Id
));
3718 end Set_Has_Completion_In_Body
;
3720 procedure Set_Has_Complex_Representation
(Id
: E
; V
: B
:= True) is
3722 pragma Assert
(Ekind
(Id
) = E_Record_Type
);
3723 Set_Flag140
(Id
, V
);
3724 end Set_Has_Complex_Representation
;
3726 procedure Set_Has_Component_Size_Clause
(Id
: E
; V
: B
:= True) is
3728 pragma Assert
(Ekind
(Id
) = E_Array_Type
);
3730 end Set_Has_Component_Size_Clause
;
3732 procedure Set_Has_Constrained_Partial_View
(Id
: E
; V
: B
:= True) is
3734 pragma Assert
(Is_Type
(Id
));
3735 Set_Flag187
(Id
, V
);
3736 end Set_Has_Constrained_Partial_View
;
3738 procedure Set_Has_Contiguous_Rep
(Id
: E
; V
: B
:= True) is
3740 Set_Flag181
(Id
, V
);
3741 end Set_Has_Contiguous_Rep
;
3743 procedure Set_Has_Controlled_Component
(Id
: E
; V
: B
:= True) is
3745 pragma Assert
(Id
= Base_Type
(Id
));
3747 end Set_Has_Controlled_Component
;
3749 procedure Set_Has_Controlling_Result
(Id
: E
; V
: B
:= True) is
3752 end Set_Has_Controlling_Result
;
3754 procedure Set_Has_Convention_Pragma
(Id
: E
; V
: B
:= True) is
3756 Set_Flag119
(Id
, V
);
3757 end Set_Has_Convention_Pragma
;
3759 procedure Set_Has_Default_Aspect
(Id
: E
; V
: B
:= True) is
3762 ((Is_Scalar_Type
(Id
) or else Is_Array_Type
(Id
))
3763 and then Is_Base_Type
(Id
));
3765 end Set_Has_Default_Aspect
;
3767 procedure Set_Has_Delayed_Aspects
(Id
: E
; V
: B
:= True) is
3769 pragma Assert
(Nkind
(Id
) in N_Entity
);
3770 Set_Flag200
(Id
, V
);
3771 end Set_Has_Delayed_Aspects
;
3773 procedure Set_Has_Delayed_Freeze
(Id
: E
; V
: B
:= True) is
3775 pragma Assert
(Nkind
(Id
) in N_Entity
);
3777 end Set_Has_Delayed_Freeze
;
3779 procedure Set_Has_Discriminants
(Id
: E
; V
: B
:= True) is
3781 pragma Assert
(Nkind
(Id
) in N_Entity
);
3783 end Set_Has_Discriminants
;
3785 procedure Set_Has_Dispatch_Table
(Id
: E
; V
: B
:= True) is
3787 pragma Assert
(Ekind
(Id
) = E_Record_Type
3788 and then Is_Tagged_Type
(Id
));
3789 Set_Flag220
(Id
, V
);
3790 end Set_Has_Dispatch_Table
;
3792 procedure Set_Has_Enumeration_Rep_Clause
(Id
: E
; V
: B
:= True) is
3794 pragma Assert
(Is_Enumeration_Type
(Id
));
3796 end Set_Has_Enumeration_Rep_Clause
;
3798 procedure Set_Has_Exit
(Id
: E
; V
: B
:= True) is
3803 procedure Set_Has_External_Tag_Rep_Clause
(Id
: E
; V
: B
:= True) is
3805 pragma Assert
(Is_Tagged_Type
(Id
));
3806 Set_Flag110
(Id
, V
);
3807 end Set_Has_External_Tag_Rep_Clause
;
3809 procedure Set_Has_Forward_Instantiation
(Id
: E
; V
: B
:= True) is
3811 Set_Flag175
(Id
, V
);
3812 end Set_Has_Forward_Instantiation
;
3814 procedure Set_Has_Fully_Qualified_Name
(Id
: E
; V
: B
:= True) is
3816 Set_Flag173
(Id
, V
);
3817 end Set_Has_Fully_Qualified_Name
;
3819 procedure Set_Has_Gigi_Rep_Item
(Id
: E
; V
: B
:= True) is
3822 end Set_Has_Gigi_Rep_Item
;
3824 procedure Set_Has_Homonym
(Id
: E
; V
: B
:= True) is
3827 end Set_Has_Homonym
;
3829 procedure Set_Has_Implicit_Dereference
(Id
: E
; V
: B
:= True) is
3831 Set_Flag251
(Id
, V
);
3832 end Set_Has_Implicit_Dereference
;
3834 procedure Set_Has_Inheritable_Invariants
(Id
: E
; V
: B
:= True) is
3836 pragma Assert
(Is_Type
(Id
));
3837 Set_Flag248
(Id
, V
);
3838 end Set_Has_Inheritable_Invariants
;
3840 procedure Set_Has_Initial_Value
(Id
: E
; V
: B
:= True) is
3842 pragma Assert
(Ekind_In
(Id
, E_Variable
, E_Out_Parameter
));
3843 Set_Flag219
(Id
, V
);
3844 end Set_Has_Initial_Value
;
3846 procedure Set_Has_Invariants
(Id
: E
; V
: B
:= True) is
3848 pragma Assert
(Is_Type
(Id
)
3849 or else Ekind
(Id
) = E_Procedure
3850 or else Ekind
(Id
) = E_Void
);
3851 Set_Flag232
(Id
, V
);
3852 end Set_Has_Invariants
;
3854 procedure Set_Has_Machine_Radix_Clause
(Id
: E
; V
: B
:= True) is
3856 pragma Assert
(Is_Decimal_Fixed_Point_Type
(Id
));
3858 end Set_Has_Machine_Radix_Clause
;
3860 procedure Set_Has_Master_Entity
(Id
: E
; V
: B
:= True) is
3863 end Set_Has_Master_Entity
;
3865 procedure Set_Has_Missing_Return
(Id
: E
; V
: B
:= True) is
3867 pragma Assert
(Ekind_In
(Id
, E_Function
, E_Generic_Function
));
3868 Set_Flag142
(Id
, V
);
3869 end Set_Has_Missing_Return
;
3871 procedure Set_Has_Nested_Block_With_Handler
(Id
: E
; V
: B
:= True) is
3873 Set_Flag101
(Id
, V
);
3874 end Set_Has_Nested_Block_With_Handler
;
3876 procedure Set_Has_Up_Level_Access
(Id
: E
; V
: B
:= True) is
3878 pragma Assert
(Ekind_In
(Id
, E_Variable
, E_Constant
, E_Loop_Parameter
));
3879 Set_Flag215
(Id
, V
);
3880 end Set_Has_Up_Level_Access
;
3882 procedure Set_Has_Non_Standard_Rep
(Id
: E
; V
: B
:= True) is
3884 pragma Assert
(Id
= Base_Type
(Id
));
3886 end Set_Has_Non_Standard_Rep
;
3888 procedure Set_Has_Object_Size_Clause
(Id
: E
; V
: B
:= True) is
3890 pragma Assert
(Is_Type
(Id
));
3891 Set_Flag172
(Id
, V
);
3892 end Set_Has_Object_Size_Clause
;
3894 procedure Set_Has_Per_Object_Constraint
(Id
: E
; V
: B
:= True) is
3896 Set_Flag154
(Id
, V
);
3897 end Set_Has_Per_Object_Constraint
;
3899 procedure Set_Has_Persistent_BSS
(Id
: E
; V
: B
:= True) is
3901 Set_Flag188
(Id
, V
);
3902 end Set_Has_Persistent_BSS
;
3904 procedure Set_Has_Postconditions
(Id
: E
; V
: B
:= True) is
3906 pragma Assert
(Is_Subprogram
(Id
));
3907 Set_Flag240
(Id
, V
);
3908 end Set_Has_Postconditions
;
3910 procedure Set_Has_Pragma_Controlled
(Id
: E
; V
: B
:= True) is
3912 pragma Assert
(Is_Access_Type
(Id
));
3913 Set_Flag27
(Base_Type
(Id
), V
);
3914 end Set_Has_Pragma_Controlled
;
3916 procedure Set_Has_Pragma_Elaborate_Body
(Id
: E
; V
: B
:= True) is
3918 Set_Flag150
(Id
, V
);
3919 end Set_Has_Pragma_Elaborate_Body
;
3921 procedure Set_Has_Pragma_Inline
(Id
: E
; V
: B
:= True) is
3923 Set_Flag157
(Id
, V
);
3924 end Set_Has_Pragma_Inline
;
3926 procedure Set_Has_Pragma_Inline_Always
(Id
: E
; V
: B
:= True) is
3928 Set_Flag230
(Id
, V
);
3929 end Set_Has_Pragma_Inline_Always
;
3931 procedure Set_Has_Pragma_Ordered
(Id
: E
; V
: B
:= True) is
3933 pragma Assert
(Is_Enumeration_Type
(Id
));
3934 pragma Assert
(Id
= Base_Type
(Id
));
3935 Set_Flag198
(Id
, V
);
3936 end Set_Has_Pragma_Ordered
;
3938 procedure Set_Has_Pragma_Pack
(Id
: E
; V
: B
:= True) is
3940 pragma Assert
(Is_Array_Type
(Id
) or else Is_Record_Type
(Id
));
3941 pragma Assert
(Id
= Base_Type
(Id
));
3942 Set_Flag121
(Id
, V
);
3943 end Set_Has_Pragma_Pack
;
3945 procedure Set_Has_Pragma_Preelab_Init
(Id
: E
; V
: B
:= True) is
3947 Set_Flag221
(Id
, V
);
3948 end Set_Has_Pragma_Preelab_Init
;
3950 procedure Set_Has_Pragma_Pure
(Id
: E
; V
: B
:= True) is
3952 Set_Flag203
(Id
, V
);
3953 end Set_Has_Pragma_Pure
;
3955 procedure Set_Has_Pragma_Pure_Function
(Id
: E
; V
: B
:= True) is
3957 Set_Flag179
(Id
, V
);
3958 end Set_Has_Pragma_Pure_Function
;
3960 procedure Set_Has_Pragma_Thread_Local_Storage
(Id
: E
; V
: B
:= True) is
3962 Set_Flag169
(Id
, V
);
3963 end Set_Has_Pragma_Thread_Local_Storage
;
3965 procedure Set_Has_Pragma_Unmodified
(Id
: E
; V
: B
:= True) is
3967 Set_Flag233
(Id
, V
);
3968 end Set_Has_Pragma_Unmodified
;
3970 procedure Set_Has_Pragma_Unreferenced
(Id
: E
; V
: B
:= True) is
3972 Set_Flag180
(Id
, V
);
3973 end Set_Has_Pragma_Unreferenced
;
3975 procedure Set_Has_Pragma_Unreferenced_Objects
(Id
: E
; V
: B
:= True) is
3977 pragma Assert
(Is_Type
(Id
));
3978 Set_Flag212
(Id
, V
);
3979 end Set_Has_Pragma_Unreferenced_Objects
;
3981 procedure Set_Has_Predicates
(Id
: E
; V
: B
:= True) is
3983 Set_Flag250
(Id
, V
);
3984 end Set_Has_Predicates
;
3986 procedure Set_Has_Primitive_Operations
(Id
: E
; V
: B
:= True) is
3988 pragma Assert
(Id
= Base_Type
(Id
));
3989 Set_Flag120
(Id
, V
);
3990 end Set_Has_Primitive_Operations
;
3992 procedure Set_Has_Private_Ancestor
(Id
: E
; V
: B
:= True) is
3994 pragma Assert
(Is_Type
(Id
));
3995 Set_Flag151
(Id
, V
);
3996 end Set_Has_Private_Ancestor
;
3998 procedure Set_Has_Private_Declaration
(Id
: E
; V
: B
:= True) is
4000 Set_Flag155
(Id
, V
);
4001 end Set_Has_Private_Declaration
;
4003 procedure Set_Has_Qualified_Name
(Id
: E
; V
: B
:= True) is
4005 Set_Flag161
(Id
, V
);
4006 end Set_Has_Qualified_Name
;
4008 procedure Set_Has_RACW
(Id
: E
; V
: B
:= True) is
4010 pragma Assert
(Ekind
(Id
) = E_Package
);
4011 Set_Flag214
(Id
, V
);
4014 procedure Set_Has_Record_Rep_Clause
(Id
: E
; V
: B
:= True) is
4016 pragma Assert
(Id
= Base_Type
(Id
));
4018 end Set_Has_Record_Rep_Clause
;
4020 procedure Set_Has_Recursive_Call
(Id
: E
; V
: B
:= True) is
4022 pragma Assert
(Is_Subprogram
(Id
));
4023 Set_Flag143
(Id
, V
);
4024 end Set_Has_Recursive_Call
;
4026 procedure Set_Has_Size_Clause
(Id
: E
; V
: B
:= True) is
4029 end Set_Has_Size_Clause
;
4031 procedure Set_Has_Small_Clause
(Id
: E
; V
: B
:= True) is
4034 end Set_Has_Small_Clause
;
4036 procedure Set_Has_Specified_Layout
(Id
: E
; V
: B
:= True) is
4038 pragma Assert
(Id
= Base_Type
(Id
));
4039 Set_Flag100
(Id
, V
);
4040 end Set_Has_Specified_Layout
;
4042 procedure Set_Has_Specified_Stream_Input
(Id
: E
; V
: B
:= True) is
4044 pragma Assert
(Is_Type
(Id
));
4045 Set_Flag190
(Id
, V
);
4046 end Set_Has_Specified_Stream_Input
;
4048 procedure Set_Has_Specified_Stream_Output
(Id
: E
; V
: B
:= True) is
4050 pragma Assert
(Is_Type
(Id
));
4051 Set_Flag191
(Id
, V
);
4052 end Set_Has_Specified_Stream_Output
;
4054 procedure Set_Has_Specified_Stream_Read
(Id
: E
; V
: B
:= True) is
4056 pragma Assert
(Is_Type
(Id
));
4057 Set_Flag192
(Id
, V
);
4058 end Set_Has_Specified_Stream_Read
;
4060 procedure Set_Has_Specified_Stream_Write
(Id
: E
; V
: B
:= True) is
4062 pragma Assert
(Is_Type
(Id
));
4063 Set_Flag193
(Id
, V
);
4064 end Set_Has_Specified_Stream_Write
;
4066 procedure Set_Has_Static_Discriminants
(Id
: E
; V
: B
:= True) is
4068 Set_Flag211
(Id
, V
);
4069 end Set_Has_Static_Discriminants
;
4071 procedure Set_Has_Storage_Size_Clause
(Id
: E
; V
: B
:= True) is
4073 pragma Assert
(Is_Access_Type
(Id
) or else Is_Task_Type
(Id
));
4074 pragma Assert
(Id
= Base_Type
(Id
));
4076 end Set_Has_Storage_Size_Clause
;
4078 procedure Set_Has_Stream_Size_Clause
(Id
: E
; V
: B
:= True) is
4080 pragma Assert
(Is_Elementary_Type
(Id
));
4081 Set_Flag184
(Id
, V
);
4082 end Set_Has_Stream_Size_Clause
;
4084 procedure Set_Has_Subprogram_Descriptor
(Id
: E
; V
: B
:= True) is
4087 end Set_Has_Subprogram_Descriptor
;
4089 procedure Set_Has_Task
(Id
: E
; V
: B
:= True) is
4091 pragma Assert
(Id
= Base_Type
(Id
));
4095 procedure Set_Has_Thunks
(Id
: E
; V
: B
:= True) is
4097 pragma Assert
(Is_Tag
(Id
));
4098 Set_Flag228
(Id
, V
);
4101 procedure Set_Has_Unchecked_Union
(Id
: E
; V
: B
:= True) is
4103 pragma Assert
(Id
= Base_Type
(Id
));
4104 Set_Flag123
(Id
, V
);
4105 end Set_Has_Unchecked_Union
;
4107 procedure Set_Has_Unknown_Discriminants
(Id
: E
; V
: B
:= True) is
4109 pragma Assert
(Is_Type
(Id
));
4111 end Set_Has_Unknown_Discriminants
;
4113 procedure Set_Has_Volatile_Components
(Id
: E
; V
: B
:= True) is
4115 pragma Assert
(not Is_Type
(Id
) or else Is_Base_Type
(Id
));
4117 end Set_Has_Volatile_Components
;
4119 procedure Set_Has_Xref_Entry
(Id
: E
; V
: B
:= True) is
4121 Set_Flag182
(Id
, V
);
4122 end Set_Has_Xref_Entry
;
4124 procedure Set_Hiding_Loop_Variable
(Id
: E
; V
: E
) is
4126 pragma Assert
(Ekind
(Id
) = E_Variable
);
4128 end Set_Hiding_Loop_Variable
;
4130 procedure Set_Homonym
(Id
: E
; V
: E
) is
4132 pragma Assert
(Id
/= V
);
4136 procedure Set_Interface_Alias
(Id
: E
; V
: E
) is
4140 and then Is_Hidden
(Id
)
4141 and then (Ekind_In
(Id
, E_Procedure
, E_Function
)));
4143 end Set_Interface_Alias
;
4145 procedure Set_Interfaces
(Id
: E
; V
: L
) is
4147 pragma Assert
(Is_Record_Type
(Id
));
4148 Set_Elist25
(Id
, V
);
4151 procedure Set_In_Package_Body
(Id
: E
; V
: B
:= True) is
4154 end Set_In_Package_Body
;
4156 procedure Set_In_Private_Part
(Id
: E
; V
: B
:= True) is
4159 end Set_In_Private_Part
;
4161 procedure Set_In_Use
(Id
: E
; V
: B
:= True) is
4163 pragma Assert
(Nkind
(Id
) in N_Entity
);
4167 procedure Set_Inner_Instances
(Id
: E
; V
: L
) is
4169 Set_Elist23
(Id
, V
);
4170 end Set_Inner_Instances
;
4172 procedure Set_Interface_Name
(Id
: E
; V
: N
) is
4175 end Set_Interface_Name
;
4177 procedure Set_Is_Abstract_Subprogram
(Id
: E
; V
: B
:= True) is
4179 pragma Assert
(Is_Overloadable
(Id
));
4181 end Set_Is_Abstract_Subprogram
;
4183 procedure Set_Is_Abstract_Type
(Id
: E
; V
: B
:= True) is
4185 pragma Assert
(Is_Type
(Id
));
4186 Set_Flag146
(Id
, V
);
4187 end Set_Is_Abstract_Type
;
4189 procedure Set_Is_Local_Anonymous_Access
(Id
: E
; V
: B
:= True) is
4191 pragma Assert
(Is_Access_Type
(Id
));
4192 Set_Flag194
(Id
, V
);
4193 end Set_Is_Local_Anonymous_Access
;
4195 procedure Set_Is_Access_Constant
(Id
: E
; V
: B
:= True) is
4197 pragma Assert
(Is_Access_Type
(Id
));
4199 end Set_Is_Access_Constant
;
4201 procedure Set_Is_Ada_2005_Only
(Id
: E
; V
: B
:= True) is
4203 Set_Flag185
(Id
, V
);
4204 end Set_Is_Ada_2005_Only
;
4206 procedure Set_Is_Ada_2012_Only
(Id
: E
; V
: B
:= True) is
4208 Set_Flag199
(Id
, V
);
4209 end Set_Is_Ada_2012_Only
;
4211 procedure Set_Is_Aliased
(Id
: E
; V
: B
:= True) is
4213 pragma Assert
(Nkind
(Id
) in N_Entity
);
4217 procedure Set_Is_AST_Entry
(Id
: E
; V
: B
:= True) is
4219 pragma Assert
(Is_Entry
(Id
));
4220 Set_Flag132
(Id
, V
);
4221 end Set_Is_AST_Entry
;
4223 procedure Set_Is_Asynchronous
(Id
: E
; V
: B
:= True) is
4226 (Ekind
(Id
) = E_Procedure
or else Is_Type
(Id
));
4228 end Set_Is_Asynchronous
;
4230 procedure Set_Is_Atomic
(Id
: E
; V
: B
:= True) is
4235 procedure Set_Is_Bit_Packed_Array
(Id
: E
; V
: B
:= True) is
4237 pragma Assert
((not V
)
4238 or else (Is_Array_Type
(Id
) and then Is_Base_Type
(Id
)));
4239 Set_Flag122
(Id
, V
);
4240 end Set_Is_Bit_Packed_Array
;
4242 procedure Set_Is_Called
(Id
: E
; V
: B
:= True) is
4244 pragma Assert
(Ekind_In
(Id
, E_Procedure
, E_Function
));
4245 Set_Flag102
(Id
, V
);
4248 procedure Set_Is_Character_Type
(Id
: E
; V
: B
:= True) is
4251 end Set_Is_Character_Type
;
4253 procedure Set_Is_Child_Unit
(Id
: E
; V
: B
:= True) is
4256 end Set_Is_Child_Unit
;
4258 procedure Set_Is_Class_Wide_Equivalent_Type
(Id
: E
; V
: B
:= True) is
4261 end Set_Is_Class_Wide_Equivalent_Type
;
4263 procedure Set_Is_Compilation_Unit
(Id
: E
; V
: B
:= True) is
4265 Set_Flag149
(Id
, V
);
4266 end Set_Is_Compilation_Unit
;
4268 procedure Set_Is_Completely_Hidden
(Id
: E
; V
: B
:= True) is
4270 pragma Assert
(Ekind
(Id
) = E_Discriminant
);
4271 Set_Flag103
(Id
, V
);
4272 end Set_Is_Completely_Hidden
;
4274 procedure Set_Is_Concurrent_Record_Type
(Id
: E
; V
: B
:= True) is
4277 end Set_Is_Concurrent_Record_Type
;
4279 procedure Set_Is_Constr_Subt_For_U_Nominal
(Id
: E
; V
: B
:= True) is
4282 end Set_Is_Constr_Subt_For_U_Nominal
;
4284 procedure Set_Is_Constr_Subt_For_UN_Aliased
(Id
: E
; V
: B
:= True) is
4286 Set_Flag141
(Id
, V
);
4287 end Set_Is_Constr_Subt_For_UN_Aliased
;
4289 procedure Set_Is_Constrained
(Id
: E
; V
: B
:= True) is
4291 pragma Assert
(Nkind
(Id
) in N_Entity
);
4293 end Set_Is_Constrained
;
4295 procedure Set_Is_Constructor
(Id
: E
; V
: B
:= True) is
4298 end Set_Is_Constructor
;
4300 procedure Set_Is_Controlled
(Id
: E
; V
: B
:= True) is
4302 pragma Assert
(Id
= Base_Type
(Id
));
4304 end Set_Is_Controlled
;
4306 procedure Set_Is_Controlling_Formal
(Id
: E
; V
: B
:= True) is
4308 pragma Assert
(Is_Formal
(Id
));
4310 end Set_Is_Controlling_Formal
;
4312 procedure Set_Is_CPP_Class
(Id
: E
; V
: B
:= True) is
4315 end Set_Is_CPP_Class
;
4317 procedure Set_Is_Descendent_Of_Address
(Id
: E
; V
: B
:= True) is
4319 pragma Assert
(Is_Type
(Id
));
4320 Set_Flag223
(Id
, V
);
4321 end Set_Is_Descendent_Of_Address
;
4323 procedure Set_Is_Discrim_SO_Function
(Id
: E
; V
: B
:= True) is
4325 Set_Flag176
(Id
, V
);
4326 end Set_Is_Discrim_SO_Function
;
4328 procedure Set_Is_Dispatch_Table_Entity
(Id
: E
; V
: B
:= True) is
4330 Set_Flag234
(Id
, V
);
4331 end Set_Is_Dispatch_Table_Entity
;
4333 procedure Set_Is_Dispatching_Operation
(Id
: E
; V
: B
:= True) is
4338 Is_Overloadable
(Id
)
4340 Ekind
(Id
) = E_Subprogram_Type
);
4343 end Set_Is_Dispatching_Operation
;
4345 procedure Set_Is_Eliminated
(Id
: E
; V
: B
:= True) is
4347 Set_Flag124
(Id
, V
);
4348 end Set_Is_Eliminated
;
4350 procedure Set_Is_Entry_Formal
(Id
: E
; V
: B
:= True) is
4353 end Set_Is_Entry_Formal
;
4355 procedure Set_Is_Exported
(Id
: E
; V
: B
:= True) is
4358 end Set_Is_Exported
;
4360 procedure Set_Is_First_Subtype
(Id
: E
; V
: B
:= True) is
4363 end Set_Is_First_Subtype
;
4365 procedure Set_Is_For_Access_Subtype
(Id
: E
; V
: B
:= True) is
4367 pragma Assert
(Ekind_In
(Id
, E_Record_Subtype
, E_Private_Subtype
));
4368 Set_Flag118
(Id
, V
);
4369 end Set_Is_For_Access_Subtype
;
4371 procedure Set_Is_Formal_Subprogram
(Id
: E
; V
: B
:= True) is
4373 Set_Flag111
(Id
, V
);
4374 end Set_Is_Formal_Subprogram
;
4376 procedure Set_Is_Frozen
(Id
: E
; V
: B
:= True) is
4378 pragma Assert
(Nkind
(Id
) in N_Entity
);
4382 procedure Set_Is_Generic_Actual_Type
(Id
: E
; V
: B
:= True) is
4384 pragma Assert
(Is_Type
(Id
));
4386 end Set_Is_Generic_Actual_Type
;
4388 procedure Set_Is_Generic_Instance
(Id
: E
; V
: B
:= True) is
4390 Set_Flag130
(Id
, V
);
4391 end Set_Is_Generic_Instance
;
4393 procedure Set_Is_Generic_Type
(Id
: E
; V
: B
:= True) is
4395 pragma Assert
(Nkind
(Id
) in N_Entity
);
4397 end Set_Is_Generic_Type
;
4399 procedure Set_Is_Hidden
(Id
: E
; V
: B
:= True) is
4404 procedure Set_Is_Hidden_Open_Scope
(Id
: E
; V
: B
:= True) is
4406 Set_Flag171
(Id
, V
);
4407 end Set_Is_Hidden_Open_Scope
;
4409 procedure Set_Is_Immediately_Visible
(Id
: E
; V
: B
:= True) is
4411 pragma Assert
(Nkind
(Id
) in N_Entity
);
4413 end Set_Is_Immediately_Visible
;
4415 procedure Set_Is_Implementation_Defined
(Id
: E
; V
: B
:= True) is
4417 Set_Flag254
(Id
, V
);
4418 end Set_Is_Implementation_Defined
;
4420 procedure Set_Is_Imported
(Id
: E
; V
: B
:= True) is
4423 end Set_Is_Imported
;
4425 procedure Set_Is_Inlined
(Id
: E
; V
: B
:= True) is
4430 procedure Set_Is_Interface
(Id
: E
; V
: B
:= True) is
4432 pragma Assert
(Is_Record_Type
(Id
));
4433 Set_Flag186
(Id
, V
);
4434 end Set_Is_Interface
;
4436 procedure Set_Is_Instantiated
(Id
: E
; V
: B
:= True) is
4438 Set_Flag126
(Id
, V
);
4439 end Set_Is_Instantiated
;
4441 procedure Set_Is_Internal
(Id
: E
; V
: B
:= True) is
4443 pragma Assert
(Nkind
(Id
) in N_Entity
);
4445 end Set_Is_Internal
;
4447 procedure Set_Is_Interrupt_Handler
(Id
: E
; V
: B
:= True) is
4449 pragma Assert
(Nkind
(Id
) in N_Entity
);
4451 end Set_Is_Interrupt_Handler
;
4453 procedure Set_Is_Intrinsic_Subprogram
(Id
: E
; V
: B
:= True) is
4456 end Set_Is_Intrinsic_Subprogram
;
4458 procedure Set_Is_Itype
(Id
: E
; V
: B
:= True) is
4463 procedure Set_Is_Known_Non_Null
(Id
: E
; V
: B
:= True) is
4466 end Set_Is_Known_Non_Null
;
4468 procedure Set_Is_Known_Null
(Id
: E
; V
: B
:= True) is
4470 Set_Flag204
(Id
, V
);
4471 end Set_Is_Known_Null
;
4473 procedure Set_Is_Known_Valid
(Id
: E
; V
: B
:= True) is
4475 Set_Flag170
(Id
, V
);
4476 end Set_Is_Known_Valid
;
4478 procedure Set_Is_Limited_Composite
(Id
: E
; V
: B
:= True) is
4480 pragma Assert
(Is_Type
(Id
));
4481 Set_Flag106
(Id
, V
);
4482 end Set_Is_Limited_Composite
;
4484 procedure Set_Is_Limited_Interface
(Id
: E
; V
: B
:= True) is
4486 pragma Assert
(Is_Interface
(Id
));
4487 Set_Flag197
(Id
, V
);
4488 end Set_Is_Limited_Interface
;
4490 procedure Set_Is_Limited_Record
(Id
: E
; V
: B
:= True) is
4493 end Set_Is_Limited_Record
;
4495 procedure Set_Is_Machine_Code_Subprogram
(Id
: E
; V
: B
:= True) is
4497 pragma Assert
(Is_Subprogram
(Id
));
4498 Set_Flag137
(Id
, V
);
4499 end Set_Is_Machine_Code_Subprogram
;
4501 procedure Set_Is_Non_Static_Subtype
(Id
: E
; V
: B
:= True) is
4503 pragma Assert
(Is_Type
(Id
));
4504 Set_Flag109
(Id
, V
);
4505 end Set_Is_Non_Static_Subtype
;
4507 procedure Set_Is_Null_Init_Proc
(Id
: E
; V
: B
:= True) is
4509 pragma Assert
(Ekind
(Id
) = E_Procedure
);
4510 Set_Flag178
(Id
, V
);
4511 end Set_Is_Null_Init_Proc
;
4513 procedure Set_Is_Obsolescent
(Id
: E
; V
: B
:= True) is
4515 Set_Flag153
(Id
, V
);
4516 end Set_Is_Obsolescent
;
4518 procedure Set_Is_Only_Out_Parameter
(Id
: E
; V
: B
:= True) is
4520 pragma Assert
(Ekind
(Id
) = E_Out_Parameter
);
4521 Set_Flag226
(Id
, V
);
4522 end Set_Is_Only_Out_Parameter
;
4524 procedure Set_Is_Optional_Parameter
(Id
: E
; V
: B
:= True) is
4526 pragma Assert
(Is_Formal
(Id
));
4527 Set_Flag134
(Id
, V
);
4528 end Set_Is_Optional_Parameter
;
4530 procedure Set_Is_Package_Body_Entity
(Id
: E
; V
: B
:= True) is
4532 Set_Flag160
(Id
, V
);
4533 end Set_Is_Package_Body_Entity
;
4535 procedure Set_Is_Packed
(Id
: E
; V
: B
:= True) is
4537 pragma Assert
(Id
= Base_Type
(Id
));
4541 procedure Set_Is_Packed_Array_Type
(Id
: E
; V
: B
:= True) is
4543 Set_Flag138
(Id
, V
);
4544 end Set_Is_Packed_Array_Type
;
4546 procedure Set_Is_Potentially_Use_Visible
(Id
: E
; V
: B
:= True) is
4548 pragma Assert
(Nkind
(Id
) in N_Entity
);
4550 end Set_Is_Potentially_Use_Visible
;
4552 procedure Set_Is_Preelaborated
(Id
: E
; V
: B
:= True) is
4555 end Set_Is_Preelaborated
;
4557 procedure Set_Is_Primitive
(Id
: E
; V
: B
:= True) is
4560 (Is_Overloadable
(Id
)
4561 or else Ekind_In
(Id
, E_Generic_Function
, E_Generic_Procedure
));
4562 Set_Flag218
(Id
, V
);
4563 end Set_Is_Primitive
;
4565 procedure Set_Is_Primitive_Wrapper
(Id
: E
; V
: B
:= True) is
4567 pragma Assert
(Ekind_In
(Id
, E_Function
, E_Procedure
));
4568 Set_Flag195
(Id
, V
);
4569 end Set_Is_Primitive_Wrapper
;
4571 procedure Set_Is_Private_Composite
(Id
: E
; V
: B
:= True) is
4573 pragma Assert
(Is_Type
(Id
));
4574 Set_Flag107
(Id
, V
);
4575 end Set_Is_Private_Composite
;
4577 procedure Set_Is_Private_Descendant
(Id
: E
; V
: B
:= True) is
4580 end Set_Is_Private_Descendant
;
4582 procedure Set_Is_Private_Primitive
(Id
: E
; V
: B
:= True) is
4584 pragma Assert
(Ekind_In
(Id
, E_Function
, E_Procedure
));
4585 Set_Flag245
(Id
, V
);
4586 end Set_Is_Private_Primitive
;
4588 procedure Set_Is_Processed_Transient
(Id
: E
; V
: B
:= True) is
4590 pragma Assert
(Ekind_In
(Id
, E_Constant
, E_Variable
));
4591 Set_Flag252
(Id
, V
);
4592 end Set_Is_Processed_Transient
;
4594 procedure Set_Is_Public
(Id
: E
; V
: B
:= True) is
4596 pragma Assert
(Nkind
(Id
) in N_Entity
);
4600 procedure Set_Is_Pure
(Id
: E
; V
: B
:= True) is
4605 procedure Set_Is_Pure_Unit_Access_Type
(Id
: E
; V
: B
:= True) is
4607 pragma Assert
(Is_Access_Type
(Id
));
4608 Set_Flag189
(Id
, V
);
4609 end Set_Is_Pure_Unit_Access_Type
;
4611 procedure Set_Is_RACW_Stub_Type
(Id
: E
; V
: B
:= True) is
4613 pragma Assert
(Is_Type
(Id
));
4614 Set_Flag244
(Id
, V
);
4615 end Set_Is_RACW_Stub_Type
;
4617 procedure Set_Is_Raised
(Id
: E
; V
: B
:= True) is
4619 pragma Assert
(Ekind
(Id
) = E_Exception
);
4620 Set_Flag224
(Id
, V
);
4623 procedure Set_Is_Remote_Call_Interface
(Id
: E
; V
: B
:= True) is
4626 end Set_Is_Remote_Call_Interface
;
4628 procedure Set_Is_Remote_Types
(Id
: E
; V
: B
:= True) is
4631 end Set_Is_Remote_Types
;
4633 procedure Set_Is_Renaming_Of_Object
(Id
: E
; V
: B
:= True) is
4635 Set_Flag112
(Id
, V
);
4636 end Set_Is_Renaming_Of_Object
;
4638 procedure Set_Is_Return_Object
(Id
: E
; V
: B
:= True) is
4640 Set_Flag209
(Id
, V
);
4641 end Set_Is_Return_Object
;
4643 procedure Set_Is_Safe_To_Reevaluate
(Id
: E
; V
: B
:= True) is
4645 pragma Assert
(Ekind
(Id
) = E_Variable
);
4646 Set_Flag249
(Id
, V
);
4647 end Set_Is_Safe_To_Reevaluate
;
4649 procedure Set_Is_Shared_Passive
(Id
: E
; V
: B
:= True) is
4652 end Set_Is_Shared_Passive
;
4654 procedure Set_Is_Statically_Allocated
(Id
: E
; V
: B
:= True) is
4658 or else Ekind_In
(Id
, E_Exception
,
4663 end Set_Is_Statically_Allocated
;
4665 procedure Set_Is_Tag
(Id
: E
; V
: B
:= True) is
4667 pragma Assert
(Ekind_In
(Id
, E_Component
, E_Constant
, E_Variable
));
4671 procedure Set_Is_Tagged_Type
(Id
: E
; V
: B
:= True) is
4674 end Set_Is_Tagged_Type
;
4676 procedure Set_Is_Thunk
(Id
: E
; V
: B
:= True) is
4678 Set_Flag225
(Id
, V
);
4681 procedure Set_Is_Trivial_Subprogram
(Id
: E
; V
: B
:= True) is
4683 Set_Flag235
(Id
, V
);
4684 end Set_Is_Trivial_Subprogram
;
4686 procedure Set_Is_True_Constant
(Id
: E
; V
: B
:= True) is
4688 Set_Flag163
(Id
, V
);
4689 end Set_Is_True_Constant
;
4691 procedure Set_Is_Unchecked_Union
(Id
: E
; V
: B
:= True) is
4693 pragma Assert
(Id
= Base_Type
(Id
));
4694 Set_Flag117
(Id
, V
);
4695 end Set_Is_Unchecked_Union
;
4697 procedure Set_Is_Underlying_Record_View
(Id
: E
; V
: B
:= True) is
4699 pragma Assert
(Ekind
(Id
) = E_Record_Type
);
4700 Set_Flag246
(Id
, V
);
4701 end Set_Is_Underlying_Record_View
;
4703 procedure Set_Is_Unsigned_Type
(Id
: E
; V
: B
:= True) is
4705 pragma Assert
(Is_Discrete_Or_Fixed_Point_Type
(Id
));
4706 Set_Flag144
(Id
, V
);
4707 end Set_Is_Unsigned_Type
;
4709 procedure Set_Is_Valued_Procedure
(Id
: E
; V
: B
:= True) is
4711 pragma Assert
(Ekind
(Id
) = E_Procedure
);
4712 Set_Flag127
(Id
, V
);
4713 end Set_Is_Valued_Procedure
;
4715 procedure Set_Is_Visible_Child_Unit
(Id
: E
; V
: B
:= True) is
4717 pragma Assert
(Is_Child_Unit
(Id
));
4718 Set_Flag116
(Id
, V
);
4719 end Set_Is_Visible_Child_Unit
;
4721 procedure Set_Is_Visible_Formal
(Id
: E
; V
: B
:= True) is
4723 Set_Flag206
(Id
, V
);
4724 end Set_Is_Visible_Formal
;
4726 procedure Set_Is_VMS_Exception
(Id
: E
; V
: B
:= True) is
4728 pragma Assert
(Ekind
(Id
) = E_Exception
);
4729 Set_Flag133
(Id
, V
);
4730 end Set_Is_VMS_Exception
;
4732 procedure Set_Is_Volatile
(Id
: E
; V
: B
:= True) is
4734 pragma Assert
(Nkind
(Id
) in N_Entity
);
4736 end Set_Is_Volatile
;
4738 procedure Set_Itype_Printed
(Id
: E
; V
: B
:= True) is
4740 pragma Assert
(Is_Itype
(Id
));
4741 Set_Flag202
(Id
, V
);
4742 end Set_Itype_Printed
;
4744 procedure Set_Kill_Elaboration_Checks
(Id
: E
; V
: B
:= True) is
4747 end Set_Kill_Elaboration_Checks
;
4749 procedure Set_Kill_Range_Checks
(Id
: E
; V
: B
:= True) is
4752 end Set_Kill_Range_Checks
;
4754 procedure Set_Kill_Tag_Checks
(Id
: E
; V
: B
:= True) is
4757 end Set_Kill_Tag_Checks
;
4759 procedure Set_Known_To_Have_Preelab_Init
(Id
: E
; V
: B
:= True) is
4761 pragma Assert
(Is_Type
(Id
));
4762 Set_Flag207
(Id
, V
);
4763 end Set_Known_To_Have_Preelab_Init
;
4765 procedure Set_Last_Assignment
(Id
: E
; V
: N
) is
4767 pragma Assert
(Is_Assignable
(Id
));
4769 end Set_Last_Assignment
;
4771 procedure Set_Last_Entity
(Id
: E
; V
: E
) is
4774 end Set_Last_Entity
;
4776 procedure Set_Limited_View
(Id
: E
; V
: E
) is
4778 pragma Assert
(Ekind
(Id
) = E_Package
);
4780 end Set_Limited_View
;
4782 procedure Set_Lit_Indexes
(Id
: E
; V
: E
) is
4784 pragma Assert
(Is_Enumeration_Type
(Id
) and then Root_Type
(Id
) = Id
);
4786 end Set_Lit_Indexes
;
4788 procedure Set_Lit_Strings
(Id
: E
; V
: E
) is
4790 pragma Assert
(Is_Enumeration_Type
(Id
) and then Root_Type
(Id
) = Id
);
4792 end Set_Lit_Strings
;
4794 procedure Set_Low_Bound_Tested
(Id
: E
; V
: B
:= True) is
4796 pragma Assert
(Is_Formal
(Id
));
4797 Set_Flag205
(Id
, V
);
4798 end Set_Low_Bound_Tested
;
4800 procedure Set_Machine_Radix_10
(Id
: E
; V
: B
:= True) is
4802 pragma Assert
(Is_Decimal_Fixed_Point_Type
(Id
));
4804 end Set_Machine_Radix_10
;
4806 procedure Set_Master_Id
(Id
: E
; V
: E
) is
4808 pragma Assert
(Is_Access_Type
(Id
));
4812 procedure Set_Materialize_Entity
(Id
: E
; V
: B
:= True) is
4814 Set_Flag168
(Id
, V
);
4815 end Set_Materialize_Entity
;
4817 procedure Set_Mechanism
(Id
: E
; V
: M
) is
4819 pragma Assert
(Ekind
(Id
) = E_Function
or else Is_Formal
(Id
));
4820 Set_Uint8
(Id
, UI_From_Int
(V
));
4823 procedure Set_Modulus
(Id
: E
; V
: U
) is
4825 pragma Assert
(Ekind
(Id
) = E_Modular_Integer_Type
);
4829 procedure Set_Must_Be_On_Byte_Boundary
(Id
: E
; V
: B
:= True) is
4831 pragma Assert
(Is_Type
(Id
));
4832 Set_Flag183
(Id
, V
);
4833 end Set_Must_Be_On_Byte_Boundary
;
4835 procedure Set_Must_Have_Preelab_Init
(Id
: E
; V
: B
:= True) is
4837 pragma Assert
(Is_Type
(Id
));
4838 Set_Flag208
(Id
, V
);
4839 end Set_Must_Have_Preelab_Init
;
4841 procedure Set_Needs_Debug_Info
(Id
: E
; V
: B
:= True) is
4843 Set_Flag147
(Id
, V
);
4844 end Set_Needs_Debug_Info
;
4846 procedure Set_Needs_No_Actuals
(Id
: E
; V
: B
:= True) is
4849 (Is_Overloadable
(Id
)
4850 or else Ekind_In
(Id
, E_Subprogram_Type
, E_Entry_Family
));
4852 end Set_Needs_No_Actuals
;
4854 procedure Set_Never_Set_In_Source
(Id
: E
; V
: B
:= True) is
4856 Set_Flag115
(Id
, V
);
4857 end Set_Never_Set_In_Source
;
4859 procedure Set_Next_Inlined_Subprogram
(Id
: E
; V
: E
) is
4862 end Set_Next_Inlined_Subprogram
;
4864 procedure Set_No_Pool_Assigned
(Id
: E
; V
: B
:= True) is
4866 pragma Assert
(Is_Access_Type
(Id
) and then Is_Base_Type
(Id
));
4867 Set_Flag131
(Id
, V
);
4868 end Set_No_Pool_Assigned
;
4870 procedure Set_No_Return
(Id
: E
; V
: B
:= True) is
4873 (V
= False or else Ekind_In
(Id
, E_Procedure
, E_Generic_Procedure
));
4874 Set_Flag113
(Id
, V
);
4877 procedure Set_No_Strict_Aliasing
(Id
: E
; V
: B
:= True) is
4879 pragma Assert
(Is_Access_Type
(Id
) and then Is_Base_Type
(Id
));
4880 Set_Flag136
(Id
, V
);
4881 end Set_No_Strict_Aliasing
;
4883 procedure Set_Non_Binary_Modulus
(Id
: E
; V
: B
:= True) is
4885 pragma Assert
(Is_Type
(Id
) and then Is_Base_Type
(Id
));
4887 end Set_Non_Binary_Modulus
;
4889 procedure Set_Non_Limited_View
(Id
: E
; V
: E
) is
4891 pragma Assert
(Ekind
(Id
) in Incomplete_Kind
);
4893 end Set_Non_Limited_View
;
4895 procedure Set_Nonzero_Is_True
(Id
: E
; V
: B
:= True) is
4898 (Root_Type
(Id
) = Standard_Boolean
4899 and then Ekind
(Id
) = E_Enumeration_Type
);
4900 Set_Flag162
(Id
, V
);
4901 end Set_Nonzero_Is_True
;
4903 procedure Set_Normalized_First_Bit
(Id
: E
; V
: U
) is
4905 pragma Assert
(Ekind_In
(Id
, E_Component
, E_Discriminant
));
4907 end Set_Normalized_First_Bit
;
4909 procedure Set_Normalized_Position
(Id
: E
; V
: U
) is
4911 pragma Assert
(Ekind_In
(Id
, E_Component
, E_Discriminant
));
4913 end Set_Normalized_Position
;
4915 procedure Set_Normalized_Position_Max
(Id
: E
; V
: U
) is
4917 pragma Assert
(Ekind_In
(Id
, E_Component
, E_Discriminant
));
4919 end Set_Normalized_Position_Max
;
4921 procedure Set_OK_To_Rename
(Id
: E
; V
: B
:= True) is
4923 pragma Assert
(Ekind
(Id
) = E_Variable
);
4924 Set_Flag247
(Id
, V
);
4925 end Set_OK_To_Rename
;
4927 procedure Set_OK_To_Reorder_Components
(Id
: E
; V
: B
:= True) is
4930 (Is_Record_Type
(Id
) and then Is_Base_Type
(Id
));
4931 Set_Flag239
(Id
, V
);
4932 end Set_OK_To_Reorder_Components
;
4934 procedure Set_Optimize_Alignment_Space
(Id
: E
; V
: B
:= True) is
4937 (Is_Type
(Id
) or else Ekind_In
(Id
, E_Constant
, E_Variable
));
4938 Set_Flag241
(Id
, V
);
4939 end Set_Optimize_Alignment_Space
;
4941 procedure Set_Optimize_Alignment_Time
(Id
: E
; V
: B
:= True) is
4944 (Is_Type
(Id
) or else Ekind_In
(Id
, E_Constant
, E_Variable
));
4945 Set_Flag242
(Id
, V
);
4946 end Set_Optimize_Alignment_Time
;
4948 procedure Set_Original_Access_Type
(Id
: E
; V
: E
) is
4950 pragma Assert
(Ekind
(Id
) = E_Access_Subprogram_Type
);
4952 end Set_Original_Access_Type
;
4954 procedure Set_Original_Array_Type
(Id
: E
; V
: E
) is
4956 pragma Assert
(Is_Array_Type
(Id
) or else Is_Modular_Integer_Type
(Id
));
4958 end Set_Original_Array_Type
;
4960 procedure Set_Original_Record_Component
(Id
: E
; V
: E
) is
4962 pragma Assert
(Ekind_In
(Id
, E_Void
, E_Component
, E_Discriminant
));
4964 end Set_Original_Record_Component
;
4966 procedure Set_Overlays_Constant
(Id
: E
; V
: B
:= True) is
4968 Set_Flag243
(Id
, V
);
4969 end Set_Overlays_Constant
;
4971 procedure Set_Overridden_Operation
(Id
: E
; V
: E
) is
4974 end Set_Overridden_Operation
;
4976 procedure Set_Package_Instantiation
(Id
: E
; V
: N
) is
4978 pragma Assert
(Ekind_In
(Id
, E_Void
, E_Generic_Package
, E_Package
));
4980 end Set_Package_Instantiation
;
4982 procedure Set_Packed_Array_Type
(Id
: E
; V
: E
) is
4984 pragma Assert
(Is_Array_Type
(Id
));
4986 end Set_Packed_Array_Type
;
4988 procedure Set_Parent_Subtype
(Id
: E
; V
: E
) is
4990 pragma Assert
(Ekind
(Id
) = E_Record_Type
);
4992 end Set_Parent_Subtype
;
4994 procedure Set_Postcondition_Proc
(Id
: E
; V
: E
) is
4996 pragma Assert
(Ekind
(Id
) = E_Procedure
);
4998 end Set_Postcondition_Proc
;
5000 procedure Set_PPC_Wrapper
(Id
: E
; V
: E
) is
5002 pragma Assert
(Ekind_In
(Id
, E_Entry
, E_Entry_Family
));
5004 end Set_PPC_Wrapper
;
5006 procedure Set_Direct_Primitive_Operations
(Id
: E
; V
: L
) is
5008 pragma Assert
(Is_Tagged_Type
(Id
));
5009 Set_Elist10
(Id
, V
);
5010 end Set_Direct_Primitive_Operations
;
5012 procedure Set_Prival
(Id
: E
; V
: E
) is
5014 pragma Assert
(Is_Protected_Component
(Id
));
5018 procedure Set_Prival_Link
(Id
: E
; V
: E
) is
5020 pragma Assert
(Ekind_In
(Id
, E_Constant
, E_Variable
));
5022 end Set_Prival_Link
;
5024 procedure Set_Private_Dependents
(Id
: E
; V
: L
) is
5026 pragma Assert
(Is_Incomplete_Or_Private_Type
(Id
));
5027 Set_Elist18
(Id
, V
);
5028 end Set_Private_Dependents
;
5030 procedure Set_Private_View
(Id
: E
; V
: N
) is
5032 pragma Assert
(Is_Private_Type
(Id
));
5034 end Set_Private_View
;
5036 procedure Set_Protected_Body_Subprogram
(Id
: E
; V
: E
) is
5038 pragma Assert
(Is_Subprogram
(Id
) or else Is_Entry
(Id
));
5040 end Set_Protected_Body_Subprogram
;
5042 procedure Set_Protected_Formal
(Id
: E
; V
: E
) is
5044 pragma Assert
(Is_Formal
(Id
));
5046 end Set_Protected_Formal
;
5048 procedure Set_Protection_Object
(Id
: E
; V
: E
) is
5050 pragma Assert
(Ekind_In
(Id
, E_Entry
,
5055 end Set_Protection_Object
;
5057 procedure Set_Reachable
(Id
: E
; V
: B
:= True) is
5062 procedure Set_Referenced
(Id
: E
; V
: B
:= True) is
5064 Set_Flag156
(Id
, V
);
5067 procedure Set_Referenced_As_LHS
(Id
: E
; V
: B
:= True) is
5070 end Set_Referenced_As_LHS
;
5072 procedure Set_Referenced_As_Out_Parameter
(Id
: E
; V
: B
:= True) is
5074 Set_Flag227
(Id
, V
);
5075 end Set_Referenced_As_Out_Parameter
;
5077 procedure Set_Register_Exception_Call
(Id
: E
; V
: N
) is
5079 pragma Assert
(Ekind
(Id
) = E_Exception
);
5081 end Set_Register_Exception_Call
;
5083 procedure Set_Related_Array_Object
(Id
: E
; V
: E
) is
5085 pragma Assert
(Is_Array_Type
(Id
));
5087 end Set_Related_Array_Object
;
5089 procedure Set_Related_Expression
(Id
: E
; V
: N
) is
5091 pragma Assert
(Ekind
(Id
) in Type_Kind
5092 or else Ekind_In
(Id
, E_Constant
, E_Variable
, E_Void
));
5094 end Set_Related_Expression
;
5096 procedure Set_Related_Instance
(Id
: E
; V
: E
) is
5098 pragma Assert
(Ekind_In
(Id
, E_Package
, E_Package_Body
));
5100 end Set_Related_Instance
;
5102 procedure Set_Related_Type
(Id
: E
; V
: E
) is
5104 pragma Assert
(Ekind_In
(Id
, E_Component
, E_Constant
, E_Variable
));
5106 end Set_Related_Type
;
5108 procedure Set_Relative_Deadline_Variable
(Id
: E
; V
: E
) is
5110 pragma Assert
(Is_Task_Type
(Id
) and then Is_Base_Type
(Id
));
5112 end Set_Relative_Deadline_Variable
;
5114 procedure Set_Renamed_Entity
(Id
: E
; V
: N
) is
5117 end Set_Renamed_Entity
;
5119 procedure Set_Renamed_In_Spec
(Id
: E
; V
: B
:= True) is
5121 pragma Assert
(Ekind
(Id
) = E_Package
);
5122 Set_Flag231
(Id
, V
);
5123 end Set_Renamed_In_Spec
;
5125 procedure Set_Renamed_Object
(Id
: E
; V
: N
) is
5128 end Set_Renamed_Object
;
5130 procedure Set_Renaming_Map
(Id
: E
; V
: U
) is
5133 end Set_Renaming_Map
;
5135 procedure Set_Requires_Overriding
(Id
: E
; V
: B
:= True) is
5137 pragma Assert
(Is_Overloadable
(Id
));
5138 Set_Flag213
(Id
, V
);
5139 end Set_Requires_Overriding
;
5141 procedure Set_Return_Flag_Or_Transient_Decl
(Id
: E
; V
: E
) is
5143 pragma Assert
(Ekind_In
(Id
, E_Constant
, E_Variable
));
5145 end Set_Return_Flag_Or_Transient_Decl
;
5147 procedure Set_Return_Present
(Id
: E
; V
: B
:= True) is
5150 end Set_Return_Present
;
5152 procedure Set_Return_Applies_To
(Id
: E
; V
: N
) is
5155 end Set_Return_Applies_To
;
5157 procedure Set_Returns_By_Ref
(Id
: E
; V
: B
:= True) is
5160 end Set_Returns_By_Ref
;
5162 procedure Set_Reverse_Bit_Order
(Id
: E
; V
: B
:= True) is
5165 (Is_Record_Type
(Id
) and then Is_Base_Type
(Id
));
5166 Set_Flag164
(Id
, V
);
5167 end Set_Reverse_Bit_Order
;
5169 procedure Set_RM_Size
(Id
: E
; V
: U
) is
5171 pragma Assert
(Is_Type
(Id
));
5175 procedure Set_Scalar_Range
(Id
: E
; V
: N
) is
5178 end Set_Scalar_Range
;
5180 procedure Set_Scale_Value
(Id
: E
; V
: U
) is
5183 end Set_Scale_Value
;
5185 procedure Set_Scope_Depth_Value
(Id
: E
; V
: U
) is
5187 pragma Assert
(not Is_Record_Type
(Id
));
5189 end Set_Scope_Depth_Value
;
5191 procedure Set_Sec_Stack_Needed_For_Return
(Id
: E
; V
: B
:= True) is
5193 Set_Flag167
(Id
, V
);
5194 end Set_Sec_Stack_Needed_For_Return
;
5196 procedure Set_Shadow_Entities
(Id
: E
; V
: S
) is
5198 pragma Assert
(Ekind_In
(Id
, E_Package
, E_Generic_Package
));
5200 end Set_Shadow_Entities
;
5202 procedure Set_Shared_Var_Procs_Instance
(Id
: E
; V
: E
) is
5204 pragma Assert
(Ekind
(Id
) = E_Variable
);
5206 end Set_Shared_Var_Procs_Instance
;
5208 procedure Set_Size_Check_Code
(Id
: E
; V
: N
) is
5210 pragma Assert
(Ekind_In
(Id
, E_Constant
, E_Variable
));
5212 end Set_Size_Check_Code
;
5214 procedure Set_Size_Depends_On_Discriminant
(Id
: E
; V
: B
:= True) is
5216 Set_Flag177
(Id
, V
);
5217 end Set_Size_Depends_On_Discriminant
;
5219 procedure Set_Size_Known_At_Compile_Time
(Id
: E
; V
: B
:= True) is
5222 end Set_Size_Known_At_Compile_Time
;
5224 procedure Set_Small_Value
(Id
: E
; V
: R
) is
5226 pragma Assert
(Is_Fixed_Point_Type
(Id
));
5227 Set_Ureal21
(Id
, V
);
5228 end Set_Small_Value
;
5230 procedure Set_Spec_Entity
(Id
: E
; V
: E
) is
5232 pragma Assert
(Ekind
(Id
) = E_Package_Body
or else Is_Formal
(Id
));
5234 end Set_Spec_Entity
;
5236 procedure Set_Static_Predicate
(Id
: E
; V
: S
) is
5239 (Ekind_In
(Id
, E_Enumeration_Subtype
,
5240 E_Modular_Integer_Subtype
,
5241 E_Signed_Integer_Subtype
)
5242 and then Has_Predicates
(Id
));
5244 end Set_Static_Predicate
;
5246 procedure Set_Storage_Size_Variable
(Id
: E
; V
: E
) is
5248 pragma Assert
(Is_Access_Type
(Id
) or else Is_Task_Type
(Id
));
5249 pragma Assert
(Id
= Base_Type
(Id
));
5251 end Set_Storage_Size_Variable
;
5253 procedure Set_Static_Elaboration_Desired
(Id
: E
; V
: B
) is
5255 pragma Assert
(Ekind
(Id
) = E_Package
);
5257 end Set_Static_Elaboration_Desired
;
5259 procedure Set_Static_Initialization
(Id
: E
; V
: N
) is
5262 (Ekind
(Id
) = E_Procedure
and then not Is_Dispatching_Operation
(Id
));
5264 end Set_Static_Initialization
;
5266 procedure Set_Stored_Constraint
(Id
: E
; V
: L
) is
5268 pragma Assert
(Nkind
(Id
) in N_Entity
);
5269 Set_Elist23
(Id
, V
);
5270 end Set_Stored_Constraint
;
5272 procedure Set_Strict_Alignment
(Id
: E
; V
: B
:= True) is
5274 pragma Assert
(Id
= Base_Type
(Id
));
5275 Set_Flag145
(Id
, V
);
5276 end Set_Strict_Alignment
;
5278 procedure Set_String_Literal_Length
(Id
: E
; V
: U
) is
5280 pragma Assert
(Ekind
(Id
) = E_String_Literal_Subtype
);
5282 end Set_String_Literal_Length
;
5284 procedure Set_String_Literal_Low_Bound
(Id
: E
; V
: N
) is
5286 pragma Assert
(Ekind
(Id
) = E_String_Literal_Subtype
);
5288 end Set_String_Literal_Low_Bound
;
5290 procedure Set_Subprograms_For_Type
(Id
: E
; V
: E
) is
5292 pragma Assert
(Is_Type
(Id
) or else Is_Subprogram
(Id
));
5294 end Set_Subprograms_For_Type
;
5296 procedure Set_Suppress_Elaboration_Warnings
(Id
: E
; V
: B
:= True) is
5298 Set_Flag148
(Id
, V
);
5299 end Set_Suppress_Elaboration_Warnings
;
5301 procedure Set_Suppress_Initialization
(Id
: E
; V
: B
:= True) is
5303 pragma Assert
(Is_Type
(Id
));
5304 Set_Flag105
(Id
, V
);
5305 end Set_Suppress_Initialization
;
5307 procedure Set_Suppress_Style_Checks
(Id
: E
; V
: B
:= True) is
5309 Set_Flag165
(Id
, V
);
5310 end Set_Suppress_Style_Checks
;
5312 procedure Set_Suppress_Value_Tracking_On_Call
(Id
: E
; V
: B
:= True) is
5314 Set_Flag217
(Id
, V
);
5315 end Set_Suppress_Value_Tracking_On_Call
;
5317 procedure Set_Task_Body_Procedure
(Id
: E
; V
: N
) is
5319 pragma Assert
(Ekind
(Id
) in Task_Kind
);
5321 end Set_Task_Body_Procedure
;
5323 procedure Set_Treat_As_Volatile
(Id
: E
; V
: B
:= True) is
5326 end Set_Treat_As_Volatile
;
5328 procedure Set_Underlying_Full_View
(Id
: E
; V
: E
) is
5330 pragma Assert
(Ekind
(Id
) in Private_Kind
);
5332 end Set_Underlying_Full_View
;
5334 procedure Set_Underlying_Record_View
(Id
: E
; V
: E
) is
5336 pragma Assert
(Ekind
(Id
) = E_Record_Type
);
5338 end Set_Underlying_Record_View
;
5340 procedure Set_Universal_Aliasing
(Id
: E
; V
: B
:= True) is
5342 pragma Assert
(Is_Type
(Id
) and then Is_Base_Type
(Id
));
5343 Set_Flag216
(Id
, V
);
5344 end Set_Universal_Aliasing
;
5346 procedure Set_Unset_Reference
(Id
: E
; V
: N
) is
5349 end Set_Unset_Reference
;
5351 procedure Set_Uses_Sec_Stack
(Id
: E
; V
: B
:= True) is
5354 end Set_Uses_Sec_Stack
;
5356 procedure Set_Used_As_Generic_Actual
(Id
: E
; V
: B
:= True) is
5358 Set_Flag222
(Id
, V
);
5359 end Set_Used_As_Generic_Actual
;
5361 procedure Set_Warnings_Off
(Id
: E
; V
: B
:= True) is
5364 end Set_Warnings_Off
;
5366 procedure Set_Warnings_Off_Used
(Id
: E
; V
: B
:= True) is
5368 Set_Flag236
(Id
, V
);
5369 end Set_Warnings_Off_Used
;
5371 procedure Set_Warnings_Off_Used_Unmodified
(Id
: E
; V
: B
:= True) is
5373 Set_Flag237
(Id
, V
);
5374 end Set_Warnings_Off_Used_Unmodified
;
5376 procedure Set_Warnings_Off_Used_Unreferenced
(Id
: E
; V
: B
:= True) is
5378 Set_Flag238
(Id
, V
);
5379 end Set_Warnings_Off_Used_Unreferenced
;
5381 procedure Set_Was_Hidden
(Id
: E
; V
: B
:= True) is
5383 Set_Flag196
(Id
, V
);
5386 procedure Set_Wrapped_Entity
(Id
: E
; V
: E
) is
5388 pragma Assert
(Ekind_In
(Id
, E_Function
, E_Procedure
)
5389 and then Is_Primitive_Wrapper
(Id
));
5391 end Set_Wrapped_Entity
;
5393 -----------------------------------
5394 -- Field Initialization Routines --
5395 -----------------------------------
5397 procedure Init_Alignment
(Id
: E
) is
5399 Set_Uint14
(Id
, Uint_0
);
5402 procedure Init_Alignment
(Id
: E
; V
: Int
) is
5404 Set_Uint14
(Id
, UI_From_Int
(V
));
5407 procedure Init_Component_Bit_Offset
(Id
: E
) is
5409 Set_Uint11
(Id
, No_Uint
);
5410 end Init_Component_Bit_Offset
;
5412 procedure Init_Component_Bit_Offset
(Id
: E
; V
: Int
) is
5414 Set_Uint11
(Id
, UI_From_Int
(V
));
5415 end Init_Component_Bit_Offset
;
5417 procedure Init_Component_Size
(Id
: E
) is
5419 Set_Uint22
(Id
, Uint_0
);
5420 end Init_Component_Size
;
5422 procedure Init_Component_Size
(Id
: E
; V
: Int
) is
5424 Set_Uint22
(Id
, UI_From_Int
(V
));
5425 end Init_Component_Size
;
5427 procedure Init_Digits_Value
(Id
: E
) is
5429 Set_Uint17
(Id
, Uint_0
);
5430 end Init_Digits_Value
;
5432 procedure Init_Digits_Value
(Id
: E
; V
: Int
) is
5434 Set_Uint17
(Id
, UI_From_Int
(V
));
5435 end Init_Digits_Value
;
5437 procedure Init_Esize
(Id
: E
) is
5439 Set_Uint12
(Id
, Uint_0
);
5442 procedure Init_Esize
(Id
: E
; V
: Int
) is
5444 Set_Uint12
(Id
, UI_From_Int
(V
));
5447 procedure Init_Normalized_First_Bit
(Id
: E
) is
5449 Set_Uint8
(Id
, No_Uint
);
5450 end Init_Normalized_First_Bit
;
5452 procedure Init_Normalized_First_Bit
(Id
: E
; V
: Int
) is
5454 Set_Uint8
(Id
, UI_From_Int
(V
));
5455 end Init_Normalized_First_Bit
;
5457 procedure Init_Normalized_Position
(Id
: E
) is
5459 Set_Uint14
(Id
, No_Uint
);
5460 end Init_Normalized_Position
;
5462 procedure Init_Normalized_Position
(Id
: E
; V
: Int
) is
5464 Set_Uint14
(Id
, UI_From_Int
(V
));
5465 end Init_Normalized_Position
;
5467 procedure Init_Normalized_Position_Max
(Id
: E
) is
5469 Set_Uint10
(Id
, No_Uint
);
5470 end Init_Normalized_Position_Max
;
5472 procedure Init_Normalized_Position_Max
(Id
: E
; V
: Int
) is
5474 Set_Uint10
(Id
, UI_From_Int
(V
));
5475 end Init_Normalized_Position_Max
;
5477 procedure Init_RM_Size
(Id
: E
) is
5479 Set_Uint13
(Id
, Uint_0
);
5482 procedure Init_RM_Size
(Id
: E
; V
: Int
) is
5484 Set_Uint13
(Id
, UI_From_Int
(V
));
5487 -----------------------------
5488 -- Init_Component_Location --
5489 -----------------------------
5491 procedure Init_Component_Location
(Id
: E
) is
5493 Set_Uint8
(Id
, No_Uint
); -- Normalized_First_Bit
5494 Set_Uint10
(Id
, No_Uint
); -- Normalized_Position_Max
5495 Set_Uint11
(Id
, No_Uint
); -- Component_Bit_Offset
5496 Set_Uint12
(Id
, Uint_0
); -- Esize
5497 Set_Uint14
(Id
, No_Uint
); -- Normalized_Position
5498 end Init_Component_Location
;
5500 ----------------------------
5501 -- Init_Object_Size_Align --
5502 ----------------------------
5504 procedure Init_Object_Size_Align
(Id
: E
) is
5506 Set_Uint12
(Id
, Uint_0
); -- Esize
5507 Set_Uint14
(Id
, Uint_0
); -- Alignment
5508 end Init_Object_Size_Align
;
5514 procedure Init_Size
(Id
: E
; V
: Int
) is
5516 pragma Assert
(not Is_Object
(Id
));
5517 Set_Uint12
(Id
, UI_From_Int
(V
)); -- Esize
5518 Set_Uint13
(Id
, UI_From_Int
(V
)); -- RM_Size
5521 ---------------------
5522 -- Init_Size_Align --
5523 ---------------------
5525 procedure Init_Size_Align
(Id
: E
) is
5527 pragma Assert
(not Is_Object
(Id
));
5528 Set_Uint12
(Id
, Uint_0
); -- Esize
5529 Set_Uint13
(Id
, Uint_0
); -- RM_Size
5530 Set_Uint14
(Id
, Uint_0
); -- Alignment
5531 end Init_Size_Align
;
5533 ----------------------------------------------
5534 -- Type Representation Attribute Predicates --
5535 ----------------------------------------------
5537 function Known_Alignment
(E
: Entity_Id
) return B
is
5539 return Uint14
(E
) /= Uint_0
5540 and then Uint14
(E
) /= No_Uint
;
5541 end Known_Alignment
;
5543 function Known_Component_Bit_Offset
(E
: Entity_Id
) return B
is
5545 return Uint11
(E
) /= No_Uint
;
5546 end Known_Component_Bit_Offset
;
5548 function Known_Component_Size
(E
: Entity_Id
) return B
is
5550 return Uint22
(Base_Type
(E
)) /= Uint_0
5551 and then Uint22
(Base_Type
(E
)) /= No_Uint
;
5552 end Known_Component_Size
;
5554 function Known_Esize
(E
: Entity_Id
) return B
is
5556 return Uint12
(E
) /= Uint_0
5557 and then Uint12
(E
) /= No_Uint
;
5560 function Known_Normalized_First_Bit
(E
: Entity_Id
) return B
is
5562 return Uint8
(E
) /= No_Uint
;
5563 end Known_Normalized_First_Bit
;
5565 function Known_Normalized_Position
(E
: Entity_Id
) return B
is
5567 return Uint14
(E
) /= No_Uint
;
5568 end Known_Normalized_Position
;
5570 function Known_Normalized_Position_Max
(E
: Entity_Id
) return B
is
5572 return Uint10
(E
) /= No_Uint
;
5573 end Known_Normalized_Position_Max
;
5575 function Known_RM_Size
(E
: Entity_Id
) return B
is
5577 return Uint13
(E
) /= No_Uint
5578 and then (Uint13
(E
) /= Uint_0
5579 or else Is_Discrete_Type
(E
)
5580 or else Is_Fixed_Point_Type
(E
));
5583 function Known_Static_Component_Bit_Offset
(E
: Entity_Id
) return B
is
5585 return Uint11
(E
) /= No_Uint
5586 and then Uint11
(E
) >= Uint_0
;
5587 end Known_Static_Component_Bit_Offset
;
5589 function Known_Static_Component_Size
(E
: Entity_Id
) return B
is
5591 return Uint22
(Base_Type
(E
)) > Uint_0
;
5592 end Known_Static_Component_Size
;
5594 function Known_Static_Esize
(E
: Entity_Id
) return B
is
5596 return Uint12
(E
) > Uint_0
5597 and then not Is_Generic_Type
(E
);
5598 end Known_Static_Esize
;
5600 function Known_Static_Normalized_First_Bit
(E
: Entity_Id
) return B
is
5602 return Uint8
(E
) /= No_Uint
5603 and then Uint8
(E
) >= Uint_0
;
5604 end Known_Static_Normalized_First_Bit
;
5606 function Known_Static_Normalized_Position
(E
: Entity_Id
) return B
is
5608 return Uint14
(E
) /= No_Uint
5609 and then Uint14
(E
) >= Uint_0
;
5610 end Known_Static_Normalized_Position
;
5612 function Known_Static_Normalized_Position_Max
(E
: Entity_Id
) return B
is
5614 return Uint10
(E
) /= No_Uint
5615 and then Uint10
(E
) >= Uint_0
;
5616 end Known_Static_Normalized_Position_Max
;
5618 function Known_Static_RM_Size
(E
: Entity_Id
) return B
is
5620 return (Uint13
(E
) > Uint_0
5621 or else Is_Discrete_Type
(E
)
5622 or else Is_Fixed_Point_Type
(E
))
5623 and then not Is_Generic_Type
(E
);
5624 end Known_Static_RM_Size
;
5626 function Unknown_Alignment
(E
: Entity_Id
) return B
is
5628 return Uint14
(E
) = Uint_0
5629 or else Uint14
(E
) = No_Uint
;
5630 end Unknown_Alignment
;
5632 function Unknown_Component_Bit_Offset
(E
: Entity_Id
) return B
is
5634 return Uint11
(E
) = No_Uint
;
5635 end Unknown_Component_Bit_Offset
;
5637 function Unknown_Component_Size
(E
: Entity_Id
) return B
is
5639 return Uint22
(Base_Type
(E
)) = Uint_0
5641 Uint22
(Base_Type
(E
)) = No_Uint
;
5642 end Unknown_Component_Size
;
5644 function Unknown_Esize
(E
: Entity_Id
) return B
is
5646 return Uint12
(E
) = No_Uint
5648 Uint12
(E
) = Uint_0
;
5651 function Unknown_Normalized_First_Bit
(E
: Entity_Id
) return B
is
5653 return Uint8
(E
) = No_Uint
;
5654 end Unknown_Normalized_First_Bit
;
5656 function Unknown_Normalized_Position
(E
: Entity_Id
) return B
is
5658 return Uint14
(E
) = No_Uint
;
5659 end Unknown_Normalized_Position
;
5661 function Unknown_Normalized_Position_Max
(E
: Entity_Id
) return B
is
5663 return Uint10
(E
) = No_Uint
;
5664 end Unknown_Normalized_Position_Max
;
5666 function Unknown_RM_Size
(E
: Entity_Id
) return B
is
5668 return (Uint13
(E
) = Uint_0
5669 and then not Is_Discrete_Type
(E
)
5670 and then not Is_Fixed_Point_Type
(E
))
5671 or else Uint13
(E
) = No_Uint
;
5672 end Unknown_RM_Size
;
5674 --------------------
5675 -- Address_Clause --
5676 --------------------
5678 function Address_Clause
(Id
: E
) return N
is
5680 return Rep_Clause
(Id
, Name_Address
);
5687 function Aft_Value
(Id
: E
) return U
is
5689 Delta_Val
: Ureal
:= Delta_Value
(Id
);
5691 while Delta_Val
< Ureal_Tenth
loop
5692 Delta_Val
:= Delta_Val
* Ureal_10
;
5693 Result
:= Result
+ 1;
5696 return UI_From_Int
(Result
);
5699 ----------------------
5700 -- Alignment_Clause --
5701 ----------------------
5703 function Alignment_Clause
(Id
: E
) return N
is
5705 return Rep_Clause
(Id
, Name_Alignment
);
5706 end Alignment_Clause
;
5712 procedure Append_Entity
(Id
: Entity_Id
; V
: Entity_Id
) is
5714 if Last_Entity
(V
) = Empty
then
5715 Set_First_Entity
(Id
=> V
, V
=> Id
);
5717 Set_Next_Entity
(Last_Entity
(V
), Id
);
5720 Set_Next_Entity
(Id
, Empty
);
5722 Set_Last_Entity
(Id
=> V
, V
=> Id
);
5729 function Base_Type
(Id
: E
) return E
is
5731 if Is_Base_Type
(Id
) then
5734 pragma Assert
(Is_Type
(Id
));
5739 -------------------------
5740 -- Component_Alignment --
5741 -------------------------
5743 -- Component Alignment is encoded using two flags, Flag128/129 as
5744 -- follows. Note that both flags False = Align_Default, so that the
5745 -- default initialization of flags to False initializes component
5746 -- alignment to the default value as required.
5748 -- Flag128 Flag129 Value
5749 -- ------- ------- -----
5750 -- False False Calign_Default
5751 -- False True Calign_Component_Size
5752 -- True False Calign_Component_Size_4
5753 -- True True Calign_Storage_Unit
5755 function Component_Alignment
(Id
: E
) return C
is
5756 BT
: constant Node_Id
:= Base_Type
(Id
);
5759 pragma Assert
(Is_Array_Type
(Id
) or else Is_Record_Type
(Id
));
5761 if Flag128
(BT
) then
5762 if Flag129
(BT
) then
5763 return Calign_Storage_Unit
;
5765 return Calign_Component_Size_4
;
5769 if Flag129
(BT
) then
5770 return Calign_Component_Size
;
5772 return Calign_Default
;
5775 end Component_Alignment
;
5777 ----------------------
5778 -- Declaration_Node --
5779 ----------------------
5781 function Declaration_Node
(Id
: E
) return N
is
5785 if Ekind
(Id
) = E_Incomplete_Type
5786 and then Present
(Full_View
(Id
))
5788 P
:= Parent
(Full_View
(Id
));
5794 if Nkind
(P
) /= N_Selected_Component
5795 and then Nkind
(P
) /= N_Expanded_Name
5797 not (Nkind
(P
) = N_Defining_Program_Unit_Name
5798 and then Is_Child_Unit
(Id
))
5805 end Declaration_Node
;
5807 ---------------------
5808 -- Designated_Type --
5809 ---------------------
5811 function Designated_Type
(Id
: E
) return E
is
5815 Desig_Type
:= Directly_Designated_Type
(Id
);
5817 if Ekind
(Desig_Type
) = E_Incomplete_Type
5818 and then Present
(Full_View
(Desig_Type
))
5820 return Full_View
(Desig_Type
);
5822 elsif Is_Class_Wide_Type
(Desig_Type
)
5823 and then Ekind
(Etype
(Desig_Type
)) = E_Incomplete_Type
5824 and then Present
(Full_View
(Etype
(Desig_Type
)))
5825 and then Present
(Class_Wide_Type
(Full_View
(Etype
(Desig_Type
))))
5827 return Class_Wide_Type
(Full_View
(Etype
(Desig_Type
)));
5832 end Designated_Type
;
5834 ----------------------
5835 -- Entry_Index_Type --
5836 ----------------------
5838 function Entry_Index_Type
(Id
: E
) return N
is
5840 pragma Assert
(Ekind
(Id
) = E_Entry_Family
);
5841 return Etype
(Discrete_Subtype_Definition
(Parent
(Id
)));
5842 end Entry_Index_Type
;
5844 ---------------------
5845 -- First_Component --
5846 ---------------------
5848 function First_Component
(Id
: E
) return E
is
5853 (Is_Record_Type
(Id
) or else Is_Incomplete_Or_Private_Type
(Id
));
5855 Comp_Id
:= First_Entity
(Id
);
5856 while Present
(Comp_Id
) loop
5857 exit when Ekind
(Comp_Id
) = E_Component
;
5858 Comp_Id
:= Next_Entity
(Comp_Id
);
5862 end First_Component
;
5864 -------------------------------------
5865 -- First_Component_Or_Discriminant --
5866 -------------------------------------
5868 function First_Component_Or_Discriminant
(Id
: E
) return E
is
5873 (Is_Record_Type
(Id
) or else Is_Incomplete_Or_Private_Type
(Id
));
5875 Comp_Id
:= First_Entity
(Id
);
5876 while Present
(Comp_Id
) loop
5877 exit when Ekind
(Comp_Id
) = E_Component
5879 Ekind
(Comp_Id
) = E_Discriminant
;
5880 Comp_Id
:= Next_Entity
(Comp_Id
);
5884 end First_Component_Or_Discriminant
;
5890 function First_Formal
(Id
: E
) return E
is
5895 (Is_Overloadable
(Id
)
5896 or else Ekind_In
(Id
, E_Entry_Family
,
5898 E_Subprogram_Type
));
5900 if Ekind
(Id
) = E_Enumeration_Literal
then
5904 Formal
:= First_Entity
(Id
);
5906 if Present
(Formal
) and then Is_Formal
(Formal
) then
5914 ------------------------------
5915 -- First_Formal_With_Extras --
5916 ------------------------------
5918 function First_Formal_With_Extras
(Id
: E
) return E
is
5923 (Is_Overloadable
(Id
)
5924 or else Ekind_In
(Id
, E_Entry_Family
,
5926 E_Subprogram_Type
));
5928 if Ekind
(Id
) = E_Enumeration_Literal
then
5932 Formal
:= First_Entity
(Id
);
5934 if Present
(Formal
) and then Is_Formal
(Formal
) then
5937 return Extra_Formals
(Id
); -- Empty if no extra formals
5940 end First_Formal_With_Extras
;
5942 -------------------------------------
5943 -- Get_Attribute_Definition_Clause --
5944 -------------------------------------
5946 function Get_Attribute_Definition_Clause
5948 Id
: Attribute_Id
) return Node_Id
5953 N
:= First_Rep_Item
(E
);
5954 while Present
(N
) loop
5955 if Nkind
(N
) = N_Attribute_Definition_Clause
5956 and then Get_Attribute_Id
(Chars
(N
)) = Id
5965 end Get_Attribute_Definition_Clause
;
5971 function Get_Full_View
(T
: Entity_Id
) return Entity_Id
is
5973 if Ekind
(T
) = E_Incomplete_Type
and then Present
(Full_View
(T
)) then
5974 return Full_View
(T
);
5976 elsif Is_Class_Wide_Type
(T
)
5977 and then Ekind
(Root_Type
(T
)) = E_Incomplete_Type
5978 and then Present
(Full_View
(Root_Type
(T
)))
5980 return Class_Wide_Type
(Full_View
(Root_Type
(T
)));
5987 --------------------------------------
5988 -- Get_Record_Representation_Clause --
5989 --------------------------------------
5991 function Get_Record_Representation_Clause
(E
: Entity_Id
) return Node_Id
is
5995 N
:= First_Rep_Item
(E
);
5996 while Present
(N
) loop
5997 if Nkind
(N
) = N_Record_Representation_Clause
then
6005 end Get_Record_Representation_Clause
;
6007 -----------------------------
6008 -- Get_Rep_Item_For_Entity --
6009 -----------------------------
6011 function Get_Rep_Item_For_Entity
6013 Nam
: Name_Id
) return Node_Id
6019 N
:= First_Rep_Item
(E
);
6020 while Present
(N
) loop
6021 if Nkind
(N
) = N_Pragma
and then Pragma_Name
(N
) = Nam
then
6022 Arg
:= Get_Pragma_Arg
(First
(Pragma_Argument_Associations
(N
)));
6024 if Is_Entity_Name
(Arg
) and then Entity
(Arg
) = E
then
6028 elsif Nkind
(N
) = N_Attribute_Definition_Clause
6029 and then Chars
(N
) = Nam
6030 and then Entity
(N
) = E
6034 elsif Nkind
(N
) = N_Aspect_Specification
6035 and then Chars
(Identifier
(N
)) = Nam
6036 and then Entity
(N
) = E
6045 end Get_Rep_Item_For_Entity
;
6047 --------------------
6048 -- Get_Rep_Pragma --
6049 --------------------
6051 function Get_Rep_Pragma
(E
: Entity_Id
; Nam
: Name_Id
) return Node_Id
is
6055 N
:= First_Rep_Item
(E
);
6056 while Present
(N
) loop
6057 if Nkind
(N
) = N_Pragma
and then Pragma_Name
(N
) = Nam
then
6067 ------------------------
6068 -- Has_Attach_Handler --
6069 ------------------------
6071 function Has_Attach_Handler
(Id
: E
) return B
is
6075 pragma Assert
(Is_Protected_Type
(Id
));
6077 Ritem
:= First_Rep_Item
(Id
);
6078 while Present
(Ritem
) loop
6079 if Nkind
(Ritem
) = N_Pragma
6080 and then Pragma_Name
(Ritem
) = Name_Attach_Handler
6084 Next_Rep_Item
(Ritem
);
6089 end Has_Attach_Handler
;
6091 -------------------------------------
6092 -- Has_Attribute_Definition_Clause --
6093 -------------------------------------
6095 function Has_Attribute_Definition_Clause
6097 Id
: Attribute_Id
) return Boolean
6100 return Present
(Get_Attribute_Definition_Clause
(E
, Id
));
6101 end Has_Attribute_Definition_Clause
;
6107 function Has_Entries
(Id
: E
) return B
is
6111 pragma Assert
(Is_Concurrent_Type
(Id
));
6113 Ent
:= First_Entity
(Id
);
6114 while Present
(Ent
) loop
6115 if Is_Entry
(Ent
) then
6119 Ent
:= Next_Entity
(Ent
);
6125 ----------------------------
6126 -- Has_Foreign_Convention --
6127 ----------------------------
6129 function Has_Foreign_Convention
(Id
: E
) return B
is
6131 -- While regular Intrinsics such as the Standard operators fit in the
6132 -- "Ada" convention, those with an Interface_Name materialize GCC
6133 -- builtin imports for which Ada special treatments shouldn't apply.
6135 return Convention
(Id
) in Foreign_Convention
6136 or else (Convention
(Id
) = Convention_Intrinsic
6137 and then Present
(Interface_Name
(Id
)));
6138 end Has_Foreign_Convention
;
6140 ---------------------------
6141 -- Has_Interrupt_Handler --
6142 ---------------------------
6144 function Has_Interrupt_Handler
(Id
: E
) return B
is
6148 pragma Assert
(Is_Protected_Type
(Id
));
6150 Ritem
:= First_Rep_Item
(Id
);
6151 while Present
(Ritem
) loop
6152 if Nkind
(Ritem
) = N_Pragma
6153 and then Pragma_Name
(Ritem
) = Name_Interrupt_Handler
6157 Next_Rep_Item
(Ritem
);
6162 end Has_Interrupt_Handler
;
6164 --------------------
6165 -- Has_Rep_Pragma --
6166 --------------------
6168 function Has_Rep_Pragma
(E
: Entity_Id
; Nam
: Name_Id
) return Boolean is
6170 return Present
(Get_Rep_Pragma
(E
, Nam
));
6173 --------------------
6174 -- Has_Unmodified --
6175 --------------------
6177 function Has_Unmodified
(E
: Entity_Id
) return Boolean is
6179 if Has_Pragma_Unmodified
(E
) then
6181 elsif Warnings_Off
(E
) then
6182 Set_Warnings_Off_Used_Unmodified
(E
);
6189 ---------------------
6190 -- Has_Unreferenced --
6191 ---------------------
6193 function Has_Unreferenced
(E
: Entity_Id
) return Boolean is
6195 if Has_Pragma_Unreferenced
(E
) then
6197 elsif Warnings_Off
(E
) then
6198 Set_Warnings_Off_Used_Unreferenced
(E
);
6203 end Has_Unreferenced
;
6205 ----------------------
6206 -- Has_Warnings_Off --
6207 ----------------------
6209 function Has_Warnings_Off
(E
: Entity_Id
) return Boolean is
6211 if Warnings_Off
(E
) then
6212 Set_Warnings_Off_Used
(E
);
6217 end Has_Warnings_Off
;
6219 ------------------------------
6220 -- Implementation_Base_Type --
6221 ------------------------------
6223 function Implementation_Base_Type
(Id
: E
) return E
is
6228 Bastyp
:= Base_Type
(Id
);
6230 if Is_Incomplete_Or_Private_Type
(Bastyp
) then
6231 Imptyp
:= Underlying_Type
(Bastyp
);
6233 -- If we have an implementation type, then just return it,
6234 -- otherwise we return the Base_Type anyway. This can only
6235 -- happen in error situations and should avoid some error bombs.
6237 if Present
(Imptyp
) then
6238 return Base_Type
(Imptyp
);
6246 end Implementation_Base_Type
;
6248 -------------------------
6249 -- Invariant_Procedure --
6250 -------------------------
6252 function Invariant_Procedure
(Id
: E
) return E
is
6256 pragma Assert
(Is_Type
(Id
) and then Has_Invariants
(Id
));
6258 if No
(Subprograms_For_Type
(Id
)) then
6262 S
:= Subprograms_For_Type
(Id
);
6263 while Present
(S
) loop
6264 if Has_Invariants
(S
) then
6267 S
:= Subprograms_For_Type
(S
);
6273 end Invariant_Procedure
;
6279 -- Global flag table allowing rapid computation of this function
6281 Entity_Is_Base_Type
: constant array (Entity_Kind
) of Boolean :=
6282 (E_Enumeration_Subtype |
6284 E_Signed_Integer_Subtype |
6285 E_Modular_Integer_Subtype |
6286 E_Floating_Point_Subtype |
6287 E_Ordinary_Fixed_Point_Subtype |
6288 E_Decimal_Fixed_Point_Subtype |
6293 E_Record_Subtype_With_Private |
6294 E_Limited_Private_Subtype |
6296 E_Protected_Subtype |
6298 E_String_Literal_Subtype |
6299 E_Class_Wide_Subtype
=> False,
6302 function Is_Base_Type
(Id
: E
) return Boolean is
6304 return Entity_Is_Base_Type
(Ekind
(Id
));
6307 ---------------------
6308 -- Is_Boolean_Type --
6309 ---------------------
6311 function Is_Boolean_Type
(Id
: E
) return B
is
6313 return Root_Type
(Id
) = Standard_Boolean
;
6314 end Is_Boolean_Type
;
6316 ------------------------
6317 -- Is_Constant_Object --
6318 ------------------------
6320 function Is_Constant_Object
(Id
: E
) return B
is
6321 K
: constant Entity_Kind
:= Ekind
(Id
);
6324 K
= E_Constant
or else K
= E_In_Parameter
or else K
= E_Loop_Parameter
;
6325 end Is_Constant_Object
;
6327 --------------------
6328 -- Is_Discriminal --
6329 --------------------
6331 function Is_Discriminal
(Id
: E
) return B
is
6333 return (Ekind_In
(Id
, E_Constant
, E_In_Parameter
)
6334 and then Present
(Discriminal_Link
(Id
)));
6337 ----------------------
6338 -- Is_Dynamic_Scope --
6339 ----------------------
6341 function Is_Dynamic_Scope
(Id
: E
) return B
is
6344 Ekind
(Id
) = E_Block
6346 Ekind
(Id
) = E_Function
6348 Ekind
(Id
) = E_Procedure
6350 Ekind
(Id
) = E_Subprogram_Body
6352 Ekind
(Id
) = E_Task_Type
6354 (Ekind
(Id
) = E_Limited_Private_Type
6355 and then Present
(Full_View
(Id
))
6356 and then Ekind
(Full_View
(Id
)) = E_Task_Type
)
6358 Ekind
(Id
) = E_Entry
6360 Ekind
(Id
) = E_Entry_Family
6362 Ekind
(Id
) = E_Return_Statement
;
6363 end Is_Dynamic_Scope
;
6365 --------------------
6366 -- Is_Entity_Name --
6367 --------------------
6369 function Is_Entity_Name
(N
: Node_Id
) return Boolean is
6370 Kind
: constant Node_Kind
:= Nkind
(N
);
6373 -- Identifiers, operator symbols, expanded names are entity names
6375 return Kind
= N_Identifier
6376 or else Kind
= N_Operator_Symbol
6377 or else Kind
= N_Expanded_Name
6379 -- Attribute references are entity names if they refer to an entity.
6380 -- Note that we don't do this by testing for the presence of the
6381 -- Entity field in the N_Attribute_Reference node, since it may not
6382 -- have been set yet.
6384 or else (Kind
= N_Attribute_Reference
6385 and then Is_Entity_Attribute_Name
(Attribute_Name
(N
)));
6392 function Is_Finalizer
(Id
: E
) return B
is
6394 return Ekind
(Id
) = E_Procedure
6395 and then Chars
(Id
) = Name_uFinalizer
;
6398 -----------------------------------
6399 -- Is_Package_Or_Generic_Package --
6400 -----------------------------------
6402 function Is_Package_Or_Generic_Package
(Id
: E
) return B
is
6405 Ekind
(Id
) = E_Package
6407 Ekind
(Id
) = E_Generic_Package
;
6408 end Is_Package_Or_Generic_Package
;
6410 ------------------------
6411 -- Predicate_Function --
6412 ------------------------
6414 function Predicate_Function
(Id
: E
) return E
is
6418 pragma Assert
(Is_Type
(Id
));
6420 if No
(Subprograms_For_Type
(Id
)) then
6424 S
:= Subprograms_For_Type
(Id
);
6425 while Present
(S
) loop
6426 if Has_Predicates
(S
) then
6429 S
:= Subprograms_For_Type
(S
);
6435 end Predicate_Function
;
6441 function Is_Prival
(Id
: E
) return B
is
6443 return (Ekind_In
(Id
, E_Constant
, E_Variable
)
6444 and then Present
(Prival_Link
(Id
)));
6447 ----------------------------
6448 -- Is_Protected_Component --
6449 ----------------------------
6451 function Is_Protected_Component
(Id
: E
) return B
is
6453 return Ekind
(Id
) = E_Component
6454 and then Is_Protected_Type
(Scope
(Id
));
6455 end Is_Protected_Component
;
6457 ----------------------------
6458 -- Is_Protected_Interface --
6459 ----------------------------
6461 function Is_Protected_Interface
(Id
: E
) return B
is
6462 Typ
: constant Entity_Id
:= Base_Type
(Id
);
6464 if not Is_Interface
(Typ
) then
6466 elsif Is_Class_Wide_Type
(Typ
) then
6467 return Is_Protected_Interface
(Etype
(Typ
));
6469 return Protected_Present
(Type_Definition
(Parent
(Typ
)));
6471 end Is_Protected_Interface
;
6473 ------------------------------
6474 -- Is_Protected_Record_Type --
6475 ------------------------------
6477 function Is_Protected_Record_Type
(Id
: E
) return B
is
6480 Is_Concurrent_Record_Type
(Id
)
6481 and then Is_Protected_Type
(Corresponding_Concurrent_Type
(Id
));
6482 end Is_Protected_Record_Type
;
6484 --------------------------------
6485 -- Is_Standard_Character_Type --
6486 --------------------------------
6488 function Is_Standard_Character_Type
(Id
: E
) return B
is
6490 if Is_Type
(Id
) then
6492 R
: constant Entity_Id
:= Root_Type
(Id
);
6495 R
= Standard_Character
6497 R
= Standard_Wide_Character
6499 R
= Standard_Wide_Wide_Character
;
6505 end Is_Standard_Character_Type
;
6507 --------------------
6508 -- Is_String_Type --
6509 --------------------
6511 function Is_String_Type
(Id
: E
) return B
is
6513 return Ekind
(Id
) in String_Kind
6514 or else (Is_Array_Type
(Id
)
6515 and then Id
/= Any_Composite
6516 and then Number_Dimensions
(Id
) = 1
6517 and then Is_Character_Type
(Component_Type
(Id
)));
6520 -------------------------------
6521 -- Is_Synchronized_Interface --
6522 -------------------------------
6524 function Is_Synchronized_Interface
(Id
: E
) return B
is
6525 Typ
: constant Entity_Id
:= Base_Type
(Id
);
6528 if not Is_Interface
(Typ
) then
6531 elsif Is_Class_Wide_Type
(Typ
) then
6532 return Is_Synchronized_Interface
(Etype
(Typ
));
6535 return Protected_Present
(Type_Definition
(Parent
(Typ
)))
6536 or else Synchronized_Present
(Type_Definition
(Parent
(Typ
)))
6537 or else Task_Present
(Type_Definition
(Parent
(Typ
)));
6539 end Is_Synchronized_Interface
;
6541 -----------------------
6542 -- Is_Task_Interface --
6543 -----------------------
6545 function Is_Task_Interface
(Id
: E
) return B
is
6546 Typ
: constant Entity_Id
:= Base_Type
(Id
);
6548 if not Is_Interface
(Typ
) then
6550 elsif Is_Class_Wide_Type
(Typ
) then
6551 return Is_Task_Interface
(Etype
(Typ
));
6553 return Task_Present
(Type_Definition
(Parent
(Typ
)));
6555 end Is_Task_Interface
;
6557 -------------------------
6558 -- Is_Task_Record_Type --
6559 -------------------------
6561 function Is_Task_Record_Type
(Id
: E
) return B
is
6564 Is_Concurrent_Record_Type
(Id
)
6565 and then Is_Task_Type
(Corresponding_Concurrent_Type
(Id
));
6566 end Is_Task_Record_Type
;
6568 ------------------------
6569 -- Is_Wrapper_Package --
6570 ------------------------
6572 function Is_Wrapper_Package
(Id
: E
) return B
is
6574 return (Ekind
(Id
) = E_Package
6575 and then Present
(Related_Instance
(Id
)));
6576 end Is_Wrapper_Package
;
6582 function Last_Formal
(Id
: E
) return E
is
6587 (Is_Overloadable
(Id
)
6588 or else Ekind_In
(Id
, E_Entry_Family
,
6590 E_Subprogram_Type
));
6592 if Ekind
(Id
) = E_Enumeration_Literal
then
6596 Formal
:= First_Formal
(Id
);
6598 if Present
(Formal
) then
6599 while Present
(Next_Formal
(Formal
)) loop
6600 Formal
:= Next_Formal
(Formal
);
6608 function Model_Emin_Value
(Id
: E
) return Uint
is
6610 return Machine_Emin_Value
(Id
);
6611 end Model_Emin_Value
;
6613 -------------------------
6614 -- Model_Epsilon_Value --
6615 -------------------------
6617 function Model_Epsilon_Value
(Id
: E
) return Ureal
is
6618 Radix
: constant Ureal
:= UR_From_Uint
(Machine_Radix_Value
(Id
));
6620 return Radix
** (1 - Model_Mantissa_Value
(Id
));
6621 end Model_Epsilon_Value
;
6623 --------------------------
6624 -- Model_Mantissa_Value --
6625 --------------------------
6627 function Model_Mantissa_Value
(Id
: E
) return Uint
is
6629 return Machine_Mantissa_Value
(Id
);
6630 end Model_Mantissa_Value
;
6632 -----------------------
6633 -- Model_Small_Value --
6634 -----------------------
6636 function Model_Small_Value
(Id
: E
) return Ureal
is
6637 Radix
: constant Ureal
:= UR_From_Uint
(Machine_Radix_Value
(Id
));
6639 return Radix
** (Model_Emin_Value
(Id
) - 1);
6640 end Model_Small_Value
;
6642 ------------------------
6643 -- Machine_Emax_Value --
6644 ------------------------
6646 function Machine_Emax_Value
(Id
: E
) return Uint
is
6647 Digs
: constant Pos
:= UI_To_Int
(Digits_Value
(Base_Type
(Id
)));
6650 case Float_Rep
(Id
) is
6653 when 1 .. 6 => return Uint_128
;
6654 when 7 .. 15 => return 2**10;
6655 when 16 .. 33 => return 2**14;
6656 when others => return No_Uint
;
6661 when 1 .. 9 => return 2**7 - 1;
6662 when 10 .. 15 => return 2**10 - 1;
6663 when others => return No_Uint
;
6667 return Uint_2
** Uint_7
- Uint_1
;
6669 end Machine_Emax_Value
;
6671 ------------------------
6672 -- Machine_Emin_Value --
6673 ------------------------
6675 function Machine_Emin_Value
(Id
: E
) return Uint
is
6677 case Float_Rep
(Id
) is
6678 when IEEE_Binary
=> return Uint_3
- Machine_Emax_Value
(Id
);
6679 when VAX_Native
=> return -Machine_Emax_Value
(Id
);
6680 when AAMP
=> return -Machine_Emax_Value
(Id
);
6682 end Machine_Emin_Value
;
6684 ----------------------------
6685 -- Machine_Mantissa_Value --
6686 ----------------------------
6688 function Machine_Mantissa_Value
(Id
: E
) return Uint
is
6689 Digs
: constant Pos
:= UI_To_Int
(Digits_Value
(Base_Type
(Id
)));
6692 case Float_Rep
(Id
) is
6695 when 1 .. 6 => return Uint_24
;
6696 when 7 .. 15 => return UI_From_Int
(53);
6697 when 16 .. 18 => return Uint_64
;
6698 when 19 .. 33 => return UI_From_Int
(113);
6699 when others => return No_Uint
;
6704 when 1 .. 6 => return Uint_24
;
6705 when 7 .. 9 => return UI_From_Int
(56);
6706 when 10 .. 15 => return UI_From_Int
(53);
6707 when others => return No_Uint
;
6712 when 1 .. 6 => return Uint_24
;
6713 when 7 .. 9 => return UI_From_Int
(40);
6714 when others => return No_Uint
;
6717 end Machine_Mantissa_Value
;
6719 -------------------------
6720 -- Machine_Radix_Value --
6721 -------------------------
6723 function Machine_Radix_Value
(Id
: E
) return U
is
6725 case Float_Rep
(Id
) is
6726 when IEEE_Binary | VAX_Native | AAMP
=>
6729 end Machine_Radix_Value
;
6731 --------------------
6732 -- Next_Component --
6733 --------------------
6735 function Next_Component
(Id
: E
) return E
is
6739 Comp_Id
:= Next_Entity
(Id
);
6740 while Present
(Comp_Id
) loop
6741 exit when Ekind
(Comp_Id
) = E_Component
;
6742 Comp_Id
:= Next_Entity
(Comp_Id
);
6748 ------------------------------------
6749 -- Next_Component_Or_Discriminant --
6750 ------------------------------------
6752 function Next_Component_Or_Discriminant
(Id
: E
) return E
is
6756 Comp_Id
:= Next_Entity
(Id
);
6757 while Present
(Comp_Id
) loop
6758 exit when Ekind_In
(Comp_Id
, E_Component
, E_Discriminant
);
6759 Comp_Id
:= Next_Entity
(Comp_Id
);
6763 end Next_Component_Or_Discriminant
;
6765 -----------------------
6766 -- Next_Discriminant --
6767 -----------------------
6769 -- This function actually implements both Next_Discriminant and
6770 -- Next_Stored_Discriminant by making sure that the Discriminant
6771 -- returned is of the same variety as Id.
6773 function Next_Discriminant
(Id
: E
) return E
is
6775 -- Derived Tagged types with private extensions look like this...
6777 -- E_Discriminant d1
6778 -- E_Discriminant d2
6780 -- E_Discriminant d1
6781 -- E_Discriminant d2
6784 -- so it is critical not to go past the leading discriminants
6789 pragma Assert
(Ekind
(Id
) = E_Discriminant
);
6792 D
:= Next_Entity
(D
);
6794 or else (Ekind
(D
) /= E_Discriminant
6795 and then not Is_Itype
(D
))
6800 exit when Ekind
(D
) = E_Discriminant
6801 and then (Is_Completely_Hidden
(D
) = Is_Completely_Hidden
(Id
));
6805 end Next_Discriminant
;
6811 function Next_Formal
(Id
: E
) return E
is
6815 -- Follow the chain of declared entities as long as the kind of the
6816 -- entity corresponds to a formal parameter. Skip internal entities
6817 -- that may have been created for implicit subtypes, in the process
6818 -- of analyzing default expressions.
6822 P
:= Next_Entity
(P
);
6824 if No
(P
) or else Is_Formal
(P
) then
6826 elsif not Is_Internal
(P
) then
6832 -----------------------------
6833 -- Next_Formal_With_Extras --
6834 -----------------------------
6836 function Next_Formal_With_Extras
(Id
: E
) return E
is
6838 if Present
(Extra_Formal
(Id
)) then
6839 return Extra_Formal
(Id
);
6841 return Next_Formal
(Id
);
6843 end Next_Formal_With_Extras
;
6849 function Next_Index
(Id
: Node_Id
) return Node_Id
is
6858 function Next_Literal
(Id
: E
) return E
is
6860 pragma Assert
(Nkind
(Id
) in N_Entity
);
6864 ------------------------------
6865 -- Next_Stored_Discriminant --
6866 ------------------------------
6868 function Next_Stored_Discriminant
(Id
: E
) return E
is
6870 -- See comment in Next_Discriminant
6872 return Next_Discriminant
(Id
);
6873 end Next_Stored_Discriminant
;
6875 -----------------------
6876 -- Number_Dimensions --
6877 -----------------------
6879 function Number_Dimensions
(Id
: E
) return Pos
is
6884 if Ekind
(Id
) in String_Kind
then
6889 T
:= First_Index
(Id
);
6890 while Present
(T
) loop
6897 end Number_Dimensions
;
6899 --------------------
6900 -- Number_Entries --
6901 --------------------
6903 function Number_Entries
(Id
: E
) return Nat
is
6908 pragma Assert
(Is_Concurrent_Type
(Id
));
6911 Ent
:= First_Entity
(Id
);
6912 while Present
(Ent
) loop
6913 if Is_Entry
(Ent
) then
6917 Ent
:= Next_Entity
(Ent
);
6923 --------------------
6924 -- Number_Formals --
6925 --------------------
6927 function Number_Formals
(Id
: E
) return Pos
is
6933 Formal
:= First_Formal
(Id
);
6934 while Present
(Formal
) loop
6936 Formal
:= Next_Formal
(Formal
);
6942 --------------------
6943 -- Parameter_Mode --
6944 --------------------
6946 function Parameter_Mode
(Id
: E
) return Formal_Kind
is
6951 --------------------------
6952 -- Primitive_Operations --
6953 --------------------------
6955 function Primitive_Operations
(Id
: E
) return L
is
6957 if Is_Concurrent_Type
(Id
) then
6958 if Present
(Corresponding_Record_Type
(Id
)) then
6959 return Direct_Primitive_Operations
6960 (Corresponding_Record_Type
(Id
));
6962 -- If expansion is disabled the corresponding record type is absent,
6963 -- but if the type has ancestors it may have primitive operations.
6965 elsif Is_Tagged_Type
(Id
) then
6966 return Direct_Primitive_Operations
(Id
);
6972 return Direct_Primitive_Operations
(Id
);
6974 end Primitive_Operations
;
6976 ---------------------
6977 -- Record_Rep_Item --
6978 ---------------------
6980 procedure Record_Rep_Item
(E
: Entity_Id
; N
: Node_Id
) is
6982 Set_Next_Rep_Item
(N
, First_Rep_Item
(E
));
6983 Set_First_Rep_Item
(E
, N
);
6984 end Record_Rep_Item
;
6990 function Root_Type
(Id
: E
) return E
is
6994 pragma Assert
(Nkind
(Id
) in N_Entity
);
6996 T
:= Base_Type
(Id
);
6998 if Ekind
(T
) = E_Class_Wide_Type
then
7010 -- Following test catches some error cases resulting from
7013 elsif No
(Etyp
) then
7016 elsif Is_Private_Type
(T
) and then Etyp
= Full_View
(T
) then
7019 elsif Is_Private_Type
(Etyp
) and then Full_View
(Etyp
) = T
then
7025 -- Return if there is a circularity in the inheritance chain. This
7026 -- happens in some error situations and we do not want to get
7027 -- stuck in this loop.
7029 if T
= Base_Type
(Id
) then
7036 ---------------------
7037 -- Safe_Emax_Value --
7038 ---------------------
7040 function Safe_Emax_Value
(Id
: E
) return Uint
is
7042 return Machine_Emax_Value
(Id
);
7043 end Safe_Emax_Value
;
7045 ----------------------
7046 -- Safe_First_Value --
7047 ----------------------
7049 function Safe_First_Value
(Id
: E
) return Ureal
is
7051 return -Safe_Last_Value
(Id
);
7052 end Safe_First_Value
;
7054 ---------------------
7055 -- Safe_Last_Value --
7056 ---------------------
7058 function Safe_Last_Value
(Id
: E
) return Ureal
is
7059 Radix
: constant Uint
:= Machine_Radix_Value
(Id
);
7060 Mantissa
: constant Uint
:= Machine_Mantissa_Value
(Id
);
7061 Emax
: constant Uint
:= Safe_Emax_Value
(Id
);
7062 Significand
: constant Uint
:= Radix
** Mantissa
- 1;
7063 Exponent
: constant Uint
:= Emax
- Mantissa
;
7069 (Num
=> Significand
* 2 ** (Exponent
mod 4),
7070 Den
=> -Exponent
/ 4,
7076 (Num
=> Significand
,
7080 end Safe_Last_Value
;
7086 function Scope_Depth
(Id
: E
) return Uint
is
7091 while Is_Record_Type
(Scop
) loop
7092 Scop
:= Scope
(Scop
);
7095 return Scope_Depth_Value
(Scop
);
7098 ---------------------
7099 -- Scope_Depth_Set --
7100 ---------------------
7102 function Scope_Depth_Set
(Id
: E
) return B
is
7104 return not Is_Record_Type
(Id
)
7105 and then Field22
(Id
) /= Union_Id
(Empty
);
7106 end Scope_Depth_Set
;
7108 -----------------------------
7109 -- Set_Component_Alignment --
7110 -----------------------------
7112 -- Component Alignment is encoded using two flags, Flag128/129 as
7113 -- follows. Note that both flags False = Align_Default, so that the
7114 -- default initialization of flags to False initializes component
7115 -- alignment to the default value as required.
7117 -- Flag128 Flag129 Value
7118 -- ------- ------- -----
7119 -- False False Calign_Default
7120 -- False True Calign_Component_Size
7121 -- True False Calign_Component_Size_4
7122 -- True True Calign_Storage_Unit
7124 procedure Set_Component_Alignment
(Id
: E
; V
: C
) is
7126 pragma Assert
((Is_Array_Type
(Id
) or else Is_Record_Type
(Id
))
7127 and then Is_Base_Type
(Id
));
7130 when Calign_Default
=>
7131 Set_Flag128
(Id
, False);
7132 Set_Flag129
(Id
, False);
7134 when Calign_Component_Size
=>
7135 Set_Flag128
(Id
, False);
7136 Set_Flag129
(Id
, True);
7138 when Calign_Component_Size_4
=>
7139 Set_Flag128
(Id
, True);
7140 Set_Flag129
(Id
, False);
7142 when Calign_Storage_Unit
=>
7143 Set_Flag128
(Id
, True);
7144 Set_Flag129
(Id
, True);
7146 end Set_Component_Alignment
;
7148 -----------------------------
7149 -- Set_Invariant_Procedure --
7150 -----------------------------
7152 procedure Set_Invariant_Procedure
(Id
: E
; V
: E
) is
7156 pragma Assert
(Is_Type
(Id
) and then Has_Invariants
(Id
));
7158 S
:= Subprograms_For_Type
(Id
);
7159 Set_Subprograms_For_Type
(Id
, V
);
7161 while Present
(S
) loop
7162 if Has_Invariants
(S
) then
7163 raise Program_Error
;
7165 S
:= Subprograms_For_Type
(S
);
7169 Set_Subprograms_For_Type
(Id
, V
);
7170 end Set_Invariant_Procedure
;
7172 ----------------------------
7173 -- Set_Predicate_Function --
7174 ----------------------------
7176 procedure Set_Predicate_Function
(Id
: E
; V
: E
) is
7180 pragma Assert
(Is_Type
(Id
) and then Has_Predicates
(Id
));
7182 S
:= Subprograms_For_Type
(Id
);
7183 Set_Subprograms_For_Type
(Id
, V
);
7185 while Present
(S
) loop
7186 if Has_Predicates
(S
) then
7187 raise Program_Error
;
7189 S
:= Subprograms_For_Type
(S
);
7193 Set_Subprograms_For_Type
(Id
, V
);
7194 end Set_Predicate_Function
;
7200 function Size_Clause
(Id
: E
) return N
is
7202 return Rep_Clause
(Id
, Name_Size
);
7205 ------------------------
7206 -- Stream_Size_Clause --
7207 ------------------------
7209 function Stream_Size_Clause
(Id
: E
) return N
is
7211 return Rep_Clause
(Id
, Name_Stream_Size
);
7212 end Stream_Size_Clause
;
7218 function Subtype_Kind
(K
: Entity_Kind
) return Entity_Kind
is
7224 Kind
:= E_Access_Subtype
;
7228 Kind
:= E_Array_Subtype
;
7230 when E_Class_Wide_Type |
7231 E_Class_Wide_Subtype
=>
7232 Kind
:= E_Class_Wide_Subtype
;
7234 when E_Decimal_Fixed_Point_Type |
7235 E_Decimal_Fixed_Point_Subtype
=>
7236 Kind
:= E_Decimal_Fixed_Point_Subtype
;
7238 when E_Ordinary_Fixed_Point_Type |
7239 E_Ordinary_Fixed_Point_Subtype
=>
7240 Kind
:= E_Ordinary_Fixed_Point_Subtype
;
7242 when E_Private_Type |
7243 E_Private_Subtype
=>
7244 Kind
:= E_Private_Subtype
;
7246 when E_Limited_Private_Type |
7247 E_Limited_Private_Subtype
=>
7248 Kind
:= E_Limited_Private_Subtype
;
7250 when E_Record_Type_With_Private |
7251 E_Record_Subtype_With_Private
=>
7252 Kind
:= E_Record_Subtype_With_Private
;
7254 when E_Record_Type |
7256 Kind
:= E_Record_Subtype
;
7258 when E_String_Type |
7260 Kind
:= E_String_Subtype
;
7262 when Enumeration_Kind
=>
7263 Kind
:= E_Enumeration_Subtype
;
7266 Kind
:= E_Floating_Point_Subtype
;
7268 when Signed_Integer_Kind
=>
7269 Kind
:= E_Signed_Integer_Subtype
;
7271 when Modular_Integer_Kind
=>
7272 Kind
:= E_Modular_Integer_Subtype
;
7274 when Protected_Kind
=>
7275 Kind
:= E_Protected_Subtype
;
7278 Kind
:= E_Task_Subtype
;
7282 raise Program_Error
;
7288 ---------------------
7289 -- Type_High_Bound --
7290 ---------------------
7292 function Type_High_Bound
(Id
: E
) return Node_Id
is
7293 Rng
: constant Node_Id
:= Scalar_Range
(Id
);
7295 if Nkind
(Rng
) = N_Subtype_Indication
then
7296 return High_Bound
(Range_Expression
(Constraint
(Rng
)));
7298 return High_Bound
(Rng
);
7300 end Type_High_Bound
;
7302 --------------------
7303 -- Type_Low_Bound --
7304 --------------------
7306 function Type_Low_Bound
(Id
: E
) return Node_Id
is
7307 Rng
: constant Node_Id
:= Scalar_Range
(Id
);
7309 if Nkind
(Rng
) = N_Subtype_Indication
then
7310 return Low_Bound
(Range_Expression
(Constraint
(Rng
)));
7312 return Low_Bound
(Rng
);
7316 ---------------------
7317 -- Underlying_Type --
7318 ---------------------
7320 function Underlying_Type
(Id
: E
) return E
is
7322 -- For record_with_private the underlying type is always the direct
7323 -- full view. Never try to take the full view of the parent it
7324 -- doesn't make sense.
7326 if Ekind
(Id
) = E_Record_Type_With_Private
then
7327 return Full_View
(Id
);
7329 elsif Ekind
(Id
) in Incomplete_Or_Private_Kind
then
7331 -- If we have an incomplete or private type with a full view,
7332 -- then we return the Underlying_Type of this full view
7334 if Present
(Full_View
(Id
)) then
7335 if Id
= Full_View
(Id
) then
7337 -- Previous error in declaration
7342 return Underlying_Type
(Full_View
(Id
));
7345 -- If we have an incomplete entity that comes from the limited
7346 -- view then we return the Underlying_Type of its non-limited
7349 elsif From_With_Type
(Id
)
7350 and then Present
(Non_Limited_View
(Id
))
7352 return Underlying_Type
(Non_Limited_View
(Id
));
7354 -- Otherwise check for the case where we have a derived type or
7355 -- subtype, and if so get the Underlying_Type of the parent type.
7357 elsif Etype
(Id
) /= Id
then
7358 return Underlying_Type
(Etype
(Id
));
7360 -- Otherwise we have an incomplete or private type that has
7361 -- no full view, which means that we have not encountered the
7362 -- completion, so return Empty to indicate the underlying type
7363 -- is not yet known.
7369 -- For non-incomplete, non-private types, return the type itself
7370 -- Also for entities that are not types at all return the entity
7376 end Underlying_Type
;
7382 function Vax_Float
(Id
: E
) return B
is
7384 return Is_Floating_Point_Type
(Id
) and then Float_Rep
(Id
) = VAX_Native
;
7387 ------------------------
7388 -- Write_Entity_Flags --
7389 ------------------------
7391 procedure Write_Entity_Flags
(Id
: Entity_Id
; Prefix
: String) is
7393 procedure W
(Flag_Name
: String; Flag
: Boolean);
7394 -- Write out given flag if it is set
7400 procedure W
(Flag_Name
: String; Flag
: Boolean) is
7404 Write_Str
(Flag_Name
);
7405 Write_Str
(" = True");
7410 -- Start of processing for Write_Entity_Flags
7413 if (Is_Array_Type
(Id
) or else Is_Record_Type
(Id
))
7414 and then Is_Base_Type
(Id
)
7417 Write_Str
("Component_Alignment = ");
7419 case Component_Alignment
(Id
) is
7420 when Calign_Default
=>
7421 Write_Str
("Calign_Default");
7423 when Calign_Component_Size
=>
7424 Write_Str
("Calign_Component_Size");
7426 when Calign_Component_Size_4
=>
7427 Write_Str
("Calign_Component_Size_4");
7429 when Calign_Storage_Unit
=>
7430 Write_Str
("Calign_Storage_Unit");
7436 W
("Address_Taken", Flag104
(Id
));
7437 W
("Body_Needed_For_SAL", Flag40
(Id
));
7438 W
("C_Pass_By_Copy", Flag125
(Id
));
7439 W
("Can_Never_Be_Null", Flag38
(Id
));
7440 W
("Checks_May_Be_Suppressed", Flag31
(Id
));
7441 W
("Debug_Info_Off", Flag166
(Id
));
7442 W
("Default_Expressions_Processed", Flag108
(Id
));
7443 W
("Delay_Cleanups", Flag114
(Id
));
7444 W
("Delay_Subprogram_Descriptors", Flag50
(Id
));
7445 W
("Depends_On_Private", Flag14
(Id
));
7446 W
("Discard_Names", Flag88
(Id
));
7447 W
("Elaboration_Entity_Required", Flag174
(Id
));
7448 W
("Elaborate_Body_Desirable", Flag210
(Id
));
7449 W
("Entry_Accepted", Flag152
(Id
));
7450 W
("Can_Use_Internal_Rep", Flag229
(Id
));
7451 W
("Finalize_Storage_Only", Flag158
(Id
));
7452 W
("From_With_Type", Flag159
(Id
));
7453 W
("Has_Aliased_Components", Flag135
(Id
));
7454 W
("Has_Alignment_Clause", Flag46
(Id
));
7455 W
("Has_All_Calls_Remote", Flag79
(Id
));
7456 W
("Has_Anon_Block_Suffix", Flag201
(Id
));
7457 W
("Has_Anonymous_Master", Flag253
(Id
));
7458 W
("Has_Atomic_Components", Flag86
(Id
));
7459 W
("Has_Biased_Representation", Flag139
(Id
));
7460 W
("Has_Completion", Flag26
(Id
));
7461 W
("Has_Completion_In_Body", Flag71
(Id
));
7462 W
("Has_Complex_Representation", Flag140
(Id
));
7463 W
("Has_Component_Size_Clause", Flag68
(Id
));
7464 W
("Has_Contiguous_Rep", Flag181
(Id
));
7465 W
("Has_Controlled_Component", Flag43
(Id
));
7466 W
("Has_Controlling_Result", Flag98
(Id
));
7467 W
("Has_Convention_Pragma", Flag119
(Id
));
7468 W
("Has_Default_Aspect", Flag39
(Id
));
7469 W
("Has_Delayed_Aspects", Flag200
(Id
));
7470 W
("Has_Delayed_Freeze", Flag18
(Id
));
7471 W
("Has_Discriminants", Flag5
(Id
));
7472 W
("Has_Enumeration_Rep_Clause", Flag66
(Id
));
7473 W
("Has_Exit", Flag47
(Id
));
7474 W
("Has_External_Tag_Rep_Clause", Flag110
(Id
));
7475 W
("Has_Forward_Instantiation", Flag175
(Id
));
7476 W
("Has_Fully_Qualified_Name", Flag173
(Id
));
7477 W
("Has_Gigi_Rep_Item", Flag82
(Id
));
7478 W
("Has_Homonym", Flag56
(Id
));
7479 W
("Has_Implicit_Dereference", Flag251
(Id
));
7480 W
("Has_Inheritable_Invariants", Flag248
(Id
));
7481 W
("Has_Initial_Value", Flag219
(Id
));
7482 W
("Has_Invariants", Flag232
(Id
));
7483 W
("Has_Machine_Radix_Clause", Flag83
(Id
));
7484 W
("Has_Master_Entity", Flag21
(Id
));
7485 W
("Has_Missing_Return", Flag142
(Id
));
7486 W
("Has_Nested_Block_With_Handler", Flag101
(Id
));
7487 W
("Has_Non_Standard_Rep", Flag75
(Id
));
7488 W
("Has_Object_Size_Clause", Flag172
(Id
));
7489 W
("Has_Per_Object_Constraint", Flag154
(Id
));
7490 W
("Has_Persistent_BSS", Flag188
(Id
));
7491 W
("Has_Postconditions", Flag240
(Id
));
7492 W
("Has_Pragma_Controlled", Flag27
(Id
));
7493 W
("Has_Pragma_Elaborate_Body", Flag150
(Id
));
7494 W
("Has_Pragma_Inline", Flag157
(Id
));
7495 W
("Has_Pragma_Inline_Always", Flag230
(Id
));
7496 W
("Has_Pragma_Ordered", Flag198
(Id
));
7497 W
("Has_Pragma_Pack", Flag121
(Id
));
7498 W
("Has_Pragma_Preelab_Init", Flag221
(Id
));
7499 W
("Has_Pragma_Pure", Flag203
(Id
));
7500 W
("Has_Pragma_Pure_Function", Flag179
(Id
));
7501 W
("Has_Pragma_Thread_Local_Storage", Flag169
(Id
));
7502 W
("Has_Pragma_Unmodified", Flag233
(Id
));
7503 W
("Has_Pragma_Unreferenced", Flag180
(Id
));
7504 W
("Has_Pragma_Unreferenced_Objects", Flag212
(Id
));
7505 W
("Has_Predicates", Flag250
(Id
));
7506 W
("Has_Primitive_Operations", Flag120
(Id
));
7507 W
("Has_Private_Ancestor", Flag151
(Id
));
7508 W
("Has_Private_Declaration", Flag155
(Id
));
7509 W
("Has_Qualified_Name", Flag161
(Id
));
7510 W
("Has_RACW", Flag214
(Id
));
7511 W
("Has_Record_Rep_Clause", Flag65
(Id
));
7512 W
("Has_Recursive_Call", Flag143
(Id
));
7513 W
("Has_Size_Clause", Flag29
(Id
));
7514 W
("Has_Small_Clause", Flag67
(Id
));
7515 W
("Has_Specified_Layout", Flag100
(Id
));
7516 W
("Has_Specified_Stream_Input", Flag190
(Id
));
7517 W
("Has_Specified_Stream_Output", Flag191
(Id
));
7518 W
("Has_Specified_Stream_Read", Flag192
(Id
));
7519 W
("Has_Specified_Stream_Write", Flag193
(Id
));
7520 W
("Has_Static_Discriminants", Flag211
(Id
));
7521 W
("Has_Storage_Size_Clause", Flag23
(Id
));
7522 W
("Has_Stream_Size_Clause", Flag184
(Id
));
7523 W
("Has_Subprogram_Descriptor", Flag93
(Id
));
7524 W
("Has_Task", Flag30
(Id
));
7525 W
("Has_Thunks", Flag228
(Id
));
7526 W
("Has_Unchecked_Union", Flag123
(Id
));
7527 W
("Has_Unknown_Discriminants", Flag72
(Id
));
7528 W
("Has_Up_Level_Access", Flag215
(Id
));
7529 W
("Has_Volatile_Components", Flag87
(Id
));
7530 W
("Has_Xref_Entry", Flag182
(Id
));
7531 W
("In_Package_Body", Flag48
(Id
));
7532 W
("In_Private_Part", Flag45
(Id
));
7533 W
("In_Use", Flag8
(Id
));
7534 W
("Is_AST_Entry", Flag132
(Id
));
7535 W
("Is_Abstract_Subprogram", Flag19
(Id
));
7536 W
("Is_Abstract_Type", Flag146
(Id
));
7537 W
("Is_Local_Anonymous_Access", Flag194
(Id
));
7538 W
("Is_Access_Constant", Flag69
(Id
));
7539 W
("Is_Ada_2005_Only", Flag185
(Id
));
7540 W
("Is_Ada_2012_Only", Flag199
(Id
));
7541 W
("Is_Aliased", Flag15
(Id
));
7542 W
("Is_Asynchronous", Flag81
(Id
));
7543 W
("Is_Atomic", Flag85
(Id
));
7544 W
("Is_Bit_Packed_Array", Flag122
(Id
));
7545 W
("Is_CPP_Class", Flag74
(Id
));
7546 W
("Is_Called", Flag102
(Id
));
7547 W
("Is_Character_Type", Flag63
(Id
));
7548 W
("Is_Child_Unit", Flag73
(Id
));
7549 W
("Is_Class_Wide_Equivalent_Type", Flag35
(Id
));
7550 W
("Is_Compilation_Unit", Flag149
(Id
));
7551 W
("Is_Completely_Hidden", Flag103
(Id
));
7552 W
("Is_Concurrent_Record_Type", Flag20
(Id
));
7553 W
("Is_Constr_Subt_For_UN_Aliased", Flag141
(Id
));
7554 W
("Is_Constr_Subt_For_U_Nominal", Flag80
(Id
));
7555 W
("Is_Constrained", Flag12
(Id
));
7556 W
("Is_Constructor", Flag76
(Id
));
7557 W
("Is_Controlled", Flag42
(Id
));
7558 W
("Is_Controlling_Formal", Flag97
(Id
));
7559 W
("Is_Descendent_Of_Address", Flag223
(Id
));
7560 W
("Is_Discrim_SO_Function", Flag176
(Id
));
7561 W
("Is_Dispatch_Table_Entity", Flag234
(Id
));
7562 W
("Is_Dispatching_Operation", Flag6
(Id
));
7563 W
("Is_Eliminated", Flag124
(Id
));
7564 W
("Is_Entry_Formal", Flag52
(Id
));
7565 W
("Is_Exported", Flag99
(Id
));
7566 W
("Is_First_Subtype", Flag70
(Id
));
7567 W
("Is_For_Access_Subtype", Flag118
(Id
));
7568 W
("Is_Formal_Subprogram", Flag111
(Id
));
7569 W
("Is_Frozen", Flag4
(Id
));
7570 W
("Is_Generic_Actual_Type", Flag94
(Id
));
7571 W
("Is_Generic_Instance", Flag130
(Id
));
7572 W
("Is_Generic_Type", Flag13
(Id
));
7573 W
("Is_Hidden", Flag57
(Id
));
7574 W
("Is_Hidden_Open_Scope", Flag171
(Id
));
7575 W
("Is_Immediately_Visible", Flag7
(Id
));
7576 W
("Is_Implementation_Defined", Flag254
(Id
));
7577 W
("Is_Imported", Flag24
(Id
));
7578 W
("Is_Inlined", Flag11
(Id
));
7579 W
("Is_Instantiated", Flag126
(Id
));
7580 W
("Is_Interface", Flag186
(Id
));
7581 W
("Is_Internal", Flag17
(Id
));
7582 W
("Is_Interrupt_Handler", Flag89
(Id
));
7583 W
("Is_Intrinsic_Subprogram", Flag64
(Id
));
7584 W
("Is_Itype", Flag91
(Id
));
7585 W
("Is_Known_Non_Null", Flag37
(Id
));
7586 W
("Is_Known_Null", Flag204
(Id
));
7587 W
("Is_Known_Valid", Flag170
(Id
));
7588 W
("Is_Limited_Composite", Flag106
(Id
));
7589 W
("Is_Limited_Interface", Flag197
(Id
));
7590 W
("Is_Limited_Record", Flag25
(Id
));
7591 W
("Is_Machine_Code_Subprogram", Flag137
(Id
));
7592 W
("Is_Non_Static_Subtype", Flag109
(Id
));
7593 W
("Is_Null_Init_Proc", Flag178
(Id
));
7594 W
("Is_Obsolescent", Flag153
(Id
));
7595 W
("Is_Only_Out_Parameter", Flag226
(Id
));
7596 W
("Is_Optional_Parameter", Flag134
(Id
));
7597 W
("Is_Package_Body_Entity", Flag160
(Id
));
7598 W
("Is_Packed", Flag51
(Id
));
7599 W
("Is_Packed_Array_Type", Flag138
(Id
));
7600 W
("Is_Potentially_Use_Visible", Flag9
(Id
));
7601 W
("Is_Preelaborated", Flag59
(Id
));
7602 W
("Is_Primitive", Flag218
(Id
));
7603 W
("Is_Primitive_Wrapper", Flag195
(Id
));
7604 W
("Is_Private_Composite", Flag107
(Id
));
7605 W
("Is_Private_Descendant", Flag53
(Id
));
7606 W
("Is_Private_Primitive", Flag245
(Id
));
7607 W
("Is_Processed_Transient", Flag252
(Id
));
7608 W
("Is_Public", Flag10
(Id
));
7609 W
("Is_Pure", Flag44
(Id
));
7610 W
("Is_Pure_Unit_Access_Type", Flag189
(Id
));
7611 W
("Is_RACW_Stub_Type", Flag244
(Id
));
7612 W
("Is_Raised", Flag224
(Id
));
7613 W
("Is_Remote_Call_Interface", Flag62
(Id
));
7614 W
("Is_Remote_Types", Flag61
(Id
));
7615 W
("Is_Renaming_Of_Object", Flag112
(Id
));
7616 W
("Is_Return_Object", Flag209
(Id
));
7617 W
("Is_Safe_To_Reevaluate", Flag249
(Id
));
7618 W
("Is_Shared_Passive", Flag60
(Id
));
7619 W
("Is_Statically_Allocated", Flag28
(Id
));
7620 W
("Is_Tag", Flag78
(Id
));
7621 W
("Is_Tagged_Type", Flag55
(Id
));
7622 W
("Is_Thunk", Flag225
(Id
));
7623 W
("Is_Trivial_Subprogram", Flag235
(Id
));
7624 W
("Is_True_Constant", Flag163
(Id
));
7625 W
("Is_Unchecked_Union", Flag117
(Id
));
7626 W
("Is_Underlying_Record_View", Flag246
(Id
));
7627 W
("Is_Unsigned_Type", Flag144
(Id
));
7628 W
("Is_VMS_Exception", Flag133
(Id
));
7629 W
("Is_Valued_Procedure", Flag127
(Id
));
7630 W
("Is_Visible_Child_Unit", Flag116
(Id
));
7631 W
("Is_Visible_Formal", Flag206
(Id
));
7632 W
("Is_Volatile", Flag16
(Id
));
7633 W
("Itype_Printed", Flag202
(Id
));
7634 W
("Kill_Elaboration_Checks", Flag32
(Id
));
7635 W
("Kill_Range_Checks", Flag33
(Id
));
7636 W
("Kill_Tag_Checks", Flag34
(Id
));
7637 W
("Known_To_Have_Preelab_Init", Flag207
(Id
));
7638 W
("Low_Bound_Tested", Flag205
(Id
));
7639 W
("Machine_Radix_10", Flag84
(Id
));
7640 W
("Materialize_Entity", Flag168
(Id
));
7641 W
("Must_Be_On_Byte_Boundary", Flag183
(Id
));
7642 W
("Must_Have_Preelab_Init", Flag208
(Id
));
7643 W
("Needs_Debug_Info", Flag147
(Id
));
7644 W
("Needs_No_Actuals", Flag22
(Id
));
7645 W
("Never_Set_In_Source", Flag115
(Id
));
7646 W
("No_Pool_Assigned", Flag131
(Id
));
7647 W
("No_Return", Flag113
(Id
));
7648 W
("No_Strict_Aliasing", Flag136
(Id
));
7649 W
("Non_Binary_Modulus", Flag58
(Id
));
7650 W
("Nonzero_Is_True", Flag162
(Id
));
7651 W
("OK_To_Rename", Flag247
(Id
));
7652 W
("OK_To_Reorder_Components", Flag239
(Id
));
7653 W
("Optimize_Alignment_Space", Flag241
(Id
));
7654 W
("Optimize_Alignment_Time", Flag242
(Id
));
7655 W
("Overlays_Constant", Flag243
(Id
));
7656 W
("Reachable", Flag49
(Id
));
7657 W
("Referenced", Flag156
(Id
));
7658 W
("Referenced_As_LHS", Flag36
(Id
));
7659 W
("Referenced_As_Out_Parameter", Flag227
(Id
));
7660 W
("Renamed_In_Spec", Flag231
(Id
));
7661 W
("Requires_Overriding", Flag213
(Id
));
7662 W
("Return_Present", Flag54
(Id
));
7663 W
("Returns_By_Ref", Flag90
(Id
));
7664 W
("Reverse_Bit_Order", Flag164
(Id
));
7665 W
("Sec_Stack_Needed_For_Return", Flag167
(Id
));
7666 W
("Size_Depends_On_Discriminant", Flag177
(Id
));
7667 W
("Size_Known_At_Compile_Time", Flag92
(Id
));
7668 W
("Static_Elaboration_Desired", Flag77
(Id
));
7669 W
("Strict_Alignment", Flag145
(Id
));
7670 W
("Suppress_Elaboration_Warnings", Flag148
(Id
));
7671 W
("Suppress_Initialization", Flag105
(Id
));
7672 W
("Suppress_Style_Checks", Flag165
(Id
));
7673 W
("Suppress_Value_Tracking_On_Call", Flag217
(Id
));
7674 W
("Treat_As_Volatile", Flag41
(Id
));
7675 W
("Universal_Aliasing", Flag216
(Id
));
7676 W
("Used_As_Generic_Actual", Flag222
(Id
));
7677 W
("Uses_Sec_Stack", Flag95
(Id
));
7678 W
("Warnings_Off", Flag96
(Id
));
7679 W
("Warnings_Off_Used", Flag236
(Id
));
7680 W
("Warnings_Off_Used_Unmodified", Flag237
(Id
));
7681 W
("Warnings_Off_Used_Unreferenced", Flag238
(Id
));
7682 W
("Was_Hidden", Flag196
(Id
));
7683 end Write_Entity_Flags
;
7685 -----------------------
7686 -- Write_Entity_Info --
7687 -----------------------
7689 procedure Write_Entity_Info
(Id
: Entity_Id
; Prefix
: String) is
7691 procedure Write_Attribute
(Which
: String; Nam
: E
);
7692 -- Write attribute value with given string name
7694 procedure Write_Kind
(Id
: Entity_Id
);
7695 -- Write Ekind field of entity
7697 ---------------------
7698 -- Write_Attribute --
7699 ---------------------
7701 procedure Write_Attribute
(Which
: String; Nam
: E
) is
7705 Write_Int
(Int
(Nam
));
7707 Write_Name
(Chars
(Nam
));
7709 end Write_Attribute
;
7715 procedure Write_Kind
(Id
: Entity_Id
) is
7716 K
: constant String := Entity_Kind
'Image (Ekind
(Id
));
7720 Write_Str
(" Kind ");
7722 if Is_Type
(Id
) and then Is_Tagged_Type
(Id
) then
7723 Write_Str
("TAGGED ");
7726 Write_Str
(K
(3 .. K
'Length));
7729 if Is_Type
(Id
) and then Depends_On_Private
(Id
) then
7730 Write_Str
("Depends_On_Private ");
7734 -- Start of processing for Write_Entity_Info
7738 Write_Attribute
("Name ", Id
);
7739 Write_Int
(Int
(Id
));
7743 Write_Attribute
(" Type ", Etype
(Id
));
7745 Write_Attribute
(" Scope ", Scope
(Id
));
7750 when Discrete_Kind
=>
7751 Write_Str
("Bounds: Id = ");
7753 if Present
(Scalar_Range
(Id
)) then
7754 Write_Int
(Int
(Type_Low_Bound
(Id
)));
7755 Write_Str
(" .. Id = ");
7756 Write_Int
(Int
(Type_High_Bound
(Id
)));
7758 Write_Str
("Empty");
7769 (" Component Type ", Component_Type
(Id
));
7772 Write_Str
(" Indexes ");
7774 Index
:= First_Index
(Id
);
7775 while Present
(Index
) loop
7776 Write_Attribute
(" ", Etype
(Index
));
7777 Index
:= Next_Index
(Index
);
7785 (" Directly Designated Type ",
7786 Directly_Designated_Type
(Id
));
7789 when Overloadable_Kind
=>
7790 if Present
(Homonym
(Id
)) then
7791 Write_Str
(" Homonym ");
7792 Write_Name
(Chars
(Homonym
(Id
)));
7794 Write_Int
(Int
(Homonym
(Id
)));
7801 if Ekind
(Scope
(Id
)) in Record_Kind
then
7803 " Original_Record_Component ",
7804 Original_Record_Component
(Id
));
7805 Write_Int
(Int
(Original_Record_Component
(Id
)));
7809 when others => null;
7811 end Write_Entity_Info
;
7813 -----------------------
7814 -- Write_Field6_Name --
7815 -----------------------
7817 procedure Write_Field6_Name
(Id
: Entity_Id
) is
7818 pragma Warnings
(Off
, Id
);
7820 Write_Str
("First_Rep_Item");
7821 end Write_Field6_Name
;
7823 -----------------------
7824 -- Write_Field7_Name --
7825 -----------------------
7827 procedure Write_Field7_Name
(Id
: Entity_Id
) is
7828 pragma Warnings
(Off
, Id
);
7830 Write_Str
("Freeze_Node");
7831 end Write_Field7_Name
;
7833 -----------------------
7834 -- Write_Field8_Name --
7835 -----------------------
7837 procedure Write_Field8_Name
(Id
: Entity_Id
) is
7841 Write_Str
("Associated_Node_For_Itype");
7844 Write_Str
("Dependent_Instances");
7847 Write_Str
("First_Exit_Statement");
7850 Write_Str
("Hiding_Loop_Variable");
7854 E_Subprogram_Body
=>
7855 Write_Str
("Mechanism");
7859 Write_Str
("Normalized_First_Bit");
7862 Write_Str
("Postcondition_Proc");
7864 when E_Return_Statement
=>
7865 Write_Str
("Return_Applies_To");
7868 Write_Str
("Field8??");
7870 end Write_Field8_Name
;
7872 -----------------------
7873 -- Write_Field9_Name --
7874 -----------------------
7876 procedure Write_Field9_Name
(Id
: Entity_Id
) is
7880 Write_Str
("Class_Wide_Type");
7883 Write_Str
("Current_Value");
7886 E_Generic_Function |
7888 E_Generic_Procedure |
7891 Write_Str
("Renaming_Map");
7894 Write_Str
("Field9??");
7896 end Write_Field9_Name
;
7898 ------------------------
7899 -- Write_Field10_Name --
7900 ------------------------
7902 procedure Write_Field10_Name
(Id
: Entity_Id
) is
7905 when Class_Wide_Kind |
7911 Write_Str
("Direct_Primitive_Operations");
7914 Write_Str
("Float_Rep");
7916 when E_In_Parameter |
7918 Write_Str
("Discriminal_Link");
7924 Write_Str
("Handler_Records");
7928 Write_Str
("Normalized_Position_Max");
7931 Write_Str
("Field10??");
7933 end Write_Field10_Name
;
7935 ------------------------
7936 -- Write_Field11_Name --
7937 ------------------------
7939 procedure Write_Field11_Name
(Id
: Entity_Id
) is
7943 Write_Str
("Block_Node");
7947 Write_Str
("Component_Bit_Offset");
7950 Write_Str
("Entry_Component");
7952 when E_Enumeration_Literal
=>
7953 Write_Str
("Enumeration_Pos");
7957 Write_Str
("Full_View");
7959 when E_Generic_Package
=>
7960 Write_Str
("Generic_Homonym");
7966 Write_Str
("Protected_Body_Subprogram");
7969 Write_Str
("Field11??");
7971 end Write_Field11_Name
;
7973 ------------------------
7974 -- Write_Field12_Name --
7975 ------------------------
7977 procedure Write_Field12_Name
(Id
: Entity_Id
) is
7981 Write_Str
("Associated_Formal_Package");
7984 Write_Str
("Barrier_Function");
7986 when E_Enumeration_Literal
=>
7987 Write_Str
("Enumeration_Rep");
7995 E_In_Out_Parameter |
7999 Write_Str
("Esize");
8003 Write_Str
("Next_Inlined_Subprogram");
8006 Write_Str
("Field12??");
8008 end Write_Field12_Name
;
8010 ------------------------
8011 -- Write_Field13_Name --
8012 ------------------------
8014 procedure Write_Field13_Name
(Id
: Entity_Id
) is
8019 Write_Str
("Component_Clause");
8022 if not Comes_From_Source
(Id
)
8024 Chars
(Id
) = Name_Op_Ne
8026 Write_Str
("Corresponding_Equality");
8028 elsif Comes_From_Source
(Id
) then
8029 Write_Str
("Elaboration_Entity");
8032 Write_Str
("Field13??");
8037 Generic_Unit_Kind
=>
8038 Write_Str
("Elaboration_Entity");
8042 Write_Str
("Extra_Accessibility");
8045 Write_Str
("RM_Size");
8048 Write_Str
("Field13??");
8050 end Write_Field13_Name
;
8052 -----------------------
8053 -- Write_Field14_Name --
8054 -----------------------
8056 procedure Write_Field14_Name
(Id
: Entity_Id
) is
8065 Write_Str
("Alignment");
8069 Write_Str
("First_Optional_Parameter");
8073 Write_Str
("Normalized_Position");
8076 E_Generic_Package
=>
8077 Write_Str
("Shadow_Entities");
8080 Write_Str
("Field14??");
8082 end Write_Field14_Name
;
8084 ------------------------
8085 -- Write_Field15_Name --
8086 ------------------------
8088 procedure Write_Field15_Name
(Id
: Entity_Id
) is
8091 when E_Discriminant
=>
8092 Write_Str
("Discriminant_Number");
8095 Write_Str
("DT_Entry_Count");
8099 Write_Str
("DT_Position");
8101 when E_Protected_Type
=>
8102 Write_Str
("Entry_Bodies_Array");
8105 Write_Str
("Entry_Parameters_Type");
8108 Write_Str
("Extra_Formal");
8110 when Enumeration_Kind
=>
8111 Write_Str
("Lit_Indexes");
8115 Write_Str
("Related_Instance");
8119 Write_Str
("Return_Flag_Or_Transient_Decl");
8121 when Decimal_Fixed_Point_Kind
=>
8122 Write_Str
("Scale_Value");
8126 Write_Str
("Storage_Size_Variable");
8128 when E_String_Literal_Subtype
=>
8129 Write_Str
("String_Literal_Low_Bound");
8132 Write_Str
("Field15??");
8134 end Write_Field15_Name
;
8136 ------------------------
8137 -- Write_Field16_Name --
8138 ------------------------
8140 procedure Write_Field16_Name
(Id
: Entity_Id
) is
8143 when E_Record_Type |
8144 E_Record_Type_With_Private
=>
8145 Write_Str
("Access_Disp_Table");
8147 when E_Record_Subtype |
8148 E_Class_Wide_Subtype
=>
8149 Write_Str
("Cloned_Subtype");
8153 Write_Str
("DTC_Entity");
8156 Write_Str
("Entry_Formal");
8161 Write_Str
("First_Private_Entity");
8163 when Enumeration_Kind
=>
8164 Write_Str
("Lit_Strings");
8166 when E_String_Literal_Subtype
=>
8167 Write_Str
("String_Literal_Length");
8171 Write_Str
("Unset_Reference");
8174 Write_Str
("Field16??");
8176 end Write_Field16_Name
;
8178 ------------------------
8179 -- Write_Field17_Name --
8180 ------------------------
8182 procedure Write_Field17_Name
(Id
: Entity_Id
) is
8187 E_Generic_In_Out_Parameter |
8189 Write_Str
("Actual_Subtype");
8192 Write_Str
("Digits_Value");
8194 when E_Discriminant
=>
8195 Write_Str
("Discriminal");
8204 E_Generic_Function |
8206 E_Generic_Procedure |
8214 E_Return_Statement |
8216 E_Subprogram_Type
=>
8217 Write_Str
("First_Entity");
8220 Write_Str
("First_Index");
8222 when Enumeration_Kind
=>
8223 Write_Str
("First_Literal");
8226 Write_Str
("Master_Id");
8228 when Modular_Integer_Kind
=>
8229 Write_Str
("Modulus");
8231 when E_Incomplete_Type
=>
8232 Write_Str
("Non_Limited_View");
8234 when E_Incomplete_Subtype
=>
8235 if From_With_Type
(Id
) then
8236 Write_Str
("Non_Limited_View");
8240 Write_Str
("Prival");
8243 Write_Str
("Field17??");
8245 end Write_Field17_Name
;
8247 ------------------------
8248 -- Write_Field18_Name --
8249 ------------------------
8251 procedure Write_Field18_Name
(Id
: Entity_Id
) is
8254 when E_Enumeration_Literal |
8258 Write_Str
("Alias");
8260 when E_Record_Type
=>
8261 Write_Str
("Corresponding_Concurrent_Type");
8263 when E_Subprogram_Body
=>
8264 Write_Str
("Corresponding_Protected_Entry");
8266 when Concurrent_Kind
=>
8267 Write_Str
("Corresponding_Record_Type");
8272 Write_Str
("Enclosing_Scope");
8274 when E_Entry_Index_Parameter
=>
8275 Write_Str
("Entry_Index_Constant");
8277 when E_Class_Wide_Subtype |
8278 E_Access_Protected_Subprogram_Type |
8279 E_Anonymous_Access_Protected_Subprogram_Type |
8280 E_Access_Subprogram_Type |
8282 Write_Str
("Equivalent_Type");
8284 when Fixed_Point_Kind
=>
8285 Write_Str
("Delta_Value");
8287 when Incomplete_Or_Private_Kind |
8289 Write_Str
("Private_Dependents");
8292 Write_Str
("Renamed_Object");
8296 E_Generic_Function |
8297 E_Generic_Procedure |
8298 E_Generic_Package
=>
8299 Write_Str
("Renamed_Entity");
8302 Write_Str
("Field18??");
8304 end Write_Field18_Name
;
8306 -----------------------
8307 -- Write_Field19_Name --
8308 -----------------------
8310 procedure Write_Field19_Name
(Id
: Entity_Id
) is
8314 E_Generic_Package
=>
8315 Write_Str
("Body_Entity");
8317 when E_Discriminant
=>
8318 Write_Str
("Corresponding_Discriminant");
8320 when E_Record_Type
=>
8321 Write_Str
("Parent_Subtype");
8325 Write_Str
("Related_Array_Object");
8329 Write_Str
("Size_Check_Code");
8331 when E_Package_Body |
8333 Write_Str
("Spec_Entity");
8335 when Private_Kind
=>
8336 Write_Str
("Underlying_Full_View");
8338 when E_Function | E_Operator | E_Subprogram_Type
=>
8339 Write_Str
("Extra_Accessibility_Of_Result");
8342 Write_Str
("Field19??");
8344 end Write_Field19_Name
;
8346 -----------------------
8347 -- Write_Field20_Name --
8348 -----------------------
8350 procedure Write_Field20_Name
(Id
: Entity_Id
) is
8354 Write_Str
("Component_Type");
8356 when E_In_Parameter |
8357 E_Generic_In_Parameter
=>
8358 Write_Str
("Default_Value");
8361 Write_Str
("Directly_Designated_Type");
8364 Write_Str
("Discriminant_Checking_Func");
8366 when E_Discriminant
=>
8367 Write_Str
("Discriminant_Default_Value");
8376 E_Generic_Function |
8378 E_Generic_Procedure |
8386 E_Return_Statement |
8388 E_Subprogram_Type
=>
8389 Write_Str
("Last_Entity");
8393 Write_Str
("Prival_Link");
8396 Write_Str
("Scalar_Range");
8399 Write_Str
("Register_Exception_Call");
8402 Write_Str
("Field20??");
8404 end Write_Field20_Name
;
8406 -----------------------
8407 -- Write_Field21_Name --
8408 -----------------------
8410 procedure Write_Field21_Name
(Id
: Entity_Id
) is
8414 Write_Str
("Accept_Address");
8416 when E_In_Parameter
=>
8417 Write_Str
("Default_Expr_Function");
8419 when Concurrent_Kind |
8420 Incomplete_Or_Private_Kind |
8424 Write_Str
("Discriminant_Constraint");
8429 E_Generic_Function |
8431 E_Generic_Procedure |
8433 Write_Str
("Interface_Name");
8436 Modular_Integer_Kind
=>
8437 Write_Str
("Original_Array_Type");
8439 when Fixed_Point_Kind
=>
8440 Write_Str
("Small_Value");
8443 Write_Str
("Field21??");
8445 end Write_Field21_Name
;
8447 -----------------------
8448 -- Write_Field22_Name --
8449 -----------------------
8451 procedure Write_Field22_Name
(Id
: Entity_Id
) is
8455 Write_Str
("Associated_Storage_Pool");
8458 Write_Str
("Component_Size");
8460 when E_Record_Type
=>
8461 Write_Str
("Corresponding_Remote_Type");
8465 Write_Str
("Original_Record_Component");
8467 when E_Enumeration_Literal
=>
8468 Write_Str
("Enumeration_Rep_Expr");
8471 Write_Str
("Exception_Code");
8473 when E_Record_Type_With_Private |
8474 E_Record_Subtype_With_Private |
8477 E_Limited_Private_Type |
8478 E_Limited_Private_Subtype
=>
8479 Write_Str
("Private_View");
8482 Write_Str
("Protected_Formal");
8492 E_Generic_Function |
8493 E_Generic_Procedure |
8496 E_Return_Statement |
8499 Write_Str
("Scope_Depth_Value");
8502 Write_Str
("Shared_Var_Procs_Instance");
8505 Write_Str
("Field22??");
8507 end Write_Field22_Name
;
8509 ------------------------
8510 -- Write_Field23_Name --
8511 ------------------------
8513 procedure Write_Field23_Name
(Id
: Entity_Id
) is
8516 when E_Discriminant
=>
8517 Write_Str
("CR_Discriminant");
8520 Write_Str
("Entry_Cancel_Parameter");
8522 when E_Enumeration_Type
=>
8523 Write_Str
("Enum_Pos_To_Rep");
8527 Write_Str
("Extra_Constrained");
8530 Write_Str
("Finalization_Master");
8532 when E_Generic_Function |
8534 E_Generic_Procedure
=>
8535 Write_Str
("Inner_Instances");
8538 Write_Str
("Packed_Array_Type");
8541 Write_Str
("Protection_Object");
8543 when Concurrent_Kind |
8544 Incomplete_Or_Private_Kind |
8548 Write_Str
("Stored_Constraint");
8552 if Present
(Scope
(Id
))
8553 and then Is_Protected_Type
(Scope
(Id
))
8555 Write_Str
("Protection_Object");
8557 Write_Str
("Generic_Renamings");
8561 if Is_Generic_Instance
(Id
) then
8562 Write_Str
("Generic_Renamings");
8564 Write_Str
("Limited_View");
8568 Write_Str
("Field23??");
8570 end Write_Field23_Name
;
8572 ------------------------
8573 -- Write_Field24_Name --
8574 ------------------------
8576 procedure Write_Field24_Name
(Id
: Entity_Id
) is
8581 Write_Str
("Finalizer");
8586 Write_Str
("Related_Expression");
8591 Generic_Subprogram_Kind
=>
8592 Write_Str
("Contract");
8595 Write_Str
("Field24???");
8597 end Write_Field24_Name
;
8599 ------------------------
8600 -- Write_Field25_Name --
8601 ------------------------
8603 procedure Write_Field25_Name
(Id
: Entity_Id
) is
8607 Write_Str
("Debug_Renaming_Link");
8610 Write_Str
("DT_Offset_To_Top_Func");
8614 Write_Str
("Interface_Alias");
8616 when E_Record_Type |
8618 E_Record_Type_With_Private |
8619 E_Record_Subtype_With_Private
=>
8620 Write_Str
("Interfaces");
8623 Write_Str
("Task_Body_Procedure");
8627 Write_Str
("PPC_Wrapper");
8629 when E_Enumeration_Subtype |
8630 E_Modular_Integer_Subtype |
8631 E_Signed_Integer_Subtype
=>
8632 Write_Str
("Static_Predicate");
8635 Write_Str
("Field25??");
8637 end Write_Field25_Name
;
8639 ------------------------
8640 -- Write_Field26_Name --
8641 ------------------------
8643 procedure Write_Field26_Name
(Id
: Entity_Id
) is
8646 when E_Record_Type |
8647 E_Record_Type_With_Private
=>
8648 Write_Str
("Dispatch_Table_Wrappers");
8650 when E_In_Out_Parameter |
8653 Write_Str
("Last_Assignment");
8655 when E_Access_Subprogram_Type
=>
8656 Write_Str
("Original_Access_Type");
8658 when E_Generic_Package |
8660 Write_Str
("Package_Instantiation");
8664 Write_Str
("Related_Type");
8667 Write_Str
("Relative_Deadline_Variable");
8671 if Ekind
(Id
) = E_Procedure
8672 and then not Is_Dispatching_Operation
(Id
)
8674 Write_Str
("Static_Initialization");
8676 Write_Str
("Overridden_Operation");
8680 Write_Str
("Field26??");
8682 end Write_Field26_Name
;
8684 ------------------------
8685 -- Write_Field27_Name --
8686 ------------------------
8688 procedure Write_Field27_Name
(Id
: Entity_Id
) is
8693 Write_Str
("Current_Use_Clause");
8698 Write_Str
("Related_Type");
8701 Write_Str
("Wrapped_Entity");
8704 Write_Str
("Field27??");
8706 end Write_Field27_Name
;
8708 ------------------------
8709 -- Write_Field28_Name --
8710 ------------------------
8712 procedure Write_Field28_Name
(Id
: Entity_Id
) is
8720 E_Subprogram_Type
=>
8721 Write_Str
("Extra_Formals");
8723 when E_Record_Type
=>
8724 Write_Str
("Underlying_Record_View");
8727 Write_Str
("Field28??");
8729 end Write_Field28_Name
;
8731 procedure Write_Field29_Name
(Id
: Entity_Id
) is
8735 Write_Str
("Subprograms_For_Type");
8738 Write_Str
("Field29??");
8740 end Write_Field29_Name
;
8742 -------------------------
8743 -- Iterator Procedures --
8744 -------------------------
8746 procedure Proc_Next_Component
(N
: in out Node_Id
) is
8748 N
:= Next_Component
(N
);
8749 end Proc_Next_Component
;
8751 procedure Proc_Next_Component_Or_Discriminant
(N
: in out Node_Id
) is
8753 N
:= Next_Entity
(N
);
8754 while Present
(N
) loop
8755 exit when Ekind_In
(N
, E_Component
, E_Discriminant
);
8756 N
:= Next_Entity
(N
);
8758 end Proc_Next_Component_Or_Discriminant
;
8760 procedure Proc_Next_Discriminant
(N
: in out Node_Id
) is
8762 N
:= Next_Discriminant
(N
);
8763 end Proc_Next_Discriminant
;
8765 procedure Proc_Next_Formal
(N
: in out Node_Id
) is
8767 N
:= Next_Formal
(N
);
8768 end Proc_Next_Formal
;
8770 procedure Proc_Next_Formal_With_Extras
(N
: in out Node_Id
) is
8772 N
:= Next_Formal_With_Extras
(N
);
8773 end Proc_Next_Formal_With_Extras
;
8775 procedure Proc_Next_Index
(N
: in out Node_Id
) is
8777 N
:= Next_Index
(N
);
8778 end Proc_Next_Index
;
8780 procedure Proc_Next_Inlined_Subprogram
(N
: in out Node_Id
) is
8782 N
:= Next_Inlined_Subprogram
(N
);
8783 end Proc_Next_Inlined_Subprogram
;
8785 procedure Proc_Next_Literal
(N
: in out Node_Id
) is
8787 N
:= Next_Literal
(N
);
8788 end Proc_Next_Literal
;
8790 procedure Proc_Next_Stored_Discriminant
(N
: in out Node_Id
) is
8792 N
:= Next_Stored_Discriminant
(N
);
8793 end Proc_Next_Stored_Discriminant
;