1 ------------------------------------------------------------------------------
3 -- GNAT COMPILER COMPONENTS --
9 -- Copyright (C) 1992-2015, 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 Elists
; use Elists
;
37 with Namet
; use Namet
;
38 with Nlists
; use Nlists
;
39 with Output
; use Output
;
40 with Sinfo
; use Sinfo
;
41 with Stand
; use Stand
;
45 use Atree
.Unchecked_Access
;
46 -- This is one of the packages that is allowed direct untyped access to
47 -- the fields in a node, since it provides the next level abstraction
48 -- which incorporates appropriate checks.
50 ----------------------------------------------
51 -- Usage of Fields in Defining Entity Nodes --
52 ----------------------------------------------
54 -- Four of these fields are defined in Sinfo, since they in are the base
55 -- part of the node. The access routines for these four fields and the
56 -- corresponding set procedures are defined in Sinfo. These fields are
57 -- present in all entities. Note that Homonym is also in the base part of
58 -- the node, but has access routines that are more properly part of Einfo,
59 -- which is why they are defined here.
66 -- Remaining fields are present only in extended nodes (i.e. entities)
68 -- The following fields are present in all entities
71 -- First_Rep_Item Node6
74 -- The usage of other fields (and the entity kinds to which it applies)
75 -- depends on the particular field (see Einfo spec for details).
77 -- Associated_Node_For_Itype Node8
78 -- Dependent_Instances Elist8
79 -- Hiding_Loop_Variable Node8
80 -- Mechanism Uint8 (but returns Mechanism_Type)
81 -- Normalized_First_Bit Uint8
82 -- Refinement_Constituents Elist8
83 -- Return_Applies_To Node8
84 -- First_Exit_Statement Node8
86 -- Class_Wide_Type Node9
87 -- Current_Value Node9
88 -- Part_Of_Constituents Elist9
91 -- Encapsulating_State Node10
92 -- Direct_Primitive_Operations Elist10
93 -- Discriminal_Link Node10
94 -- Float_Rep Uint10 (but returns Float_Rep_Kind)
95 -- Handler_Records List10
96 -- Normalized_Position_Max Uint10
98 -- Component_Bit_Offset Uint11
100 -- Entry_Component Node11
101 -- Enumeration_Pos Uint11
102 -- Generic_Homonym Node11
103 -- Protected_Body_Subprogram Node11
106 -- Barrier_Function Node12
107 -- Enumeration_Rep Uint12
109 -- Next_Inlined_Subprogram Node12
111 -- Component_Clause Node13
112 -- Elaboration_Entity Node13
113 -- Extra_Accessibility Node13
117 -- Normalized_Position Uint14
118 -- Postconditions_Proc Node14
119 -- Shadow_Entities List14
121 -- Discriminant_Number Uint15
122 -- DT_Position Uint15
123 -- DT_Entry_Count Uint15
124 -- Entry_Parameters_Type Node15
125 -- Extra_Formal Node15
126 -- Pending_Access_Types Elist15
127 -- Related_Instance Node15
128 -- Status_Flag_Or_Transient_Decl Node15
130 -- Access_Disp_Table Elist16
131 -- Body_References Elist16
132 -- Cloned_Subtype Node16
134 -- Entry_Formal Node16
135 -- First_Private_Entity Node16
136 -- Lit_Strings Node16
137 -- Scale_Value Uint16
138 -- String_Literal_Length Uint16
139 -- Unset_Reference Node16
141 -- Actual_Subtype Node17
142 -- Digits_Value Uint17
143 -- Discriminal Node17
144 -- First_Entity Node17
145 -- First_Index Node17
146 -- First_Literal Node17
149 -- Non_Limited_View Node17
153 -- Corresponding_Concurrent_Type Node18
154 -- Corresponding_Protected_Entry Node18
155 -- Corresponding_Record_Type Node18
156 -- Delta_Value Ureal18
157 -- Enclosing_Scope Node18
158 -- Equivalent_Type Node18
159 -- Lit_Indexes Node18
160 -- Private_Dependents Elist18
161 -- Renamed_Entity Node18
162 -- Renamed_Object Node18
163 -- String_Literal_Low_Bound Node18
165 -- Body_Entity Node19
166 -- Corresponding_Discriminant Node19
167 -- Default_Aspect_Component_Value Node19
168 -- Default_Aspect_Value Node19
169 -- Entry_Bodies_Array Node19
170 -- Extra_Accessibility_Of_Result Node19
171 -- Parent_Subtype Node19
172 -- Size_Check_Code Node19
173 -- Spec_Entity Node19
174 -- Underlying_Full_View Node19
176 -- Component_Type Node20
177 -- Default_Value Node20
178 -- Directly_Designated_Type Node20
179 -- Discriminant_Checking_Func Node20
180 -- Discriminant_Default_Value Node20
181 -- Last_Entity Node20
182 -- Prival_Link Node20
183 -- Register_Exception_Call Node20
184 -- Scalar_Range Node20
186 -- Accept_Address Elist21
187 -- Default_Expr_Function Node21
188 -- Discriminant_Constraint Elist21
189 -- Interface_Name Node21
190 -- Original_Array_Type Node21
191 -- Small_Value Ureal21
193 -- Associated_Storage_Pool Node22
194 -- Component_Size Uint22
195 -- Corresponding_Remote_Type Node22
196 -- Enumeration_Rep_Expr Node22
197 -- Original_Record_Component Node22
198 -- Private_View Node22
199 -- Protected_Formal Node22
200 -- Scope_Depth_Value Uint22
201 -- Shared_Var_Procs_Instance Node22
203 -- CR_Discriminant Node23
204 -- Entry_Cancel_Parameter Node23
205 -- Enum_Pos_To_Rep Node23
206 -- Extra_Constrained Node23
207 -- Finalization_Master Node23
208 -- Generic_Renamings Elist23
209 -- Inner_Instances Elist23
210 -- Limited_View Node23
211 -- Packed_Array_Impl_Type Node23
212 -- Protection_Object Node23
213 -- Stored_Constraint Elist23
215 -- Related_Expression Node24
216 -- Uplevel_References Elist24
217 -- Subps_Index Uint24
219 -- Interface_Alias Node25
220 -- Interfaces Elist25
221 -- Debug_Renaming_Link Node25
222 -- DT_Offset_To_Top_Func Node25
223 -- PPC_Wrapper Node25
224 -- Related_Array_Object Node25
225 -- Static_Discrete_Predicate List25
226 -- Static_Real_Or_String_Predicate Node25
227 -- Task_Body_Procedure Node25
229 -- Dispatch_Table_Wrappers Elist26
230 -- Last_Assignment Node26
231 -- Overridden_Operation Node26
232 -- Package_Instantiation Node26
233 -- Storage_Size_Variable Node26
235 -- Current_Use_Clause Node27
236 -- Related_Type Node27
237 -- Wrapped_Entity Node27
239 -- Extra_Formals Node28
241 -- Initialization_Statements Node28
242 -- Original_Access_Type Node28
243 -- Relative_Deadline_Variable Node28
244 -- Underlying_Record_View Node28
246 -- BIP_Initialization_Call Node29
247 -- Subprograms_For_Type Node29
249 -- Corresponding_Equality Node30
250 -- Last_Aggregate_Assignment Node30
251 -- Static_Initialization Node30
253 -- Derived_Type_Link Node31
254 -- Thunk_Entity Node31
255 -- Activation_Record_Component Node31
257 -- SPARK_Pragma Node32
258 -- No_Tagged_Streams_Pragma Node32
260 -- Linker_Section_Pragma Node33
261 -- SPARK_Aux_Pragma Node33
265 -- Import_Pragma Node35
267 ---------------------------------------------
268 -- Usage of Flags in Defining Entity Nodes --
269 ---------------------------------------------
271 -- All flags are unique, there is no overlaying, so each flag is physically
272 -- present in every entity. However, for many of the flags, it only makes
273 -- sense for them to be set true for certain subsets of entity kinds. See
274 -- the spec of Einfo for further details.
276 -- Is_Inlined_Always Flag1
277 -- Is_Hidden_Non_Overridden_Subpgm Flag2
278 -- Has_Default_Init_Cond Flag3
280 -- Has_Discriminants Flag5
281 -- Is_Dispatching_Operation Flag6
282 -- Is_Immediately_Visible Flag7
284 -- Is_Potentially_Use_Visible Flag9
288 -- Is_Constrained Flag12
289 -- Is_Generic_Type Flag13
290 -- Depends_On_Private Flag14
292 -- Is_Volatile Flag16
293 -- Is_Internal Flag17
294 -- Has_Delayed_Freeze Flag18
295 -- Is_Abstract_Subprogram Flag19
296 -- Is_Concurrent_Record_Type Flag20
298 -- Has_Master_Entity Flag21
299 -- Needs_No_Actuals Flag22
300 -- Has_Storage_Size_Clause Flag23
301 -- Is_Imported Flag24
302 -- Is_Limited_Record Flag25
303 -- Has_Completion Flag26
304 -- Has_Pragma_Controlled Flag27
305 -- Is_Statically_Allocated Flag28
306 -- Has_Size_Clause Flag29
309 -- Checks_May_Be_Suppressed Flag31
310 -- Kill_Elaboration_Checks Flag32
311 -- Kill_Range_Checks Flag33
312 -- Has_Independent_Components Flag34
313 -- Is_Class_Wide_Equivalent_Type Flag35
314 -- Referenced_As_LHS Flag36
315 -- Is_Known_Non_Null Flag37
316 -- Can_Never_Be_Null Flag38
317 -- Has_Default_Aspect Flag39
318 -- Body_Needed_For_SAL Flag40
320 -- Treat_As_Volatile Flag41
321 -- Is_Controlled Flag42
322 -- Has_Controlled_Component Flag43
324 -- In_Private_Part Flag45
325 -- Has_Alignment_Clause Flag46
327 -- In_Package_Body Flag48
329 -- Delay_Subprogram_Descriptors Flag50
332 -- Is_Entry_Formal Flag52
333 -- Is_Private_Descendant Flag53
334 -- Return_Present Flag54
335 -- Is_Tagged_Type Flag55
336 -- Has_Homonym Flag56
338 -- Non_Binary_Modulus Flag58
339 -- Is_Preelaborated Flag59
340 -- Is_Shared_Passive Flag60
342 -- Is_Remote_Types Flag61
343 -- Is_Remote_Call_Interface Flag62
344 -- Is_Character_Type Flag63
345 -- Is_Intrinsic_Subprogram Flag64
346 -- Has_Record_Rep_Clause Flag65
347 -- Has_Enumeration_Rep_Clause Flag66
348 -- Has_Small_Clause Flag67
349 -- Has_Component_Size_Clause Flag68
350 -- Is_Access_Constant Flag69
351 -- Is_First_Subtype Flag70
353 -- Has_Completion_In_Body Flag71
354 -- Has_Unknown_Discriminants Flag72
355 -- Is_Child_Unit Flag73
356 -- Is_CPP_Class Flag74
357 -- Has_Non_Standard_Rep Flag75
358 -- Is_Constructor Flag76
359 -- Static_Elaboration_Desired Flag77
361 -- Has_All_Calls_Remote Flag79
362 -- Is_Constr_Subt_For_U_Nominal Flag80
364 -- Is_Asynchronous Flag81
365 -- Has_Gigi_Rep_Item Flag82
366 -- Has_Machine_Radix_Clause Flag83
367 -- Machine_Radix_10 Flag84
369 -- Has_Atomic_Components Flag86
370 -- Has_Volatile_Components Flag87
371 -- Discard_Names Flag88
372 -- Is_Interrupt_Handler Flag89
373 -- Returns_By_Ref Flag90
376 -- Size_Known_At_Compile_Time Flag92
377 -- Reverse_Storage_Order Flag93
378 -- Is_Generic_Actual_Type Flag94
379 -- Uses_Sec_Stack Flag95
380 -- Warnings_Off Flag96
381 -- Is_Controlling_Formal Flag97
382 -- Has_Controlling_Result Flag98
383 -- Is_Exported Flag99
384 -- Has_Specified_Layout Flag100
386 -- Has_Nested_Block_With_Handler Flag101
388 -- Is_Completely_Hidden Flag103
389 -- Address_Taken Flag104
390 -- Suppress_Initialization Flag105
391 -- Is_Limited_Composite Flag106
392 -- Is_Private_Composite Flag107
393 -- Default_Expressions_Processed Flag108
394 -- Is_Non_Static_Subtype Flag109
395 -- Has_Out_Or_In_Out_Parameter Flag110
397 -- Is_Formal_Subprogram Flag111
398 -- Is_Renaming_Of_Object Flag112
400 -- Delay_Cleanups Flag114
401 -- Never_Set_In_Source Flag115
402 -- Is_Visible_Lib_Unit Flag116
403 -- Is_Unchecked_Union Flag117
404 -- Is_For_Access_Subtype Flag118
405 -- Has_Convention_Pragma Flag119
406 -- Has_Primitive_Operations Flag120
408 -- Has_Pragma_Pack Flag121
409 -- Is_Bit_Packed_Array Flag122
410 -- Has_Unchecked_Union Flag123
411 -- Is_Eliminated Flag124
412 -- C_Pass_By_Copy Flag125
413 -- Is_Instantiated Flag126
414 -- Is_Valued_Procedure Flag127
415 -- (used for Component_Alignment) Flag128
416 -- (used for Component_Alignment) Flag129
417 -- Is_Generic_Instance Flag130
419 -- No_Pool_Assigned Flag131
420 -- Is_Default_Init_Cond_Procedure Flag132
421 -- Has_Inherited_Default_Init_Cond Flag133
422 -- Returns_Limited_View Flag134
423 -- Has_Aliased_Components Flag135
424 -- No_Strict_Aliasing Flag136
425 -- Is_Machine_Code_Subprogram Flag137
426 -- Is_Packed_Array_Impl_Type Flag138
427 -- Has_Biased_Representation Flag139
428 -- Has_Complex_Representation Flag140
430 -- Is_Constr_Subt_For_UN_Aliased Flag141
431 -- Has_Missing_Return Flag142
432 -- Has_Recursive_Call Flag143
433 -- Is_Unsigned_Type Flag144
434 -- Strict_Alignment Flag145
435 -- Is_Abstract_Type Flag146
436 -- Needs_Debug_Info Flag147
437 -- Suppress_Elaboration_Warnings Flag148
438 -- Is_Compilation_Unit Flag149
439 -- Has_Pragma_Elaborate_Body Flag150
441 -- Has_Private_Ancestor Flag151
442 -- Entry_Accepted Flag152
443 -- Is_Obsolescent Flag153
444 -- Has_Per_Object_Constraint Flag154
445 -- Has_Private_Declaration Flag155
446 -- Referenced Flag156
447 -- Has_Pragma_Inline Flag157
448 -- Finalize_Storage_Only Flag158
449 -- From_Limited_With Flag159
450 -- Is_Package_Body_Entity Flag160
452 -- Has_Qualified_Name Flag161
453 -- Nonzero_Is_True Flag162
454 -- Is_True_Constant Flag163
455 -- Reverse_Bit_Order Flag164
456 -- Suppress_Style_Checks Flag165
457 -- Debug_Info_Off Flag166
458 -- Sec_Stack_Needed_For_Return Flag167
459 -- Materialize_Entity Flag168
460 -- Has_Pragma_Thread_Local_Storage Flag169
461 -- Is_Known_Valid Flag170
463 -- Is_Hidden_Open_Scope Flag171
464 -- Has_Object_Size_Clause Flag172
465 -- Has_Fully_Qualified_Name Flag173
466 -- Elaboration_Entity_Required Flag174
467 -- Has_Forward_Instantiation Flag175
468 -- Is_Discrim_SO_Function Flag176
469 -- Size_Depends_On_Discriminant Flag177
470 -- Is_Null_Init_Proc Flag178
471 -- Has_Pragma_Pure_Function Flag179
472 -- Has_Pragma_Unreferenced Flag180
474 -- Has_Contiguous_Rep Flag181
475 -- Has_Xref_Entry Flag182
476 -- Must_Be_On_Byte_Boundary Flag183
477 -- Has_Stream_Size_Clause Flag184
478 -- Is_Ada_2005_Only Flag185
479 -- Is_Interface Flag186
480 -- Has_Constrained_Partial_View Flag187
481 -- Uses_Lock_Free Flag188
482 -- Is_Pure_Unit_Access_Type Flag189
483 -- Has_Specified_Stream_Input Flag190
485 -- Has_Specified_Stream_Output Flag191
486 -- Has_Specified_Stream_Read Flag192
487 -- Has_Specified_Stream_Write Flag193
488 -- Is_Local_Anonymous_Access Flag194
489 -- Is_Primitive_Wrapper Flag195
490 -- Was_Hidden Flag196
491 -- Is_Limited_Interface Flag197
492 -- Has_Pragma_Ordered Flag198
493 -- Is_Ada_2012_Only Flag199
495 -- Has_Delayed_Aspects Flag200
496 -- Has_Pragma_No_Inline Flag201
497 -- Itype_Printed Flag202
498 -- Has_Pragma_Pure Flag203
499 -- Is_Known_Null Flag204
500 -- Low_Bound_Tested Flag205
501 -- Is_Visible_Formal Flag206
502 -- Known_To_Have_Preelab_Init Flag207
503 -- Must_Have_Preelab_Init Flag208
504 -- Is_Return_Object Flag209
505 -- Elaborate_Body_Desirable Flag210
507 -- Has_Static_Discriminants Flag211
508 -- Has_Pragma_Unreferenced_Objects Flag212
509 -- Requires_Overriding Flag213
511 -- Has_Uplevel_Reference Flag215
512 -- Universal_Aliasing Flag216
513 -- Suppress_Value_Tracking_On_Call Flag217
514 -- Is_Primitive Flag218
515 -- Has_Initial_Value Flag219
516 -- Has_Dispatch_Table Flag220
518 -- Has_Pragma_Preelab_Init Flag221
519 -- Used_As_Generic_Actual Flag222
520 -- Is_Descendent_Of_Address Flag223
523 -- Is_Only_Out_Parameter Flag226
524 -- Referenced_As_Out_Parameter Flag227
525 -- Has_Thunks Flag228
526 -- Can_Use_Internal_Rep Flag229
527 -- Has_Pragma_Inline_Always Flag230
529 -- Renamed_In_Spec Flag231
530 -- Has_Invariants Flag232
531 -- Has_Pragma_Unmodified Flag233
532 -- Is_Dispatch_Table_Entity Flag234
533 -- Is_Trivial_Subprogram Flag235
534 -- Warnings_Off_Used Flag236
535 -- Warnings_Off_Used_Unmodified Flag237
536 -- Warnings_Off_Used_Unreferenced Flag238
537 -- OK_To_Reorder_Components Flag239
538 -- Has_Expanded_Contract Flag240
540 -- Optimize_Alignment_Space Flag241
541 -- Optimize_Alignment_Time Flag242
542 -- Overlays_Constant Flag243
543 -- Is_RACW_Stub_Type Flag244
544 -- Is_Private_Primitive Flag245
545 -- Is_Underlying_Record_View Flag246
546 -- OK_To_Rename Flag247
547 -- Has_Inheritable_Invariants Flag248
548 -- Is_Safe_To_Reevaluate Flag249
549 -- Has_Predicates Flag250
551 -- Has_Implicit_Dereference Flag251
552 -- Is_Processed_Transient Flag252
553 -- Has_Anonymous_Master Flag253
554 -- Is_Implementation_Defined Flag254
555 -- Is_Predicate_Function Flag255
556 -- Is_Predicate_Function_M Flag256
557 -- Is_Invariant_Procedure Flag257
558 -- Has_Dynamic_Predicate_Aspect Flag258
559 -- Has_Static_Predicate_Aspect Flag259
560 -- Has_Loop_Entry_Attributes Flag260
562 -- Has_Delayed_Rep_Aspects Flag261
563 -- May_Inherit_Delayed_Rep_Aspects Flag262
564 -- Has_Visible_Refinement Flag263
565 -- Is_Discriminant_Check_Function Flag264
566 -- SPARK_Pragma_Inherited Flag265
567 -- SPARK_Aux_Pragma_Inherited Flag266
568 -- Has_Shift_Operator Flag267
569 -- Is_Independent Flag268
570 -- Has_Static_Predicate Flag269
571 -- Stores_Attribute_Old_Prefix Flag270
573 -- Has_Protected Flag271
574 -- SSO_Set_Low_By_Default Flag272
575 -- SSO_Set_High_By_Default Flag273
576 -- Is_Generic_Actual_Subprogram Flag274
577 -- No_Predicate_On_Actual Flag275
578 -- No_Dynamic_Predicate_On_Actual Flag276
579 -- Is_Checked_Ghost_Entity Flag277
580 -- Is_Ignored_Ghost_Entity Flag278
581 -- Contains_Ignored_Ghost_Code Flag279
582 -- Partial_View_Has_Unknown_Discr Flag280
584 -- Is_Static_Type Flag281
585 -- Has_Nested_Subprogram Flag282
586 -- Uplevel_Reference_Noted Flag283
606 -- Note: Flag310-317 are defined in atree.ads/adb, but not yet in atree.h
608 -----------------------
609 -- Local subprograms --
610 -----------------------
613 (State_Id
: Entity_Id
;
614 Option_Nam
: Name_Id
) return Boolean;
615 -- Determine whether abstract state State_Id has particular option denoted
616 -- by the name Option_Nam.
622 function Float_Rep
(Id
: E
) return F
is
623 pragma Assert
(Is_Floating_Point_Type
(Id
));
625 return F
'Val (UI_To_Int
(Uint10
(Base_Type
(Id
))));
633 (State_Id
: Entity_Id
;
634 Option_Nam
: Name_Id
) return Boolean
636 Decl
: constant Node_Id
:= Parent
(State_Id
);
641 pragma Assert
(Ekind
(State_Id
) = E_Abstract_State
);
643 -- The declaration of abstract states with options appear as an
644 -- extension aggregate. If this is not the case, the option is not
647 if Nkind
(Decl
) /= N_Extension_Aggregate
then
653 Opt
:= First
(Expressions
(Decl
));
654 while Present
(Opt
) loop
656 -- Currently the only simple option allowed is External
658 if Nkind
(Opt
) = N_Identifier
659 and then Chars
(Opt
) = Name_External
660 and then Chars
(Opt
) = Option_Nam
668 -- Complex options with various specifiers
670 Opt
:= First
(Component_Associations
(Decl
));
671 while Present
(Opt
) loop
672 Opt_Nam
:= First
(Choices
(Opt
));
674 if Nkind
(Opt_Nam
) = N_Identifier
675 and then Chars
(Opt_Nam
) = Option_Nam
686 --------------------------------
687 -- Attribute Access Functions --
688 --------------------------------
690 function Abstract_States
(Id
: E
) return L
is
692 pragma Assert
(Ekind_In
(Id
, E_Generic_Package
, E_Package
));
696 function Accept_Address
(Id
: E
) return L
is
701 function Access_Disp_Table
(Id
: E
) return L
is
703 pragma Assert
(Ekind_In
(Id
, E_Record_Type
,
705 return Elist16
(Implementation_Base_Type
(Id
));
706 end Access_Disp_Table
;
708 function Activation_Record_Component
(Id
: E
) return E
is
710 pragma Assert
(Ekind_In
(Id
, E_Constant
,
717 end Activation_Record_Component
;
719 function Actual_Subtype
(Id
: E
) return E
is
722 (Ekind_In
(Id
, E_Constant
, E_Variable
, E_Generic_In_Out_Parameter
)
723 or else Is_Formal
(Id
));
727 function Address_Taken
(Id
: E
) return B
is
732 function Alias
(Id
: E
) return E
is
735 (Is_Overloadable
(Id
) or else Ekind
(Id
) = E_Subprogram_Type
);
739 function Alignment
(Id
: E
) return U
is
741 pragma Assert
(Is_Type
(Id
)
742 or else Is_Formal
(Id
)
743 or else Ekind_In
(Id
, E_Loop_Parameter
,
750 function Associated_Formal_Package
(Id
: E
) return E
is
752 pragma Assert
(Ekind
(Id
) = E_Package
);
754 end Associated_Formal_Package
;
756 function Associated_Node_For_Itype
(Id
: E
) return N
is
759 end Associated_Node_For_Itype
;
761 function Associated_Storage_Pool
(Id
: E
) return E
is
763 pragma Assert
(Is_Access_Type
(Id
));
764 return Node22
(Root_Type
(Id
));
765 end Associated_Storage_Pool
;
767 function Barrier_Function
(Id
: E
) return N
is
769 pragma Assert
(Is_Entry
(Id
));
771 end Barrier_Function
;
773 function Block_Node
(Id
: E
) return N
is
775 pragma Assert
(Ekind
(Id
) = E_Block
);
779 function Body_Entity
(Id
: E
) return E
is
781 pragma Assert
(Ekind_In
(Id
, E_Package
, E_Generic_Package
));
785 function Body_Needed_For_SAL
(Id
: E
) return B
is
788 (Ekind
(Id
) = E_Package
789 or else Is_Subprogram
(Id
)
790 or else Is_Generic_Unit
(Id
));
792 end Body_Needed_For_SAL
;
794 function Body_References
(Id
: E
) return L
is
796 pragma Assert
(Ekind
(Id
) = E_Abstract_State
);
800 function BIP_Initialization_Call
(Id
: E
) return N
is
802 pragma Assert
(Ekind_In
(Id
, E_Constant
, E_Variable
));
804 end BIP_Initialization_Call
;
806 function C_Pass_By_Copy
(Id
: E
) return B
is
808 pragma Assert
(Is_Record_Type
(Id
));
809 return Flag125
(Implementation_Base_Type
(Id
));
812 function Can_Never_Be_Null
(Id
: E
) return B
is
815 end Can_Never_Be_Null
;
817 function Checks_May_Be_Suppressed
(Id
: E
) return B
is
820 end Checks_May_Be_Suppressed
;
822 function Class_Wide_Type
(Id
: E
) return E
is
824 pragma Assert
(Is_Type
(Id
));
828 function Cloned_Subtype
(Id
: E
) return E
is
830 pragma Assert
(Ekind_In
(Id
, E_Record_Subtype
, E_Class_Wide_Subtype
));
834 function Component_Bit_Offset
(Id
: E
) return U
is
836 pragma Assert
(Ekind_In
(Id
, E_Component
, E_Discriminant
));
838 end Component_Bit_Offset
;
840 function Component_Clause
(Id
: E
) return N
is
842 pragma Assert
(Ekind_In
(Id
, E_Component
, E_Discriminant
));
844 end Component_Clause
;
846 function Component_Size
(Id
: E
) return U
is
848 pragma Assert
(Is_Array_Type
(Id
));
849 return Uint22
(Implementation_Base_Type
(Id
));
852 function Component_Type
(Id
: E
) return E
is
854 pragma Assert
(Is_Array_Type
(Id
) or else Is_String_Type
(Id
));
855 return Node20
(Implementation_Base_Type
(Id
));
858 function Corresponding_Concurrent_Type
(Id
: E
) return E
is
860 pragma Assert
(Ekind
(Id
) = E_Record_Type
);
862 end Corresponding_Concurrent_Type
;
864 function Corresponding_Discriminant
(Id
: E
) return E
is
866 pragma Assert
(Ekind
(Id
) = E_Discriminant
);
868 end Corresponding_Discriminant
;
870 function Corresponding_Equality
(Id
: E
) return E
is
873 (Ekind
(Id
) = E_Function
874 and then not Comes_From_Source
(Id
)
875 and then Chars
(Id
) = Name_Op_Ne
);
877 end Corresponding_Equality
;
879 function Corresponding_Protected_Entry
(Id
: E
) return E
is
881 pragma Assert
(Ekind
(Id
) = E_Subprogram_Body
);
883 end Corresponding_Protected_Entry
;
885 function Corresponding_Record_Type
(Id
: E
) return E
is
887 pragma Assert
(Is_Concurrent_Type
(Id
));
889 end Corresponding_Record_Type
;
891 function Corresponding_Remote_Type
(Id
: E
) return E
is
894 end Corresponding_Remote_Type
;
896 function Current_Use_Clause
(Id
: E
) return E
is
898 pragma Assert
(Ekind
(Id
) = E_Package
or else Is_Type
(Id
));
900 end Current_Use_Clause
;
902 function Current_Value
(Id
: E
) return N
is
904 pragma Assert
(Ekind
(Id
) in Object_Kind
);
908 function CR_Discriminant
(Id
: E
) return E
is
913 function Debug_Info_Off
(Id
: E
) return B
is
918 function Debug_Renaming_Link
(Id
: E
) return E
is
921 end Debug_Renaming_Link
;
923 function Default_Aspect_Component_Value
(Id
: E
) return N
is
925 pragma Assert
(Is_Array_Type
(Id
));
926 return Node19
(Base_Type
(Id
));
927 end Default_Aspect_Component_Value
;
929 function Default_Aspect_Value
(Id
: E
) return N
is
931 pragma Assert
(Is_Scalar_Type
(Id
));
932 return Node19
(Base_Type
(Id
));
933 end Default_Aspect_Value
;
935 function Default_Expr_Function
(Id
: E
) return E
is
937 pragma Assert
(Is_Formal
(Id
));
939 end Default_Expr_Function
;
941 function Default_Expressions_Processed
(Id
: E
) return B
is
944 end Default_Expressions_Processed
;
946 function Default_Value
(Id
: E
) return N
is
948 pragma Assert
(Is_Formal
(Id
));
952 function Delay_Cleanups
(Id
: E
) return B
is
957 function Delay_Subprogram_Descriptors
(Id
: E
) return B
is
960 end Delay_Subprogram_Descriptors
;
962 function Delta_Value
(Id
: E
) return R
is
964 pragma Assert
(Is_Fixed_Point_Type
(Id
));
968 function Dependent_Instances
(Id
: E
) return L
is
970 pragma Assert
(Is_Generic_Instance
(Id
));
972 end Dependent_Instances
;
974 function Depends_On_Private
(Id
: E
) return B
is
976 pragma Assert
(Nkind
(Id
) in N_Entity
);
978 end Depends_On_Private
;
980 function Derived_Type_Link
(Id
: E
) return E
is
982 pragma Assert
(Is_Type
(Id
));
983 return Node31
(Base_Type
(Id
));
984 end Derived_Type_Link
;
986 function Digits_Value
(Id
: E
) return U
is
989 (Is_Floating_Point_Type
(Id
)
990 or else Is_Decimal_Fixed_Point_Type
(Id
));
994 function Direct_Primitive_Operations
(Id
: E
) return L
is
996 pragma Assert
(Is_Tagged_Type
(Id
));
998 end Direct_Primitive_Operations
;
1000 function Directly_Designated_Type
(Id
: E
) return E
is
1002 pragma Assert
(Is_Access_Type
(Id
));
1004 end Directly_Designated_Type
;
1006 function Discard_Names
(Id
: E
) return B
is
1011 function Discriminal
(Id
: E
) return E
is
1013 pragma Assert
(Ekind
(Id
) = E_Discriminant
);
1017 function Discriminal_Link
(Id
: E
) return N
is
1020 end Discriminal_Link
;
1022 function Discriminant_Checking_Func
(Id
: E
) return E
is
1024 pragma Assert
(Ekind
(Id
) = E_Component
);
1026 end Discriminant_Checking_Func
;
1028 function Discriminant_Constraint
(Id
: E
) return L
is
1030 pragma Assert
(Is_Composite_Type
(Id
) and then Has_Discriminants
(Id
));
1031 return Elist21
(Id
);
1032 end Discriminant_Constraint
;
1034 function Discriminant_Default_Value
(Id
: E
) return N
is
1036 pragma Assert
(Ekind
(Id
) = E_Discriminant
);
1038 end Discriminant_Default_Value
;
1040 function Discriminant_Number
(Id
: E
) return U
is
1042 pragma Assert
(Ekind
(Id
) = E_Discriminant
);
1044 end Discriminant_Number
;
1046 function Dispatch_Table_Wrappers
(Id
: E
) return L
is
1048 pragma Assert
(Ekind_In
(Id
, E_Record_Type
,
1050 return Elist26
(Implementation_Base_Type
(Id
));
1051 end Dispatch_Table_Wrappers
;
1053 function DT_Entry_Count
(Id
: E
) return U
is
1055 pragma Assert
(Ekind
(Id
) = E_Component
and then Is_Tag
(Id
));
1059 function DT_Offset_To_Top_Func
(Id
: E
) return E
is
1061 pragma Assert
(Ekind
(Id
) = E_Component
and then Is_Tag
(Id
));
1063 end DT_Offset_To_Top_Func
;
1065 function DT_Position
(Id
: E
) return U
is
1067 pragma Assert
(Ekind_In
(Id
, E_Function
, E_Procedure
)
1068 and then Present
(DTC_Entity
(Id
)));
1072 function DTC_Entity
(Id
: E
) return E
is
1074 pragma Assert
(Ekind_In
(Id
, E_Function
, E_Procedure
));
1078 function Elaborate_Body_Desirable
(Id
: E
) return B
is
1080 pragma Assert
(Ekind
(Id
) = E_Package
);
1081 return Flag210
(Id
);
1082 end Elaborate_Body_Desirable
;
1084 function Elaboration_Entity
(Id
: E
) return E
is
1089 Ekind
(Id
) = E_Package
1091 Is_Generic_Unit
(Id
));
1093 end Elaboration_Entity
;
1095 function Elaboration_Entity_Required
(Id
: E
) return B
is
1100 Ekind
(Id
) = E_Package
1102 Is_Generic_Unit
(Id
));
1103 return Flag174
(Id
);
1104 end Elaboration_Entity_Required
;
1106 function Encapsulating_State
(Id
: E
) return N
is
1108 pragma Assert
(Ekind_In
(Id
, E_Abstract_State
, E_Variable
));
1110 end Encapsulating_State
;
1112 function Enclosing_Scope
(Id
: E
) return E
is
1115 end Enclosing_Scope
;
1117 function Entry_Accepted
(Id
: E
) return B
is
1119 pragma Assert
(Is_Entry
(Id
));
1120 return Flag152
(Id
);
1123 function Entry_Bodies_Array
(Id
: E
) return E
is
1126 end Entry_Bodies_Array
;
1128 function Entry_Cancel_Parameter
(Id
: E
) return E
is
1131 end Entry_Cancel_Parameter
;
1133 function Entry_Component
(Id
: E
) return E
is
1136 end Entry_Component
;
1138 function Entry_Formal
(Id
: E
) return E
is
1143 function Entry_Index_Constant
(Id
: E
) return N
is
1145 pragma Assert
(Ekind
(Id
) = E_Entry_Index_Parameter
);
1147 end Entry_Index_Constant
;
1149 function Contains_Ignored_Ghost_Code
(Id
: E
) return B
is
1152 (Ekind_In
(Id
, E_Block
,
1156 E_Generic_Procedure
,
1160 E_Subprogram_Body
));
1161 return Flag279
(Id
);
1162 end Contains_Ignored_Ghost_Code
;
1164 function Contract
(Id
: E
) return N
is
1167 (Ekind_In
(Id
, E_Entry
,
1174 or else Is_Subprogram_Or_Generic_Subprogram
(Id
));
1178 function Entry_Parameters_Type
(Id
: E
) return E
is
1181 end Entry_Parameters_Type
;
1183 function Enum_Pos_To_Rep
(Id
: E
) return E
is
1185 pragma Assert
(Ekind
(Id
) = E_Enumeration_Type
);
1187 end Enum_Pos_To_Rep
;
1189 function Enumeration_Pos
(Id
: E
) return Uint
is
1191 pragma Assert
(Ekind
(Id
) = E_Enumeration_Literal
);
1193 end Enumeration_Pos
;
1195 function Enumeration_Rep
(Id
: E
) return U
is
1197 pragma Assert
(Ekind
(Id
) = E_Enumeration_Literal
);
1199 end Enumeration_Rep
;
1201 function Enumeration_Rep_Expr
(Id
: E
) return N
is
1203 pragma Assert
(Ekind
(Id
) = E_Enumeration_Literal
);
1205 end Enumeration_Rep_Expr
;
1207 function Equivalent_Type
(Id
: E
) return E
is
1210 (Ekind_In
(Id
, E_Class_Wide_Type
,
1211 E_Class_Wide_Subtype
,
1212 E_Access_Subprogram_Type
,
1213 E_Access_Protected_Subprogram_Type
,
1214 E_Anonymous_Access_Protected_Subprogram_Type
,
1215 E_Access_Subprogram_Type
,
1218 end Equivalent_Type
;
1220 function Esize
(Id
: E
) return Uint
is
1225 function Extra_Accessibility
(Id
: E
) return E
is
1228 (Is_Formal
(Id
) or else Ekind_In
(Id
, E_Variable
, E_Constant
));
1230 end Extra_Accessibility
;
1232 function Extra_Accessibility_Of_Result
(Id
: E
) return E
is
1234 pragma Assert
(Ekind_In
(Id
, E_Function
, E_Operator
, E_Subprogram_Type
));
1236 end Extra_Accessibility_Of_Result
;
1238 function Extra_Constrained
(Id
: E
) return E
is
1240 pragma Assert
(Is_Formal
(Id
) or else Ekind
(Id
) = E_Variable
);
1242 end Extra_Constrained
;
1244 function Extra_Formal
(Id
: E
) return E
is
1249 function Extra_Formals
(Id
: E
) return E
is
1252 (Is_Overloadable
(Id
)
1253 or else Ekind_In
(Id
, E_Entry_Family
,
1255 E_Subprogram_Type
));
1259 function Can_Use_Internal_Rep
(Id
: E
) return B
is
1261 pragma Assert
(Is_Access_Subprogram_Type
(Base_Type
(Id
)));
1262 return Flag229
(Base_Type
(Id
));
1263 end Can_Use_Internal_Rep
;
1265 function Finalization_Master
(Id
: E
) return E
is
1267 pragma Assert
(Is_Access_Type
(Id
));
1268 return Node23
(Root_Type
(Id
));
1269 end Finalization_Master
;
1271 function Finalize_Storage_Only
(Id
: E
) return B
is
1273 pragma Assert
(Is_Type
(Id
));
1274 return Flag158
(Base_Type
(Id
));
1275 end Finalize_Storage_Only
;
1277 function Finalizer
(Id
: E
) return E
is
1279 pragma Assert
(Ekind_In
(Id
, E_Package
, E_Package_Body
));
1283 function First_Entity
(Id
: E
) return E
is
1288 function First_Exit_Statement
(Id
: E
) return N
is
1290 pragma Assert
(Ekind
(Id
) = E_Loop
);
1292 end First_Exit_Statement
;
1294 function First_Index
(Id
: E
) return N
is
1296 pragma Assert
(Is_Array_Type
(Id
) or else Is_String_Type
(Id
));
1300 function First_Literal
(Id
: E
) return E
is
1302 pragma Assert
(Is_Enumeration_Type
(Id
));
1306 function First_Private_Entity
(Id
: E
) return E
is
1308 pragma Assert
(Ekind_In
(Id
, E_Package
, E_Generic_Package
)
1309 or else Ekind
(Id
) in Concurrent_Kind
);
1311 end First_Private_Entity
;
1313 function First_Rep_Item
(Id
: E
) return E
is
1318 function Freeze_Node
(Id
: E
) return N
is
1323 function From_Limited_With
(Id
: E
) return B
is
1325 return Flag159
(Id
);
1326 end From_Limited_With
;
1328 function Full_View
(Id
: E
) return E
is
1330 pragma Assert
(Is_Type
(Id
) or else Ekind
(Id
) = E_Constant
);
1334 function Generic_Homonym
(Id
: E
) return E
is
1336 pragma Assert
(Ekind
(Id
) = E_Generic_Package
);
1338 end Generic_Homonym
;
1340 function Generic_Renamings
(Id
: E
) return L
is
1342 return Elist23
(Id
);
1343 end Generic_Renamings
;
1345 function Handler_Records
(Id
: E
) return S
is
1348 end Handler_Records
;
1350 function Has_Aliased_Components
(Id
: E
) return B
is
1352 return Flag135
(Implementation_Base_Type
(Id
));
1353 end Has_Aliased_Components
;
1355 function Has_Alignment_Clause
(Id
: E
) return B
is
1358 end Has_Alignment_Clause
;
1360 function Has_All_Calls_Remote
(Id
: E
) return B
is
1363 end Has_All_Calls_Remote
;
1365 function Has_Anonymous_Master
(Id
: E
) return B
is
1368 (Ekind_In
(Id
, E_Function
, E_Package
, E_Package_Body
, E_Procedure
));
1369 return Flag253
(Id
);
1370 end Has_Anonymous_Master
;
1372 function Has_Atomic_Components
(Id
: E
) return B
is
1374 return Flag86
(Implementation_Base_Type
(Id
));
1375 end Has_Atomic_Components
;
1377 function Has_Biased_Representation
(Id
: E
) return B
is
1379 return Flag139
(Id
);
1380 end Has_Biased_Representation
;
1382 function Has_Completion
(Id
: E
) return B
is
1387 function Has_Completion_In_Body
(Id
: E
) return B
is
1389 pragma Assert
(Is_Type
(Id
));
1391 end Has_Completion_In_Body
;
1393 function Has_Complex_Representation
(Id
: E
) return B
is
1395 pragma Assert
(Is_Type
(Id
));
1396 return Flag140
(Implementation_Base_Type
(Id
));
1397 end Has_Complex_Representation
;
1399 function Has_Component_Size_Clause
(Id
: E
) return B
is
1401 pragma Assert
(Is_Array_Type
(Id
));
1402 return Flag68
(Implementation_Base_Type
(Id
));
1403 end Has_Component_Size_Clause
;
1405 function Has_Constrained_Partial_View
(Id
: E
) return B
is
1407 pragma Assert
(Is_Type
(Id
));
1408 return Flag187
(Id
);
1409 end Has_Constrained_Partial_View
;
1411 function Has_Controlled_Component
(Id
: E
) return B
is
1413 return Flag43
(Base_Type
(Id
));
1414 end Has_Controlled_Component
;
1416 function Has_Contiguous_Rep
(Id
: E
) return B
is
1418 return Flag181
(Id
);
1419 end Has_Contiguous_Rep
;
1421 function Has_Controlling_Result
(Id
: E
) return B
is
1424 end Has_Controlling_Result
;
1426 function Has_Convention_Pragma
(Id
: E
) return B
is
1428 return Flag119
(Id
);
1429 end Has_Convention_Pragma
;
1431 function Has_Default_Aspect
(Id
: E
) return B
is
1433 return Flag39
(Base_Type
(Id
));
1434 end Has_Default_Aspect
;
1436 function Has_Default_Init_Cond
(Id
: E
) return B
is
1439 end Has_Default_Init_Cond
;
1441 function Has_Delayed_Aspects
(Id
: E
) return B
is
1443 pragma Assert
(Nkind
(Id
) in N_Entity
);
1444 return Flag200
(Id
);
1445 end Has_Delayed_Aspects
;
1447 function Has_Delayed_Freeze
(Id
: E
) return B
is
1449 pragma Assert
(Nkind
(Id
) in N_Entity
);
1451 end Has_Delayed_Freeze
;
1453 function Has_Delayed_Rep_Aspects
(Id
: E
) return B
is
1455 pragma Assert
(Nkind
(Id
) in N_Entity
);
1456 return Flag261
(Id
);
1457 end Has_Delayed_Rep_Aspects
;
1459 function Has_Discriminants
(Id
: E
) return B
is
1461 pragma Assert
(Nkind
(Id
) in N_Entity
);
1463 end Has_Discriminants
;
1465 function Has_Dispatch_Table
(Id
: E
) return B
is
1467 pragma Assert
(Is_Tagged_Type
(Id
));
1468 return Flag220
(Id
);
1469 end Has_Dispatch_Table
;
1471 function Has_Dynamic_Predicate_Aspect
(Id
: E
) return B
is
1473 pragma Assert
(Is_Type
(Id
));
1474 return Flag258
(Id
);
1475 end Has_Dynamic_Predicate_Aspect
;
1477 function Has_Enumeration_Rep_Clause
(Id
: E
) return B
is
1479 pragma Assert
(Is_Enumeration_Type
(Id
));
1481 end Has_Enumeration_Rep_Clause
;
1483 function Has_Exit
(Id
: E
) return B
is
1488 function Has_Expanded_Contract
(Id
: E
) return B
is
1490 pragma Assert
(Is_Subprogram
(Id
));
1491 return Flag240
(Id
);
1492 end Has_Expanded_Contract
;
1494 function Has_Forward_Instantiation
(Id
: E
) return B
is
1496 return Flag175
(Id
);
1497 end Has_Forward_Instantiation
;
1499 function Has_Fully_Qualified_Name
(Id
: E
) return B
is
1501 return Flag173
(Id
);
1502 end Has_Fully_Qualified_Name
;
1504 function Has_Gigi_Rep_Item
(Id
: E
) return B
is
1507 end Has_Gigi_Rep_Item
;
1509 function Has_Homonym
(Id
: E
) return B
is
1514 function Has_Implicit_Dereference
(Id
: E
) return B
is
1516 return Flag251
(Id
);
1517 end Has_Implicit_Dereference
;
1519 function Has_Independent_Components
(Id
: E
) return B
is
1521 return Flag34
(Implementation_Base_Type
(Id
));
1522 end Has_Independent_Components
;
1524 function Has_Inheritable_Invariants
(Id
: E
) return B
is
1526 pragma Assert
(Is_Type
(Id
));
1527 return Flag248
(Id
);
1528 end Has_Inheritable_Invariants
;
1530 function Has_Inherited_Default_Init_Cond
(Id
: E
) return B
is
1532 pragma Assert
(Is_Type
(Id
));
1533 return Flag133
(Id
);
1534 end Has_Inherited_Default_Init_Cond
;
1536 function Has_Initial_Value
(Id
: E
) return B
is
1538 pragma Assert
(Ekind
(Id
) = E_Variable
or else Is_Formal
(Id
));
1539 return Flag219
(Id
);
1540 end Has_Initial_Value
;
1542 function Has_Invariants
(Id
: E
) return B
is
1544 pragma Assert
(Is_Type
(Id
));
1545 return Flag232
(Id
);
1548 function Has_Loop_Entry_Attributes
(Id
: E
) return B
is
1550 pragma Assert
(Ekind
(Id
) = E_Loop
);
1551 return Flag260
(Id
);
1552 end Has_Loop_Entry_Attributes
;
1554 function Has_Machine_Radix_Clause
(Id
: E
) return B
is
1556 pragma Assert
(Is_Decimal_Fixed_Point_Type
(Id
));
1558 end Has_Machine_Radix_Clause
;
1560 function Has_Master_Entity
(Id
: E
) return B
is
1563 end Has_Master_Entity
;
1565 function Has_Missing_Return
(Id
: E
) return B
is
1567 pragma Assert
(Ekind_In
(Id
, E_Function
, E_Generic_Function
));
1568 return Flag142
(Id
);
1569 end Has_Missing_Return
;
1571 function Has_Nested_Block_With_Handler
(Id
: E
) return B
is
1573 return Flag101
(Id
);
1574 end Has_Nested_Block_With_Handler
;
1576 function Has_Nested_Subprogram
(Id
: E
) return B
is
1578 pragma Assert
(Is_Subprogram
(Id
));
1579 return Flag282
(Id
);
1580 end Has_Nested_Subprogram
;
1582 function Has_Non_Standard_Rep
(Id
: E
) return B
is
1584 return Flag75
(Implementation_Base_Type
(Id
));
1585 end Has_Non_Standard_Rep
;
1587 function Has_Object_Size_Clause
(Id
: E
) return B
is
1589 pragma Assert
(Is_Type
(Id
));
1590 return Flag172
(Id
);
1591 end Has_Object_Size_Clause
;
1593 function Has_Out_Or_In_Out_Parameter
(Id
: E
) return B
is
1595 pragma Assert
(Ekind_In
(Id
, E_Function
, E_Generic_Function
));
1596 return Flag110
(Id
);
1597 end Has_Out_Or_In_Out_Parameter
;
1599 function Has_Per_Object_Constraint
(Id
: E
) return B
is
1601 return Flag154
(Id
);
1602 end Has_Per_Object_Constraint
;
1604 function Has_Pragma_Controlled
(Id
: E
) return B
is
1606 pragma Assert
(Is_Access_Type
(Id
));
1607 return Flag27
(Implementation_Base_Type
(Id
));
1608 end Has_Pragma_Controlled
;
1610 function Has_Pragma_Elaborate_Body
(Id
: E
) return B
is
1612 return Flag150
(Id
);
1613 end Has_Pragma_Elaborate_Body
;
1615 function Has_Pragma_Inline
(Id
: E
) return B
is
1617 return Flag157
(Id
);
1618 end Has_Pragma_Inline
;
1620 function Has_Pragma_Inline_Always
(Id
: E
) return B
is
1622 return Flag230
(Id
);
1623 end Has_Pragma_Inline_Always
;
1625 function Has_Pragma_No_Inline
(Id
: E
) return B
is
1627 return Flag201
(Id
);
1628 end Has_Pragma_No_Inline
;
1630 function Has_Pragma_Ordered
(Id
: E
) return B
is
1632 pragma Assert
(Is_Enumeration_Type
(Id
));
1633 return Flag198
(Implementation_Base_Type
(Id
));
1634 end Has_Pragma_Ordered
;
1636 function Has_Pragma_Pack
(Id
: E
) return B
is
1638 pragma Assert
(Is_Record_Type
(Id
) or else Is_Array_Type
(Id
));
1639 return Flag121
(Implementation_Base_Type
(Id
));
1640 end Has_Pragma_Pack
;
1642 function Has_Pragma_Preelab_Init
(Id
: E
) return B
is
1644 return Flag221
(Id
);
1645 end Has_Pragma_Preelab_Init
;
1647 function Has_Pragma_Pure
(Id
: E
) return B
is
1649 return Flag203
(Id
);
1650 end Has_Pragma_Pure
;
1652 function Has_Pragma_Pure_Function
(Id
: E
) return B
is
1654 return Flag179
(Id
);
1655 end Has_Pragma_Pure_Function
;
1657 function Has_Pragma_Thread_Local_Storage
(Id
: E
) return B
is
1659 return Flag169
(Id
);
1660 end Has_Pragma_Thread_Local_Storage
;
1662 function Has_Pragma_Unmodified
(Id
: E
) return B
is
1664 return Flag233
(Id
);
1665 end Has_Pragma_Unmodified
;
1667 function Has_Pragma_Unreferenced
(Id
: E
) return B
is
1669 return Flag180
(Id
);
1670 end Has_Pragma_Unreferenced
;
1672 function Has_Pragma_Unreferenced_Objects
(Id
: E
) return B
is
1674 pragma Assert
(Is_Type
(Id
));
1675 return Flag212
(Id
);
1676 end Has_Pragma_Unreferenced_Objects
;
1678 function Has_Predicates
(Id
: E
) return B
is
1680 pragma Assert
(Is_Type
(Id
));
1681 return Flag250
(Id
);
1684 function Has_Primitive_Operations
(Id
: E
) return B
is
1686 pragma Assert
(Is_Type
(Id
));
1687 return Flag120
(Base_Type
(Id
));
1688 end Has_Primitive_Operations
;
1690 function Has_Private_Ancestor
(Id
: E
) return B
is
1692 return Flag151
(Id
);
1693 end Has_Private_Ancestor
;
1695 function Has_Private_Declaration
(Id
: E
) return B
is
1697 return Flag155
(Id
);
1698 end Has_Private_Declaration
;
1700 function Has_Protected
(Id
: E
) return B
is
1702 return Flag271
(Base_Type
(Id
));
1705 function Has_Qualified_Name
(Id
: E
) return B
is
1707 return Flag161
(Id
);
1708 end Has_Qualified_Name
;
1710 function Has_RACW
(Id
: E
) return B
is
1712 pragma Assert
(Ekind
(Id
) = E_Package
);
1713 return Flag214
(Id
);
1716 function Has_Record_Rep_Clause
(Id
: E
) return B
is
1718 pragma Assert
(Is_Record_Type
(Id
));
1719 return Flag65
(Implementation_Base_Type
(Id
));
1720 end Has_Record_Rep_Clause
;
1722 function Has_Recursive_Call
(Id
: E
) return B
is
1724 pragma Assert
(Is_Subprogram
(Id
));
1725 return Flag143
(Id
);
1726 end Has_Recursive_Call
;
1728 function Has_Shift_Operator
(Id
: E
) return B
is
1730 pragma Assert
(Is_Integer_Type
(Id
));
1731 return Flag267
(Base_Type
(Id
));
1732 end Has_Shift_Operator
;
1734 function Has_Size_Clause
(Id
: E
) return B
is
1737 end Has_Size_Clause
;
1739 function Has_Small_Clause
(Id
: E
) return B
is
1742 end Has_Small_Clause
;
1744 function Has_Specified_Layout
(Id
: E
) return B
is
1746 pragma Assert
(Is_Type
(Id
));
1747 return Flag100
(Implementation_Base_Type
(Id
));
1748 end Has_Specified_Layout
;
1750 function Has_Specified_Stream_Input
(Id
: E
) return B
is
1752 pragma Assert
(Is_Type
(Id
));
1753 return Flag190
(Id
);
1754 end Has_Specified_Stream_Input
;
1756 function Has_Specified_Stream_Output
(Id
: E
) return B
is
1758 pragma Assert
(Is_Type
(Id
));
1759 return Flag191
(Id
);
1760 end Has_Specified_Stream_Output
;
1762 function Has_Specified_Stream_Read
(Id
: E
) return B
is
1764 pragma Assert
(Is_Type
(Id
));
1765 return Flag192
(Id
);
1766 end Has_Specified_Stream_Read
;
1768 function Has_Specified_Stream_Write
(Id
: E
) return B
is
1770 pragma Assert
(Is_Type
(Id
));
1771 return Flag193
(Id
);
1772 end Has_Specified_Stream_Write
;
1774 function Has_Static_Discriminants
(Id
: E
) return B
is
1776 pragma Assert
(Is_Type
(Id
));
1777 return Flag211
(Id
);
1778 end Has_Static_Discriminants
;
1780 function Has_Static_Predicate
(Id
: E
) return B
is
1782 pragma Assert
(Is_Type
(Id
));
1783 return Flag269
(Id
);
1784 end Has_Static_Predicate
;
1786 function Has_Static_Predicate_Aspect
(Id
: E
) return B
is
1788 pragma Assert
(Is_Type
(Id
));
1789 return Flag259
(Id
);
1790 end Has_Static_Predicate_Aspect
;
1792 function Has_Storage_Size_Clause
(Id
: E
) return B
is
1794 pragma Assert
(Is_Access_Type
(Id
) or else Is_Task_Type
(Id
));
1795 return Flag23
(Implementation_Base_Type
(Id
));
1796 end Has_Storage_Size_Clause
;
1798 function Has_Stream_Size_Clause
(Id
: E
) return B
is
1800 return Flag184
(Id
);
1801 end Has_Stream_Size_Clause
;
1803 function Has_Task
(Id
: E
) return B
is
1805 return Flag30
(Base_Type
(Id
));
1808 function Has_Thunks
(Id
: E
) return B
is
1810 return Flag228
(Id
);
1813 function Has_Unchecked_Union
(Id
: E
) return B
is
1815 return Flag123
(Base_Type
(Id
));
1816 end Has_Unchecked_Union
;
1818 function Has_Unknown_Discriminants
(Id
: E
) return B
is
1820 pragma Assert
(Is_Type
(Id
));
1822 end Has_Unknown_Discriminants
;
1824 function Has_Uplevel_Reference
(Id
: E
) return B
is
1826 return Flag215
(Id
);
1827 end Has_Uplevel_Reference
;
1829 function Has_Visible_Refinement
(Id
: E
) return B
is
1831 pragma Assert
(Ekind
(Id
) = E_Abstract_State
);
1832 return Flag263
(Id
);
1833 end Has_Visible_Refinement
;
1835 function Has_Volatile_Components
(Id
: E
) return B
is
1837 return Flag87
(Implementation_Base_Type
(Id
));
1838 end Has_Volatile_Components
;
1840 function Has_Xref_Entry
(Id
: E
) return B
is
1842 return Flag182
(Id
);
1845 function Hiding_Loop_Variable
(Id
: E
) return E
is
1847 pragma Assert
(Ekind
(Id
) = E_Variable
);
1849 end Hiding_Loop_Variable
;
1851 function Homonym
(Id
: E
) return E
is
1856 function Import_Pragma
(Id
: E
) return E
is
1858 pragma Assert
(Is_Subprogram
(Id
));
1862 function Interface_Alias
(Id
: E
) return E
is
1864 pragma Assert
(Is_Subprogram
(Id
));
1866 end Interface_Alias
;
1868 function Interfaces
(Id
: E
) return L
is
1870 pragma Assert
(Is_Record_Type
(Id
));
1871 return Elist25
(Id
);
1874 function In_Package_Body
(Id
: E
) return B
is
1877 end In_Package_Body
;
1879 function In_Private_Part
(Id
: E
) return B
is
1882 end In_Private_Part
;
1884 function In_Use
(Id
: E
) return B
is
1886 pragma Assert
(Nkind
(Id
) in N_Entity
);
1890 function Initialization_Statements
(Id
: E
) return N
is
1892 pragma Assert
(Ekind_In
(Id
, E_Constant
, E_Variable
));
1894 end Initialization_Statements
;
1896 function Inner_Instances
(Id
: E
) return L
is
1898 return Elist23
(Id
);
1899 end Inner_Instances
;
1901 function Interface_Name
(Id
: E
) return N
is
1906 function Is_Abstract_Subprogram
(Id
: E
) return B
is
1908 pragma Assert
(Is_Overloadable
(Id
));
1910 end Is_Abstract_Subprogram
;
1912 function Is_Abstract_Type
(Id
: E
) return B
is
1914 pragma Assert
(Is_Type
(Id
));
1915 return Flag146
(Id
);
1916 end Is_Abstract_Type
;
1918 function Is_Local_Anonymous_Access
(Id
: E
) return B
is
1920 pragma Assert
(Is_Access_Type
(Id
));
1921 return Flag194
(Id
);
1922 end Is_Local_Anonymous_Access
;
1924 function Is_Access_Constant
(Id
: E
) return B
is
1926 pragma Assert
(Is_Access_Type
(Id
));
1928 end Is_Access_Constant
;
1930 function Is_Ada_2005_Only
(Id
: E
) return B
is
1932 return Flag185
(Id
);
1933 end Is_Ada_2005_Only
;
1935 function Is_Ada_2012_Only
(Id
: E
) return B
is
1937 return Flag199
(Id
);
1938 end Is_Ada_2012_Only
;
1940 function Is_Aliased
(Id
: E
) return B
is
1942 pragma Assert
(Nkind
(Id
) in N_Entity
);
1946 function Is_Asynchronous
(Id
: E
) return B
is
1948 pragma Assert
(Ekind
(Id
) = E_Procedure
or else Is_Type
(Id
));
1950 end Is_Asynchronous
;
1952 function Is_Atomic
(Id
: E
) return B
is
1957 function Is_Bit_Packed_Array
(Id
: E
) return B
is
1959 return Flag122
(Implementation_Base_Type
(Id
));
1960 end Is_Bit_Packed_Array
;
1962 function Is_Called
(Id
: E
) return B
is
1964 pragma Assert
(Ekind_In
(Id
, E_Procedure
, E_Function
));
1965 return Flag102
(Id
);
1968 function Is_Character_Type
(Id
: E
) return B
is
1971 end Is_Character_Type
;
1973 function Is_Checked_Ghost_Entity
(Id
: E
) return B
is
1975 pragma Assert
(Nkind
(Id
) in N_Entity
);
1976 return Flag277
(Id
);
1977 end Is_Checked_Ghost_Entity
;
1979 function Is_Child_Unit
(Id
: E
) return B
is
1984 function Is_Class_Wide_Equivalent_Type
(Id
: E
) return B
is
1987 end Is_Class_Wide_Equivalent_Type
;
1989 function Is_Compilation_Unit
(Id
: E
) return B
is
1991 return Flag149
(Id
);
1992 end Is_Compilation_Unit
;
1994 function Is_Completely_Hidden
(Id
: E
) return B
is
1996 pragma Assert
(Ekind
(Id
) = E_Discriminant
);
1997 return Flag103
(Id
);
1998 end Is_Completely_Hidden
;
2000 function Is_Constr_Subt_For_U_Nominal
(Id
: E
) return B
is
2003 end Is_Constr_Subt_For_U_Nominal
;
2005 function Is_Constr_Subt_For_UN_Aliased
(Id
: E
) return B
is
2007 return Flag141
(Id
);
2008 end Is_Constr_Subt_For_UN_Aliased
;
2010 function Is_Constrained
(Id
: E
) return B
is
2012 pragma Assert
(Nkind
(Id
) in N_Entity
);
2016 function Is_Constructor
(Id
: E
) return B
is
2021 function Is_Controlled
(Id
: E
) return B
is
2023 return Flag42
(Base_Type
(Id
));
2026 function Is_Controlling_Formal
(Id
: E
) return B
is
2028 pragma Assert
(Is_Formal
(Id
));
2030 end Is_Controlling_Formal
;
2032 function Is_CPP_Class
(Id
: E
) return B
is
2037 function Is_Default_Init_Cond_Procedure
(Id
: E
) return B
is
2039 pragma Assert
(Ekind_In
(Id
, E_Function
, E_Procedure
));
2040 return Flag132
(Id
);
2041 end Is_Default_Init_Cond_Procedure
;
2043 function Is_Descendent_Of_Address
(Id
: E
) return B
is
2045 return Flag223
(Id
);
2046 end Is_Descendent_Of_Address
;
2048 function Is_Discrim_SO_Function
(Id
: E
) return B
is
2050 return Flag176
(Id
);
2051 end Is_Discrim_SO_Function
;
2053 function Is_Discriminant_Check_Function
(Id
: E
) return B
is
2055 return Flag264
(Id
);
2056 end Is_Discriminant_Check_Function
;
2058 function Is_Dispatch_Table_Entity
(Id
: E
) return B
is
2060 return Flag234
(Id
);
2061 end Is_Dispatch_Table_Entity
;
2063 function Is_Dispatching_Operation
(Id
: E
) return B
is
2065 pragma Assert
(Nkind
(Id
) in N_Entity
);
2067 end Is_Dispatching_Operation
;
2069 function Is_Eliminated
(Id
: E
) return B
is
2071 return Flag124
(Id
);
2074 function Is_Entry_Formal
(Id
: E
) return B
is
2077 end Is_Entry_Formal
;
2079 function Is_Exported
(Id
: E
) return B
is
2084 function Is_First_Subtype
(Id
: E
) return B
is
2087 end Is_First_Subtype
;
2089 function Is_For_Access_Subtype
(Id
: E
) return B
is
2091 pragma Assert
(Ekind_In
(Id
, E_Record_Subtype
, E_Private_Subtype
));
2092 return Flag118
(Id
);
2093 end Is_For_Access_Subtype
;
2095 function Is_Formal_Subprogram
(Id
: E
) return B
is
2097 return Flag111
(Id
);
2098 end Is_Formal_Subprogram
;
2100 function Is_Frozen
(Id
: E
) return B
is
2105 function Is_Generic_Actual_Subprogram
(Id
: E
) return B
is
2107 pragma Assert
(Ekind
(Id
) = E_Function
or else Ekind
(Id
) = E_Procedure
);
2108 return Flag274
(Id
);
2109 end Is_Generic_Actual_Subprogram
;
2111 function Is_Generic_Actual_Type
(Id
: E
) return B
is
2113 pragma Assert
(Is_Type
(Id
));
2115 end Is_Generic_Actual_Type
;
2117 function Is_Generic_Instance
(Id
: E
) return B
is
2119 return Flag130
(Id
);
2120 end Is_Generic_Instance
;
2122 function Is_Generic_Type
(Id
: E
) return B
is
2124 pragma Assert
(Nkind
(Id
) in N_Entity
);
2126 end Is_Generic_Type
;
2128 function Is_Hidden
(Id
: E
) return B
is
2133 function Is_Hidden_Non_Overridden_Subpgm
(Id
: E
) return B
is
2136 end Is_Hidden_Non_Overridden_Subpgm
;
2138 function Is_Hidden_Open_Scope
(Id
: E
) return B
is
2140 return Flag171
(Id
);
2141 end Is_Hidden_Open_Scope
;
2143 function Is_Ignored_Ghost_Entity
(Id
: E
) return B
is
2145 pragma Assert
(Nkind
(Id
) in N_Entity
);
2146 return Flag278
(Id
);
2147 end Is_Ignored_Ghost_Entity
;
2149 function Is_Immediately_Visible
(Id
: E
) return B
is
2151 pragma Assert
(Nkind
(Id
) in N_Entity
);
2153 end Is_Immediately_Visible
;
2155 function Is_Implementation_Defined
(Id
: E
) return B
is
2157 return Flag254
(Id
);
2158 end Is_Implementation_Defined
;
2160 function Is_Imported
(Id
: E
) return B
is
2165 function Is_Independent
(Id
: E
) return B
is
2167 return Flag268
(Id
);
2170 function Is_Inlined
(Id
: E
) return B
is
2175 function Is_Inlined_Always
(Id
: E
) return B
is
2177 pragma Assert
(Ekind
(Id
) = E_Function
or else Ekind
(Id
) = E_Procedure
);
2179 end Is_Inlined_Always
;
2181 function Is_Interface
(Id
: E
) return B
is
2183 return Flag186
(Id
);
2186 function Is_Instantiated
(Id
: E
) return B
is
2188 return Flag126
(Id
);
2189 end Is_Instantiated
;
2191 function Is_Internal
(Id
: E
) return B
is
2193 pragma Assert
(Nkind
(Id
) in N_Entity
);
2197 function Is_Interrupt_Handler
(Id
: E
) return B
is
2199 pragma Assert
(Nkind
(Id
) in N_Entity
);
2201 end Is_Interrupt_Handler
;
2203 function Is_Intrinsic_Subprogram
(Id
: E
) return B
is
2206 end Is_Intrinsic_Subprogram
;
2208 function Is_Invariant_Procedure
(Id
: E
) return B
is
2210 pragma Assert
(Ekind_In
(Id
, E_Function
, E_Procedure
));
2211 return Flag257
(Id
);
2212 end Is_Invariant_Procedure
;
2214 function Is_Itype
(Id
: E
) return B
is
2219 function Is_Known_Non_Null
(Id
: E
) return B
is
2222 end Is_Known_Non_Null
;
2224 function Is_Known_Null
(Id
: E
) return B
is
2226 return Flag204
(Id
);
2229 function Is_Known_Valid
(Id
: E
) return B
is
2231 return Flag170
(Id
);
2234 function Is_Limited_Composite
(Id
: E
) return B
is
2236 return Flag106
(Id
);
2237 end Is_Limited_Composite
;
2239 function Is_Limited_Interface
(Id
: E
) return B
is
2241 return Flag197
(Id
);
2242 end Is_Limited_Interface
;
2244 function Is_Limited_Record
(Id
: E
) return B
is
2247 end Is_Limited_Record
;
2249 function Is_Machine_Code_Subprogram
(Id
: E
) return B
is
2251 pragma Assert
(Is_Subprogram
(Id
));
2252 return Flag137
(Id
);
2253 end Is_Machine_Code_Subprogram
;
2255 function Is_Non_Static_Subtype
(Id
: E
) return B
is
2257 pragma Assert
(Is_Type
(Id
));
2258 return Flag109
(Id
);
2259 end Is_Non_Static_Subtype
;
2261 function Is_Null_Init_Proc
(Id
: E
) return B
is
2263 pragma Assert
(Ekind
(Id
) = E_Procedure
);
2264 return Flag178
(Id
);
2265 end Is_Null_Init_Proc
;
2267 function Is_Obsolescent
(Id
: E
) return B
is
2269 return Flag153
(Id
);
2272 function Is_Only_Out_Parameter
(Id
: E
) return B
is
2274 pragma Assert
(Is_Formal
(Id
));
2275 return Flag226
(Id
);
2276 end Is_Only_Out_Parameter
;
2278 function Is_Package_Body_Entity
(Id
: E
) return B
is
2280 return Flag160
(Id
);
2281 end Is_Package_Body_Entity
;
2283 function Is_Packed
(Id
: E
) return B
is
2285 return Flag51
(Implementation_Base_Type
(Id
));
2288 function Is_Packed_Array_Impl_Type
(Id
: E
) return B
is
2290 return Flag138
(Id
);
2291 end Is_Packed_Array_Impl_Type
;
2293 function Is_Potentially_Use_Visible
(Id
: E
) return B
is
2295 pragma Assert
(Nkind
(Id
) in N_Entity
);
2297 end Is_Potentially_Use_Visible
;
2299 function Is_Predicate_Function
(Id
: E
) return B
is
2301 pragma Assert
(Ekind
(Id
) = E_Function
or else Ekind
(Id
) = E_Procedure
);
2302 return Flag255
(Id
);
2303 end Is_Predicate_Function
;
2305 function Is_Predicate_Function_M
(Id
: E
) return B
is
2307 pragma Assert
(Ekind
(Id
) = E_Function
or else Ekind
(Id
) = E_Procedure
);
2308 return Flag256
(Id
);
2309 end Is_Predicate_Function_M
;
2311 function Is_Preelaborated
(Id
: E
) return B
is
2314 end Is_Preelaborated
;
2316 function Is_Primitive
(Id
: E
) return B
is
2319 (Is_Overloadable
(Id
)
2320 or else Ekind_In
(Id
, E_Generic_Function
, E_Generic_Procedure
));
2321 return Flag218
(Id
);
2324 function Is_Primitive_Wrapper
(Id
: E
) return B
is
2326 pragma Assert
(Ekind_In
(Id
, E_Function
, E_Procedure
));
2327 return Flag195
(Id
);
2328 end Is_Primitive_Wrapper
;
2330 function Is_Private_Composite
(Id
: E
) return B
is
2332 pragma Assert
(Is_Type
(Id
));
2333 return Flag107
(Id
);
2334 end Is_Private_Composite
;
2336 function Is_Private_Descendant
(Id
: E
) return B
is
2339 end Is_Private_Descendant
;
2341 function Is_Private_Primitive
(Id
: E
) return B
is
2343 pragma Assert
(Ekind_In
(Id
, E_Function
, E_Procedure
));
2344 return Flag245
(Id
);
2345 end Is_Private_Primitive
;
2347 function Is_Processed_Transient
(Id
: E
) return B
is
2349 pragma Assert
(Ekind_In
(Id
, E_Constant
, E_Loop_Parameter
, E_Variable
));
2350 return Flag252
(Id
);
2351 end Is_Processed_Transient
;
2353 function Is_Public
(Id
: E
) return B
is
2355 pragma Assert
(Nkind
(Id
) in N_Entity
);
2359 function Is_Pure
(Id
: E
) return B
is
2364 function Is_Pure_Unit_Access_Type
(Id
: E
) return B
is
2366 pragma Assert
(Is_Access_Type
(Id
));
2367 return Flag189
(Id
);
2368 end Is_Pure_Unit_Access_Type
;
2370 function Is_RACW_Stub_Type
(Id
: E
) return B
is
2372 pragma Assert
(Is_Type
(Id
));
2373 return Flag244
(Id
);
2374 end Is_RACW_Stub_Type
;
2376 function Is_Raised
(Id
: E
) return B
is
2378 pragma Assert
(Ekind
(Id
) = E_Exception
);
2379 return Flag224
(Id
);
2382 function Is_Remote_Call_Interface
(Id
: E
) return B
is
2385 end Is_Remote_Call_Interface
;
2387 function Is_Remote_Types
(Id
: E
) return B
is
2390 end Is_Remote_Types
;
2392 function Is_Renaming_Of_Object
(Id
: E
) return B
is
2394 return Flag112
(Id
);
2395 end Is_Renaming_Of_Object
;
2397 function Is_Return_Object
(Id
: E
) return B
is
2399 return Flag209
(Id
);
2400 end Is_Return_Object
;
2402 function Is_Safe_To_Reevaluate
(Id
: E
) return B
is
2404 return Flag249
(Id
);
2405 end Is_Safe_To_Reevaluate
;
2407 function Is_Shared_Passive
(Id
: E
) return B
is
2410 end Is_Shared_Passive
;
2412 function Is_Static_Type
(Id
: E
) return B
is
2414 pragma Assert
(Is_Type
(Id
));
2415 return Flag281
(Id
);
2418 function Is_Statically_Allocated
(Id
: E
) return B
is
2421 end Is_Statically_Allocated
;
2423 function Is_Tag
(Id
: E
) return B
is
2425 pragma Assert
(Nkind
(Id
) in N_Entity
);
2429 function Is_Tagged_Type
(Id
: E
) return B
is
2434 function Is_Thunk
(Id
: E
) return B
is
2436 return Flag225
(Id
);
2439 function Is_Trivial_Subprogram
(Id
: E
) return B
is
2441 return Flag235
(Id
);
2442 end Is_Trivial_Subprogram
;
2444 function Is_True_Constant
(Id
: E
) return B
is
2446 return Flag163
(Id
);
2447 end Is_True_Constant
;
2449 function Is_Unchecked_Union
(Id
: E
) return B
is
2451 return Flag117
(Implementation_Base_Type
(Id
));
2452 end Is_Unchecked_Union
;
2454 function Is_Underlying_Record_View
(Id
: E
) return B
is
2456 return Flag246
(Id
);
2457 end Is_Underlying_Record_View
;
2459 function Is_Unsigned_Type
(Id
: E
) return B
is
2461 pragma Assert
(Is_Type
(Id
));
2462 return Flag144
(Id
);
2463 end Is_Unsigned_Type
;
2465 function Is_Valued_Procedure
(Id
: E
) return B
is
2467 pragma Assert
(Ekind
(Id
) = E_Procedure
);
2468 return Flag127
(Id
);
2469 end Is_Valued_Procedure
;
2471 function Is_Visible_Formal
(Id
: E
) return B
is
2473 return Flag206
(Id
);
2474 end Is_Visible_Formal
;
2476 function Is_Visible_Lib_Unit
(Id
: E
) return B
is
2478 return Flag116
(Id
);
2479 end Is_Visible_Lib_Unit
;
2481 function Is_Volatile
(Id
: E
) return B
is
2483 pragma Assert
(Nkind
(Id
) in N_Entity
);
2485 if Is_Type
(Id
) then
2486 return Flag16
(Base_Type
(Id
));
2492 function Itype_Printed
(Id
: E
) return B
is
2494 pragma Assert
(Is_Itype
(Id
));
2495 return Flag202
(Id
);
2498 function Kill_Elaboration_Checks
(Id
: E
) return B
is
2501 end Kill_Elaboration_Checks
;
2503 function Kill_Range_Checks
(Id
: E
) return B
is
2506 end Kill_Range_Checks
;
2508 function Known_To_Have_Preelab_Init
(Id
: E
) return B
is
2510 pragma Assert
(Is_Type
(Id
));
2511 return Flag207
(Id
);
2512 end Known_To_Have_Preelab_Init
;
2514 function Last_Aggregate_Assignment
(Id
: E
) return N
is
2516 pragma Assert
(Ekind_In
(Id
, E_Constant
, E_Variable
));
2518 end Last_Aggregate_Assignment
;
2520 function Last_Assignment
(Id
: E
) return N
is
2522 pragma Assert
(Is_Assignable
(Id
));
2524 end Last_Assignment
;
2526 function Last_Entity
(Id
: E
) return E
is
2531 function Limited_View
(Id
: E
) return E
is
2533 pragma Assert
(Ekind
(Id
) = E_Package
);
2537 function Linker_Section_Pragma
(Id
: E
) return N
is
2540 (Is_Type
(Id
) or else Is_Object
(Id
) or else Is_Subprogram
(Id
));
2542 end Linker_Section_Pragma
;
2544 function Lit_Indexes
(Id
: E
) return E
is
2546 pragma Assert
(Is_Enumeration_Type
(Id
));
2550 function Lit_Strings
(Id
: E
) return E
is
2552 pragma Assert
(Is_Enumeration_Type
(Id
));
2556 function Low_Bound_Tested
(Id
: E
) return B
is
2558 return Flag205
(Id
);
2559 end Low_Bound_Tested
;
2561 function Machine_Radix_10
(Id
: E
) return B
is
2563 pragma Assert
(Is_Decimal_Fixed_Point_Type
(Id
));
2565 end Machine_Radix_10
;
2567 function Master_Id
(Id
: E
) return E
is
2569 pragma Assert
(Is_Access_Type
(Id
));
2573 function Materialize_Entity
(Id
: E
) return B
is
2575 return Flag168
(Id
);
2576 end Materialize_Entity
;
2578 function May_Inherit_Delayed_Rep_Aspects
(Id
: E
) return B
is
2580 return Flag262
(Id
);
2581 end May_Inherit_Delayed_Rep_Aspects
;
2583 function Mechanism
(Id
: E
) return M
is
2585 pragma Assert
(Ekind
(Id
) = E_Function
or else Is_Formal
(Id
));
2586 return UI_To_Int
(Uint8
(Id
));
2589 function Modulus
(Id
: E
) return Uint
is
2591 pragma Assert
(Is_Modular_Integer_Type
(Id
));
2592 return Uint17
(Base_Type
(Id
));
2595 function Must_Be_On_Byte_Boundary
(Id
: E
) return B
is
2597 pragma Assert
(Is_Type
(Id
));
2598 return Flag183
(Id
);
2599 end Must_Be_On_Byte_Boundary
;
2601 function Must_Have_Preelab_Init
(Id
: E
) return B
is
2603 pragma Assert
(Is_Type
(Id
));
2604 return Flag208
(Id
);
2605 end Must_Have_Preelab_Init
;
2607 function Needs_Debug_Info
(Id
: E
) return B
is
2609 return Flag147
(Id
);
2610 end Needs_Debug_Info
;
2612 function Needs_No_Actuals
(Id
: E
) return B
is
2615 (Is_Overloadable
(Id
)
2616 or else Ekind_In
(Id
, E_Subprogram_Type
, E_Entry_Family
));
2618 end Needs_No_Actuals
;
2620 function Never_Set_In_Source
(Id
: E
) return B
is
2622 return Flag115
(Id
);
2623 end Never_Set_In_Source
;
2625 function Next_Inlined_Subprogram
(Id
: E
) return E
is
2628 end Next_Inlined_Subprogram
;
2630 function No_Dynamic_Predicate_On_Actual
(Id
: E
) return Boolean is
2632 pragma Assert
(Is_Discrete_Type
(Id
));
2633 return Flag276
(Id
);
2634 end No_Dynamic_Predicate_On_Actual
;
2636 function No_Pool_Assigned
(Id
: E
) return B
is
2638 pragma Assert
(Is_Access_Type
(Id
));
2639 return Flag131
(Root_Type
(Id
));
2640 end No_Pool_Assigned
;
2642 function No_Predicate_On_Actual
(Id
: E
) return Boolean is
2644 pragma Assert
(Is_Discrete_Type
(Id
));
2645 return Flag275
(Id
);
2646 end No_Predicate_On_Actual
;
2648 function No_Return
(Id
: E
) return B
is
2650 return Flag113
(Id
);
2653 function No_Strict_Aliasing
(Id
: E
) return B
is
2655 pragma Assert
(Is_Access_Type
(Id
));
2656 return Flag136
(Base_Type
(Id
));
2657 end No_Strict_Aliasing
;
2659 function No_Tagged_Streams_Pragma
(Id
: E
) return N
is
2661 pragma Assert
(Is_Tagged_Type
(Id
));
2663 end No_Tagged_Streams_Pragma
;
2665 function Non_Binary_Modulus
(Id
: E
) return B
is
2667 pragma Assert
(Is_Type
(Id
));
2668 return Flag58
(Base_Type
(Id
));
2669 end Non_Binary_Modulus
;
2671 function Non_Limited_View
(Id
: E
) return E
is
2674 (Ekind
(Id
) in Incomplete_Kind
or else Ekind
(Id
) = E_Abstract_State
);
2676 end Non_Limited_View
;
2678 function Nonzero_Is_True
(Id
: E
) return B
is
2680 pragma Assert
(Root_Type
(Id
) = Standard_Boolean
);
2681 return Flag162
(Base_Type
(Id
));
2682 end Nonzero_Is_True
;
2684 function Normalized_First_Bit
(Id
: E
) return U
is
2686 pragma Assert
(Ekind_In
(Id
, E_Component
, E_Discriminant
));
2688 end Normalized_First_Bit
;
2690 function Normalized_Position
(Id
: E
) return U
is
2692 pragma Assert
(Ekind_In
(Id
, E_Component
, E_Discriminant
));
2694 end Normalized_Position
;
2696 function Normalized_Position_Max
(Id
: E
) return U
is
2698 pragma Assert
(Ekind_In
(Id
, E_Component
, E_Discriminant
));
2700 end Normalized_Position_Max
;
2702 function OK_To_Rename
(Id
: E
) return B
is
2704 pragma Assert
(Ekind
(Id
) = E_Variable
);
2705 return Flag247
(Id
);
2708 function OK_To_Reorder_Components
(Id
: E
) return B
is
2710 pragma Assert
(Is_Record_Type
(Id
));
2711 return Flag239
(Base_Type
(Id
));
2712 end OK_To_Reorder_Components
;
2714 function Optimize_Alignment_Space
(Id
: E
) return B
is
2717 (Is_Type
(Id
) or else Ekind_In
(Id
, E_Constant
, E_Variable
));
2718 return Flag241
(Id
);
2719 end Optimize_Alignment_Space
;
2721 function Optimize_Alignment_Time
(Id
: E
) return B
is
2724 (Is_Type
(Id
) or else Ekind_In
(Id
, E_Constant
, E_Variable
));
2725 return Flag242
(Id
);
2726 end Optimize_Alignment_Time
;
2728 function Original_Access_Type
(Id
: E
) return E
is
2730 pragma Assert
(Ekind
(Id
) = E_Access_Subprogram_Type
);
2732 end Original_Access_Type
;
2734 function Original_Array_Type
(Id
: E
) return E
is
2736 pragma Assert
(Is_Array_Type
(Id
) or else Is_Modular_Integer_Type
(Id
));
2738 end Original_Array_Type
;
2740 function Original_Record_Component
(Id
: E
) return E
is
2742 pragma Assert
(Ekind_In
(Id
, E_Void
, E_Component
, E_Discriminant
));
2744 end Original_Record_Component
;
2746 function Overlays_Constant
(Id
: E
) return B
is
2748 return Flag243
(Id
);
2749 end Overlays_Constant
;
2751 function Overridden_Operation
(Id
: E
) return E
is
2754 end Overridden_Operation
;
2756 function Package_Instantiation
(Id
: E
) return N
is
2758 pragma Assert
(Ekind_In
(Id
, E_Package
, E_Generic_Package
));
2760 end Package_Instantiation
;
2762 function Packed_Array_Impl_Type
(Id
: E
) return E
is
2764 pragma Assert
(Is_Array_Type
(Id
));
2766 end Packed_Array_Impl_Type
;
2768 function Parent_Subtype
(Id
: E
) return E
is
2770 pragma Assert
(Is_Record_Type
(Id
));
2771 return Node19
(Base_Type
(Id
));
2774 function Part_Of_Constituents
(Id
: E
) return L
is
2776 pragma Assert
(Ekind
(Id
) = E_Abstract_State
);
2778 end Part_Of_Constituents
;
2780 function Partial_View_Has_Unknown_Discr
(Id
: E
) return B
is
2782 pragma Assert
(Is_Type
(Id
));
2783 return Flag280
(Id
);
2784 end Partial_View_Has_Unknown_Discr
;
2786 function Pending_Access_Types
(Id
: E
) return L
is
2788 pragma Assert
(Is_Type
(Id
));
2789 return Elist15
(Id
);
2790 end Pending_Access_Types
;
2792 function Postconditions_Proc
(Id
: E
) return E
is
2794 pragma Assert
(Ekind_In
(Id
, E_Entry
,
2799 end Postconditions_Proc
;
2801 function PPC_Wrapper
(Id
: E
) return E
is
2803 pragma Assert
(Ekind_In
(Id
, E_Entry
, E_Entry_Family
));
2807 function Prival
(Id
: E
) return E
is
2809 pragma Assert
(Is_Protected_Component
(Id
));
2813 function Prival_Link
(Id
: E
) return E
is
2815 pragma Assert
(Ekind_In
(Id
, E_Constant
, E_Variable
));
2819 function Private_Dependents
(Id
: E
) return L
is
2821 pragma Assert
(Is_Incomplete_Or_Private_Type
(Id
));
2822 return Elist18
(Id
);
2823 end Private_Dependents
;
2825 function Private_View
(Id
: E
) return N
is
2827 pragma Assert
(Is_Private_Type
(Id
));
2831 function Protected_Body_Subprogram
(Id
: E
) return E
is
2833 pragma Assert
(Is_Subprogram
(Id
) or else Is_Entry
(Id
));
2835 end Protected_Body_Subprogram
;
2837 function Protected_Formal
(Id
: E
) return E
is
2839 pragma Assert
(Is_Formal
(Id
));
2841 end Protected_Formal
;
2843 function Protection_Object
(Id
: E
) return E
is
2846 (Ekind_In
(Id
, E_Entry
, E_Entry_Family
, E_Function
, E_Procedure
));
2848 end Protection_Object
;
2850 function Reachable
(Id
: E
) return B
is
2855 function Referenced
(Id
: E
) return B
is
2857 return Flag156
(Id
);
2860 function Referenced_As_LHS
(Id
: E
) return B
is
2863 end Referenced_As_LHS
;
2865 function Referenced_As_Out_Parameter
(Id
: E
) return B
is
2867 return Flag227
(Id
);
2868 end Referenced_As_Out_Parameter
;
2870 function Refinement_Constituents
(Id
: E
) return L
is
2872 pragma Assert
(Ekind
(Id
) = E_Abstract_State
);
2874 end Refinement_Constituents
;
2876 function Register_Exception_Call
(Id
: E
) return N
is
2878 pragma Assert
(Ekind
(Id
) = E_Exception
);
2880 end Register_Exception_Call
;
2882 function Related_Array_Object
(Id
: E
) return E
is
2884 pragma Assert
(Is_Array_Type
(Id
));
2886 end Related_Array_Object
;
2888 function Related_Expression
(Id
: E
) return N
is
2890 pragma Assert
(Ekind
(Id
) in Type_Kind
2891 or else Ekind_In
(Id
, E_Constant
, E_Variable
));
2893 end Related_Expression
;
2895 function Related_Instance
(Id
: E
) return E
is
2897 pragma Assert
(Ekind_In
(Id
, E_Package
, E_Package_Body
));
2899 end Related_Instance
;
2901 function Related_Type
(Id
: E
) return E
is
2903 pragma Assert
(Ekind_In
(Id
, E_Component
, E_Constant
, E_Variable
));
2907 function Relative_Deadline_Variable
(Id
: E
) return E
is
2909 pragma Assert
(Is_Task_Type
(Id
));
2910 return Node28
(Implementation_Base_Type
(Id
));
2911 end Relative_Deadline_Variable
;
2913 function Renamed_Entity
(Id
: E
) return N
is
2918 function Renamed_In_Spec
(Id
: E
) return B
is
2920 pragma Assert
(Ekind
(Id
) = E_Package
);
2921 return Flag231
(Id
);
2922 end Renamed_In_Spec
;
2924 function Renamed_Object
(Id
: E
) return N
is
2929 function Renaming_Map
(Id
: E
) return U
is
2934 function Requires_Overriding
(Id
: E
) return B
is
2936 pragma Assert
(Is_Overloadable
(Id
));
2937 return Flag213
(Id
);
2938 end Requires_Overriding
;
2940 function Return_Present
(Id
: E
) return B
is
2945 function Return_Applies_To
(Id
: E
) return N
is
2948 end Return_Applies_To
;
2950 function Returns_By_Ref
(Id
: E
) return B
is
2955 function Returns_Limited_View
(Id
: E
) return B
is
2957 pragma Assert
(Ekind
(Id
) = E_Function
);
2958 return Flag134
(Id
);
2959 end Returns_Limited_View
;
2961 function Reverse_Bit_Order
(Id
: E
) return B
is
2963 pragma Assert
(Is_Record_Type
(Id
));
2964 return Flag164
(Base_Type
(Id
));
2965 end Reverse_Bit_Order
;
2967 function Reverse_Storage_Order
(Id
: E
) return B
is
2969 pragma Assert
(Is_Record_Type
(Id
) or else Is_Array_Type
(Id
));
2970 return Flag93
(Base_Type
(Id
));
2971 end Reverse_Storage_Order
;
2973 function RM_Size
(Id
: E
) return U
is
2975 pragma Assert
(Is_Type
(Id
));
2979 function Scalar_Range
(Id
: E
) return N
is
2984 function Scale_Value
(Id
: E
) return U
is
2989 function Scope_Depth_Value
(Id
: E
) return U
is
2992 end Scope_Depth_Value
;
2994 function Sec_Stack_Needed_For_Return
(Id
: E
) return B
is
2996 return Flag167
(Id
);
2997 end Sec_Stack_Needed_For_Return
;
2999 function Shadow_Entities
(Id
: E
) return S
is
3001 pragma Assert
(Ekind_In
(Id
, E_Package
, E_Generic_Package
));
3003 end Shadow_Entities
;
3005 function Shared_Var_Procs_Instance
(Id
: E
) return E
is
3007 pragma Assert
(Ekind
(Id
) = E_Variable
);
3009 end Shared_Var_Procs_Instance
;
3011 function Size_Check_Code
(Id
: E
) return N
is
3013 pragma Assert
(Ekind_In
(Id
, E_Constant
, E_Variable
));
3015 end Size_Check_Code
;
3017 function Size_Depends_On_Discriminant
(Id
: E
) return B
is
3019 return Flag177
(Id
);
3020 end Size_Depends_On_Discriminant
;
3022 function Size_Known_At_Compile_Time
(Id
: E
) return B
is
3025 end Size_Known_At_Compile_Time
;
3027 function Small_Value
(Id
: E
) return R
is
3029 pragma Assert
(Is_Fixed_Point_Type
(Id
));
3030 return Ureal21
(Id
);
3033 function SPARK_Aux_Pragma
(Id
: E
) return N
is
3036 (Ekind_In
(Id
, E_Generic_Package
, -- package variants
3040 end SPARK_Aux_Pragma
;
3042 function SPARK_Aux_Pragma_Inherited
(Id
: E
) return B
is
3045 (Ekind_In
(Id
, E_Generic_Package
, -- package variants
3048 return Flag266
(Id
);
3049 end SPARK_Aux_Pragma_Inherited
;
3051 function SPARK_Pragma
(Id
: E
) return N
is
3054 (Ekind_In
(Id
, E_Function
, -- subprogram variants
3056 E_Generic_Procedure
,
3060 Ekind_In
(Id
, E_Generic_Package
, -- package variants
3066 function SPARK_Pragma_Inherited
(Id
: E
) return B
is
3069 (Ekind_In
(Id
, E_Function
, -- subprogram variants
3071 E_Generic_Procedure
,
3075 Ekind_In
(Id
, E_Generic_Package
, -- package variants
3078 return Flag265
(Id
);
3079 end SPARK_Pragma_Inherited
;
3081 function Spec_Entity
(Id
: E
) return E
is
3083 pragma Assert
(Ekind
(Id
) = E_Package_Body
or else Is_Formal
(Id
));
3087 function SSO_Set_High_By_Default
(Id
: E
) return B
is
3089 pragma Assert
(Is_Record_Type
(Id
) or else Is_Array_Type
(Id
));
3090 return Flag273
(Base_Type
(Id
));
3091 end SSO_Set_High_By_Default
;
3093 function SSO_Set_Low_By_Default
(Id
: E
) return B
is
3095 pragma Assert
(Is_Record_Type
(Id
) or else Is_Array_Type
(Id
));
3096 return Flag272
(Base_Type
(Id
));
3097 end SSO_Set_Low_By_Default
;
3099 function Static_Discrete_Predicate
(Id
: E
) return S
is
3101 pragma Assert
(Is_Discrete_Type
(Id
));
3103 end Static_Discrete_Predicate
;
3105 function Static_Real_Or_String_Predicate
(Id
: E
) return N
is
3107 pragma Assert
(Is_Real_Type
(Id
) or else Is_String_Type
(Id
));
3109 end Static_Real_Or_String_Predicate
;
3111 function Status_Flag_Or_Transient_Decl
(Id
: E
) return N
is
3113 pragma Assert
(Ekind_In
(Id
, E_Constant
, E_Variable
));
3115 end Status_Flag_Or_Transient_Decl
;
3117 function Storage_Size_Variable
(Id
: E
) return E
is
3119 pragma Assert
(Is_Access_Type
(Id
) or else Is_Task_Type
(Id
));
3120 return Node26
(Implementation_Base_Type
(Id
));
3121 end Storage_Size_Variable
;
3123 function Static_Elaboration_Desired
(Id
: E
) return B
is
3125 pragma Assert
(Ekind
(Id
) = E_Package
);
3127 end Static_Elaboration_Desired
;
3129 function Static_Initialization
(Id
: E
) return N
is
3132 (Ekind
(Id
) = E_Procedure
and then not Is_Dispatching_Operation
(Id
));
3134 end Static_Initialization
;
3136 function Stored_Constraint
(Id
: E
) return L
is
3139 (Is_Composite_Type
(Id
) and then not Is_Array_Type
(Id
));
3140 return Elist23
(Id
);
3141 end Stored_Constraint
;
3143 function Stores_Attribute_Old_Prefix
(Id
: E
) return B
is
3145 return Flag270
(Id
);
3146 end Stores_Attribute_Old_Prefix
;
3148 function Strict_Alignment
(Id
: E
) return B
is
3150 return Flag145
(Implementation_Base_Type
(Id
));
3151 end Strict_Alignment
;
3153 function String_Literal_Length
(Id
: E
) return U
is
3156 end String_Literal_Length
;
3158 function String_Literal_Low_Bound
(Id
: E
) return N
is
3161 end String_Literal_Low_Bound
;
3163 function Subprograms_For_Type
(Id
: E
) return E
is
3165 pragma Assert
(Is_Type
(Id
) or else Is_Subprogram
(Id
));
3167 end Subprograms_For_Type
;
3169 function Subps_Index
(Id
: E
) return U
is
3171 pragma Assert
(Is_Subprogram
(Id
));
3175 function Suppress_Elaboration_Warnings
(Id
: E
) return B
is
3177 return Flag148
(Id
);
3178 end Suppress_Elaboration_Warnings
;
3180 function Suppress_Initialization
(Id
: E
) return B
is
3182 pragma Assert
(Is_Type
(Id
) or else Ekind
(Id
) = E_Variable
);
3183 return Flag105
(Id
);
3184 end Suppress_Initialization
;
3186 function Suppress_Style_Checks
(Id
: E
) return B
is
3188 return Flag165
(Id
);
3189 end Suppress_Style_Checks
;
3191 function Suppress_Value_Tracking_On_Call
(Id
: E
) return B
is
3193 return Flag217
(Id
);
3194 end Suppress_Value_Tracking_On_Call
;
3196 function Task_Body_Procedure
(Id
: E
) return N
is
3198 pragma Assert
(Ekind
(Id
) in Task_Kind
);
3200 end Task_Body_Procedure
;
3202 function Thunk_Entity
(Id
: E
) return E
is
3204 pragma Assert
(Ekind_In
(Id
, E_Function
, E_Procedure
)
3205 and then Is_Thunk
(Id
));
3209 function Treat_As_Volatile
(Id
: E
) return B
is
3212 end Treat_As_Volatile
;
3214 function Underlying_Full_View
(Id
: E
) return E
is
3216 pragma Assert
(Ekind
(Id
) in Private_Kind
);
3218 end Underlying_Full_View
;
3220 function Underlying_Record_View
(Id
: E
) return E
is
3223 end Underlying_Record_View
;
3225 function Universal_Aliasing
(Id
: E
) return B
is
3227 pragma Assert
(Is_Type
(Id
));
3228 return Flag216
(Implementation_Base_Type
(Id
));
3229 end Universal_Aliasing
;
3231 function Unset_Reference
(Id
: E
) return N
is
3234 end Unset_Reference
;
3236 function Uplevel_Reference_Noted
(Id
: E
) return B
is
3238 return Flag283
(Id
);
3239 end Uplevel_Reference_Noted
;
3241 function Uplevel_References
(Id
: E
) return L
is
3243 pragma Assert
(Is_Subprogram
(Id
));
3244 return Elist24
(Id
);
3245 end Uplevel_References
;
3247 function Used_As_Generic_Actual
(Id
: E
) return B
is
3249 return Flag222
(Id
);
3250 end Used_As_Generic_Actual
;
3252 function Uses_Lock_Free
(Id
: E
) return B
is
3254 pragma Assert
(Is_Protected_Type
(Id
));
3255 return Flag188
(Id
);
3258 function Uses_Sec_Stack
(Id
: E
) return B
is
3263 function Warnings_Off
(Id
: E
) return B
is
3268 function Warnings_Off_Used
(Id
: E
) return B
is
3270 return Flag236
(Id
);
3271 end Warnings_Off_Used
;
3273 function Warnings_Off_Used_Unmodified
(Id
: E
) return B
is
3275 return Flag237
(Id
);
3276 end Warnings_Off_Used_Unmodified
;
3278 function Warnings_Off_Used_Unreferenced
(Id
: E
) return B
is
3280 return Flag238
(Id
);
3281 end Warnings_Off_Used_Unreferenced
;
3283 function Wrapped_Entity
(Id
: E
) return E
is
3285 pragma Assert
(Ekind_In
(Id
, E_Function
, E_Procedure
)
3286 and then Is_Primitive_Wrapper
(Id
));
3290 function Was_Hidden
(Id
: E
) return B
is
3292 return Flag196
(Id
);
3295 ------------------------------
3296 -- Classification Functions --
3297 ------------------------------
3299 function Is_Access_Type
(Id
: E
) return B
is
3301 return Ekind
(Id
) in Access_Kind
;
3304 function Is_Access_Protected_Subprogram_Type
(Id
: E
) return B
is
3306 return Ekind
(Id
) in Access_Protected_Kind
;
3307 end Is_Access_Protected_Subprogram_Type
;
3309 function Is_Access_Subprogram_Type
(Id
: E
) return B
is
3311 return Ekind
(Id
) in Access_Subprogram_Kind
;
3312 end Is_Access_Subprogram_Type
;
3314 function Is_Aggregate_Type
(Id
: E
) return B
is
3316 return Ekind
(Id
) in Aggregate_Kind
;
3317 end Is_Aggregate_Type
;
3319 function Is_Array_Type
(Id
: E
) return B
is
3321 return Ekind
(Id
) in Array_Kind
;
3324 function Is_Assignable
(Id
: E
) return B
is
3326 return Ekind
(Id
) in Assignable_Kind
;
3329 function Is_Class_Wide_Type
(Id
: E
) return B
is
3331 return Ekind
(Id
) in Class_Wide_Kind
;
3332 end Is_Class_Wide_Type
;
3334 function Is_Composite_Type
(Id
: E
) return B
is
3336 return Ekind
(Id
) in Composite_Kind
;
3337 end Is_Composite_Type
;
3339 function Is_Concurrent_Body
(Id
: E
) return B
is
3341 return Ekind
(Id
) in
3342 Concurrent_Body_Kind
;
3343 end Is_Concurrent_Body
;
3345 function Is_Concurrent_Record_Type
(Id
: E
) return B
is
3348 end Is_Concurrent_Record_Type
;
3350 function Is_Concurrent_Type
(Id
: E
) return B
is
3352 return Ekind
(Id
) in Concurrent_Kind
;
3353 end Is_Concurrent_Type
;
3355 function Is_Decimal_Fixed_Point_Type
(Id
: E
) return B
is
3357 return Ekind
(Id
) in
3358 Decimal_Fixed_Point_Kind
;
3359 end Is_Decimal_Fixed_Point_Type
;
3361 function Is_Digits_Type
(Id
: E
) return B
is
3363 return Ekind
(Id
) in Digits_Kind
;
3366 function Is_Discrete_Or_Fixed_Point_Type
(Id
: E
) return B
is
3368 return Ekind
(Id
) in Discrete_Or_Fixed_Point_Kind
;
3369 end Is_Discrete_Or_Fixed_Point_Type
;
3371 function Is_Discrete_Type
(Id
: E
) return B
is
3373 return Ekind
(Id
) in Discrete_Kind
;
3374 end Is_Discrete_Type
;
3376 function Is_Elementary_Type
(Id
: E
) return B
is
3378 return Ekind
(Id
) in Elementary_Kind
;
3379 end Is_Elementary_Type
;
3381 function Is_Entry
(Id
: E
) return B
is
3383 return Ekind
(Id
) in Entry_Kind
;
3386 function Is_Enumeration_Type
(Id
: E
) return B
is
3388 return Ekind
(Id
) in
3390 end Is_Enumeration_Type
;
3392 function Is_Fixed_Point_Type
(Id
: E
) return B
is
3394 return Ekind
(Id
) in
3396 end Is_Fixed_Point_Type
;
3398 function Is_Floating_Point_Type
(Id
: E
) return B
is
3400 return Ekind
(Id
) in Float_Kind
;
3401 end Is_Floating_Point_Type
;
3403 function Is_Formal
(Id
: E
) return B
is
3405 return Ekind
(Id
) in Formal_Kind
;
3408 function Is_Formal_Object
(Id
: E
) return B
is
3410 return Ekind
(Id
) in Formal_Object_Kind
;
3411 end Is_Formal_Object
;
3413 function Is_Generic_Subprogram
(Id
: E
) return B
is
3415 return Ekind
(Id
) in Generic_Subprogram_Kind
;
3416 end Is_Generic_Subprogram
;
3418 function Is_Generic_Unit
(Id
: E
) return B
is
3420 return Ekind
(Id
) in Generic_Unit_Kind
;
3421 end Is_Generic_Unit
;
3423 function Is_Incomplete_Or_Private_Type
(Id
: E
) return B
is
3425 return Ekind
(Id
) in
3426 Incomplete_Or_Private_Kind
;
3427 end Is_Incomplete_Or_Private_Type
;
3429 function Is_Incomplete_Type
(Id
: E
) return B
is
3431 return Ekind
(Id
) in
3433 end Is_Incomplete_Type
;
3435 function Is_Integer_Type
(Id
: E
) return B
is
3437 return Ekind
(Id
) in Integer_Kind
;
3438 end Is_Integer_Type
;
3440 function Is_Modular_Integer_Type
(Id
: E
) return B
is
3442 return Ekind
(Id
) in
3443 Modular_Integer_Kind
;
3444 end Is_Modular_Integer_Type
;
3446 function Is_Named_Number
(Id
: E
) return B
is
3448 return Ekind
(Id
) in Named_Kind
;
3449 end Is_Named_Number
;
3451 function Is_Numeric_Type
(Id
: E
) return B
is
3453 return Ekind
(Id
) in Numeric_Kind
;
3454 end Is_Numeric_Type
;
3456 function Is_Object
(Id
: E
) return B
is
3458 return Ekind
(Id
) in Object_Kind
;
3461 function Is_Ordinary_Fixed_Point_Type
(Id
: E
) return B
is
3463 return Ekind
(Id
) in
3464 Ordinary_Fixed_Point_Kind
;
3465 end Is_Ordinary_Fixed_Point_Type
;
3467 function Is_Overloadable
(Id
: E
) return B
is
3469 return Ekind
(Id
) in Overloadable_Kind
;
3470 end Is_Overloadable
;
3472 function Is_Private_Type
(Id
: E
) return B
is
3474 return Ekind
(Id
) in Private_Kind
;
3475 end Is_Private_Type
;
3477 function Is_Protected_Type
(Id
: E
) return B
is
3479 return Ekind
(Id
) in Protected_Kind
;
3480 end Is_Protected_Type
;
3482 function Is_Real_Type
(Id
: E
) return B
is
3484 return Ekind
(Id
) in Real_Kind
;
3487 function Is_Record_Type
(Id
: E
) return B
is
3489 return Ekind
(Id
) in Record_Kind
;
3492 function Is_Scalar_Type
(Id
: E
) return B
is
3494 return Ekind
(Id
) in Scalar_Kind
;
3497 function Is_Signed_Integer_Type
(Id
: E
) return B
is
3499 return Ekind
(Id
) in Signed_Integer_Kind
;
3500 end Is_Signed_Integer_Type
;
3502 function Is_Subprogram
(Id
: E
) return B
is
3504 return Ekind
(Id
) in Subprogram_Kind
;
3507 function Is_Subprogram_Or_Generic_Subprogram
(Id
: E
) return B
is
3509 return Ekind
(Id
) in Subprogram_Kind
3511 Ekind
(Id
) in Generic_Subprogram_Kind
;
3512 end Is_Subprogram_Or_Generic_Subprogram
;
3514 function Is_Task_Type
(Id
: E
) return B
is
3516 return Ekind
(Id
) in Task_Kind
;
3519 function Is_Type
(Id
: E
) return B
is
3521 return Ekind
(Id
) in Type_Kind
;
3524 ------------------------------
3525 -- Attribute Set Procedures --
3526 ------------------------------
3528 -- Note: in many of these set procedures an "obvious" assertion is missing.
3529 -- The reason for this is that in many cases, a field is set before the
3530 -- Ekind field is set, so that the field is set when Ekind = E_Void. It
3531 -- it is possible to add assertions that specifically include the E_Void
3532 -- possibility, but in some cases, we just omit the assertions.
3534 procedure Set_Abstract_States
(Id
: E
; V
: L
) is
3536 pragma Assert
(Ekind_In
(Id
, E_Generic_Package
, E_Package
));
3537 Set_Elist25
(Id
, V
);
3538 end Set_Abstract_States
;
3540 procedure Set_Accept_Address
(Id
: E
; V
: L
) is
3542 Set_Elist21
(Id
, V
);
3543 end Set_Accept_Address
;
3545 procedure Set_Access_Disp_Table
(Id
: E
; V
: L
) is
3547 pragma Assert
(Ekind
(Id
) = E_Record_Type
3548 and then Id
= Implementation_Base_Type
(Id
));
3549 pragma Assert
(V
= No_Elist
or else Is_Tagged_Type
(Id
));
3550 Set_Elist16
(Id
, V
);
3551 end Set_Access_Disp_Table
;
3553 procedure Set_Associated_Formal_Package
(Id
: E
; V
: E
) is
3556 end Set_Associated_Formal_Package
;
3558 procedure Set_Associated_Node_For_Itype
(Id
: E
; V
: E
) is
3561 end Set_Associated_Node_For_Itype
;
3563 procedure Set_Associated_Storage_Pool
(Id
: E
; V
: E
) is
3565 pragma Assert
(Is_Access_Type
(Id
) and then Is_Base_Type
(Id
));
3567 end Set_Associated_Storage_Pool
;
3569 procedure Set_Activation_Record_Component
(Id
: E
; V
: E
) is
3571 pragma Assert
(Ekind_In
(Id
, E_Constant
,
3578 end Set_Activation_Record_Component
;
3580 procedure Set_Actual_Subtype
(Id
: E
; V
: E
) is
3583 (Ekind_In
(Id
, E_Constant
, E_Variable
, E_Generic_In_Out_Parameter
)
3584 or else Is_Formal
(Id
));
3586 end Set_Actual_Subtype
;
3588 procedure Set_Address_Taken
(Id
: E
; V
: B
:= True) is
3590 Set_Flag104
(Id
, V
);
3591 end Set_Address_Taken
;
3593 procedure Set_Alias
(Id
: E
; V
: E
) is
3596 (Is_Overloadable
(Id
) or else Ekind
(Id
) = E_Subprogram_Type
);
3600 procedure Set_Alignment
(Id
: E
; V
: U
) is
3602 pragma Assert
(Is_Type
(Id
)
3603 or else Is_Formal
(Id
)
3604 or else Ekind_In
(Id
, E_Loop_Parameter
,
3611 procedure Set_Barrier_Function
(Id
: E
; V
: N
) is
3613 pragma Assert
(Is_Entry
(Id
));
3615 end Set_Barrier_Function
;
3617 procedure Set_Block_Node
(Id
: E
; V
: N
) is
3619 pragma Assert
(Ekind
(Id
) = E_Block
);
3623 procedure Set_Body_Entity
(Id
: E
; V
: E
) is
3625 pragma Assert
(Ekind_In
(Id
, E_Package
, E_Generic_Package
));
3627 end Set_Body_Entity
;
3629 procedure Set_Body_Needed_For_SAL
(Id
: E
; V
: B
:= True) is
3632 (Ekind
(Id
) = E_Package
3633 or else Is_Subprogram
(Id
)
3634 or else Is_Generic_Unit
(Id
));
3636 end Set_Body_Needed_For_SAL
;
3638 procedure Set_Body_References
(Id
: E
; V
: L
) is
3640 pragma Assert
(Ekind
(Id
) = E_Abstract_State
);
3641 Set_Elist16
(Id
, V
);
3642 end Set_Body_References
;
3644 procedure Set_BIP_Initialization_Call
(Id
: E
; V
: N
) is
3646 pragma Assert
(Ekind_In
(Id
, E_Constant
, E_Variable
));
3648 end Set_BIP_Initialization_Call
;
3650 procedure Set_C_Pass_By_Copy
(Id
: E
; V
: B
:= True) is
3652 pragma Assert
(Is_Record_Type
(Id
) and then Is_Base_Type
(Id
));
3653 Set_Flag125
(Id
, V
);
3654 end Set_C_Pass_By_Copy
;
3656 procedure Set_Can_Never_Be_Null
(Id
: E
; V
: B
:= True) is
3659 end Set_Can_Never_Be_Null
;
3661 procedure Set_Can_Use_Internal_Rep
(Id
: E
; V
: B
:= True) is
3664 (Is_Access_Subprogram_Type
(Id
) and then Is_Base_Type
(Id
));
3665 Set_Flag229
(Id
, V
);
3666 end Set_Can_Use_Internal_Rep
;
3668 procedure Set_Checks_May_Be_Suppressed
(Id
: E
; V
: B
:= True) is
3671 end Set_Checks_May_Be_Suppressed
;
3673 procedure Set_Class_Wide_Type
(Id
: E
; V
: E
) is
3675 pragma Assert
(Is_Type
(Id
));
3677 end Set_Class_Wide_Type
;
3679 procedure Set_Cloned_Subtype
(Id
: E
; V
: E
) is
3681 pragma Assert
(Ekind_In
(Id
, E_Record_Subtype
, E_Class_Wide_Subtype
));
3683 end Set_Cloned_Subtype
;
3685 procedure Set_Component_Bit_Offset
(Id
: E
; V
: U
) is
3687 pragma Assert
(Ekind_In
(Id
, E_Component
, E_Discriminant
));
3689 end Set_Component_Bit_Offset
;
3691 procedure Set_Component_Clause
(Id
: E
; V
: N
) is
3693 pragma Assert
(Ekind_In
(Id
, E_Component
, E_Discriminant
));
3695 end Set_Component_Clause
;
3697 procedure Set_Component_Size
(Id
: E
; V
: U
) is
3699 pragma Assert
(Is_Array_Type
(Id
) and then Is_Base_Type
(Id
));
3701 end Set_Component_Size
;
3703 procedure Set_Component_Type
(Id
: E
; V
: E
) is
3705 pragma Assert
(Is_Array_Type
(Id
) and then Is_Base_Type
(Id
));
3707 end Set_Component_Type
;
3709 procedure Set_Contains_Ignored_Ghost_Code
(Id
: E
; V
: B
:= True) is
3712 (Ekind_In
(Id
, E_Block
,
3716 E_Generic_Procedure
,
3720 E_Subprogram_Body
));
3721 Set_Flag279
(Id
, V
);
3722 end Set_Contains_Ignored_Ghost_Code
;
3724 procedure Set_Contract
(Id
: E
; V
: N
) is
3727 (Ekind_In
(Id
, E_Entry
,
3735 or else Is_Subprogram_Or_Generic_Subprogram
(Id
));
3739 procedure Set_Corresponding_Concurrent_Type
(Id
: E
; V
: E
) is
3742 (Ekind
(Id
) = E_Record_Type
and then Is_Concurrent_Type
(V
));
3744 end Set_Corresponding_Concurrent_Type
;
3746 procedure Set_Corresponding_Discriminant
(Id
: E
; V
: E
) is
3748 pragma Assert
(Ekind
(Id
) = E_Discriminant
);
3750 end Set_Corresponding_Discriminant
;
3752 procedure Set_Corresponding_Equality
(Id
: E
; V
: E
) is
3755 (Ekind
(Id
) = E_Function
3756 and then not Comes_From_Source
(Id
)
3757 and then Chars
(Id
) = Name_Op_Ne
);
3759 end Set_Corresponding_Equality
;
3761 procedure Set_Corresponding_Protected_Entry
(Id
: E
; V
: E
) is
3763 pragma Assert
(Ekind_In
(Id
, E_Void
, E_Subprogram_Body
));
3765 end Set_Corresponding_Protected_Entry
;
3767 procedure Set_Corresponding_Record_Type
(Id
: E
; V
: E
) is
3769 pragma Assert
(Is_Concurrent_Type
(Id
));
3771 end Set_Corresponding_Record_Type
;
3773 procedure Set_Corresponding_Remote_Type
(Id
: E
; V
: E
) is
3776 end Set_Corresponding_Remote_Type
;
3778 procedure Set_Current_Use_Clause
(Id
: E
; V
: E
) is
3780 pragma Assert
(Ekind
(Id
) = E_Package
or else Is_Type
(Id
));
3782 end Set_Current_Use_Clause
;
3784 procedure Set_Current_Value
(Id
: E
; V
: N
) is
3786 pragma Assert
(Ekind
(Id
) in Object_Kind
or else Ekind
(Id
) = E_Void
);
3788 end Set_Current_Value
;
3790 procedure Set_CR_Discriminant
(Id
: E
; V
: E
) is
3793 end Set_CR_Discriminant
;
3795 procedure Set_Debug_Info_Off
(Id
: E
; V
: B
:= True) is
3797 Set_Flag166
(Id
, V
);
3798 end Set_Debug_Info_Off
;
3800 procedure Set_Debug_Renaming_Link
(Id
: E
; V
: E
) is
3803 end Set_Debug_Renaming_Link
;
3805 procedure Set_Default_Aspect_Component_Value
(Id
: E
; V
: E
) is
3807 pragma Assert
(Is_Array_Type
(Id
) and then Is_Base_Type
(Id
));
3809 end Set_Default_Aspect_Component_Value
;
3811 procedure Set_Default_Aspect_Value
(Id
: E
; V
: E
) is
3813 pragma Assert
(Is_Scalar_Type
(Id
) and then Is_Base_Type
(Id
));
3815 end Set_Default_Aspect_Value
;
3817 procedure Set_Default_Expr_Function
(Id
: E
; V
: E
) is
3819 pragma Assert
(Is_Formal
(Id
));
3821 end Set_Default_Expr_Function
;
3823 procedure Set_Default_Expressions_Processed
(Id
: E
; V
: B
:= True) is
3825 Set_Flag108
(Id
, V
);
3826 end Set_Default_Expressions_Processed
;
3828 procedure Set_Default_Value
(Id
: E
; V
: N
) is
3830 pragma Assert
(Is_Formal
(Id
));
3832 end Set_Default_Value
;
3834 procedure Set_Delay_Cleanups
(Id
: E
; V
: B
:= True) is
3838 or else Is_Task_Type
(Id
)
3839 or else Ekind
(Id
) = E_Block
);
3840 Set_Flag114
(Id
, V
);
3841 end Set_Delay_Cleanups
;
3843 procedure Set_Delay_Subprogram_Descriptors
(Id
: E
; V
: B
:= True) is
3846 (Is_Subprogram
(Id
) or else Ekind_In
(Id
, E_Package
, E_Package_Body
));
3849 end Set_Delay_Subprogram_Descriptors
;
3851 procedure Set_Delta_Value
(Id
: E
; V
: R
) is
3853 pragma Assert
(Is_Fixed_Point_Type
(Id
));
3854 Set_Ureal18
(Id
, V
);
3855 end Set_Delta_Value
;
3857 procedure Set_Dependent_Instances
(Id
: E
; V
: L
) is
3859 pragma Assert
(Is_Generic_Instance
(Id
));
3861 end Set_Dependent_Instances
;
3863 procedure Set_Depends_On_Private
(Id
: E
; V
: B
:= True) is
3865 pragma Assert
(Nkind
(Id
) in N_Entity
);
3867 end Set_Depends_On_Private
;
3869 procedure Set_Derived_Type_Link
(Id
: E
; V
: E
) is
3871 pragma Assert
(Is_Type
(Id
) and then Is_Base_Type
(Id
));
3873 end Set_Derived_Type_Link
;
3875 procedure Set_Digits_Value
(Id
: E
; V
: U
) is
3878 (Is_Floating_Point_Type
(Id
)
3879 or else Is_Decimal_Fixed_Point_Type
(Id
));
3881 end Set_Digits_Value
;
3883 procedure Set_Directly_Designated_Type
(Id
: E
; V
: E
) is
3886 end Set_Directly_Designated_Type
;
3888 procedure Set_Discard_Names
(Id
: E
; V
: B
:= True) is
3891 end Set_Discard_Names
;
3893 procedure Set_Discriminal
(Id
: E
; V
: E
) is
3895 pragma Assert
(Ekind
(Id
) = E_Discriminant
);
3897 end Set_Discriminal
;
3899 procedure Set_Discriminal_Link
(Id
: E
; V
: E
) is
3902 end Set_Discriminal_Link
;
3904 procedure Set_Discriminant_Checking_Func
(Id
: E
; V
: E
) is
3906 pragma Assert
(Ekind
(Id
) = E_Component
);
3908 end Set_Discriminant_Checking_Func
;
3910 procedure Set_Discriminant_Constraint
(Id
: E
; V
: L
) is
3912 pragma Assert
(Nkind
(Id
) in N_Entity
);
3913 Set_Elist21
(Id
, V
);
3914 end Set_Discriminant_Constraint
;
3916 procedure Set_Discriminant_Default_Value
(Id
: E
; V
: N
) is
3919 end Set_Discriminant_Default_Value
;
3921 procedure Set_Discriminant_Number
(Id
: E
; V
: U
) is
3924 end Set_Discriminant_Number
;
3926 procedure Set_Dispatch_Table_Wrappers
(Id
: E
; V
: L
) is
3928 pragma Assert
(Ekind
(Id
) = E_Record_Type
3929 and then Id
= Implementation_Base_Type
(Id
));
3930 pragma Assert
(V
= No_Elist
or else Is_Tagged_Type
(Id
));
3931 Set_Elist26
(Id
, V
);
3932 end Set_Dispatch_Table_Wrappers
;
3934 procedure Set_DT_Entry_Count
(Id
: E
; V
: U
) is
3936 pragma Assert
(Ekind
(Id
) = E_Component
);
3938 end Set_DT_Entry_Count
;
3940 procedure Set_DT_Offset_To_Top_Func
(Id
: E
; V
: E
) is
3942 pragma Assert
(Ekind
(Id
) = E_Component
and then Is_Tag
(Id
));
3944 end Set_DT_Offset_To_Top_Func
;
3946 procedure Set_DT_Position
(Id
: E
; V
: U
) is
3948 pragma Assert
(Ekind_In
(Id
, E_Function
, E_Procedure
));
3950 end Set_DT_Position
;
3952 procedure Set_DTC_Entity
(Id
: E
; V
: E
) is
3954 pragma Assert
(Ekind_In
(Id
, E_Function
, E_Procedure
));
3958 procedure Set_Elaborate_Body_Desirable
(Id
: E
; V
: B
:= True) is
3960 pragma Assert
(Ekind
(Id
) = E_Package
);
3961 Set_Flag210
(Id
, V
);
3962 end Set_Elaborate_Body_Desirable
;
3964 procedure Set_Elaboration_Entity
(Id
: E
; V
: E
) is
3969 Ekind
(Id
) = E_Package
3971 Is_Generic_Unit
(Id
));
3973 end Set_Elaboration_Entity
;
3975 procedure Set_Elaboration_Entity_Required
(Id
: E
; V
: B
:= True) is
3980 Ekind
(Id
) = E_Package
3982 Is_Generic_Unit
(Id
));
3983 Set_Flag174
(Id
, V
);
3984 end Set_Elaboration_Entity_Required
;
3986 procedure Set_Encapsulating_State
(Id
: E
; V
: E
) is
3988 pragma Assert
(Ekind_In
(Id
, E_Abstract_State
, E_Variable
));
3990 end Set_Encapsulating_State
;
3992 procedure Set_Enclosing_Scope
(Id
: E
; V
: E
) is
3995 end Set_Enclosing_Scope
;
3997 procedure Set_Entry_Accepted
(Id
: E
; V
: B
:= True) is
3999 pragma Assert
(Is_Entry
(Id
));
4000 Set_Flag152
(Id
, V
);
4001 end Set_Entry_Accepted
;
4003 procedure Set_Entry_Bodies_Array
(Id
: E
; V
: E
) is
4006 end Set_Entry_Bodies_Array
;
4008 procedure Set_Entry_Cancel_Parameter
(Id
: E
; V
: E
) is
4011 end Set_Entry_Cancel_Parameter
;
4013 procedure Set_Entry_Component
(Id
: E
; V
: E
) is
4016 end Set_Entry_Component
;
4018 procedure Set_Entry_Formal
(Id
: E
; V
: E
) is
4021 end Set_Entry_Formal
;
4023 procedure Set_Entry_Index_Constant
(Id
: E
; V
: E
) is
4025 pragma Assert
(Ekind
(Id
) = E_Entry_Index_Parameter
);
4027 end Set_Entry_Index_Constant
;
4029 procedure Set_Entry_Parameters_Type
(Id
: E
; V
: E
) is
4032 end Set_Entry_Parameters_Type
;
4034 procedure Set_Enum_Pos_To_Rep
(Id
: E
; V
: E
) is
4036 pragma Assert
(Ekind
(Id
) = E_Enumeration_Type
);
4038 end Set_Enum_Pos_To_Rep
;
4040 procedure Set_Enumeration_Pos
(Id
: E
; V
: U
) is
4042 pragma Assert
(Ekind
(Id
) = E_Enumeration_Literal
);
4044 end Set_Enumeration_Pos
;
4046 procedure Set_Enumeration_Rep
(Id
: E
; V
: U
) is
4048 pragma Assert
(Ekind
(Id
) = E_Enumeration_Literal
);
4050 end Set_Enumeration_Rep
;
4052 procedure Set_Enumeration_Rep_Expr
(Id
: E
; V
: N
) is
4054 pragma Assert
(Ekind
(Id
) = E_Enumeration_Literal
);
4056 end Set_Enumeration_Rep_Expr
;
4058 procedure Set_Equivalent_Type
(Id
: E
; V
: E
) is
4061 (Ekind_In
(Id
, E_Class_Wide_Type
,
4062 E_Class_Wide_Subtype
,
4063 E_Access_Protected_Subprogram_Type
,
4064 E_Anonymous_Access_Protected_Subprogram_Type
,
4065 E_Access_Subprogram_Type
,
4068 end Set_Equivalent_Type
;
4070 procedure Set_Esize
(Id
: E
; V
: U
) is
4075 procedure Set_Extra_Accessibility
(Id
: E
; V
: E
) is
4078 (Is_Formal
(Id
) or else Ekind_In
(Id
, E_Variable
, E_Constant
));
4080 end Set_Extra_Accessibility
;
4082 procedure Set_Extra_Accessibility_Of_Result
(Id
: E
; V
: E
) is
4084 pragma Assert
(Ekind_In
(Id
, E_Function
, E_Operator
, E_Subprogram_Type
));
4086 end Set_Extra_Accessibility_Of_Result
;
4088 procedure Set_Extra_Constrained
(Id
: E
; V
: E
) is
4090 pragma Assert
(Is_Formal
(Id
) or else Ekind
(Id
) = E_Variable
);
4092 end Set_Extra_Constrained
;
4094 procedure Set_Extra_Formal
(Id
: E
; V
: E
) is
4097 end Set_Extra_Formal
;
4099 procedure Set_Extra_Formals
(Id
: E
; V
: E
) is
4102 (Is_Overloadable
(Id
)
4103 or else Ekind_In
(Id
, E_Entry_Family
,
4105 E_Subprogram_Type
));
4107 end Set_Extra_Formals
;
4109 procedure Set_Finalization_Master
(Id
: E
; V
: E
) is
4111 pragma Assert
(Is_Access_Type
(Id
) and then Is_Base_Type
(Id
));
4113 end Set_Finalization_Master
;
4115 procedure Set_Finalize_Storage_Only
(Id
: E
; V
: B
:= True) is
4117 pragma Assert
(Is_Type
(Id
) and then Is_Base_Type
(Id
));
4118 Set_Flag158
(Id
, V
);
4119 end Set_Finalize_Storage_Only
;
4121 procedure Set_Finalizer
(Id
: E
; V
: E
) is
4123 pragma Assert
(Ekind_In
(Id
, E_Package
, E_Package_Body
));
4127 procedure Set_First_Entity
(Id
: E
; V
: E
) is
4130 end Set_First_Entity
;
4132 procedure Set_First_Exit_Statement
(Id
: E
; V
: N
) is
4134 pragma Assert
(Ekind
(Id
) = E_Loop
);
4136 end Set_First_Exit_Statement
;
4138 procedure Set_First_Index
(Id
: E
; V
: N
) is
4140 pragma Assert
(Is_Array_Type
(Id
) or else Is_String_Type
(Id
));
4142 end Set_First_Index
;
4144 procedure Set_First_Literal
(Id
: E
; V
: E
) is
4146 pragma Assert
(Is_Enumeration_Type
(Id
));
4148 end Set_First_Literal
;
4150 procedure Set_First_Private_Entity
(Id
: E
; V
: E
) is
4152 pragma Assert
(Ekind_In
(Id
, E_Package
, E_Generic_Package
)
4153 or else Ekind
(Id
) in Concurrent_Kind
);
4155 end Set_First_Private_Entity
;
4157 procedure Set_First_Rep_Item
(Id
: E
; V
: N
) is
4160 end Set_First_Rep_Item
;
4162 procedure Set_Float_Rep
(Id
: E
; V
: F
) is
4163 pragma Assert
(Ekind
(Id
) = E_Floating_Point_Type
);
4165 Set_Uint10
(Id
, UI_From_Int
(F
'Pos (V
)));
4168 procedure Set_Freeze_Node
(Id
: E
; V
: N
) is
4171 end Set_Freeze_Node
;
4173 procedure Set_From_Limited_With
(Id
: E
; V
: B
:= True) is
4176 (Is_Type
(Id
) or else Ekind_In
(Id
, E_Abstract_State
, E_Package
));
4177 Set_Flag159
(Id
, V
);
4178 end Set_From_Limited_With
;
4180 procedure Set_Full_View
(Id
: E
; V
: E
) is
4182 pragma Assert
(Is_Type
(Id
) or else Ekind
(Id
) = E_Constant
);
4186 procedure Set_Generic_Homonym
(Id
: E
; V
: E
) is
4189 end Set_Generic_Homonym
;
4191 procedure Set_Generic_Renamings
(Id
: E
; V
: L
) is
4193 Set_Elist23
(Id
, V
);
4194 end Set_Generic_Renamings
;
4196 procedure Set_Handler_Records
(Id
: E
; V
: S
) is
4199 end Set_Handler_Records
;
4201 procedure Set_Has_Aliased_Components
(Id
: E
; V
: B
:= True) is
4203 pragma Assert
(Id
= Base_Type
(Id
));
4204 Set_Flag135
(Id
, V
);
4205 end Set_Has_Aliased_Components
;
4207 procedure Set_Has_Alignment_Clause
(Id
: E
; V
: B
:= True) is
4210 end Set_Has_Alignment_Clause
;
4212 procedure Set_Has_All_Calls_Remote
(Id
: E
; V
: B
:= True) is
4215 end Set_Has_All_Calls_Remote
;
4217 procedure Set_Has_Anonymous_Master
(Id
: E
; V
: B
:= True) is
4220 (Ekind_In
(Id
, E_Function
, E_Package
, E_Package_Body
, E_Procedure
));
4221 Set_Flag253
(Id
, V
);
4222 end Set_Has_Anonymous_Master
;
4224 procedure Set_Has_Atomic_Components
(Id
: E
; V
: B
:= True) is
4226 pragma Assert
(not Is_Type
(Id
) or else Is_Base_Type
(Id
));
4228 end Set_Has_Atomic_Components
;
4230 procedure Set_Has_Biased_Representation
(Id
: E
; V
: B
:= True) is
4233 ((V
= False) or else (Is_Discrete_Type
(Id
) or else Is_Object
(Id
)));
4234 Set_Flag139
(Id
, V
);
4235 end Set_Has_Biased_Representation
;
4237 procedure Set_Has_Completion
(Id
: E
; V
: B
:= True) is
4240 end Set_Has_Completion
;
4242 procedure Set_Has_Completion_In_Body
(Id
: E
; V
: B
:= True) is
4244 pragma Assert
(Is_Type
(Id
));
4246 end Set_Has_Completion_In_Body
;
4248 procedure Set_Has_Complex_Representation
(Id
: E
; V
: B
:= True) is
4250 pragma Assert
(Ekind
(Id
) = E_Record_Type
);
4251 Set_Flag140
(Id
, V
);
4252 end Set_Has_Complex_Representation
;
4254 procedure Set_Has_Component_Size_Clause
(Id
: E
; V
: B
:= True) is
4256 pragma Assert
(Ekind
(Id
) = E_Array_Type
);
4258 end Set_Has_Component_Size_Clause
;
4260 procedure Set_Has_Constrained_Partial_View
(Id
: E
; V
: B
:= True) is
4262 pragma Assert
(Is_Type
(Id
));
4263 Set_Flag187
(Id
, V
);
4264 end Set_Has_Constrained_Partial_View
;
4266 procedure Set_Has_Contiguous_Rep
(Id
: E
; V
: B
:= True) is
4268 Set_Flag181
(Id
, V
);
4269 end Set_Has_Contiguous_Rep
;
4271 procedure Set_Has_Controlled_Component
(Id
: E
; V
: B
:= True) is
4273 pragma Assert
(Id
= Base_Type
(Id
));
4275 end Set_Has_Controlled_Component
;
4277 procedure Set_Has_Controlling_Result
(Id
: E
; V
: B
:= True) is
4280 end Set_Has_Controlling_Result
;
4282 procedure Set_Has_Convention_Pragma
(Id
: E
; V
: B
:= True) is
4284 Set_Flag119
(Id
, V
);
4285 end Set_Has_Convention_Pragma
;
4287 procedure Set_Has_Default_Aspect
(Id
: E
; V
: B
:= True) is
4290 ((Is_Scalar_Type
(Id
) or else Is_Array_Type
(Id
))
4291 and then Is_Base_Type
(Id
));
4293 end Set_Has_Default_Aspect
;
4295 procedure Set_Has_Default_Init_Cond
(Id
: E
; V
: B
:= True) is
4297 pragma Assert
(Is_Type
(Id
));
4299 end Set_Has_Default_Init_Cond
;
4301 procedure Set_Has_Delayed_Aspects
(Id
: E
; V
: B
:= True) is
4303 pragma Assert
(Nkind
(Id
) in N_Entity
);
4304 Set_Flag200
(Id
, V
);
4305 end Set_Has_Delayed_Aspects
;
4307 procedure Set_Has_Delayed_Freeze
(Id
: E
; V
: B
:= True) is
4309 pragma Assert
(Nkind
(Id
) in N_Entity
);
4311 end Set_Has_Delayed_Freeze
;
4313 procedure Set_Has_Delayed_Rep_Aspects
(Id
: E
; V
: B
:= True) is
4315 pragma Assert
(Nkind
(Id
) in N_Entity
);
4316 Set_Flag261
(Id
, V
);
4317 end Set_Has_Delayed_Rep_Aspects
;
4319 procedure Set_Has_Discriminants
(Id
: E
; V
: B
:= True) is
4321 pragma Assert
(Nkind
(Id
) in N_Entity
);
4323 end Set_Has_Discriminants
;
4325 procedure Set_Has_Dispatch_Table
(Id
: E
; V
: B
:= True) is
4327 pragma Assert
(Ekind
(Id
) = E_Record_Type
4328 and then Is_Tagged_Type
(Id
));
4329 Set_Flag220
(Id
, V
);
4330 end Set_Has_Dispatch_Table
;
4332 procedure Set_Has_Dynamic_Predicate_Aspect
(Id
: E
; V
: B
:= True) is
4334 pragma Assert
(Is_Type
(Id
));
4335 Set_Flag258
(Id
, V
);
4336 end Set_Has_Dynamic_Predicate_Aspect
;
4338 procedure Set_Has_Enumeration_Rep_Clause
(Id
: E
; V
: B
:= True) is
4340 pragma Assert
(Is_Enumeration_Type
(Id
));
4342 end Set_Has_Enumeration_Rep_Clause
;
4344 procedure Set_Has_Exit
(Id
: E
; V
: B
:= True) is
4349 procedure Set_Has_Expanded_Contract
(Id
: E
; V
: B
:= True) is
4351 pragma Assert
(Ekind_In
(Id
, E_Entry
,
4355 Set_Flag240
(Id
, V
);
4356 end Set_Has_Expanded_Contract
;
4358 procedure Set_Has_Forward_Instantiation
(Id
: E
; V
: B
:= True) is
4360 Set_Flag175
(Id
, V
);
4361 end Set_Has_Forward_Instantiation
;
4363 procedure Set_Has_Fully_Qualified_Name
(Id
: E
; V
: B
:= True) is
4365 Set_Flag173
(Id
, V
);
4366 end Set_Has_Fully_Qualified_Name
;
4368 procedure Set_Has_Gigi_Rep_Item
(Id
: E
; V
: B
:= True) is
4371 end Set_Has_Gigi_Rep_Item
;
4373 procedure Set_Has_Homonym
(Id
: E
; V
: B
:= True) is
4376 end Set_Has_Homonym
;
4378 procedure Set_Has_Implicit_Dereference
(Id
: E
; V
: B
:= True) is
4380 Set_Flag251
(Id
, V
);
4381 end Set_Has_Implicit_Dereference
;
4383 procedure Set_Has_Independent_Components
(Id
: E
; V
: B
:= True) is
4385 pragma Assert
(not Is_Type
(Id
) or else Is_Base_Type
(Id
));
4387 end Set_Has_Independent_Components
;
4389 procedure Set_Has_Inheritable_Invariants
(Id
: E
; V
: B
:= True) is
4391 pragma Assert
(Is_Type
(Id
));
4392 Set_Flag248
(Id
, V
);
4393 end Set_Has_Inheritable_Invariants
;
4395 procedure Set_Has_Inherited_Default_Init_Cond
(Id
: E
; V
: B
:= True) is
4397 pragma Assert
(Is_Type
(Id
));
4398 Set_Flag133
(Id
, V
);
4399 end Set_Has_Inherited_Default_Init_Cond
;
4401 procedure Set_Has_Initial_Value
(Id
: E
; V
: B
:= True) is
4403 pragma Assert
(Ekind_In
(Id
, E_Variable
, E_Out_Parameter
));
4404 Set_Flag219
(Id
, V
);
4405 end Set_Has_Initial_Value
;
4407 procedure Set_Has_Invariants
(Id
: E
; V
: B
:= True) is
4409 pragma Assert
(Is_Type
(Id
));
4410 Set_Flag232
(Id
, V
);
4411 end Set_Has_Invariants
;
4413 procedure Set_Has_Loop_Entry_Attributes
(Id
: E
; V
: B
:= True) is
4415 pragma Assert
(Ekind
(Id
) = E_Loop
);
4416 Set_Flag260
(Id
, V
);
4417 end Set_Has_Loop_Entry_Attributes
;
4419 procedure Set_Has_Machine_Radix_Clause
(Id
: E
; V
: B
:= True) is
4421 pragma Assert
(Is_Decimal_Fixed_Point_Type
(Id
));
4423 end Set_Has_Machine_Radix_Clause
;
4425 procedure Set_Has_Master_Entity
(Id
: E
; V
: B
:= True) is
4428 end Set_Has_Master_Entity
;
4430 procedure Set_Has_Missing_Return
(Id
: E
; V
: B
:= True) is
4432 pragma Assert
(Ekind_In
(Id
, E_Function
, E_Generic_Function
));
4433 Set_Flag142
(Id
, V
);
4434 end Set_Has_Missing_Return
;
4436 procedure Set_Has_Nested_Block_With_Handler
(Id
: E
; V
: B
:= True) is
4438 Set_Flag101
(Id
, V
);
4439 end Set_Has_Nested_Block_With_Handler
;
4441 procedure Set_Has_Nested_Subprogram
(Id
: E
; V
: B
:= True) is
4443 pragma Assert
(Is_Subprogram
(Id
));
4444 Set_Flag282
(Id
, V
);
4445 end Set_Has_Nested_Subprogram
;
4447 procedure Set_Has_Uplevel_Reference
(Id
: E
; V
: B
:= True) is
4449 Set_Flag215
(Id
, V
);
4450 end Set_Has_Uplevel_Reference
;
4452 procedure Set_Has_Non_Standard_Rep
(Id
: E
; V
: B
:= True) is
4454 pragma Assert
(Id
= Base_Type
(Id
));
4456 end Set_Has_Non_Standard_Rep
;
4458 procedure Set_Has_Object_Size_Clause
(Id
: E
; V
: B
:= True) is
4460 pragma Assert
(Is_Type
(Id
));
4461 Set_Flag172
(Id
, V
);
4462 end Set_Has_Object_Size_Clause
;
4464 procedure Set_Has_Out_Or_In_Out_Parameter
(Id
: E
; V
: B
:= True) is
4466 pragma Assert
(Ekind_In
(Id
, E_Function
, E_Generic_Function
));
4467 Set_Flag110
(Id
, V
);
4468 end Set_Has_Out_Or_In_Out_Parameter
;
4470 procedure Set_Has_Per_Object_Constraint
(Id
: E
; V
: B
:= True) is
4472 Set_Flag154
(Id
, V
);
4473 end Set_Has_Per_Object_Constraint
;
4475 procedure Set_Has_Pragma_Controlled
(Id
: E
; V
: B
:= True) is
4477 pragma Assert
(Is_Access_Type
(Id
));
4478 Set_Flag27
(Base_Type
(Id
), V
);
4479 end Set_Has_Pragma_Controlled
;
4481 procedure Set_Has_Pragma_Elaborate_Body
(Id
: E
; V
: B
:= True) is
4483 Set_Flag150
(Id
, V
);
4484 end Set_Has_Pragma_Elaborate_Body
;
4486 procedure Set_Has_Pragma_Inline
(Id
: E
; V
: B
:= True) is
4488 Set_Flag157
(Id
, V
);
4489 end Set_Has_Pragma_Inline
;
4491 procedure Set_Has_Pragma_Inline_Always
(Id
: E
; V
: B
:= True) is
4493 Set_Flag230
(Id
, V
);
4494 end Set_Has_Pragma_Inline_Always
;
4496 procedure Set_Has_Pragma_No_Inline
(Id
: E
; V
: B
:= True) is
4498 Set_Flag201
(Id
, V
);
4499 end Set_Has_Pragma_No_Inline
;
4501 procedure Set_Has_Pragma_Ordered
(Id
: E
; V
: B
:= True) is
4503 pragma Assert
(Is_Enumeration_Type
(Id
));
4504 pragma Assert
(Id
= Base_Type
(Id
));
4505 Set_Flag198
(Id
, V
);
4506 end Set_Has_Pragma_Ordered
;
4508 procedure Set_Has_Pragma_Pack
(Id
: E
; V
: B
:= True) is
4510 pragma Assert
(Is_Array_Type
(Id
) or else Is_Record_Type
(Id
));
4511 pragma Assert
(Id
= Base_Type
(Id
));
4512 Set_Flag121
(Id
, V
);
4513 end Set_Has_Pragma_Pack
;
4515 procedure Set_Has_Pragma_Preelab_Init
(Id
: E
; V
: B
:= True) is
4517 Set_Flag221
(Id
, V
);
4518 end Set_Has_Pragma_Preelab_Init
;
4520 procedure Set_Has_Pragma_Pure
(Id
: E
; V
: B
:= True) is
4522 Set_Flag203
(Id
, V
);
4523 end Set_Has_Pragma_Pure
;
4525 procedure Set_Has_Pragma_Pure_Function
(Id
: E
; V
: B
:= True) is
4527 Set_Flag179
(Id
, V
);
4528 end Set_Has_Pragma_Pure_Function
;
4530 procedure Set_Has_Pragma_Thread_Local_Storage
(Id
: E
; V
: B
:= True) is
4532 Set_Flag169
(Id
, V
);
4533 end Set_Has_Pragma_Thread_Local_Storage
;
4535 procedure Set_Has_Pragma_Unmodified
(Id
: E
; V
: B
:= True) is
4537 Set_Flag233
(Id
, V
);
4538 end Set_Has_Pragma_Unmodified
;
4540 procedure Set_Has_Pragma_Unreferenced
(Id
: E
; V
: B
:= True) is
4542 Set_Flag180
(Id
, V
);
4543 end Set_Has_Pragma_Unreferenced
;
4545 procedure Set_Has_Pragma_Unreferenced_Objects
(Id
: E
; V
: B
:= True) is
4547 pragma Assert
(Is_Type
(Id
));
4548 Set_Flag212
(Id
, V
);
4549 end Set_Has_Pragma_Unreferenced_Objects
;
4551 procedure Set_Has_Predicates
(Id
: E
; V
: B
:= True) is
4553 pragma Assert
(Is_Type
(Id
) or else Ekind
(Id
) = E_Void
);
4554 Set_Flag250
(Id
, V
);
4555 end Set_Has_Predicates
;
4557 procedure Set_Has_Primitive_Operations
(Id
: E
; V
: B
:= True) is
4559 pragma Assert
(Id
= Base_Type
(Id
));
4560 Set_Flag120
(Id
, V
);
4561 end Set_Has_Primitive_Operations
;
4563 procedure Set_Has_Private_Ancestor
(Id
: E
; V
: B
:= True) is
4565 pragma Assert
(Is_Type
(Id
));
4566 Set_Flag151
(Id
, V
);
4567 end Set_Has_Private_Ancestor
;
4569 procedure Set_Has_Private_Declaration
(Id
: E
; V
: B
:= True) is
4571 Set_Flag155
(Id
, V
);
4572 end Set_Has_Private_Declaration
;
4574 procedure Set_Has_Protected
(Id
: E
; V
: B
:= True) is
4576 Set_Flag271
(Id
, V
);
4577 end Set_Has_Protected
;
4579 procedure Set_Has_Qualified_Name
(Id
: E
; V
: B
:= True) is
4581 Set_Flag161
(Id
, V
);
4582 end Set_Has_Qualified_Name
;
4584 procedure Set_Has_RACW
(Id
: E
; V
: B
:= True) is
4586 pragma Assert
(Ekind
(Id
) = E_Package
);
4587 Set_Flag214
(Id
, V
);
4590 procedure Set_Has_Record_Rep_Clause
(Id
: E
; V
: B
:= True) is
4592 pragma Assert
(Id
= Base_Type
(Id
));
4594 end Set_Has_Record_Rep_Clause
;
4596 procedure Set_Has_Recursive_Call
(Id
: E
; V
: B
:= True) is
4598 pragma Assert
(Is_Subprogram
(Id
));
4599 Set_Flag143
(Id
, V
);
4600 end Set_Has_Recursive_Call
;
4602 procedure Set_Has_Shift_Operator
(Id
: E
; V
: B
:= True) is
4604 pragma Assert
(Is_Integer_Type
(Id
) and then Is_Base_Type
(Id
));
4605 Set_Flag267
(Id
, V
);
4606 end Set_Has_Shift_Operator
;
4608 procedure Set_Has_Size_Clause
(Id
: E
; V
: B
:= True) is
4611 end Set_Has_Size_Clause
;
4613 procedure Set_Has_Small_Clause
(Id
: E
; V
: B
:= True) is
4616 end Set_Has_Small_Clause
;
4618 procedure Set_Has_Specified_Layout
(Id
: E
; V
: B
:= True) is
4620 pragma Assert
(Id
= Base_Type
(Id
));
4621 Set_Flag100
(Id
, V
);
4622 end Set_Has_Specified_Layout
;
4624 procedure Set_Has_Specified_Stream_Input
(Id
: E
; V
: B
:= True) is
4626 pragma Assert
(Is_Type
(Id
));
4627 Set_Flag190
(Id
, V
);
4628 end Set_Has_Specified_Stream_Input
;
4630 procedure Set_Has_Specified_Stream_Output
(Id
: E
; V
: B
:= True) is
4632 pragma Assert
(Is_Type
(Id
));
4633 Set_Flag191
(Id
, V
);
4634 end Set_Has_Specified_Stream_Output
;
4636 procedure Set_Has_Specified_Stream_Read
(Id
: E
; V
: B
:= True) is
4638 pragma Assert
(Is_Type
(Id
));
4639 Set_Flag192
(Id
, V
);
4640 end Set_Has_Specified_Stream_Read
;
4642 procedure Set_Has_Specified_Stream_Write
(Id
: E
; V
: B
:= True) is
4644 pragma Assert
(Is_Type
(Id
));
4645 Set_Flag193
(Id
, V
);
4646 end Set_Has_Specified_Stream_Write
;
4648 procedure Set_Has_Static_Discriminants
(Id
: E
; V
: B
:= True) is
4650 Set_Flag211
(Id
, V
);
4651 end Set_Has_Static_Discriminants
;
4653 procedure Set_Has_Static_Predicate
(Id
: E
; V
: B
:= True) is
4655 pragma Assert
(Is_Type
(Id
));
4656 Set_Flag269
(Id
, V
);
4657 end Set_Has_Static_Predicate
;
4659 procedure Set_Has_Static_Predicate_Aspect
(Id
: E
; V
: B
:= True) is
4661 pragma Assert
(Is_Type
(Id
));
4662 Set_Flag259
(Id
, V
);
4663 end Set_Has_Static_Predicate_Aspect
;
4665 procedure Set_Has_Storage_Size_Clause
(Id
: E
; V
: B
:= True) is
4667 pragma Assert
(Is_Access_Type
(Id
) or else Is_Task_Type
(Id
));
4668 pragma Assert
(Id
= Base_Type
(Id
));
4670 end Set_Has_Storage_Size_Clause
;
4672 procedure Set_Has_Stream_Size_Clause
(Id
: E
; V
: B
:= True) is
4674 pragma Assert
(Is_Elementary_Type
(Id
));
4675 Set_Flag184
(Id
, V
);
4676 end Set_Has_Stream_Size_Clause
;
4678 procedure Set_Has_Task
(Id
: E
; V
: B
:= True) is
4680 pragma Assert
(Id
= Base_Type
(Id
));
4684 procedure Set_Has_Thunks
(Id
: E
; V
: B
:= True) is
4686 pragma Assert
(Is_Tag
(Id
));
4687 Set_Flag228
(Id
, V
);
4690 procedure Set_Has_Unchecked_Union
(Id
: E
; V
: B
:= True) is
4692 pragma Assert
(Id
= Base_Type
(Id
));
4693 Set_Flag123
(Id
, V
);
4694 end Set_Has_Unchecked_Union
;
4696 procedure Set_Has_Unknown_Discriminants
(Id
: E
; V
: B
:= True) is
4698 pragma Assert
(Is_Type
(Id
));
4700 end Set_Has_Unknown_Discriminants
;
4702 procedure Set_Has_Visible_Refinement
(Id
: E
; V
: B
:= True) is
4704 pragma Assert
(Ekind
(Id
) = E_Abstract_State
);
4705 Set_Flag263
(Id
, V
);
4706 end Set_Has_Visible_Refinement
;
4708 procedure Set_Has_Volatile_Components
(Id
: E
; V
: B
:= True) is
4710 pragma Assert
(not Is_Type
(Id
) or else Is_Base_Type
(Id
));
4712 end Set_Has_Volatile_Components
;
4714 procedure Set_Has_Xref_Entry
(Id
: E
; V
: B
:= True) is
4716 Set_Flag182
(Id
, V
);
4717 end Set_Has_Xref_Entry
;
4719 procedure Set_Hiding_Loop_Variable
(Id
: E
; V
: E
) is
4721 pragma Assert
(Ekind
(Id
) = E_Variable
);
4723 end Set_Hiding_Loop_Variable
;
4725 procedure Set_Homonym
(Id
: E
; V
: E
) is
4727 pragma Assert
(Id
/= V
);
4731 procedure Set_Import_Pragma
(Id
: E
; V
: E
) is
4733 pragma Assert
(Is_Subprogram
(Id
));
4735 end Set_Import_Pragma
;
4737 procedure Set_Interface_Alias
(Id
: E
; V
: E
) is
4741 and then Is_Hidden
(Id
)
4742 and then (Ekind_In
(Id
, E_Procedure
, E_Function
)));
4744 end Set_Interface_Alias
;
4746 procedure Set_Interfaces
(Id
: E
; V
: L
) is
4748 pragma Assert
(Is_Record_Type
(Id
));
4749 Set_Elist25
(Id
, V
);
4752 procedure Set_In_Package_Body
(Id
: E
; V
: B
:= True) is
4755 end Set_In_Package_Body
;
4757 procedure Set_In_Private_Part
(Id
: E
; V
: B
:= True) is
4760 end Set_In_Private_Part
;
4762 procedure Set_In_Use
(Id
: E
; V
: B
:= True) is
4764 pragma Assert
(Nkind
(Id
) in N_Entity
);
4768 procedure Set_Initialization_Statements
(Id
: E
; V
: N
) is
4770 -- Tolerate an E_Void entity since this can be called while resolving
4771 -- an aggregate used as the initialization expression for an object
4772 -- declaration, and this occurs before the Ekind for the object is set.
4774 pragma Assert
(Ekind_In
(Id
, E_Void
, E_Constant
, E_Variable
));
4776 end Set_Initialization_Statements
;
4778 procedure Set_Inner_Instances
(Id
: E
; V
: L
) is
4780 Set_Elist23
(Id
, V
);
4781 end Set_Inner_Instances
;
4783 procedure Set_Interface_Name
(Id
: E
; V
: N
) is
4786 end Set_Interface_Name
;
4788 procedure Set_Is_Abstract_Subprogram
(Id
: E
; V
: B
:= True) is
4790 pragma Assert
(Is_Overloadable
(Id
));
4792 end Set_Is_Abstract_Subprogram
;
4794 procedure Set_Is_Abstract_Type
(Id
: E
; V
: B
:= True) is
4796 pragma Assert
(Is_Type
(Id
));
4797 Set_Flag146
(Id
, V
);
4798 end Set_Is_Abstract_Type
;
4800 procedure Set_Is_Local_Anonymous_Access
(Id
: E
; V
: B
:= True) is
4802 pragma Assert
(Is_Access_Type
(Id
));
4803 Set_Flag194
(Id
, V
);
4804 end Set_Is_Local_Anonymous_Access
;
4806 procedure Set_Is_Access_Constant
(Id
: E
; V
: B
:= True) is
4808 pragma Assert
(Is_Access_Type
(Id
));
4810 end Set_Is_Access_Constant
;
4812 procedure Set_Is_Ada_2005_Only
(Id
: E
; V
: B
:= True) is
4814 Set_Flag185
(Id
, V
);
4815 end Set_Is_Ada_2005_Only
;
4817 procedure Set_Is_Ada_2012_Only
(Id
: E
; V
: B
:= True) is
4819 Set_Flag199
(Id
, V
);
4820 end Set_Is_Ada_2012_Only
;
4822 procedure Set_Is_Aliased
(Id
: E
; V
: B
:= True) is
4824 pragma Assert
(Nkind
(Id
) in N_Entity
);
4828 procedure Set_Is_Asynchronous
(Id
: E
; V
: B
:= True) is
4831 (Ekind
(Id
) = E_Procedure
or else Is_Type
(Id
));
4833 end Set_Is_Asynchronous
;
4835 procedure Set_Is_Atomic
(Id
: E
; V
: B
:= True) is
4840 procedure Set_Is_Bit_Packed_Array
(Id
: E
; V
: B
:= True) is
4842 pragma Assert
((not V
)
4843 or else (Is_Array_Type
(Id
) and then Is_Base_Type
(Id
)));
4844 Set_Flag122
(Id
, V
);
4845 end Set_Is_Bit_Packed_Array
;
4847 procedure Set_Is_Called
(Id
: E
; V
: B
:= True) is
4849 pragma Assert
(Ekind_In
(Id
, E_Procedure
, E_Function
));
4850 Set_Flag102
(Id
, V
);
4853 procedure Set_Is_Character_Type
(Id
: E
; V
: B
:= True) is
4856 end Set_Is_Character_Type
;
4858 procedure Set_Is_Checked_Ghost_Entity
(Id
: E
; V
: B
:= True) is
4860 pragma Assert
(Is_Formal
(Id
)
4861 or else Is_Object
(Id
)
4862 or else Is_Package_Or_Generic_Package
(Id
)
4863 or else Is_Subprogram_Or_Generic_Subprogram
(Id
)
4864 or else Is_Type
(Id
)
4865 or else Ekind
(Id
) = E_Abstract_State
4866 or else Ekind
(Id
) = E_Component
4867 or else Ekind
(Id
) = E_Discriminant
4868 or else Ekind
(Id
) = E_Exception
4869 or else Ekind
(Id
) = E_Package_Body
4870 or else Ekind
(Id
) = E_Subprogram_Body
4872 -- Allow this attribute to appear on non-analyzed entities
4874 or else Ekind
(Id
) = E_Void
);
4875 Set_Flag277
(Id
, V
);
4876 end Set_Is_Checked_Ghost_Entity
;
4878 procedure Set_Is_Child_Unit
(Id
: E
; V
: B
:= True) is
4881 end Set_Is_Child_Unit
;
4883 procedure Set_Is_Class_Wide_Equivalent_Type
(Id
: E
; V
: B
:= True) is
4886 end Set_Is_Class_Wide_Equivalent_Type
;
4888 procedure Set_Is_Compilation_Unit
(Id
: E
; V
: B
:= True) is
4890 Set_Flag149
(Id
, V
);
4891 end Set_Is_Compilation_Unit
;
4893 procedure Set_Is_Completely_Hidden
(Id
: E
; V
: B
:= True) is
4895 pragma Assert
(Ekind
(Id
) = E_Discriminant
);
4896 Set_Flag103
(Id
, V
);
4897 end Set_Is_Completely_Hidden
;
4899 procedure Set_Is_Concurrent_Record_Type
(Id
: E
; V
: B
:= True) is
4902 end Set_Is_Concurrent_Record_Type
;
4904 procedure Set_Is_Constr_Subt_For_U_Nominal
(Id
: E
; V
: B
:= True) is
4907 end Set_Is_Constr_Subt_For_U_Nominal
;
4909 procedure Set_Is_Constr_Subt_For_UN_Aliased
(Id
: E
; V
: B
:= True) is
4911 Set_Flag141
(Id
, V
);
4912 end Set_Is_Constr_Subt_For_UN_Aliased
;
4914 procedure Set_Is_Constrained
(Id
: E
; V
: B
:= True) is
4916 pragma Assert
(Nkind
(Id
) in N_Entity
);
4918 end Set_Is_Constrained
;
4920 procedure Set_Is_Constructor
(Id
: E
; V
: B
:= True) is
4923 end Set_Is_Constructor
;
4925 procedure Set_Is_Controlled
(Id
: E
; V
: B
:= True) is
4927 pragma Assert
(Id
= Base_Type
(Id
));
4929 end Set_Is_Controlled
;
4931 procedure Set_Is_Controlling_Formal
(Id
: E
; V
: B
:= True) is
4933 pragma Assert
(Is_Formal
(Id
));
4935 end Set_Is_Controlling_Formal
;
4937 procedure Set_Is_CPP_Class
(Id
: E
; V
: B
:= True) is
4940 end Set_Is_CPP_Class
;
4942 procedure Set_Is_Default_Init_Cond_Procedure
(Id
: E
; V
: B
:= True) is
4944 pragma Assert
(Ekind
(Id
) = E_Procedure
);
4945 Set_Flag132
(Id
, V
);
4946 end Set_Is_Default_Init_Cond_Procedure
;
4948 procedure Set_Is_Descendent_Of_Address
(Id
: E
; V
: B
:= True) is
4950 pragma Assert
(Is_Type
(Id
));
4951 Set_Flag223
(Id
, V
);
4952 end Set_Is_Descendent_Of_Address
;
4954 procedure Set_Is_Discrim_SO_Function
(Id
: E
; V
: B
:= True) is
4956 Set_Flag176
(Id
, V
);
4957 end Set_Is_Discrim_SO_Function
;
4959 procedure Set_Is_Discriminant_Check_Function
(Id
: E
; V
: B
:= True) is
4961 Set_Flag264
(Id
, V
);
4962 end Set_Is_Discriminant_Check_Function
;
4964 procedure Set_Is_Dispatch_Table_Entity
(Id
: E
; V
: B
:= True) is
4966 Set_Flag234
(Id
, V
);
4967 end Set_Is_Dispatch_Table_Entity
;
4969 procedure Set_Is_Dispatching_Operation
(Id
: E
; V
: B
:= True) is
4974 Is_Overloadable
(Id
)
4976 Ekind
(Id
) = E_Subprogram_Type
);
4979 end Set_Is_Dispatching_Operation
;
4981 procedure Set_Is_Eliminated
(Id
: E
; V
: B
:= True) is
4983 Set_Flag124
(Id
, V
);
4984 end Set_Is_Eliminated
;
4986 procedure Set_Is_Entry_Formal
(Id
: E
; V
: B
:= True) is
4989 end Set_Is_Entry_Formal
;
4991 procedure Set_Is_Exported
(Id
: E
; V
: B
:= True) is
4994 end Set_Is_Exported
;
4996 procedure Set_Is_First_Subtype
(Id
: E
; V
: B
:= True) is
4999 end Set_Is_First_Subtype
;
5001 procedure Set_Is_For_Access_Subtype
(Id
: E
; V
: B
:= True) is
5003 pragma Assert
(Ekind_In
(Id
, E_Record_Subtype
, E_Private_Subtype
));
5004 Set_Flag118
(Id
, V
);
5005 end Set_Is_For_Access_Subtype
;
5007 procedure Set_Is_Formal_Subprogram
(Id
: E
; V
: B
:= True) is
5009 Set_Flag111
(Id
, V
);
5010 end Set_Is_Formal_Subprogram
;
5012 procedure Set_Is_Frozen
(Id
: E
; V
: B
:= True) is
5014 pragma Assert
(Nkind
(Id
) in N_Entity
);
5018 procedure Set_Is_Generic_Actual_Subprogram
(Id
: E
; V
: B
:= True) is
5020 pragma Assert
(Ekind_In
(Id
, E_Function
, E_Procedure
));
5021 Set_Flag274
(Id
, V
);
5022 end Set_Is_Generic_Actual_Subprogram
;
5024 procedure Set_Is_Generic_Actual_Type
(Id
: E
; V
: B
:= True) is
5026 pragma Assert
(Is_Type
(Id
));
5028 end Set_Is_Generic_Actual_Type
;
5030 procedure Set_Is_Generic_Instance
(Id
: E
; V
: B
:= True) is
5032 Set_Flag130
(Id
, V
);
5033 end Set_Is_Generic_Instance
;
5035 procedure Set_Is_Generic_Type
(Id
: E
; V
: B
:= True) is
5037 pragma Assert
(Nkind
(Id
) in N_Entity
);
5039 end Set_Is_Generic_Type
;
5041 procedure Set_Is_Hidden
(Id
: E
; V
: B
:= True) is
5046 procedure Set_Is_Hidden_Non_Overridden_Subpgm
(Id
: E
; V
: B
:= True) is
5048 pragma Assert
(Ekind_In
(Id
, E_Function
, E_Procedure
));
5050 end Set_Is_Hidden_Non_Overridden_Subpgm
;
5052 procedure Set_Is_Hidden_Open_Scope
(Id
: E
; V
: B
:= True) is
5054 Set_Flag171
(Id
, V
);
5055 end Set_Is_Hidden_Open_Scope
;
5057 procedure Set_Is_Ignored_Ghost_Entity
(Id
: E
; V
: B
:= True) is
5059 pragma Assert
(Is_Formal
(Id
)
5060 or else Is_Object
(Id
)
5061 or else Is_Package_Or_Generic_Package
(Id
)
5062 or else Is_Subprogram_Or_Generic_Subprogram
(Id
)
5063 or else Is_Type
(Id
)
5064 or else Ekind
(Id
) = E_Abstract_State
5065 or else Ekind
(Id
) = E_Component
5066 or else Ekind
(Id
) = E_Discriminant
5067 or else Ekind
(Id
) = E_Exception
5068 or else Ekind
(Id
) = E_Package_Body
5069 or else Ekind
(Id
) = E_Subprogram_Body
5071 -- Allow this attribute to appear on non-analyzed entities
5073 or else Ekind
(Id
) = E_Void
);
5074 Set_Flag278
(Id
, V
);
5075 end Set_Is_Ignored_Ghost_Entity
;
5077 procedure Set_Is_Immediately_Visible
(Id
: E
; V
: B
:= True) is
5079 pragma Assert
(Nkind
(Id
) in N_Entity
);
5081 end Set_Is_Immediately_Visible
;
5083 procedure Set_Is_Implementation_Defined
(Id
: E
; V
: B
:= True) is
5085 Set_Flag254
(Id
, V
);
5086 end Set_Is_Implementation_Defined
;
5088 procedure Set_Is_Imported
(Id
: E
; V
: B
:= True) is
5091 end Set_Is_Imported
;
5093 procedure Set_Is_Independent
(Id
: E
; V
: B
:= True) is
5095 Set_Flag268
(Id
, V
);
5096 end Set_Is_Independent
;
5098 procedure Set_Is_Inlined
(Id
: E
; V
: B
:= True) is
5103 procedure Set_Is_Inlined_Always
(Id
: E
; V
: B
:= True) is
5105 pragma Assert
(Ekind
(Id
) = E_Function
or else Ekind
(Id
) = E_Procedure
);
5107 end Set_Is_Inlined_Always
;
5109 procedure Set_Is_Interface
(Id
: E
; V
: B
:= True) is
5111 pragma Assert
(Is_Record_Type
(Id
));
5112 Set_Flag186
(Id
, V
);
5113 end Set_Is_Interface
;
5115 procedure Set_Is_Instantiated
(Id
: E
; V
: B
:= True) is
5117 Set_Flag126
(Id
, V
);
5118 end Set_Is_Instantiated
;
5120 procedure Set_Is_Internal
(Id
: E
; V
: B
:= True) is
5122 pragma Assert
(Nkind
(Id
) in N_Entity
);
5124 end Set_Is_Internal
;
5126 procedure Set_Is_Interrupt_Handler
(Id
: E
; V
: B
:= True) is
5128 pragma Assert
(Nkind
(Id
) in N_Entity
);
5130 end Set_Is_Interrupt_Handler
;
5132 procedure Set_Is_Intrinsic_Subprogram
(Id
: E
; V
: B
:= True) is
5135 end Set_Is_Intrinsic_Subprogram
;
5137 procedure Set_Is_Invariant_Procedure
(Id
: E
; V
: B
:= True) is
5139 pragma Assert
(Ekind
(Id
) = E_Procedure
);
5140 Set_Flag257
(Id
, V
);
5141 end Set_Is_Invariant_Procedure
;
5143 procedure Set_Is_Itype
(Id
: E
; V
: B
:= True) is
5148 procedure Set_Is_Known_Non_Null
(Id
: E
; V
: B
:= True) is
5151 end Set_Is_Known_Non_Null
;
5153 procedure Set_Is_Known_Null
(Id
: E
; V
: B
:= True) is
5155 Set_Flag204
(Id
, V
);
5156 end Set_Is_Known_Null
;
5158 procedure Set_Is_Known_Valid
(Id
: E
; V
: B
:= True) is
5160 Set_Flag170
(Id
, V
);
5161 end Set_Is_Known_Valid
;
5163 procedure Set_Is_Limited_Composite
(Id
: E
; V
: B
:= True) is
5165 pragma Assert
(Is_Type
(Id
));
5166 Set_Flag106
(Id
, V
);
5167 end Set_Is_Limited_Composite
;
5169 procedure Set_Is_Limited_Interface
(Id
: E
; V
: B
:= True) is
5171 pragma Assert
(Is_Interface
(Id
));
5172 Set_Flag197
(Id
, V
);
5173 end Set_Is_Limited_Interface
;
5175 procedure Set_Is_Limited_Record
(Id
: E
; V
: B
:= True) is
5178 end Set_Is_Limited_Record
;
5180 procedure Set_Is_Machine_Code_Subprogram
(Id
: E
; V
: B
:= True) is
5182 pragma Assert
(Is_Subprogram
(Id
));
5183 Set_Flag137
(Id
, V
);
5184 end Set_Is_Machine_Code_Subprogram
;
5186 procedure Set_Is_Non_Static_Subtype
(Id
: E
; V
: B
:= True) is
5188 pragma Assert
(Is_Type
(Id
));
5189 Set_Flag109
(Id
, V
);
5190 end Set_Is_Non_Static_Subtype
;
5192 procedure Set_Is_Null_Init_Proc
(Id
: E
; V
: B
:= True) is
5194 pragma Assert
(Ekind
(Id
) = E_Procedure
);
5195 Set_Flag178
(Id
, V
);
5196 end Set_Is_Null_Init_Proc
;
5198 procedure Set_Is_Obsolescent
(Id
: E
; V
: B
:= True) is
5200 Set_Flag153
(Id
, V
);
5201 end Set_Is_Obsolescent
;
5203 procedure Set_Is_Only_Out_Parameter
(Id
: E
; V
: B
:= True) is
5205 pragma Assert
(Ekind
(Id
) = E_Out_Parameter
);
5206 Set_Flag226
(Id
, V
);
5207 end Set_Is_Only_Out_Parameter
;
5209 procedure Set_Is_Package_Body_Entity
(Id
: E
; V
: B
:= True) is
5211 Set_Flag160
(Id
, V
);
5212 end Set_Is_Package_Body_Entity
;
5214 procedure Set_Is_Packed
(Id
: E
; V
: B
:= True) is
5216 pragma Assert
(Id
= Base_Type
(Id
));
5220 procedure Set_Is_Packed_Array_Impl_Type
(Id
: E
; V
: B
:= True) is
5222 Set_Flag138
(Id
, V
);
5223 end Set_Is_Packed_Array_Impl_Type
;
5225 procedure Set_Is_Potentially_Use_Visible
(Id
: E
; V
: B
:= True) is
5227 pragma Assert
(Nkind
(Id
) in N_Entity
);
5229 end Set_Is_Potentially_Use_Visible
;
5231 procedure Set_Is_Predicate_Function
(Id
: E
; V
: B
:= True) is
5233 pragma Assert
(Ekind
(Id
) = E_Function
or else Ekind
(Id
) = E_Procedure
);
5234 Set_Flag255
(Id
, V
);
5235 end Set_Is_Predicate_Function
;
5237 procedure Set_Is_Predicate_Function_M
(Id
: E
; V
: B
:= True) is
5239 pragma Assert
(Ekind
(Id
) = E_Function
or else Ekind
(Id
) = E_Procedure
);
5240 Set_Flag256
(Id
, V
);
5241 end Set_Is_Predicate_Function_M
;
5243 procedure Set_Is_Preelaborated
(Id
: E
; V
: B
:= True) is
5246 end Set_Is_Preelaborated
;
5248 procedure Set_Is_Primitive
(Id
: E
; V
: B
:= True) is
5251 (Is_Overloadable
(Id
)
5252 or else Ekind_In
(Id
, E_Generic_Function
, E_Generic_Procedure
));
5253 Set_Flag218
(Id
, V
);
5254 end Set_Is_Primitive
;
5256 procedure Set_Is_Primitive_Wrapper
(Id
: E
; V
: B
:= True) is
5258 pragma Assert
(Ekind_In
(Id
, E_Function
, E_Procedure
));
5259 Set_Flag195
(Id
, V
);
5260 end Set_Is_Primitive_Wrapper
;
5262 procedure Set_Is_Private_Composite
(Id
: E
; V
: B
:= True) is
5264 pragma Assert
(Is_Type
(Id
));
5265 Set_Flag107
(Id
, V
);
5266 end Set_Is_Private_Composite
;
5268 procedure Set_Is_Private_Descendant
(Id
: E
; V
: B
:= True) is
5271 end Set_Is_Private_Descendant
;
5273 procedure Set_Is_Private_Primitive
(Id
: E
; V
: B
:= True) is
5275 pragma Assert
(Ekind_In
(Id
, E_Function
, E_Procedure
));
5276 Set_Flag245
(Id
, V
);
5277 end Set_Is_Private_Primitive
;
5279 procedure Set_Is_Processed_Transient
(Id
: E
; V
: B
:= True) is
5281 pragma Assert
(Ekind_In
(Id
, E_Constant
, E_Loop_Parameter
, E_Variable
));
5282 Set_Flag252
(Id
, V
);
5283 end Set_Is_Processed_Transient
;
5285 procedure Set_Is_Public
(Id
: E
; V
: B
:= True) is
5287 pragma Assert
(Nkind
(Id
) in N_Entity
);
5291 procedure Set_Is_Pure
(Id
: E
; V
: B
:= True) is
5296 procedure Set_Is_Pure_Unit_Access_Type
(Id
: E
; V
: B
:= True) is
5298 pragma Assert
(Is_Access_Type
(Id
));
5299 Set_Flag189
(Id
, V
);
5300 end Set_Is_Pure_Unit_Access_Type
;
5302 procedure Set_Is_RACW_Stub_Type
(Id
: E
; V
: B
:= True) is
5304 pragma Assert
(Is_Type
(Id
));
5305 Set_Flag244
(Id
, V
);
5306 end Set_Is_RACW_Stub_Type
;
5308 procedure Set_Is_Raised
(Id
: E
; V
: B
:= True) is
5310 pragma Assert
(Ekind
(Id
) = E_Exception
);
5311 Set_Flag224
(Id
, V
);
5314 procedure Set_Is_Remote_Call_Interface
(Id
: E
; V
: B
:= True) is
5317 end Set_Is_Remote_Call_Interface
;
5319 procedure Set_Is_Remote_Types
(Id
: E
; V
: B
:= True) is
5322 end Set_Is_Remote_Types
;
5324 procedure Set_Is_Renaming_Of_Object
(Id
: E
; V
: B
:= True) is
5326 Set_Flag112
(Id
, V
);
5327 end Set_Is_Renaming_Of_Object
;
5329 procedure Set_Is_Return_Object
(Id
: E
; V
: B
:= True) is
5331 Set_Flag209
(Id
, V
);
5332 end Set_Is_Return_Object
;
5334 procedure Set_Is_Safe_To_Reevaluate
(Id
: E
; V
: B
:= True) is
5336 pragma Assert
(Ekind
(Id
) = E_Variable
);
5337 Set_Flag249
(Id
, V
);
5338 end Set_Is_Safe_To_Reevaluate
;
5340 procedure Set_Is_Shared_Passive
(Id
: E
; V
: B
:= True) is
5343 end Set_Is_Shared_Passive
;
5345 procedure Set_Is_Static_Type
(Id
: E
; V
: B
:= True) is
5347 pragma Assert
(Is_Type
(Id
));
5348 Set_Flag281
(Id
, V
);
5349 end Set_Is_Static_Type
;
5351 procedure Set_Is_Statically_Allocated
(Id
: E
; V
: B
:= True) is
5355 or else Ekind_In
(Id
, E_Exception
,
5360 end Set_Is_Statically_Allocated
;
5362 procedure Set_Is_Tag
(Id
: E
; V
: B
:= True) is
5364 pragma Assert
(Ekind_In
(Id
, E_Component
, E_Constant
, E_Variable
));
5368 procedure Set_Is_Tagged_Type
(Id
: E
; V
: B
:= True) is
5371 end Set_Is_Tagged_Type
;
5373 procedure Set_Is_Thunk
(Id
: E
; V
: B
:= True) is
5375 pragma Assert
(Is_Subprogram
(Id
));
5376 Set_Flag225
(Id
, V
);
5379 procedure Set_Is_Trivial_Subprogram
(Id
: E
; V
: B
:= True) is
5381 Set_Flag235
(Id
, V
);
5382 end Set_Is_Trivial_Subprogram
;
5384 procedure Set_Is_True_Constant
(Id
: E
; V
: B
:= True) is
5386 Set_Flag163
(Id
, V
);
5387 end Set_Is_True_Constant
;
5389 procedure Set_Is_Unchecked_Union
(Id
: E
; V
: B
:= True) is
5391 pragma Assert
(Id
= Base_Type
(Id
));
5392 Set_Flag117
(Id
, V
);
5393 end Set_Is_Unchecked_Union
;
5395 procedure Set_Is_Underlying_Record_View
(Id
: E
; V
: B
:= True) is
5397 pragma Assert
(Ekind
(Id
) = E_Record_Type
);
5398 Set_Flag246
(Id
, V
);
5399 end Set_Is_Underlying_Record_View
;
5401 procedure Set_Is_Unsigned_Type
(Id
: E
; V
: B
:= True) is
5403 pragma Assert
(Is_Discrete_Or_Fixed_Point_Type
(Id
));
5404 Set_Flag144
(Id
, V
);
5405 end Set_Is_Unsigned_Type
;
5407 procedure Set_Is_Valued_Procedure
(Id
: E
; V
: B
:= True) is
5409 pragma Assert
(Ekind
(Id
) = E_Procedure
);
5410 Set_Flag127
(Id
, V
);
5411 end Set_Is_Valued_Procedure
;
5413 procedure Set_Is_Visible_Formal
(Id
: E
; V
: B
:= True) is
5415 Set_Flag206
(Id
, V
);
5416 end Set_Is_Visible_Formal
;
5418 procedure Set_Is_Visible_Lib_Unit
(Id
: E
; V
: B
:= True) is
5420 Set_Flag116
(Id
, V
);
5421 end Set_Is_Visible_Lib_Unit
;
5423 procedure Set_Is_Volatile
(Id
: E
; V
: B
:= True) is
5425 pragma Assert
(Nkind
(Id
) in N_Entity
);
5427 end Set_Is_Volatile
;
5429 procedure Set_Itype_Printed
(Id
: E
; V
: B
:= True) is
5431 pragma Assert
(Is_Itype
(Id
));
5432 Set_Flag202
(Id
, V
);
5433 end Set_Itype_Printed
;
5435 procedure Set_Kill_Elaboration_Checks
(Id
: E
; V
: B
:= True) is
5438 end Set_Kill_Elaboration_Checks
;
5440 procedure Set_Kill_Range_Checks
(Id
: E
; V
: B
:= True) is
5443 end Set_Kill_Range_Checks
;
5445 procedure Set_Known_To_Have_Preelab_Init
(Id
: E
; V
: B
:= True) is
5447 pragma Assert
(Is_Type
(Id
));
5448 Set_Flag207
(Id
, V
);
5449 end Set_Known_To_Have_Preelab_Init
;
5451 procedure Set_Last_Aggregate_Assignment
(Id
: E
; V
: N
) is
5453 pragma Assert
(Ekind_In
(Id
, E_Constant
, E_Variable
));
5455 end Set_Last_Aggregate_Assignment
;
5457 procedure Set_Last_Assignment
(Id
: E
; V
: N
) is
5459 pragma Assert
(Is_Assignable
(Id
));
5461 end Set_Last_Assignment
;
5463 procedure Set_Last_Entity
(Id
: E
; V
: E
) is
5466 end Set_Last_Entity
;
5468 procedure Set_Limited_View
(Id
: E
; V
: E
) is
5470 pragma Assert
(Ekind
(Id
) = E_Package
);
5472 end Set_Limited_View
;
5474 procedure Set_Linker_Section_Pragma
(Id
: E
; V
: N
) is
5476 pragma Assert
(Is_Type
(Id
)
5477 or else Ekind_In
(Id
, E_Constant
, E_Variable
)
5478 or else Is_Subprogram
(Id
));
5480 end Set_Linker_Section_Pragma
;
5482 procedure Set_Lit_Indexes
(Id
: E
; V
: E
) is
5484 pragma Assert
(Is_Enumeration_Type
(Id
) and then Root_Type
(Id
) = Id
);
5486 end Set_Lit_Indexes
;
5488 procedure Set_Lit_Strings
(Id
: E
; V
: E
) is
5490 pragma Assert
(Is_Enumeration_Type
(Id
) and then Root_Type
(Id
) = Id
);
5492 end Set_Lit_Strings
;
5494 procedure Set_Low_Bound_Tested
(Id
: E
; V
: B
:= True) is
5496 pragma Assert
(Is_Formal
(Id
));
5497 Set_Flag205
(Id
, V
);
5498 end Set_Low_Bound_Tested
;
5500 procedure Set_Machine_Radix_10
(Id
: E
; V
: B
:= True) is
5502 pragma Assert
(Is_Decimal_Fixed_Point_Type
(Id
));
5504 end Set_Machine_Radix_10
;
5506 procedure Set_Master_Id
(Id
: E
; V
: E
) is
5508 pragma Assert
(Is_Access_Type
(Id
));
5512 procedure Set_Materialize_Entity
(Id
: E
; V
: B
:= True) is
5514 Set_Flag168
(Id
, V
);
5515 end Set_Materialize_Entity
;
5517 procedure Set_May_Inherit_Delayed_Rep_Aspects
(Id
: E
; V
: B
:= True) is
5519 Set_Flag262
(Id
, V
);
5520 end Set_May_Inherit_Delayed_Rep_Aspects
;
5522 procedure Set_Mechanism
(Id
: E
; V
: M
) is
5524 pragma Assert
(Ekind
(Id
) = E_Function
or else Is_Formal
(Id
));
5525 Set_Uint8
(Id
, UI_From_Int
(V
));
5528 procedure Set_Modulus
(Id
: E
; V
: U
) is
5530 pragma Assert
(Ekind
(Id
) = E_Modular_Integer_Type
);
5534 procedure Set_Must_Be_On_Byte_Boundary
(Id
: E
; V
: B
:= True) is
5536 pragma Assert
(Is_Type
(Id
));
5537 Set_Flag183
(Id
, V
);
5538 end Set_Must_Be_On_Byte_Boundary
;
5540 procedure Set_Must_Have_Preelab_Init
(Id
: E
; V
: B
:= True) is
5542 pragma Assert
(Is_Type
(Id
));
5543 Set_Flag208
(Id
, V
);
5544 end Set_Must_Have_Preelab_Init
;
5546 procedure Set_Needs_Debug_Info
(Id
: E
; V
: B
:= True) is
5548 Set_Flag147
(Id
, V
);
5549 end Set_Needs_Debug_Info
;
5551 procedure Set_Needs_No_Actuals
(Id
: E
; V
: B
:= True) is
5554 (Is_Overloadable
(Id
)
5555 or else Ekind_In
(Id
, E_Subprogram_Type
, E_Entry_Family
));
5557 end Set_Needs_No_Actuals
;
5559 procedure Set_Never_Set_In_Source
(Id
: E
; V
: B
:= True) is
5561 Set_Flag115
(Id
, V
);
5562 end Set_Never_Set_In_Source
;
5564 procedure Set_Next_Inlined_Subprogram
(Id
: E
; V
: E
) is
5567 end Set_Next_Inlined_Subprogram
;
5569 procedure Set_No_Dynamic_Predicate_On_Actual
(Id
: E
; V
: B
:= True) is
5571 pragma Assert
(Is_Discrete_Type
(Id
));
5572 Set_Flag276
(Id
, V
);
5573 end Set_No_Dynamic_Predicate_On_Actual
;
5575 procedure Set_No_Pool_Assigned
(Id
: E
; V
: B
:= True) is
5577 pragma Assert
(Is_Access_Type
(Id
) and then Is_Base_Type
(Id
));
5578 Set_Flag131
(Id
, V
);
5579 end Set_No_Pool_Assigned
;
5581 procedure Set_No_Predicate_On_Actual
(Id
: E
; V
: B
:= True) is
5583 pragma Assert
(Is_Discrete_Type
(Id
));
5584 Set_Flag275
(Id
, V
);
5585 end Set_No_Predicate_On_Actual
;
5587 procedure Set_No_Return
(Id
: E
; V
: B
:= True) is
5590 (V
= False or else Ekind_In
(Id
, E_Procedure
, E_Generic_Procedure
));
5591 Set_Flag113
(Id
, V
);
5594 procedure Set_No_Strict_Aliasing
(Id
: E
; V
: B
:= True) is
5596 pragma Assert
(Is_Access_Type
(Id
) and then Is_Base_Type
(Id
));
5597 Set_Flag136
(Id
, V
);
5598 end Set_No_Strict_Aliasing
;
5600 procedure Set_No_Tagged_Streams_Pragma
(Id
: E
; V
: E
) is
5602 pragma Assert
(Is_Tagged_Type
(Id
));
5604 end Set_No_Tagged_Streams_Pragma
;
5606 procedure Set_Non_Binary_Modulus
(Id
: E
; V
: B
:= True) is
5608 pragma Assert
(Is_Type
(Id
) and then Is_Base_Type
(Id
));
5610 end Set_Non_Binary_Modulus
;
5612 procedure Set_Non_Limited_View
(Id
: E
; V
: E
) is
5615 (Ekind
(Id
) in Incomplete_Kind
or else Ekind
(Id
) = E_Abstract_State
);
5617 end Set_Non_Limited_View
;
5619 procedure Set_Nonzero_Is_True
(Id
: E
; V
: B
:= True) is
5622 (Root_Type
(Id
) = Standard_Boolean
5623 and then Ekind
(Id
) = E_Enumeration_Type
);
5624 Set_Flag162
(Id
, V
);
5625 end Set_Nonzero_Is_True
;
5627 procedure Set_Normalized_First_Bit
(Id
: E
; V
: U
) is
5629 pragma Assert
(Ekind_In
(Id
, E_Component
, E_Discriminant
));
5631 end Set_Normalized_First_Bit
;
5633 procedure Set_Normalized_Position
(Id
: E
; V
: U
) is
5635 pragma Assert
(Ekind_In
(Id
, E_Component
, E_Discriminant
));
5637 end Set_Normalized_Position
;
5639 procedure Set_Normalized_Position_Max
(Id
: E
; V
: U
) is
5641 pragma Assert
(Ekind_In
(Id
, E_Component
, E_Discriminant
));
5643 end Set_Normalized_Position_Max
;
5645 procedure Set_OK_To_Rename
(Id
: E
; V
: B
:= True) is
5647 pragma Assert
(Ekind
(Id
) = E_Variable
);
5648 Set_Flag247
(Id
, V
);
5649 end Set_OK_To_Rename
;
5651 procedure Set_OK_To_Reorder_Components
(Id
: E
; V
: B
:= True) is
5654 (Is_Record_Type
(Id
) and then Is_Base_Type
(Id
));
5655 Set_Flag239
(Id
, V
);
5656 end Set_OK_To_Reorder_Components
;
5658 procedure Set_Optimize_Alignment_Space
(Id
: E
; V
: B
:= True) is
5661 (Is_Type
(Id
) or else Ekind_In
(Id
, E_Constant
, E_Variable
));
5662 Set_Flag241
(Id
, V
);
5663 end Set_Optimize_Alignment_Space
;
5665 procedure Set_Optimize_Alignment_Time
(Id
: E
; V
: B
:= True) is
5668 (Is_Type
(Id
) or else Ekind_In
(Id
, E_Constant
, E_Variable
));
5669 Set_Flag242
(Id
, V
);
5670 end Set_Optimize_Alignment_Time
;
5672 procedure Set_Original_Access_Type
(Id
: E
; V
: E
) is
5674 pragma Assert
(Ekind
(Id
) = E_Access_Subprogram_Type
);
5676 end Set_Original_Access_Type
;
5678 procedure Set_Original_Array_Type
(Id
: E
; V
: E
) is
5680 pragma Assert
(Is_Array_Type
(Id
) or else Is_Modular_Integer_Type
(Id
));
5682 end Set_Original_Array_Type
;
5684 procedure Set_Original_Record_Component
(Id
: E
; V
: E
) is
5686 pragma Assert
(Ekind_In
(Id
, E_Void
, E_Component
, E_Discriminant
));
5688 end Set_Original_Record_Component
;
5690 procedure Set_Overlays_Constant
(Id
: E
; V
: B
:= True) is
5692 Set_Flag243
(Id
, V
);
5693 end Set_Overlays_Constant
;
5695 procedure Set_Overridden_Operation
(Id
: E
; V
: E
) is
5698 end Set_Overridden_Operation
;
5700 procedure Set_Package_Instantiation
(Id
: E
; V
: N
) is
5702 pragma Assert
(Ekind_In
(Id
, E_Void
, E_Generic_Package
, E_Package
));
5704 end Set_Package_Instantiation
;
5706 procedure Set_Packed_Array_Impl_Type
(Id
: E
; V
: E
) is
5708 pragma Assert
(Is_Array_Type
(Id
));
5710 end Set_Packed_Array_Impl_Type
;
5712 procedure Set_Parent_Subtype
(Id
: E
; V
: E
) is
5714 pragma Assert
(Ekind
(Id
) = E_Record_Type
);
5716 end Set_Parent_Subtype
;
5718 procedure Set_Part_Of_Constituents
(Id
: E
; V
: L
) is
5720 pragma Assert
(Ekind
(Id
) = E_Abstract_State
);
5722 end Set_Part_Of_Constituents
;
5724 procedure Set_Partial_View_Has_Unknown_Discr
(Id
: E
; V
: B
:= True) is
5726 pragma Assert
(Is_Type
(Id
));
5727 Set_Flag280
(Id
, V
);
5728 end Set_Partial_View_Has_Unknown_Discr
;
5730 procedure Set_Pending_Access_Types
(Id
: E
; V
: L
) is
5732 pragma Assert
(Is_Type
(Id
));
5733 Set_Elist15
(Id
, V
);
5734 end Set_Pending_Access_Types
;
5736 procedure Set_Postconditions_Proc
(Id
: E
; V
: E
) is
5738 pragma Assert
(Ekind_In
(Id
, E_Entry
,
5743 end Set_Postconditions_Proc
;
5745 procedure Set_PPC_Wrapper
(Id
: E
; V
: E
) is
5747 pragma Assert
(Ekind_In
(Id
, E_Entry
, E_Entry_Family
));
5749 end Set_PPC_Wrapper
;
5751 procedure Set_Direct_Primitive_Operations
(Id
: E
; V
: L
) is
5753 pragma Assert
(Is_Tagged_Type
(Id
));
5754 Set_Elist10
(Id
, V
);
5755 end Set_Direct_Primitive_Operations
;
5757 procedure Set_Prival
(Id
: E
; V
: E
) is
5759 pragma Assert
(Is_Protected_Component
(Id
));
5763 procedure Set_Prival_Link
(Id
: E
; V
: E
) is
5765 pragma Assert
(Ekind_In
(Id
, E_Constant
, E_Variable
));
5767 end Set_Prival_Link
;
5769 procedure Set_Private_Dependents
(Id
: E
; V
: L
) is
5771 pragma Assert
(Is_Incomplete_Or_Private_Type
(Id
));
5772 Set_Elist18
(Id
, V
);
5773 end Set_Private_Dependents
;
5775 procedure Set_Private_View
(Id
: E
; V
: N
) is
5777 pragma Assert
(Is_Private_Type
(Id
));
5779 end Set_Private_View
;
5781 procedure Set_Protected_Body_Subprogram
(Id
: E
; V
: E
) is
5783 pragma Assert
(Is_Subprogram
(Id
) or else Is_Entry
(Id
));
5785 end Set_Protected_Body_Subprogram
;
5787 procedure Set_Protected_Formal
(Id
: E
; V
: E
) is
5789 pragma Assert
(Is_Formal
(Id
));
5791 end Set_Protected_Formal
;
5793 procedure Set_Protection_Object
(Id
: E
; V
: E
) is
5795 pragma Assert
(Ekind_In
(Id
, E_Entry
,
5800 end Set_Protection_Object
;
5802 procedure Set_Reachable
(Id
: E
; V
: B
:= True) is
5807 procedure Set_Referenced
(Id
: E
; V
: B
:= True) is
5809 Set_Flag156
(Id
, V
);
5812 procedure Set_Referenced_As_LHS
(Id
: E
; V
: B
:= True) is
5815 end Set_Referenced_As_LHS
;
5817 procedure Set_Referenced_As_Out_Parameter
(Id
: E
; V
: B
:= True) is
5819 Set_Flag227
(Id
, V
);
5820 end Set_Referenced_As_Out_Parameter
;
5822 procedure Set_Refinement_Constituents
(Id
: E
; V
: L
) is
5824 pragma Assert
(Ekind
(Id
) = E_Abstract_State
);
5826 end Set_Refinement_Constituents
;
5828 procedure Set_Register_Exception_Call
(Id
: E
; V
: N
) is
5830 pragma Assert
(Ekind
(Id
) = E_Exception
);
5832 end Set_Register_Exception_Call
;
5834 procedure Set_Related_Array_Object
(Id
: E
; V
: E
) is
5836 pragma Assert
(Is_Array_Type
(Id
));
5838 end Set_Related_Array_Object
;
5840 procedure Set_Related_Expression
(Id
: E
; V
: N
) is
5842 pragma Assert
(Ekind
(Id
) in Type_Kind
5843 or else Ekind_In
(Id
, E_Constant
, E_Variable
, E_Void
));
5845 end Set_Related_Expression
;
5847 procedure Set_Related_Instance
(Id
: E
; V
: E
) is
5849 pragma Assert
(Ekind_In
(Id
, E_Package
, E_Package_Body
));
5851 end Set_Related_Instance
;
5853 procedure Set_Related_Type
(Id
: E
; V
: E
) is
5855 pragma Assert
(Ekind_In
(Id
, E_Component
, E_Constant
, E_Variable
));
5857 end Set_Related_Type
;
5859 procedure Set_Relative_Deadline_Variable
(Id
: E
; V
: E
) is
5861 pragma Assert
(Is_Task_Type
(Id
) and then Is_Base_Type
(Id
));
5863 end Set_Relative_Deadline_Variable
;
5865 procedure Set_Renamed_Entity
(Id
: E
; V
: N
) is
5868 end Set_Renamed_Entity
;
5870 procedure Set_Renamed_In_Spec
(Id
: E
; V
: B
:= True) is
5872 pragma Assert
(Ekind
(Id
) = E_Package
);
5873 Set_Flag231
(Id
, V
);
5874 end Set_Renamed_In_Spec
;
5876 procedure Set_Renamed_Object
(Id
: E
; V
: N
) is
5879 end Set_Renamed_Object
;
5881 procedure Set_Renaming_Map
(Id
: E
; V
: U
) is
5884 end Set_Renaming_Map
;
5886 procedure Set_Requires_Overriding
(Id
: E
; V
: B
:= True) is
5888 pragma Assert
(Is_Overloadable
(Id
));
5889 Set_Flag213
(Id
, V
);
5890 end Set_Requires_Overriding
;
5892 procedure Set_Return_Present
(Id
: E
; V
: B
:= True) is
5895 end Set_Return_Present
;
5897 procedure Set_Return_Applies_To
(Id
: E
; V
: N
) is
5900 end Set_Return_Applies_To
;
5902 procedure Set_Returns_By_Ref
(Id
: E
; V
: B
:= True) is
5905 end Set_Returns_By_Ref
;
5907 procedure Set_Returns_Limited_View
(Id
: E
; V
: B
:= True) is
5909 pragma Assert
(Ekind
(Id
) = E_Function
);
5910 Set_Flag134
(Id
, V
);
5911 end Set_Returns_Limited_View
;
5913 procedure Set_Reverse_Bit_Order
(Id
: E
; V
: B
:= True) is
5916 (Is_Record_Type
(Id
) and then Is_Base_Type
(Id
));
5917 Set_Flag164
(Id
, V
);
5918 end Set_Reverse_Bit_Order
;
5920 procedure Set_Reverse_Storage_Order
(Id
: E
; V
: B
:= True) is
5924 and then (Is_Record_Type
(Id
) or else Is_Array_Type
(Id
)));
5926 end Set_Reverse_Storage_Order
;
5928 procedure Set_RM_Size
(Id
: E
; V
: U
) is
5930 pragma Assert
(Is_Type
(Id
));
5934 procedure Set_Scalar_Range
(Id
: E
; V
: N
) is
5937 end Set_Scalar_Range
;
5939 procedure Set_Scale_Value
(Id
: E
; V
: U
) is
5942 end Set_Scale_Value
;
5944 procedure Set_Scope_Depth_Value
(Id
: E
; V
: U
) is
5946 pragma Assert
(not Is_Record_Type
(Id
));
5948 end Set_Scope_Depth_Value
;
5950 procedure Set_Sec_Stack_Needed_For_Return
(Id
: E
; V
: B
:= True) is
5952 Set_Flag167
(Id
, V
);
5953 end Set_Sec_Stack_Needed_For_Return
;
5955 procedure Set_Shadow_Entities
(Id
: E
; V
: S
) is
5957 pragma Assert
(Ekind_In
(Id
, E_Package
, E_Generic_Package
));
5959 end Set_Shadow_Entities
;
5961 procedure Set_Shared_Var_Procs_Instance
(Id
: E
; V
: E
) is
5963 pragma Assert
(Ekind
(Id
) = E_Variable
);
5965 end Set_Shared_Var_Procs_Instance
;
5967 procedure Set_Size_Check_Code
(Id
: E
; V
: N
) is
5969 pragma Assert
(Ekind_In
(Id
, E_Constant
, E_Variable
));
5971 end Set_Size_Check_Code
;
5973 procedure Set_Size_Depends_On_Discriminant
(Id
: E
; V
: B
:= True) is
5975 Set_Flag177
(Id
, V
);
5976 end Set_Size_Depends_On_Discriminant
;
5978 procedure Set_Size_Known_At_Compile_Time
(Id
: E
; V
: B
:= True) is
5981 end Set_Size_Known_At_Compile_Time
;
5983 procedure Set_Small_Value
(Id
: E
; V
: R
) is
5985 pragma Assert
(Is_Fixed_Point_Type
(Id
));
5986 Set_Ureal21
(Id
, V
);
5987 end Set_Small_Value
;
5989 procedure Set_SPARK_Aux_Pragma
(Id
: E
; V
: N
) is
5992 (Ekind_In
(Id
, E_Generic_Package
, -- package variants
5997 end Set_SPARK_Aux_Pragma
;
5999 procedure Set_SPARK_Aux_Pragma_Inherited
(Id
: E
; V
: B
:= True) is
6002 (Ekind_In
(Id
, E_Generic_Package
, -- package variants
6006 Set_Flag266
(Id
, V
);
6007 end Set_SPARK_Aux_Pragma_Inherited
;
6009 procedure Set_SPARK_Pragma
(Id
: E
; V
: N
) is
6012 (Ekind_In
(Id
, E_Function
, -- subprogram variants
6014 E_Generic_Procedure
,
6018 Ekind_In
(Id
, E_Generic_Package
, -- package variants
6023 end Set_SPARK_Pragma
;
6025 procedure Set_SPARK_Pragma_Inherited
(Id
: E
; V
: B
:= True) is
6028 (Ekind_In
(Id
, E_Function
, -- subprogram variants
6030 E_Generic_Procedure
,
6034 Ekind_In
(Id
, E_Generic_Package
, -- package variants
6038 Set_Flag265
(Id
, V
);
6039 end Set_SPARK_Pragma_Inherited
;
6041 procedure Set_Spec_Entity
(Id
: E
; V
: E
) is
6043 pragma Assert
(Ekind
(Id
) = E_Package_Body
or else Is_Formal
(Id
));
6045 end Set_Spec_Entity
;
6047 procedure Set_SSO_Set_High_By_Default
(Id
: E
; V
: B
:= True) is
6051 and then (Is_Record_Type
(Id
) or else Is_Array_Type
(Id
)));
6052 Set_Flag273
(Id
, V
);
6053 end Set_SSO_Set_High_By_Default
;
6055 procedure Set_SSO_Set_Low_By_Default
(Id
: E
; V
: B
:= True) is
6059 and then (Is_Record_Type
(Id
) or else Is_Array_Type
(Id
)));
6060 Set_Flag272
(Id
, V
);
6061 end Set_SSO_Set_Low_By_Default
;
6063 procedure Set_Static_Discrete_Predicate
(Id
: E
; V
: S
) is
6065 pragma Assert
(Is_Discrete_Type
(Id
) and then Has_Predicates
(Id
));
6067 end Set_Static_Discrete_Predicate
;
6069 procedure Set_Static_Real_Or_String_Predicate
(Id
: E
; V
: N
) is
6071 pragma Assert
((Is_Real_Type
(Id
) or else Is_String_Type
(Id
))
6072 and then Has_Predicates
(Id
));
6074 end Set_Static_Real_Or_String_Predicate
;
6076 procedure Set_Status_Flag_Or_Transient_Decl
(Id
: E
; V
: E
) is
6078 pragma Assert
(Ekind_In
(Id
, E_Constant
, E_Variable
));
6080 end Set_Status_Flag_Or_Transient_Decl
;
6082 procedure Set_Storage_Size_Variable
(Id
: E
; V
: E
) is
6084 pragma Assert
(Is_Access_Type
(Id
) or else Is_Task_Type
(Id
));
6085 pragma Assert
(Id
= Base_Type
(Id
));
6087 end Set_Storage_Size_Variable
;
6089 procedure Set_Static_Elaboration_Desired
(Id
: E
; V
: B
) is
6091 pragma Assert
(Ekind
(Id
) = E_Package
);
6093 end Set_Static_Elaboration_Desired
;
6095 procedure Set_Static_Initialization
(Id
: E
; V
: N
) is
6098 (Ekind
(Id
) = E_Procedure
and then not Is_Dispatching_Operation
(Id
));
6100 end Set_Static_Initialization
;
6102 procedure Set_Stored_Constraint
(Id
: E
; V
: L
) is
6104 pragma Assert
(Nkind
(Id
) in N_Entity
);
6105 Set_Elist23
(Id
, V
);
6106 end Set_Stored_Constraint
;
6108 procedure Set_Stores_Attribute_Old_Prefix
(Id
: E
; V
: B
:= True) is
6110 pragma Assert
(Ekind
(Id
) = E_Constant
);
6111 Set_Flag270
(Id
, V
);
6112 end Set_Stores_Attribute_Old_Prefix
;
6114 procedure Set_Strict_Alignment
(Id
: E
; V
: B
:= True) is
6116 pragma Assert
(Id
= Base_Type
(Id
));
6117 Set_Flag145
(Id
, V
);
6118 end Set_Strict_Alignment
;
6120 procedure Set_String_Literal_Length
(Id
: E
; V
: U
) is
6122 pragma Assert
(Ekind
(Id
) = E_String_Literal_Subtype
);
6124 end Set_String_Literal_Length
;
6126 procedure Set_String_Literal_Low_Bound
(Id
: E
; V
: N
) is
6128 pragma Assert
(Ekind
(Id
) = E_String_Literal_Subtype
);
6130 end Set_String_Literal_Low_Bound
;
6132 procedure Set_Subprograms_For_Type
(Id
: E
; V
: E
) is
6134 pragma Assert
(Is_Type
(Id
) or else Is_Subprogram
(Id
));
6136 end Set_Subprograms_For_Type
;
6138 procedure Set_Subps_Index
(Id
: E
; V
: U
) is
6140 pragma Assert
(Is_Subprogram
(Id
));
6142 end Set_Subps_Index
;
6144 procedure Set_Suppress_Elaboration_Warnings
(Id
: E
; V
: B
:= True) is
6146 Set_Flag148
(Id
, V
);
6147 end Set_Suppress_Elaboration_Warnings
;
6149 procedure Set_Suppress_Initialization
(Id
: E
; V
: B
:= True) is
6151 pragma Assert
(Is_Type
(Id
) or else Ekind
(Id
) = E_Variable
);
6152 Set_Flag105
(Id
, V
);
6153 end Set_Suppress_Initialization
;
6155 procedure Set_Suppress_Style_Checks
(Id
: E
; V
: B
:= True) is
6157 Set_Flag165
(Id
, V
);
6158 end Set_Suppress_Style_Checks
;
6160 procedure Set_Suppress_Value_Tracking_On_Call
(Id
: E
; V
: B
:= True) is
6162 Set_Flag217
(Id
, V
);
6163 end Set_Suppress_Value_Tracking_On_Call
;
6165 procedure Set_Task_Body_Procedure
(Id
: E
; V
: N
) is
6167 pragma Assert
(Ekind
(Id
) in Task_Kind
);
6169 end Set_Task_Body_Procedure
;
6171 procedure Set_Thunk_Entity
(Id
: E
; V
: E
) is
6173 pragma Assert
(Ekind_In
(Id
, E_Function
, E_Procedure
)
6174 and then Is_Thunk
(Id
));
6176 end Set_Thunk_Entity
;
6178 procedure Set_Treat_As_Volatile
(Id
: E
; V
: B
:= True) is
6181 end Set_Treat_As_Volatile
;
6183 procedure Set_Underlying_Full_View
(Id
: E
; V
: E
) is
6185 pragma Assert
(Ekind
(Id
) in Private_Kind
);
6187 end Set_Underlying_Full_View
;
6189 procedure Set_Underlying_Record_View
(Id
: E
; V
: E
) is
6191 pragma Assert
(Ekind
(Id
) = E_Record_Type
);
6193 end Set_Underlying_Record_View
;
6195 procedure Set_Universal_Aliasing
(Id
: E
; V
: B
:= True) is
6197 pragma Assert
(Is_Type
(Id
) and then Is_Base_Type
(Id
));
6198 Set_Flag216
(Id
, V
);
6199 end Set_Universal_Aliasing
;
6201 procedure Set_Unset_Reference
(Id
: E
; V
: N
) is
6204 end Set_Unset_Reference
;
6206 procedure Set_Uplevel_Reference_Noted
(Id
: E
; V
: B
:= True) is
6208 Set_Flag283
(Id
, V
);
6209 end Set_Uplevel_Reference_Noted
;
6211 procedure Set_Uplevel_References
(Id
: E
; V
: L
) is
6213 pragma Assert
(Is_Subprogram
(Id
));
6214 Set_Elist24
(Id
, V
);
6215 end Set_Uplevel_References
;
6217 procedure Set_Used_As_Generic_Actual
(Id
: E
; V
: B
:= True) is
6219 Set_Flag222
(Id
, V
);
6220 end Set_Used_As_Generic_Actual
;
6222 procedure Set_Uses_Lock_Free
(Id
: E
; V
: B
:= True) is
6224 pragma Assert
(Ekind
(Id
) = E_Protected_Type
);
6225 Set_Flag188
(Id
, V
);
6226 end Set_Uses_Lock_Free
;
6228 procedure Set_Uses_Sec_Stack
(Id
: E
; V
: B
:= True) is
6231 end Set_Uses_Sec_Stack
;
6233 procedure Set_Warnings_Off
(Id
: E
; V
: B
:= True) is
6236 end Set_Warnings_Off
;
6238 procedure Set_Warnings_Off_Used
(Id
: E
; V
: B
:= True) is
6240 Set_Flag236
(Id
, V
);
6241 end Set_Warnings_Off_Used
;
6243 procedure Set_Warnings_Off_Used_Unmodified
(Id
: E
; V
: B
:= True) is
6245 Set_Flag237
(Id
, V
);
6246 end Set_Warnings_Off_Used_Unmodified
;
6248 procedure Set_Warnings_Off_Used_Unreferenced
(Id
: E
; V
: B
:= True) is
6250 Set_Flag238
(Id
, V
);
6251 end Set_Warnings_Off_Used_Unreferenced
;
6253 procedure Set_Was_Hidden
(Id
: E
; V
: B
:= True) is
6255 Set_Flag196
(Id
, V
);
6258 procedure Set_Wrapped_Entity
(Id
: E
; V
: E
) is
6260 pragma Assert
(Ekind_In
(Id
, E_Function
, E_Procedure
)
6261 and then Is_Primitive_Wrapper
(Id
));
6263 end Set_Wrapped_Entity
;
6265 -----------------------------------
6266 -- Field Initialization Routines --
6267 -----------------------------------
6269 procedure Init_Alignment
(Id
: E
) is
6271 Set_Uint14
(Id
, Uint_0
);
6274 procedure Init_Alignment
(Id
: E
; V
: Int
) is
6276 Set_Uint14
(Id
, UI_From_Int
(V
));
6279 procedure Init_Component_Bit_Offset
(Id
: E
) is
6281 Set_Uint11
(Id
, No_Uint
);
6282 end Init_Component_Bit_Offset
;
6284 procedure Init_Component_Bit_Offset
(Id
: E
; V
: Int
) is
6286 Set_Uint11
(Id
, UI_From_Int
(V
));
6287 end Init_Component_Bit_Offset
;
6289 procedure Init_Component_Size
(Id
: E
) is
6291 Set_Uint22
(Id
, Uint_0
);
6292 end Init_Component_Size
;
6294 procedure Init_Component_Size
(Id
: E
; V
: Int
) is
6296 Set_Uint22
(Id
, UI_From_Int
(V
));
6297 end Init_Component_Size
;
6299 procedure Init_Digits_Value
(Id
: E
) is
6301 Set_Uint17
(Id
, Uint_0
);
6302 end Init_Digits_Value
;
6304 procedure Init_Digits_Value
(Id
: E
; V
: Int
) is
6306 Set_Uint17
(Id
, UI_From_Int
(V
));
6307 end Init_Digits_Value
;
6309 procedure Init_Esize
(Id
: E
) is
6311 Set_Uint12
(Id
, Uint_0
);
6314 procedure Init_Esize
(Id
: E
; V
: Int
) is
6316 Set_Uint12
(Id
, UI_From_Int
(V
));
6319 procedure Init_Normalized_First_Bit
(Id
: E
) is
6321 Set_Uint8
(Id
, No_Uint
);
6322 end Init_Normalized_First_Bit
;
6324 procedure Init_Normalized_First_Bit
(Id
: E
; V
: Int
) is
6326 Set_Uint8
(Id
, UI_From_Int
(V
));
6327 end Init_Normalized_First_Bit
;
6329 procedure Init_Normalized_Position
(Id
: E
) is
6331 Set_Uint14
(Id
, No_Uint
);
6332 end Init_Normalized_Position
;
6334 procedure Init_Normalized_Position
(Id
: E
; V
: Int
) is
6336 Set_Uint14
(Id
, UI_From_Int
(V
));
6337 end Init_Normalized_Position
;
6339 procedure Init_Normalized_Position_Max
(Id
: E
) is
6341 Set_Uint10
(Id
, No_Uint
);
6342 end Init_Normalized_Position_Max
;
6344 procedure Init_Normalized_Position_Max
(Id
: E
; V
: Int
) is
6346 Set_Uint10
(Id
, UI_From_Int
(V
));
6347 end Init_Normalized_Position_Max
;
6349 procedure Init_RM_Size
(Id
: E
) is
6351 Set_Uint13
(Id
, Uint_0
);
6354 procedure Init_RM_Size
(Id
: E
; V
: Int
) is
6356 Set_Uint13
(Id
, UI_From_Int
(V
));
6359 -----------------------------
6360 -- Init_Component_Location --
6361 -----------------------------
6363 procedure Init_Component_Location
(Id
: E
) is
6365 Set_Uint8
(Id
, No_Uint
); -- Normalized_First_Bit
6366 Set_Uint10
(Id
, No_Uint
); -- Normalized_Position_Max
6367 Set_Uint11
(Id
, No_Uint
); -- Component_Bit_Offset
6368 Set_Uint12
(Id
, Uint_0
); -- Esize
6369 Set_Uint14
(Id
, No_Uint
); -- Normalized_Position
6370 end Init_Component_Location
;
6372 ----------------------------
6373 -- Init_Object_Size_Align --
6374 ----------------------------
6376 procedure Init_Object_Size_Align
(Id
: E
) is
6378 Set_Uint12
(Id
, Uint_0
); -- Esize
6379 Set_Uint14
(Id
, Uint_0
); -- Alignment
6380 end Init_Object_Size_Align
;
6386 procedure Init_Size
(Id
: E
; V
: Int
) is
6388 pragma Assert
(not Is_Object
(Id
));
6389 Set_Uint12
(Id
, UI_From_Int
(V
)); -- Esize
6390 Set_Uint13
(Id
, UI_From_Int
(V
)); -- RM_Size
6393 ---------------------
6394 -- Init_Size_Align --
6395 ---------------------
6397 procedure Init_Size_Align
(Id
: E
) is
6399 pragma Assert
(not Is_Object
(Id
));
6400 Set_Uint12
(Id
, Uint_0
); -- Esize
6401 Set_Uint13
(Id
, Uint_0
); -- RM_Size
6402 Set_Uint14
(Id
, Uint_0
); -- Alignment
6403 end Init_Size_Align
;
6405 ----------------------------------------------
6406 -- Type Representation Attribute Predicates --
6407 ----------------------------------------------
6409 function Known_Alignment
(E
: Entity_Id
) return B
is
6411 return Uint14
(E
) /= Uint_0
6412 and then Uint14
(E
) /= No_Uint
;
6413 end Known_Alignment
;
6415 function Known_Component_Bit_Offset
(E
: Entity_Id
) return B
is
6417 return Uint11
(E
) /= No_Uint
;
6418 end Known_Component_Bit_Offset
;
6420 function Known_Component_Size
(E
: Entity_Id
) return B
is
6422 return Uint22
(Base_Type
(E
)) /= Uint_0
6423 and then Uint22
(Base_Type
(E
)) /= No_Uint
;
6424 end Known_Component_Size
;
6426 function Known_Esize
(E
: Entity_Id
) return B
is
6428 return Uint12
(E
) /= Uint_0
6429 and then Uint12
(E
) /= No_Uint
;
6432 function Known_Normalized_First_Bit
(E
: Entity_Id
) return B
is
6434 return Uint8
(E
) /= No_Uint
;
6435 end Known_Normalized_First_Bit
;
6437 function Known_Normalized_Position
(E
: Entity_Id
) return B
is
6439 return Uint14
(E
) /= No_Uint
;
6440 end Known_Normalized_Position
;
6442 function Known_Normalized_Position_Max
(E
: Entity_Id
) return B
is
6444 return Uint10
(E
) /= No_Uint
;
6445 end Known_Normalized_Position_Max
;
6447 function Known_RM_Size
(E
: Entity_Id
) return B
is
6449 return Uint13
(E
) /= No_Uint
6450 and then (Uint13
(E
) /= Uint_0
6451 or else Is_Discrete_Type
(E
)
6452 or else Is_Fixed_Point_Type
(E
));
6455 function Known_Static_Component_Bit_Offset
(E
: Entity_Id
) return B
is
6457 return Uint11
(E
) /= No_Uint
6458 and then Uint11
(E
) >= Uint_0
;
6459 end Known_Static_Component_Bit_Offset
;
6461 function Known_Static_Component_Size
(E
: Entity_Id
) return B
is
6463 return Uint22
(Base_Type
(E
)) > Uint_0
;
6464 end Known_Static_Component_Size
;
6466 function Known_Static_Esize
(E
: Entity_Id
) return B
is
6468 return Uint12
(E
) > Uint_0
6469 and then not Is_Generic_Type
(E
);
6470 end Known_Static_Esize
;
6472 function Known_Static_Normalized_First_Bit
(E
: Entity_Id
) return B
is
6474 return Uint8
(E
) /= No_Uint
6475 and then Uint8
(E
) >= Uint_0
;
6476 end Known_Static_Normalized_First_Bit
;
6478 function Known_Static_Normalized_Position
(E
: Entity_Id
) return B
is
6480 return Uint14
(E
) /= No_Uint
6481 and then Uint14
(E
) >= Uint_0
;
6482 end Known_Static_Normalized_Position
;
6484 function Known_Static_Normalized_Position_Max
(E
: Entity_Id
) return B
is
6486 return Uint10
(E
) /= No_Uint
6487 and then Uint10
(E
) >= Uint_0
;
6488 end Known_Static_Normalized_Position_Max
;
6490 function Known_Static_RM_Size
(E
: Entity_Id
) return B
is
6492 return (Uint13
(E
) > Uint_0
6493 or else Is_Discrete_Type
(E
)
6494 or else Is_Fixed_Point_Type
(E
))
6495 and then not Is_Generic_Type
(E
);
6496 end Known_Static_RM_Size
;
6498 function Unknown_Alignment
(E
: Entity_Id
) return B
is
6500 return Uint14
(E
) = Uint_0
6501 or else Uint14
(E
) = No_Uint
;
6502 end Unknown_Alignment
;
6504 function Unknown_Component_Bit_Offset
(E
: Entity_Id
) return B
is
6506 return Uint11
(E
) = No_Uint
;
6507 end Unknown_Component_Bit_Offset
;
6509 function Unknown_Component_Size
(E
: Entity_Id
) return B
is
6511 return Uint22
(Base_Type
(E
)) = Uint_0
6513 Uint22
(Base_Type
(E
)) = No_Uint
;
6514 end Unknown_Component_Size
;
6516 function Unknown_Esize
(E
: Entity_Id
) return B
is
6518 return Uint12
(E
) = No_Uint
6520 Uint12
(E
) = Uint_0
;
6523 function Unknown_Normalized_First_Bit
(E
: Entity_Id
) return B
is
6525 return Uint8
(E
) = No_Uint
;
6526 end Unknown_Normalized_First_Bit
;
6528 function Unknown_Normalized_Position
(E
: Entity_Id
) return B
is
6530 return Uint14
(E
) = No_Uint
;
6531 end Unknown_Normalized_Position
;
6533 function Unknown_Normalized_Position_Max
(E
: Entity_Id
) return B
is
6535 return Uint10
(E
) = No_Uint
;
6536 end Unknown_Normalized_Position_Max
;
6538 function Unknown_RM_Size
(E
: Entity_Id
) return B
is
6540 return (Uint13
(E
) = Uint_0
6541 and then not Is_Discrete_Type
(E
)
6542 and then not Is_Fixed_Point_Type
(E
))
6543 or else Uint13
(E
) = No_Uint
;
6544 end Unknown_RM_Size
;
6546 --------------------
6547 -- Address_Clause --
6548 --------------------
6550 function Address_Clause
(Id
: E
) return N
is
6552 return Get_Attribute_Definition_Clause
(Id
, Attribute_Address
);
6559 function Aft_Value
(Id
: E
) return U
is
6561 Delta_Val
: Ureal
:= Delta_Value
(Id
);
6563 while Delta_Val
< Ureal_Tenth
loop
6564 Delta_Val
:= Delta_Val
* Ureal_10
;
6565 Result
:= Result
+ 1;
6568 return UI_From_Int
(Result
);
6571 ----------------------
6572 -- Alignment_Clause --
6573 ----------------------
6575 function Alignment_Clause
(Id
: E
) return N
is
6577 return Get_Attribute_Definition_Clause
(Id
, Attribute_Alignment
);
6578 end Alignment_Clause
;
6584 procedure Append_Entity
(Id
: Entity_Id
; V
: Entity_Id
) is
6586 if Last_Entity
(V
) = Empty
then
6587 Set_First_Entity
(Id
=> V
, V
=> Id
);
6589 Set_Next_Entity
(Last_Entity
(V
), Id
);
6592 Set_Next_Entity
(Id
, Empty
);
6594 Set_Last_Entity
(Id
=> V
, V
=> Id
);
6601 function Base_Type
(Id
: E
) return E
is
6603 if Is_Base_Type
(Id
) then
6606 pragma Assert
(Is_Type
(Id
));
6611 -------------------------
6612 -- Component_Alignment --
6613 -------------------------
6615 -- Component Alignment is encoded using two flags, Flag128/129 as
6616 -- follows. Note that both flags False = Align_Default, so that the
6617 -- default initialization of flags to False initializes component
6618 -- alignment to the default value as required.
6620 -- Flag128 Flag129 Value
6621 -- ------- ------- -----
6622 -- False False Calign_Default
6623 -- False True Calign_Component_Size
6624 -- True False Calign_Component_Size_4
6625 -- True True Calign_Storage_Unit
6627 function Component_Alignment
(Id
: E
) return C
is
6628 BT
: constant Node_Id
:= Base_Type
(Id
);
6631 pragma Assert
(Is_Array_Type
(Id
) or else Is_Record_Type
(Id
));
6633 if Flag128
(BT
) then
6634 if Flag129
(BT
) then
6635 return Calign_Storage_Unit
;
6637 return Calign_Component_Size_4
;
6641 if Flag129
(BT
) then
6642 return Calign_Component_Size
;
6644 return Calign_Default
;
6647 end Component_Alignment
;
6649 ----------------------
6650 -- Declaration_Node --
6651 ----------------------
6653 function Declaration_Node
(Id
: E
) return N
is
6657 if Ekind
(Id
) = E_Incomplete_Type
6658 and then Present
(Full_View
(Id
))
6660 P
:= Parent
(Full_View
(Id
));
6666 if Nkind
(P
) /= N_Selected_Component
6667 and then Nkind
(P
) /= N_Expanded_Name
6669 not (Nkind
(P
) = N_Defining_Program_Unit_Name
6670 and then Is_Child_Unit
(Id
))
6677 end Declaration_Node
;
6679 ---------------------------------
6680 -- Default_Init_Cond_Procedure --
6681 ---------------------------------
6683 function Default_Init_Cond_Procedure
(Id
: E
) return E
is
6689 and then (Has_Default_Init_Cond
(Id
)
6690 or Has_Inherited_Default_Init_Cond
(Id
)));
6692 S
:= Subprograms_For_Type
(Id
);
6693 while Present
(S
) loop
6694 if Is_Default_Init_Cond_Procedure
(S
) then
6698 S
:= Subprograms_For_Type
(S
);
6702 end Default_Init_Cond_Procedure
;
6704 ---------------------
6705 -- Designated_Type --
6706 ---------------------
6708 function Designated_Type
(Id
: E
) return E
is
6712 Desig_Type
:= Directly_Designated_Type
(Id
);
6714 if Ekind
(Desig_Type
) = E_Incomplete_Type
6715 and then Present
(Full_View
(Desig_Type
))
6717 return Full_View
(Desig_Type
);
6719 elsif Is_Class_Wide_Type
(Desig_Type
)
6720 and then Ekind
(Etype
(Desig_Type
)) = E_Incomplete_Type
6721 and then Present
(Full_View
(Etype
(Desig_Type
)))
6722 and then Present
(Class_Wide_Type
(Full_View
(Etype
(Desig_Type
))))
6724 return Class_Wide_Type
(Full_View
(Etype
(Desig_Type
)));
6729 end Designated_Type
;
6731 ----------------------
6732 -- Entry_Index_Type --
6733 ----------------------
6735 function Entry_Index_Type
(Id
: E
) return N
is
6737 pragma Assert
(Ekind
(Id
) = E_Entry_Family
);
6738 return Etype
(Discrete_Subtype_Definition
(Parent
(Id
)));
6739 end Entry_Index_Type
;
6741 ---------------------
6742 -- First_Component --
6743 ---------------------
6745 function First_Component
(Id
: E
) return E
is
6750 (Is_Record_Type
(Id
) or else Is_Incomplete_Or_Private_Type
(Id
));
6752 Comp_Id
:= First_Entity
(Id
);
6753 while Present
(Comp_Id
) loop
6754 exit when Ekind
(Comp_Id
) = E_Component
;
6755 Comp_Id
:= Next_Entity
(Comp_Id
);
6759 end First_Component
;
6761 -------------------------------------
6762 -- First_Component_Or_Discriminant --
6763 -------------------------------------
6765 function First_Component_Or_Discriminant
(Id
: E
) return E
is
6770 (Is_Record_Type
(Id
)
6771 or else Is_Incomplete_Or_Private_Type
(Id
)
6772 or else Has_Discriminants
(Id
));
6774 Comp_Id
:= First_Entity
(Id
);
6775 while Present
(Comp_Id
) loop
6776 exit when Ekind_In
(Comp_Id
, E_Component
, E_Discriminant
);
6777 Comp_Id
:= Next_Entity
(Comp_Id
);
6781 end First_Component_Or_Discriminant
;
6787 function First_Formal
(Id
: E
) return E
is
6792 (Is_Generic_Subprogram
(Id
)
6793 or else Is_Overloadable
(Id
)
6794 or else Ekind_In
(Id
, E_Entry_Family
,
6796 E_Subprogram_Type
));
6798 if Ekind
(Id
) = E_Enumeration_Literal
then
6802 Formal
:= First_Entity
(Id
);
6804 -- The first/next entity chain of a generic subprogram contains all
6805 -- generic formal parameters, followed by the formal parameters. Go
6806 -- directly to the parameters by skipping the formal part.
6808 if Is_Generic_Subprogram
(Id
) then
6809 while Present
(Formal
) and then not Is_Formal
(Formal
) loop
6810 Next_Entity
(Formal
);
6814 if Present
(Formal
) and then Is_Formal
(Formal
) then
6822 ------------------------------
6823 -- First_Formal_With_Extras --
6824 ------------------------------
6826 function First_Formal_With_Extras
(Id
: E
) return E
is
6831 (Is_Generic_Subprogram
(Id
)
6832 or else Is_Overloadable
(Id
)
6833 or else Ekind_In
(Id
, E_Entry_Family
,
6835 E_Subprogram_Type
));
6837 if Ekind
(Id
) = E_Enumeration_Literal
then
6841 Formal
:= First_Entity
(Id
);
6843 -- The first/next entity chain of a generic subprogram contains all
6844 -- generic formal parameters, followed by the formal parameters. Go
6845 -- directly to the parameters by skipping the formal part.
6847 if Is_Generic_Subprogram
(Id
) then
6848 while Present
(Formal
) and then not Is_Formal
(Formal
) loop
6849 Next_Entity
(Formal
);
6853 if Present
(Formal
) and then Is_Formal
(Formal
) then
6856 return Extra_Formals
(Id
); -- Empty if no extra formals
6859 end First_Formal_With_Extras
;
6861 -------------------------------------
6862 -- Get_Attribute_Definition_Clause --
6863 -------------------------------------
6865 function Get_Attribute_Definition_Clause
6867 Id
: Attribute_Id
) return Node_Id
6872 N
:= First_Rep_Item
(E
);
6873 while Present
(N
) loop
6874 if Nkind
(N
) = N_Attribute_Definition_Clause
6875 and then Get_Attribute_Id
(Chars
(N
)) = Id
6884 end Get_Attribute_Definition_Clause
;
6890 function Get_Full_View
(T
: Entity_Id
) return Entity_Id
is
6892 if Ekind
(T
) = E_Incomplete_Type
and then Present
(Full_View
(T
)) then
6893 return Full_View
(T
);
6895 elsif Is_Class_Wide_Type
(T
)
6896 and then Ekind
(Root_Type
(T
)) = E_Incomplete_Type
6897 and then Present
(Full_View
(Root_Type
(T
)))
6899 return Class_Wide_Type
(Full_View
(Root_Type
(T
)));
6910 function Get_Pragma
(E
: Entity_Id
; Id
: Pragma_Id
) return Node_Id
is
6911 Is_CDG
: constant Boolean :=
6912 Id
= Pragma_Abstract_State
or else
6913 Id
= Pragma_Async_Readers
or else
6914 Id
= Pragma_Async_Writers
or else
6915 Id
= Pragma_Depends
or else
6916 Id
= Pragma_Effective_Reads
or else
6917 Id
= Pragma_Effective_Writes
or else
6918 Id
= Pragma_Extensions_Visible
or else
6919 Id
= Pragma_Global
or else
6920 Id
= Pragma_Initial_Condition
or else
6921 Id
= Pragma_Initializes
or else
6922 Id
= Pragma_Part_Of
or else
6923 Id
= Pragma_Refined_Depends
or else
6924 Id
= Pragma_Refined_Global
or else
6925 Id
= Pragma_Refined_State
;
6926 Is_CTC
: constant Boolean :=
6927 Id
= Pragma_Contract_Cases
or else
6928 Id
= Pragma_Test_Case
;
6929 Is_PPC
: constant Boolean :=
6930 Id
= Pragma_Precondition
or else
6931 Id
= Pragma_Postcondition
or else
6932 Id
= Pragma_Refined_Post
;
6934 In_Contract
: constant Boolean := Is_CDG
or Is_CTC
or Is_PPC
;
6940 -- Handle pragmas that appear in N_Contract nodes. Those have to be
6941 -- extracted from their specialized list.
6944 Items
:= Contract
(E
);
6950 Item
:= Classifications
(Items
);
6953 Item
:= Contract_Test_Cases
(Items
);
6956 Item
:= Pre_Post_Conditions
(Items
);
6962 Item
:= First_Rep_Item
(E
);
6965 while Present
(Item
) loop
6966 if Nkind
(Item
) = N_Pragma
6967 and then Get_Pragma_Id
(Pragma_Name
(Item
)) = Id
6971 -- All nodes in N_Contract are chained using Next_Pragma
6973 elsif In_Contract
then
6974 Item
:= Next_Pragma
(Item
);
6979 Next_Rep_Item
(Item
);
6986 --------------------------------------
6987 -- Get_Record_Representation_Clause --
6988 --------------------------------------
6990 function Get_Record_Representation_Clause
(E
: Entity_Id
) return Node_Id
is
6994 N
:= First_Rep_Item
(E
);
6995 while Present
(N
) loop
6996 if Nkind
(N
) = N_Record_Representation_Clause
then
7004 end Get_Record_Representation_Clause
;
7006 ------------------------
7007 -- Has_Attach_Handler --
7008 ------------------------
7010 function Has_Attach_Handler
(Id
: E
) return B
is
7014 pragma Assert
(Is_Protected_Type
(Id
));
7016 Ritem
:= First_Rep_Item
(Id
);
7017 while Present
(Ritem
) loop
7018 if Nkind
(Ritem
) = N_Pragma
7019 and then Pragma_Name
(Ritem
) = Name_Attach_Handler
7023 Next_Rep_Item
(Ritem
);
7028 end Has_Attach_Handler
;
7034 function Has_Entries
(Id
: E
) return B
is
7038 pragma Assert
(Is_Concurrent_Type
(Id
));
7040 Ent
:= First_Entity
(Id
);
7041 while Present
(Ent
) loop
7042 if Is_Entry
(Ent
) then
7046 Ent
:= Next_Entity
(Ent
);
7052 ----------------------------
7053 -- Has_Foreign_Convention --
7054 ----------------------------
7056 function Has_Foreign_Convention
(Id
: E
) return B
is
7058 -- While regular Intrinsics such as the Standard operators fit in the
7059 -- "Ada" convention, those with an Interface_Name materialize GCC
7060 -- builtin imports for which Ada special treatments shouldn't apply.
7062 return Convention
(Id
) in Foreign_Convention
7063 or else (Convention
(Id
) = Convention_Intrinsic
7064 and then Present
(Interface_Name
(Id
)));
7065 end Has_Foreign_Convention
;
7067 ---------------------------
7068 -- Has_Interrupt_Handler --
7069 ---------------------------
7071 function Has_Interrupt_Handler
(Id
: E
) return B
is
7075 pragma Assert
(Is_Protected_Type
(Id
));
7077 Ritem
:= First_Rep_Item
(Id
);
7078 while Present
(Ritem
) loop
7079 if Nkind
(Ritem
) = N_Pragma
7080 and then Pragma_Name
(Ritem
) = Name_Interrupt_Handler
7084 Next_Rep_Item
(Ritem
);
7089 end Has_Interrupt_Handler
;
7091 -----------------------------
7092 -- Has_Non_Null_Refinement --
7093 -----------------------------
7095 function Has_Non_Null_Refinement
(Id
: E
) return B
is
7097 -- "Refinement" is a concept applicable only to abstract states
7099 pragma Assert
(Ekind
(Id
) = E_Abstract_State
);
7101 if Has_Visible_Refinement
(Id
) then
7102 pragma Assert
(Present
(Refinement_Constituents
(Id
)));
7104 -- For a refinement to be non-null, the first constituent must be
7105 -- anything other than null.
7108 Nkind
(Node
(First_Elmt
(Refinement_Constituents
(Id
)))) /= N_Null
;
7112 end Has_Non_Null_Refinement
;
7114 -----------------------------
7115 -- Has_Null_Abstract_State --
7116 -----------------------------
7118 function Has_Null_Abstract_State
(Id
: E
) return B
is
7120 pragma Assert
(Ekind_In
(Id
, E_Generic_Package
, E_Package
));
7123 Present
(Abstract_States
(Id
))
7124 and then Is_Null_State
(Node
(First_Elmt
(Abstract_States
(Id
))));
7125 end Has_Null_Abstract_State
;
7127 -------------------------
7128 -- Has_Null_Refinement --
7129 -------------------------
7131 function Has_Null_Refinement
(Id
: E
) return B
is
7133 -- "Refinement" is a concept applicable only to abstract states
7135 pragma Assert
(Ekind
(Id
) = E_Abstract_State
);
7137 if Has_Visible_Refinement
(Id
) then
7138 pragma Assert
(Present
(Refinement_Constituents
(Id
)));
7140 -- For a refinement to be null, the state's sole constituent must be
7144 Nkind
(Node
(First_Elmt
(Refinement_Constituents
(Id
)))) = N_Null
;
7148 end Has_Null_Refinement
;
7150 --------------------
7151 -- Has_Unmodified --
7152 --------------------
7154 function Has_Unmodified
(E
: Entity_Id
) return Boolean is
7156 if Has_Pragma_Unmodified
(E
) then
7158 elsif Warnings_Off
(E
) then
7159 Set_Warnings_Off_Used_Unmodified
(E
);
7166 ---------------------
7167 -- Has_Unreferenced --
7168 ---------------------
7170 function Has_Unreferenced
(E
: Entity_Id
) return Boolean is
7172 if Has_Pragma_Unreferenced
(E
) then
7174 elsif Warnings_Off
(E
) then
7175 Set_Warnings_Off_Used_Unreferenced
(E
);
7180 end Has_Unreferenced
;
7182 ----------------------
7183 -- Has_Warnings_Off --
7184 ----------------------
7186 function Has_Warnings_Off
(E
: Entity_Id
) return Boolean is
7188 if Warnings_Off
(E
) then
7189 Set_Warnings_Off_Used
(E
);
7194 end Has_Warnings_Off
;
7196 ------------------------------
7197 -- Implementation_Base_Type --
7198 ------------------------------
7200 function Implementation_Base_Type
(Id
: E
) return E
is
7205 Bastyp
:= Base_Type
(Id
);
7207 if Is_Incomplete_Or_Private_Type
(Bastyp
) then
7208 Imptyp
:= Underlying_Type
(Bastyp
);
7210 -- If we have an implementation type, then just return it,
7211 -- otherwise we return the Base_Type anyway. This can only
7212 -- happen in error situations and should avoid some error bombs.
7214 if Present
(Imptyp
) then
7215 return Base_Type
(Imptyp
);
7223 end Implementation_Base_Type
;
7225 -------------------------
7226 -- Invariant_Procedure --
7227 -------------------------
7229 function Invariant_Procedure
(Id
: E
) return E
is
7233 pragma Assert
(Is_Type
(Id
) and then Has_Invariants
(Id
));
7235 if No
(Subprograms_For_Type
(Id
)) then
7239 S
:= Subprograms_For_Type
(Id
);
7240 while Present
(S
) loop
7241 if Is_Invariant_Procedure
(S
) then
7244 S
:= Subprograms_For_Type
(S
);
7250 end Invariant_Procedure
;
7256 -- Global flag table allowing rapid computation of this function
7258 Entity_Is_Base_Type
: constant array (Entity_Kind
) of Boolean :=
7259 (E_Enumeration_Subtype |
7261 E_Signed_Integer_Subtype |
7262 E_Modular_Integer_Subtype |
7263 E_Floating_Point_Subtype |
7264 E_Ordinary_Fixed_Point_Subtype |
7265 E_Decimal_Fixed_Point_Subtype |
7270 E_Record_Subtype_With_Private |
7271 E_Limited_Private_Subtype |
7273 E_Protected_Subtype |
7275 E_String_Literal_Subtype |
7276 E_Class_Wide_Subtype
=> False,
7279 function Is_Base_Type
(Id
: E
) return Boolean is
7281 return Entity_Is_Base_Type
(Ekind
(Id
));
7284 ---------------------
7285 -- Is_Boolean_Type --
7286 ---------------------
7288 function Is_Boolean_Type
(Id
: E
) return B
is
7290 return Root_Type
(Id
) = Standard_Boolean
;
7291 end Is_Boolean_Type
;
7293 ------------------------
7294 -- Is_Constant_Object --
7295 ------------------------
7297 function Is_Constant_Object
(Id
: E
) return B
is
7298 K
: constant Entity_Kind
:= Ekind
(Id
);
7301 K
= E_Constant
or else K
= E_In_Parameter
or else K
= E_Loop_Parameter
;
7302 end Is_Constant_Object
;
7304 --------------------
7305 -- Is_Discriminal --
7306 --------------------
7308 function Is_Discriminal
(Id
: E
) return B
is
7310 return (Ekind_In
(Id
, E_Constant
, E_In_Parameter
)
7311 and then Present
(Discriminal_Link
(Id
)));
7314 ----------------------
7315 -- Is_Dynamic_Scope --
7316 ----------------------
7318 function Is_Dynamic_Scope
(Id
: E
) return B
is
7321 Ekind
(Id
) = E_Block
7323 Ekind
(Id
) = E_Function
7325 Ekind
(Id
) = E_Procedure
7327 Ekind
(Id
) = E_Subprogram_Body
7329 Ekind
(Id
) = E_Task_Type
7331 (Ekind
(Id
) = E_Limited_Private_Type
7332 and then Present
(Full_View
(Id
))
7333 and then Ekind
(Full_View
(Id
)) = E_Task_Type
)
7335 Ekind
(Id
) = E_Entry
7337 Ekind
(Id
) = E_Entry_Family
7339 Ekind
(Id
) = E_Return_Statement
;
7340 end Is_Dynamic_Scope
;
7342 --------------------
7343 -- Is_Entity_Name --
7344 --------------------
7346 function Is_Entity_Name
(N
: Node_Id
) return Boolean is
7347 Kind
: constant Node_Kind
:= Nkind
(N
);
7350 -- Identifiers, operator symbols, expanded names are entity names
7352 return Kind
= N_Identifier
7353 or else Kind
= N_Operator_Symbol
7354 or else Kind
= N_Expanded_Name
7356 -- Attribute references are entity names if they refer to an entity.
7357 -- Note that we don't do this by testing for the presence of the
7358 -- Entity field in the N_Attribute_Reference node, since it may not
7359 -- have been set yet.
7361 or else (Kind
= N_Attribute_Reference
7362 and then Is_Entity_Attribute_Name
(Attribute_Name
(N
)));
7365 -----------------------
7366 -- Is_External_State --
7367 -----------------------
7369 function Is_External_State
(Id
: E
) return B
is
7372 Ekind
(Id
) = E_Abstract_State
and then Has_Option
(Id
, Name_External
);
7373 end Is_External_State
;
7379 function Is_Finalizer
(Id
: E
) return B
is
7381 return Ekind
(Id
) = E_Procedure
and then Chars
(Id
) = Name_uFinalizer
;
7388 function Is_Null_State
(Id
: E
) return B
is
7391 Ekind
(Id
) = E_Abstract_State
and then Nkind
(Parent
(Id
)) = N_Null
;
7394 ---------------------
7395 -- Is_Packed_Array --
7396 ---------------------
7398 function Is_Packed_Array
(Id
: E
) return B
is
7400 return Is_Array_Type
(Id
) and then Is_Packed
(Id
);
7401 end Is_Packed_Array
;
7403 -----------------------------------
7404 -- Is_Package_Or_Generic_Package --
7405 -----------------------------------
7407 function Is_Package_Or_Generic_Package
(Id
: E
) return B
is
7409 return Ekind_In
(Id
, E_Generic_Package
, E_Package
);
7410 end Is_Package_Or_Generic_Package
;
7416 function Is_Prival
(Id
: E
) return B
is
7418 return (Ekind_In
(Id
, E_Constant
, E_Variable
)
7419 and then Present
(Prival_Link
(Id
)));
7422 ----------------------------
7423 -- Is_Protected_Component --
7424 ----------------------------
7426 function Is_Protected_Component
(Id
: E
) return B
is
7428 return Ekind
(Id
) = E_Component
and then Is_Protected_Type
(Scope
(Id
));
7429 end Is_Protected_Component
;
7431 ----------------------------
7432 -- Is_Protected_Interface --
7433 ----------------------------
7435 function Is_Protected_Interface
(Id
: E
) return B
is
7436 Typ
: constant Entity_Id
:= Base_Type
(Id
);
7438 if not Is_Interface
(Typ
) then
7440 elsif Is_Class_Wide_Type
(Typ
) then
7441 return Is_Protected_Interface
(Etype
(Typ
));
7443 return Protected_Present
(Type_Definition
(Parent
(Typ
)));
7445 end Is_Protected_Interface
;
7447 ------------------------------
7448 -- Is_Protected_Record_Type --
7449 ------------------------------
7451 function Is_Protected_Record_Type
(Id
: E
) return B
is
7454 Is_Concurrent_Record_Type
(Id
)
7455 and then Is_Protected_Type
(Corresponding_Concurrent_Type
(Id
));
7456 end Is_Protected_Record_Type
;
7458 --------------------------------
7459 -- Is_Standard_Character_Type --
7460 --------------------------------
7462 function Is_Standard_Character_Type
(Id
: E
) return B
is
7464 if Is_Type
(Id
) then
7466 R
: constant Entity_Id
:= Root_Type
(Id
);
7469 R
= Standard_Character
7471 R
= Standard_Wide_Character
7473 R
= Standard_Wide_Wide_Character
;
7479 end Is_Standard_Character_Type
;
7481 -----------------------------
7482 -- Is_Standard_String_Type --
7483 -----------------------------
7485 function Is_Standard_String_Type
(Id
: E
) return B
is
7487 if Is_Type
(Id
) then
7489 R
: constant Entity_Id
:= Root_Type
(Id
);
7494 R
= Standard_Wide_String
7496 R
= Standard_Wide_Wide_String
;
7502 end Is_Standard_String_Type
;
7504 --------------------
7505 -- Is_String_Type --
7506 --------------------
7508 function Is_String_Type
(Id
: E
) return B
is
7510 return Is_Array_Type
(Id
)
7511 and then Id
/= Any_Composite
7512 and then Number_Dimensions
(Id
) = 1
7513 and then Is_Character_Type
(Component_Type
(Id
));
7516 -------------------------------
7517 -- Is_Synchronized_Interface --
7518 -------------------------------
7520 function Is_Synchronized_Interface
(Id
: E
) return B
is
7521 Typ
: constant Entity_Id
:= Base_Type
(Id
);
7524 if not Is_Interface
(Typ
) then
7527 elsif Is_Class_Wide_Type
(Typ
) then
7528 return Is_Synchronized_Interface
(Etype
(Typ
));
7531 return Protected_Present
(Type_Definition
(Parent
(Typ
)))
7532 or else Synchronized_Present
(Type_Definition
(Parent
(Typ
)))
7533 or else Task_Present
(Type_Definition
(Parent
(Typ
)));
7535 end Is_Synchronized_Interface
;
7537 -----------------------
7538 -- Is_Task_Interface --
7539 -----------------------
7541 function Is_Task_Interface
(Id
: E
) return B
is
7542 Typ
: constant Entity_Id
:= Base_Type
(Id
);
7544 if not Is_Interface
(Typ
) then
7546 elsif Is_Class_Wide_Type
(Typ
) then
7547 return Is_Task_Interface
(Etype
(Typ
));
7549 return Task_Present
(Type_Definition
(Parent
(Typ
)));
7551 end Is_Task_Interface
;
7553 -------------------------
7554 -- Is_Task_Record_Type --
7555 -------------------------
7557 function Is_Task_Record_Type
(Id
: E
) return B
is
7560 Is_Concurrent_Record_Type
(Id
)
7561 and then Is_Task_Type
(Corresponding_Concurrent_Type
(Id
));
7562 end Is_Task_Record_Type
;
7564 ------------------------
7565 -- Is_Wrapper_Package --
7566 ------------------------
7568 function Is_Wrapper_Package
(Id
: E
) return B
is
7570 return (Ekind
(Id
) = E_Package
and then Present
(Related_Instance
(Id
)));
7571 end Is_Wrapper_Package
;
7577 function Last_Formal
(Id
: E
) return E
is
7582 (Is_Overloadable
(Id
)
7583 or else Ekind_In
(Id
, E_Entry_Family
,
7585 E_Subprogram_Type
));
7587 if Ekind
(Id
) = E_Enumeration_Literal
then
7591 Formal
:= First_Formal
(Id
);
7593 if Present
(Formal
) then
7594 while Present
(Next_Formal
(Formal
)) loop
7595 Formal
:= Next_Formal
(Formal
);
7603 function Model_Emin_Value
(Id
: E
) return Uint
is
7605 return Machine_Emin_Value
(Id
);
7606 end Model_Emin_Value
;
7608 -------------------------
7609 -- Model_Epsilon_Value --
7610 -------------------------
7612 function Model_Epsilon_Value
(Id
: E
) return Ureal
is
7613 Radix
: constant Ureal
:= UR_From_Uint
(Machine_Radix_Value
(Id
));
7615 return Radix
** (1 - Model_Mantissa_Value
(Id
));
7616 end Model_Epsilon_Value
;
7618 --------------------------
7619 -- Model_Mantissa_Value --
7620 --------------------------
7622 function Model_Mantissa_Value
(Id
: E
) return Uint
is
7624 return Machine_Mantissa_Value
(Id
);
7625 end Model_Mantissa_Value
;
7627 -----------------------
7628 -- Model_Small_Value --
7629 -----------------------
7631 function Model_Small_Value
(Id
: E
) return Ureal
is
7632 Radix
: constant Ureal
:= UR_From_Uint
(Machine_Radix_Value
(Id
));
7634 return Radix
** (Model_Emin_Value
(Id
) - 1);
7635 end Model_Small_Value
;
7637 ------------------------
7638 -- Machine_Emax_Value --
7639 ------------------------
7641 function Machine_Emax_Value
(Id
: E
) return Uint
is
7642 Digs
: constant Pos
:= UI_To_Int
(Digits_Value
(Base_Type
(Id
)));
7645 case Float_Rep
(Id
) is
7648 when 1 .. 6 => return Uint_128
;
7649 when 7 .. 15 => return 2**10;
7650 when 16 .. 33 => return 2**14;
7651 when others => return No_Uint
;
7655 return Uint_2
** Uint_7
- Uint_1
;
7657 end Machine_Emax_Value
;
7659 ------------------------
7660 -- Machine_Emin_Value --
7661 ------------------------
7663 function Machine_Emin_Value
(Id
: E
) return Uint
is
7665 case Float_Rep
(Id
) is
7666 when IEEE_Binary
=> return Uint_3
- Machine_Emax_Value
(Id
);
7667 when AAMP
=> return -Machine_Emax_Value
(Id
);
7669 end Machine_Emin_Value
;
7671 ----------------------------
7672 -- Machine_Mantissa_Value --
7673 ----------------------------
7675 function Machine_Mantissa_Value
(Id
: E
) return Uint
is
7676 Digs
: constant Pos
:= UI_To_Int
(Digits_Value
(Base_Type
(Id
)));
7679 case Float_Rep
(Id
) is
7682 when 1 .. 6 => return Uint_24
;
7683 when 7 .. 15 => return UI_From_Int
(53);
7684 when 16 .. 18 => return Uint_64
;
7685 when 19 .. 33 => return UI_From_Int
(113);
7686 when others => return No_Uint
;
7691 when 1 .. 6 => return Uint_24
;
7692 when 7 .. 9 => return UI_From_Int
(40);
7693 when others => return No_Uint
;
7696 end Machine_Mantissa_Value
;
7698 -------------------------
7699 -- Machine_Radix_Value --
7700 -------------------------
7702 function Machine_Radix_Value
(Id
: E
) return U
is
7704 case Float_Rep
(Id
) is
7705 when IEEE_Binary | AAMP
=>
7708 end Machine_Radix_Value
;
7710 --------------------
7711 -- Next_Component --
7712 --------------------
7714 function Next_Component
(Id
: E
) return E
is
7718 Comp_Id
:= Next_Entity
(Id
);
7719 while Present
(Comp_Id
) loop
7720 exit when Ekind
(Comp_Id
) = E_Component
;
7721 Comp_Id
:= Next_Entity
(Comp_Id
);
7727 ------------------------------------
7728 -- Next_Component_Or_Discriminant --
7729 ------------------------------------
7731 function Next_Component_Or_Discriminant
(Id
: E
) return E
is
7735 Comp_Id
:= Next_Entity
(Id
);
7736 while Present
(Comp_Id
) loop
7737 exit when Ekind_In
(Comp_Id
, E_Component
, E_Discriminant
);
7738 Comp_Id
:= Next_Entity
(Comp_Id
);
7742 end Next_Component_Or_Discriminant
;
7744 -----------------------
7745 -- Next_Discriminant --
7746 -----------------------
7748 -- This function actually implements both Next_Discriminant and
7749 -- Next_Stored_Discriminant by making sure that the Discriminant
7750 -- returned is of the same variety as Id.
7752 function Next_Discriminant
(Id
: E
) return E
is
7754 -- Derived Tagged types with private extensions look like this...
7756 -- E_Discriminant d1
7757 -- E_Discriminant d2
7759 -- E_Discriminant d1
7760 -- E_Discriminant d2
7763 -- so it is critical not to go past the leading discriminants
7768 pragma Assert
(Ekind
(Id
) = E_Discriminant
);
7771 D
:= Next_Entity
(D
);
7773 or else (Ekind
(D
) /= E_Discriminant
7774 and then not Is_Itype
(D
))
7779 exit when Ekind
(D
) = E_Discriminant
7780 and then (Is_Completely_Hidden
(D
) = Is_Completely_Hidden
(Id
));
7784 end Next_Discriminant
;
7790 function Next_Formal
(Id
: E
) return E
is
7794 -- Follow the chain of declared entities as long as the kind of the
7795 -- entity corresponds to a formal parameter. Skip internal entities
7796 -- that may have been created for implicit subtypes, in the process
7797 -- of analyzing default expressions.
7803 if No
(P
) or else Is_Formal
(P
) then
7805 elsif not Is_Internal
(P
) then
7811 -----------------------------
7812 -- Next_Formal_With_Extras --
7813 -----------------------------
7815 function Next_Formal_With_Extras
(Id
: E
) return E
is
7817 if Present
(Extra_Formal
(Id
)) then
7818 return Extra_Formal
(Id
);
7820 return Next_Formal
(Id
);
7822 end Next_Formal_With_Extras
;
7828 function Next_Index
(Id
: Node_Id
) return Node_Id
is
7837 function Next_Literal
(Id
: E
) return E
is
7839 pragma Assert
(Nkind
(Id
) in N_Entity
);
7843 ------------------------------
7844 -- Next_Stored_Discriminant --
7845 ------------------------------
7847 function Next_Stored_Discriminant
(Id
: E
) return E
is
7849 -- See comment in Next_Discriminant
7851 return Next_Discriminant
(Id
);
7852 end Next_Stored_Discriminant
;
7854 -----------------------
7855 -- Number_Dimensions --
7856 -----------------------
7858 function Number_Dimensions
(Id
: E
) return Pos
is
7863 if Ekind
(Id
) = E_String_Literal_Subtype
then
7868 T
:= First_Index
(Id
);
7869 while Present
(T
) loop
7876 end Number_Dimensions
;
7878 --------------------
7879 -- Number_Entries --
7880 --------------------
7882 function Number_Entries
(Id
: E
) return Nat
is
7887 pragma Assert
(Is_Concurrent_Type
(Id
));
7890 Ent
:= First_Entity
(Id
);
7891 while Present
(Ent
) loop
7892 if Is_Entry
(Ent
) then
7896 Ent
:= Next_Entity
(Ent
);
7902 --------------------
7903 -- Number_Formals --
7904 --------------------
7906 function Number_Formals
(Id
: E
) return Pos
is
7912 Formal
:= First_Formal
(Id
);
7913 while Present
(Formal
) loop
7915 Formal
:= Next_Formal
(Formal
);
7921 --------------------
7922 -- Parameter_Mode --
7923 --------------------
7925 function Parameter_Mode
(Id
: E
) return Formal_Kind
is
7930 ------------------------
7931 -- Predicate_Function --
7932 ------------------------
7934 function Predicate_Function
(Id
: E
) return E
is
7939 pragma Assert
(Is_Type
(Id
));
7941 -- If type is private and has a completion, predicate may be defined
7942 -- on the full view.
7944 if Is_Private_Type
(Id
) and then Present
(Full_View
(Id
)) then
7945 T
:= Full_View
(Id
);
7950 if No
(Subprograms_For_Type
(T
)) then
7954 S
:= Subprograms_For_Type
(T
);
7955 while Present
(S
) loop
7956 if Is_Predicate_Function
(S
) then
7959 S
:= Subprograms_For_Type
(S
);
7965 end Predicate_Function
;
7967 --------------------------
7968 -- Predicate_Function_M --
7969 --------------------------
7971 function Predicate_Function_M
(Id
: E
) return E
is
7976 pragma Assert
(Is_Type
(Id
));
7978 -- If type is private and has a completion, predicate may be defined
7979 -- on the full view.
7981 if Is_Private_Type
(Id
) and then Present
(Full_View
(Id
)) then
7982 T
:= Full_View
(Id
);
7987 if No
(Subprograms_For_Type
(T
)) then
7991 S
:= Subprograms_For_Type
(T
);
7992 while Present
(S
) loop
7993 if Is_Predicate_Function_M
(S
) then
7996 S
:= Subprograms_For_Type
(S
);
8002 end Predicate_Function_M
;
8004 -------------------------
8005 -- Present_In_Rep_Item --
8006 -------------------------
8008 function Present_In_Rep_Item
(E
: Entity_Id
; N
: Node_Id
) return Boolean is
8012 Ritem
:= First_Rep_Item
(E
);
8014 while Present
(Ritem
) loop
8019 Next_Rep_Item
(Ritem
);
8023 end Present_In_Rep_Item
;
8025 --------------------------
8026 -- Primitive_Operations --
8027 --------------------------
8029 function Primitive_Operations
(Id
: E
) return L
is
8031 if Is_Concurrent_Type
(Id
) then
8032 if Present
(Corresponding_Record_Type
(Id
)) then
8033 return Direct_Primitive_Operations
8034 (Corresponding_Record_Type
(Id
));
8036 -- If expansion is disabled the corresponding record type is absent,
8037 -- but if the type has ancestors it may have primitive operations.
8039 elsif Is_Tagged_Type
(Id
) then
8040 return Direct_Primitive_Operations
(Id
);
8046 return Direct_Primitive_Operations
(Id
);
8048 end Primitive_Operations
;
8050 ---------------------
8051 -- Record_Rep_Item --
8052 ---------------------
8054 procedure Record_Rep_Item
(E
: Entity_Id
; N
: Node_Id
) is
8056 Set_Next_Rep_Item
(N
, First_Rep_Item
(E
));
8057 Set_First_Rep_Item
(E
, N
);
8058 end Record_Rep_Item
;
8064 function Root_Type
(Id
: E
) return E
is
8068 pragma Assert
(Nkind
(Id
) in N_Entity
);
8070 T
:= Base_Type
(Id
);
8072 if Ekind
(T
) = E_Class_Wide_Type
then
8084 -- Following test catches some error cases resulting from
8087 elsif No
(Etyp
) then
8088 Check_Error_Detected
;
8091 elsif Is_Private_Type
(T
) and then Etyp
= Full_View
(T
) then
8094 elsif Is_Private_Type
(Etyp
) and then Full_View
(Etyp
) = T
then
8100 -- Return if there is a circularity in the inheritance chain. This
8101 -- happens in some error situations and we do not want to get
8102 -- stuck in this loop.
8104 if T
= Base_Type
(Id
) then
8111 ---------------------
8112 -- Safe_Emax_Value --
8113 ---------------------
8115 function Safe_Emax_Value
(Id
: E
) return Uint
is
8117 return Machine_Emax_Value
(Id
);
8118 end Safe_Emax_Value
;
8120 ----------------------
8121 -- Safe_First_Value --
8122 ----------------------
8124 function Safe_First_Value
(Id
: E
) return Ureal
is
8126 return -Safe_Last_Value
(Id
);
8127 end Safe_First_Value
;
8129 ---------------------
8130 -- Safe_Last_Value --
8131 ---------------------
8133 function Safe_Last_Value
(Id
: E
) return Ureal
is
8134 Radix
: constant Uint
:= Machine_Radix_Value
(Id
);
8135 Mantissa
: constant Uint
:= Machine_Mantissa_Value
(Id
);
8136 Emax
: constant Uint
:= Safe_Emax_Value
(Id
);
8137 Significand
: constant Uint
:= Radix
** Mantissa
- 1;
8138 Exponent
: constant Uint
:= Emax
- Mantissa
;
8144 (Num
=> Significand
* 2 ** (Exponent
mod 4),
8145 Den
=> -Exponent
/ 4,
8150 (Num
=> Significand
,
8154 end Safe_Last_Value
;
8160 function Scope_Depth
(Id
: E
) return Uint
is
8165 while Is_Record_Type
(Scop
) loop
8166 Scop
:= Scope
(Scop
);
8169 return Scope_Depth_Value
(Scop
);
8172 ---------------------
8173 -- Scope_Depth_Set --
8174 ---------------------
8176 function Scope_Depth_Set
(Id
: E
) return B
is
8178 return not Is_Record_Type
(Id
)
8179 and then Field22
(Id
) /= Union_Id
(Empty
);
8180 end Scope_Depth_Set
;
8182 -----------------------------
8183 -- Set_Component_Alignment --
8184 -----------------------------
8186 -- Component Alignment is encoded using two flags, Flag128/129 as
8187 -- follows. Note that both flags False = Align_Default, so that the
8188 -- default initialization of flags to False initializes component
8189 -- alignment to the default value as required.
8191 -- Flag128 Flag129 Value
8192 -- ------- ------- -----
8193 -- False False Calign_Default
8194 -- False True Calign_Component_Size
8195 -- True False Calign_Component_Size_4
8196 -- True True Calign_Storage_Unit
8198 procedure Set_Component_Alignment
(Id
: E
; V
: C
) is
8200 pragma Assert
((Is_Array_Type
(Id
) or else Is_Record_Type
(Id
))
8201 and then Is_Base_Type
(Id
));
8204 when Calign_Default
=>
8205 Set_Flag128
(Id
, False);
8206 Set_Flag129
(Id
, False);
8208 when Calign_Component_Size
=>
8209 Set_Flag128
(Id
, False);
8210 Set_Flag129
(Id
, True);
8212 when Calign_Component_Size_4
=>
8213 Set_Flag128
(Id
, True);
8214 Set_Flag129
(Id
, False);
8216 when Calign_Storage_Unit
=>
8217 Set_Flag128
(Id
, True);
8218 Set_Flag129
(Id
, True);
8220 end Set_Component_Alignment
;
8222 -------------------------------------
8223 -- Set_Default_Init_Cond_Procedure --
8224 -------------------------------------
8226 procedure Set_Default_Init_Cond_Procedure
(Id
: E
; V
: E
) is
8231 (Is_Type
(Id
) and then (Has_Default_Init_Cond
(Id
)
8233 Has_Inherited_Default_Init_Cond
(Id
)));
8235 S
:= Subprograms_For_Type
(Id
);
8236 Set_Subprograms_For_Type
(Id
, V
);
8237 Set_Subprograms_For_Type
(V
, S
);
8239 -- Check for a duplicate procedure
8241 while Present
(S
) loop
8242 if Is_Default_Init_Cond_Procedure
(S
) then
8243 raise Program_Error
;
8246 S
:= Subprograms_For_Type
(S
);
8248 end Set_Default_Init_Cond_Procedure
;
8250 -----------------------------
8251 -- Set_Invariant_Procedure --
8252 -----------------------------
8254 procedure Set_Invariant_Procedure
(Id
: E
; V
: E
) is
8258 pragma Assert
(Is_Type
(Id
) and then Has_Invariants
(Id
));
8260 S
:= Subprograms_For_Type
(Id
);
8261 Set_Subprograms_For_Type
(Id
, V
);
8262 Set_Subprograms_For_Type
(V
, S
);
8264 -- Check for duplicate entry
8266 while Present
(S
) loop
8267 if Is_Invariant_Procedure
(S
) then
8268 raise Program_Error
;
8270 S
:= Subprograms_For_Type
(S
);
8273 end Set_Invariant_Procedure
;
8275 ----------------------------
8276 -- Set_Predicate_Function --
8277 ----------------------------
8279 procedure Set_Predicate_Function
(Id
: E
; V
: E
) is
8283 pragma Assert
(Is_Type
(Id
) and then Has_Predicates
(Id
));
8285 S
:= Subprograms_For_Type
(Id
);
8286 Set_Subprograms_For_Type
(Id
, V
);
8287 Set_Subprograms_For_Type
(V
, S
);
8289 while Present
(S
) loop
8290 if Is_Predicate_Function
(S
) then
8291 raise Program_Error
;
8293 S
:= Subprograms_For_Type
(S
);
8296 end Set_Predicate_Function
;
8298 ------------------------------
8299 -- Set_Predicate_Function_M --
8300 ------------------------------
8302 procedure Set_Predicate_Function_M
(Id
: E
; V
: E
) is
8306 pragma Assert
(Is_Type
(Id
) and then Has_Predicates
(Id
));
8308 S
:= Subprograms_For_Type
(Id
);
8309 Set_Subprograms_For_Type
(Id
, V
);
8310 Set_Subprograms_For_Type
(V
, S
);
8312 -- Check for duplicates
8314 while Present
(S
) loop
8315 if Is_Predicate_Function_M
(S
) then
8316 raise Program_Error
;
8318 S
:= Subprograms_For_Type
(S
);
8321 end Set_Predicate_Function_M
;
8327 function Size_Clause
(Id
: E
) return N
is
8329 return Get_Attribute_Definition_Clause
(Id
, Attribute_Size
);
8332 ------------------------
8333 -- Stream_Size_Clause --
8334 ------------------------
8336 function Stream_Size_Clause
(Id
: E
) return N
is
8338 return Get_Attribute_Definition_Clause
(Id
, Attribute_Stream_Size
);
8339 end Stream_Size_Clause
;
8345 function Subtype_Kind
(K
: Entity_Kind
) return Entity_Kind
is
8351 Kind
:= E_Access_Subtype
;
8355 Kind
:= E_Array_Subtype
;
8357 when E_Class_Wide_Type |
8358 E_Class_Wide_Subtype
=>
8359 Kind
:= E_Class_Wide_Subtype
;
8361 when E_Decimal_Fixed_Point_Type |
8362 E_Decimal_Fixed_Point_Subtype
=>
8363 Kind
:= E_Decimal_Fixed_Point_Subtype
;
8365 when E_Ordinary_Fixed_Point_Type |
8366 E_Ordinary_Fixed_Point_Subtype
=>
8367 Kind
:= E_Ordinary_Fixed_Point_Subtype
;
8369 when E_Private_Type |
8370 E_Private_Subtype
=>
8371 Kind
:= E_Private_Subtype
;
8373 when E_Limited_Private_Type |
8374 E_Limited_Private_Subtype
=>
8375 Kind
:= E_Limited_Private_Subtype
;
8377 when E_Record_Type_With_Private |
8378 E_Record_Subtype_With_Private
=>
8379 Kind
:= E_Record_Subtype_With_Private
;
8381 when E_Record_Type |
8383 Kind
:= E_Record_Subtype
;
8385 when Enumeration_Kind
=>
8386 Kind
:= E_Enumeration_Subtype
;
8389 Kind
:= E_Floating_Point_Subtype
;
8391 when Signed_Integer_Kind
=>
8392 Kind
:= E_Signed_Integer_Subtype
;
8394 when Modular_Integer_Kind
=>
8395 Kind
:= E_Modular_Integer_Subtype
;
8397 when Protected_Kind
=>
8398 Kind
:= E_Protected_Subtype
;
8401 Kind
:= E_Task_Subtype
;
8405 raise Program_Error
;
8411 ---------------------
8412 -- Type_High_Bound --
8413 ---------------------
8415 function Type_High_Bound
(Id
: E
) return Node_Id
is
8416 Rng
: constant Node_Id
:= Scalar_Range
(Id
);
8418 if Nkind
(Rng
) = N_Subtype_Indication
then
8419 return High_Bound
(Range_Expression
(Constraint
(Rng
)));
8421 return High_Bound
(Rng
);
8423 end Type_High_Bound
;
8425 --------------------
8426 -- Type_Low_Bound --
8427 --------------------
8429 function Type_Low_Bound
(Id
: E
) return Node_Id
is
8430 Rng
: constant Node_Id
:= Scalar_Range
(Id
);
8432 if Nkind
(Rng
) = N_Subtype_Indication
then
8433 return Low_Bound
(Range_Expression
(Constraint
(Rng
)));
8435 return Low_Bound
(Rng
);
8439 ---------------------
8440 -- Underlying_Type --
8441 ---------------------
8443 function Underlying_Type
(Id
: E
) return E
is
8445 -- For record_with_private the underlying type is always the direct
8446 -- full view. Never try to take the full view of the parent it
8447 -- doesn't make sense.
8449 if Ekind
(Id
) = E_Record_Type_With_Private
then
8450 return Full_View
(Id
);
8452 elsif Ekind
(Id
) in Incomplete_Or_Private_Kind
then
8454 -- If we have an incomplete or private type with a full view,
8455 -- then we return the Underlying_Type of this full view.
8457 if Present
(Full_View
(Id
)) then
8458 if Id
= Full_View
(Id
) then
8460 -- Previous error in declaration
8465 return Underlying_Type
(Full_View
(Id
));
8468 -- If we have a private type with an underlying full view, then we
8469 -- return the Underlying_Type of this underlying full view.
8471 elsif Ekind
(Id
) in Private_Kind
8472 and then Present
(Underlying_Full_View
(Id
))
8474 return Underlying_Type
(Underlying_Full_View
(Id
));
8476 -- If we have an incomplete entity that comes from the limited
8477 -- view then we return the Underlying_Type of its non-limited
8480 elsif From_Limited_With
(Id
)
8481 and then Present
(Non_Limited_View
(Id
))
8483 return Underlying_Type
(Non_Limited_View
(Id
));
8485 -- Otherwise check for the case where we have a derived type or
8486 -- subtype, and if so get the Underlying_Type of the parent type.
8488 elsif Etype
(Id
) /= Id
then
8489 return Underlying_Type
(Etype
(Id
));
8491 -- Otherwise we have an incomplete or private type that has
8492 -- no full view, which means that we have not encountered the
8493 -- completion, so return Empty to indicate the underlying type
8494 -- is not yet known.
8500 -- For non-incomplete, non-private types, return the type itself Also
8501 -- for entities that are not types at all return the entity itself.
8506 end Underlying_Type
;
8508 ------------------------
8509 -- Write_Entity_Flags --
8510 ------------------------
8512 procedure Write_Entity_Flags
(Id
: Entity_Id
; Prefix
: String) is
8514 procedure W
(Flag_Name
: String; Flag
: Boolean);
8515 -- Write out given flag if it is set
8521 procedure W
(Flag_Name
: String; Flag
: Boolean) is
8525 Write_Str
(Flag_Name
);
8526 Write_Str
(" = True");
8531 -- Start of processing for Write_Entity_Flags
8534 if (Is_Array_Type
(Id
) or else Is_Record_Type
(Id
))
8535 and then Is_Base_Type
(Id
)
8538 Write_Str
("Component_Alignment = ");
8540 case Component_Alignment
(Id
) is
8541 when Calign_Default
=>
8542 Write_Str
("Calign_Default");
8544 when Calign_Component_Size
=>
8545 Write_Str
("Calign_Component_Size");
8547 when Calign_Component_Size_4
=>
8548 Write_Str
("Calign_Component_Size_4");
8550 when Calign_Storage_Unit
=>
8551 Write_Str
("Calign_Storage_Unit");
8557 W
("Address_Taken", Flag104
(Id
));
8558 W
("Body_Needed_For_SAL", Flag40
(Id
));
8559 W
("C_Pass_By_Copy", Flag125
(Id
));
8560 W
("Can_Never_Be_Null", Flag38
(Id
));
8561 W
("Checks_May_Be_Suppressed", Flag31
(Id
));
8562 W
("Contains_Ignored_Ghost_Code", Flag279
(Id
));
8563 W
("Debug_Info_Off", Flag166
(Id
));
8564 W
("Default_Expressions_Processed", Flag108
(Id
));
8565 W
("Delay_Cleanups", Flag114
(Id
));
8566 W
("Delay_Subprogram_Descriptors", Flag50
(Id
));
8567 W
("Depends_On_Private", Flag14
(Id
));
8568 W
("Discard_Names", Flag88
(Id
));
8569 W
("Elaboration_Entity_Required", Flag174
(Id
));
8570 W
("Elaborate_Body_Desirable", Flag210
(Id
));
8571 W
("Entry_Accepted", Flag152
(Id
));
8572 W
("Can_Use_Internal_Rep", Flag229
(Id
));
8573 W
("Finalize_Storage_Only", Flag158
(Id
));
8574 W
("From_Limited_With", Flag159
(Id
));
8575 W
("Has_Aliased_Components", Flag135
(Id
));
8576 W
("Has_Alignment_Clause", Flag46
(Id
));
8577 W
("Has_All_Calls_Remote", Flag79
(Id
));
8578 W
("Has_Anonymous_Master", Flag253
(Id
));
8579 W
("Has_Atomic_Components", Flag86
(Id
));
8580 W
("Has_Biased_Representation", Flag139
(Id
));
8581 W
("Has_Completion", Flag26
(Id
));
8582 W
("Has_Completion_In_Body", Flag71
(Id
));
8583 W
("Has_Complex_Representation", Flag140
(Id
));
8584 W
("Has_Component_Size_Clause", Flag68
(Id
));
8585 W
("Has_Contiguous_Rep", Flag181
(Id
));
8586 W
("Has_Controlled_Component", Flag43
(Id
));
8587 W
("Has_Controlling_Result", Flag98
(Id
));
8588 W
("Has_Convention_Pragma", Flag119
(Id
));
8589 W
("Has_Default_Aspect", Flag39
(Id
));
8590 W
("Has_Default_Init_Cond", Flag3
(Id
));
8591 W
("Has_Delayed_Aspects", Flag200
(Id
));
8592 W
("Has_Delayed_Freeze", Flag18
(Id
));
8593 W
("Has_Delayed_Rep_Aspects", Flag261
(Id
));
8594 W
("Has_Discriminants", Flag5
(Id
));
8595 W
("Has_Dispatch_Table", Flag220
(Id
));
8596 W
("Has_Dynamic_Predicate_Aspect", Flag258
(Id
));
8597 W
("Has_Enumeration_Rep_Clause", Flag66
(Id
));
8598 W
("Has_Exit", Flag47
(Id
));
8599 W
("Has_Expanded_Contract", Flag240
(Id
));
8600 W
("Has_Forward_Instantiation", Flag175
(Id
));
8601 W
("Has_Fully_Qualified_Name", Flag173
(Id
));
8602 W
("Has_Gigi_Rep_Item", Flag82
(Id
));
8603 W
("Has_Homonym", Flag56
(Id
));
8604 W
("Has_Implicit_Dereference", Flag251
(Id
));
8605 W
("Has_Independent_Components", Flag34
(Id
));
8606 W
("Has_Inheritable_Invariants", Flag248
(Id
));
8607 W
("Has_Inherited_Default_Init_Cond", Flag133
(Id
));
8608 W
("Has_Initial_Value", Flag219
(Id
));
8609 W
("Has_Invariants", Flag232
(Id
));
8610 W
("Has_Loop_Entry_Attributes", Flag260
(Id
));
8611 W
("Has_Machine_Radix_Clause", Flag83
(Id
));
8612 W
("Has_Master_Entity", Flag21
(Id
));
8613 W
("Has_Missing_Return", Flag142
(Id
));
8614 W
("Has_Nested_Block_With_Handler", Flag101
(Id
));
8615 W
("Has_Nested_Subprogram", Flag282
(Id
));
8616 W
("Has_Non_Standard_Rep", Flag75
(Id
));
8617 W
("Has_Out_Or_In_Out_Parameter", Flag110
(Id
));
8618 W
("Has_Object_Size_Clause", Flag172
(Id
));
8619 W
("Has_Per_Object_Constraint", Flag154
(Id
));
8620 W
("Has_Pragma_Controlled", Flag27
(Id
));
8621 W
("Has_Pragma_Elaborate_Body", Flag150
(Id
));
8622 W
("Has_Pragma_Inline", Flag157
(Id
));
8623 W
("Has_Pragma_Inline_Always", Flag230
(Id
));
8624 W
("Has_Pragma_No_Inline", Flag201
(Id
));
8625 W
("Has_Pragma_Ordered", Flag198
(Id
));
8626 W
("Has_Pragma_Pack", Flag121
(Id
));
8627 W
("Has_Pragma_Preelab_Init", Flag221
(Id
));
8628 W
("Has_Pragma_Pure", Flag203
(Id
));
8629 W
("Has_Pragma_Pure_Function", Flag179
(Id
));
8630 W
("Has_Pragma_Thread_Local_Storage", Flag169
(Id
));
8631 W
("Has_Pragma_Unmodified", Flag233
(Id
));
8632 W
("Has_Pragma_Unreferenced", Flag180
(Id
));
8633 W
("Has_Pragma_Unreferenced_Objects", Flag212
(Id
));
8634 W
("Has_Predicates", Flag250
(Id
));
8635 W
("Has_Primitive_Operations", Flag120
(Id
));
8636 W
("Has_Private_Ancestor", Flag151
(Id
));
8637 W
("Has_Private_Declaration", Flag155
(Id
));
8638 W
("Has_Protected", Flag271
(Id
));
8639 W
("Has_Qualified_Name", Flag161
(Id
));
8640 W
("Has_RACW", Flag214
(Id
));
8641 W
("Has_Record_Rep_Clause", Flag65
(Id
));
8642 W
("Has_Recursive_Call", Flag143
(Id
));
8643 W
("Has_Shift_Operator", Flag267
(Id
));
8644 W
("Has_Size_Clause", Flag29
(Id
));
8645 W
("Has_Small_Clause", Flag67
(Id
));
8646 W
("Has_Specified_Layout", Flag100
(Id
));
8647 W
("Has_Specified_Stream_Input", Flag190
(Id
));
8648 W
("Has_Specified_Stream_Output", Flag191
(Id
));
8649 W
("Has_Specified_Stream_Read", Flag192
(Id
));
8650 W
("Has_Specified_Stream_Write", Flag193
(Id
));
8651 W
("Has_Static_Discriminants", Flag211
(Id
));
8652 W
("Has_Static_Predicate", Flag269
(Id
));
8653 W
("Has_Static_Predicate_Aspect", Flag259
(Id
));
8654 W
("Has_Storage_Size_Clause", Flag23
(Id
));
8655 W
("Has_Stream_Size_Clause", Flag184
(Id
));
8656 W
("Has_Task", Flag30
(Id
));
8657 W
("Has_Thunks", Flag228
(Id
));
8658 W
("Has_Unchecked_Union", Flag123
(Id
));
8659 W
("Has_Unknown_Discriminants", Flag72
(Id
));
8660 W
("Has_Uplevel_Reference", Flag215
(Id
));
8661 W
("Has_Visible_Refinement", Flag263
(Id
));
8662 W
("Has_Volatile_Components", Flag87
(Id
));
8663 W
("Has_Xref_Entry", Flag182
(Id
));
8664 W
("In_Package_Body", Flag48
(Id
));
8665 W
("In_Private_Part", Flag45
(Id
));
8666 W
("In_Use", Flag8
(Id
));
8667 W
("Is_Abstract_Subprogram", Flag19
(Id
));
8668 W
("Is_Abstract_Type", Flag146
(Id
));
8669 W
("Is_Access_Constant", Flag69
(Id
));
8670 W
("Is_Ada_2005_Only", Flag185
(Id
));
8671 W
("Is_Ada_2012_Only", Flag199
(Id
));
8672 W
("Is_Aliased", Flag15
(Id
));
8673 W
("Is_Asynchronous", Flag81
(Id
));
8674 W
("Is_Atomic", Flag85
(Id
));
8675 W
("Is_Bit_Packed_Array", Flag122
(Id
));
8676 W
("Is_CPP_Class", Flag74
(Id
));
8677 W
("Is_Called", Flag102
(Id
));
8678 W
("Is_Character_Type", Flag63
(Id
));
8679 W
("Is_Checked_Ghost_Entity", Flag277
(Id
));
8680 W
("Is_Child_Unit", Flag73
(Id
));
8681 W
("Is_Class_Wide_Equivalent_Type", Flag35
(Id
));
8682 W
("Is_Compilation_Unit", Flag149
(Id
));
8683 W
("Is_Completely_Hidden", Flag103
(Id
));
8684 W
("Is_Concurrent_Record_Type", Flag20
(Id
));
8685 W
("Is_Constr_Subt_For_UN_Aliased", Flag141
(Id
));
8686 W
("Is_Constr_Subt_For_U_Nominal", Flag80
(Id
));
8687 W
("Is_Constrained", Flag12
(Id
));
8688 W
("Is_Constructor", Flag76
(Id
));
8689 W
("Is_Controlled", Flag42
(Id
));
8690 W
("Is_Controlling_Formal", Flag97
(Id
));
8691 W
("Is_Default_Init_Cond_Procedure", Flag132
(Id
));
8692 W
("Is_Descendent_Of_Address", Flag223
(Id
));
8693 W
("Is_Discrim_SO_Function", Flag176
(Id
));
8694 W
("Is_Discriminant_Check_Function", Flag264
(Id
));
8695 W
("Is_Dispatch_Table_Entity", Flag234
(Id
));
8696 W
("Is_Dispatching_Operation", Flag6
(Id
));
8697 W
("Is_Eliminated", Flag124
(Id
));
8698 W
("Is_Entry_Formal", Flag52
(Id
));
8699 W
("Is_Exported", Flag99
(Id
));
8700 W
("Is_First_Subtype", Flag70
(Id
));
8701 W
("Is_For_Access_Subtype", Flag118
(Id
));
8702 W
("Is_Formal_Subprogram", Flag111
(Id
));
8703 W
("Is_Frozen", Flag4
(Id
));
8704 W
("Is_Generic_Actual_Subprogram", Flag274
(Id
));
8705 W
("Is_Generic_Actual_Type", Flag94
(Id
));
8706 W
("Is_Generic_Instance", Flag130
(Id
));
8707 W
("Is_Generic_Type", Flag13
(Id
));
8708 W
("Is_Hidden", Flag57
(Id
));
8709 W
("Is_Hidden_Non_Overridden_Subpgm", Flag2
(Id
));
8710 W
("Is_Hidden_Open_Scope", Flag171
(Id
));
8711 W
("Is_Ignored_Ghost_Entity", Flag278
(Id
));
8712 W
("Is_Immediately_Visible", Flag7
(Id
));
8713 W
("Is_Implementation_Defined", Flag254
(Id
));
8714 W
("Is_Imported", Flag24
(Id
));
8715 W
("Is_Independent", Flag268
(Id
));
8716 W
("Is_Inlined", Flag11
(Id
));
8717 W
("Is_Inlined_Always", Flag1
(Id
));
8718 W
("Is_Instantiated", Flag126
(Id
));
8719 W
("Is_Interface", Flag186
(Id
));
8720 W
("Is_Internal", Flag17
(Id
));
8721 W
("Is_Interrupt_Handler", Flag89
(Id
));
8722 W
("Is_Intrinsic_Subprogram", Flag64
(Id
));
8723 W
("Is_Invariant_Procedure", Flag257
(Id
));
8724 W
("Is_Itype", Flag91
(Id
));
8725 W
("Is_Known_Non_Null", Flag37
(Id
));
8726 W
("Is_Known_Null", Flag204
(Id
));
8727 W
("Is_Known_Valid", Flag170
(Id
));
8728 W
("Is_Limited_Composite", Flag106
(Id
));
8729 W
("Is_Limited_Interface", Flag197
(Id
));
8730 W
("Is_Limited_Record", Flag25
(Id
));
8731 W
("Is_Local_Anonymous_Access", Flag194
(Id
));
8732 W
("Is_Machine_Code_Subprogram", Flag137
(Id
));
8733 W
("Is_Non_Static_Subtype", Flag109
(Id
));
8734 W
("Is_Null_Init_Proc", Flag178
(Id
));
8735 W
("Is_Obsolescent", Flag153
(Id
));
8736 W
("Is_Only_Out_Parameter", Flag226
(Id
));
8737 W
("Is_Package_Body_Entity", Flag160
(Id
));
8738 W
("Is_Packed", Flag51
(Id
));
8739 W
("Is_Packed_Array_Impl_Type", Flag138
(Id
));
8740 W
("Is_Potentially_Use_Visible", Flag9
(Id
));
8741 W
("Is_Predicate_Function", Flag255
(Id
));
8742 W
("Is_Predicate_Function_M", Flag256
(Id
));
8743 W
("Is_Preelaborated", Flag59
(Id
));
8744 W
("Is_Primitive", Flag218
(Id
));
8745 W
("Is_Primitive_Wrapper", Flag195
(Id
));
8746 W
("Is_Private_Composite", Flag107
(Id
));
8747 W
("Is_Private_Descendant", Flag53
(Id
));
8748 W
("Is_Private_Primitive", Flag245
(Id
));
8749 W
("Is_Processed_Transient", Flag252
(Id
));
8750 W
("Is_Public", Flag10
(Id
));
8751 W
("Is_Pure", Flag44
(Id
));
8752 W
("Is_Pure_Unit_Access_Type", Flag189
(Id
));
8753 W
("Is_RACW_Stub_Type", Flag244
(Id
));
8754 W
("Is_Raised", Flag224
(Id
));
8755 W
("Is_Remote_Call_Interface", Flag62
(Id
));
8756 W
("Is_Remote_Types", Flag61
(Id
));
8757 W
("Is_Renaming_Of_Object", Flag112
(Id
));
8758 W
("Is_Return_Object", Flag209
(Id
));
8759 W
("Is_Safe_To_Reevaluate", Flag249
(Id
));
8760 W
("Is_Shared_Passive", Flag60
(Id
));
8761 W
("Is_Static_Type", Flag281
(Id
));
8762 W
("Is_Statically_Allocated", Flag28
(Id
));
8763 W
("Is_Tag", Flag78
(Id
));
8764 W
("Is_Tagged_Type", Flag55
(Id
));
8765 W
("Is_Thunk", Flag225
(Id
));
8766 W
("Is_Trivial_Subprogram", Flag235
(Id
));
8767 W
("Is_True_Constant", Flag163
(Id
));
8768 W
("Is_Unchecked_Union", Flag117
(Id
));
8769 W
("Is_Underlying_Record_View", Flag246
(Id
));
8770 W
("Is_Unsigned_Type", Flag144
(Id
));
8771 W
("Is_Valued_Procedure", Flag127
(Id
));
8772 W
("Is_Visible_Formal", Flag206
(Id
));
8773 W
("Is_Visible_Lib_Unit", Flag116
(Id
));
8774 W
("Is_Volatile", Flag16
(Id
));
8775 W
("Itype_Printed", Flag202
(Id
));
8776 W
("Kill_Elaboration_Checks", Flag32
(Id
));
8777 W
("Kill_Range_Checks", Flag33
(Id
));
8778 W
("Known_To_Have_Preelab_Init", Flag207
(Id
));
8779 W
("Low_Bound_Tested", Flag205
(Id
));
8780 W
("Machine_Radix_10", Flag84
(Id
));
8781 W
("Materialize_Entity", Flag168
(Id
));
8782 W
("May_Inherit_Delayed_Rep_Aspects", Flag262
(Id
));
8783 W
("Must_Be_On_Byte_Boundary", Flag183
(Id
));
8784 W
("Must_Have_Preelab_Init", Flag208
(Id
));
8785 W
("Needs_Debug_Info", Flag147
(Id
));
8786 W
("Needs_No_Actuals", Flag22
(Id
));
8787 W
("Never_Set_In_Source", Flag115
(Id
));
8788 W
("No_Dynamic_Predicate_On_actual", Flag276
(Id
));
8789 W
("No_Pool_Assigned", Flag131
(Id
));
8790 W
("No_Predicate_On_actual", Flag275
(Id
));
8791 W
("No_Return", Flag113
(Id
));
8792 W
("No_Strict_Aliasing", Flag136
(Id
));
8793 W
("Non_Binary_Modulus", Flag58
(Id
));
8794 W
("Nonzero_Is_True", Flag162
(Id
));
8795 W
("OK_To_Rename", Flag247
(Id
));
8796 W
("OK_To_Reorder_Components", Flag239
(Id
));
8797 W
("Optimize_Alignment_Space", Flag241
(Id
));
8798 W
("Optimize_Alignment_Time", Flag242
(Id
));
8799 W
("Overlays_Constant", Flag243
(Id
));
8800 W
("Partial_View_Has_Unknown_Discr", Flag280
(Id
));
8801 W
("Reachable", Flag49
(Id
));
8802 W
("Referenced", Flag156
(Id
));
8803 W
("Referenced_As_LHS", Flag36
(Id
));
8804 W
("Referenced_As_Out_Parameter", Flag227
(Id
));
8805 W
("Renamed_In_Spec", Flag231
(Id
));
8806 W
("Requires_Overriding", Flag213
(Id
));
8807 W
("Return_Present", Flag54
(Id
));
8808 W
("Returns_By_Ref", Flag90
(Id
));
8809 W
("Returns_Limited_View", Flag134
(Id
));
8810 W
("Reverse_Bit_Order", Flag164
(Id
));
8811 W
("Reverse_Storage_Order", Flag93
(Id
));
8812 W
("Sec_Stack_Needed_For_Return", Flag167
(Id
));
8813 W
("Size_Depends_On_Discriminant", Flag177
(Id
));
8814 W
("Size_Known_At_Compile_Time", Flag92
(Id
));
8815 W
("SPARK_Aux_Pragma_Inherited", Flag266
(Id
));
8816 W
("SPARK_Pragma_Inherited", Flag265
(Id
));
8817 W
("SSO_Set_High_By_Default", Flag273
(Id
));
8818 W
("SSO_Set_Low_By_Default", Flag272
(Id
));
8819 W
("Static_Elaboration_Desired", Flag77
(Id
));
8820 W
("Stores_Attribute_Old_Prefix", Flag270
(Id
));
8821 W
("Strict_Alignment", Flag145
(Id
));
8822 W
("Suppress_Elaboration_Warnings", Flag148
(Id
));
8823 W
("Suppress_Initialization", Flag105
(Id
));
8824 W
("Suppress_Style_Checks", Flag165
(Id
));
8825 W
("Suppress_Value_Tracking_On_Call", Flag217
(Id
));
8826 W
("Treat_As_Volatile", Flag41
(Id
));
8827 W
("Universal_Aliasing", Flag216
(Id
));
8828 W
("Uplevel_Reference_Noted", Flag283
(Id
));
8829 W
("Used_As_Generic_Actual", Flag222
(Id
));
8830 W
("Uses_Sec_Stack", Flag95
(Id
));
8831 W
("Warnings_Off", Flag96
(Id
));
8832 W
("Warnings_Off_Used", Flag236
(Id
));
8833 W
("Warnings_Off_Used_Unmodified", Flag237
(Id
));
8834 W
("Warnings_Off_Used_Unreferenced", Flag238
(Id
));
8835 W
("Was_Hidden", Flag196
(Id
));
8836 end Write_Entity_Flags
;
8838 -----------------------
8839 -- Write_Entity_Info --
8840 -----------------------
8842 procedure Write_Entity_Info
(Id
: Entity_Id
; Prefix
: String) is
8844 procedure Write_Attribute
(Which
: String; Nam
: E
);
8845 -- Write attribute value with given string name
8847 procedure Write_Kind
(Id
: Entity_Id
);
8848 -- Write Ekind field of entity
8850 ---------------------
8851 -- Write_Attribute --
8852 ---------------------
8854 procedure Write_Attribute
(Which
: String; Nam
: E
) is
8858 Write_Int
(Int
(Nam
));
8860 Write_Name
(Chars
(Nam
));
8862 end Write_Attribute
;
8868 procedure Write_Kind
(Id
: Entity_Id
) is
8869 K
: constant String := Entity_Kind
'Image (Ekind
(Id
));
8873 Write_Str
(" Kind ");
8875 if Is_Type
(Id
) and then Is_Tagged_Type
(Id
) then
8876 Write_Str
("TAGGED ");
8879 Write_Str
(K
(3 .. K
'Length));
8882 if Is_Type
(Id
) and then Depends_On_Private
(Id
) then
8883 Write_Str
("Depends_On_Private ");
8887 -- Start of processing for Write_Entity_Info
8891 Write_Attribute
("Name ", Id
);
8892 Write_Int
(Int
(Id
));
8896 Write_Attribute
(" Type ", Etype
(Id
));
8898 Write_Attribute
(" Scope ", Scope
(Id
));
8903 when Discrete_Kind
=>
8904 Write_Str
("Bounds: Id = ");
8906 if Present
(Scalar_Range
(Id
)) then
8907 Write_Int
(Int
(Type_Low_Bound
(Id
)));
8908 Write_Str
(" .. Id = ");
8909 Write_Int
(Int
(Type_High_Bound
(Id
)));
8911 Write_Str
("Empty");
8922 (" Component Type ", Component_Type
(Id
));
8925 Write_Str
(" Indexes ");
8927 Index
:= First_Index
(Id
);
8928 while Present
(Index
) loop
8929 Write_Attribute
(" ", Etype
(Index
));
8930 Index
:= Next_Index
(Index
);
8938 (" Directly Designated Type ",
8939 Directly_Designated_Type
(Id
));
8942 when Overloadable_Kind
=>
8943 if Present
(Homonym
(Id
)) then
8944 Write_Str
(" Homonym ");
8945 Write_Name
(Chars
(Homonym
(Id
)));
8947 Write_Int
(Int
(Homonym
(Id
)));
8954 if Ekind
(Scope
(Id
)) in Record_Kind
then
8956 " Original_Record_Component ",
8957 Original_Record_Component
(Id
));
8958 Write_Int
(Int
(Original_Record_Component
(Id
)));
8962 when others => null;
8964 end Write_Entity_Info
;
8966 -----------------------
8967 -- Write_Field6_Name --
8968 -----------------------
8970 procedure Write_Field6_Name
(Id
: Entity_Id
) is
8971 pragma Warnings
(Off
, Id
);
8973 Write_Str
("First_Rep_Item");
8974 end Write_Field6_Name
;
8976 -----------------------
8977 -- Write_Field7_Name --
8978 -----------------------
8980 procedure Write_Field7_Name
(Id
: Entity_Id
) is
8981 pragma Warnings
(Off
, Id
);
8983 Write_Str
("Freeze_Node");
8984 end Write_Field7_Name
;
8986 -----------------------
8987 -- Write_Field8_Name --
8988 -----------------------
8990 procedure Write_Field8_Name
(Id
: Entity_Id
) is
8994 Write_Str
("Associated_Node_For_Itype");
8997 Write_Str
("Dependent_Instances");
9000 Write_Str
("First_Exit_Statement");
9003 Write_Str
("Hiding_Loop_Variable");
9007 E_Subprogram_Body
=>
9008 Write_Str
("Mechanism");
9012 Write_Str
("Normalized_First_Bit");
9014 when E_Abstract_State
=>
9015 Write_Str
("Refinement_Constituents");
9017 when E_Return_Statement
=>
9018 Write_Str
("Return_Applies_To");
9021 Write_Str
("Field8??");
9023 end Write_Field8_Name
;
9025 -----------------------
9026 -- Write_Field9_Name --
9027 -----------------------
9029 procedure Write_Field9_Name
(Id
: Entity_Id
) is
9033 Write_Str
("Class_Wide_Type");
9036 Write_Str
("Current_Value");
9038 when E_Abstract_State
=>
9039 Write_Str
("Part_Of_Constituents");
9042 E_Generic_Function |
9044 E_Generic_Procedure |
9047 Write_Str
("Renaming_Map");
9050 Write_Str
("Field9??");
9052 end Write_Field9_Name
;
9054 ------------------------
9055 -- Write_Field10_Name --
9056 ------------------------
9058 procedure Write_Field10_Name
(Id
: Entity_Id
) is
9061 when E_Abstract_State |
9063 Write_Str
("Encapsulating_State");
9065 when Class_Wide_Kind |
9071 Write_Str
("Direct_Primitive_Operations");
9074 Write_Str
("Float_Rep");
9076 when E_In_Parameter |
9078 Write_Str
("Discriminal_Link");
9084 Write_Str
("Handler_Records");
9088 Write_Str
("Normalized_Position_Max");
9091 Write_Str
("Field10??");
9093 end Write_Field10_Name
;
9095 ------------------------
9096 -- Write_Field11_Name --
9097 ------------------------
9099 procedure Write_Field11_Name
(Id
: Entity_Id
) is
9103 Write_Str
("Block_Node");
9107 Write_Str
("Component_Bit_Offset");
9110 Write_Str
("Entry_Component");
9112 when E_Enumeration_Literal
=>
9113 Write_Str
("Enumeration_Pos");
9117 Write_Str
("Full_View");
9119 when E_Generic_Package
=>
9120 Write_Str
("Generic_Homonym");
9126 Write_Str
("Protected_Body_Subprogram");
9129 Write_Str
("Field11??");
9131 end Write_Field11_Name
;
9133 ------------------------
9134 -- Write_Field12_Name --
9135 ------------------------
9137 procedure Write_Field12_Name
(Id
: Entity_Id
) is
9141 Write_Str
("Associated_Formal_Package");
9144 Write_Str
("Barrier_Function");
9146 when E_Enumeration_Literal
=>
9147 Write_Str
("Enumeration_Rep");
9155 E_In_Out_Parameter |
9159 Write_Str
("Esize");
9163 Write_Str
("Next_Inlined_Subprogram");
9166 Write_Str
("Field12??");
9168 end Write_Field12_Name
;
9170 ------------------------
9171 -- Write_Field13_Name --
9172 ------------------------
9174 procedure Write_Field13_Name
(Id
: Entity_Id
) is
9179 Write_Str
("Component_Clause");
9182 Write_Str
("Elaboration_Entity");
9186 Generic_Unit_Kind
=>
9187 Write_Str
("Elaboration_Entity");
9191 Write_Str
("Extra_Accessibility");
9194 Write_Str
("RM_Size");
9197 Write_Str
("Field13??");
9199 end Write_Field13_Name
;
9201 -----------------------
9202 -- Write_Field14_Name --
9203 -----------------------
9205 procedure Write_Field14_Name
(Id
: Entity_Id
) is
9214 Write_Str
("Alignment");
9218 Write_Str
("Normalized_Position");
9224 Write_Str
("Postconditions_Proc");
9226 when E_Generic_Package |
9228 Write_Str
("Shadow_Entities");
9231 Write_Str
("Field14??");
9233 end Write_Field14_Name
;
9235 ------------------------
9236 -- Write_Field15_Name --
9237 ------------------------
9239 procedure Write_Field15_Name
(Id
: Entity_Id
) is
9242 when E_Discriminant
=>
9243 Write_Str
("Discriminant_Number");
9246 Write_Str
("DT_Entry_Count");
9250 Write_Str
("DT_Position");
9253 Write_Str
("Entry_Parameters_Type");
9256 Write_Str
("Extra_Formal");
9259 Write_Str
("Pending_Access_Types");
9263 Write_Str
("Related_Instance");
9267 Write_Str
("Status_Flag_Or_Transient_Decl");
9270 Write_Str
("Field15??");
9272 end Write_Field15_Name
;
9274 ------------------------
9275 -- Write_Field16_Name --
9276 ------------------------
9278 procedure Write_Field16_Name
(Id
: Entity_Id
) is
9281 when E_Record_Type |
9282 E_Record_Type_With_Private
=>
9283 Write_Str
("Access_Disp_Table");
9285 when E_Abstract_State
=>
9286 Write_Str
("Body_References");
9288 when E_Record_Subtype |
9289 E_Class_Wide_Subtype
=>
9290 Write_Str
("Cloned_Subtype");
9294 Write_Str
("DTC_Entity");
9297 Write_Str
("Entry_Formal");
9302 Write_Str
("First_Private_Entity");
9304 when Enumeration_Kind
=>
9305 Write_Str
("Lit_Strings");
9307 when Decimal_Fixed_Point_Kind
=>
9308 Write_Str
("Scale_Value");
9310 when E_String_Literal_Subtype
=>
9311 Write_Str
("String_Literal_Length");
9315 Write_Str
("Unset_Reference");
9318 Write_Str
("Field16??");
9320 end Write_Field16_Name
;
9322 ------------------------
9323 -- Write_Field17_Name --
9324 ------------------------
9326 procedure Write_Field17_Name
(Id
: Entity_Id
) is
9331 E_Generic_In_Out_Parameter |
9333 Write_Str
("Actual_Subtype");
9336 Write_Str
("Digits_Value");
9338 when E_Discriminant
=>
9339 Write_Str
("Discriminal");
9348 E_Generic_Function |
9350 E_Generic_Procedure |
9358 E_Return_Statement |
9360 E_Subprogram_Type
=>
9361 Write_Str
("First_Entity");
9364 Write_Str
("First_Index");
9366 when Enumeration_Kind
=>
9367 Write_Str
("First_Literal");
9370 Write_Str
("Master_Id");
9372 when Modular_Integer_Kind
=>
9373 Write_Str
("Modulus");
9375 when E_Abstract_State |
9376 E_Incomplete_Type
=>
9377 Write_Str
("Non_Limited_View");
9379 when E_Incomplete_Subtype
=>
9380 if From_Limited_With
(Id
) then
9381 Write_Str
("Non_Limited_View");
9385 Write_Str
("Prival");
9388 Write_Str
("Field17??");
9390 end Write_Field17_Name
;
9392 ------------------------
9393 -- Write_Field18_Name --
9394 ------------------------
9396 procedure Write_Field18_Name
(Id
: Entity_Id
) is
9399 when E_Enumeration_Literal |
9403 Write_Str
("Alias");
9405 when E_Record_Type
=>
9406 Write_Str
("Corresponding_Concurrent_Type");
9408 when E_Subprogram_Body
=>
9409 Write_Str
("Corresponding_Protected_Entry");
9411 when Concurrent_Kind
=>
9412 Write_Str
("Corresponding_Record_Type");
9417 Write_Str
("Enclosing_Scope");
9419 when E_Entry_Index_Parameter
=>
9420 Write_Str
("Entry_Index_Constant");
9422 when E_Class_Wide_Subtype |
9423 E_Access_Protected_Subprogram_Type |
9424 E_Anonymous_Access_Protected_Subprogram_Type |
9425 E_Access_Subprogram_Type |
9427 Write_Str
("Equivalent_Type");
9429 when Fixed_Point_Kind
=>
9430 Write_Str
("Delta_Value");
9432 when Enumeration_Kind
=>
9433 Write_Str
("Lit_Indexes");
9435 when Incomplete_Or_Private_Kind |
9437 Write_Str
("Private_Dependents");
9440 Write_Str
("Renamed_Object");
9444 E_Generic_Function |
9445 E_Generic_Procedure |
9446 E_Generic_Package
=>
9447 Write_Str
("Renamed_Entity");
9449 when E_String_Literal_Subtype
=>
9450 Write_Str
("String_Literal_Low_Bound");
9453 Write_Str
("Field18??");
9455 end Write_Field18_Name
;
9457 -----------------------
9458 -- Write_Field19_Name --
9459 -----------------------
9461 procedure Write_Field19_Name
(Id
: Entity_Id
) is
9465 E_Generic_Package
=>
9466 Write_Str
("Body_Entity");
9468 when E_Discriminant
=>
9469 Write_Str
("Corresponding_Discriminant");
9472 Write_Str
("Default_Aspect_Value");
9474 when E_Array_Type
=>
9475 Write_Str
("Default_Component_Value");
9477 when E_Protected_Type
=>
9478 Write_Str
("Entry_Bodies_Array");
9482 E_Subprogram_Type
=>
9483 Write_Str
("Extra_Accessibility_Of_Result");
9485 when E_Record_Type
=>
9486 Write_Str
("Parent_Subtype");
9490 Write_Str
("Size_Check_Code");
9492 when E_Package_Body |
9494 Write_Str
("Spec_Entity");
9496 when Private_Kind
=>
9497 Write_Str
("Underlying_Full_View");
9500 Write_Str
("Field19??");
9502 end Write_Field19_Name
;
9504 -----------------------
9505 -- Write_Field20_Name --
9506 -----------------------
9508 procedure Write_Field20_Name
(Id
: Entity_Id
) is
9512 Write_Str
("Component_Type");
9514 when E_In_Parameter |
9515 E_Generic_In_Parameter
=>
9516 Write_Str
("Default_Value");
9519 Write_Str
("Directly_Designated_Type");
9522 Write_Str
("Discriminant_Checking_Func");
9524 when E_Discriminant
=>
9525 Write_Str
("Discriminant_Default_Value");
9534 E_Generic_Function |
9536 E_Generic_Procedure |
9544 E_Return_Statement |
9546 E_Subprogram_Type
=>
9547 Write_Str
("Last_Entity");
9551 Write_Str
("Prival_Link");
9554 Write_Str
("Scalar_Range");
9557 Write_Str
("Register_Exception_Call");
9560 Write_Str
("Field20??");
9562 end Write_Field20_Name
;
9564 -----------------------
9565 -- Write_Field21_Name --
9566 -----------------------
9568 procedure Write_Field21_Name
(Id
: Entity_Id
) is
9572 Write_Str
("Accept_Address");
9574 when E_In_Parameter
=>
9575 Write_Str
("Default_Expr_Function");
9577 when Concurrent_Kind |
9578 Incomplete_Or_Private_Kind |
9582 Write_Str
("Discriminant_Constraint");
9587 E_Generic_Function |
9589 E_Generic_Procedure |
9591 Write_Str
("Interface_Name");
9594 Modular_Integer_Kind
=>
9595 Write_Str
("Original_Array_Type");
9597 when Fixed_Point_Kind
=>
9598 Write_Str
("Small_Value");
9601 Write_Str
("Field21??");
9603 end Write_Field21_Name
;
9605 -----------------------
9606 -- Write_Field22_Name --
9607 -----------------------
9609 procedure Write_Field22_Name
(Id
: Entity_Id
) is
9613 Write_Str
("Associated_Storage_Pool");
9616 Write_Str
("Component_Size");
9618 when E_Record_Type
=>
9619 Write_Str
("Corresponding_Remote_Type");
9623 Write_Str
("Original_Record_Component");
9625 when E_Enumeration_Literal
=>
9626 Write_Str
("Enumeration_Rep_Expr");
9628 when E_Record_Type_With_Private |
9629 E_Record_Subtype_With_Private |
9632 E_Limited_Private_Type |
9633 E_Limited_Private_Subtype
=>
9634 Write_Str
("Private_View");
9637 Write_Str
("Protected_Formal");
9647 E_Generic_Function |
9648 E_Generic_Procedure |
9651 E_Return_Statement |
9654 Write_Str
("Scope_Depth_Value");
9657 Write_Str
("Shared_Var_Procs_Instance");
9660 Write_Str
("Field22??");
9662 end Write_Field22_Name
;
9664 ------------------------
9665 -- Write_Field23_Name --
9666 ------------------------
9668 procedure Write_Field23_Name
(Id
: Entity_Id
) is
9671 when E_Discriminant
=>
9672 Write_Str
("CR_Discriminant");
9675 Write_Str
("Entry_Cancel_Parameter");
9677 when E_Enumeration_Type
=>
9678 Write_Str
("Enum_Pos_To_Rep");
9682 Write_Str
("Extra_Constrained");
9685 Write_Str
("Finalization_Master");
9687 when E_Generic_Function |
9689 E_Generic_Procedure
=>
9690 Write_Str
("Inner_Instances");
9693 Write_Str
("Packed_Array_Impl_Type");
9696 Write_Str
("Protection_Object");
9698 when Concurrent_Kind |
9699 Incomplete_Or_Private_Kind |
9703 Write_Str
("Stored_Constraint");
9707 if Present
(Scope
(Id
))
9708 and then Is_Protected_Type
(Scope
(Id
))
9710 Write_Str
("Protection_Object");
9712 Write_Str
("Generic_Renamings");
9716 if Is_Generic_Instance
(Id
) then
9717 Write_Str
("Generic_Renamings");
9719 Write_Str
("Limited_View");
9723 Write_Str
("Field23??");
9725 end Write_Field23_Name
;
9727 ------------------------
9728 -- Write_Field24_Name --
9729 ------------------------
9731 procedure Write_Field24_Name
(Id
: Entity_Id
) is
9737 Write_Str
("Related_Expression");
9742 if Field24
(Id
) in Uint_Range
then
9743 Write_Str
("Subps_Index");
9745 Write_Str
("Uplevel_References");
9749 Write_Str
("Field24???");
9751 end Write_Field24_Name
;
9753 ------------------------
9754 -- Write_Field25_Name --
9755 ------------------------
9757 procedure Write_Field25_Name
(Id
: Entity_Id
) is
9760 when E_Generic_Package |
9762 Write_Str
("Abstract_States");
9765 Write_Str
("Debug_Renaming_Link");
9768 Write_Str
("DT_Offset_To_Top_Func");
9772 Write_Str
("Interface_Alias");
9774 when E_Record_Type |
9776 E_Record_Type_With_Private |
9777 E_Record_Subtype_With_Private
=>
9778 Write_Str
("Interfaces");
9782 Write_Str
("Related_Array_Object");
9785 Write_Str
("Task_Body_Procedure");
9789 Write_Str
("PPC_Wrapper");
9791 when Discrete_Kind
=>
9792 Write_Str
("Static_Discrete_Predicate");
9795 Write_Str
("Static_Real_Or_String_Predicate");
9798 Write_Str
("Field25??");
9800 end Write_Field25_Name
;
9802 ------------------------
9803 -- Write_Field26_Name --
9804 ------------------------
9806 procedure Write_Field26_Name
(Id
: Entity_Id
) is
9809 when E_Record_Type |
9810 E_Record_Type_With_Private
=>
9811 Write_Str
("Dispatch_Table_Wrappers");
9813 when E_In_Out_Parameter |
9816 Write_Str
("Last_Assignment");
9820 Write_Str
("Overridden_Operation");
9822 when E_Generic_Package |
9824 Write_Str
("Package_Instantiation");
9828 Write_Str
("Related_Type");
9832 Write_Str
("Storage_Size_Variable");
9835 Write_Str
("Field26??");
9837 end Write_Field26_Name
;
9839 ------------------------
9840 -- Write_Field27_Name --
9841 ------------------------
9843 procedure Write_Field27_Name
(Id
: Entity_Id
) is
9848 Write_Str
("Current_Use_Clause");
9853 Write_Str
("Related_Type");
9857 Write_Str
("Wrapped_Entity");
9860 Write_Str
("Field27??");
9862 end Write_Field27_Name
;
9864 ------------------------
9865 -- Write_Field28_Name --
9866 ------------------------
9868 procedure Write_Field28_Name
(Id
: Entity_Id
) is
9876 E_Subprogram_Type
=>
9877 Write_Str
("Extra_Formals");
9881 Write_Str
("Finalizer");
9885 Write_Str
("Initialization_Statements");
9887 when E_Access_Subprogram_Type
=>
9888 Write_Str
("Original_Access_Type");
9891 Write_Str
("Relative_Deadline_Variable");
9893 when E_Record_Type
=>
9894 Write_Str
("Underlying_Record_View");
9897 Write_Str
("Field28??");
9899 end Write_Field28_Name
;
9901 ------------------------
9902 -- Write_Field29_Name --
9903 ------------------------
9905 procedure Write_Field29_Name
(Id
: Entity_Id
) is
9910 Write_Str
("BIP_Initialization_Call");
9913 Write_Str
("Subprograms_For_Type");
9916 Write_Str
("Field29??");
9918 end Write_Field29_Name
;
9920 ------------------------
9921 -- Write_Field30_Name --
9922 ------------------------
9924 procedure Write_Field30_Name
(Id
: Entity_Id
) is
9928 Write_Str
("Corresponding_Equality");
9932 Write_Str
("Last_Aggregate_Assignment");
9935 Write_Str
("Static_Initialization");
9938 Write_Str
("Field30??");
9940 end Write_Field30_Name
;
9942 ------------------------
9943 -- Write_Field31_Name --
9944 ------------------------
9946 procedure Write_Field31_Name
(Id
: Entity_Id
) is
9951 Write_Str
("Thunk_Entity");
9954 Write_Str
("Derived_Type_Link");
9958 E_In_Out_Parameter |
9962 Write_Str
("Activation_Record_Component");
9965 Write_Str
("Field31??");
9967 end Write_Field31_Name
;
9969 ------------------------
9970 -- Write_Field32_Name --
9971 ------------------------
9973 procedure Write_Field32_Name
(Id
: Entity_Id
) is
9977 E_Generic_Function |
9979 E_Generic_Procedure |
9983 E_Subprogram_Body
=>
9984 Write_Str
("SPARK_Pragma");
9987 Write_Str
("No_Tagged_Streams_Pragma");
9990 Write_Str
("Field32??");
9992 end Write_Field32_Name
;
9994 ------------------------
9995 -- Write_Field33_Name --
9996 ------------------------
9998 procedure Write_Field33_Name
(Id
: Entity_Id
) is
10001 when E_Generic_Package |
10004 Write_Str
("SPARK_Aux_Pragma");
10010 Write_Str
("Linker_Section_Pragma");
10013 Write_Str
("Field33??");
10015 end Write_Field33_Name
;
10017 ------------------------
10018 -- Write_Field34_Name --
10019 ------------------------
10021 procedure Write_Field34_Name
(Id
: Entity_Id
) is
10026 E_Generic_Package |
10029 E_Subprogram_Body |
10031 Generic_Subprogram_Kind |
10033 Write_Str
("Contract");
10036 Write_Str
("Field34??");
10038 end Write_Field34_Name
;
10040 ------------------------
10041 -- Write_Field35_Name --
10042 ------------------------
10044 procedure Write_Field35_Name
(Id
: Entity_Id
) is
10047 when Subprogram_Kind
=>
10048 Write_Str
("Import_Pragma");
10051 Write_Str
("Field35??");
10053 end Write_Field35_Name
;
10055 -------------------------
10056 -- Iterator Procedures --
10057 -------------------------
10059 procedure Proc_Next_Component
(N
: in out Node_Id
) is
10061 N
:= Next_Component
(N
);
10062 end Proc_Next_Component
;
10064 procedure Proc_Next_Component_Or_Discriminant
(N
: in out Node_Id
) is
10066 N
:= Next_Entity
(N
);
10067 while Present
(N
) loop
10068 exit when Ekind_In
(N
, E_Component
, E_Discriminant
);
10069 N
:= Next_Entity
(N
);
10071 end Proc_Next_Component_Or_Discriminant
;
10073 procedure Proc_Next_Discriminant
(N
: in out Node_Id
) is
10075 N
:= Next_Discriminant
(N
);
10076 end Proc_Next_Discriminant
;
10078 procedure Proc_Next_Formal
(N
: in out Node_Id
) is
10080 N
:= Next_Formal
(N
);
10081 end Proc_Next_Formal
;
10083 procedure Proc_Next_Formal_With_Extras
(N
: in out Node_Id
) is
10085 N
:= Next_Formal_With_Extras
(N
);
10086 end Proc_Next_Formal_With_Extras
;
10088 procedure Proc_Next_Index
(N
: in out Node_Id
) is
10090 N
:= Next_Index
(N
);
10091 end Proc_Next_Index
;
10093 procedure Proc_Next_Inlined_Subprogram
(N
: in out Node_Id
) is
10095 N
:= Next_Inlined_Subprogram
(N
);
10096 end Proc_Next_Inlined_Subprogram
;
10098 procedure Proc_Next_Literal
(N
: in out Node_Id
) is
10100 N
:= Next_Literal
(N
);
10101 end Proc_Next_Literal
;
10103 procedure Proc_Next_Stored_Discriminant
(N
: in out Node_Id
) is
10105 N
:= Next_Stored_Discriminant
(N
);
10106 end Proc_Next_Stored_Discriminant
;