1 ------------------------------------------------------------------------------
3 -- GNAT COMPILER COMPONENTS --
9 -- Copyright (C) 1992-2014, 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 -- Postcondition_Proc Node8
83 -- Refinement_Constituents Elist8
84 -- Return_Applies_To Node8
85 -- First_Exit_Statement Node8
87 -- Class_Wide_Type Node9
88 -- Current_Value Node9
89 -- Part_Of_Constituents Elist9
92 -- Encapsulating_State Node10
93 -- Direct_Primitive_Operations Elist10
94 -- Discriminal_Link Node10
95 -- Float_Rep Uint10 (but returns Float_Rep_Kind)
96 -- Handler_Records List10
97 -- Normalized_Position_Max Uint10
99 -- Component_Bit_Offset Uint11
101 -- Entry_Component Node11
102 -- Enumeration_Pos Uint11
103 -- Generic_Homonym Node11
104 -- Protected_Body_Subprogram Node11
107 -- Barrier_Function Node12
108 -- Enumeration_Rep Uint12
110 -- Next_Inlined_Subprogram Node12
112 -- Component_Clause Node13
113 -- Elaboration_Entity Node13
114 -- Extra_Accessibility Node13
118 -- Normalized_Position Uint14
119 -- Shadow_Entities List14
121 -- Discriminant_Number Uint15
122 -- DT_Position Uint15
123 -- DT_Entry_Count Uint15
124 -- Entry_Bodies_Array Node15
125 -- Entry_Parameters_Type Node15
126 -- Extra_Formal Node15
127 -- Lit_Indexes Node15
128 -- Related_Instance Node15
129 -- Status_Flag_Or_Transient_Decl Node15
130 -- Scale_Value Uint15
131 -- Storage_Size_Variable Node15
132 -- String_Literal_Low_Bound Node15
134 -- Access_Disp_Table Elist16
135 -- Body_References Elist16
136 -- Cloned_Subtype Node16
138 -- Entry_Formal Node16
139 -- First_Private_Entity Node16
140 -- Lit_Strings Node16
141 -- String_Literal_Length Uint16
142 -- Unset_Reference Node16
144 -- Actual_Subtype Node17
145 -- Digits_Value Uint17
146 -- Discriminal Node17
147 -- First_Entity Node17
148 -- First_Index Node17
149 -- First_Literal Node17
152 -- Non_Limited_View Node17
156 -- Corresponding_Concurrent_Type Node18
157 -- Corresponding_Protected_Entry Node18
158 -- Corresponding_Record_Type Node18
159 -- Delta_Value Ureal18
160 -- Enclosing_Scope Node18
161 -- Equivalent_Type Node18
162 -- Private_Dependents Elist18
163 -- Renamed_Entity Node18
164 -- Renamed_Object Node18
166 -- Body_Entity Node19
167 -- Corresponding_Discriminant Node19
168 -- Default_Aspect_Component_Value Node19
169 -- Default_Aspect_Value 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
217 -- Interface_Alias Node25
218 -- Interfaces Elist25
219 -- Debug_Renaming_Link Node25
220 -- DT_Offset_To_Top_Func Node25
221 -- PPC_Wrapper Node25
222 -- Related_Array_Object Node25
223 -- Static_Discrete_Predicate List25
224 -- Static_Real_Or_String_Predicate Node25
225 -- Task_Body_Procedure Node25
227 -- Dispatch_Table_Wrappers Elist26
228 -- Last_Assignment Node26
229 -- Original_Access_Type Node26
230 -- Overridden_Operation Node26
231 -- Package_Instantiation Node26
232 -- Relative_Deadline_Variable Node26
234 -- Current_Use_Clause Node27
235 -- Related_Type Node27
236 -- Wrapped_Entity Node27
238 -- Extra_Formals Node28
240 -- Initialization_Statements Node28
241 -- Underlying_Record_View Node28
243 -- BIP_Initialization_Call Node29
244 -- Subprograms_For_Type Node29
246 -- Corresponding_Equality Node30
247 -- Last_Aggregate_Assignment Node30
248 -- Static_Initialization Node30
250 -- Derived_Type_Link Node31
251 -- Thunk_Entity Node31
253 -- SPARK_Pragma Node32
255 -- Linker_Section_Pragma Node33
256 -- SPARK_Aux_Pragma Node33
260 -- Import_Pragma Node35
262 ---------------------------------------------
263 -- Usage of Flags in Defining Entity Nodes --
264 ---------------------------------------------
266 -- All flags are unique, there is no overlaying, so each flag is physically
267 -- present in every entity. However, for many of the flags, it only makes
268 -- sense for them to be set true for certain subsets of entity kinds. See
269 -- the spec of Einfo for further details.
271 -- Is_Inlined_Always Flag1
272 -- Is_Hidden_Non_Overridden_Subpgm Flag2
273 -- Has_Default_Init_Cond Flag3
275 -- Has_Discriminants Flag5
276 -- Is_Dispatching_Operation Flag6
277 -- Is_Immediately_Visible Flag7
279 -- Is_Potentially_Use_Visible Flag9
283 -- Is_Constrained Flag12
284 -- Is_Generic_Type Flag13
285 -- Depends_On_Private Flag14
287 -- Is_Volatile Flag16
288 -- Is_Internal Flag17
289 -- Has_Delayed_Freeze Flag18
290 -- Is_Abstract_Subprogram Flag19
291 -- Is_Concurrent_Record_Type Flag20
293 -- Has_Master_Entity Flag21
294 -- Needs_No_Actuals Flag22
295 -- Has_Storage_Size_Clause Flag23
296 -- Is_Imported Flag24
297 -- Is_Limited_Record Flag25
298 -- Has_Completion Flag26
299 -- Has_Pragma_Controlled Flag27
300 -- Is_Statically_Allocated Flag28
301 -- Has_Size_Clause Flag29
304 -- Checks_May_Be_Suppressed Flag31
305 -- Kill_Elaboration_Checks Flag32
306 -- Kill_Range_Checks Flag33
307 -- Has_Independent_Components Flag34
308 -- Is_Class_Wide_Equivalent_Type Flag35
309 -- Referenced_As_LHS Flag36
310 -- Is_Known_Non_Null Flag37
311 -- Can_Never_Be_Null Flag38
312 -- Has_Default_Aspect Flag39
313 -- Body_Needed_For_SAL Flag40
315 -- Treat_As_Volatile Flag41
316 -- Is_Controlled Flag42
317 -- Has_Controlled_Component Flag43
319 -- In_Private_Part Flag45
320 -- Has_Alignment_Clause Flag46
322 -- In_Package_Body Flag48
324 -- Delay_Subprogram_Descriptors Flag50
327 -- Is_Entry_Formal Flag52
328 -- Is_Private_Descendant Flag53
329 -- Return_Present Flag54
330 -- Is_Tagged_Type Flag55
331 -- Has_Homonym Flag56
333 -- Non_Binary_Modulus Flag58
334 -- Is_Preelaborated Flag59
335 -- Is_Shared_Passive Flag60
337 -- Is_Remote_Types Flag61
338 -- Is_Remote_Call_Interface Flag62
339 -- Is_Character_Type Flag63
340 -- Is_Intrinsic_Subprogram Flag64
341 -- Has_Record_Rep_Clause Flag65
342 -- Has_Enumeration_Rep_Clause Flag66
343 -- Has_Small_Clause Flag67
344 -- Has_Component_Size_Clause Flag68
345 -- Is_Access_Constant Flag69
346 -- Is_First_Subtype Flag70
348 -- Has_Completion_In_Body Flag71
349 -- Has_Unknown_Discriminants Flag72
350 -- Is_Child_Unit Flag73
351 -- Is_CPP_Class Flag74
352 -- Has_Non_Standard_Rep Flag75
353 -- Is_Constructor Flag76
354 -- Static_Elaboration_Desired Flag77
356 -- Has_All_Calls_Remote Flag79
357 -- Is_Constr_Subt_For_U_Nominal Flag80
359 -- Is_Asynchronous Flag81
360 -- Has_Gigi_Rep_Item Flag82
361 -- Has_Machine_Radix_Clause Flag83
362 -- Machine_Radix_10 Flag84
364 -- Has_Atomic_Components Flag86
365 -- Has_Volatile_Components Flag87
366 -- Discard_Names Flag88
367 -- Is_Interrupt_Handler Flag89
368 -- Returns_By_Ref Flag90
371 -- Size_Known_At_Compile_Time Flag92
372 -- Reverse_Storage_Order Flag93
373 -- Is_Generic_Actual_Type Flag94
374 -- Uses_Sec_Stack Flag95
375 -- Warnings_Off Flag96
376 -- Is_Controlling_Formal Flag97
377 -- Has_Controlling_Result Flag98
378 -- Is_Exported Flag99
379 -- Has_Specified_Layout Flag100
381 -- Has_Nested_Block_With_Handler Flag101
383 -- Is_Completely_Hidden Flag103
384 -- Address_Taken Flag104
385 -- Suppress_Initialization Flag105
386 -- Is_Limited_Composite Flag106
387 -- Is_Private_Composite Flag107
388 -- Default_Expressions_Processed Flag108
389 -- Is_Non_Static_Subtype Flag109
390 -- Has_Out_Or_In_Out_Parameter Flag110
392 -- Is_Formal_Subprogram Flag111
393 -- Is_Renaming_Of_Object Flag112
395 -- Delay_Cleanups Flag114
396 -- Never_Set_In_Source Flag115
397 -- Is_Visible_Lib_Unit Flag116
398 -- Is_Unchecked_Union Flag117
399 -- Is_For_Access_Subtype Flag118
400 -- Has_Convention_Pragma Flag119
401 -- Has_Primitive_Operations Flag120
403 -- Has_Pragma_Pack Flag121
404 -- Is_Bit_Packed_Array Flag122
405 -- Has_Unchecked_Union Flag123
406 -- Is_Eliminated Flag124
407 -- C_Pass_By_Copy Flag125
408 -- Is_Instantiated Flag126
409 -- Is_Valued_Procedure Flag127
410 -- (used for Component_Alignment) Flag128
411 -- (used for Component_Alignment) Flag129
412 -- Is_Generic_Instance Flag130
414 -- No_Pool_Assigned Flag131
415 -- Is_Default_Init_Cond_Procedure Flag132
416 -- Has_Inherited_Default_Init_Cond Flag133
417 -- Returns_Limited_View Flag134
418 -- Has_Aliased_Components Flag135
419 -- No_Strict_Aliasing Flag136
420 -- Is_Machine_Code_Subprogram Flag137
421 -- Is_Packed_Array_Impl_Type Flag138
422 -- Has_Biased_Representation Flag139
423 -- Has_Complex_Representation Flag140
425 -- Is_Constr_Subt_For_UN_Aliased Flag141
426 -- Has_Missing_Return Flag142
427 -- Has_Recursive_Call Flag143
428 -- Is_Unsigned_Type Flag144
429 -- Strict_Alignment Flag145
430 -- Is_Abstract_Type Flag146
431 -- Needs_Debug_Info Flag147
432 -- Suppress_Elaboration_Warnings Flag148
433 -- Is_Compilation_Unit Flag149
434 -- Has_Pragma_Elaborate_Body Flag150
436 -- Has_Private_Ancestor Flag151
437 -- Entry_Accepted Flag152
438 -- Is_Obsolescent Flag153
439 -- Has_Per_Object_Constraint Flag154
440 -- Has_Private_Declaration Flag155
441 -- Referenced Flag156
442 -- Has_Pragma_Inline Flag157
443 -- Finalize_Storage_Only Flag158
444 -- From_Limited_With Flag159
445 -- Is_Package_Body_Entity Flag160
447 -- Has_Qualified_Name Flag161
448 -- Nonzero_Is_True Flag162
449 -- Is_True_Constant Flag163
450 -- Reverse_Bit_Order Flag164
451 -- Suppress_Style_Checks Flag165
452 -- Debug_Info_Off Flag166
453 -- Sec_Stack_Needed_For_Return Flag167
454 -- Materialize_Entity Flag168
455 -- Has_Pragma_Thread_Local_Storage Flag169
456 -- Is_Known_Valid Flag170
458 -- Is_Hidden_Open_Scope Flag171
459 -- Has_Object_Size_Clause Flag172
460 -- Has_Fully_Qualified_Name Flag173
461 -- Elaboration_Entity_Required Flag174
462 -- Has_Forward_Instantiation Flag175
463 -- Is_Discrim_SO_Function Flag176
464 -- Size_Depends_On_Discriminant Flag177
465 -- Is_Null_Init_Proc Flag178
466 -- Has_Pragma_Pure_Function Flag179
467 -- Has_Pragma_Unreferenced Flag180
469 -- Has_Contiguous_Rep Flag181
470 -- Has_Xref_Entry Flag182
471 -- Must_Be_On_Byte_Boundary Flag183
472 -- Has_Stream_Size_Clause Flag184
473 -- Is_Ada_2005_Only Flag185
474 -- Is_Interface Flag186
475 -- Has_Constrained_Partial_View Flag187
476 -- Uses_Lock_Free Flag188
477 -- Is_Pure_Unit_Access_Type Flag189
478 -- Has_Specified_Stream_Input Flag190
480 -- Has_Specified_Stream_Output Flag191
481 -- Has_Specified_Stream_Read Flag192
482 -- Has_Specified_Stream_Write Flag193
483 -- Is_Local_Anonymous_Access Flag194
484 -- Is_Primitive_Wrapper Flag195
485 -- Was_Hidden Flag196
486 -- Is_Limited_Interface Flag197
487 -- Has_Pragma_Ordered Flag198
488 -- Is_Ada_2012_Only Flag199
490 -- Has_Delayed_Aspects Flag200
491 -- Has_Pragma_No_Inline Flag201
492 -- Itype_Printed Flag202
493 -- Has_Pragma_Pure Flag203
494 -- Is_Known_Null Flag204
495 -- Low_Bound_Tested Flag205
496 -- Is_Visible_Formal Flag206
497 -- Known_To_Have_Preelab_Init Flag207
498 -- Must_Have_Preelab_Init Flag208
499 -- Is_Return_Object Flag209
500 -- Elaborate_Body_Desirable Flag210
502 -- Has_Static_Discriminants Flag211
503 -- Has_Pragma_Unreferenced_Objects Flag212
504 -- Requires_Overriding Flag213
506 -- Has_Up_Level_Access Flag215
507 -- Universal_Aliasing Flag216
508 -- Suppress_Value_Tracking_On_Call Flag217
509 -- Is_Primitive Flag218
510 -- Has_Initial_Value Flag219
511 -- Has_Dispatch_Table Flag220
513 -- Has_Pragma_Preelab_Init Flag221
514 -- Used_As_Generic_Actual Flag222
515 -- Is_Descendent_Of_Address Flag223
518 -- Is_Only_Out_Parameter Flag226
519 -- Referenced_As_Out_Parameter Flag227
520 -- Has_Thunks Flag228
521 -- Can_Use_Internal_Rep Flag229
522 -- Has_Pragma_Inline_Always Flag230
524 -- Renamed_In_Spec Flag231
525 -- Has_Invariants Flag232
526 -- Has_Pragma_Unmodified Flag233
527 -- Is_Dispatch_Table_Entity Flag234
528 -- Is_Trivial_Subprogram Flag235
529 -- Warnings_Off_Used Flag236
530 -- Warnings_Off_Used_Unmodified Flag237
531 -- Warnings_Off_Used_Unreferenced Flag238
532 -- OK_To_Reorder_Components Flag239
533 -- Has_Postconditions Flag240
535 -- Optimize_Alignment_Space Flag241
536 -- Optimize_Alignment_Time Flag242
537 -- Overlays_Constant Flag243
538 -- Is_RACW_Stub_Type Flag244
539 -- Is_Private_Primitive Flag245
540 -- Is_Underlying_Record_View Flag246
541 -- OK_To_Rename Flag247
542 -- Has_Inheritable_Invariants Flag248
543 -- Is_Safe_To_Reevaluate Flag249
544 -- Has_Predicates Flag250
546 -- Has_Implicit_Dereference Flag251
547 -- Is_Processed_Transient Flag252
548 -- Has_Anonymous_Master Flag253
549 -- Is_Implementation_Defined Flag254
550 -- Is_Predicate_Function Flag255
551 -- Is_Predicate_Function_M Flag256
552 -- Is_Invariant_Procedure Flag257
553 -- Has_Dynamic_Predicate_Aspect Flag258
554 -- Has_Static_Predicate_Aspect Flag259
555 -- Has_Loop_Entry_Attributes Flag260
557 -- Has_Delayed_Rep_Aspects Flag261
558 -- May_Inherit_Delayed_Rep_Aspects Flag262
559 -- Has_Visible_Refinement Flag263
560 -- Is_Discriminant_Check_Function Flag264
561 -- SPARK_Pragma_Inherited Flag265
562 -- SPARK_Aux_Pragma_Inherited Flag266
563 -- Has_Shift_Operator Flag267
564 -- Is_Independent Flag268
565 -- Has_Static_Predicate Flag269
566 -- Stores_Attribute_Old_Prefix Flag270
568 -- (Has_Protected) Flag271
569 -- (SSO_Set_Low_By_Default) Flag272
570 -- (SSO_Set_High_By_Default) Flag273
572 -- Is_Generic_Actual_Subprogram Flag274
573 -- No_Predicate_On_Actual Flag275
574 -- No_Dynamic_Predicate_On_Actual Flag276
590 -- Note: Flag287-317 are defined in atree.ads/adb, but not yet in atree.h
592 -----------------------
593 -- Local subprograms --
594 -----------------------
597 (State_Id
: Entity_Id
;
598 Option_Nam
: Name_Id
) return Boolean;
599 -- Determine whether abstract state State_Id has particular option denoted
600 -- by the name Option_Nam.
606 function Float_Rep
(Id
: E
) return F
is
607 pragma Assert
(Is_Floating_Point_Type
(Id
));
609 return F
'Val (UI_To_Int
(Uint10
(Base_Type
(Id
))));
617 (State_Id
: Entity_Id
;
618 Option_Nam
: Name_Id
) return Boolean
620 Decl
: constant Node_Id
:= Parent
(State_Id
);
625 pragma Assert
(Ekind
(State_Id
) = E_Abstract_State
);
627 -- The declaration of abstract states with options appear as an
628 -- extension aggregate. If this is not the case, the option is not
631 if Nkind
(Decl
) /= N_Extension_Aggregate
then
637 Opt
:= First
(Expressions
(Decl
));
638 while Present
(Opt
) loop
640 -- Currently the only simple option allowed is External
642 if Nkind
(Opt
) = N_Identifier
643 and then Chars
(Opt
) = Name_External
644 and then Chars
(Opt
) = Option_Nam
652 -- Complex options with various specifiers
654 Opt
:= First
(Component_Associations
(Decl
));
655 while Present
(Opt
) loop
656 Opt_Nam
:= First
(Choices
(Opt
));
658 if Nkind
(Opt_Nam
) = N_Identifier
659 and then Chars
(Opt_Nam
) = Option_Nam
670 --------------------------------
671 -- Attribute Access Functions --
672 --------------------------------
674 function Abstract_States
(Id
: E
) return L
is
676 pragma Assert
(Ekind_In
(Id
, E_Generic_Package
, E_Package
));
680 function Accept_Address
(Id
: E
) return L
is
685 function Access_Disp_Table
(Id
: E
) return L
is
687 pragma Assert
(Ekind_In
(Id
, E_Record_Type
,
689 return Elist16
(Implementation_Base_Type
(Id
));
690 end Access_Disp_Table
;
692 function Actual_Subtype
(Id
: E
) return E
is
695 (Ekind_In
(Id
, E_Constant
, E_Variable
, E_Generic_In_Out_Parameter
)
696 or else Is_Formal
(Id
));
700 function Address_Taken
(Id
: E
) return B
is
705 function Alias
(Id
: E
) return E
is
708 (Is_Overloadable
(Id
) or else Ekind
(Id
) = E_Subprogram_Type
);
712 function Alignment
(Id
: E
) return U
is
714 pragma Assert
(Is_Type
(Id
)
715 or else Is_Formal
(Id
)
716 or else Ekind_In
(Id
, E_Loop_Parameter
,
723 function Associated_Formal_Package
(Id
: E
) return E
is
725 pragma Assert
(Ekind
(Id
) = E_Package
);
727 end Associated_Formal_Package
;
729 function Associated_Node_For_Itype
(Id
: E
) return N
is
732 end Associated_Node_For_Itype
;
734 function Associated_Storage_Pool
(Id
: E
) return E
is
736 pragma Assert
(Is_Access_Type
(Id
));
737 return Node22
(Root_Type
(Id
));
738 end Associated_Storage_Pool
;
740 function Barrier_Function
(Id
: E
) return N
is
742 pragma Assert
(Is_Entry
(Id
));
744 end Barrier_Function
;
746 function Block_Node
(Id
: E
) return N
is
748 pragma Assert
(Ekind
(Id
) = E_Block
);
752 function Body_Entity
(Id
: E
) return E
is
754 pragma Assert
(Ekind_In
(Id
, E_Package
, E_Generic_Package
));
758 function Body_Needed_For_SAL
(Id
: E
) return B
is
761 (Ekind
(Id
) = E_Package
762 or else Is_Subprogram
(Id
)
763 or else Is_Generic_Unit
(Id
));
765 end Body_Needed_For_SAL
;
767 function Body_References
(Id
: E
) return L
is
769 pragma Assert
(Ekind
(Id
) = E_Abstract_State
);
773 function BIP_Initialization_Call
(Id
: E
) return N
is
775 pragma Assert
(Ekind_In
(Id
, E_Constant
, E_Variable
));
777 end BIP_Initialization_Call
;
779 function C_Pass_By_Copy
(Id
: E
) return B
is
781 pragma Assert
(Is_Record_Type
(Id
));
782 return Flag125
(Implementation_Base_Type
(Id
));
785 function Can_Never_Be_Null
(Id
: E
) return B
is
788 end Can_Never_Be_Null
;
790 function Checks_May_Be_Suppressed
(Id
: E
) return B
is
793 end Checks_May_Be_Suppressed
;
795 function Class_Wide_Type
(Id
: E
) return E
is
797 pragma Assert
(Is_Type
(Id
));
801 function Cloned_Subtype
(Id
: E
) return E
is
803 pragma Assert
(Ekind_In
(Id
, E_Record_Subtype
, E_Class_Wide_Subtype
));
807 function Component_Bit_Offset
(Id
: E
) return U
is
809 pragma Assert
(Ekind_In
(Id
, E_Component
, E_Discriminant
));
811 end Component_Bit_Offset
;
813 function Component_Clause
(Id
: E
) return N
is
815 pragma Assert
(Ekind_In
(Id
, E_Component
, E_Discriminant
));
817 end Component_Clause
;
819 function Component_Size
(Id
: E
) return U
is
821 pragma Assert
(Is_Array_Type
(Id
));
822 return Uint22
(Implementation_Base_Type
(Id
));
825 function Component_Type
(Id
: E
) return E
is
827 pragma Assert
(Is_Array_Type
(Id
) or else Is_String_Type
(Id
));
828 return Node20
(Implementation_Base_Type
(Id
));
831 function Corresponding_Concurrent_Type
(Id
: E
) return E
is
833 pragma Assert
(Ekind
(Id
) = E_Record_Type
);
835 end Corresponding_Concurrent_Type
;
837 function Corresponding_Discriminant
(Id
: E
) return E
is
839 pragma Assert
(Ekind
(Id
) = E_Discriminant
);
841 end Corresponding_Discriminant
;
843 function Corresponding_Equality
(Id
: E
) return E
is
846 (Ekind
(Id
) = E_Function
847 and then not Comes_From_Source
(Id
)
848 and then Chars
(Id
) = Name_Op_Ne
);
850 end Corresponding_Equality
;
852 function Corresponding_Protected_Entry
(Id
: E
) return E
is
854 pragma Assert
(Ekind
(Id
) = E_Subprogram_Body
);
856 end Corresponding_Protected_Entry
;
858 function Corresponding_Record_Type
(Id
: E
) return E
is
860 pragma Assert
(Is_Concurrent_Type
(Id
));
862 end Corresponding_Record_Type
;
864 function Corresponding_Remote_Type
(Id
: E
) return E
is
867 end Corresponding_Remote_Type
;
869 function Current_Use_Clause
(Id
: E
) return E
is
871 pragma Assert
(Ekind
(Id
) = E_Package
or else Is_Type
(Id
));
873 end Current_Use_Clause
;
875 function Current_Value
(Id
: E
) return N
is
877 pragma Assert
(Ekind
(Id
) in Object_Kind
);
881 function CR_Discriminant
(Id
: E
) return E
is
886 function Debug_Info_Off
(Id
: E
) return B
is
891 function Debug_Renaming_Link
(Id
: E
) return E
is
894 end Debug_Renaming_Link
;
896 function Default_Aspect_Component_Value
(Id
: E
) return N
is
898 pragma Assert
(Is_Array_Type
(Id
));
899 return Node19
(Base_Type
(Id
));
900 end Default_Aspect_Component_Value
;
902 function Default_Aspect_Value
(Id
: E
) return N
is
904 pragma Assert
(Is_Scalar_Type
(Id
));
905 return Node19
(Base_Type
(Id
));
906 end Default_Aspect_Value
;
908 function Default_Expr_Function
(Id
: E
) return E
is
910 pragma Assert
(Is_Formal
(Id
));
912 end Default_Expr_Function
;
914 function Default_Expressions_Processed
(Id
: E
) return B
is
917 end Default_Expressions_Processed
;
919 function Default_Value
(Id
: E
) return N
is
921 pragma Assert
(Is_Formal
(Id
));
925 function Delay_Cleanups
(Id
: E
) return B
is
930 function Delay_Subprogram_Descriptors
(Id
: E
) return B
is
933 end Delay_Subprogram_Descriptors
;
935 function Delta_Value
(Id
: E
) return R
is
937 pragma Assert
(Is_Fixed_Point_Type
(Id
));
941 function Dependent_Instances
(Id
: E
) return L
is
943 pragma Assert
(Is_Generic_Instance
(Id
));
945 end Dependent_Instances
;
947 function Depends_On_Private
(Id
: E
) return B
is
949 pragma Assert
(Nkind
(Id
) in N_Entity
);
951 end Depends_On_Private
;
953 function Derived_Type_Link
(Id
: E
) return E
is
955 pragma Assert
(Is_Type
(Id
));
956 return Node31
(Base_Type
(Id
));
957 end Derived_Type_Link
;
959 function Digits_Value
(Id
: E
) return U
is
962 (Is_Floating_Point_Type
(Id
)
963 or else Is_Decimal_Fixed_Point_Type
(Id
));
967 function Direct_Primitive_Operations
(Id
: E
) return L
is
969 pragma Assert
(Is_Tagged_Type
(Id
));
971 end Direct_Primitive_Operations
;
973 function Directly_Designated_Type
(Id
: E
) return E
is
975 pragma Assert
(Is_Access_Type
(Id
));
977 end Directly_Designated_Type
;
979 function Discard_Names
(Id
: E
) return B
is
984 function Discriminal
(Id
: E
) return E
is
986 pragma Assert
(Ekind
(Id
) = E_Discriminant
);
990 function Discriminal_Link
(Id
: E
) return N
is
993 end Discriminal_Link
;
995 function Discriminant_Checking_Func
(Id
: E
) return E
is
997 pragma Assert
(Ekind
(Id
) = E_Component
);
999 end Discriminant_Checking_Func
;
1001 function Discriminant_Constraint
(Id
: E
) return L
is
1003 pragma Assert
(Is_Composite_Type
(Id
) and then Has_Discriminants
(Id
));
1004 return Elist21
(Id
);
1005 end Discriminant_Constraint
;
1007 function Discriminant_Default_Value
(Id
: E
) return N
is
1009 pragma Assert
(Ekind
(Id
) = E_Discriminant
);
1011 end Discriminant_Default_Value
;
1013 function Discriminant_Number
(Id
: E
) return U
is
1015 pragma Assert
(Ekind
(Id
) = E_Discriminant
);
1017 end Discriminant_Number
;
1019 function Dispatch_Table_Wrappers
(Id
: E
) return L
is
1021 pragma Assert
(Ekind_In
(Id
, E_Record_Type
,
1023 return Elist26
(Implementation_Base_Type
(Id
));
1024 end Dispatch_Table_Wrappers
;
1026 function DT_Entry_Count
(Id
: E
) return U
is
1028 pragma Assert
(Ekind
(Id
) = E_Component
and then Is_Tag
(Id
));
1032 function DT_Offset_To_Top_Func
(Id
: E
) return E
is
1034 pragma Assert
(Ekind
(Id
) = E_Component
and then Is_Tag
(Id
));
1036 end DT_Offset_To_Top_Func
;
1038 function DT_Position
(Id
: E
) return U
is
1040 pragma Assert
(Ekind_In
(Id
, E_Function
, E_Procedure
)
1041 and then Present
(DTC_Entity
(Id
)));
1045 function DTC_Entity
(Id
: E
) return E
is
1047 pragma Assert
(Ekind_In
(Id
, E_Function
, E_Procedure
));
1051 function Elaborate_Body_Desirable
(Id
: E
) return B
is
1053 pragma Assert
(Ekind
(Id
) = E_Package
);
1054 return Flag210
(Id
);
1055 end Elaborate_Body_Desirable
;
1057 function Elaboration_Entity
(Id
: E
) return E
is
1062 Ekind
(Id
) = E_Package
1064 Is_Generic_Unit
(Id
));
1066 end Elaboration_Entity
;
1068 function Elaboration_Entity_Required
(Id
: E
) return B
is
1073 Ekind
(Id
) = E_Package
1075 Is_Generic_Unit
(Id
));
1076 return Flag174
(Id
);
1077 end Elaboration_Entity_Required
;
1079 function Encapsulating_State
(Id
: E
) return N
is
1081 pragma Assert
(Ekind_In
(Id
, E_Abstract_State
, E_Variable
));
1083 end Encapsulating_State
;
1085 function Enclosing_Scope
(Id
: E
) return E
is
1088 end Enclosing_Scope
;
1090 function Entry_Accepted
(Id
: E
) return B
is
1092 pragma Assert
(Is_Entry
(Id
));
1093 return Flag152
(Id
);
1096 function Entry_Bodies_Array
(Id
: E
) return E
is
1099 end Entry_Bodies_Array
;
1101 function Entry_Cancel_Parameter
(Id
: E
) return E
is
1104 end Entry_Cancel_Parameter
;
1106 function Entry_Component
(Id
: E
) return E
is
1109 end Entry_Component
;
1111 function Entry_Formal
(Id
: E
) return E
is
1116 function Entry_Index_Constant
(Id
: E
) return N
is
1118 pragma Assert
(Ekind
(Id
) = E_Entry_Index_Parameter
);
1120 end Entry_Index_Constant
;
1122 function Contract
(Id
: E
) return N
is
1125 (Ekind_In
(Id
, E_Entry
,
1132 or else Is_Subprogram_Or_Generic_Subprogram
(Id
));
1136 function Entry_Parameters_Type
(Id
: E
) return E
is
1139 end Entry_Parameters_Type
;
1141 function Enum_Pos_To_Rep
(Id
: E
) return E
is
1143 pragma Assert
(Ekind
(Id
) = E_Enumeration_Type
);
1145 end Enum_Pos_To_Rep
;
1147 function Enumeration_Pos
(Id
: E
) return Uint
is
1149 pragma Assert
(Ekind
(Id
) = E_Enumeration_Literal
);
1151 end Enumeration_Pos
;
1153 function Enumeration_Rep
(Id
: E
) return U
is
1155 pragma Assert
(Ekind
(Id
) = E_Enumeration_Literal
);
1157 end Enumeration_Rep
;
1159 function Enumeration_Rep_Expr
(Id
: E
) return N
is
1161 pragma Assert
(Ekind
(Id
) = E_Enumeration_Literal
);
1163 end Enumeration_Rep_Expr
;
1165 function Equivalent_Type
(Id
: E
) return E
is
1168 (Ekind_In
(Id
, E_Class_Wide_Type
,
1169 E_Class_Wide_Subtype
,
1170 E_Access_Subprogram_Type
,
1171 E_Access_Protected_Subprogram_Type
,
1172 E_Anonymous_Access_Protected_Subprogram_Type
,
1173 E_Access_Subprogram_Type
,
1176 end Equivalent_Type
;
1178 function Esize
(Id
: E
) return Uint
is
1183 function Extra_Accessibility
(Id
: E
) return E
is
1186 (Is_Formal
(Id
) or else Ekind_In
(Id
, E_Variable
, E_Constant
));
1188 end Extra_Accessibility
;
1190 function Extra_Accessibility_Of_Result
(Id
: E
) return E
is
1192 pragma Assert
(Ekind_In
(Id
, E_Function
, E_Operator
, E_Subprogram_Type
));
1194 end Extra_Accessibility_Of_Result
;
1196 function Extra_Constrained
(Id
: E
) return E
is
1198 pragma Assert
(Is_Formal
(Id
) or else Ekind
(Id
) = E_Variable
);
1200 end Extra_Constrained
;
1202 function Extra_Formal
(Id
: E
) return E
is
1207 function Extra_Formals
(Id
: E
) return E
is
1210 (Is_Overloadable
(Id
)
1211 or else Ekind_In
(Id
, E_Entry_Family
,
1213 E_Subprogram_Type
));
1217 function Can_Use_Internal_Rep
(Id
: E
) return B
is
1219 pragma Assert
(Is_Access_Subprogram_Type
(Base_Type
(Id
)));
1220 return Flag229
(Base_Type
(Id
));
1221 end Can_Use_Internal_Rep
;
1223 function Finalization_Master
(Id
: E
) return E
is
1225 pragma Assert
(Is_Access_Type
(Id
));
1226 return Node23
(Root_Type
(Id
));
1227 end Finalization_Master
;
1229 function Finalize_Storage_Only
(Id
: E
) return B
is
1231 pragma Assert
(Is_Type
(Id
));
1232 return Flag158
(Base_Type
(Id
));
1233 end Finalize_Storage_Only
;
1235 function Finalizer
(Id
: E
) return E
is
1237 pragma Assert
(Ekind_In
(Id
, E_Package
, E_Package_Body
));
1241 function First_Entity
(Id
: E
) return E
is
1246 function First_Exit_Statement
(Id
: E
) return N
is
1248 pragma Assert
(Ekind
(Id
) = E_Loop
);
1250 end First_Exit_Statement
;
1252 function First_Index
(Id
: E
) return N
is
1254 pragma Assert
(Is_Array_Type
(Id
) or else Is_String_Type
(Id
));
1258 function First_Literal
(Id
: E
) return E
is
1260 pragma Assert
(Is_Enumeration_Type
(Id
));
1264 function First_Private_Entity
(Id
: E
) return E
is
1266 pragma Assert
(Ekind_In
(Id
, E_Package
, E_Generic_Package
)
1267 or else Ekind
(Id
) in Concurrent_Kind
);
1269 end First_Private_Entity
;
1271 function First_Rep_Item
(Id
: E
) return E
is
1276 function Freeze_Node
(Id
: E
) return N
is
1281 function From_Limited_With
(Id
: E
) return B
is
1283 return Flag159
(Id
);
1284 end From_Limited_With
;
1286 function Full_View
(Id
: E
) return E
is
1288 pragma Assert
(Is_Type
(Id
) or else Ekind
(Id
) = E_Constant
);
1292 function Generic_Homonym
(Id
: E
) return E
is
1294 pragma Assert
(Ekind
(Id
) = E_Generic_Package
);
1296 end Generic_Homonym
;
1298 function Generic_Renamings
(Id
: E
) return L
is
1300 return Elist23
(Id
);
1301 end Generic_Renamings
;
1303 function Handler_Records
(Id
: E
) return S
is
1306 end Handler_Records
;
1308 function Has_Aliased_Components
(Id
: E
) return B
is
1310 return Flag135
(Implementation_Base_Type
(Id
));
1311 end Has_Aliased_Components
;
1313 function Has_Alignment_Clause
(Id
: E
) return B
is
1316 end Has_Alignment_Clause
;
1318 function Has_All_Calls_Remote
(Id
: E
) return B
is
1321 end Has_All_Calls_Remote
;
1323 function Has_Anonymous_Master
(Id
: E
) return B
is
1326 (Ekind_In
(Id
, E_Function
, E_Package
, E_Package_Body
, E_Procedure
));
1327 return Flag253
(Id
);
1328 end Has_Anonymous_Master
;
1330 function Has_Atomic_Components
(Id
: E
) return B
is
1332 return Flag86
(Implementation_Base_Type
(Id
));
1333 end Has_Atomic_Components
;
1335 function Has_Biased_Representation
(Id
: E
) return B
is
1337 return Flag139
(Id
);
1338 end Has_Biased_Representation
;
1340 function Has_Completion
(Id
: E
) return B
is
1345 function Has_Completion_In_Body
(Id
: E
) return B
is
1347 pragma Assert
(Is_Type
(Id
));
1349 end Has_Completion_In_Body
;
1351 function Has_Complex_Representation
(Id
: E
) return B
is
1353 pragma Assert
(Is_Type
(Id
));
1354 return Flag140
(Implementation_Base_Type
(Id
));
1355 end Has_Complex_Representation
;
1357 function Has_Component_Size_Clause
(Id
: E
) return B
is
1359 pragma Assert
(Is_Array_Type
(Id
));
1360 return Flag68
(Implementation_Base_Type
(Id
));
1361 end Has_Component_Size_Clause
;
1363 function Has_Constrained_Partial_View
(Id
: E
) return B
is
1365 pragma Assert
(Is_Type
(Id
));
1366 return Flag187
(Id
);
1367 end Has_Constrained_Partial_View
;
1369 function Has_Controlled_Component
(Id
: E
) return B
is
1371 return Flag43
(Base_Type
(Id
));
1372 end Has_Controlled_Component
;
1374 function Has_Contiguous_Rep
(Id
: E
) return B
is
1376 return Flag181
(Id
);
1377 end Has_Contiguous_Rep
;
1379 function Has_Controlling_Result
(Id
: E
) return B
is
1382 end Has_Controlling_Result
;
1384 function Has_Convention_Pragma
(Id
: E
) return B
is
1386 return Flag119
(Id
);
1387 end Has_Convention_Pragma
;
1389 function Has_Default_Aspect
(Id
: E
) return B
is
1391 return Flag39
(Base_Type
(Id
));
1392 end Has_Default_Aspect
;
1394 function Has_Default_Init_Cond
(Id
: E
) return B
is
1397 end Has_Default_Init_Cond
;
1399 function Has_Delayed_Aspects
(Id
: E
) return B
is
1401 pragma Assert
(Nkind
(Id
) in N_Entity
);
1402 return Flag200
(Id
);
1403 end Has_Delayed_Aspects
;
1405 function Has_Delayed_Freeze
(Id
: E
) return B
is
1407 pragma Assert
(Nkind
(Id
) in N_Entity
);
1409 end Has_Delayed_Freeze
;
1411 function Has_Delayed_Rep_Aspects
(Id
: E
) return B
is
1413 pragma Assert
(Nkind
(Id
) in N_Entity
);
1414 return Flag261
(Id
);
1415 end Has_Delayed_Rep_Aspects
;
1417 function Has_Discriminants
(Id
: E
) return B
is
1419 pragma Assert
(Nkind
(Id
) in N_Entity
);
1421 end Has_Discriminants
;
1423 function Has_Dispatch_Table
(Id
: E
) return B
is
1425 pragma Assert
(Is_Tagged_Type
(Id
));
1426 return Flag220
(Id
);
1427 end Has_Dispatch_Table
;
1429 function Has_Dynamic_Predicate_Aspect
(Id
: E
) return B
is
1431 pragma Assert
(Is_Type
(Id
));
1432 return Flag258
(Id
);
1433 end Has_Dynamic_Predicate_Aspect
;
1435 function Has_Enumeration_Rep_Clause
(Id
: E
) return B
is
1437 pragma Assert
(Is_Enumeration_Type
(Id
));
1439 end Has_Enumeration_Rep_Clause
;
1441 function Has_Exit
(Id
: E
) return B
is
1446 function Has_Forward_Instantiation
(Id
: E
) return B
is
1448 return Flag175
(Id
);
1449 end Has_Forward_Instantiation
;
1451 function Has_Fully_Qualified_Name
(Id
: E
) return B
is
1453 return Flag173
(Id
);
1454 end Has_Fully_Qualified_Name
;
1456 function Has_Gigi_Rep_Item
(Id
: E
) return B
is
1459 end Has_Gigi_Rep_Item
;
1461 function Has_Homonym
(Id
: E
) return B
is
1466 function Has_Implicit_Dereference
(Id
: E
) return B
is
1468 return Flag251
(Id
);
1469 end Has_Implicit_Dereference
;
1471 function Has_Independent_Components
(Id
: E
) return B
is
1473 pragma Assert
(Is_Array_Type
(Id
) or else Is_Record_Type
(Id
));
1474 return Flag34
(Base_Type
(Id
));
1475 end Has_Independent_Components
;
1477 function Has_Inheritable_Invariants
(Id
: E
) return B
is
1479 pragma Assert
(Is_Type
(Id
));
1480 return Flag248
(Id
);
1481 end Has_Inheritable_Invariants
;
1483 function Has_Inherited_Default_Init_Cond
(Id
: E
) return B
is
1485 pragma Assert
(Is_Type
(Id
));
1486 return Flag133
(Id
);
1487 end Has_Inherited_Default_Init_Cond
;
1489 function Has_Initial_Value
(Id
: E
) return B
is
1491 pragma Assert
(Ekind
(Id
) = E_Variable
or else Is_Formal
(Id
));
1492 return Flag219
(Id
);
1493 end Has_Initial_Value
;
1495 function Has_Invariants
(Id
: E
) return B
is
1497 pragma Assert
(Is_Type
(Id
));
1498 return Flag232
(Id
);
1501 function Has_Loop_Entry_Attributes
(Id
: E
) return B
is
1503 pragma Assert
(Ekind
(Id
) = E_Loop
);
1504 return Flag260
(Id
);
1505 end Has_Loop_Entry_Attributes
;
1507 function Has_Machine_Radix_Clause
(Id
: E
) return B
is
1509 pragma Assert
(Is_Decimal_Fixed_Point_Type
(Id
));
1511 end Has_Machine_Radix_Clause
;
1513 function Has_Master_Entity
(Id
: E
) return B
is
1516 end Has_Master_Entity
;
1518 function Has_Missing_Return
(Id
: E
) return B
is
1520 pragma Assert
(Ekind_In
(Id
, E_Function
, E_Generic_Function
));
1521 return Flag142
(Id
);
1522 end Has_Missing_Return
;
1524 function Has_Nested_Block_With_Handler
(Id
: E
) return B
is
1526 return Flag101
(Id
);
1527 end Has_Nested_Block_With_Handler
;
1529 function Has_Non_Standard_Rep
(Id
: E
) return B
is
1531 return Flag75
(Implementation_Base_Type
(Id
));
1532 end Has_Non_Standard_Rep
;
1534 function Has_Object_Size_Clause
(Id
: E
) return B
is
1536 pragma Assert
(Is_Type
(Id
));
1537 return Flag172
(Id
);
1538 end Has_Object_Size_Clause
;
1540 function Has_Out_Or_In_Out_Parameter
(Id
: E
) return B
is
1542 pragma Assert
(Ekind_In
(Id
, E_Function
, E_Generic_Function
));
1543 return Flag110
(Id
);
1544 end Has_Out_Or_In_Out_Parameter
;
1546 function Has_Per_Object_Constraint
(Id
: E
) return B
is
1548 return Flag154
(Id
);
1549 end Has_Per_Object_Constraint
;
1551 function Has_Postconditions
(Id
: E
) return B
is
1553 pragma Assert
(Is_Subprogram
(Id
));
1554 return Flag240
(Id
);
1555 end Has_Postconditions
;
1557 function Has_Pragma_Controlled
(Id
: E
) return B
is
1559 pragma Assert
(Is_Access_Type
(Id
));
1560 return Flag27
(Implementation_Base_Type
(Id
));
1561 end Has_Pragma_Controlled
;
1563 function Has_Pragma_Elaborate_Body
(Id
: E
) return B
is
1565 return Flag150
(Id
);
1566 end Has_Pragma_Elaborate_Body
;
1568 function Has_Pragma_Inline
(Id
: E
) return B
is
1570 return Flag157
(Id
);
1571 end Has_Pragma_Inline
;
1573 function Has_Pragma_Inline_Always
(Id
: E
) return B
is
1575 return Flag230
(Id
);
1576 end Has_Pragma_Inline_Always
;
1578 function Has_Pragma_No_Inline
(Id
: E
) return B
is
1580 return Flag201
(Id
);
1581 end Has_Pragma_No_Inline
;
1583 function Has_Pragma_Ordered
(Id
: E
) return B
is
1585 pragma Assert
(Is_Enumeration_Type
(Id
));
1586 return Flag198
(Implementation_Base_Type
(Id
));
1587 end Has_Pragma_Ordered
;
1589 function Has_Pragma_Pack
(Id
: E
) return B
is
1591 pragma Assert
(Is_Record_Type
(Id
) or else Is_Array_Type
(Id
));
1592 return Flag121
(Implementation_Base_Type
(Id
));
1593 end Has_Pragma_Pack
;
1595 function Has_Pragma_Preelab_Init
(Id
: E
) return B
is
1597 return Flag221
(Id
);
1598 end Has_Pragma_Preelab_Init
;
1600 function Has_Pragma_Pure
(Id
: E
) return B
is
1602 return Flag203
(Id
);
1603 end Has_Pragma_Pure
;
1605 function Has_Pragma_Pure_Function
(Id
: E
) return B
is
1607 return Flag179
(Id
);
1608 end Has_Pragma_Pure_Function
;
1610 function Has_Pragma_Thread_Local_Storage
(Id
: E
) return B
is
1612 return Flag169
(Id
);
1613 end Has_Pragma_Thread_Local_Storage
;
1615 function Has_Pragma_Unmodified
(Id
: E
) return B
is
1617 return Flag233
(Id
);
1618 end Has_Pragma_Unmodified
;
1620 function Has_Pragma_Unreferenced
(Id
: E
) return B
is
1622 return Flag180
(Id
);
1623 end Has_Pragma_Unreferenced
;
1625 function Has_Pragma_Unreferenced_Objects
(Id
: E
) return B
is
1627 pragma Assert
(Is_Type
(Id
));
1628 return Flag212
(Id
);
1629 end Has_Pragma_Unreferenced_Objects
;
1631 function Has_Predicates
(Id
: E
) return B
is
1633 pragma Assert
(Is_Type
(Id
));
1634 return Flag250
(Id
);
1637 function Has_Primitive_Operations
(Id
: E
) return B
is
1639 pragma Assert
(Is_Type
(Id
));
1640 return Flag120
(Base_Type
(Id
));
1641 end Has_Primitive_Operations
;
1643 function Has_Private_Ancestor
(Id
: E
) return B
is
1645 return Flag151
(Id
);
1646 end Has_Private_Ancestor
;
1648 function Has_Private_Declaration
(Id
: E
) return B
is
1650 return Flag155
(Id
);
1651 end Has_Private_Declaration
;
1653 function Has_Protected
(Id
: E
) return B
is
1655 return Flag271
(Base_Type
(Id
));
1658 function Has_Qualified_Name
(Id
: E
) return B
is
1660 return Flag161
(Id
);
1661 end Has_Qualified_Name
;
1663 function Has_RACW
(Id
: E
) return B
is
1665 pragma Assert
(Ekind
(Id
) = E_Package
);
1666 return Flag214
(Id
);
1669 function Has_Record_Rep_Clause
(Id
: E
) return B
is
1671 pragma Assert
(Is_Record_Type
(Id
));
1672 return Flag65
(Implementation_Base_Type
(Id
));
1673 end Has_Record_Rep_Clause
;
1675 function Has_Recursive_Call
(Id
: E
) return B
is
1677 pragma Assert
(Is_Subprogram
(Id
));
1678 return Flag143
(Id
);
1679 end Has_Recursive_Call
;
1681 function Has_Shift_Operator
(Id
: E
) return B
is
1683 pragma Assert
(Is_Integer_Type
(Id
));
1684 return Flag267
(Base_Type
(Id
));
1685 end Has_Shift_Operator
;
1687 function Has_Size_Clause
(Id
: E
) return B
is
1690 end Has_Size_Clause
;
1692 function Has_Small_Clause
(Id
: E
) return B
is
1695 end Has_Small_Clause
;
1697 function Has_Specified_Layout
(Id
: E
) return B
is
1699 pragma Assert
(Is_Type
(Id
));
1700 return Flag100
(Implementation_Base_Type
(Id
));
1701 end Has_Specified_Layout
;
1703 function Has_Specified_Stream_Input
(Id
: E
) return B
is
1705 pragma Assert
(Is_Type
(Id
));
1706 return Flag190
(Id
);
1707 end Has_Specified_Stream_Input
;
1709 function Has_Specified_Stream_Output
(Id
: E
) return B
is
1711 pragma Assert
(Is_Type
(Id
));
1712 return Flag191
(Id
);
1713 end Has_Specified_Stream_Output
;
1715 function Has_Specified_Stream_Read
(Id
: E
) return B
is
1717 pragma Assert
(Is_Type
(Id
));
1718 return Flag192
(Id
);
1719 end Has_Specified_Stream_Read
;
1721 function Has_Specified_Stream_Write
(Id
: E
) return B
is
1723 pragma Assert
(Is_Type
(Id
));
1724 return Flag193
(Id
);
1725 end Has_Specified_Stream_Write
;
1727 function Has_Static_Discriminants
(Id
: E
) return B
is
1729 pragma Assert
(Is_Type
(Id
));
1730 return Flag211
(Id
);
1731 end Has_Static_Discriminants
;
1733 function Has_Static_Predicate
(Id
: E
) return B
is
1735 pragma Assert
(Is_Type
(Id
));
1736 return Flag269
(Id
);
1737 end Has_Static_Predicate
;
1739 function Has_Static_Predicate_Aspect
(Id
: E
) return B
is
1741 pragma Assert
(Is_Type
(Id
));
1742 return Flag259
(Id
);
1743 end Has_Static_Predicate_Aspect
;
1745 function Has_Storage_Size_Clause
(Id
: E
) return B
is
1747 pragma Assert
(Is_Access_Type
(Id
) or else Is_Task_Type
(Id
));
1748 return Flag23
(Implementation_Base_Type
(Id
));
1749 end Has_Storage_Size_Clause
;
1751 function Has_Stream_Size_Clause
(Id
: E
) return B
is
1753 return Flag184
(Id
);
1754 end Has_Stream_Size_Clause
;
1756 function Has_Task
(Id
: E
) return B
is
1758 return Flag30
(Base_Type
(Id
));
1761 function Has_Thunks
(Id
: E
) return B
is
1763 return Flag228
(Id
);
1766 function Has_Unchecked_Union
(Id
: E
) return B
is
1768 return Flag123
(Base_Type
(Id
));
1769 end Has_Unchecked_Union
;
1771 function Has_Unknown_Discriminants
(Id
: E
) return B
is
1773 pragma Assert
(Is_Type
(Id
));
1775 end Has_Unknown_Discriminants
;
1777 function Has_Up_Level_Access
(Id
: E
) return B
is
1780 (Ekind_In
(Id
, E_Variable
, E_Constant
, E_Loop_Parameter
));
1781 return Flag215
(Id
);
1782 end Has_Up_Level_Access
;
1784 function Has_Visible_Refinement
(Id
: E
) return B
is
1786 pragma Assert
(Ekind
(Id
) = E_Abstract_State
);
1787 return Flag263
(Id
);
1788 end Has_Visible_Refinement
;
1790 function Has_Volatile_Components
(Id
: E
) return B
is
1792 return Flag87
(Implementation_Base_Type
(Id
));
1793 end Has_Volatile_Components
;
1795 function Has_Xref_Entry
(Id
: E
) return B
is
1797 return Flag182
(Id
);
1800 function Hiding_Loop_Variable
(Id
: E
) return E
is
1802 pragma Assert
(Ekind
(Id
) = E_Variable
);
1804 end Hiding_Loop_Variable
;
1806 function Homonym
(Id
: E
) return E
is
1811 function Import_Pragma
(Id
: E
) return E
is
1813 pragma Assert
(Is_Subprogram
(Id
));
1817 function Interface_Alias
(Id
: E
) return E
is
1819 pragma Assert
(Is_Subprogram
(Id
));
1821 end Interface_Alias
;
1823 function Interfaces
(Id
: E
) return L
is
1825 pragma Assert
(Is_Record_Type
(Id
));
1826 return Elist25
(Id
);
1829 function In_Package_Body
(Id
: E
) return B
is
1832 end In_Package_Body
;
1834 function In_Private_Part
(Id
: E
) return B
is
1837 end In_Private_Part
;
1839 function In_Use
(Id
: E
) return B
is
1841 pragma Assert
(Nkind
(Id
) in N_Entity
);
1845 function Initialization_Statements
(Id
: E
) return N
is
1847 pragma Assert
(Ekind_In
(Id
, E_Constant
, E_Variable
));
1849 end Initialization_Statements
;
1851 function Inner_Instances
(Id
: E
) return L
is
1853 return Elist23
(Id
);
1854 end Inner_Instances
;
1856 function Interface_Name
(Id
: E
) return N
is
1861 function Is_Abstract_Subprogram
(Id
: E
) return B
is
1863 pragma Assert
(Is_Overloadable
(Id
));
1865 end Is_Abstract_Subprogram
;
1867 function Is_Abstract_Type
(Id
: E
) return B
is
1869 pragma Assert
(Is_Type
(Id
));
1870 return Flag146
(Id
);
1871 end Is_Abstract_Type
;
1873 function Is_Local_Anonymous_Access
(Id
: E
) return B
is
1875 pragma Assert
(Is_Access_Type
(Id
));
1876 return Flag194
(Id
);
1877 end Is_Local_Anonymous_Access
;
1879 function Is_Access_Constant
(Id
: E
) return B
is
1881 pragma Assert
(Is_Access_Type
(Id
));
1883 end Is_Access_Constant
;
1885 function Is_Ada_2005_Only
(Id
: E
) return B
is
1887 return Flag185
(Id
);
1888 end Is_Ada_2005_Only
;
1890 function Is_Ada_2012_Only
(Id
: E
) return B
is
1892 return Flag199
(Id
);
1893 end Is_Ada_2012_Only
;
1895 function Is_Aliased
(Id
: E
) return B
is
1897 pragma Assert
(Nkind
(Id
) in N_Entity
);
1901 function Is_Asynchronous
(Id
: E
) return B
is
1903 pragma Assert
(Ekind
(Id
) = E_Procedure
or else Is_Type
(Id
));
1905 end Is_Asynchronous
;
1907 function Is_Atomic
(Id
: E
) return B
is
1912 function Is_Bit_Packed_Array
(Id
: E
) return B
is
1914 return Flag122
(Implementation_Base_Type
(Id
));
1915 end Is_Bit_Packed_Array
;
1917 function Is_Called
(Id
: E
) return B
is
1919 pragma Assert
(Ekind_In
(Id
, E_Procedure
, E_Function
));
1920 return Flag102
(Id
);
1923 function Is_Character_Type
(Id
: E
) return B
is
1926 end Is_Character_Type
;
1928 function Is_Child_Unit
(Id
: E
) return B
is
1933 function Is_Class_Wide_Equivalent_Type
(Id
: E
) return B
is
1936 end Is_Class_Wide_Equivalent_Type
;
1938 function Is_Compilation_Unit
(Id
: E
) return B
is
1940 return Flag149
(Id
);
1941 end Is_Compilation_Unit
;
1943 function Is_Completely_Hidden
(Id
: E
) return B
is
1945 pragma Assert
(Ekind
(Id
) = E_Discriminant
);
1946 return Flag103
(Id
);
1947 end Is_Completely_Hidden
;
1949 function Is_Constr_Subt_For_U_Nominal
(Id
: E
) return B
is
1952 end Is_Constr_Subt_For_U_Nominal
;
1954 function Is_Constr_Subt_For_UN_Aliased
(Id
: E
) return B
is
1956 return Flag141
(Id
);
1957 end Is_Constr_Subt_For_UN_Aliased
;
1959 function Is_Constrained
(Id
: E
) return B
is
1961 pragma Assert
(Nkind
(Id
) in N_Entity
);
1965 function Is_Constructor
(Id
: E
) return B
is
1970 function Is_Controlled
(Id
: E
) return B
is
1972 return Flag42
(Base_Type
(Id
));
1975 function Is_Controlling_Formal
(Id
: E
) return B
is
1977 pragma Assert
(Is_Formal
(Id
));
1979 end Is_Controlling_Formal
;
1981 function Is_CPP_Class
(Id
: E
) return B
is
1986 function Is_Default_Init_Cond_Procedure
(Id
: E
) return B
is
1988 pragma Assert
(Ekind_In
(Id
, E_Function
, E_Procedure
));
1989 return Flag132
(Id
);
1990 end Is_Default_Init_Cond_Procedure
;
1992 function Is_Descendent_Of_Address
(Id
: E
) return B
is
1994 return Flag223
(Id
);
1995 end Is_Descendent_Of_Address
;
1997 function Is_Discrim_SO_Function
(Id
: E
) return B
is
1999 return Flag176
(Id
);
2000 end Is_Discrim_SO_Function
;
2002 function Is_Discriminant_Check_Function
(Id
: E
) return B
is
2004 return Flag264
(Id
);
2005 end Is_Discriminant_Check_Function
;
2007 function Is_Dispatch_Table_Entity
(Id
: E
) return B
is
2009 return Flag234
(Id
);
2010 end Is_Dispatch_Table_Entity
;
2012 function Is_Dispatching_Operation
(Id
: E
) return B
is
2014 pragma Assert
(Nkind
(Id
) in N_Entity
);
2016 end Is_Dispatching_Operation
;
2018 function Is_Eliminated
(Id
: E
) return B
is
2020 return Flag124
(Id
);
2023 function Is_Entry_Formal
(Id
: E
) return B
is
2026 end Is_Entry_Formal
;
2028 function Is_Exported
(Id
: E
) return B
is
2033 function Is_First_Subtype
(Id
: E
) return B
is
2036 end Is_First_Subtype
;
2038 function Is_For_Access_Subtype
(Id
: E
) return B
is
2040 pragma Assert
(Ekind_In
(Id
, E_Record_Subtype
, E_Private_Subtype
));
2041 return Flag118
(Id
);
2042 end Is_For_Access_Subtype
;
2044 function Is_Formal_Subprogram
(Id
: E
) return B
is
2046 return Flag111
(Id
);
2047 end Is_Formal_Subprogram
;
2049 function Is_Frozen
(Id
: E
) return B
is
2054 function Is_Generic_Actual_Subprogram
(Id
: E
) return B
is
2056 pragma Assert
(Ekind
(Id
) = E_Function
or else Ekind
(Id
) = E_Procedure
);
2057 return Flag274
(Id
);
2058 end Is_Generic_Actual_Subprogram
;
2060 function Is_Generic_Actual_Type
(Id
: E
) return B
is
2062 pragma Assert
(Is_Type
(Id
));
2064 end Is_Generic_Actual_Type
;
2066 function Is_Generic_Instance
(Id
: E
) return B
is
2068 return Flag130
(Id
);
2069 end Is_Generic_Instance
;
2071 function Is_Generic_Type
(Id
: E
) return B
is
2073 pragma Assert
(Nkind
(Id
) in N_Entity
);
2075 end Is_Generic_Type
;
2077 function Is_Hidden
(Id
: E
) return B
is
2082 function Is_Hidden_Non_Overridden_Subpgm
(Id
: E
) return B
is
2085 end Is_Hidden_Non_Overridden_Subpgm
;
2087 function Is_Hidden_Open_Scope
(Id
: E
) return B
is
2089 return Flag171
(Id
);
2090 end Is_Hidden_Open_Scope
;
2092 function Is_Immediately_Visible
(Id
: E
) return B
is
2094 pragma Assert
(Nkind
(Id
) in N_Entity
);
2096 end Is_Immediately_Visible
;
2098 function Is_Implementation_Defined
(Id
: E
) return B
is
2100 return Flag254
(Id
);
2101 end Is_Implementation_Defined
;
2103 function Is_Imported
(Id
: E
) return B
is
2108 function Is_Independent
(Id
: E
) return B
is
2110 pragma Assert
(Ekind
(Id
) = E_Component
);
2111 return Flag268
(Id
);
2114 function Is_Inlined
(Id
: E
) return B
is
2119 function Is_Inlined_Always
(Id
: E
) return B
is
2121 pragma Assert
(Ekind
(Id
) = E_Function
or else Ekind
(Id
) = E_Procedure
);
2123 end Is_Inlined_Always
;
2125 function Is_Interface
(Id
: E
) return B
is
2127 return Flag186
(Id
);
2130 function Is_Instantiated
(Id
: E
) return B
is
2132 return Flag126
(Id
);
2133 end Is_Instantiated
;
2135 function Is_Internal
(Id
: E
) return B
is
2137 pragma Assert
(Nkind
(Id
) in N_Entity
);
2141 function Is_Interrupt_Handler
(Id
: E
) return B
is
2143 pragma Assert
(Nkind
(Id
) in N_Entity
);
2145 end Is_Interrupt_Handler
;
2147 function Is_Intrinsic_Subprogram
(Id
: E
) return B
is
2150 end Is_Intrinsic_Subprogram
;
2152 function Is_Invariant_Procedure
(Id
: E
) return B
is
2154 pragma Assert
(Ekind_In
(Id
, E_Function
, E_Procedure
));
2155 return Flag257
(Id
);
2156 end Is_Invariant_Procedure
;
2158 function Is_Itype
(Id
: E
) return B
is
2163 function Is_Known_Non_Null
(Id
: E
) return B
is
2166 end Is_Known_Non_Null
;
2168 function Is_Known_Null
(Id
: E
) return B
is
2170 return Flag204
(Id
);
2173 function Is_Known_Valid
(Id
: E
) return B
is
2175 return Flag170
(Id
);
2178 function Is_Limited_Composite
(Id
: E
) return B
is
2180 return Flag106
(Id
);
2181 end Is_Limited_Composite
;
2183 function Is_Limited_Interface
(Id
: E
) return B
is
2185 return Flag197
(Id
);
2186 end Is_Limited_Interface
;
2188 function Is_Limited_Record
(Id
: E
) return B
is
2191 end Is_Limited_Record
;
2193 function Is_Machine_Code_Subprogram
(Id
: E
) return B
is
2195 pragma Assert
(Is_Subprogram
(Id
));
2196 return Flag137
(Id
);
2197 end Is_Machine_Code_Subprogram
;
2199 function Is_Non_Static_Subtype
(Id
: E
) return B
is
2201 pragma Assert
(Is_Type
(Id
));
2202 return Flag109
(Id
);
2203 end Is_Non_Static_Subtype
;
2205 function Is_Null_Init_Proc
(Id
: E
) return B
is
2207 pragma Assert
(Ekind
(Id
) = E_Procedure
);
2208 return Flag178
(Id
);
2209 end Is_Null_Init_Proc
;
2211 function Is_Obsolescent
(Id
: E
) return B
is
2213 return Flag153
(Id
);
2216 function Is_Only_Out_Parameter
(Id
: E
) return B
is
2218 pragma Assert
(Is_Formal
(Id
));
2219 return Flag226
(Id
);
2220 end Is_Only_Out_Parameter
;
2222 function Is_Package_Body_Entity
(Id
: E
) return B
is
2224 return Flag160
(Id
);
2225 end Is_Package_Body_Entity
;
2227 function Is_Packed
(Id
: E
) return B
is
2229 return Flag51
(Implementation_Base_Type
(Id
));
2232 function Is_Packed_Array_Impl_Type
(Id
: E
) return B
is
2234 return Flag138
(Id
);
2235 end Is_Packed_Array_Impl_Type
;
2237 function Is_Potentially_Use_Visible
(Id
: E
) return B
is
2239 pragma Assert
(Nkind
(Id
) in N_Entity
);
2241 end Is_Potentially_Use_Visible
;
2243 function Is_Predicate_Function
(Id
: E
) return B
is
2245 pragma Assert
(Ekind
(Id
) = E_Function
or else Ekind
(Id
) = E_Procedure
);
2246 return Flag255
(Id
);
2247 end Is_Predicate_Function
;
2249 function Is_Predicate_Function_M
(Id
: E
) return B
is
2251 pragma Assert
(Ekind
(Id
) = E_Function
or else Ekind
(Id
) = E_Procedure
);
2252 return Flag256
(Id
);
2253 end Is_Predicate_Function_M
;
2255 function Is_Preelaborated
(Id
: E
) return B
is
2258 end Is_Preelaborated
;
2260 function Is_Primitive
(Id
: E
) return B
is
2263 (Is_Overloadable
(Id
)
2264 or else Ekind_In
(Id
, E_Generic_Function
, E_Generic_Procedure
));
2265 return Flag218
(Id
);
2268 function Is_Primitive_Wrapper
(Id
: E
) return B
is
2270 pragma Assert
(Ekind_In
(Id
, E_Function
, E_Procedure
));
2271 return Flag195
(Id
);
2272 end Is_Primitive_Wrapper
;
2274 function Is_Private_Composite
(Id
: E
) return B
is
2276 pragma Assert
(Is_Type
(Id
));
2277 return Flag107
(Id
);
2278 end Is_Private_Composite
;
2280 function Is_Private_Descendant
(Id
: E
) return B
is
2283 end Is_Private_Descendant
;
2285 function Is_Private_Primitive
(Id
: E
) return B
is
2287 pragma Assert
(Ekind_In
(Id
, E_Function
, E_Procedure
));
2288 return Flag245
(Id
);
2289 end Is_Private_Primitive
;
2291 function Is_Processed_Transient
(Id
: E
) return B
is
2293 pragma Assert
(Ekind_In
(Id
, E_Constant
, E_Loop_Parameter
, E_Variable
));
2294 return Flag252
(Id
);
2295 end Is_Processed_Transient
;
2297 function Is_Public
(Id
: E
) return B
is
2299 pragma Assert
(Nkind
(Id
) in N_Entity
);
2303 function Is_Pure
(Id
: E
) return B
is
2308 function Is_Pure_Unit_Access_Type
(Id
: E
) return B
is
2310 pragma Assert
(Is_Access_Type
(Id
));
2311 return Flag189
(Id
);
2312 end Is_Pure_Unit_Access_Type
;
2314 function Is_RACW_Stub_Type
(Id
: E
) return B
is
2316 pragma Assert
(Is_Type
(Id
));
2317 return Flag244
(Id
);
2318 end Is_RACW_Stub_Type
;
2320 function Is_Raised
(Id
: E
) return B
is
2322 pragma Assert
(Ekind
(Id
) = E_Exception
);
2323 return Flag224
(Id
);
2326 function Is_Remote_Call_Interface
(Id
: E
) return B
is
2329 end Is_Remote_Call_Interface
;
2331 function Is_Remote_Types
(Id
: E
) return B
is
2334 end Is_Remote_Types
;
2336 function Is_Renaming_Of_Object
(Id
: E
) return B
is
2338 return Flag112
(Id
);
2339 end Is_Renaming_Of_Object
;
2341 function Is_Return_Object
(Id
: E
) return B
is
2343 return Flag209
(Id
);
2344 end Is_Return_Object
;
2346 function Is_Safe_To_Reevaluate
(Id
: E
) return B
is
2348 return Flag249
(Id
);
2349 end Is_Safe_To_Reevaluate
;
2351 function Is_Shared_Passive
(Id
: E
) return B
is
2354 end Is_Shared_Passive
;
2356 function Is_Statically_Allocated
(Id
: E
) return B
is
2359 end Is_Statically_Allocated
;
2361 function Is_Tag
(Id
: E
) return B
is
2363 pragma Assert
(Nkind
(Id
) in N_Entity
);
2367 function Is_Tagged_Type
(Id
: E
) return B
is
2372 function Is_Thunk
(Id
: E
) return B
is
2374 return Flag225
(Id
);
2377 function Is_Trivial_Subprogram
(Id
: E
) return B
is
2379 return Flag235
(Id
);
2380 end Is_Trivial_Subprogram
;
2382 function Is_True_Constant
(Id
: E
) return B
is
2384 return Flag163
(Id
);
2385 end Is_True_Constant
;
2387 function Is_Unchecked_Union
(Id
: E
) return B
is
2389 return Flag117
(Implementation_Base_Type
(Id
));
2390 end Is_Unchecked_Union
;
2392 function Is_Underlying_Record_View
(Id
: E
) return B
is
2394 return Flag246
(Id
);
2395 end Is_Underlying_Record_View
;
2397 function Is_Unsigned_Type
(Id
: E
) return B
is
2399 pragma Assert
(Is_Type
(Id
));
2400 return Flag144
(Id
);
2401 end Is_Unsigned_Type
;
2403 function Is_Valued_Procedure
(Id
: E
) return B
is
2405 pragma Assert
(Ekind
(Id
) = E_Procedure
);
2406 return Flag127
(Id
);
2407 end Is_Valued_Procedure
;
2409 function Is_Visible_Formal
(Id
: E
) return B
is
2411 return Flag206
(Id
);
2412 end Is_Visible_Formal
;
2414 function Is_Visible_Lib_Unit
(Id
: E
) return B
is
2416 return Flag116
(Id
);
2417 end Is_Visible_Lib_Unit
;
2419 function Is_Volatile
(Id
: E
) return B
is
2421 pragma Assert
(Nkind
(Id
) in N_Entity
);
2423 if Is_Type
(Id
) then
2424 return Flag16
(Base_Type
(Id
));
2430 function Itype_Printed
(Id
: E
) return B
is
2432 pragma Assert
(Is_Itype
(Id
));
2433 return Flag202
(Id
);
2436 function Kill_Elaboration_Checks
(Id
: E
) return B
is
2439 end Kill_Elaboration_Checks
;
2441 function Kill_Range_Checks
(Id
: E
) return B
is
2444 end Kill_Range_Checks
;
2446 function Known_To_Have_Preelab_Init
(Id
: E
) return B
is
2448 pragma Assert
(Is_Type
(Id
));
2449 return Flag207
(Id
);
2450 end Known_To_Have_Preelab_Init
;
2452 function Last_Aggregate_Assignment
(Id
: E
) return N
is
2454 pragma Assert
(Ekind_In
(Id
, E_Constant
, E_Variable
));
2456 end Last_Aggregate_Assignment
;
2458 function Last_Assignment
(Id
: E
) return N
is
2460 pragma Assert
(Is_Assignable
(Id
));
2462 end Last_Assignment
;
2464 function Last_Entity
(Id
: E
) return E
is
2469 function Limited_View
(Id
: E
) return E
is
2471 pragma Assert
(Ekind
(Id
) = E_Package
);
2475 function Linker_Section_Pragma
(Id
: E
) return N
is
2478 (Is_Type
(Id
) or else Is_Object
(Id
) or else Is_Subprogram
(Id
));
2480 end Linker_Section_Pragma
;
2482 function Lit_Indexes
(Id
: E
) return E
is
2484 pragma Assert
(Is_Enumeration_Type
(Id
));
2488 function Lit_Strings
(Id
: E
) return E
is
2490 pragma Assert
(Is_Enumeration_Type
(Id
));
2494 function Low_Bound_Tested
(Id
: E
) return B
is
2496 return Flag205
(Id
);
2497 end Low_Bound_Tested
;
2499 function Machine_Radix_10
(Id
: E
) return B
is
2501 pragma Assert
(Is_Decimal_Fixed_Point_Type
(Id
));
2503 end Machine_Radix_10
;
2505 function Master_Id
(Id
: E
) return E
is
2507 pragma Assert
(Is_Access_Type
(Id
));
2511 function Materialize_Entity
(Id
: E
) return B
is
2513 return Flag168
(Id
);
2514 end Materialize_Entity
;
2516 function May_Inherit_Delayed_Rep_Aspects
(Id
: E
) return B
is
2518 return Flag262
(Id
);
2519 end May_Inherit_Delayed_Rep_Aspects
;
2521 function Mechanism
(Id
: E
) return M
is
2523 pragma Assert
(Ekind
(Id
) = E_Function
or else Is_Formal
(Id
));
2524 return UI_To_Int
(Uint8
(Id
));
2527 function Modulus
(Id
: E
) return Uint
is
2529 pragma Assert
(Is_Modular_Integer_Type
(Id
));
2530 return Uint17
(Base_Type
(Id
));
2533 function Must_Be_On_Byte_Boundary
(Id
: E
) return B
is
2535 pragma Assert
(Is_Type
(Id
));
2536 return Flag183
(Id
);
2537 end Must_Be_On_Byte_Boundary
;
2539 function Must_Have_Preelab_Init
(Id
: E
) return B
is
2541 pragma Assert
(Is_Type
(Id
));
2542 return Flag208
(Id
);
2543 end Must_Have_Preelab_Init
;
2545 function Needs_Debug_Info
(Id
: E
) return B
is
2547 return Flag147
(Id
);
2548 end Needs_Debug_Info
;
2550 function Needs_No_Actuals
(Id
: E
) return B
is
2553 (Is_Overloadable
(Id
)
2554 or else Ekind_In
(Id
, E_Subprogram_Type
, E_Entry_Family
));
2556 end Needs_No_Actuals
;
2558 function Never_Set_In_Source
(Id
: E
) return B
is
2560 return Flag115
(Id
);
2561 end Never_Set_In_Source
;
2563 function Next_Inlined_Subprogram
(Id
: E
) return E
is
2566 end Next_Inlined_Subprogram
;
2568 function No_Dynamic_Predicate_On_Actual
(Id
: E
) return Boolean is
2570 pragma Assert
(Is_Discrete_Type
(Id
));
2571 return Flag276
(Id
);
2572 end No_Dynamic_Predicate_On_Actual
;
2574 function No_Pool_Assigned
(Id
: E
) return B
is
2576 pragma Assert
(Is_Access_Type
(Id
));
2577 return Flag131
(Root_Type
(Id
));
2578 end No_Pool_Assigned
;
2580 function No_Predicate_On_Actual
(Id
: E
) return Boolean is
2582 pragma Assert
(Is_Discrete_Type
(Id
));
2583 return Flag275
(Id
);
2584 end No_Predicate_On_Actual
;
2586 function No_Return
(Id
: E
) return B
is
2588 return Flag113
(Id
);
2591 function No_Strict_Aliasing
(Id
: E
) return B
is
2593 pragma Assert
(Is_Access_Type
(Id
));
2594 return Flag136
(Base_Type
(Id
));
2595 end No_Strict_Aliasing
;
2597 function Non_Binary_Modulus
(Id
: E
) return B
is
2599 pragma Assert
(Is_Type
(Id
));
2600 return Flag58
(Base_Type
(Id
));
2601 end Non_Binary_Modulus
;
2603 function Non_Limited_View
(Id
: E
) return E
is
2606 (Ekind
(Id
) in Incomplete_Kind
or else Ekind
(Id
) = E_Abstract_State
);
2608 end Non_Limited_View
;
2610 function Nonzero_Is_True
(Id
: E
) return B
is
2612 pragma Assert
(Root_Type
(Id
) = Standard_Boolean
);
2613 return Flag162
(Base_Type
(Id
));
2614 end Nonzero_Is_True
;
2616 function Normalized_First_Bit
(Id
: E
) return U
is
2618 pragma Assert
(Ekind_In
(Id
, E_Component
, E_Discriminant
));
2620 end Normalized_First_Bit
;
2622 function Normalized_Position
(Id
: E
) return U
is
2624 pragma Assert
(Ekind_In
(Id
, E_Component
, E_Discriminant
));
2626 end Normalized_Position
;
2628 function Normalized_Position_Max
(Id
: E
) return U
is
2630 pragma Assert
(Ekind_In
(Id
, E_Component
, E_Discriminant
));
2632 end Normalized_Position_Max
;
2634 function OK_To_Rename
(Id
: E
) return B
is
2636 pragma Assert
(Ekind
(Id
) = E_Variable
);
2637 return Flag247
(Id
);
2640 function OK_To_Reorder_Components
(Id
: E
) return B
is
2642 pragma Assert
(Is_Record_Type
(Id
));
2643 return Flag239
(Base_Type
(Id
));
2644 end OK_To_Reorder_Components
;
2646 function Optimize_Alignment_Space
(Id
: E
) return B
is
2649 (Is_Type
(Id
) or else Ekind_In
(Id
, E_Constant
, E_Variable
));
2650 return Flag241
(Id
);
2651 end Optimize_Alignment_Space
;
2653 function Optimize_Alignment_Time
(Id
: E
) return B
is
2656 (Is_Type
(Id
) or else Ekind_In
(Id
, E_Constant
, E_Variable
));
2657 return Flag242
(Id
);
2658 end Optimize_Alignment_Time
;
2660 function Original_Access_Type
(Id
: E
) return E
is
2662 pragma Assert
(Ekind
(Id
) = E_Access_Subprogram_Type
);
2664 end Original_Access_Type
;
2666 function Original_Array_Type
(Id
: E
) return E
is
2668 pragma Assert
(Is_Array_Type
(Id
) or else Is_Modular_Integer_Type
(Id
));
2670 end Original_Array_Type
;
2672 function Original_Record_Component
(Id
: E
) return E
is
2674 pragma Assert
(Ekind_In
(Id
, E_Void
, E_Component
, E_Discriminant
));
2676 end Original_Record_Component
;
2678 function Overlays_Constant
(Id
: E
) return B
is
2680 return Flag243
(Id
);
2681 end Overlays_Constant
;
2683 function Overridden_Operation
(Id
: E
) return E
is
2686 end Overridden_Operation
;
2688 function Package_Instantiation
(Id
: E
) return N
is
2690 pragma Assert
(Ekind_In
(Id
, E_Package
, E_Generic_Package
));
2692 end Package_Instantiation
;
2694 function Packed_Array_Impl_Type
(Id
: E
) return E
is
2696 pragma Assert
(Is_Array_Type
(Id
));
2698 end Packed_Array_Impl_Type
;
2700 function Parent_Subtype
(Id
: E
) return E
is
2702 pragma Assert
(Is_Record_Type
(Id
));
2703 return Node19
(Base_Type
(Id
));
2706 function Part_Of_Constituents
(Id
: E
) return L
is
2708 pragma Assert
(Ekind
(Id
) = E_Abstract_State
);
2710 end Part_Of_Constituents
;
2712 function Postcondition_Proc
(Id
: E
) return E
is
2714 pragma Assert
(Ekind
(Id
) = E_Procedure
);
2716 end Postcondition_Proc
;
2718 function PPC_Wrapper
(Id
: E
) return E
is
2720 pragma Assert
(Ekind_In
(Id
, E_Entry
, E_Entry_Family
));
2724 function Prival
(Id
: E
) return E
is
2726 pragma Assert
(Is_Protected_Component
(Id
));
2730 function Prival_Link
(Id
: E
) return E
is
2732 pragma Assert
(Ekind_In
(Id
, E_Constant
, E_Variable
));
2736 function Private_Dependents
(Id
: E
) return L
is
2738 pragma Assert
(Is_Incomplete_Or_Private_Type
(Id
));
2739 return Elist18
(Id
);
2740 end Private_Dependents
;
2742 function Private_View
(Id
: E
) return N
is
2744 pragma Assert
(Is_Private_Type
(Id
));
2748 function Protected_Body_Subprogram
(Id
: E
) return E
is
2750 pragma Assert
(Is_Subprogram
(Id
) or else Is_Entry
(Id
));
2752 end Protected_Body_Subprogram
;
2754 function Protected_Formal
(Id
: E
) return E
is
2756 pragma Assert
(Is_Formal
(Id
));
2758 end Protected_Formal
;
2760 function Protection_Object
(Id
: E
) return E
is
2763 (Ekind_In
(Id
, E_Entry
, E_Entry_Family
, E_Function
, E_Procedure
));
2765 end Protection_Object
;
2767 function Reachable
(Id
: E
) return B
is
2772 function Referenced
(Id
: E
) return B
is
2774 return Flag156
(Id
);
2777 function Referenced_As_LHS
(Id
: E
) return B
is
2780 end Referenced_As_LHS
;
2782 function Referenced_As_Out_Parameter
(Id
: E
) return B
is
2784 return Flag227
(Id
);
2785 end Referenced_As_Out_Parameter
;
2787 function Refinement_Constituents
(Id
: E
) return L
is
2789 pragma Assert
(Ekind
(Id
) = E_Abstract_State
);
2791 end Refinement_Constituents
;
2793 function Register_Exception_Call
(Id
: E
) return N
is
2795 pragma Assert
(Ekind
(Id
) = E_Exception
);
2797 end Register_Exception_Call
;
2799 function Related_Array_Object
(Id
: E
) return E
is
2801 pragma Assert
(Is_Array_Type
(Id
));
2803 end Related_Array_Object
;
2805 function Related_Expression
(Id
: E
) return N
is
2807 pragma Assert
(Ekind
(Id
) in Type_Kind
2808 or else Ekind_In
(Id
, E_Constant
, E_Variable
));
2810 end Related_Expression
;
2812 function Related_Instance
(Id
: E
) return E
is
2814 pragma Assert
(Ekind_In
(Id
, E_Package
, E_Package_Body
));
2816 end Related_Instance
;
2818 function Related_Type
(Id
: E
) return E
is
2820 pragma Assert
(Ekind_In
(Id
, E_Component
, E_Constant
, E_Variable
));
2824 function Relative_Deadline_Variable
(Id
: E
) return E
is
2826 pragma Assert
(Is_Task_Type
(Id
));
2827 return Node26
(Implementation_Base_Type
(Id
));
2828 end Relative_Deadline_Variable
;
2830 function Renamed_Entity
(Id
: E
) return N
is
2835 function Renamed_In_Spec
(Id
: E
) return B
is
2837 pragma Assert
(Ekind
(Id
) = E_Package
);
2838 return Flag231
(Id
);
2839 end Renamed_In_Spec
;
2841 function Renamed_Object
(Id
: E
) return N
is
2846 function Renaming_Map
(Id
: E
) return U
is
2851 function Requires_Overriding
(Id
: E
) return B
is
2853 pragma Assert
(Is_Overloadable
(Id
));
2854 return Flag213
(Id
);
2855 end Requires_Overriding
;
2857 function Return_Present
(Id
: E
) return B
is
2862 function Return_Applies_To
(Id
: E
) return N
is
2865 end Return_Applies_To
;
2867 function Returns_By_Ref
(Id
: E
) return B
is
2872 function Returns_Limited_View
(Id
: E
) return B
is
2874 pragma Assert
(Ekind
(Id
) = E_Function
);
2875 return Flag134
(Id
);
2876 end Returns_Limited_View
;
2878 function Reverse_Bit_Order
(Id
: E
) return B
is
2880 pragma Assert
(Is_Record_Type
(Id
));
2881 return Flag164
(Base_Type
(Id
));
2882 end Reverse_Bit_Order
;
2884 function Reverse_Storage_Order
(Id
: E
) return B
is
2886 pragma Assert
(Is_Record_Type
(Id
) or else Is_Array_Type
(Id
));
2887 return Flag93
(Base_Type
(Id
));
2888 end Reverse_Storage_Order
;
2890 function RM_Size
(Id
: E
) return U
is
2892 pragma Assert
(Is_Type
(Id
));
2896 function Scalar_Range
(Id
: E
) return N
is
2901 function Scale_Value
(Id
: E
) return U
is
2906 function Scope_Depth_Value
(Id
: E
) return U
is
2909 end Scope_Depth_Value
;
2911 function Sec_Stack_Needed_For_Return
(Id
: E
) return B
is
2913 return Flag167
(Id
);
2914 end Sec_Stack_Needed_For_Return
;
2916 function Shadow_Entities
(Id
: E
) return S
is
2918 pragma Assert
(Ekind_In
(Id
, E_Package
, E_Generic_Package
));
2920 end Shadow_Entities
;
2922 function Shared_Var_Procs_Instance
(Id
: E
) return E
is
2924 pragma Assert
(Ekind
(Id
) = E_Variable
);
2926 end Shared_Var_Procs_Instance
;
2928 function Size_Check_Code
(Id
: E
) return N
is
2930 pragma Assert
(Ekind_In
(Id
, E_Constant
, E_Variable
));
2932 end Size_Check_Code
;
2934 function Size_Depends_On_Discriminant
(Id
: E
) return B
is
2936 return Flag177
(Id
);
2937 end Size_Depends_On_Discriminant
;
2939 function Size_Known_At_Compile_Time
(Id
: E
) return B
is
2942 end Size_Known_At_Compile_Time
;
2944 function Small_Value
(Id
: E
) return R
is
2946 pragma Assert
(Is_Fixed_Point_Type
(Id
));
2947 return Ureal21
(Id
);
2950 function SPARK_Aux_Pragma
(Id
: E
) return N
is
2953 (Ekind_In
(Id
, E_Generic_Package
, -- package variants
2957 end SPARK_Aux_Pragma
;
2959 function SPARK_Aux_Pragma_Inherited
(Id
: E
) return B
is
2962 (Ekind_In
(Id
, E_Generic_Package
, -- package variants
2965 return Flag266
(Id
);
2966 end SPARK_Aux_Pragma_Inherited
;
2968 function SPARK_Pragma
(Id
: E
) return N
is
2971 (Ekind_In
(Id
, E_Function
, -- subprogram variants
2973 E_Generic_Procedure
,
2977 Ekind_In
(Id
, E_Generic_Package
, -- package variants
2983 function SPARK_Pragma_Inherited
(Id
: E
) return B
is
2986 (Ekind_In
(Id
, E_Function
, -- subprogram variants
2988 E_Generic_Procedure
,
2992 Ekind_In
(Id
, E_Generic_Package
, -- package variants
2995 return Flag265
(Id
);
2996 end SPARK_Pragma_Inherited
;
2998 function Spec_Entity
(Id
: E
) return E
is
3000 pragma Assert
(Ekind
(Id
) = E_Package_Body
or else Is_Formal
(Id
));
3004 function SSO_Set_High_By_Default
(Id
: E
) return B
is
3006 pragma Assert
(Is_Record_Type
(Id
) or else Is_Array_Type
(Id
));
3007 return Flag273
(Base_Type
(Id
));
3008 end SSO_Set_High_By_Default
;
3010 function SSO_Set_Low_By_Default
(Id
: E
) return B
is
3012 pragma Assert
(Is_Record_Type
(Id
) or else Is_Array_Type
(Id
));
3013 return Flag272
(Base_Type
(Id
));
3014 end SSO_Set_Low_By_Default
;
3016 function Static_Discrete_Predicate
(Id
: E
) return S
is
3018 pragma Assert
(Is_Discrete_Type
(Id
));
3020 end Static_Discrete_Predicate
;
3022 function Static_Real_Or_String_Predicate
(Id
: E
) return N
is
3024 pragma Assert
(Is_Real_Type
(Id
) or else Is_String_Type
(Id
));
3026 end Static_Real_Or_String_Predicate
;
3028 function Status_Flag_Or_Transient_Decl
(Id
: E
) return N
is
3030 pragma Assert
(Ekind_In
(Id
, E_Constant
, E_Variable
));
3032 end Status_Flag_Or_Transient_Decl
;
3034 function Storage_Size_Variable
(Id
: E
) return E
is
3036 pragma Assert
(Is_Access_Type
(Id
) or else Is_Task_Type
(Id
));
3037 return Node15
(Implementation_Base_Type
(Id
));
3038 end Storage_Size_Variable
;
3040 function Static_Elaboration_Desired
(Id
: E
) return B
is
3042 pragma Assert
(Ekind
(Id
) = E_Package
);
3044 end Static_Elaboration_Desired
;
3046 function Static_Initialization
(Id
: E
) return N
is
3049 (Ekind
(Id
) = E_Procedure
and then not Is_Dispatching_Operation
(Id
));
3051 end Static_Initialization
;
3053 function Stored_Constraint
(Id
: E
) return L
is
3056 (Is_Composite_Type
(Id
) and then not Is_Array_Type
(Id
));
3057 return Elist23
(Id
);
3058 end Stored_Constraint
;
3060 function Stores_Attribute_Old_Prefix
(Id
: E
) return B
is
3062 return Flag270
(Id
);
3063 end Stores_Attribute_Old_Prefix
;
3065 function Strict_Alignment
(Id
: E
) return B
is
3067 return Flag145
(Implementation_Base_Type
(Id
));
3068 end Strict_Alignment
;
3070 function String_Literal_Length
(Id
: E
) return U
is
3073 end String_Literal_Length
;
3075 function String_Literal_Low_Bound
(Id
: E
) return N
is
3078 end String_Literal_Low_Bound
;
3080 function Subprograms_For_Type
(Id
: E
) return E
is
3082 pragma Assert
(Is_Type
(Id
) or else Is_Subprogram
(Id
));
3084 end Subprograms_For_Type
;
3086 function Suppress_Elaboration_Warnings
(Id
: E
) return B
is
3088 return Flag148
(Id
);
3089 end Suppress_Elaboration_Warnings
;
3091 function Suppress_Initialization
(Id
: E
) return B
is
3093 pragma Assert
(Is_Type
(Id
) or else Ekind
(Id
) = E_Variable
);
3094 return Flag105
(Id
);
3095 end Suppress_Initialization
;
3097 function Suppress_Style_Checks
(Id
: E
) return B
is
3099 return Flag165
(Id
);
3100 end Suppress_Style_Checks
;
3102 function Suppress_Value_Tracking_On_Call
(Id
: E
) return B
is
3104 return Flag217
(Id
);
3105 end Suppress_Value_Tracking_On_Call
;
3107 function Task_Body_Procedure
(Id
: E
) return N
is
3109 pragma Assert
(Ekind
(Id
) in Task_Kind
);
3111 end Task_Body_Procedure
;
3113 function Thunk_Entity
(Id
: E
) return E
is
3115 pragma Assert
(Ekind_In
(Id
, E_Function
, E_Procedure
)
3116 and then Is_Thunk
(Id
));
3120 function Treat_As_Volatile
(Id
: E
) return B
is
3123 end Treat_As_Volatile
;
3125 function Underlying_Full_View
(Id
: E
) return E
is
3127 pragma Assert
(Ekind
(Id
) in Private_Kind
);
3129 end Underlying_Full_View
;
3131 function Underlying_Record_View
(Id
: E
) return E
is
3134 end Underlying_Record_View
;
3136 function Universal_Aliasing
(Id
: E
) return B
is
3138 pragma Assert
(Is_Type
(Id
));
3139 return Flag216
(Implementation_Base_Type
(Id
));
3140 end Universal_Aliasing
;
3142 function Unset_Reference
(Id
: E
) return N
is
3145 end Unset_Reference
;
3147 function Used_As_Generic_Actual
(Id
: E
) return B
is
3149 return Flag222
(Id
);
3150 end Used_As_Generic_Actual
;
3152 function Uses_Lock_Free
(Id
: E
) return B
is
3154 pragma Assert
(Is_Protected_Type
(Id
));
3155 return Flag188
(Id
);
3158 function Uses_Sec_Stack
(Id
: E
) return B
is
3163 function Warnings_Off
(Id
: E
) return B
is
3168 function Warnings_Off_Used
(Id
: E
) return B
is
3170 return Flag236
(Id
);
3171 end Warnings_Off_Used
;
3173 function Warnings_Off_Used_Unmodified
(Id
: E
) return B
is
3175 return Flag237
(Id
);
3176 end Warnings_Off_Used_Unmodified
;
3178 function Warnings_Off_Used_Unreferenced
(Id
: E
) return B
is
3180 return Flag238
(Id
);
3181 end Warnings_Off_Used_Unreferenced
;
3183 function Wrapped_Entity
(Id
: E
) return E
is
3185 pragma Assert
(Ekind_In
(Id
, E_Function
, E_Procedure
)
3186 and then Is_Primitive_Wrapper
(Id
));
3190 function Was_Hidden
(Id
: E
) return B
is
3192 return Flag196
(Id
);
3195 ------------------------------
3196 -- Classification Functions --
3197 ------------------------------
3199 function Is_Access_Type
(Id
: E
) return B
is
3201 return Ekind
(Id
) in Access_Kind
;
3204 function Is_Access_Protected_Subprogram_Type
(Id
: E
) return B
is
3206 return Ekind
(Id
) in Access_Protected_Kind
;
3207 end Is_Access_Protected_Subprogram_Type
;
3209 function Is_Access_Subprogram_Type
(Id
: E
) return B
is
3211 return Ekind
(Id
) in Access_Subprogram_Kind
;
3212 end Is_Access_Subprogram_Type
;
3214 function Is_Aggregate_Type
(Id
: E
) return B
is
3216 return Ekind
(Id
) in Aggregate_Kind
;
3217 end Is_Aggregate_Type
;
3219 function Is_Array_Type
(Id
: E
) return B
is
3221 return Ekind
(Id
) in Array_Kind
;
3224 function Is_Assignable
(Id
: E
) return B
is
3226 return Ekind
(Id
) in Assignable_Kind
;
3229 function Is_Class_Wide_Type
(Id
: E
) return B
is
3231 return Ekind
(Id
) in Class_Wide_Kind
;
3232 end Is_Class_Wide_Type
;
3234 function Is_Composite_Type
(Id
: E
) return B
is
3236 return Ekind
(Id
) in Composite_Kind
;
3237 end Is_Composite_Type
;
3239 function Is_Concurrent_Body
(Id
: E
) return B
is
3241 return Ekind
(Id
) in
3242 Concurrent_Body_Kind
;
3243 end Is_Concurrent_Body
;
3245 function Is_Concurrent_Record_Type
(Id
: E
) return B
is
3248 end Is_Concurrent_Record_Type
;
3250 function Is_Concurrent_Type
(Id
: E
) return B
is
3252 return Ekind
(Id
) in Concurrent_Kind
;
3253 end Is_Concurrent_Type
;
3255 function Is_Decimal_Fixed_Point_Type
(Id
: E
) return B
is
3257 return Ekind
(Id
) in
3258 Decimal_Fixed_Point_Kind
;
3259 end Is_Decimal_Fixed_Point_Type
;
3261 function Is_Digits_Type
(Id
: E
) return B
is
3263 return Ekind
(Id
) in Digits_Kind
;
3266 function Is_Discrete_Or_Fixed_Point_Type
(Id
: E
) return B
is
3268 return Ekind
(Id
) in Discrete_Or_Fixed_Point_Kind
;
3269 end Is_Discrete_Or_Fixed_Point_Type
;
3271 function Is_Discrete_Type
(Id
: E
) return B
is
3273 return Ekind
(Id
) in Discrete_Kind
;
3274 end Is_Discrete_Type
;
3276 function Is_Elementary_Type
(Id
: E
) return B
is
3278 return Ekind
(Id
) in Elementary_Kind
;
3279 end Is_Elementary_Type
;
3281 function Is_Entry
(Id
: E
) return B
is
3283 return Ekind
(Id
) in Entry_Kind
;
3286 function Is_Enumeration_Type
(Id
: E
) return B
is
3288 return Ekind
(Id
) in
3290 end Is_Enumeration_Type
;
3292 function Is_Fixed_Point_Type
(Id
: E
) return B
is
3294 return Ekind
(Id
) in
3296 end Is_Fixed_Point_Type
;
3298 function Is_Floating_Point_Type
(Id
: E
) return B
is
3300 return Ekind
(Id
) in Float_Kind
;
3301 end Is_Floating_Point_Type
;
3303 function Is_Formal
(Id
: E
) return B
is
3305 return Ekind
(Id
) in Formal_Kind
;
3308 function Is_Formal_Object
(Id
: E
) return B
is
3310 return Ekind
(Id
) in Formal_Object_Kind
;
3311 end Is_Formal_Object
;
3313 function Is_Generic_Subprogram
(Id
: E
) return B
is
3315 return Ekind
(Id
) in Generic_Subprogram_Kind
;
3316 end Is_Generic_Subprogram
;
3318 function Is_Generic_Unit
(Id
: E
) return B
is
3320 return Ekind
(Id
) in Generic_Unit_Kind
;
3321 end Is_Generic_Unit
;
3323 function Is_Incomplete_Or_Private_Type
(Id
: E
) return B
is
3325 return Ekind
(Id
) in
3326 Incomplete_Or_Private_Kind
;
3327 end Is_Incomplete_Or_Private_Type
;
3329 function Is_Incomplete_Type
(Id
: E
) return B
is
3331 return Ekind
(Id
) in
3333 end Is_Incomplete_Type
;
3335 function Is_Integer_Type
(Id
: E
) return B
is
3337 return Ekind
(Id
) in Integer_Kind
;
3338 end Is_Integer_Type
;
3340 function Is_Modular_Integer_Type
(Id
: E
) return B
is
3342 return Ekind
(Id
) in
3343 Modular_Integer_Kind
;
3344 end Is_Modular_Integer_Type
;
3346 function Is_Named_Number
(Id
: E
) return B
is
3348 return Ekind
(Id
) in Named_Kind
;
3349 end Is_Named_Number
;
3351 function Is_Numeric_Type
(Id
: E
) return B
is
3353 return Ekind
(Id
) in Numeric_Kind
;
3354 end Is_Numeric_Type
;
3356 function Is_Object
(Id
: E
) return B
is
3358 return Ekind
(Id
) in Object_Kind
;
3361 function Is_Ordinary_Fixed_Point_Type
(Id
: E
) return B
is
3363 return Ekind
(Id
) in
3364 Ordinary_Fixed_Point_Kind
;
3365 end Is_Ordinary_Fixed_Point_Type
;
3367 function Is_Overloadable
(Id
: E
) return B
is
3369 return Ekind
(Id
) in Overloadable_Kind
;
3370 end Is_Overloadable
;
3372 function Is_Private_Type
(Id
: E
) return B
is
3374 return Ekind
(Id
) in Private_Kind
;
3375 end Is_Private_Type
;
3377 function Is_Protected_Type
(Id
: E
) return B
is
3379 return Ekind
(Id
) in Protected_Kind
;
3380 end Is_Protected_Type
;
3382 function Is_Real_Type
(Id
: E
) return B
is
3384 return Ekind
(Id
) in Real_Kind
;
3387 function Is_Record_Type
(Id
: E
) return B
is
3389 return Ekind
(Id
) in Record_Kind
;
3392 function Is_Scalar_Type
(Id
: E
) return B
is
3394 return Ekind
(Id
) in Scalar_Kind
;
3397 function Is_Signed_Integer_Type
(Id
: E
) return B
is
3399 return Ekind
(Id
) in Signed_Integer_Kind
;
3400 end Is_Signed_Integer_Type
;
3402 function Is_Subprogram
(Id
: E
) return B
is
3404 return Ekind
(Id
) in Subprogram_Kind
;
3407 function Is_Subprogram_Or_Generic_Subprogram
(Id
: E
) return B
is
3409 return Ekind
(Id
) in Subprogram_Kind
3411 Ekind
(Id
) in Generic_Subprogram_Kind
;
3412 end Is_Subprogram_Or_Generic_Subprogram
;
3414 function Is_Task_Type
(Id
: E
) return B
is
3416 return Ekind
(Id
) in Task_Kind
;
3419 function Is_Type
(Id
: E
) return B
is
3421 return Ekind
(Id
) in Type_Kind
;
3424 ------------------------------
3425 -- Attribute Set Procedures --
3426 ------------------------------
3428 -- Note: in many of these set procedures an "obvious" assertion is missing.
3429 -- The reason for this is that in many cases, a field is set before the
3430 -- Ekind field is set, so that the field is set when Ekind = E_Void. It
3431 -- it is possible to add assertions that specifically include the E_Void
3432 -- possibility, but in some cases, we just omit the assertions.
3434 procedure Set_Abstract_States
(Id
: E
; V
: L
) is
3436 pragma Assert
(Ekind_In
(Id
, E_Generic_Package
, E_Package
));
3437 Set_Elist25
(Id
, V
);
3438 end Set_Abstract_States
;
3440 procedure Set_Accept_Address
(Id
: E
; V
: L
) is
3442 Set_Elist21
(Id
, V
);
3443 end Set_Accept_Address
;
3445 procedure Set_Access_Disp_Table
(Id
: E
; V
: L
) is
3447 pragma Assert
(Ekind
(Id
) = E_Record_Type
3448 and then Id
= Implementation_Base_Type
(Id
));
3449 pragma Assert
(V
= No_Elist
or else Is_Tagged_Type
(Id
));
3450 Set_Elist16
(Id
, V
);
3451 end Set_Access_Disp_Table
;
3453 procedure Set_Associated_Formal_Package
(Id
: E
; V
: E
) is
3456 end Set_Associated_Formal_Package
;
3458 procedure Set_Associated_Node_For_Itype
(Id
: E
; V
: E
) is
3461 end Set_Associated_Node_For_Itype
;
3463 procedure Set_Associated_Storage_Pool
(Id
: E
; V
: E
) is
3465 pragma Assert
(Is_Access_Type
(Id
) and then Is_Base_Type
(Id
));
3467 end Set_Associated_Storage_Pool
;
3469 procedure Set_Actual_Subtype
(Id
: E
; V
: E
) is
3472 (Ekind_In
(Id
, E_Constant
, E_Variable
, E_Generic_In_Out_Parameter
)
3473 or else Is_Formal
(Id
));
3475 end Set_Actual_Subtype
;
3477 procedure Set_Address_Taken
(Id
: E
; V
: B
:= True) is
3479 Set_Flag104
(Id
, V
);
3480 end Set_Address_Taken
;
3482 procedure Set_Alias
(Id
: E
; V
: E
) is
3485 (Is_Overloadable
(Id
) or else Ekind
(Id
) = E_Subprogram_Type
);
3489 procedure Set_Alignment
(Id
: E
; V
: U
) is
3491 pragma Assert
(Is_Type
(Id
)
3492 or else Is_Formal
(Id
)
3493 or else Ekind_In
(Id
, E_Loop_Parameter
,
3500 procedure Set_Barrier_Function
(Id
: E
; V
: N
) is
3502 pragma Assert
(Is_Entry
(Id
));
3504 end Set_Barrier_Function
;
3506 procedure Set_Block_Node
(Id
: E
; V
: N
) is
3508 pragma Assert
(Ekind
(Id
) = E_Block
);
3512 procedure Set_Body_Entity
(Id
: E
; V
: E
) is
3514 pragma Assert
(Ekind_In
(Id
, E_Package
, E_Generic_Package
));
3516 end Set_Body_Entity
;
3518 procedure Set_Body_Needed_For_SAL
(Id
: E
; V
: B
:= True) is
3521 (Ekind
(Id
) = E_Package
3522 or else Is_Subprogram
(Id
)
3523 or else Is_Generic_Unit
(Id
));
3525 end Set_Body_Needed_For_SAL
;
3527 procedure Set_Body_References
(Id
: E
; V
: L
) is
3529 pragma Assert
(Ekind
(Id
) = E_Abstract_State
);
3530 Set_Elist16
(Id
, V
);
3531 end Set_Body_References
;
3533 procedure Set_BIP_Initialization_Call
(Id
: E
; V
: N
) is
3535 pragma Assert
(Ekind_In
(Id
, E_Constant
, E_Variable
));
3537 end Set_BIP_Initialization_Call
;
3539 procedure Set_C_Pass_By_Copy
(Id
: E
; V
: B
:= True) is
3541 pragma Assert
(Is_Record_Type
(Id
) and then Is_Base_Type
(Id
));
3542 Set_Flag125
(Id
, V
);
3543 end Set_C_Pass_By_Copy
;
3545 procedure Set_Can_Never_Be_Null
(Id
: E
; V
: B
:= True) is
3548 end Set_Can_Never_Be_Null
;
3550 procedure Set_Can_Use_Internal_Rep
(Id
: E
; V
: B
:= True) is
3553 (Is_Access_Subprogram_Type
(Id
) and then Is_Base_Type
(Id
));
3554 Set_Flag229
(Id
, V
);
3555 end Set_Can_Use_Internal_Rep
;
3557 procedure Set_Checks_May_Be_Suppressed
(Id
: E
; V
: B
:= True) is
3560 end Set_Checks_May_Be_Suppressed
;
3562 procedure Set_Class_Wide_Type
(Id
: E
; V
: E
) is
3564 pragma Assert
(Is_Type
(Id
));
3566 end Set_Class_Wide_Type
;
3568 procedure Set_Cloned_Subtype
(Id
: E
; V
: E
) is
3570 pragma Assert
(Ekind_In
(Id
, E_Record_Subtype
, E_Class_Wide_Subtype
));
3572 end Set_Cloned_Subtype
;
3574 procedure Set_Component_Bit_Offset
(Id
: E
; V
: U
) is
3576 pragma Assert
(Ekind_In
(Id
, E_Component
, E_Discriminant
));
3578 end Set_Component_Bit_Offset
;
3580 procedure Set_Component_Clause
(Id
: E
; V
: N
) is
3582 pragma Assert
(Ekind_In
(Id
, E_Component
, E_Discriminant
));
3584 end Set_Component_Clause
;
3586 procedure Set_Component_Size
(Id
: E
; V
: U
) is
3588 pragma Assert
(Is_Array_Type
(Id
) and then Is_Base_Type
(Id
));
3590 end Set_Component_Size
;
3592 procedure Set_Component_Type
(Id
: E
; V
: E
) is
3594 pragma Assert
(Is_Array_Type
(Id
) and then Is_Base_Type
(Id
));
3596 end Set_Component_Type
;
3598 procedure Set_Contract
(Id
: E
; V
: N
) is
3601 (Ekind_In
(Id
, E_Entry
,
3609 or else Is_Subprogram_Or_Generic_Subprogram
(Id
));
3613 procedure Set_Corresponding_Concurrent_Type
(Id
: E
; V
: E
) is
3616 (Ekind
(Id
) = E_Record_Type
and then Is_Concurrent_Type
(V
));
3618 end Set_Corresponding_Concurrent_Type
;
3620 procedure Set_Corresponding_Discriminant
(Id
: E
; V
: E
) is
3622 pragma Assert
(Ekind
(Id
) = E_Discriminant
);
3624 end Set_Corresponding_Discriminant
;
3626 procedure Set_Corresponding_Equality
(Id
: E
; V
: E
) is
3629 (Ekind
(Id
) = E_Function
3630 and then not Comes_From_Source
(Id
)
3631 and then Chars
(Id
) = Name_Op_Ne
);
3633 end Set_Corresponding_Equality
;
3635 procedure Set_Corresponding_Protected_Entry
(Id
: E
; V
: E
) is
3637 pragma Assert
(Ekind_In
(Id
, E_Void
, E_Subprogram_Body
));
3639 end Set_Corresponding_Protected_Entry
;
3641 procedure Set_Corresponding_Record_Type
(Id
: E
; V
: E
) is
3643 pragma Assert
(Is_Concurrent_Type
(Id
));
3645 end Set_Corresponding_Record_Type
;
3647 procedure Set_Corresponding_Remote_Type
(Id
: E
; V
: E
) is
3650 end Set_Corresponding_Remote_Type
;
3652 procedure Set_Current_Use_Clause
(Id
: E
; V
: E
) is
3654 pragma Assert
(Ekind
(Id
) = E_Package
or else Is_Type
(Id
));
3656 end Set_Current_Use_Clause
;
3658 procedure Set_Current_Value
(Id
: E
; V
: N
) is
3660 pragma Assert
(Ekind
(Id
) in Object_Kind
or else Ekind
(Id
) = E_Void
);
3662 end Set_Current_Value
;
3664 procedure Set_CR_Discriminant
(Id
: E
; V
: E
) is
3667 end Set_CR_Discriminant
;
3669 procedure Set_Debug_Info_Off
(Id
: E
; V
: B
:= True) is
3671 Set_Flag166
(Id
, V
);
3672 end Set_Debug_Info_Off
;
3674 procedure Set_Debug_Renaming_Link
(Id
: E
; V
: E
) is
3677 end Set_Debug_Renaming_Link
;
3679 procedure Set_Default_Aspect_Component_Value
(Id
: E
; V
: E
) is
3681 pragma Assert
(Is_Array_Type
(Id
) and then Is_Base_Type
(Id
));
3683 end Set_Default_Aspect_Component_Value
;
3685 procedure Set_Default_Aspect_Value
(Id
: E
; V
: E
) is
3687 pragma Assert
(Is_Scalar_Type
(Id
) and then Is_Base_Type
(Id
));
3689 end Set_Default_Aspect_Value
;
3691 procedure Set_Default_Expr_Function
(Id
: E
; V
: E
) is
3693 pragma Assert
(Is_Formal
(Id
));
3695 end Set_Default_Expr_Function
;
3697 procedure Set_Default_Expressions_Processed
(Id
: E
; V
: B
:= True) is
3699 Set_Flag108
(Id
, V
);
3700 end Set_Default_Expressions_Processed
;
3702 procedure Set_Default_Value
(Id
: E
; V
: N
) is
3704 pragma Assert
(Is_Formal
(Id
));
3706 end Set_Default_Value
;
3708 procedure Set_Delay_Cleanups
(Id
: E
; V
: B
:= True) is
3712 or else Is_Task_Type
(Id
)
3713 or else Ekind
(Id
) = E_Block
);
3714 Set_Flag114
(Id
, V
);
3715 end Set_Delay_Cleanups
;
3717 procedure Set_Delay_Subprogram_Descriptors
(Id
: E
; V
: B
:= True) is
3720 (Is_Subprogram
(Id
) or else Ekind_In
(Id
, E_Package
, E_Package_Body
));
3723 end Set_Delay_Subprogram_Descriptors
;
3725 procedure Set_Delta_Value
(Id
: E
; V
: R
) is
3727 pragma Assert
(Is_Fixed_Point_Type
(Id
));
3728 Set_Ureal18
(Id
, V
);
3729 end Set_Delta_Value
;
3731 procedure Set_Dependent_Instances
(Id
: E
; V
: L
) is
3733 pragma Assert
(Is_Generic_Instance
(Id
));
3735 end Set_Dependent_Instances
;
3737 procedure Set_Depends_On_Private
(Id
: E
; V
: B
:= True) is
3739 pragma Assert
(Nkind
(Id
) in N_Entity
);
3741 end Set_Depends_On_Private
;
3743 procedure Set_Derived_Type_Link
(Id
: E
; V
: E
) is
3745 pragma Assert
(Is_Type
(Id
) and then Is_Base_Type
(Id
));
3747 end Set_Derived_Type_Link
;
3749 procedure Set_Digits_Value
(Id
: E
; V
: U
) is
3752 (Is_Floating_Point_Type
(Id
)
3753 or else Is_Decimal_Fixed_Point_Type
(Id
));
3755 end Set_Digits_Value
;
3757 procedure Set_Directly_Designated_Type
(Id
: E
; V
: E
) is
3760 end Set_Directly_Designated_Type
;
3762 procedure Set_Discard_Names
(Id
: E
; V
: B
:= True) is
3765 end Set_Discard_Names
;
3767 procedure Set_Discriminal
(Id
: E
; V
: E
) is
3769 pragma Assert
(Ekind
(Id
) = E_Discriminant
);
3771 end Set_Discriminal
;
3773 procedure Set_Discriminal_Link
(Id
: E
; V
: E
) is
3776 end Set_Discriminal_Link
;
3778 procedure Set_Discriminant_Checking_Func
(Id
: E
; V
: E
) is
3780 pragma Assert
(Ekind
(Id
) = E_Component
);
3782 end Set_Discriminant_Checking_Func
;
3784 procedure Set_Discriminant_Constraint
(Id
: E
; V
: L
) is
3786 pragma Assert
(Nkind
(Id
) in N_Entity
);
3787 Set_Elist21
(Id
, V
);
3788 end Set_Discriminant_Constraint
;
3790 procedure Set_Discriminant_Default_Value
(Id
: E
; V
: N
) is
3793 end Set_Discriminant_Default_Value
;
3795 procedure Set_Discriminant_Number
(Id
: E
; V
: U
) is
3798 end Set_Discriminant_Number
;
3800 procedure Set_Dispatch_Table_Wrappers
(Id
: E
; V
: L
) is
3802 pragma Assert
(Ekind
(Id
) = E_Record_Type
3803 and then Id
= Implementation_Base_Type
(Id
));
3804 pragma Assert
(V
= No_Elist
or else Is_Tagged_Type
(Id
));
3805 Set_Elist26
(Id
, V
);
3806 end Set_Dispatch_Table_Wrappers
;
3808 procedure Set_DT_Entry_Count
(Id
: E
; V
: U
) is
3810 pragma Assert
(Ekind
(Id
) = E_Component
);
3812 end Set_DT_Entry_Count
;
3814 procedure Set_DT_Offset_To_Top_Func
(Id
: E
; V
: E
) is
3816 pragma Assert
(Ekind
(Id
) = E_Component
and then Is_Tag
(Id
));
3818 end Set_DT_Offset_To_Top_Func
;
3820 procedure Set_DT_Position
(Id
: E
; V
: U
) is
3822 pragma Assert
(Ekind_In
(Id
, E_Function
, E_Procedure
));
3824 end Set_DT_Position
;
3826 procedure Set_DTC_Entity
(Id
: E
; V
: E
) is
3828 pragma Assert
(Ekind_In
(Id
, E_Function
, E_Procedure
));
3832 procedure Set_Elaborate_Body_Desirable
(Id
: E
; V
: B
:= True) is
3834 pragma Assert
(Ekind
(Id
) = E_Package
);
3835 Set_Flag210
(Id
, V
);
3836 end Set_Elaborate_Body_Desirable
;
3838 procedure Set_Elaboration_Entity
(Id
: E
; V
: E
) is
3843 Ekind
(Id
) = E_Package
3845 Is_Generic_Unit
(Id
));
3847 end Set_Elaboration_Entity
;
3849 procedure Set_Elaboration_Entity_Required
(Id
: E
; V
: B
:= True) is
3854 Ekind
(Id
) = E_Package
3856 Is_Generic_Unit
(Id
));
3857 Set_Flag174
(Id
, V
);
3858 end Set_Elaboration_Entity_Required
;
3860 procedure Set_Encapsulating_State
(Id
: E
; V
: E
) is
3862 pragma Assert
(Ekind_In
(Id
, E_Abstract_State
, E_Variable
));
3864 end Set_Encapsulating_State
;
3866 procedure Set_Enclosing_Scope
(Id
: E
; V
: E
) is
3869 end Set_Enclosing_Scope
;
3871 procedure Set_Entry_Accepted
(Id
: E
; V
: B
:= True) is
3873 pragma Assert
(Is_Entry
(Id
));
3874 Set_Flag152
(Id
, V
);
3875 end Set_Entry_Accepted
;
3877 procedure Set_Entry_Bodies_Array
(Id
: E
; V
: E
) is
3880 end Set_Entry_Bodies_Array
;
3882 procedure Set_Entry_Cancel_Parameter
(Id
: E
; V
: E
) is
3885 end Set_Entry_Cancel_Parameter
;
3887 procedure Set_Entry_Component
(Id
: E
; V
: E
) is
3890 end Set_Entry_Component
;
3892 procedure Set_Entry_Formal
(Id
: E
; V
: E
) is
3895 end Set_Entry_Formal
;
3897 procedure Set_Entry_Index_Constant
(Id
: E
; V
: E
) is
3899 pragma Assert
(Ekind
(Id
) = E_Entry_Index_Parameter
);
3901 end Set_Entry_Index_Constant
;
3903 procedure Set_Entry_Parameters_Type
(Id
: E
; V
: E
) is
3906 end Set_Entry_Parameters_Type
;
3908 procedure Set_Enum_Pos_To_Rep
(Id
: E
; V
: E
) is
3910 pragma Assert
(Ekind
(Id
) = E_Enumeration_Type
);
3912 end Set_Enum_Pos_To_Rep
;
3914 procedure Set_Enumeration_Pos
(Id
: E
; V
: U
) is
3916 pragma Assert
(Ekind
(Id
) = E_Enumeration_Literal
);
3918 end Set_Enumeration_Pos
;
3920 procedure Set_Enumeration_Rep
(Id
: E
; V
: U
) is
3922 pragma Assert
(Ekind
(Id
) = E_Enumeration_Literal
);
3924 end Set_Enumeration_Rep
;
3926 procedure Set_Enumeration_Rep_Expr
(Id
: E
; V
: N
) is
3928 pragma Assert
(Ekind
(Id
) = E_Enumeration_Literal
);
3930 end Set_Enumeration_Rep_Expr
;
3932 procedure Set_Equivalent_Type
(Id
: E
; V
: E
) is
3935 (Ekind_In
(Id
, E_Class_Wide_Type
,
3936 E_Class_Wide_Subtype
,
3937 E_Access_Protected_Subprogram_Type
,
3938 E_Anonymous_Access_Protected_Subprogram_Type
,
3939 E_Access_Subprogram_Type
,
3942 end Set_Equivalent_Type
;
3944 procedure Set_Esize
(Id
: E
; V
: U
) is
3949 procedure Set_Extra_Accessibility
(Id
: E
; V
: E
) is
3952 (Is_Formal
(Id
) or else Ekind_In
(Id
, E_Variable
, E_Constant
));
3954 end Set_Extra_Accessibility
;
3956 procedure Set_Extra_Accessibility_Of_Result
(Id
: E
; V
: E
) is
3958 pragma Assert
(Ekind_In
(Id
, E_Function
, E_Operator
, E_Subprogram_Type
));
3960 end Set_Extra_Accessibility_Of_Result
;
3962 procedure Set_Extra_Constrained
(Id
: E
; V
: E
) is
3964 pragma Assert
(Is_Formal
(Id
) or else Ekind
(Id
) = E_Variable
);
3966 end Set_Extra_Constrained
;
3968 procedure Set_Extra_Formal
(Id
: E
; V
: E
) is
3971 end Set_Extra_Formal
;
3973 procedure Set_Extra_Formals
(Id
: E
; V
: E
) is
3976 (Is_Overloadable
(Id
)
3977 or else Ekind_In
(Id
, E_Entry_Family
,
3979 E_Subprogram_Type
));
3981 end Set_Extra_Formals
;
3983 procedure Set_Finalization_Master
(Id
: E
; V
: E
) is
3985 pragma Assert
(Is_Access_Type
(Id
) and then Is_Base_Type
(Id
));
3987 end Set_Finalization_Master
;
3989 procedure Set_Finalize_Storage_Only
(Id
: E
; V
: B
:= True) is
3991 pragma Assert
(Is_Type
(Id
) and then Is_Base_Type
(Id
));
3992 Set_Flag158
(Id
, V
);
3993 end Set_Finalize_Storage_Only
;
3995 procedure Set_Finalizer
(Id
: E
; V
: E
) is
3997 pragma Assert
(Ekind_In
(Id
, E_Package
, E_Package_Body
));
4001 procedure Set_First_Entity
(Id
: E
; V
: E
) is
4004 end Set_First_Entity
;
4006 procedure Set_First_Exit_Statement
(Id
: E
; V
: N
) is
4008 pragma Assert
(Ekind
(Id
) = E_Loop
);
4010 end Set_First_Exit_Statement
;
4012 procedure Set_First_Index
(Id
: E
; V
: N
) is
4014 pragma Assert
(Is_Array_Type
(Id
) or else Is_String_Type
(Id
));
4016 end Set_First_Index
;
4018 procedure Set_First_Literal
(Id
: E
; V
: E
) is
4020 pragma Assert
(Is_Enumeration_Type
(Id
));
4022 end Set_First_Literal
;
4024 procedure Set_First_Private_Entity
(Id
: E
; V
: E
) is
4026 pragma Assert
(Ekind_In
(Id
, E_Package
, E_Generic_Package
)
4027 or else Ekind
(Id
) in Concurrent_Kind
);
4029 end Set_First_Private_Entity
;
4031 procedure Set_First_Rep_Item
(Id
: E
; V
: N
) is
4034 end Set_First_Rep_Item
;
4036 procedure Set_Float_Rep
(Id
: E
; V
: F
) is
4037 pragma Assert
(Ekind
(Id
) = E_Floating_Point_Type
);
4039 Set_Uint10
(Id
, UI_From_Int
(F
'Pos (V
)));
4042 procedure Set_Freeze_Node
(Id
: E
; V
: N
) is
4045 end Set_Freeze_Node
;
4047 procedure Set_From_Limited_With
(Id
: E
; V
: B
:= True) is
4050 (Is_Type
(Id
) or else Ekind_In
(Id
, E_Abstract_State
, E_Package
));
4051 Set_Flag159
(Id
, V
);
4052 end Set_From_Limited_With
;
4054 procedure Set_Full_View
(Id
: E
; V
: E
) is
4056 pragma Assert
(Is_Type
(Id
) or else Ekind
(Id
) = E_Constant
);
4060 procedure Set_Generic_Homonym
(Id
: E
; V
: E
) is
4063 end Set_Generic_Homonym
;
4065 procedure Set_Generic_Renamings
(Id
: E
; V
: L
) is
4067 Set_Elist23
(Id
, V
);
4068 end Set_Generic_Renamings
;
4070 procedure Set_Handler_Records
(Id
: E
; V
: S
) is
4073 end Set_Handler_Records
;
4075 procedure Set_Has_Aliased_Components
(Id
: E
; V
: B
:= True) is
4077 pragma Assert
(Id
= Base_Type
(Id
));
4078 Set_Flag135
(Id
, V
);
4079 end Set_Has_Aliased_Components
;
4081 procedure Set_Has_Alignment_Clause
(Id
: E
; V
: B
:= True) is
4084 end Set_Has_Alignment_Clause
;
4086 procedure Set_Has_All_Calls_Remote
(Id
: E
; V
: B
:= True) is
4089 end Set_Has_All_Calls_Remote
;
4091 procedure Set_Has_Anonymous_Master
(Id
: E
; V
: B
:= True) is
4094 (Ekind_In
(Id
, E_Function
, E_Package
, E_Package_Body
, E_Procedure
));
4095 Set_Flag253
(Id
, V
);
4096 end Set_Has_Anonymous_Master
;
4098 procedure Set_Has_Atomic_Components
(Id
: E
; V
: B
:= True) is
4100 pragma Assert
(not Is_Type
(Id
) or else Is_Base_Type
(Id
));
4102 end Set_Has_Atomic_Components
;
4104 procedure Set_Has_Biased_Representation
(Id
: E
; V
: B
:= True) is
4107 ((V
= False) or else (Is_Discrete_Type
(Id
) or else Is_Object
(Id
)));
4108 Set_Flag139
(Id
, V
);
4109 end Set_Has_Biased_Representation
;
4111 procedure Set_Has_Completion
(Id
: E
; V
: B
:= True) is
4114 end Set_Has_Completion
;
4116 procedure Set_Has_Completion_In_Body
(Id
: E
; V
: B
:= True) is
4118 pragma Assert
(Is_Type
(Id
));
4120 end Set_Has_Completion_In_Body
;
4122 procedure Set_Has_Complex_Representation
(Id
: E
; V
: B
:= True) is
4124 pragma Assert
(Ekind
(Id
) = E_Record_Type
);
4125 Set_Flag140
(Id
, V
);
4126 end Set_Has_Complex_Representation
;
4128 procedure Set_Has_Component_Size_Clause
(Id
: E
; V
: B
:= True) is
4130 pragma Assert
(Ekind
(Id
) = E_Array_Type
);
4132 end Set_Has_Component_Size_Clause
;
4134 procedure Set_Has_Constrained_Partial_View
(Id
: E
; V
: B
:= True) is
4136 pragma Assert
(Is_Type
(Id
));
4137 Set_Flag187
(Id
, V
);
4138 end Set_Has_Constrained_Partial_View
;
4140 procedure Set_Has_Contiguous_Rep
(Id
: E
; V
: B
:= True) is
4142 Set_Flag181
(Id
, V
);
4143 end Set_Has_Contiguous_Rep
;
4145 procedure Set_Has_Controlled_Component
(Id
: E
; V
: B
:= True) is
4147 pragma Assert
(Id
= Base_Type
(Id
));
4149 end Set_Has_Controlled_Component
;
4151 procedure Set_Has_Controlling_Result
(Id
: E
; V
: B
:= True) is
4154 end Set_Has_Controlling_Result
;
4156 procedure Set_Has_Convention_Pragma
(Id
: E
; V
: B
:= True) is
4158 Set_Flag119
(Id
, V
);
4159 end Set_Has_Convention_Pragma
;
4161 procedure Set_Has_Default_Aspect
(Id
: E
; V
: B
:= True) is
4164 ((Is_Scalar_Type
(Id
) or else Is_Array_Type
(Id
))
4165 and then Is_Base_Type
(Id
));
4167 end Set_Has_Default_Aspect
;
4169 procedure Set_Has_Default_Init_Cond
(Id
: E
; V
: B
:= True) is
4171 pragma Assert
(Is_Type
(Id
));
4173 end Set_Has_Default_Init_Cond
;
4175 procedure Set_Has_Delayed_Aspects
(Id
: E
; V
: B
:= True) is
4177 pragma Assert
(Nkind
(Id
) in N_Entity
);
4178 Set_Flag200
(Id
, V
);
4179 end Set_Has_Delayed_Aspects
;
4181 procedure Set_Has_Delayed_Freeze
(Id
: E
; V
: B
:= True) is
4183 pragma Assert
(Nkind
(Id
) in N_Entity
);
4185 end Set_Has_Delayed_Freeze
;
4187 procedure Set_Has_Delayed_Rep_Aspects
(Id
: E
; V
: B
:= True) is
4189 pragma Assert
(Nkind
(Id
) in N_Entity
);
4190 Set_Flag261
(Id
, V
);
4191 end Set_Has_Delayed_Rep_Aspects
;
4193 procedure Set_Has_Discriminants
(Id
: E
; V
: B
:= True) is
4195 pragma Assert
(Nkind
(Id
) in N_Entity
);
4197 end Set_Has_Discriminants
;
4199 procedure Set_Has_Dispatch_Table
(Id
: E
; V
: B
:= True) is
4201 pragma Assert
(Ekind
(Id
) = E_Record_Type
4202 and then Is_Tagged_Type
(Id
));
4203 Set_Flag220
(Id
, V
);
4204 end Set_Has_Dispatch_Table
;
4206 procedure Set_Has_Dynamic_Predicate_Aspect
(Id
: E
; V
: B
:= True) is
4208 pragma Assert
(Is_Type
(Id
));
4209 Set_Flag258
(Id
, V
);
4210 end Set_Has_Dynamic_Predicate_Aspect
;
4212 procedure Set_Has_Enumeration_Rep_Clause
(Id
: E
; V
: B
:= True) is
4214 pragma Assert
(Is_Enumeration_Type
(Id
));
4216 end Set_Has_Enumeration_Rep_Clause
;
4218 procedure Set_Has_Exit
(Id
: E
; V
: B
:= True) is
4223 procedure Set_Has_Forward_Instantiation
(Id
: E
; V
: B
:= True) is
4225 Set_Flag175
(Id
, V
);
4226 end Set_Has_Forward_Instantiation
;
4228 procedure Set_Has_Fully_Qualified_Name
(Id
: E
; V
: B
:= True) is
4230 Set_Flag173
(Id
, V
);
4231 end Set_Has_Fully_Qualified_Name
;
4233 procedure Set_Has_Gigi_Rep_Item
(Id
: E
; V
: B
:= True) is
4236 end Set_Has_Gigi_Rep_Item
;
4238 procedure Set_Has_Homonym
(Id
: E
; V
: B
:= True) is
4241 end Set_Has_Homonym
;
4243 procedure Set_Has_Implicit_Dereference
(Id
: E
; V
: B
:= True) is
4245 Set_Flag251
(Id
, V
);
4246 end Set_Has_Implicit_Dereference
;
4248 procedure Set_Has_Independent_Components
(Id
: E
; V
: B
:= True) is
4250 pragma Assert
((Is_Array_Type
(Id
) or else Is_Record_Type
(Id
))
4251 and then Is_Base_Type
(Id
));
4253 end Set_Has_Independent_Components
;
4255 procedure Set_Has_Inheritable_Invariants
(Id
: E
; V
: B
:= True) is
4257 pragma Assert
(Is_Type
(Id
));
4258 Set_Flag248
(Id
, V
);
4259 end Set_Has_Inheritable_Invariants
;
4261 procedure Set_Has_Inherited_Default_Init_Cond
(Id
: E
; V
: B
:= True) is
4263 pragma Assert
(Is_Type
(Id
));
4264 Set_Flag133
(Id
, V
);
4265 end Set_Has_Inherited_Default_Init_Cond
;
4267 procedure Set_Has_Initial_Value
(Id
: E
; V
: B
:= True) is
4269 pragma Assert
(Ekind_In
(Id
, E_Variable
, E_Out_Parameter
));
4270 Set_Flag219
(Id
, V
);
4271 end Set_Has_Initial_Value
;
4273 procedure Set_Has_Invariants
(Id
: E
; V
: B
:= True) is
4275 pragma Assert
(Is_Type
(Id
));
4276 Set_Flag232
(Id
, V
);
4277 end Set_Has_Invariants
;
4279 procedure Set_Has_Loop_Entry_Attributes
(Id
: E
; V
: B
:= True) is
4281 pragma Assert
(Ekind
(Id
) = E_Loop
);
4282 Set_Flag260
(Id
, V
);
4283 end Set_Has_Loop_Entry_Attributes
;
4285 procedure Set_Has_Machine_Radix_Clause
(Id
: E
; V
: B
:= True) is
4287 pragma Assert
(Is_Decimal_Fixed_Point_Type
(Id
));
4289 end Set_Has_Machine_Radix_Clause
;
4291 procedure Set_Has_Master_Entity
(Id
: E
; V
: B
:= True) is
4294 end Set_Has_Master_Entity
;
4296 procedure Set_Has_Missing_Return
(Id
: E
; V
: B
:= True) is
4298 pragma Assert
(Ekind_In
(Id
, E_Function
, E_Generic_Function
));
4299 Set_Flag142
(Id
, V
);
4300 end Set_Has_Missing_Return
;
4302 procedure Set_Has_Nested_Block_With_Handler
(Id
: E
; V
: B
:= True) is
4304 Set_Flag101
(Id
, V
);
4305 end Set_Has_Nested_Block_With_Handler
;
4307 procedure Set_Has_Up_Level_Access
(Id
: E
; V
: B
:= True) is
4309 pragma Assert
(Ekind_In
(Id
, E_Variable
, E_Constant
, E_Loop_Parameter
));
4310 Set_Flag215
(Id
, V
);
4311 end Set_Has_Up_Level_Access
;
4313 procedure Set_Has_Non_Standard_Rep
(Id
: E
; V
: B
:= True) is
4315 pragma Assert
(Id
= Base_Type
(Id
));
4317 end Set_Has_Non_Standard_Rep
;
4319 procedure Set_Has_Object_Size_Clause
(Id
: E
; V
: B
:= True) is
4321 pragma Assert
(Is_Type
(Id
));
4322 Set_Flag172
(Id
, V
);
4323 end Set_Has_Object_Size_Clause
;
4325 procedure Set_Has_Out_Or_In_Out_Parameter
(Id
: E
; V
: B
:= True) is
4327 pragma Assert
(Ekind_In
(Id
, E_Function
, E_Generic_Function
));
4328 Set_Flag110
(Id
, V
);
4329 end Set_Has_Out_Or_In_Out_Parameter
;
4331 procedure Set_Has_Per_Object_Constraint
(Id
: E
; V
: B
:= True) is
4333 Set_Flag154
(Id
, V
);
4334 end Set_Has_Per_Object_Constraint
;
4336 procedure Set_Has_Postconditions
(Id
: E
; V
: B
:= True) is
4338 pragma Assert
(Is_Subprogram
(Id
));
4339 Set_Flag240
(Id
, V
);
4340 end Set_Has_Postconditions
;
4342 procedure Set_Has_Pragma_Controlled
(Id
: E
; V
: B
:= True) is
4344 pragma Assert
(Is_Access_Type
(Id
));
4345 Set_Flag27
(Base_Type
(Id
), V
);
4346 end Set_Has_Pragma_Controlled
;
4348 procedure Set_Has_Pragma_Elaborate_Body
(Id
: E
; V
: B
:= True) is
4350 Set_Flag150
(Id
, V
);
4351 end Set_Has_Pragma_Elaborate_Body
;
4353 procedure Set_Has_Pragma_Inline
(Id
: E
; V
: B
:= True) is
4355 Set_Flag157
(Id
, V
);
4356 end Set_Has_Pragma_Inline
;
4358 procedure Set_Has_Pragma_Inline_Always
(Id
: E
; V
: B
:= True) is
4360 Set_Flag230
(Id
, V
);
4361 end Set_Has_Pragma_Inline_Always
;
4363 procedure Set_Has_Pragma_No_Inline
(Id
: E
; V
: B
:= True) is
4365 Set_Flag201
(Id
, V
);
4366 end Set_Has_Pragma_No_Inline
;
4368 procedure Set_Has_Pragma_Ordered
(Id
: E
; V
: B
:= True) is
4370 pragma Assert
(Is_Enumeration_Type
(Id
));
4371 pragma Assert
(Id
= Base_Type
(Id
));
4372 Set_Flag198
(Id
, V
);
4373 end Set_Has_Pragma_Ordered
;
4375 procedure Set_Has_Pragma_Pack
(Id
: E
; V
: B
:= True) is
4377 pragma Assert
(Is_Array_Type
(Id
) or else Is_Record_Type
(Id
));
4378 pragma Assert
(Id
= Base_Type
(Id
));
4379 Set_Flag121
(Id
, V
);
4380 end Set_Has_Pragma_Pack
;
4382 procedure Set_Has_Pragma_Preelab_Init
(Id
: E
; V
: B
:= True) is
4384 Set_Flag221
(Id
, V
);
4385 end Set_Has_Pragma_Preelab_Init
;
4387 procedure Set_Has_Pragma_Pure
(Id
: E
; V
: B
:= True) is
4389 Set_Flag203
(Id
, V
);
4390 end Set_Has_Pragma_Pure
;
4392 procedure Set_Has_Pragma_Pure_Function
(Id
: E
; V
: B
:= True) is
4394 Set_Flag179
(Id
, V
);
4395 end Set_Has_Pragma_Pure_Function
;
4397 procedure Set_Has_Pragma_Thread_Local_Storage
(Id
: E
; V
: B
:= True) is
4399 Set_Flag169
(Id
, V
);
4400 end Set_Has_Pragma_Thread_Local_Storage
;
4402 procedure Set_Has_Pragma_Unmodified
(Id
: E
; V
: B
:= True) is
4404 Set_Flag233
(Id
, V
);
4405 end Set_Has_Pragma_Unmodified
;
4407 procedure Set_Has_Pragma_Unreferenced
(Id
: E
; V
: B
:= True) is
4409 Set_Flag180
(Id
, V
);
4410 end Set_Has_Pragma_Unreferenced
;
4412 procedure Set_Has_Pragma_Unreferenced_Objects
(Id
: E
; V
: B
:= True) is
4414 pragma Assert
(Is_Type
(Id
));
4415 Set_Flag212
(Id
, V
);
4416 end Set_Has_Pragma_Unreferenced_Objects
;
4418 procedure Set_Has_Predicates
(Id
: E
; V
: B
:= True) is
4420 pragma Assert
(Is_Type
(Id
) or else Ekind
(Id
) = E_Void
);
4421 Set_Flag250
(Id
, V
);
4422 end Set_Has_Predicates
;
4424 procedure Set_Has_Primitive_Operations
(Id
: E
; V
: B
:= True) is
4426 pragma Assert
(Id
= Base_Type
(Id
));
4427 Set_Flag120
(Id
, V
);
4428 end Set_Has_Primitive_Operations
;
4430 procedure Set_Has_Private_Ancestor
(Id
: E
; V
: B
:= True) is
4432 pragma Assert
(Is_Type
(Id
));
4433 Set_Flag151
(Id
, V
);
4434 end Set_Has_Private_Ancestor
;
4436 procedure Set_Has_Private_Declaration
(Id
: E
; V
: B
:= True) is
4438 Set_Flag155
(Id
, V
);
4439 end Set_Has_Private_Declaration
;
4441 procedure Set_Has_Protected
(Id
: E
; V
: B
:= True) is
4443 Set_Flag271
(Id
, V
);
4444 end Set_Has_Protected
;
4446 procedure Set_Has_Qualified_Name
(Id
: E
; V
: B
:= True) is
4448 Set_Flag161
(Id
, V
);
4449 end Set_Has_Qualified_Name
;
4451 procedure Set_Has_RACW
(Id
: E
; V
: B
:= True) is
4453 pragma Assert
(Ekind
(Id
) = E_Package
);
4454 Set_Flag214
(Id
, V
);
4457 procedure Set_Has_Record_Rep_Clause
(Id
: E
; V
: B
:= True) is
4459 pragma Assert
(Id
= Base_Type
(Id
));
4461 end Set_Has_Record_Rep_Clause
;
4463 procedure Set_Has_Recursive_Call
(Id
: E
; V
: B
:= True) is
4465 pragma Assert
(Is_Subprogram
(Id
));
4466 Set_Flag143
(Id
, V
);
4467 end Set_Has_Recursive_Call
;
4469 procedure Set_Has_Shift_Operator
(Id
: E
; V
: B
:= True) is
4471 pragma Assert
(Is_Integer_Type
(Id
) and then Is_Base_Type
(Id
));
4472 Set_Flag267
(Id
, V
);
4473 end Set_Has_Shift_Operator
;
4475 procedure Set_Has_Size_Clause
(Id
: E
; V
: B
:= True) is
4478 end Set_Has_Size_Clause
;
4480 procedure Set_Has_Small_Clause
(Id
: E
; V
: B
:= True) is
4483 end Set_Has_Small_Clause
;
4485 procedure Set_Has_Specified_Layout
(Id
: E
; V
: B
:= True) is
4487 pragma Assert
(Id
= Base_Type
(Id
));
4488 Set_Flag100
(Id
, V
);
4489 end Set_Has_Specified_Layout
;
4491 procedure Set_Has_Specified_Stream_Input
(Id
: E
; V
: B
:= True) is
4493 pragma Assert
(Is_Type
(Id
));
4494 Set_Flag190
(Id
, V
);
4495 end Set_Has_Specified_Stream_Input
;
4497 procedure Set_Has_Specified_Stream_Output
(Id
: E
; V
: B
:= True) is
4499 pragma Assert
(Is_Type
(Id
));
4500 Set_Flag191
(Id
, V
);
4501 end Set_Has_Specified_Stream_Output
;
4503 procedure Set_Has_Specified_Stream_Read
(Id
: E
; V
: B
:= True) is
4505 pragma Assert
(Is_Type
(Id
));
4506 Set_Flag192
(Id
, V
);
4507 end Set_Has_Specified_Stream_Read
;
4509 procedure Set_Has_Specified_Stream_Write
(Id
: E
; V
: B
:= True) is
4511 pragma Assert
(Is_Type
(Id
));
4512 Set_Flag193
(Id
, V
);
4513 end Set_Has_Specified_Stream_Write
;
4515 procedure Set_Has_Static_Discriminants
(Id
: E
; V
: B
:= True) is
4517 Set_Flag211
(Id
, V
);
4518 end Set_Has_Static_Discriminants
;
4520 procedure Set_Has_Static_Predicate
(Id
: E
; V
: B
:= True) is
4522 pragma Assert
(Is_Type
(Id
));
4523 Set_Flag269
(Id
, V
);
4524 end Set_Has_Static_Predicate
;
4526 procedure Set_Has_Static_Predicate_Aspect
(Id
: E
; V
: B
:= True) is
4528 pragma Assert
(Is_Type
(Id
));
4529 Set_Flag259
(Id
, V
);
4530 end Set_Has_Static_Predicate_Aspect
;
4532 procedure Set_Has_Storage_Size_Clause
(Id
: E
; V
: B
:= True) is
4534 pragma Assert
(Is_Access_Type
(Id
) or else Is_Task_Type
(Id
));
4535 pragma Assert
(Id
= Base_Type
(Id
));
4537 end Set_Has_Storage_Size_Clause
;
4539 procedure Set_Has_Stream_Size_Clause
(Id
: E
; V
: B
:= True) is
4541 pragma Assert
(Is_Elementary_Type
(Id
));
4542 Set_Flag184
(Id
, V
);
4543 end Set_Has_Stream_Size_Clause
;
4545 procedure Set_Has_Task
(Id
: E
; V
: B
:= True) is
4547 pragma Assert
(Id
= Base_Type
(Id
));
4551 procedure Set_Has_Thunks
(Id
: E
; V
: B
:= True) is
4553 pragma Assert
(Is_Tag
(Id
));
4554 Set_Flag228
(Id
, V
);
4557 procedure Set_Has_Unchecked_Union
(Id
: E
; V
: B
:= True) is
4559 pragma Assert
(Id
= Base_Type
(Id
));
4560 Set_Flag123
(Id
, V
);
4561 end Set_Has_Unchecked_Union
;
4563 procedure Set_Has_Unknown_Discriminants
(Id
: E
; V
: B
:= True) is
4565 pragma Assert
(Is_Type
(Id
));
4567 end Set_Has_Unknown_Discriminants
;
4569 procedure Set_Has_Visible_Refinement
(Id
: E
; V
: B
:= True) is
4571 pragma Assert
(Ekind
(Id
) = E_Abstract_State
);
4572 Set_Flag263
(Id
, V
);
4573 end Set_Has_Visible_Refinement
;
4575 procedure Set_Has_Volatile_Components
(Id
: E
; V
: B
:= True) is
4577 pragma Assert
(not Is_Type
(Id
) or else Is_Base_Type
(Id
));
4579 end Set_Has_Volatile_Components
;
4581 procedure Set_Has_Xref_Entry
(Id
: E
; V
: B
:= True) is
4583 Set_Flag182
(Id
, V
);
4584 end Set_Has_Xref_Entry
;
4586 procedure Set_Hiding_Loop_Variable
(Id
: E
; V
: E
) is
4588 pragma Assert
(Ekind
(Id
) = E_Variable
);
4590 end Set_Hiding_Loop_Variable
;
4592 procedure Set_Homonym
(Id
: E
; V
: E
) is
4594 pragma Assert
(Id
/= V
);
4598 procedure Set_Import_Pragma
(Id
: E
; V
: E
) is
4600 pragma Assert
(Is_Subprogram
(Id
));
4602 end Set_Import_Pragma
;
4604 procedure Set_Interface_Alias
(Id
: E
; V
: E
) is
4608 and then Is_Hidden
(Id
)
4609 and then (Ekind_In
(Id
, E_Procedure
, E_Function
)));
4611 end Set_Interface_Alias
;
4613 procedure Set_Interfaces
(Id
: E
; V
: L
) is
4615 pragma Assert
(Is_Record_Type
(Id
));
4616 Set_Elist25
(Id
, V
);
4619 procedure Set_In_Package_Body
(Id
: E
; V
: B
:= True) is
4622 end Set_In_Package_Body
;
4624 procedure Set_In_Private_Part
(Id
: E
; V
: B
:= True) is
4627 end Set_In_Private_Part
;
4629 procedure Set_In_Use
(Id
: E
; V
: B
:= True) is
4631 pragma Assert
(Nkind
(Id
) in N_Entity
);
4635 procedure Set_Initialization_Statements
(Id
: E
; V
: N
) is
4637 -- Tolerate an E_Void entity since this can be called while resolving
4638 -- an aggregate used as the initialization expression for an object
4639 -- declaration, and this occurs before the Ekind for the object is set.
4641 pragma Assert
(Ekind_In
(Id
, E_Void
, E_Constant
, E_Variable
));
4643 end Set_Initialization_Statements
;
4645 procedure Set_Inner_Instances
(Id
: E
; V
: L
) is
4647 Set_Elist23
(Id
, V
);
4648 end Set_Inner_Instances
;
4650 procedure Set_Interface_Name
(Id
: E
; V
: N
) is
4653 end Set_Interface_Name
;
4655 procedure Set_Is_Abstract_Subprogram
(Id
: E
; V
: B
:= True) is
4657 pragma Assert
(Is_Overloadable
(Id
));
4659 end Set_Is_Abstract_Subprogram
;
4661 procedure Set_Is_Abstract_Type
(Id
: E
; V
: B
:= True) is
4663 pragma Assert
(Is_Type
(Id
));
4664 Set_Flag146
(Id
, V
);
4665 end Set_Is_Abstract_Type
;
4667 procedure Set_Is_Local_Anonymous_Access
(Id
: E
; V
: B
:= True) is
4669 pragma Assert
(Is_Access_Type
(Id
));
4670 Set_Flag194
(Id
, V
);
4671 end Set_Is_Local_Anonymous_Access
;
4673 procedure Set_Is_Access_Constant
(Id
: E
; V
: B
:= True) is
4675 pragma Assert
(Is_Access_Type
(Id
));
4677 end Set_Is_Access_Constant
;
4679 procedure Set_Is_Ada_2005_Only
(Id
: E
; V
: B
:= True) is
4681 Set_Flag185
(Id
, V
);
4682 end Set_Is_Ada_2005_Only
;
4684 procedure Set_Is_Ada_2012_Only
(Id
: E
; V
: B
:= True) is
4686 Set_Flag199
(Id
, V
);
4687 end Set_Is_Ada_2012_Only
;
4689 procedure Set_Is_Aliased
(Id
: E
; V
: B
:= True) is
4691 pragma Assert
(Nkind
(Id
) in N_Entity
);
4695 procedure Set_Is_Asynchronous
(Id
: E
; V
: B
:= True) is
4698 (Ekind
(Id
) = E_Procedure
or else Is_Type
(Id
));
4700 end Set_Is_Asynchronous
;
4702 procedure Set_Is_Atomic
(Id
: E
; V
: B
:= True) is
4707 procedure Set_Is_Bit_Packed_Array
(Id
: E
; V
: B
:= True) is
4709 pragma Assert
((not V
)
4710 or else (Is_Array_Type
(Id
) and then Is_Base_Type
(Id
)));
4711 Set_Flag122
(Id
, V
);
4712 end Set_Is_Bit_Packed_Array
;
4714 procedure Set_Is_Called
(Id
: E
; V
: B
:= True) is
4716 pragma Assert
(Ekind_In
(Id
, E_Procedure
, E_Function
));
4717 Set_Flag102
(Id
, V
);
4720 procedure Set_Is_Character_Type
(Id
: E
; V
: B
:= True) is
4723 end Set_Is_Character_Type
;
4725 procedure Set_Is_Child_Unit
(Id
: E
; V
: B
:= True) is
4728 end Set_Is_Child_Unit
;
4730 procedure Set_Is_Class_Wide_Equivalent_Type
(Id
: E
; V
: B
:= True) is
4733 end Set_Is_Class_Wide_Equivalent_Type
;
4735 procedure Set_Is_Compilation_Unit
(Id
: E
; V
: B
:= True) is
4737 Set_Flag149
(Id
, V
);
4738 end Set_Is_Compilation_Unit
;
4740 procedure Set_Is_Completely_Hidden
(Id
: E
; V
: B
:= True) is
4742 pragma Assert
(Ekind
(Id
) = E_Discriminant
);
4743 Set_Flag103
(Id
, V
);
4744 end Set_Is_Completely_Hidden
;
4746 procedure Set_Is_Concurrent_Record_Type
(Id
: E
; V
: B
:= True) is
4749 end Set_Is_Concurrent_Record_Type
;
4751 procedure Set_Is_Constr_Subt_For_U_Nominal
(Id
: E
; V
: B
:= True) is
4754 end Set_Is_Constr_Subt_For_U_Nominal
;
4756 procedure Set_Is_Constr_Subt_For_UN_Aliased
(Id
: E
; V
: B
:= True) is
4758 Set_Flag141
(Id
, V
);
4759 end Set_Is_Constr_Subt_For_UN_Aliased
;
4761 procedure Set_Is_Constrained
(Id
: E
; V
: B
:= True) is
4763 pragma Assert
(Nkind
(Id
) in N_Entity
);
4765 end Set_Is_Constrained
;
4767 procedure Set_Is_Constructor
(Id
: E
; V
: B
:= True) is
4770 end Set_Is_Constructor
;
4772 procedure Set_Is_Controlled
(Id
: E
; V
: B
:= True) is
4774 pragma Assert
(Id
= Base_Type
(Id
));
4776 end Set_Is_Controlled
;
4778 procedure Set_Is_Controlling_Formal
(Id
: E
; V
: B
:= True) is
4780 pragma Assert
(Is_Formal
(Id
));
4782 end Set_Is_Controlling_Formal
;
4784 procedure Set_Is_CPP_Class
(Id
: E
; V
: B
:= True) is
4787 end Set_Is_CPP_Class
;
4789 procedure Set_Is_Default_Init_Cond_Procedure
(Id
: E
; V
: B
:= True) is
4791 pragma Assert
(Ekind
(Id
) = E_Procedure
);
4792 Set_Flag132
(Id
, V
);
4793 end Set_Is_Default_Init_Cond_Procedure
;
4795 procedure Set_Is_Descendent_Of_Address
(Id
: E
; V
: B
:= True) is
4797 pragma Assert
(Is_Type
(Id
));
4798 Set_Flag223
(Id
, V
);
4799 end Set_Is_Descendent_Of_Address
;
4801 procedure Set_Is_Discrim_SO_Function
(Id
: E
; V
: B
:= True) is
4803 Set_Flag176
(Id
, V
);
4804 end Set_Is_Discrim_SO_Function
;
4806 procedure Set_Is_Discriminant_Check_Function
(Id
: E
; V
: B
:= True) is
4808 Set_Flag264
(Id
, V
);
4809 end Set_Is_Discriminant_Check_Function
;
4811 procedure Set_Is_Dispatch_Table_Entity
(Id
: E
; V
: B
:= True) is
4813 Set_Flag234
(Id
, V
);
4814 end Set_Is_Dispatch_Table_Entity
;
4816 procedure Set_Is_Dispatching_Operation
(Id
: E
; V
: B
:= True) is
4821 Is_Overloadable
(Id
)
4823 Ekind
(Id
) = E_Subprogram_Type
);
4826 end Set_Is_Dispatching_Operation
;
4828 procedure Set_Is_Eliminated
(Id
: E
; V
: B
:= True) is
4830 Set_Flag124
(Id
, V
);
4831 end Set_Is_Eliminated
;
4833 procedure Set_Is_Entry_Formal
(Id
: E
; V
: B
:= True) is
4836 end Set_Is_Entry_Formal
;
4838 procedure Set_Is_Exported
(Id
: E
; V
: B
:= True) is
4841 end Set_Is_Exported
;
4843 procedure Set_Is_First_Subtype
(Id
: E
; V
: B
:= True) is
4846 end Set_Is_First_Subtype
;
4848 procedure Set_Is_For_Access_Subtype
(Id
: E
; V
: B
:= True) is
4850 pragma Assert
(Ekind_In
(Id
, E_Record_Subtype
, E_Private_Subtype
));
4851 Set_Flag118
(Id
, V
);
4852 end Set_Is_For_Access_Subtype
;
4854 procedure Set_Is_Formal_Subprogram
(Id
: E
; V
: B
:= True) is
4856 Set_Flag111
(Id
, V
);
4857 end Set_Is_Formal_Subprogram
;
4859 procedure Set_Is_Frozen
(Id
: E
; V
: B
:= True) is
4861 pragma Assert
(Nkind
(Id
) in N_Entity
);
4865 procedure Set_Is_Generic_Actual_Subprogram
(Id
: E
; V
: B
:= True) is
4867 pragma Assert
(Ekind
(Id
) = E_Function
or else Ekind
(Id
) = E_Procedure
);
4868 Set_Flag274
(Id
, V
);
4869 end Set_Is_Generic_Actual_Subprogram
;
4871 procedure Set_Is_Generic_Actual_Type
(Id
: E
; V
: B
:= True) is
4873 pragma Assert
(Is_Type
(Id
));
4875 end Set_Is_Generic_Actual_Type
;
4877 procedure Set_Is_Generic_Instance
(Id
: E
; V
: B
:= True) is
4879 Set_Flag130
(Id
, V
);
4880 end Set_Is_Generic_Instance
;
4882 procedure Set_Is_Generic_Type
(Id
: E
; V
: B
:= True) is
4884 pragma Assert
(Nkind
(Id
) in N_Entity
);
4886 end Set_Is_Generic_Type
;
4888 procedure Set_Is_Hidden
(Id
: E
; V
: B
:= True) is
4893 procedure Set_Is_Hidden_Non_Overridden_Subpgm
(Id
: E
; V
: B
:= True) is
4895 pragma Assert
(Ekind_In
(Id
, E_Function
, E_Procedure
));
4897 end Set_Is_Hidden_Non_Overridden_Subpgm
;
4899 procedure Set_Is_Hidden_Open_Scope
(Id
: E
; V
: B
:= True) is
4901 Set_Flag171
(Id
, V
);
4902 end Set_Is_Hidden_Open_Scope
;
4904 procedure Set_Is_Immediately_Visible
(Id
: E
; V
: B
:= True) is
4906 pragma Assert
(Nkind
(Id
) in N_Entity
);
4908 end Set_Is_Immediately_Visible
;
4910 procedure Set_Is_Implementation_Defined
(Id
: E
; V
: B
:= True) is
4912 Set_Flag254
(Id
, V
);
4913 end Set_Is_Implementation_Defined
;
4915 procedure Set_Is_Imported
(Id
: E
; V
: B
:= True) is
4918 end Set_Is_Imported
;
4920 procedure Set_Is_Independent
(Id
: E
; V
: B
:= True) is
4922 pragma Assert
(Ekind_In
(Id
, E_Component
, E_Void
));
4923 Set_Flag268
(Id
, V
);
4924 end Set_Is_Independent
;
4926 procedure Set_Is_Inlined
(Id
: E
; V
: B
:= True) is
4931 procedure Set_Is_Inlined_Always
(Id
: E
; V
: B
:= True) is
4933 pragma Assert
(Ekind
(Id
) = E_Function
or else Ekind
(Id
) = E_Procedure
);
4935 end Set_Is_Inlined_Always
;
4937 procedure Set_Is_Interface
(Id
: E
; V
: B
:= True) is
4939 pragma Assert
(Is_Record_Type
(Id
));
4940 Set_Flag186
(Id
, V
);
4941 end Set_Is_Interface
;
4943 procedure Set_Is_Instantiated
(Id
: E
; V
: B
:= True) is
4945 Set_Flag126
(Id
, V
);
4946 end Set_Is_Instantiated
;
4948 procedure Set_Is_Internal
(Id
: E
; V
: B
:= True) is
4950 pragma Assert
(Nkind
(Id
) in N_Entity
);
4952 end Set_Is_Internal
;
4954 procedure Set_Is_Interrupt_Handler
(Id
: E
; V
: B
:= True) is
4956 pragma Assert
(Nkind
(Id
) in N_Entity
);
4958 end Set_Is_Interrupt_Handler
;
4960 procedure Set_Is_Intrinsic_Subprogram
(Id
: E
; V
: B
:= True) is
4963 end Set_Is_Intrinsic_Subprogram
;
4965 procedure Set_Is_Invariant_Procedure
(Id
: E
; V
: B
:= True) is
4967 pragma Assert
(Ekind
(Id
) = E_Procedure
);
4968 Set_Flag257
(Id
, V
);
4969 end Set_Is_Invariant_Procedure
;
4971 procedure Set_Is_Itype
(Id
: E
; V
: B
:= True) is
4976 procedure Set_Is_Known_Non_Null
(Id
: E
; V
: B
:= True) is
4979 end Set_Is_Known_Non_Null
;
4981 procedure Set_Is_Known_Null
(Id
: E
; V
: B
:= True) is
4983 Set_Flag204
(Id
, V
);
4984 end Set_Is_Known_Null
;
4986 procedure Set_Is_Known_Valid
(Id
: E
; V
: B
:= True) is
4988 Set_Flag170
(Id
, V
);
4989 end Set_Is_Known_Valid
;
4991 procedure Set_Is_Limited_Composite
(Id
: E
; V
: B
:= True) is
4993 pragma Assert
(Is_Type
(Id
));
4994 Set_Flag106
(Id
, V
);
4995 end Set_Is_Limited_Composite
;
4997 procedure Set_Is_Limited_Interface
(Id
: E
; V
: B
:= True) is
4999 pragma Assert
(Is_Interface
(Id
));
5000 Set_Flag197
(Id
, V
);
5001 end Set_Is_Limited_Interface
;
5003 procedure Set_Is_Limited_Record
(Id
: E
; V
: B
:= True) is
5006 end Set_Is_Limited_Record
;
5008 procedure Set_Is_Machine_Code_Subprogram
(Id
: E
; V
: B
:= True) is
5010 pragma Assert
(Is_Subprogram
(Id
));
5011 Set_Flag137
(Id
, V
);
5012 end Set_Is_Machine_Code_Subprogram
;
5014 procedure Set_Is_Non_Static_Subtype
(Id
: E
; V
: B
:= True) is
5016 pragma Assert
(Is_Type
(Id
));
5017 Set_Flag109
(Id
, V
);
5018 end Set_Is_Non_Static_Subtype
;
5020 procedure Set_Is_Null_Init_Proc
(Id
: E
; V
: B
:= True) is
5022 pragma Assert
(Ekind
(Id
) = E_Procedure
);
5023 Set_Flag178
(Id
, V
);
5024 end Set_Is_Null_Init_Proc
;
5026 procedure Set_Is_Obsolescent
(Id
: E
; V
: B
:= True) is
5028 Set_Flag153
(Id
, V
);
5029 end Set_Is_Obsolescent
;
5031 procedure Set_Is_Only_Out_Parameter
(Id
: E
; V
: B
:= True) is
5033 pragma Assert
(Ekind
(Id
) = E_Out_Parameter
);
5034 Set_Flag226
(Id
, V
);
5035 end Set_Is_Only_Out_Parameter
;
5037 procedure Set_Is_Package_Body_Entity
(Id
: E
; V
: B
:= True) is
5039 Set_Flag160
(Id
, V
);
5040 end Set_Is_Package_Body_Entity
;
5042 procedure Set_Is_Packed
(Id
: E
; V
: B
:= True) is
5044 pragma Assert
(Id
= Base_Type
(Id
));
5048 procedure Set_Is_Packed_Array_Impl_Type
(Id
: E
; V
: B
:= True) is
5050 Set_Flag138
(Id
, V
);
5051 end Set_Is_Packed_Array_Impl_Type
;
5053 procedure Set_Is_Potentially_Use_Visible
(Id
: E
; V
: B
:= True) is
5055 pragma Assert
(Nkind
(Id
) in N_Entity
);
5057 end Set_Is_Potentially_Use_Visible
;
5059 procedure Set_Is_Predicate_Function
(Id
: E
; V
: B
:= True) is
5061 pragma Assert
(Ekind
(Id
) = E_Function
or else Ekind
(Id
) = E_Procedure
);
5062 Set_Flag255
(Id
, V
);
5063 end Set_Is_Predicate_Function
;
5065 procedure Set_Is_Predicate_Function_M
(Id
: E
; V
: B
:= True) is
5067 pragma Assert
(Ekind
(Id
) = E_Function
or else Ekind
(Id
) = E_Procedure
);
5068 Set_Flag256
(Id
, V
);
5069 end Set_Is_Predicate_Function_M
;
5071 procedure Set_Is_Preelaborated
(Id
: E
; V
: B
:= True) is
5074 end Set_Is_Preelaborated
;
5076 procedure Set_Is_Primitive
(Id
: E
; V
: B
:= True) is
5079 (Is_Overloadable
(Id
)
5080 or else Ekind_In
(Id
, E_Generic_Function
, E_Generic_Procedure
));
5081 Set_Flag218
(Id
, V
);
5082 end Set_Is_Primitive
;
5084 procedure Set_Is_Primitive_Wrapper
(Id
: E
; V
: B
:= True) is
5086 pragma Assert
(Ekind_In
(Id
, E_Function
, E_Procedure
));
5087 Set_Flag195
(Id
, V
);
5088 end Set_Is_Primitive_Wrapper
;
5090 procedure Set_Is_Private_Composite
(Id
: E
; V
: B
:= True) is
5092 pragma Assert
(Is_Type
(Id
));
5093 Set_Flag107
(Id
, V
);
5094 end Set_Is_Private_Composite
;
5096 procedure Set_Is_Private_Descendant
(Id
: E
; V
: B
:= True) is
5099 end Set_Is_Private_Descendant
;
5101 procedure Set_Is_Private_Primitive
(Id
: E
; V
: B
:= True) is
5103 pragma Assert
(Ekind_In
(Id
, E_Function
, E_Procedure
));
5104 Set_Flag245
(Id
, V
);
5105 end Set_Is_Private_Primitive
;
5107 procedure Set_Is_Processed_Transient
(Id
: E
; V
: B
:= True) is
5109 pragma Assert
(Ekind_In
(Id
, E_Constant
, E_Loop_Parameter
, E_Variable
));
5110 Set_Flag252
(Id
, V
);
5111 end Set_Is_Processed_Transient
;
5113 procedure Set_Is_Public
(Id
: E
; V
: B
:= True) is
5115 pragma Assert
(Nkind
(Id
) in N_Entity
);
5119 procedure Set_Is_Pure
(Id
: E
; V
: B
:= True) is
5124 procedure Set_Is_Pure_Unit_Access_Type
(Id
: E
; V
: B
:= True) is
5126 pragma Assert
(Is_Access_Type
(Id
));
5127 Set_Flag189
(Id
, V
);
5128 end Set_Is_Pure_Unit_Access_Type
;
5130 procedure Set_Is_RACW_Stub_Type
(Id
: E
; V
: B
:= True) is
5132 pragma Assert
(Is_Type
(Id
));
5133 Set_Flag244
(Id
, V
);
5134 end Set_Is_RACW_Stub_Type
;
5136 procedure Set_Is_Raised
(Id
: E
; V
: B
:= True) is
5138 pragma Assert
(Ekind
(Id
) = E_Exception
);
5139 Set_Flag224
(Id
, V
);
5142 procedure Set_Is_Remote_Call_Interface
(Id
: E
; V
: B
:= True) is
5145 end Set_Is_Remote_Call_Interface
;
5147 procedure Set_Is_Remote_Types
(Id
: E
; V
: B
:= True) is
5150 end Set_Is_Remote_Types
;
5152 procedure Set_Is_Renaming_Of_Object
(Id
: E
; V
: B
:= True) is
5154 Set_Flag112
(Id
, V
);
5155 end Set_Is_Renaming_Of_Object
;
5157 procedure Set_Is_Return_Object
(Id
: E
; V
: B
:= True) is
5159 Set_Flag209
(Id
, V
);
5160 end Set_Is_Return_Object
;
5162 procedure Set_Is_Safe_To_Reevaluate
(Id
: E
; V
: B
:= True) is
5164 pragma Assert
(Ekind
(Id
) = E_Variable
);
5165 Set_Flag249
(Id
, V
);
5166 end Set_Is_Safe_To_Reevaluate
;
5168 procedure Set_Is_Shared_Passive
(Id
: E
; V
: B
:= True) is
5171 end Set_Is_Shared_Passive
;
5173 procedure Set_Is_Statically_Allocated
(Id
: E
; V
: B
:= True) is
5177 or else Ekind_In
(Id
, E_Exception
,
5182 end Set_Is_Statically_Allocated
;
5184 procedure Set_Is_Tag
(Id
: E
; V
: B
:= True) is
5186 pragma Assert
(Ekind_In
(Id
, E_Component
, E_Constant
, E_Variable
));
5190 procedure Set_Is_Tagged_Type
(Id
: E
; V
: B
:= True) is
5193 end Set_Is_Tagged_Type
;
5195 procedure Set_Is_Thunk
(Id
: E
; V
: B
:= True) is
5197 pragma Assert
(Is_Subprogram
(Id
));
5198 Set_Flag225
(Id
, V
);
5201 procedure Set_Is_Trivial_Subprogram
(Id
: E
; V
: B
:= True) is
5203 Set_Flag235
(Id
, V
);
5204 end Set_Is_Trivial_Subprogram
;
5206 procedure Set_Is_True_Constant
(Id
: E
; V
: B
:= True) is
5208 Set_Flag163
(Id
, V
);
5209 end Set_Is_True_Constant
;
5211 procedure Set_Is_Unchecked_Union
(Id
: E
; V
: B
:= True) is
5213 pragma Assert
(Id
= Base_Type
(Id
));
5214 Set_Flag117
(Id
, V
);
5215 end Set_Is_Unchecked_Union
;
5217 procedure Set_Is_Underlying_Record_View
(Id
: E
; V
: B
:= True) is
5219 pragma Assert
(Ekind
(Id
) = E_Record_Type
);
5220 Set_Flag246
(Id
, V
);
5221 end Set_Is_Underlying_Record_View
;
5223 procedure Set_Is_Unsigned_Type
(Id
: E
; V
: B
:= True) is
5225 pragma Assert
(Is_Discrete_Or_Fixed_Point_Type
(Id
));
5226 Set_Flag144
(Id
, V
);
5227 end Set_Is_Unsigned_Type
;
5229 procedure Set_Is_Valued_Procedure
(Id
: E
; V
: B
:= True) is
5231 pragma Assert
(Ekind
(Id
) = E_Procedure
);
5232 Set_Flag127
(Id
, V
);
5233 end Set_Is_Valued_Procedure
;
5235 procedure Set_Is_Visible_Formal
(Id
: E
; V
: B
:= True) is
5237 Set_Flag206
(Id
, V
);
5238 end Set_Is_Visible_Formal
;
5240 procedure Set_Is_Visible_Lib_Unit
(Id
: E
; V
: B
:= True) is
5242 Set_Flag116
(Id
, V
);
5243 end Set_Is_Visible_Lib_Unit
;
5245 procedure Set_Is_Volatile
(Id
: E
; V
: B
:= True) is
5247 pragma Assert
(Nkind
(Id
) in N_Entity
);
5249 end Set_Is_Volatile
;
5251 procedure Set_Itype_Printed
(Id
: E
; V
: B
:= True) is
5253 pragma Assert
(Is_Itype
(Id
));
5254 Set_Flag202
(Id
, V
);
5255 end Set_Itype_Printed
;
5257 procedure Set_Kill_Elaboration_Checks
(Id
: E
; V
: B
:= True) is
5260 end Set_Kill_Elaboration_Checks
;
5262 procedure Set_Kill_Range_Checks
(Id
: E
; V
: B
:= True) is
5265 end Set_Kill_Range_Checks
;
5267 procedure Set_Known_To_Have_Preelab_Init
(Id
: E
; V
: B
:= True) is
5269 pragma Assert
(Is_Type
(Id
));
5270 Set_Flag207
(Id
, V
);
5271 end Set_Known_To_Have_Preelab_Init
;
5273 procedure Set_Last_Aggregate_Assignment
(Id
: E
; V
: N
) is
5275 pragma Assert
(Ekind_In
(Id
, E_Constant
, E_Variable
));
5277 end Set_Last_Aggregate_Assignment
;
5279 procedure Set_Last_Assignment
(Id
: E
; V
: N
) is
5281 pragma Assert
(Is_Assignable
(Id
));
5283 end Set_Last_Assignment
;
5285 procedure Set_Last_Entity
(Id
: E
; V
: E
) is
5288 end Set_Last_Entity
;
5290 procedure Set_Limited_View
(Id
: E
; V
: E
) is
5292 pragma Assert
(Ekind
(Id
) = E_Package
);
5294 end Set_Limited_View
;
5296 procedure Set_Linker_Section_Pragma
(Id
: E
; V
: N
) is
5298 pragma Assert
(Is_Type
(Id
)
5299 or else Ekind_In
(Id
, E_Constant
, E_Variable
)
5300 or else Is_Subprogram
(Id
));
5302 end Set_Linker_Section_Pragma
;
5304 procedure Set_Lit_Indexes
(Id
: E
; V
: E
) is
5306 pragma Assert
(Is_Enumeration_Type
(Id
) and then Root_Type
(Id
) = Id
);
5308 end Set_Lit_Indexes
;
5310 procedure Set_Lit_Strings
(Id
: E
; V
: E
) is
5312 pragma Assert
(Is_Enumeration_Type
(Id
) and then Root_Type
(Id
) = Id
);
5314 end Set_Lit_Strings
;
5316 procedure Set_Low_Bound_Tested
(Id
: E
; V
: B
:= True) is
5318 pragma Assert
(Is_Formal
(Id
));
5319 Set_Flag205
(Id
, V
);
5320 end Set_Low_Bound_Tested
;
5322 procedure Set_Machine_Radix_10
(Id
: E
; V
: B
:= True) is
5324 pragma Assert
(Is_Decimal_Fixed_Point_Type
(Id
));
5326 end Set_Machine_Radix_10
;
5328 procedure Set_Master_Id
(Id
: E
; V
: E
) is
5330 pragma Assert
(Is_Access_Type
(Id
));
5334 procedure Set_Materialize_Entity
(Id
: E
; V
: B
:= True) is
5336 Set_Flag168
(Id
, V
);
5337 end Set_Materialize_Entity
;
5339 procedure Set_May_Inherit_Delayed_Rep_Aspects
(Id
: E
; V
: B
:= True) is
5341 Set_Flag262
(Id
, V
);
5342 end Set_May_Inherit_Delayed_Rep_Aspects
;
5344 procedure Set_Mechanism
(Id
: E
; V
: M
) is
5346 pragma Assert
(Ekind
(Id
) = E_Function
or else Is_Formal
(Id
));
5347 Set_Uint8
(Id
, UI_From_Int
(V
));
5350 procedure Set_Modulus
(Id
: E
; V
: U
) is
5352 pragma Assert
(Ekind
(Id
) = E_Modular_Integer_Type
);
5356 procedure Set_Must_Be_On_Byte_Boundary
(Id
: E
; V
: B
:= True) is
5358 pragma Assert
(Is_Type
(Id
));
5359 Set_Flag183
(Id
, V
);
5360 end Set_Must_Be_On_Byte_Boundary
;
5362 procedure Set_Must_Have_Preelab_Init
(Id
: E
; V
: B
:= True) is
5364 pragma Assert
(Is_Type
(Id
));
5365 Set_Flag208
(Id
, V
);
5366 end Set_Must_Have_Preelab_Init
;
5368 procedure Set_Needs_Debug_Info
(Id
: E
; V
: B
:= True) is
5370 Set_Flag147
(Id
, V
);
5371 end Set_Needs_Debug_Info
;
5373 procedure Set_Needs_No_Actuals
(Id
: E
; V
: B
:= True) is
5376 (Is_Overloadable
(Id
)
5377 or else Ekind_In
(Id
, E_Subprogram_Type
, E_Entry_Family
));
5379 end Set_Needs_No_Actuals
;
5381 procedure Set_Never_Set_In_Source
(Id
: E
; V
: B
:= True) is
5383 Set_Flag115
(Id
, V
);
5384 end Set_Never_Set_In_Source
;
5386 procedure Set_Next_Inlined_Subprogram
(Id
: E
; V
: E
) is
5389 end Set_Next_Inlined_Subprogram
;
5391 procedure Set_No_Dynamic_Predicate_On_Actual
(Id
: E
; V
: B
:= True) is
5393 pragma Assert
(Is_Discrete_Type
(Id
));
5394 Set_Flag276
(Id
, V
);
5395 end Set_No_Dynamic_Predicate_On_Actual
;
5397 procedure Set_No_Pool_Assigned
(Id
: E
; V
: B
:= True) is
5399 pragma Assert
(Is_Access_Type
(Id
) and then Is_Base_Type
(Id
));
5400 Set_Flag131
(Id
, V
);
5401 end Set_No_Pool_Assigned
;
5403 procedure Set_No_Predicate_On_Actual
(Id
: E
; V
: B
:= True) is
5405 pragma Assert
(Is_Discrete_Type
(Id
));
5406 Set_Flag275
(Id
, V
);
5407 end Set_No_Predicate_On_Actual
;
5409 procedure Set_No_Return
(Id
: E
; V
: B
:= True) is
5412 (V
= False or else Ekind_In
(Id
, E_Procedure
, E_Generic_Procedure
));
5413 Set_Flag113
(Id
, V
);
5416 procedure Set_No_Strict_Aliasing
(Id
: E
; V
: B
:= True) is
5418 pragma Assert
(Is_Access_Type
(Id
) and then Is_Base_Type
(Id
));
5419 Set_Flag136
(Id
, V
);
5420 end Set_No_Strict_Aliasing
;
5422 procedure Set_Non_Binary_Modulus
(Id
: E
; V
: B
:= True) is
5424 pragma Assert
(Is_Type
(Id
) and then Is_Base_Type
(Id
));
5426 end Set_Non_Binary_Modulus
;
5428 procedure Set_Non_Limited_View
(Id
: E
; V
: E
) is
5431 (Ekind
(Id
) in Incomplete_Kind
or else Ekind
(Id
) = E_Abstract_State
);
5433 end Set_Non_Limited_View
;
5435 procedure Set_Nonzero_Is_True
(Id
: E
; V
: B
:= True) is
5438 (Root_Type
(Id
) = Standard_Boolean
5439 and then Ekind
(Id
) = E_Enumeration_Type
);
5440 Set_Flag162
(Id
, V
);
5441 end Set_Nonzero_Is_True
;
5443 procedure Set_Normalized_First_Bit
(Id
: E
; V
: U
) is
5445 pragma Assert
(Ekind_In
(Id
, E_Component
, E_Discriminant
));
5447 end Set_Normalized_First_Bit
;
5449 procedure Set_Normalized_Position
(Id
: E
; V
: U
) is
5451 pragma Assert
(Ekind_In
(Id
, E_Component
, E_Discriminant
));
5453 end Set_Normalized_Position
;
5455 procedure Set_Normalized_Position_Max
(Id
: E
; V
: U
) is
5457 pragma Assert
(Ekind_In
(Id
, E_Component
, E_Discriminant
));
5459 end Set_Normalized_Position_Max
;
5461 procedure Set_OK_To_Rename
(Id
: E
; V
: B
:= True) is
5463 pragma Assert
(Ekind
(Id
) = E_Variable
);
5464 Set_Flag247
(Id
, V
);
5465 end Set_OK_To_Rename
;
5467 procedure Set_OK_To_Reorder_Components
(Id
: E
; V
: B
:= True) is
5470 (Is_Record_Type
(Id
) and then Is_Base_Type
(Id
));
5471 Set_Flag239
(Id
, V
);
5472 end Set_OK_To_Reorder_Components
;
5474 procedure Set_Optimize_Alignment_Space
(Id
: E
; V
: B
:= True) is
5477 (Is_Type
(Id
) or else Ekind_In
(Id
, E_Constant
, E_Variable
));
5478 Set_Flag241
(Id
, V
);
5479 end Set_Optimize_Alignment_Space
;
5481 procedure Set_Optimize_Alignment_Time
(Id
: E
; V
: B
:= True) is
5484 (Is_Type
(Id
) or else Ekind_In
(Id
, E_Constant
, E_Variable
));
5485 Set_Flag242
(Id
, V
);
5486 end Set_Optimize_Alignment_Time
;
5488 procedure Set_Original_Access_Type
(Id
: E
; V
: E
) is
5490 pragma Assert
(Ekind
(Id
) = E_Access_Subprogram_Type
);
5492 end Set_Original_Access_Type
;
5494 procedure Set_Original_Array_Type
(Id
: E
; V
: E
) is
5496 pragma Assert
(Is_Array_Type
(Id
) or else Is_Modular_Integer_Type
(Id
));
5498 end Set_Original_Array_Type
;
5500 procedure Set_Original_Record_Component
(Id
: E
; V
: E
) is
5502 pragma Assert
(Ekind_In
(Id
, E_Void
, E_Component
, E_Discriminant
));
5504 end Set_Original_Record_Component
;
5506 procedure Set_Overlays_Constant
(Id
: E
; V
: B
:= True) is
5508 Set_Flag243
(Id
, V
);
5509 end Set_Overlays_Constant
;
5511 procedure Set_Overridden_Operation
(Id
: E
; V
: E
) is
5514 end Set_Overridden_Operation
;
5516 procedure Set_Package_Instantiation
(Id
: E
; V
: N
) is
5518 pragma Assert
(Ekind_In
(Id
, E_Void
, E_Generic_Package
, E_Package
));
5520 end Set_Package_Instantiation
;
5522 procedure Set_Packed_Array_Impl_Type
(Id
: E
; V
: E
) is
5524 pragma Assert
(Is_Array_Type
(Id
));
5526 end Set_Packed_Array_Impl_Type
;
5528 procedure Set_Parent_Subtype
(Id
: E
; V
: E
) is
5530 pragma Assert
(Ekind
(Id
) = E_Record_Type
);
5532 end Set_Parent_Subtype
;
5534 procedure Set_Part_Of_Constituents
(Id
: E
; V
: L
) is
5536 pragma Assert
(Ekind
(Id
) = E_Abstract_State
);
5538 end Set_Part_Of_Constituents
;
5540 procedure Set_Postcondition_Proc
(Id
: E
; V
: E
) is
5542 pragma Assert
(Ekind
(Id
) = E_Procedure
);
5544 end Set_Postcondition_Proc
;
5546 procedure Set_PPC_Wrapper
(Id
: E
; V
: E
) is
5548 pragma Assert
(Ekind_In
(Id
, E_Entry
, E_Entry_Family
));
5550 end Set_PPC_Wrapper
;
5552 procedure Set_Direct_Primitive_Operations
(Id
: E
; V
: L
) is
5554 pragma Assert
(Is_Tagged_Type
(Id
));
5555 Set_Elist10
(Id
, V
);
5556 end Set_Direct_Primitive_Operations
;
5558 procedure Set_Prival
(Id
: E
; V
: E
) is
5560 pragma Assert
(Is_Protected_Component
(Id
));
5564 procedure Set_Prival_Link
(Id
: E
; V
: E
) is
5566 pragma Assert
(Ekind_In
(Id
, E_Constant
, E_Variable
));
5568 end Set_Prival_Link
;
5570 procedure Set_Private_Dependents
(Id
: E
; V
: L
) is
5572 pragma Assert
(Is_Incomplete_Or_Private_Type
(Id
));
5573 Set_Elist18
(Id
, V
);
5574 end Set_Private_Dependents
;
5576 procedure Set_Private_View
(Id
: E
; V
: N
) is
5578 pragma Assert
(Is_Private_Type
(Id
));
5580 end Set_Private_View
;
5582 procedure Set_Protected_Body_Subprogram
(Id
: E
; V
: E
) is
5584 pragma Assert
(Is_Subprogram
(Id
) or else Is_Entry
(Id
));
5586 end Set_Protected_Body_Subprogram
;
5588 procedure Set_Protected_Formal
(Id
: E
; V
: E
) is
5590 pragma Assert
(Is_Formal
(Id
));
5592 end Set_Protected_Formal
;
5594 procedure Set_Protection_Object
(Id
: E
; V
: E
) is
5596 pragma Assert
(Ekind_In
(Id
, E_Entry
,
5601 end Set_Protection_Object
;
5603 procedure Set_Reachable
(Id
: E
; V
: B
:= True) is
5608 procedure Set_Referenced
(Id
: E
; V
: B
:= True) is
5610 Set_Flag156
(Id
, V
);
5613 procedure Set_Referenced_As_LHS
(Id
: E
; V
: B
:= True) is
5616 end Set_Referenced_As_LHS
;
5618 procedure Set_Referenced_As_Out_Parameter
(Id
: E
; V
: B
:= True) is
5620 Set_Flag227
(Id
, V
);
5621 end Set_Referenced_As_Out_Parameter
;
5623 procedure Set_Refinement_Constituents
(Id
: E
; V
: L
) is
5625 pragma Assert
(Ekind
(Id
) = E_Abstract_State
);
5627 end Set_Refinement_Constituents
;
5629 procedure Set_Register_Exception_Call
(Id
: E
; V
: N
) is
5631 pragma Assert
(Ekind
(Id
) = E_Exception
);
5633 end Set_Register_Exception_Call
;
5635 procedure Set_Related_Array_Object
(Id
: E
; V
: E
) is
5637 pragma Assert
(Is_Array_Type
(Id
));
5639 end Set_Related_Array_Object
;
5641 procedure Set_Related_Expression
(Id
: E
; V
: N
) is
5643 pragma Assert
(Ekind
(Id
) in Type_Kind
5644 or else Ekind_In
(Id
, E_Constant
, E_Variable
, E_Void
));
5646 end Set_Related_Expression
;
5648 procedure Set_Related_Instance
(Id
: E
; V
: E
) is
5650 pragma Assert
(Ekind_In
(Id
, E_Package
, E_Package_Body
));
5652 end Set_Related_Instance
;
5654 procedure Set_Related_Type
(Id
: E
; V
: E
) is
5656 pragma Assert
(Ekind_In
(Id
, E_Component
, E_Constant
, E_Variable
));
5658 end Set_Related_Type
;
5660 procedure Set_Relative_Deadline_Variable
(Id
: E
; V
: E
) is
5662 pragma Assert
(Is_Task_Type
(Id
) and then Is_Base_Type
(Id
));
5664 end Set_Relative_Deadline_Variable
;
5666 procedure Set_Renamed_Entity
(Id
: E
; V
: N
) is
5669 end Set_Renamed_Entity
;
5671 procedure Set_Renamed_In_Spec
(Id
: E
; V
: B
:= True) is
5673 pragma Assert
(Ekind
(Id
) = E_Package
);
5674 Set_Flag231
(Id
, V
);
5675 end Set_Renamed_In_Spec
;
5677 procedure Set_Renamed_Object
(Id
: E
; V
: N
) is
5680 end Set_Renamed_Object
;
5682 procedure Set_Renaming_Map
(Id
: E
; V
: U
) is
5685 end Set_Renaming_Map
;
5687 procedure Set_Requires_Overriding
(Id
: E
; V
: B
:= True) is
5689 pragma Assert
(Is_Overloadable
(Id
));
5690 Set_Flag213
(Id
, V
);
5691 end Set_Requires_Overriding
;
5693 procedure Set_Return_Present
(Id
: E
; V
: B
:= True) is
5696 end Set_Return_Present
;
5698 procedure Set_Return_Applies_To
(Id
: E
; V
: N
) is
5701 end Set_Return_Applies_To
;
5703 procedure Set_Returns_By_Ref
(Id
: E
; V
: B
:= True) is
5706 end Set_Returns_By_Ref
;
5708 procedure Set_Returns_Limited_View
(Id
: E
; V
: B
:= True) is
5710 pragma Assert
(Ekind
(Id
) = E_Function
);
5711 Set_Flag134
(Id
, V
);
5712 end Set_Returns_Limited_View
;
5714 procedure Set_Reverse_Bit_Order
(Id
: E
; V
: B
:= True) is
5717 (Is_Record_Type
(Id
) and then Is_Base_Type
(Id
));
5718 Set_Flag164
(Id
, V
);
5719 end Set_Reverse_Bit_Order
;
5721 procedure Set_Reverse_Storage_Order
(Id
: E
; V
: B
:= True) is
5725 and then (Is_Record_Type
(Id
) or else Is_Array_Type
(Id
)));
5727 end Set_Reverse_Storage_Order
;
5729 procedure Set_RM_Size
(Id
: E
; V
: U
) is
5731 pragma Assert
(Is_Type
(Id
));
5735 procedure Set_Scalar_Range
(Id
: E
; V
: N
) is
5738 end Set_Scalar_Range
;
5740 procedure Set_Scale_Value
(Id
: E
; V
: U
) is
5743 end Set_Scale_Value
;
5745 procedure Set_Scope_Depth_Value
(Id
: E
; V
: U
) is
5747 pragma Assert
(not Is_Record_Type
(Id
));
5749 end Set_Scope_Depth_Value
;
5751 procedure Set_Sec_Stack_Needed_For_Return
(Id
: E
; V
: B
:= True) is
5753 Set_Flag167
(Id
, V
);
5754 end Set_Sec_Stack_Needed_For_Return
;
5756 procedure Set_Shadow_Entities
(Id
: E
; V
: S
) is
5758 pragma Assert
(Ekind_In
(Id
, E_Package
, E_Generic_Package
));
5760 end Set_Shadow_Entities
;
5762 procedure Set_Shared_Var_Procs_Instance
(Id
: E
; V
: E
) is
5764 pragma Assert
(Ekind
(Id
) = E_Variable
);
5766 end Set_Shared_Var_Procs_Instance
;
5768 procedure Set_Size_Check_Code
(Id
: E
; V
: N
) is
5770 pragma Assert
(Ekind_In
(Id
, E_Constant
, E_Variable
));
5772 end Set_Size_Check_Code
;
5774 procedure Set_Size_Depends_On_Discriminant
(Id
: E
; V
: B
:= True) is
5776 Set_Flag177
(Id
, V
);
5777 end Set_Size_Depends_On_Discriminant
;
5779 procedure Set_Size_Known_At_Compile_Time
(Id
: E
; V
: B
:= True) is
5782 end Set_Size_Known_At_Compile_Time
;
5784 procedure Set_Small_Value
(Id
: E
; V
: R
) is
5786 pragma Assert
(Is_Fixed_Point_Type
(Id
));
5787 Set_Ureal21
(Id
, V
);
5788 end Set_Small_Value
;
5790 procedure Set_SPARK_Aux_Pragma
(Id
: E
; V
: N
) is
5793 (Ekind_In
(Id
, E_Generic_Package
, -- package variants
5798 end Set_SPARK_Aux_Pragma
;
5800 procedure Set_SPARK_Aux_Pragma_Inherited
(Id
: E
; V
: B
:= True) is
5803 (Ekind_In
(Id
, E_Generic_Package
, -- package variants
5807 Set_Flag266
(Id
, V
);
5808 end Set_SPARK_Aux_Pragma_Inherited
;
5810 procedure Set_SPARK_Pragma
(Id
: E
; V
: N
) is
5813 (Ekind_In
(Id
, E_Function
, -- subprogram variants
5815 E_Generic_Procedure
,
5819 Ekind_In
(Id
, E_Generic_Package
, -- package variants
5824 end Set_SPARK_Pragma
;
5826 procedure Set_SPARK_Pragma_Inherited
(Id
: E
; V
: B
:= True) is
5829 (Ekind_In
(Id
, E_Function
, -- subprogram variants
5831 E_Generic_Procedure
,
5835 Ekind_In
(Id
, E_Generic_Package
, -- package variants
5839 Set_Flag265
(Id
, V
);
5840 end Set_SPARK_Pragma_Inherited
;
5842 procedure Set_Spec_Entity
(Id
: E
; V
: E
) is
5844 pragma Assert
(Ekind
(Id
) = E_Package_Body
or else Is_Formal
(Id
));
5846 end Set_Spec_Entity
;
5848 procedure Set_SSO_Set_High_By_Default
(Id
: E
; V
: B
:= True) is
5852 and then (Is_Record_Type
(Id
) or else Is_Array_Type
(Id
)));
5853 Set_Flag273
(Id
, V
);
5854 end Set_SSO_Set_High_By_Default
;
5856 procedure Set_SSO_Set_Low_By_Default
(Id
: E
; V
: B
:= True) is
5860 and then (Is_Record_Type
(Id
) or else Is_Array_Type
(Id
)));
5861 Set_Flag272
(Id
, V
);
5862 end Set_SSO_Set_Low_By_Default
;
5864 procedure Set_Static_Discrete_Predicate
(Id
: E
; V
: S
) is
5866 pragma Assert
(Is_Discrete_Type
(Id
) and then Has_Predicates
(Id
));
5868 end Set_Static_Discrete_Predicate
;
5870 procedure Set_Static_Real_Or_String_Predicate
(Id
: E
; V
: N
) is
5872 pragma Assert
((Is_Real_Type
(Id
) or else Is_String_Type
(Id
))
5873 and then Has_Predicates
(Id
));
5875 end Set_Static_Real_Or_String_Predicate
;
5877 procedure Set_Status_Flag_Or_Transient_Decl
(Id
: E
; V
: E
) is
5879 pragma Assert
(Ekind_In
(Id
, E_Constant
, E_Variable
));
5881 end Set_Status_Flag_Or_Transient_Decl
;
5883 procedure Set_Storage_Size_Variable
(Id
: E
; V
: E
) is
5885 pragma Assert
(Is_Access_Type
(Id
) or else Is_Task_Type
(Id
));
5886 pragma Assert
(Id
= Base_Type
(Id
));
5888 end Set_Storage_Size_Variable
;
5890 procedure Set_Static_Elaboration_Desired
(Id
: E
; V
: B
) is
5892 pragma Assert
(Ekind
(Id
) = E_Package
);
5894 end Set_Static_Elaboration_Desired
;
5896 procedure Set_Static_Initialization
(Id
: E
; V
: N
) is
5899 (Ekind
(Id
) = E_Procedure
and then not Is_Dispatching_Operation
(Id
));
5901 end Set_Static_Initialization
;
5903 procedure Set_Stored_Constraint
(Id
: E
; V
: L
) is
5905 pragma Assert
(Nkind
(Id
) in N_Entity
);
5906 Set_Elist23
(Id
, V
);
5907 end Set_Stored_Constraint
;
5909 procedure Set_Stores_Attribute_Old_Prefix
(Id
: E
; V
: B
:= True) is
5911 pragma Assert
(Ekind
(Id
) = E_Constant
);
5912 Set_Flag270
(Id
, V
);
5913 end Set_Stores_Attribute_Old_Prefix
;
5915 procedure Set_Strict_Alignment
(Id
: E
; V
: B
:= True) is
5917 pragma Assert
(Id
= Base_Type
(Id
));
5918 Set_Flag145
(Id
, V
);
5919 end Set_Strict_Alignment
;
5921 procedure Set_String_Literal_Length
(Id
: E
; V
: U
) is
5923 pragma Assert
(Ekind
(Id
) = E_String_Literal_Subtype
);
5925 end Set_String_Literal_Length
;
5927 procedure Set_String_Literal_Low_Bound
(Id
: E
; V
: N
) is
5929 pragma Assert
(Ekind
(Id
) = E_String_Literal_Subtype
);
5931 end Set_String_Literal_Low_Bound
;
5933 procedure Set_Subprograms_For_Type
(Id
: E
; V
: E
) is
5935 pragma Assert
(Is_Type
(Id
) or else Is_Subprogram
(Id
));
5937 end Set_Subprograms_For_Type
;
5939 procedure Set_Suppress_Elaboration_Warnings
(Id
: E
; V
: B
:= True) is
5941 Set_Flag148
(Id
, V
);
5942 end Set_Suppress_Elaboration_Warnings
;
5944 procedure Set_Suppress_Initialization
(Id
: E
; V
: B
:= True) is
5946 pragma Assert
(Is_Type
(Id
) or else Ekind
(Id
) = E_Variable
);
5947 Set_Flag105
(Id
, V
);
5948 end Set_Suppress_Initialization
;
5950 procedure Set_Suppress_Style_Checks
(Id
: E
; V
: B
:= True) is
5952 Set_Flag165
(Id
, V
);
5953 end Set_Suppress_Style_Checks
;
5955 procedure Set_Suppress_Value_Tracking_On_Call
(Id
: E
; V
: B
:= True) is
5957 Set_Flag217
(Id
, V
);
5958 end Set_Suppress_Value_Tracking_On_Call
;
5960 procedure Set_Task_Body_Procedure
(Id
: E
; V
: N
) is
5962 pragma Assert
(Ekind
(Id
) in Task_Kind
);
5964 end Set_Task_Body_Procedure
;
5966 procedure Set_Thunk_Entity
(Id
: E
; V
: E
) is
5968 pragma Assert
(Ekind_In
(Id
, E_Function
, E_Procedure
)
5969 and then Is_Thunk
(Id
));
5971 end Set_Thunk_Entity
;
5973 procedure Set_Treat_As_Volatile
(Id
: E
; V
: B
:= True) is
5976 end Set_Treat_As_Volatile
;
5978 procedure Set_Underlying_Full_View
(Id
: E
; V
: E
) is
5980 pragma Assert
(Ekind
(Id
) in Private_Kind
);
5982 end Set_Underlying_Full_View
;
5984 procedure Set_Underlying_Record_View
(Id
: E
; V
: E
) is
5986 pragma Assert
(Ekind
(Id
) = E_Record_Type
);
5988 end Set_Underlying_Record_View
;
5990 procedure Set_Universal_Aliasing
(Id
: E
; V
: B
:= True) is
5992 pragma Assert
(Is_Type
(Id
) and then Is_Base_Type
(Id
));
5993 Set_Flag216
(Id
, V
);
5994 end Set_Universal_Aliasing
;
5996 procedure Set_Unset_Reference
(Id
: E
; V
: N
) is
5999 end Set_Unset_Reference
;
6001 procedure Set_Used_As_Generic_Actual
(Id
: E
; V
: B
:= True) is
6003 Set_Flag222
(Id
, V
);
6004 end Set_Used_As_Generic_Actual
;
6006 procedure Set_Uses_Lock_Free
(Id
: E
; V
: B
:= True) is
6008 pragma Assert
(Ekind
(Id
) = E_Protected_Type
);
6009 Set_Flag188
(Id
, V
);
6010 end Set_Uses_Lock_Free
;
6012 procedure Set_Uses_Sec_Stack
(Id
: E
; V
: B
:= True) is
6015 end Set_Uses_Sec_Stack
;
6017 procedure Set_Warnings_Off
(Id
: E
; V
: B
:= True) is
6020 end Set_Warnings_Off
;
6022 procedure Set_Warnings_Off_Used
(Id
: E
; V
: B
:= True) is
6024 Set_Flag236
(Id
, V
);
6025 end Set_Warnings_Off_Used
;
6027 procedure Set_Warnings_Off_Used_Unmodified
(Id
: E
; V
: B
:= True) is
6029 Set_Flag237
(Id
, V
);
6030 end Set_Warnings_Off_Used_Unmodified
;
6032 procedure Set_Warnings_Off_Used_Unreferenced
(Id
: E
; V
: B
:= True) is
6034 Set_Flag238
(Id
, V
);
6035 end Set_Warnings_Off_Used_Unreferenced
;
6037 procedure Set_Was_Hidden
(Id
: E
; V
: B
:= True) is
6039 Set_Flag196
(Id
, V
);
6042 procedure Set_Wrapped_Entity
(Id
: E
; V
: E
) is
6044 pragma Assert
(Ekind_In
(Id
, E_Function
, E_Procedure
)
6045 and then Is_Primitive_Wrapper
(Id
));
6047 end Set_Wrapped_Entity
;
6049 -----------------------------------
6050 -- Field Initialization Routines --
6051 -----------------------------------
6053 procedure Init_Alignment
(Id
: E
) is
6055 Set_Uint14
(Id
, Uint_0
);
6058 procedure Init_Alignment
(Id
: E
; V
: Int
) is
6060 Set_Uint14
(Id
, UI_From_Int
(V
));
6063 procedure Init_Component_Bit_Offset
(Id
: E
) is
6065 Set_Uint11
(Id
, No_Uint
);
6066 end Init_Component_Bit_Offset
;
6068 procedure Init_Component_Bit_Offset
(Id
: E
; V
: Int
) is
6070 Set_Uint11
(Id
, UI_From_Int
(V
));
6071 end Init_Component_Bit_Offset
;
6073 procedure Init_Component_Size
(Id
: E
) is
6075 Set_Uint22
(Id
, Uint_0
);
6076 end Init_Component_Size
;
6078 procedure Init_Component_Size
(Id
: E
; V
: Int
) is
6080 Set_Uint22
(Id
, UI_From_Int
(V
));
6081 end Init_Component_Size
;
6083 procedure Init_Digits_Value
(Id
: E
) is
6085 Set_Uint17
(Id
, Uint_0
);
6086 end Init_Digits_Value
;
6088 procedure Init_Digits_Value
(Id
: E
; V
: Int
) is
6090 Set_Uint17
(Id
, UI_From_Int
(V
));
6091 end Init_Digits_Value
;
6093 procedure Init_Esize
(Id
: E
) is
6095 Set_Uint12
(Id
, Uint_0
);
6098 procedure Init_Esize
(Id
: E
; V
: Int
) is
6100 Set_Uint12
(Id
, UI_From_Int
(V
));
6103 procedure Init_Normalized_First_Bit
(Id
: E
) is
6105 Set_Uint8
(Id
, No_Uint
);
6106 end Init_Normalized_First_Bit
;
6108 procedure Init_Normalized_First_Bit
(Id
: E
; V
: Int
) is
6110 Set_Uint8
(Id
, UI_From_Int
(V
));
6111 end Init_Normalized_First_Bit
;
6113 procedure Init_Normalized_Position
(Id
: E
) is
6115 Set_Uint14
(Id
, No_Uint
);
6116 end Init_Normalized_Position
;
6118 procedure Init_Normalized_Position
(Id
: E
; V
: Int
) is
6120 Set_Uint14
(Id
, UI_From_Int
(V
));
6121 end Init_Normalized_Position
;
6123 procedure Init_Normalized_Position_Max
(Id
: E
) is
6125 Set_Uint10
(Id
, No_Uint
);
6126 end Init_Normalized_Position_Max
;
6128 procedure Init_Normalized_Position_Max
(Id
: E
; V
: Int
) is
6130 Set_Uint10
(Id
, UI_From_Int
(V
));
6131 end Init_Normalized_Position_Max
;
6133 procedure Init_RM_Size
(Id
: E
) is
6135 Set_Uint13
(Id
, Uint_0
);
6138 procedure Init_RM_Size
(Id
: E
; V
: Int
) is
6140 Set_Uint13
(Id
, UI_From_Int
(V
));
6143 -----------------------------
6144 -- Init_Component_Location --
6145 -----------------------------
6147 procedure Init_Component_Location
(Id
: E
) is
6149 Set_Uint8
(Id
, No_Uint
); -- Normalized_First_Bit
6150 Set_Uint10
(Id
, No_Uint
); -- Normalized_Position_Max
6151 Set_Uint11
(Id
, No_Uint
); -- Component_Bit_Offset
6152 Set_Uint12
(Id
, Uint_0
); -- Esize
6153 Set_Uint14
(Id
, No_Uint
); -- Normalized_Position
6154 end Init_Component_Location
;
6156 ----------------------------
6157 -- Init_Object_Size_Align --
6158 ----------------------------
6160 procedure Init_Object_Size_Align
(Id
: E
) is
6162 Set_Uint12
(Id
, Uint_0
); -- Esize
6163 Set_Uint14
(Id
, Uint_0
); -- Alignment
6164 end Init_Object_Size_Align
;
6170 procedure Init_Size
(Id
: E
; V
: Int
) is
6172 pragma Assert
(not Is_Object
(Id
));
6173 Set_Uint12
(Id
, UI_From_Int
(V
)); -- Esize
6174 Set_Uint13
(Id
, UI_From_Int
(V
)); -- RM_Size
6177 ---------------------
6178 -- Init_Size_Align --
6179 ---------------------
6181 procedure Init_Size_Align
(Id
: E
) is
6183 pragma Assert
(not Is_Object
(Id
));
6184 Set_Uint12
(Id
, Uint_0
); -- Esize
6185 Set_Uint13
(Id
, Uint_0
); -- RM_Size
6186 Set_Uint14
(Id
, Uint_0
); -- Alignment
6187 end Init_Size_Align
;
6189 ----------------------------------------------
6190 -- Type Representation Attribute Predicates --
6191 ----------------------------------------------
6193 function Known_Alignment
(E
: Entity_Id
) return B
is
6195 return Uint14
(E
) /= Uint_0
6196 and then Uint14
(E
) /= No_Uint
;
6197 end Known_Alignment
;
6199 function Known_Component_Bit_Offset
(E
: Entity_Id
) return B
is
6201 return Uint11
(E
) /= No_Uint
;
6202 end Known_Component_Bit_Offset
;
6204 function Known_Component_Size
(E
: Entity_Id
) return B
is
6206 return Uint22
(Base_Type
(E
)) /= Uint_0
6207 and then Uint22
(Base_Type
(E
)) /= No_Uint
;
6208 end Known_Component_Size
;
6210 function Known_Esize
(E
: Entity_Id
) return B
is
6212 return Uint12
(E
) /= Uint_0
6213 and then Uint12
(E
) /= No_Uint
;
6216 function Known_Normalized_First_Bit
(E
: Entity_Id
) return B
is
6218 return Uint8
(E
) /= No_Uint
;
6219 end Known_Normalized_First_Bit
;
6221 function Known_Normalized_Position
(E
: Entity_Id
) return B
is
6223 return Uint14
(E
) /= No_Uint
;
6224 end Known_Normalized_Position
;
6226 function Known_Normalized_Position_Max
(E
: Entity_Id
) return B
is
6228 return Uint10
(E
) /= No_Uint
;
6229 end Known_Normalized_Position_Max
;
6231 function Known_RM_Size
(E
: Entity_Id
) return B
is
6233 return Uint13
(E
) /= No_Uint
6234 and then (Uint13
(E
) /= Uint_0
6235 or else Is_Discrete_Type
(E
)
6236 or else Is_Fixed_Point_Type
(E
));
6239 function Known_Static_Component_Bit_Offset
(E
: Entity_Id
) return B
is
6241 return Uint11
(E
) /= No_Uint
6242 and then Uint11
(E
) >= Uint_0
;
6243 end Known_Static_Component_Bit_Offset
;
6245 function Known_Static_Component_Size
(E
: Entity_Id
) return B
is
6247 return Uint22
(Base_Type
(E
)) > Uint_0
;
6248 end Known_Static_Component_Size
;
6250 function Known_Static_Esize
(E
: Entity_Id
) return B
is
6252 return Uint12
(E
) > Uint_0
6253 and then not Is_Generic_Type
(E
);
6254 end Known_Static_Esize
;
6256 function Known_Static_Normalized_First_Bit
(E
: Entity_Id
) return B
is
6258 return Uint8
(E
) /= No_Uint
6259 and then Uint8
(E
) >= Uint_0
;
6260 end Known_Static_Normalized_First_Bit
;
6262 function Known_Static_Normalized_Position
(E
: Entity_Id
) return B
is
6264 return Uint14
(E
) /= No_Uint
6265 and then Uint14
(E
) >= Uint_0
;
6266 end Known_Static_Normalized_Position
;
6268 function Known_Static_Normalized_Position_Max
(E
: Entity_Id
) return B
is
6270 return Uint10
(E
) /= No_Uint
6271 and then Uint10
(E
) >= Uint_0
;
6272 end Known_Static_Normalized_Position_Max
;
6274 function Known_Static_RM_Size
(E
: Entity_Id
) return B
is
6276 return (Uint13
(E
) > Uint_0
6277 or else Is_Discrete_Type
(E
)
6278 or else Is_Fixed_Point_Type
(E
))
6279 and then not Is_Generic_Type
(E
);
6280 end Known_Static_RM_Size
;
6282 function Unknown_Alignment
(E
: Entity_Id
) return B
is
6284 return Uint14
(E
) = Uint_0
6285 or else Uint14
(E
) = No_Uint
;
6286 end Unknown_Alignment
;
6288 function Unknown_Component_Bit_Offset
(E
: Entity_Id
) return B
is
6290 return Uint11
(E
) = No_Uint
;
6291 end Unknown_Component_Bit_Offset
;
6293 function Unknown_Component_Size
(E
: Entity_Id
) return B
is
6295 return Uint22
(Base_Type
(E
)) = Uint_0
6297 Uint22
(Base_Type
(E
)) = No_Uint
;
6298 end Unknown_Component_Size
;
6300 function Unknown_Esize
(E
: Entity_Id
) return B
is
6302 return Uint12
(E
) = No_Uint
6304 Uint12
(E
) = Uint_0
;
6307 function Unknown_Normalized_First_Bit
(E
: Entity_Id
) return B
is
6309 return Uint8
(E
) = No_Uint
;
6310 end Unknown_Normalized_First_Bit
;
6312 function Unknown_Normalized_Position
(E
: Entity_Id
) return B
is
6314 return Uint14
(E
) = No_Uint
;
6315 end Unknown_Normalized_Position
;
6317 function Unknown_Normalized_Position_Max
(E
: Entity_Id
) return B
is
6319 return Uint10
(E
) = No_Uint
;
6320 end Unknown_Normalized_Position_Max
;
6322 function Unknown_RM_Size
(E
: Entity_Id
) return B
is
6324 return (Uint13
(E
) = Uint_0
6325 and then not Is_Discrete_Type
(E
)
6326 and then not Is_Fixed_Point_Type
(E
))
6327 or else Uint13
(E
) = No_Uint
;
6328 end Unknown_RM_Size
;
6330 --------------------
6331 -- Address_Clause --
6332 --------------------
6334 function Address_Clause
(Id
: E
) return N
is
6336 return Get_Attribute_Definition_Clause
(Id
, Attribute_Address
);
6343 function Aft_Value
(Id
: E
) return U
is
6345 Delta_Val
: Ureal
:= Delta_Value
(Id
);
6347 while Delta_Val
< Ureal_Tenth
loop
6348 Delta_Val
:= Delta_Val
* Ureal_10
;
6349 Result
:= Result
+ 1;
6352 return UI_From_Int
(Result
);
6355 ----------------------
6356 -- Alignment_Clause --
6357 ----------------------
6359 function Alignment_Clause
(Id
: E
) return N
is
6361 return Get_Attribute_Definition_Clause
(Id
, Attribute_Alignment
);
6362 end Alignment_Clause
;
6368 procedure Append_Entity
(Id
: Entity_Id
; V
: Entity_Id
) is
6370 if Last_Entity
(V
) = Empty
then
6371 Set_First_Entity
(Id
=> V
, V
=> Id
);
6373 Set_Next_Entity
(Last_Entity
(V
), Id
);
6376 Set_Next_Entity
(Id
, Empty
);
6378 Set_Last_Entity
(Id
=> V
, V
=> Id
);
6385 function Base_Type
(Id
: E
) return E
is
6387 if Is_Base_Type
(Id
) then
6390 pragma Assert
(Is_Type
(Id
));
6395 -------------------------
6396 -- Component_Alignment --
6397 -------------------------
6399 -- Component Alignment is encoded using two flags, Flag128/129 as
6400 -- follows. Note that both flags False = Align_Default, so that the
6401 -- default initialization of flags to False initializes component
6402 -- alignment to the default value as required.
6404 -- Flag128 Flag129 Value
6405 -- ------- ------- -----
6406 -- False False Calign_Default
6407 -- False True Calign_Component_Size
6408 -- True False Calign_Component_Size_4
6409 -- True True Calign_Storage_Unit
6411 function Component_Alignment
(Id
: E
) return C
is
6412 BT
: constant Node_Id
:= Base_Type
(Id
);
6415 pragma Assert
(Is_Array_Type
(Id
) or else Is_Record_Type
(Id
));
6417 if Flag128
(BT
) then
6418 if Flag129
(BT
) then
6419 return Calign_Storage_Unit
;
6421 return Calign_Component_Size_4
;
6425 if Flag129
(BT
) then
6426 return Calign_Component_Size
;
6428 return Calign_Default
;
6431 end Component_Alignment
;
6433 ----------------------
6434 -- Declaration_Node --
6435 ----------------------
6437 function Declaration_Node
(Id
: E
) return N
is
6441 if Ekind
(Id
) = E_Incomplete_Type
6442 and then Present
(Full_View
(Id
))
6444 P
:= Parent
(Full_View
(Id
));
6450 if Nkind
(P
) /= N_Selected_Component
6451 and then Nkind
(P
) /= N_Expanded_Name
6453 not (Nkind
(P
) = N_Defining_Program_Unit_Name
6454 and then Is_Child_Unit
(Id
))
6461 end Declaration_Node
;
6463 ---------------------------------
6464 -- Default_Init_Cond_Procedure --
6465 ---------------------------------
6467 function Default_Init_Cond_Procedure
(Id
: E
) return E
is
6473 and then (Has_Default_Init_Cond
(Id
)
6474 or Has_Inherited_Default_Init_Cond
(Id
)));
6476 S
:= Subprograms_For_Type
(Id
);
6477 while Present
(S
) loop
6478 if Is_Default_Init_Cond_Procedure
(S
) then
6482 S
:= Subprograms_For_Type
(S
);
6486 end Default_Init_Cond_Procedure
;
6488 ---------------------
6489 -- Designated_Type --
6490 ---------------------
6492 function Designated_Type
(Id
: E
) return E
is
6496 Desig_Type
:= Directly_Designated_Type
(Id
);
6498 if Ekind
(Desig_Type
) = E_Incomplete_Type
6499 and then Present
(Full_View
(Desig_Type
))
6501 return Full_View
(Desig_Type
);
6503 elsif Is_Class_Wide_Type
(Desig_Type
)
6504 and then Ekind
(Etype
(Desig_Type
)) = E_Incomplete_Type
6505 and then Present
(Full_View
(Etype
(Desig_Type
)))
6506 and then Present
(Class_Wide_Type
(Full_View
(Etype
(Desig_Type
))))
6508 return Class_Wide_Type
(Full_View
(Etype
(Desig_Type
)));
6513 end Designated_Type
;
6515 ----------------------
6516 -- Entry_Index_Type --
6517 ----------------------
6519 function Entry_Index_Type
(Id
: E
) return N
is
6521 pragma Assert
(Ekind
(Id
) = E_Entry_Family
);
6522 return Etype
(Discrete_Subtype_Definition
(Parent
(Id
)));
6523 end Entry_Index_Type
;
6525 ---------------------
6526 -- First_Component --
6527 ---------------------
6529 function First_Component
(Id
: E
) return E
is
6534 (Is_Record_Type
(Id
) or else Is_Incomplete_Or_Private_Type
(Id
));
6536 Comp_Id
:= First_Entity
(Id
);
6537 while Present
(Comp_Id
) loop
6538 exit when Ekind
(Comp_Id
) = E_Component
;
6539 Comp_Id
:= Next_Entity
(Comp_Id
);
6543 end First_Component
;
6545 -------------------------------------
6546 -- First_Component_Or_Discriminant --
6547 -------------------------------------
6549 function First_Component_Or_Discriminant
(Id
: E
) return E
is
6554 (Is_Record_Type
(Id
)
6555 or else Is_Incomplete_Or_Private_Type
(Id
)
6556 or else Has_Discriminants
(Id
));
6558 Comp_Id
:= First_Entity
(Id
);
6559 while Present
(Comp_Id
) loop
6560 exit when Ekind_In
(Comp_Id
, E_Component
, E_Discriminant
);
6561 Comp_Id
:= Next_Entity
(Comp_Id
);
6565 end First_Component_Or_Discriminant
;
6571 function First_Formal
(Id
: E
) return E
is
6576 (Is_Overloadable
(Id
)
6577 or else Ekind_In
(Id
, E_Entry_Family
,
6579 E_Subprogram_Type
));
6581 if Ekind
(Id
) = E_Enumeration_Literal
then
6585 Formal
:= First_Entity
(Id
);
6587 if Present
(Formal
) and then Is_Formal
(Formal
) then
6595 ------------------------------
6596 -- First_Formal_With_Extras --
6597 ------------------------------
6599 function First_Formal_With_Extras
(Id
: E
) return E
is
6604 (Is_Overloadable
(Id
)
6605 or else Ekind_In
(Id
, E_Entry_Family
,
6607 E_Subprogram_Type
));
6609 if Ekind
(Id
) = E_Enumeration_Literal
then
6613 Formal
:= First_Entity
(Id
);
6615 if Present
(Formal
) and then Is_Formal
(Formal
) then
6618 return Extra_Formals
(Id
); -- Empty if no extra formals
6621 end First_Formal_With_Extras
;
6623 -------------------------------------
6624 -- Get_Attribute_Definition_Clause --
6625 -------------------------------------
6627 function Get_Attribute_Definition_Clause
6629 Id
: Attribute_Id
) return Node_Id
6634 N
:= First_Rep_Item
(E
);
6635 while Present
(N
) loop
6636 if Nkind
(N
) = N_Attribute_Definition_Clause
6637 and then Get_Attribute_Id
(Chars
(N
)) = Id
6646 end Get_Attribute_Definition_Clause
;
6652 function Get_Full_View
(T
: Entity_Id
) return Entity_Id
is
6654 if Ekind
(T
) = E_Incomplete_Type
and then Present
(Full_View
(T
)) then
6655 return Full_View
(T
);
6657 elsif Is_Class_Wide_Type
(T
)
6658 and then Ekind
(Root_Type
(T
)) = E_Incomplete_Type
6659 and then Present
(Full_View
(Root_Type
(T
)))
6661 return Class_Wide_Type
(Full_View
(Root_Type
(T
)));
6672 function Get_Pragma
(E
: Entity_Id
; Id
: Pragma_Id
) return Node_Id
is
6673 Is_CDG
: constant Boolean :=
6674 Id
= Pragma_Abstract_State
or else
6675 Id
= Pragma_Async_Readers
or else
6676 Id
= Pragma_Async_Writers
or else
6677 Id
= Pragma_Depends
or else
6678 Id
= Pragma_Effective_Reads
or else
6679 Id
= Pragma_Effective_Writes
or else
6680 Id
= Pragma_Global
or else
6681 Id
= Pragma_Initial_Condition
or else
6682 Id
= Pragma_Initializes
or else
6683 Id
= Pragma_Part_Of
or else
6684 Id
= Pragma_Refined_Depends
or else
6685 Id
= Pragma_Refined_Global
or else
6686 Id
= Pragma_Refined_State
;
6687 Is_CTC
: constant Boolean :=
6688 Id
= Pragma_Contract_Cases
or else
6689 Id
= Pragma_Test_Case
;
6690 Is_PPC
: constant Boolean :=
6691 Id
= Pragma_Precondition
or else
6692 Id
= Pragma_Postcondition
or else
6693 Id
= Pragma_Refined_Post
;
6695 In_Contract
: constant Boolean := Is_CDG
or Is_CTC
or Is_PPC
;
6701 -- Handle pragmas that appear in N_Contract nodes. Those have to be
6702 -- extracted from their specialized list.
6705 Items
:= Contract
(E
);
6711 Item
:= Classifications
(Items
);
6714 Item
:= Contract_Test_Cases
(Items
);
6717 Item
:= Pre_Post_Conditions
(Items
);
6723 Item
:= First_Rep_Item
(E
);
6726 while Present
(Item
) loop
6727 if Nkind
(Item
) = N_Pragma
6728 and then Get_Pragma_Id
(Pragma_Name
(Item
)) = Id
6732 -- All nodes in N_Contract are chained using Next_Pragma
6734 elsif In_Contract
then
6735 Item
:= Next_Pragma
(Item
);
6740 Next_Rep_Item
(Item
);
6747 --------------------------------------
6748 -- Get_Record_Representation_Clause --
6749 --------------------------------------
6751 function Get_Record_Representation_Clause
(E
: Entity_Id
) return Node_Id
is
6755 N
:= First_Rep_Item
(E
);
6756 while Present
(N
) loop
6757 if Nkind
(N
) = N_Record_Representation_Clause
then
6765 end Get_Record_Representation_Clause
;
6767 ------------------------
6768 -- Has_Attach_Handler --
6769 ------------------------
6771 function Has_Attach_Handler
(Id
: E
) return B
is
6775 pragma Assert
(Is_Protected_Type
(Id
));
6777 Ritem
:= First_Rep_Item
(Id
);
6778 while Present
(Ritem
) loop
6779 if Nkind
(Ritem
) = N_Pragma
6780 and then Pragma_Name
(Ritem
) = Name_Attach_Handler
6784 Next_Rep_Item
(Ritem
);
6789 end Has_Attach_Handler
;
6795 function Has_Entries
(Id
: E
) return B
is
6799 pragma Assert
(Is_Concurrent_Type
(Id
));
6801 Ent
:= First_Entity
(Id
);
6802 while Present
(Ent
) loop
6803 if Is_Entry
(Ent
) then
6807 Ent
:= Next_Entity
(Ent
);
6813 ----------------------------
6814 -- Has_Foreign_Convention --
6815 ----------------------------
6817 function Has_Foreign_Convention
(Id
: E
) return B
is
6819 -- While regular Intrinsics such as the Standard operators fit in the
6820 -- "Ada" convention, those with an Interface_Name materialize GCC
6821 -- builtin imports for which Ada special treatments shouldn't apply.
6823 return Convention
(Id
) in Foreign_Convention
6824 or else (Convention
(Id
) = Convention_Intrinsic
6825 and then Present
(Interface_Name
(Id
)));
6826 end Has_Foreign_Convention
;
6828 ---------------------------
6829 -- Has_Interrupt_Handler --
6830 ---------------------------
6832 function Has_Interrupt_Handler
(Id
: E
) return B
is
6836 pragma Assert
(Is_Protected_Type
(Id
));
6838 Ritem
:= First_Rep_Item
(Id
);
6839 while Present
(Ritem
) loop
6840 if Nkind
(Ritem
) = N_Pragma
6841 and then Pragma_Name
(Ritem
) = Name_Interrupt_Handler
6845 Next_Rep_Item
(Ritem
);
6850 end Has_Interrupt_Handler
;
6852 -----------------------------
6853 -- Has_Non_Null_Refinement --
6854 -----------------------------
6856 function Has_Non_Null_Refinement
(Id
: E
) return B
is
6858 -- "Refinement" is a concept applicable only to abstract states
6860 pragma Assert
(Ekind
(Id
) = E_Abstract_State
);
6862 if Has_Visible_Refinement
(Id
) then
6863 pragma Assert
(Present
(Refinement_Constituents
(Id
)));
6865 -- For a refinement to be non-null, the first constituent must be
6866 -- anything other than null.
6869 Nkind
(Node
(First_Elmt
(Refinement_Constituents
(Id
)))) /= N_Null
;
6873 end Has_Non_Null_Refinement
;
6875 -----------------------------
6876 -- Has_Null_Abstract_State --
6877 -----------------------------
6879 function Has_Null_Abstract_State
(Id
: E
) return B
is
6881 pragma Assert
(Ekind_In
(Id
, E_Generic_Package
, E_Package
));
6884 Present
(Abstract_States
(Id
))
6885 and then Is_Null_State
(Node
(First_Elmt
(Abstract_States
(Id
))));
6886 end Has_Null_Abstract_State
;
6888 -------------------------
6889 -- Has_Null_Refinement --
6890 -------------------------
6892 function Has_Null_Refinement
(Id
: E
) return B
is
6894 -- "Refinement" is a concept applicable only to abstract states
6896 pragma Assert
(Ekind
(Id
) = E_Abstract_State
);
6898 if Has_Visible_Refinement
(Id
) then
6899 pragma Assert
(Present
(Refinement_Constituents
(Id
)));
6901 -- For a refinement to be null, the state's sole constituent must be
6905 Nkind
(Node
(First_Elmt
(Refinement_Constituents
(Id
)))) = N_Null
;
6909 end Has_Null_Refinement
;
6911 --------------------
6912 -- Has_Unmodified --
6913 --------------------
6915 function Has_Unmodified
(E
: Entity_Id
) return Boolean is
6917 if Has_Pragma_Unmodified
(E
) then
6919 elsif Warnings_Off
(E
) then
6920 Set_Warnings_Off_Used_Unmodified
(E
);
6927 ---------------------
6928 -- Has_Unreferenced --
6929 ---------------------
6931 function Has_Unreferenced
(E
: Entity_Id
) return Boolean is
6933 if Has_Pragma_Unreferenced
(E
) then
6935 elsif Warnings_Off
(E
) then
6936 Set_Warnings_Off_Used_Unreferenced
(E
);
6941 end Has_Unreferenced
;
6943 ----------------------
6944 -- Has_Warnings_Off --
6945 ----------------------
6947 function Has_Warnings_Off
(E
: Entity_Id
) return Boolean is
6949 if Warnings_Off
(E
) then
6950 Set_Warnings_Off_Used
(E
);
6955 end Has_Warnings_Off
;
6957 ------------------------------
6958 -- Implementation_Base_Type --
6959 ------------------------------
6961 function Implementation_Base_Type
(Id
: E
) return E
is
6966 Bastyp
:= Base_Type
(Id
);
6968 if Is_Incomplete_Or_Private_Type
(Bastyp
) then
6969 Imptyp
:= Underlying_Type
(Bastyp
);
6971 -- If we have an implementation type, then just return it,
6972 -- otherwise we return the Base_Type anyway. This can only
6973 -- happen in error situations and should avoid some error bombs.
6975 if Present
(Imptyp
) then
6976 return Base_Type
(Imptyp
);
6984 end Implementation_Base_Type
;
6986 -------------------------
6987 -- Invariant_Procedure --
6988 -------------------------
6990 function Invariant_Procedure
(Id
: E
) return E
is
6994 pragma Assert
(Is_Type
(Id
) and then Has_Invariants
(Id
));
6996 if No
(Subprograms_For_Type
(Id
)) then
7000 S
:= Subprograms_For_Type
(Id
);
7001 while Present
(S
) loop
7002 if Is_Invariant_Procedure
(S
) then
7005 S
:= Subprograms_For_Type
(S
);
7011 end Invariant_Procedure
;
7017 -- Global flag table allowing rapid computation of this function
7019 Entity_Is_Base_Type
: constant array (Entity_Kind
) of Boolean :=
7020 (E_Enumeration_Subtype |
7022 E_Signed_Integer_Subtype |
7023 E_Modular_Integer_Subtype |
7024 E_Floating_Point_Subtype |
7025 E_Ordinary_Fixed_Point_Subtype |
7026 E_Decimal_Fixed_Point_Subtype |
7031 E_Record_Subtype_With_Private |
7032 E_Limited_Private_Subtype |
7034 E_Protected_Subtype |
7036 E_String_Literal_Subtype |
7037 E_Class_Wide_Subtype
=> False,
7040 function Is_Base_Type
(Id
: E
) return Boolean is
7042 return Entity_Is_Base_Type
(Ekind
(Id
));
7045 ---------------------
7046 -- Is_Boolean_Type --
7047 ---------------------
7049 function Is_Boolean_Type
(Id
: E
) return B
is
7051 return Root_Type
(Id
) = Standard_Boolean
;
7052 end Is_Boolean_Type
;
7054 ------------------------
7055 -- Is_Constant_Object --
7056 ------------------------
7058 function Is_Constant_Object
(Id
: E
) return B
is
7059 K
: constant Entity_Kind
:= Ekind
(Id
);
7062 K
= E_Constant
or else K
= E_In_Parameter
or else K
= E_Loop_Parameter
;
7063 end Is_Constant_Object
;
7065 --------------------
7066 -- Is_Discriminal --
7067 --------------------
7069 function Is_Discriminal
(Id
: E
) return B
is
7071 return (Ekind_In
(Id
, E_Constant
, E_In_Parameter
)
7072 and then Present
(Discriminal_Link
(Id
)));
7075 ----------------------
7076 -- Is_Dynamic_Scope --
7077 ----------------------
7079 function Is_Dynamic_Scope
(Id
: E
) return B
is
7082 Ekind
(Id
) = E_Block
7084 Ekind
(Id
) = E_Function
7086 Ekind
(Id
) = E_Procedure
7088 Ekind
(Id
) = E_Subprogram_Body
7090 Ekind
(Id
) = E_Task_Type
7092 (Ekind
(Id
) = E_Limited_Private_Type
7093 and then Present
(Full_View
(Id
))
7094 and then Ekind
(Full_View
(Id
)) = E_Task_Type
)
7096 Ekind
(Id
) = E_Entry
7098 Ekind
(Id
) = E_Entry_Family
7100 Ekind
(Id
) = E_Return_Statement
;
7101 end Is_Dynamic_Scope
;
7103 --------------------
7104 -- Is_Entity_Name --
7105 --------------------
7107 function Is_Entity_Name
(N
: Node_Id
) return Boolean is
7108 Kind
: constant Node_Kind
:= Nkind
(N
);
7111 -- Identifiers, operator symbols, expanded names are entity names
7113 return Kind
= N_Identifier
7114 or else Kind
= N_Operator_Symbol
7115 or else Kind
= N_Expanded_Name
7117 -- Attribute references are entity names if they refer to an entity.
7118 -- Note that we don't do this by testing for the presence of the
7119 -- Entity field in the N_Attribute_Reference node, since it may not
7120 -- have been set yet.
7122 or else (Kind
= N_Attribute_Reference
7123 and then Is_Entity_Attribute_Name
(Attribute_Name
(N
)));
7126 -----------------------
7127 -- Is_External_State --
7128 -----------------------
7130 function Is_External_State
(Id
: E
) return B
is
7133 Ekind
(Id
) = E_Abstract_State
and then Has_Option
(Id
, Name_External
);
7134 end Is_External_State
;
7140 function Is_Finalizer
(Id
: E
) return B
is
7142 return Ekind
(Id
) = E_Procedure
and then Chars
(Id
) = Name_uFinalizer
;
7145 ---------------------
7146 -- Is_Ghost_Entity --
7147 ---------------------
7149 -- Note: coding below allows for ghost variables. They are not currently
7150 -- implemented, so we will always get False for variables, but that is
7151 -- expected to change in the future.
7153 function Is_Ghost_Entity
(Id
: E
) return B
is
7155 if Present
(Id
) and then Ekind
(Id
) = E_Variable
then
7156 return Convention
(Id
) = Convention_Ghost
;
7158 return Is_Ghost_Subprogram
(Id
);
7160 end Is_Ghost_Entity
;
7162 -------------------------
7163 -- Is_Ghost_Subprogram --
7164 -------------------------
7166 function Is_Ghost_Subprogram
(Id
: E
) return B
is
7168 if Present
(Id
) and then Ekind_In
(Id
, E_Function
, E_Procedure
) then
7169 return Convention
(Id
) = Convention_Ghost
;
7173 end Is_Ghost_Subprogram
;
7179 function Is_Null_State
(Id
: E
) return B
is
7182 Ekind
(Id
) = E_Abstract_State
and then Nkind
(Parent
(Id
)) = N_Null
;
7185 ---------------------
7186 -- Is_Packed_Array --
7187 ---------------------
7189 function Is_Packed_Array
(Id
: E
) return B
is
7191 return Is_Array_Type
(Id
) and then Is_Packed
(Id
);
7192 end Is_Packed_Array
;
7194 -----------------------------------
7195 -- Is_Package_Or_Generic_Package --
7196 -----------------------------------
7198 function Is_Package_Or_Generic_Package
(Id
: E
) return B
is
7200 return Ekind_In
(Id
, E_Generic_Package
, E_Package
);
7201 end Is_Package_Or_Generic_Package
;
7207 function Is_Prival
(Id
: E
) return B
is
7209 return (Ekind_In
(Id
, E_Constant
, E_Variable
)
7210 and then Present
(Prival_Link
(Id
)));
7213 ----------------------------
7214 -- Is_Protected_Component --
7215 ----------------------------
7217 function Is_Protected_Component
(Id
: E
) return B
is
7219 return Ekind
(Id
) = E_Component
and then Is_Protected_Type
(Scope
(Id
));
7220 end Is_Protected_Component
;
7222 ----------------------------
7223 -- Is_Protected_Interface --
7224 ----------------------------
7226 function Is_Protected_Interface
(Id
: E
) return B
is
7227 Typ
: constant Entity_Id
:= Base_Type
(Id
);
7229 if not Is_Interface
(Typ
) then
7231 elsif Is_Class_Wide_Type
(Typ
) then
7232 return Is_Protected_Interface
(Etype
(Typ
));
7234 return Protected_Present
(Type_Definition
(Parent
(Typ
)));
7236 end Is_Protected_Interface
;
7238 ------------------------------
7239 -- Is_Protected_Record_Type --
7240 ------------------------------
7242 function Is_Protected_Record_Type
(Id
: E
) return B
is
7245 Is_Concurrent_Record_Type
(Id
)
7246 and then Is_Protected_Type
(Corresponding_Concurrent_Type
(Id
));
7247 end Is_Protected_Record_Type
;
7249 --------------------------------
7250 -- Is_Standard_Character_Type --
7251 --------------------------------
7253 function Is_Standard_Character_Type
(Id
: E
) return B
is
7255 if Is_Type
(Id
) then
7257 R
: constant Entity_Id
:= Root_Type
(Id
);
7260 R
= Standard_Character
7262 R
= Standard_Wide_Character
7264 R
= Standard_Wide_Wide_Character
;
7270 end Is_Standard_Character_Type
;
7272 -----------------------------
7273 -- Is_Standard_String_Type --
7274 -----------------------------
7276 function Is_Standard_String_Type
(Id
: E
) return B
is
7278 if Is_Type
(Id
) then
7280 R
: constant Entity_Id
:= Root_Type
(Id
);
7285 R
= Standard_Wide_String
7287 R
= Standard_Wide_Wide_String
;
7293 end Is_Standard_String_Type
;
7295 --------------------
7296 -- Is_String_Type --
7297 --------------------
7299 function Is_String_Type
(Id
: E
) return B
is
7301 return Is_Array_Type
(Id
)
7302 and then Id
/= Any_Composite
7303 and then Number_Dimensions
(Id
) = 1
7304 and then Is_Character_Type
(Component_Type
(Id
));
7307 -------------------------------
7308 -- Is_Synchronized_Interface --
7309 -------------------------------
7311 function Is_Synchronized_Interface
(Id
: E
) return B
is
7312 Typ
: constant Entity_Id
:= Base_Type
(Id
);
7315 if not Is_Interface
(Typ
) then
7318 elsif Is_Class_Wide_Type
(Typ
) then
7319 return Is_Synchronized_Interface
(Etype
(Typ
));
7322 return Protected_Present
(Type_Definition
(Parent
(Typ
)))
7323 or else Synchronized_Present
(Type_Definition
(Parent
(Typ
)))
7324 or else Task_Present
(Type_Definition
(Parent
(Typ
)));
7326 end Is_Synchronized_Interface
;
7328 -----------------------
7329 -- Is_Task_Interface --
7330 -----------------------
7332 function Is_Task_Interface
(Id
: E
) return B
is
7333 Typ
: constant Entity_Id
:= Base_Type
(Id
);
7335 if not Is_Interface
(Typ
) then
7337 elsif Is_Class_Wide_Type
(Typ
) then
7338 return Is_Task_Interface
(Etype
(Typ
));
7340 return Task_Present
(Type_Definition
(Parent
(Typ
)));
7342 end Is_Task_Interface
;
7344 -------------------------
7345 -- Is_Task_Record_Type --
7346 -------------------------
7348 function Is_Task_Record_Type
(Id
: E
) return B
is
7351 Is_Concurrent_Record_Type
(Id
)
7352 and then Is_Task_Type
(Corresponding_Concurrent_Type
(Id
));
7353 end Is_Task_Record_Type
;
7355 ------------------------
7356 -- Is_Wrapper_Package --
7357 ------------------------
7359 function Is_Wrapper_Package
(Id
: E
) return B
is
7361 return (Ekind
(Id
) = E_Package
and then Present
(Related_Instance
(Id
)));
7362 end Is_Wrapper_Package
;
7368 function Last_Formal
(Id
: E
) return E
is
7373 (Is_Overloadable
(Id
)
7374 or else Ekind_In
(Id
, E_Entry_Family
,
7376 E_Subprogram_Type
));
7378 if Ekind
(Id
) = E_Enumeration_Literal
then
7382 Formal
:= First_Formal
(Id
);
7384 if Present
(Formal
) then
7385 while Present
(Next_Formal
(Formal
)) loop
7386 Formal
:= Next_Formal
(Formal
);
7394 function Model_Emin_Value
(Id
: E
) return Uint
is
7396 return Machine_Emin_Value
(Id
);
7397 end Model_Emin_Value
;
7399 -------------------------
7400 -- Model_Epsilon_Value --
7401 -------------------------
7403 function Model_Epsilon_Value
(Id
: E
) return Ureal
is
7404 Radix
: constant Ureal
:= UR_From_Uint
(Machine_Radix_Value
(Id
));
7406 return Radix
** (1 - Model_Mantissa_Value
(Id
));
7407 end Model_Epsilon_Value
;
7409 --------------------------
7410 -- Model_Mantissa_Value --
7411 --------------------------
7413 function Model_Mantissa_Value
(Id
: E
) return Uint
is
7415 return Machine_Mantissa_Value
(Id
);
7416 end Model_Mantissa_Value
;
7418 -----------------------
7419 -- Model_Small_Value --
7420 -----------------------
7422 function Model_Small_Value
(Id
: E
) return Ureal
is
7423 Radix
: constant Ureal
:= UR_From_Uint
(Machine_Radix_Value
(Id
));
7425 return Radix
** (Model_Emin_Value
(Id
) - 1);
7426 end Model_Small_Value
;
7428 ------------------------
7429 -- Machine_Emax_Value --
7430 ------------------------
7432 function Machine_Emax_Value
(Id
: E
) return Uint
is
7433 Digs
: constant Pos
:= UI_To_Int
(Digits_Value
(Base_Type
(Id
)));
7436 case Float_Rep
(Id
) is
7439 when 1 .. 6 => return Uint_128
;
7440 when 7 .. 15 => return 2**10;
7441 when 16 .. 33 => return 2**14;
7442 when others => return No_Uint
;
7446 return Uint_2
** Uint_7
- Uint_1
;
7448 end Machine_Emax_Value
;
7450 ------------------------
7451 -- Machine_Emin_Value --
7452 ------------------------
7454 function Machine_Emin_Value
(Id
: E
) return Uint
is
7456 case Float_Rep
(Id
) is
7457 when IEEE_Binary
=> return Uint_3
- Machine_Emax_Value
(Id
);
7458 when AAMP
=> return -Machine_Emax_Value
(Id
);
7460 end Machine_Emin_Value
;
7462 ----------------------------
7463 -- Machine_Mantissa_Value --
7464 ----------------------------
7466 function Machine_Mantissa_Value
(Id
: E
) return Uint
is
7467 Digs
: constant Pos
:= UI_To_Int
(Digits_Value
(Base_Type
(Id
)));
7470 case Float_Rep
(Id
) is
7473 when 1 .. 6 => return Uint_24
;
7474 when 7 .. 15 => return UI_From_Int
(53);
7475 when 16 .. 18 => return Uint_64
;
7476 when 19 .. 33 => return UI_From_Int
(113);
7477 when others => return No_Uint
;
7482 when 1 .. 6 => return Uint_24
;
7483 when 7 .. 9 => return UI_From_Int
(40);
7484 when others => return No_Uint
;
7487 end Machine_Mantissa_Value
;
7489 -------------------------
7490 -- Machine_Radix_Value --
7491 -------------------------
7493 function Machine_Radix_Value
(Id
: E
) return U
is
7495 case Float_Rep
(Id
) is
7496 when IEEE_Binary | AAMP
=>
7499 end Machine_Radix_Value
;
7501 --------------------
7502 -- Next_Component --
7503 --------------------
7505 function Next_Component
(Id
: E
) return E
is
7509 Comp_Id
:= Next_Entity
(Id
);
7510 while Present
(Comp_Id
) loop
7511 exit when Ekind
(Comp_Id
) = E_Component
;
7512 Comp_Id
:= Next_Entity
(Comp_Id
);
7518 ------------------------------------
7519 -- Next_Component_Or_Discriminant --
7520 ------------------------------------
7522 function Next_Component_Or_Discriminant
(Id
: E
) return E
is
7526 Comp_Id
:= Next_Entity
(Id
);
7527 while Present
(Comp_Id
) loop
7528 exit when Ekind_In
(Comp_Id
, E_Component
, E_Discriminant
);
7529 Comp_Id
:= Next_Entity
(Comp_Id
);
7533 end Next_Component_Or_Discriminant
;
7535 -----------------------
7536 -- Next_Discriminant --
7537 -----------------------
7539 -- This function actually implements both Next_Discriminant and
7540 -- Next_Stored_Discriminant by making sure that the Discriminant
7541 -- returned is of the same variety as Id.
7543 function Next_Discriminant
(Id
: E
) return E
is
7545 -- Derived Tagged types with private extensions look like this...
7547 -- E_Discriminant d1
7548 -- E_Discriminant d2
7550 -- E_Discriminant d1
7551 -- E_Discriminant d2
7554 -- so it is critical not to go past the leading discriminants
7559 pragma Assert
(Ekind
(Id
) = E_Discriminant
);
7562 D
:= Next_Entity
(D
);
7564 or else (Ekind
(D
) /= E_Discriminant
7565 and then not Is_Itype
(D
))
7570 exit when Ekind
(D
) = E_Discriminant
7571 and then (Is_Completely_Hidden
(D
) = Is_Completely_Hidden
(Id
));
7575 end Next_Discriminant
;
7581 function Next_Formal
(Id
: E
) return E
is
7585 -- Follow the chain of declared entities as long as the kind of the
7586 -- entity corresponds to a formal parameter. Skip internal entities
7587 -- that may have been created for implicit subtypes, in the process
7588 -- of analyzing default expressions.
7592 P
:= Next_Entity
(P
);
7594 if No
(P
) or else Is_Formal
(P
) then
7596 elsif not Is_Internal
(P
) then
7602 -----------------------------
7603 -- Next_Formal_With_Extras --
7604 -----------------------------
7606 function Next_Formal_With_Extras
(Id
: E
) return E
is
7608 if Present
(Extra_Formal
(Id
)) then
7609 return Extra_Formal
(Id
);
7611 return Next_Formal
(Id
);
7613 end Next_Formal_With_Extras
;
7619 function Next_Index
(Id
: Node_Id
) return Node_Id
is
7628 function Next_Literal
(Id
: E
) return E
is
7630 pragma Assert
(Nkind
(Id
) in N_Entity
);
7634 ------------------------------
7635 -- Next_Stored_Discriminant --
7636 ------------------------------
7638 function Next_Stored_Discriminant
(Id
: E
) return E
is
7640 -- See comment in Next_Discriminant
7642 return Next_Discriminant
(Id
);
7643 end Next_Stored_Discriminant
;
7645 -----------------------
7646 -- Number_Dimensions --
7647 -----------------------
7649 function Number_Dimensions
(Id
: E
) return Pos
is
7654 if Ekind
(Id
) = E_String_Literal_Subtype
then
7659 T
:= First_Index
(Id
);
7660 while Present
(T
) loop
7667 end Number_Dimensions
;
7669 --------------------
7670 -- Number_Entries --
7671 --------------------
7673 function Number_Entries
(Id
: E
) return Nat
is
7678 pragma Assert
(Is_Concurrent_Type
(Id
));
7681 Ent
:= First_Entity
(Id
);
7682 while Present
(Ent
) loop
7683 if Is_Entry
(Ent
) then
7687 Ent
:= Next_Entity
(Ent
);
7693 --------------------
7694 -- Number_Formals --
7695 --------------------
7697 function Number_Formals
(Id
: E
) return Pos
is
7703 Formal
:= First_Formal
(Id
);
7704 while Present
(Formal
) loop
7706 Formal
:= Next_Formal
(Formal
);
7712 --------------------
7713 -- Parameter_Mode --
7714 --------------------
7716 function Parameter_Mode
(Id
: E
) return Formal_Kind
is
7721 ------------------------
7722 -- Predicate_Function --
7723 ------------------------
7725 function Predicate_Function
(Id
: E
) return E
is
7730 pragma Assert
(Is_Type
(Id
));
7732 -- If type is private and has a completion, predicate may be defined
7733 -- on the full view.
7735 if Is_Private_Type
(Id
) and then Present
(Full_View
(Id
)) then
7736 T
:= Full_View
(Id
);
7741 if No
(Subprograms_For_Type
(T
)) then
7745 S
:= Subprograms_For_Type
(T
);
7746 while Present
(S
) loop
7747 if Is_Predicate_Function
(S
) then
7750 S
:= Subprograms_For_Type
(S
);
7756 end Predicate_Function
;
7758 --------------------------
7759 -- Predicate_Function_M --
7760 --------------------------
7762 function Predicate_Function_M
(Id
: E
) return E
is
7767 pragma Assert
(Is_Type
(Id
));
7769 -- If type is private and has a completion, predicate may be defined
7770 -- on the full view.
7772 if Is_Private_Type
(Id
) and then Present
(Full_View
(Id
)) then
7773 T
:= Full_View
(Id
);
7778 if No
(Subprograms_For_Type
(T
)) then
7782 S
:= Subprograms_For_Type
(T
);
7783 while Present
(S
) loop
7784 if Is_Predicate_Function_M
(S
) then
7787 S
:= Subprograms_For_Type
(S
);
7793 end Predicate_Function_M
;
7795 -------------------------
7796 -- Present_In_Rep_Item --
7797 -------------------------
7799 function Present_In_Rep_Item
(E
: Entity_Id
; N
: Node_Id
) return Boolean is
7803 Ritem
:= First_Rep_Item
(E
);
7805 while Present
(Ritem
) loop
7810 Next_Rep_Item
(Ritem
);
7814 end Present_In_Rep_Item
;
7816 --------------------------
7817 -- Primitive_Operations --
7818 --------------------------
7820 function Primitive_Operations
(Id
: E
) return L
is
7822 if Is_Concurrent_Type
(Id
) then
7823 if Present
(Corresponding_Record_Type
(Id
)) then
7824 return Direct_Primitive_Operations
7825 (Corresponding_Record_Type
(Id
));
7827 -- If expansion is disabled the corresponding record type is absent,
7828 -- but if the type has ancestors it may have primitive operations.
7830 elsif Is_Tagged_Type
(Id
) then
7831 return Direct_Primitive_Operations
(Id
);
7837 return Direct_Primitive_Operations
(Id
);
7839 end Primitive_Operations
;
7841 ---------------------
7842 -- Record_Rep_Item --
7843 ---------------------
7845 procedure Record_Rep_Item
(E
: Entity_Id
; N
: Node_Id
) is
7847 Set_Next_Rep_Item
(N
, First_Rep_Item
(E
));
7848 Set_First_Rep_Item
(E
, N
);
7849 end Record_Rep_Item
;
7855 function Root_Type
(Id
: E
) return E
is
7859 pragma Assert
(Nkind
(Id
) in N_Entity
);
7861 T
:= Base_Type
(Id
);
7863 if Ekind
(T
) = E_Class_Wide_Type
then
7875 -- Following test catches some error cases resulting from
7878 elsif No
(Etyp
) then
7879 Check_Error_Detected
;
7882 elsif Is_Private_Type
(T
) and then Etyp
= Full_View
(T
) then
7885 elsif Is_Private_Type
(Etyp
) and then Full_View
(Etyp
) = T
then
7891 -- Return if there is a circularity in the inheritance chain. This
7892 -- happens in some error situations and we do not want to get
7893 -- stuck in this loop.
7895 if T
= Base_Type
(Id
) then
7902 ---------------------
7903 -- Safe_Emax_Value --
7904 ---------------------
7906 function Safe_Emax_Value
(Id
: E
) return Uint
is
7908 return Machine_Emax_Value
(Id
);
7909 end Safe_Emax_Value
;
7911 ----------------------
7912 -- Safe_First_Value --
7913 ----------------------
7915 function Safe_First_Value
(Id
: E
) return Ureal
is
7917 return -Safe_Last_Value
(Id
);
7918 end Safe_First_Value
;
7920 ---------------------
7921 -- Safe_Last_Value --
7922 ---------------------
7924 function Safe_Last_Value
(Id
: E
) return Ureal
is
7925 Radix
: constant Uint
:= Machine_Radix_Value
(Id
);
7926 Mantissa
: constant Uint
:= Machine_Mantissa_Value
(Id
);
7927 Emax
: constant Uint
:= Safe_Emax_Value
(Id
);
7928 Significand
: constant Uint
:= Radix
** Mantissa
- 1;
7929 Exponent
: constant Uint
:= Emax
- Mantissa
;
7935 (Num
=> Significand
* 2 ** (Exponent
mod 4),
7936 Den
=> -Exponent
/ 4,
7941 (Num
=> Significand
,
7945 end Safe_Last_Value
;
7951 function Scope_Depth
(Id
: E
) return Uint
is
7956 while Is_Record_Type
(Scop
) loop
7957 Scop
:= Scope
(Scop
);
7960 return Scope_Depth_Value
(Scop
);
7963 ---------------------
7964 -- Scope_Depth_Set --
7965 ---------------------
7967 function Scope_Depth_Set
(Id
: E
) return B
is
7969 return not Is_Record_Type
(Id
)
7970 and then Field22
(Id
) /= Union_Id
(Empty
);
7971 end Scope_Depth_Set
;
7973 -----------------------------
7974 -- Set_Component_Alignment --
7975 -----------------------------
7977 -- Component Alignment is encoded using two flags, Flag128/129 as
7978 -- follows. Note that both flags False = Align_Default, so that the
7979 -- default initialization of flags to False initializes component
7980 -- alignment to the default value as required.
7982 -- Flag128 Flag129 Value
7983 -- ------- ------- -----
7984 -- False False Calign_Default
7985 -- False True Calign_Component_Size
7986 -- True False Calign_Component_Size_4
7987 -- True True Calign_Storage_Unit
7989 procedure Set_Component_Alignment
(Id
: E
; V
: C
) is
7991 pragma Assert
((Is_Array_Type
(Id
) or else Is_Record_Type
(Id
))
7992 and then Is_Base_Type
(Id
));
7995 when Calign_Default
=>
7996 Set_Flag128
(Id
, False);
7997 Set_Flag129
(Id
, False);
7999 when Calign_Component_Size
=>
8000 Set_Flag128
(Id
, False);
8001 Set_Flag129
(Id
, True);
8003 when Calign_Component_Size_4
=>
8004 Set_Flag128
(Id
, True);
8005 Set_Flag129
(Id
, False);
8007 when Calign_Storage_Unit
=>
8008 Set_Flag128
(Id
, True);
8009 Set_Flag129
(Id
, True);
8011 end Set_Component_Alignment
;
8013 -------------------------------------
8014 -- Set_Default_Init_Cond_Procedure --
8015 -------------------------------------
8017 procedure Set_Default_Init_Cond_Procedure
(Id
: E
; V
: E
) is
8022 (Is_Type
(Id
) and then (Has_Default_Init_Cond
(Id
)
8024 Has_Inherited_Default_Init_Cond
(Id
)));
8026 S
:= Subprograms_For_Type
(Id
);
8027 Set_Subprograms_For_Type
(Id
, V
);
8028 Set_Subprograms_For_Type
(V
, S
);
8030 -- Check for a duplicate procedure
8032 while Present
(S
) loop
8033 if Is_Default_Init_Cond_Procedure
(S
) then
8034 raise Program_Error
;
8037 S
:= Subprograms_For_Type
(S
);
8039 end Set_Default_Init_Cond_Procedure
;
8041 -----------------------------
8042 -- Set_Invariant_Procedure --
8043 -----------------------------
8045 procedure Set_Invariant_Procedure
(Id
: E
; V
: E
) is
8049 pragma Assert
(Is_Type
(Id
) and then Has_Invariants
(Id
));
8051 S
:= Subprograms_For_Type
(Id
);
8052 Set_Subprograms_For_Type
(Id
, V
);
8053 Set_Subprograms_For_Type
(V
, S
);
8055 -- Check for duplicate entry
8057 while Present
(S
) loop
8058 if Is_Invariant_Procedure
(S
) then
8059 raise Program_Error
;
8061 S
:= Subprograms_For_Type
(S
);
8064 end Set_Invariant_Procedure
;
8066 ----------------------------
8067 -- Set_Predicate_Function --
8068 ----------------------------
8070 procedure Set_Predicate_Function
(Id
: E
; V
: E
) is
8074 pragma Assert
(Is_Type
(Id
) and then Has_Predicates
(Id
));
8076 S
:= Subprograms_For_Type
(Id
);
8077 Set_Subprograms_For_Type
(Id
, V
);
8078 Set_Subprograms_For_Type
(V
, S
);
8080 while Present
(S
) loop
8081 if Is_Predicate_Function
(S
) then
8082 raise Program_Error
;
8084 S
:= Subprograms_For_Type
(S
);
8087 end Set_Predicate_Function
;
8089 ------------------------------
8090 -- Set_Predicate_Function_M --
8091 ------------------------------
8093 procedure Set_Predicate_Function_M
(Id
: E
; V
: E
) is
8097 pragma Assert
(Is_Type
(Id
) and then Has_Predicates
(Id
));
8099 S
:= Subprograms_For_Type
(Id
);
8100 Set_Subprograms_For_Type
(Id
, V
);
8101 Set_Subprograms_For_Type
(V
, S
);
8103 -- Check for duplicates
8105 while Present
(S
) loop
8106 if Is_Predicate_Function_M
(S
) then
8107 raise Program_Error
;
8109 S
:= Subprograms_For_Type
(S
);
8112 end Set_Predicate_Function_M
;
8118 function Size_Clause
(Id
: E
) return N
is
8120 return Get_Attribute_Definition_Clause
(Id
, Attribute_Size
);
8123 ------------------------
8124 -- Stream_Size_Clause --
8125 ------------------------
8127 function Stream_Size_Clause
(Id
: E
) return N
is
8129 return Get_Attribute_Definition_Clause
(Id
, Attribute_Stream_Size
);
8130 end Stream_Size_Clause
;
8136 function Subtype_Kind
(K
: Entity_Kind
) return Entity_Kind
is
8142 Kind
:= E_Access_Subtype
;
8146 Kind
:= E_Array_Subtype
;
8148 when E_Class_Wide_Type |
8149 E_Class_Wide_Subtype
=>
8150 Kind
:= E_Class_Wide_Subtype
;
8152 when E_Decimal_Fixed_Point_Type |
8153 E_Decimal_Fixed_Point_Subtype
=>
8154 Kind
:= E_Decimal_Fixed_Point_Subtype
;
8156 when E_Ordinary_Fixed_Point_Type |
8157 E_Ordinary_Fixed_Point_Subtype
=>
8158 Kind
:= E_Ordinary_Fixed_Point_Subtype
;
8160 when E_Private_Type |
8161 E_Private_Subtype
=>
8162 Kind
:= E_Private_Subtype
;
8164 when E_Limited_Private_Type |
8165 E_Limited_Private_Subtype
=>
8166 Kind
:= E_Limited_Private_Subtype
;
8168 when E_Record_Type_With_Private |
8169 E_Record_Subtype_With_Private
=>
8170 Kind
:= E_Record_Subtype_With_Private
;
8172 when E_Record_Type |
8174 Kind
:= E_Record_Subtype
;
8176 when Enumeration_Kind
=>
8177 Kind
:= E_Enumeration_Subtype
;
8180 Kind
:= E_Floating_Point_Subtype
;
8182 when Signed_Integer_Kind
=>
8183 Kind
:= E_Signed_Integer_Subtype
;
8185 when Modular_Integer_Kind
=>
8186 Kind
:= E_Modular_Integer_Subtype
;
8188 when Protected_Kind
=>
8189 Kind
:= E_Protected_Subtype
;
8192 Kind
:= E_Task_Subtype
;
8196 raise Program_Error
;
8202 ---------------------
8203 -- Type_High_Bound --
8204 ---------------------
8206 function Type_High_Bound
(Id
: E
) return Node_Id
is
8207 Rng
: constant Node_Id
:= Scalar_Range
(Id
);
8209 if Nkind
(Rng
) = N_Subtype_Indication
then
8210 return High_Bound
(Range_Expression
(Constraint
(Rng
)));
8212 return High_Bound
(Rng
);
8214 end Type_High_Bound
;
8216 --------------------
8217 -- Type_Low_Bound --
8218 --------------------
8220 function Type_Low_Bound
(Id
: E
) return Node_Id
is
8221 Rng
: constant Node_Id
:= Scalar_Range
(Id
);
8223 if Nkind
(Rng
) = N_Subtype_Indication
then
8224 return Low_Bound
(Range_Expression
(Constraint
(Rng
)));
8226 return Low_Bound
(Rng
);
8230 ---------------------
8231 -- Underlying_Type --
8232 ---------------------
8234 function Underlying_Type
(Id
: E
) return E
is
8236 -- For record_with_private the underlying type is always the direct
8237 -- full view. Never try to take the full view of the parent it
8238 -- doesn't make sense.
8240 if Ekind
(Id
) = E_Record_Type_With_Private
then
8241 return Full_View
(Id
);
8243 elsif Ekind
(Id
) in Incomplete_Or_Private_Kind
then
8245 -- If we have an incomplete or private type with a full view,
8246 -- then we return the Underlying_Type of this full view.
8248 if Present
(Full_View
(Id
)) then
8249 if Id
= Full_View
(Id
) then
8251 -- Previous error in declaration
8256 return Underlying_Type
(Full_View
(Id
));
8259 -- If we have a private type with an underlying full view, then we
8260 -- return the Underlying_Type of this underlying full view.
8262 elsif Ekind
(Id
) in Private_Kind
8263 and then Present
(Underlying_Full_View
(Id
))
8265 return Underlying_Type
(Underlying_Full_View
(Id
));
8267 -- If we have an incomplete entity that comes from the limited
8268 -- view then we return the Underlying_Type of its non-limited
8271 elsif From_Limited_With
(Id
)
8272 and then Present
(Non_Limited_View
(Id
))
8274 return Underlying_Type
(Non_Limited_View
(Id
));
8276 -- Otherwise check for the case where we have a derived type or
8277 -- subtype, and if so get the Underlying_Type of the parent type.
8279 elsif Etype
(Id
) /= Id
then
8280 return Underlying_Type
(Etype
(Id
));
8282 -- Otherwise we have an incomplete or private type that has
8283 -- no full view, which means that we have not encountered the
8284 -- completion, so return Empty to indicate the underlying type
8285 -- is not yet known.
8291 -- For non-incomplete, non-private types, return the type itself Also
8292 -- for entities that are not types at all return the entity itself.
8297 end Underlying_Type
;
8299 ------------------------
8300 -- Write_Entity_Flags --
8301 ------------------------
8303 procedure Write_Entity_Flags
(Id
: Entity_Id
; Prefix
: String) is
8305 procedure W
(Flag_Name
: String; Flag
: Boolean);
8306 -- Write out given flag if it is set
8312 procedure W
(Flag_Name
: String; Flag
: Boolean) is
8316 Write_Str
(Flag_Name
);
8317 Write_Str
(" = True");
8322 -- Start of processing for Write_Entity_Flags
8325 if (Is_Array_Type
(Id
) or else Is_Record_Type
(Id
))
8326 and then Is_Base_Type
(Id
)
8329 Write_Str
("Component_Alignment = ");
8331 case Component_Alignment
(Id
) is
8332 when Calign_Default
=>
8333 Write_Str
("Calign_Default");
8335 when Calign_Component_Size
=>
8336 Write_Str
("Calign_Component_Size");
8338 when Calign_Component_Size_4
=>
8339 Write_Str
("Calign_Component_Size_4");
8341 when Calign_Storage_Unit
=>
8342 Write_Str
("Calign_Storage_Unit");
8348 W
("Address_Taken", Flag104
(Id
));
8349 W
("Body_Needed_For_SAL", Flag40
(Id
));
8350 W
("C_Pass_By_Copy", Flag125
(Id
));
8351 W
("Can_Never_Be_Null", Flag38
(Id
));
8352 W
("Checks_May_Be_Suppressed", Flag31
(Id
));
8353 W
("Debug_Info_Off", Flag166
(Id
));
8354 W
("Default_Expressions_Processed", Flag108
(Id
));
8355 W
("Delay_Cleanups", Flag114
(Id
));
8356 W
("Delay_Subprogram_Descriptors", Flag50
(Id
));
8357 W
("Depends_On_Private", Flag14
(Id
));
8358 W
("Discard_Names", Flag88
(Id
));
8359 W
("Elaboration_Entity_Required", Flag174
(Id
));
8360 W
("Elaborate_Body_Desirable", Flag210
(Id
));
8361 W
("Entry_Accepted", Flag152
(Id
));
8362 W
("Can_Use_Internal_Rep", Flag229
(Id
));
8363 W
("Finalize_Storage_Only", Flag158
(Id
));
8364 W
("From_Limited_With", Flag159
(Id
));
8365 W
("Has_Aliased_Components", Flag135
(Id
));
8366 W
("Has_Alignment_Clause", Flag46
(Id
));
8367 W
("Has_All_Calls_Remote", Flag79
(Id
));
8368 W
("Has_Anonymous_Master", Flag253
(Id
));
8369 W
("Has_Atomic_Components", Flag86
(Id
));
8370 W
("Has_Biased_Representation", Flag139
(Id
));
8371 W
("Has_Completion", Flag26
(Id
));
8372 W
("Has_Completion_In_Body", Flag71
(Id
));
8373 W
("Has_Complex_Representation", Flag140
(Id
));
8374 W
("Has_Component_Size_Clause", Flag68
(Id
));
8375 W
("Has_Contiguous_Rep", Flag181
(Id
));
8376 W
("Has_Controlled_Component", Flag43
(Id
));
8377 W
("Has_Controlling_Result", Flag98
(Id
));
8378 W
("Has_Convention_Pragma", Flag119
(Id
));
8379 W
("Has_Default_Aspect", Flag39
(Id
));
8380 W
("Has_Default_Init_Cond", Flag3
(Id
));
8381 W
("Has_Delayed_Aspects", Flag200
(Id
));
8382 W
("Has_Delayed_Freeze", Flag18
(Id
));
8383 W
("Has_Delayed_Rep_Aspects", Flag261
(Id
));
8384 W
("Has_Discriminants", Flag5
(Id
));
8385 W
("Has_Dispatch_Table", Flag220
(Id
));
8386 W
("Has_Dynamic_Predicate_Aspect", Flag258
(Id
));
8387 W
("Has_Enumeration_Rep_Clause", Flag66
(Id
));
8388 W
("Has_Exit", Flag47
(Id
));
8389 W
("Has_Forward_Instantiation", Flag175
(Id
));
8390 W
("Has_Fully_Qualified_Name", Flag173
(Id
));
8391 W
("Has_Gigi_Rep_Item", Flag82
(Id
));
8392 W
("Has_Homonym", Flag56
(Id
));
8393 W
("Has_Implicit_Dereference", Flag251
(Id
));
8394 W
("Has_Independent_Components", Flag34
(Id
));
8395 W
("Has_Inheritable_Invariants", Flag248
(Id
));
8396 W
("Has_Inherited_Default_Init_Cond", Flag133
(Id
));
8397 W
("Has_Initial_Value", Flag219
(Id
));
8398 W
("Has_Invariants", Flag232
(Id
));
8399 W
("Has_Loop_Entry_Attributes", Flag260
(Id
));
8400 W
("Has_Machine_Radix_Clause", Flag83
(Id
));
8401 W
("Has_Master_Entity", Flag21
(Id
));
8402 W
("Has_Missing_Return", Flag142
(Id
));
8403 W
("Has_Nested_Block_With_Handler", Flag101
(Id
));
8404 W
("Has_Non_Standard_Rep", Flag75
(Id
));
8405 W
("Has_Out_Or_In_Out_Parameter", Flag110
(Id
));
8406 W
("Has_Object_Size_Clause", Flag172
(Id
));
8407 W
("Has_Per_Object_Constraint", Flag154
(Id
));
8408 W
("Has_Postconditions", Flag240
(Id
));
8409 W
("Has_Pragma_Controlled", Flag27
(Id
));
8410 W
("Has_Pragma_Elaborate_Body", Flag150
(Id
));
8411 W
("Has_Pragma_Inline", Flag157
(Id
));
8412 W
("Has_Pragma_Inline_Always", Flag230
(Id
));
8413 W
("Has_Pragma_No_Inline", Flag201
(Id
));
8414 W
("Has_Pragma_Ordered", Flag198
(Id
));
8415 W
("Has_Pragma_Pack", Flag121
(Id
));
8416 W
("Has_Pragma_Preelab_Init", Flag221
(Id
));
8417 W
("Has_Pragma_Pure", Flag203
(Id
));
8418 W
("Has_Pragma_Pure_Function", Flag179
(Id
));
8419 W
("Has_Pragma_Thread_Local_Storage", Flag169
(Id
));
8420 W
("Has_Pragma_Unmodified", Flag233
(Id
));
8421 W
("Has_Pragma_Unreferenced", Flag180
(Id
));
8422 W
("Has_Pragma_Unreferenced_Objects", Flag212
(Id
));
8423 W
("Has_Predicates", Flag250
(Id
));
8424 W
("Has_Primitive_Operations", Flag120
(Id
));
8425 W
("Has_Private_Ancestor", Flag151
(Id
));
8426 W
("Has_Private_Declaration", Flag155
(Id
));
8427 W
("Has_Protected", Flag271
(Id
));
8428 W
("Has_Qualified_Name", Flag161
(Id
));
8429 W
("Has_RACW", Flag214
(Id
));
8430 W
("Has_Record_Rep_Clause", Flag65
(Id
));
8431 W
("Has_Recursive_Call", Flag143
(Id
));
8432 W
("Has_Shift_Operator", Flag267
(Id
));
8433 W
("Has_Size_Clause", Flag29
(Id
));
8434 W
("Has_Small_Clause", Flag67
(Id
));
8435 W
("Has_Specified_Layout", Flag100
(Id
));
8436 W
("Has_Specified_Stream_Input", Flag190
(Id
));
8437 W
("Has_Specified_Stream_Output", Flag191
(Id
));
8438 W
("Has_Specified_Stream_Read", Flag192
(Id
));
8439 W
("Has_Specified_Stream_Write", Flag193
(Id
));
8440 W
("Has_Static_Discriminants", Flag211
(Id
));
8441 W
("Has_Static_Predicate", Flag269
(Id
));
8442 W
("Has_Static_Predicate_Aspect", Flag259
(Id
));
8443 W
("Has_Storage_Size_Clause", Flag23
(Id
));
8444 W
("Has_Stream_Size_Clause", Flag184
(Id
));
8445 W
("Has_Task", Flag30
(Id
));
8446 W
("Has_Thunks", Flag228
(Id
));
8447 W
("Has_Unchecked_Union", Flag123
(Id
));
8448 W
("Has_Unknown_Discriminants", Flag72
(Id
));
8449 W
("Has_Up_Level_Access", Flag215
(Id
));
8450 W
("Has_Visible_Refinement", Flag263
(Id
));
8451 W
("Has_Volatile_Components", Flag87
(Id
));
8452 W
("Has_Xref_Entry", Flag182
(Id
));
8453 W
("In_Package_Body", Flag48
(Id
));
8454 W
("In_Private_Part", Flag45
(Id
));
8455 W
("In_Use", Flag8
(Id
));
8456 W
("Is_Abstract_Subprogram", Flag19
(Id
));
8457 W
("Is_Abstract_Type", Flag146
(Id
));
8458 W
("Is_Access_Constant", Flag69
(Id
));
8459 W
("Is_Ada_2005_Only", Flag185
(Id
));
8460 W
("Is_Ada_2012_Only", Flag199
(Id
));
8461 W
("Is_Aliased", Flag15
(Id
));
8462 W
("Is_Asynchronous", Flag81
(Id
));
8463 W
("Is_Atomic", Flag85
(Id
));
8464 W
("Is_Bit_Packed_Array", Flag122
(Id
));
8465 W
("Is_CPP_Class", Flag74
(Id
));
8466 W
("Is_Called", Flag102
(Id
));
8467 W
("Is_Character_Type", Flag63
(Id
));
8468 W
("Is_Child_Unit", Flag73
(Id
));
8469 W
("Is_Class_Wide_Equivalent_Type", Flag35
(Id
));
8470 W
("Is_Compilation_Unit", Flag149
(Id
));
8471 W
("Is_Completely_Hidden", Flag103
(Id
));
8472 W
("Is_Concurrent_Record_Type", Flag20
(Id
));
8473 W
("Is_Constr_Subt_For_UN_Aliased", Flag141
(Id
));
8474 W
("Is_Constr_Subt_For_U_Nominal", Flag80
(Id
));
8475 W
("Is_Constrained", Flag12
(Id
));
8476 W
("Is_Constructor", Flag76
(Id
));
8477 W
("Is_Controlled", Flag42
(Id
));
8478 W
("Is_Controlling_Formal", Flag97
(Id
));
8479 W
("Is_Default_Init_Cond_Procedure", Flag132
(Id
));
8480 W
("Is_Descendent_Of_Address", Flag223
(Id
));
8481 W
("Is_Discrim_SO_Function", Flag176
(Id
));
8482 W
("Is_Discriminant_Check_Function", Flag264
(Id
));
8483 W
("Is_Dispatch_Table_Entity", Flag234
(Id
));
8484 W
("Is_Dispatching_Operation", Flag6
(Id
));
8485 W
("Is_Eliminated", Flag124
(Id
));
8486 W
("Is_Entry_Formal", Flag52
(Id
));
8487 W
("Is_Exported", Flag99
(Id
));
8488 W
("Is_First_Subtype", Flag70
(Id
));
8489 W
("Is_For_Access_Subtype", Flag118
(Id
));
8490 W
("Is_Formal_Subprogram", Flag111
(Id
));
8491 W
("Is_Frozen", Flag4
(Id
));
8492 W
("Is_Generic_Actual_Subprogram", Flag274
(Id
));
8493 W
("Is_Generic_Actual_Type", Flag94
(Id
));
8494 W
("Is_Generic_Instance", Flag130
(Id
));
8495 W
("Is_Generic_Type", Flag13
(Id
));
8496 W
("Is_Hidden", Flag57
(Id
));
8497 W
("Is_Hidden_Non_Overridden_Subpgm", Flag2
(Id
));
8498 W
("Is_Hidden_Open_Scope", Flag171
(Id
));
8499 W
("Is_Immediately_Visible", Flag7
(Id
));
8500 W
("Is_Implementation_Defined", Flag254
(Id
));
8501 W
("Is_Imported", Flag24
(Id
));
8502 W
("Is_Independent", Flag268
(Id
));
8503 W
("Is_Inlined", Flag11
(Id
));
8504 W
("Is_Inlined_Always", Flag1
(Id
));
8505 W
("Is_Instantiated", Flag126
(Id
));
8506 W
("Is_Interface", Flag186
(Id
));
8507 W
("Is_Internal", Flag17
(Id
));
8508 W
("Is_Interrupt_Handler", Flag89
(Id
));
8509 W
("Is_Intrinsic_Subprogram", Flag64
(Id
));
8510 W
("Is_Invariant_Procedure", Flag257
(Id
));
8511 W
("Is_Itype", Flag91
(Id
));
8512 W
("Is_Known_Non_Null", Flag37
(Id
));
8513 W
("Is_Known_Null", Flag204
(Id
));
8514 W
("Is_Known_Valid", Flag170
(Id
));
8515 W
("Is_Limited_Composite", Flag106
(Id
));
8516 W
("Is_Limited_Interface", Flag197
(Id
));
8517 W
("Is_Limited_Record", Flag25
(Id
));
8518 W
("Is_Local_Anonymous_Access", Flag194
(Id
));
8519 W
("Is_Machine_Code_Subprogram", Flag137
(Id
));
8520 W
("Is_Non_Static_Subtype", Flag109
(Id
));
8521 W
("Is_Null_Init_Proc", Flag178
(Id
));
8522 W
("Is_Obsolescent", Flag153
(Id
));
8523 W
("Is_Only_Out_Parameter", Flag226
(Id
));
8524 W
("Is_Package_Body_Entity", Flag160
(Id
));
8525 W
("Is_Packed", Flag51
(Id
));
8526 W
("Is_Packed_Array_Impl_Type", Flag138
(Id
));
8527 W
("Is_Potentially_Use_Visible", Flag9
(Id
));
8528 W
("Is_Predicate_Function", Flag255
(Id
));
8529 W
("Is_Predicate_Function_M", Flag256
(Id
));
8530 W
("Is_Preelaborated", Flag59
(Id
));
8531 W
("Is_Primitive", Flag218
(Id
));
8532 W
("Is_Primitive_Wrapper", Flag195
(Id
));
8533 W
("Is_Private_Composite", Flag107
(Id
));
8534 W
("Is_Private_Descendant", Flag53
(Id
));
8535 W
("Is_Private_Primitive", Flag245
(Id
));
8536 W
("Is_Processed_Transient", Flag252
(Id
));
8537 W
("Is_Public", Flag10
(Id
));
8538 W
("Is_Pure", Flag44
(Id
));
8539 W
("Is_Pure_Unit_Access_Type", Flag189
(Id
));
8540 W
("Is_RACW_Stub_Type", Flag244
(Id
));
8541 W
("Is_Raised", Flag224
(Id
));
8542 W
("Is_Remote_Call_Interface", Flag62
(Id
));
8543 W
("Is_Remote_Types", Flag61
(Id
));
8544 W
("Is_Renaming_Of_Object", Flag112
(Id
));
8545 W
("Is_Return_Object", Flag209
(Id
));
8546 W
("Is_Safe_To_Reevaluate", Flag249
(Id
));
8547 W
("Is_Shared_Passive", Flag60
(Id
));
8548 W
("Is_Statically_Allocated", Flag28
(Id
));
8549 W
("Is_Tag", Flag78
(Id
));
8550 W
("Is_Tagged_Type", Flag55
(Id
));
8551 W
("Is_Thunk", Flag225
(Id
));
8552 W
("Is_Trivial_Subprogram", Flag235
(Id
));
8553 W
("Is_True_Constant", Flag163
(Id
));
8554 W
("Is_Unchecked_Union", Flag117
(Id
));
8555 W
("Is_Underlying_Record_View", Flag246
(Id
));
8556 W
("Is_Unsigned_Type", Flag144
(Id
));
8557 W
("Is_Valued_Procedure", Flag127
(Id
));
8558 W
("Is_Visible_Formal", Flag206
(Id
));
8559 W
("Is_Visible_Lib_Unit", Flag116
(Id
));
8560 W
("Is_Volatile", Flag16
(Id
));
8561 W
("Itype_Printed", Flag202
(Id
));
8562 W
("Kill_Elaboration_Checks", Flag32
(Id
));
8563 W
("Kill_Range_Checks", Flag33
(Id
));
8564 W
("Known_To_Have_Preelab_Init", Flag207
(Id
));
8565 W
("Low_Bound_Tested", Flag205
(Id
));
8566 W
("Machine_Radix_10", Flag84
(Id
));
8567 W
("Materialize_Entity", Flag168
(Id
));
8568 W
("May_Inherit_Delayed_Rep_Aspects", Flag262
(Id
));
8569 W
("Must_Be_On_Byte_Boundary", Flag183
(Id
));
8570 W
("Must_Have_Preelab_Init", Flag208
(Id
));
8571 W
("Needs_Debug_Info", Flag147
(Id
));
8572 W
("Needs_No_Actuals", Flag22
(Id
));
8573 W
("Never_Set_In_Source", Flag115
(Id
));
8574 W
("No_Dynamic_Predicate_On_actual", Flag276
(Id
));
8575 W
("No_Pool_Assigned", Flag131
(Id
));
8576 W
("No_Predicate_On_actual", Flag275
(Id
));
8577 W
("No_Return", Flag113
(Id
));
8578 W
("No_Strict_Aliasing", Flag136
(Id
));
8579 W
("Non_Binary_Modulus", Flag58
(Id
));
8580 W
("Nonzero_Is_True", Flag162
(Id
));
8581 W
("OK_To_Rename", Flag247
(Id
));
8582 W
("OK_To_Reorder_Components", Flag239
(Id
));
8583 W
("Optimize_Alignment_Space", Flag241
(Id
));
8584 W
("Optimize_Alignment_Time", Flag242
(Id
));
8585 W
("Overlays_Constant", Flag243
(Id
));
8586 W
("Reachable", Flag49
(Id
));
8587 W
("Referenced", Flag156
(Id
));
8588 W
("Referenced_As_LHS", Flag36
(Id
));
8589 W
("Referenced_As_Out_Parameter", Flag227
(Id
));
8590 W
("Renamed_In_Spec", Flag231
(Id
));
8591 W
("Requires_Overriding", Flag213
(Id
));
8592 W
("Return_Present", Flag54
(Id
));
8593 W
("Returns_By_Ref", Flag90
(Id
));
8594 W
("Returns_Limited_View", Flag134
(Id
));
8595 W
("Reverse_Bit_Order", Flag164
(Id
));
8596 W
("Reverse_Storage_Order", Flag93
(Id
));
8597 W
("Sec_Stack_Needed_For_Return", Flag167
(Id
));
8598 W
("Size_Depends_On_Discriminant", Flag177
(Id
));
8599 W
("Size_Known_At_Compile_Time", Flag92
(Id
));
8600 W
("SPARK_Aux_Pragma_Inherited", Flag266
(Id
));
8601 W
("SPARK_Pragma_Inherited", Flag265
(Id
));
8602 W
("SSO_Set_High_By_Default", Flag273
(Id
));
8603 W
("SSO_Set_Low_By_Default", Flag272
(Id
));
8604 W
("Static_Elaboration_Desired", Flag77
(Id
));
8605 W
("Stores_Attribute_Old_Prefix", Flag270
(Id
));
8606 W
("Strict_Alignment", Flag145
(Id
));
8607 W
("Suppress_Elaboration_Warnings", Flag148
(Id
));
8608 W
("Suppress_Initialization", Flag105
(Id
));
8609 W
("Suppress_Style_Checks", Flag165
(Id
));
8610 W
("Suppress_Value_Tracking_On_Call", Flag217
(Id
));
8611 W
("Treat_As_Volatile", Flag41
(Id
));
8612 W
("Universal_Aliasing", Flag216
(Id
));
8613 W
("Used_As_Generic_Actual", Flag222
(Id
));
8614 W
("Uses_Sec_Stack", Flag95
(Id
));
8615 W
("Warnings_Off", Flag96
(Id
));
8616 W
("Warnings_Off_Used", Flag236
(Id
));
8617 W
("Warnings_Off_Used_Unmodified", Flag237
(Id
));
8618 W
("Warnings_Off_Used_Unreferenced", Flag238
(Id
));
8619 W
("Was_Hidden", Flag196
(Id
));
8620 end Write_Entity_Flags
;
8622 -----------------------
8623 -- Write_Entity_Info --
8624 -----------------------
8626 procedure Write_Entity_Info
(Id
: Entity_Id
; Prefix
: String) is
8628 procedure Write_Attribute
(Which
: String; Nam
: E
);
8629 -- Write attribute value with given string name
8631 procedure Write_Kind
(Id
: Entity_Id
);
8632 -- Write Ekind field of entity
8634 ---------------------
8635 -- Write_Attribute --
8636 ---------------------
8638 procedure Write_Attribute
(Which
: String; Nam
: E
) is
8642 Write_Int
(Int
(Nam
));
8644 Write_Name
(Chars
(Nam
));
8646 end Write_Attribute
;
8652 procedure Write_Kind
(Id
: Entity_Id
) is
8653 K
: constant String := Entity_Kind
'Image (Ekind
(Id
));
8657 Write_Str
(" Kind ");
8659 if Is_Type
(Id
) and then Is_Tagged_Type
(Id
) then
8660 Write_Str
("TAGGED ");
8663 Write_Str
(K
(3 .. K
'Length));
8666 if Is_Type
(Id
) and then Depends_On_Private
(Id
) then
8667 Write_Str
("Depends_On_Private ");
8671 -- Start of processing for Write_Entity_Info
8675 Write_Attribute
("Name ", Id
);
8676 Write_Int
(Int
(Id
));
8680 Write_Attribute
(" Type ", Etype
(Id
));
8682 Write_Attribute
(" Scope ", Scope
(Id
));
8687 when Discrete_Kind
=>
8688 Write_Str
("Bounds: Id = ");
8690 if Present
(Scalar_Range
(Id
)) then
8691 Write_Int
(Int
(Type_Low_Bound
(Id
)));
8692 Write_Str
(" .. Id = ");
8693 Write_Int
(Int
(Type_High_Bound
(Id
)));
8695 Write_Str
("Empty");
8706 (" Component Type ", Component_Type
(Id
));
8709 Write_Str
(" Indexes ");
8711 Index
:= First_Index
(Id
);
8712 while Present
(Index
) loop
8713 Write_Attribute
(" ", Etype
(Index
));
8714 Index
:= Next_Index
(Index
);
8722 (" Directly Designated Type ",
8723 Directly_Designated_Type
(Id
));
8726 when Overloadable_Kind
=>
8727 if Present
(Homonym
(Id
)) then
8728 Write_Str
(" Homonym ");
8729 Write_Name
(Chars
(Homonym
(Id
)));
8731 Write_Int
(Int
(Homonym
(Id
)));
8738 if Ekind
(Scope
(Id
)) in Record_Kind
then
8740 " Original_Record_Component ",
8741 Original_Record_Component
(Id
));
8742 Write_Int
(Int
(Original_Record_Component
(Id
)));
8746 when others => null;
8748 end Write_Entity_Info
;
8750 -----------------------
8751 -- Write_Field6_Name --
8752 -----------------------
8754 procedure Write_Field6_Name
(Id
: Entity_Id
) is
8755 pragma Warnings
(Off
, Id
);
8757 Write_Str
("First_Rep_Item");
8758 end Write_Field6_Name
;
8760 -----------------------
8761 -- Write_Field7_Name --
8762 -----------------------
8764 procedure Write_Field7_Name
(Id
: Entity_Id
) is
8765 pragma Warnings
(Off
, Id
);
8767 Write_Str
("Freeze_Node");
8768 end Write_Field7_Name
;
8770 -----------------------
8771 -- Write_Field8_Name --
8772 -----------------------
8774 procedure Write_Field8_Name
(Id
: Entity_Id
) is
8778 Write_Str
("Associated_Node_For_Itype");
8781 Write_Str
("Dependent_Instances");
8784 Write_Str
("First_Exit_Statement");
8787 Write_Str
("Hiding_Loop_Variable");
8791 E_Subprogram_Body
=>
8792 Write_Str
("Mechanism");
8796 Write_Str
("Normalized_First_Bit");
8799 Write_Str
("Postcondition_Proc");
8801 when E_Abstract_State
=>
8802 Write_Str
("Refinement_Constituents");
8804 when E_Return_Statement
=>
8805 Write_Str
("Return_Applies_To");
8808 Write_Str
("Field8??");
8810 end Write_Field8_Name
;
8812 -----------------------
8813 -- Write_Field9_Name --
8814 -----------------------
8816 procedure Write_Field9_Name
(Id
: Entity_Id
) is
8820 Write_Str
("Class_Wide_Type");
8823 Write_Str
("Current_Value");
8825 when E_Abstract_State
=>
8826 Write_Str
("Part_Of_Constituents");
8829 E_Generic_Function |
8831 E_Generic_Procedure |
8834 Write_Str
("Renaming_Map");
8837 Write_Str
("Field9??");
8839 end Write_Field9_Name
;
8841 ------------------------
8842 -- Write_Field10_Name --
8843 ------------------------
8845 procedure Write_Field10_Name
(Id
: Entity_Id
) is
8848 when E_Abstract_State |
8850 Write_Str
("Encapsulating_State");
8852 when Class_Wide_Kind |
8858 Write_Str
("Direct_Primitive_Operations");
8861 Write_Str
("Float_Rep");
8863 when E_In_Parameter |
8865 Write_Str
("Discriminal_Link");
8871 Write_Str
("Handler_Records");
8875 Write_Str
("Normalized_Position_Max");
8878 Write_Str
("Field10??");
8880 end Write_Field10_Name
;
8882 ------------------------
8883 -- Write_Field11_Name --
8884 ------------------------
8886 procedure Write_Field11_Name
(Id
: Entity_Id
) is
8890 Write_Str
("Block_Node");
8894 Write_Str
("Component_Bit_Offset");
8897 Write_Str
("Entry_Component");
8899 when E_Enumeration_Literal
=>
8900 Write_Str
("Enumeration_Pos");
8904 Write_Str
("Full_View");
8906 when E_Generic_Package
=>
8907 Write_Str
("Generic_Homonym");
8913 Write_Str
("Protected_Body_Subprogram");
8916 Write_Str
("Field11??");
8918 end Write_Field11_Name
;
8920 ------------------------
8921 -- Write_Field12_Name --
8922 ------------------------
8924 procedure Write_Field12_Name
(Id
: Entity_Id
) is
8928 Write_Str
("Associated_Formal_Package");
8931 Write_Str
("Barrier_Function");
8933 when E_Enumeration_Literal
=>
8934 Write_Str
("Enumeration_Rep");
8942 E_In_Out_Parameter |
8946 Write_Str
("Esize");
8950 Write_Str
("Next_Inlined_Subprogram");
8953 Write_Str
("Field12??");
8955 end Write_Field12_Name
;
8957 ------------------------
8958 -- Write_Field13_Name --
8959 ------------------------
8961 procedure Write_Field13_Name
(Id
: Entity_Id
) is
8966 Write_Str
("Component_Clause");
8969 Write_Str
("Elaboration_Entity");
8973 Generic_Unit_Kind
=>
8974 Write_Str
("Elaboration_Entity");
8978 Write_Str
("Extra_Accessibility");
8981 Write_Str
("RM_Size");
8984 Write_Str
("Field13??");
8986 end Write_Field13_Name
;
8988 -----------------------
8989 -- Write_Field14_Name --
8990 -----------------------
8992 procedure Write_Field14_Name
(Id
: Entity_Id
) is
9001 Write_Str
("Alignment");
9005 Write_Str
("Normalized_Position");
9008 E_Generic_Package
=>
9009 Write_Str
("Shadow_Entities");
9012 Write_Str
("Field14??");
9014 end Write_Field14_Name
;
9016 ------------------------
9017 -- Write_Field15_Name --
9018 ------------------------
9020 procedure Write_Field15_Name
(Id
: Entity_Id
) is
9023 when E_Discriminant
=>
9024 Write_Str
("Discriminant_Number");
9027 Write_Str
("DT_Entry_Count");
9031 Write_Str
("DT_Position");
9033 when E_Protected_Type
=>
9034 Write_Str
("Entry_Bodies_Array");
9037 Write_Str
("Entry_Parameters_Type");
9040 Write_Str
("Extra_Formal");
9042 when Enumeration_Kind
=>
9043 Write_Str
("Lit_Indexes");
9047 Write_Str
("Related_Instance");
9049 when Decimal_Fixed_Point_Kind
=>
9050 Write_Str
("Scale_Value");
9054 Write_Str
("Status_Flag_Or_Transient_Decl");
9058 Write_Str
("Storage_Size_Variable");
9060 when E_String_Literal_Subtype
=>
9061 Write_Str
("String_Literal_Low_Bound");
9064 Write_Str
("Field15??");
9066 end Write_Field15_Name
;
9068 ------------------------
9069 -- Write_Field16_Name --
9070 ------------------------
9072 procedure Write_Field16_Name
(Id
: Entity_Id
) is
9075 when E_Record_Type |
9076 E_Record_Type_With_Private
=>
9077 Write_Str
("Access_Disp_Table");
9079 when E_Abstract_State
=>
9080 Write_Str
("Body_References");
9082 when E_Record_Subtype |
9083 E_Class_Wide_Subtype
=>
9084 Write_Str
("Cloned_Subtype");
9088 Write_Str
("DTC_Entity");
9091 Write_Str
("Entry_Formal");
9096 Write_Str
("First_Private_Entity");
9098 when Enumeration_Kind
=>
9099 Write_Str
("Lit_Strings");
9101 when E_String_Literal_Subtype
=>
9102 Write_Str
("String_Literal_Length");
9106 Write_Str
("Unset_Reference");
9109 Write_Str
("Field16??");
9111 end Write_Field16_Name
;
9113 ------------------------
9114 -- Write_Field17_Name --
9115 ------------------------
9117 procedure Write_Field17_Name
(Id
: Entity_Id
) is
9122 E_Generic_In_Out_Parameter |
9124 Write_Str
("Actual_Subtype");
9127 Write_Str
("Digits_Value");
9129 when E_Discriminant
=>
9130 Write_Str
("Discriminal");
9139 E_Generic_Function |
9141 E_Generic_Procedure |
9149 E_Return_Statement |
9151 E_Subprogram_Type
=>
9152 Write_Str
("First_Entity");
9155 Write_Str
("First_Index");
9157 when Enumeration_Kind
=>
9158 Write_Str
("First_Literal");
9161 Write_Str
("Master_Id");
9163 when Modular_Integer_Kind
=>
9164 Write_Str
("Modulus");
9166 when E_Abstract_State |
9167 E_Incomplete_Type
=>
9168 Write_Str
("Non_Limited_View");
9170 when E_Incomplete_Subtype
=>
9171 if From_Limited_With
(Id
) then
9172 Write_Str
("Non_Limited_View");
9176 Write_Str
("Prival");
9179 Write_Str
("Field17??");
9181 end Write_Field17_Name
;
9183 ------------------------
9184 -- Write_Field18_Name --
9185 ------------------------
9187 procedure Write_Field18_Name
(Id
: Entity_Id
) is
9190 when E_Enumeration_Literal |
9194 Write_Str
("Alias");
9196 when E_Record_Type
=>
9197 Write_Str
("Corresponding_Concurrent_Type");
9199 when E_Subprogram_Body
=>
9200 Write_Str
("Corresponding_Protected_Entry");
9202 when Concurrent_Kind
=>
9203 Write_Str
("Corresponding_Record_Type");
9208 Write_Str
("Enclosing_Scope");
9210 when E_Entry_Index_Parameter
=>
9211 Write_Str
("Entry_Index_Constant");
9213 when E_Class_Wide_Subtype |
9214 E_Access_Protected_Subprogram_Type |
9215 E_Anonymous_Access_Protected_Subprogram_Type |
9216 E_Access_Subprogram_Type |
9218 Write_Str
("Equivalent_Type");
9220 when Fixed_Point_Kind
=>
9221 Write_Str
("Delta_Value");
9223 when Incomplete_Or_Private_Kind |
9225 Write_Str
("Private_Dependents");
9228 Write_Str
("Renamed_Object");
9232 E_Generic_Function |
9233 E_Generic_Procedure |
9234 E_Generic_Package
=>
9235 Write_Str
("Renamed_Entity");
9238 Write_Str
("Field18??");
9240 end Write_Field18_Name
;
9242 -----------------------
9243 -- Write_Field19_Name --
9244 -----------------------
9246 procedure Write_Field19_Name
(Id
: Entity_Id
) is
9250 E_Generic_Package
=>
9251 Write_Str
("Body_Entity");
9253 when E_Discriminant
=>
9254 Write_Str
("Corresponding_Discriminant");
9257 Write_Str
("Default_Aspect_Value");
9259 when E_Array_Type
=>
9260 Write_Str
("Default_Component_Value");
9262 when E_Record_Type
=>
9263 Write_Str
("Parent_Subtype");
9267 Write_Str
("Size_Check_Code");
9269 when E_Package_Body |
9271 Write_Str
("Spec_Entity");
9273 when Private_Kind
=>
9274 Write_Str
("Underlying_Full_View");
9276 when E_Function | E_Operator | E_Subprogram_Type
=>
9277 Write_Str
("Extra_Accessibility_Of_Result");
9280 Write_Str
("Field19??");
9282 end Write_Field19_Name
;
9284 -----------------------
9285 -- Write_Field20_Name --
9286 -----------------------
9288 procedure Write_Field20_Name
(Id
: Entity_Id
) is
9292 Write_Str
("Component_Type");
9294 when E_In_Parameter |
9295 E_Generic_In_Parameter
=>
9296 Write_Str
("Default_Value");
9299 Write_Str
("Directly_Designated_Type");
9302 Write_Str
("Discriminant_Checking_Func");
9304 when E_Discriminant
=>
9305 Write_Str
("Discriminant_Default_Value");
9314 E_Generic_Function |
9316 E_Generic_Procedure |
9324 E_Return_Statement |
9326 E_Subprogram_Type
=>
9327 Write_Str
("Last_Entity");
9331 Write_Str
("Prival_Link");
9334 Write_Str
("Scalar_Range");
9337 Write_Str
("Register_Exception_Call");
9340 Write_Str
("Field20??");
9342 end Write_Field20_Name
;
9344 -----------------------
9345 -- Write_Field21_Name --
9346 -----------------------
9348 procedure Write_Field21_Name
(Id
: Entity_Id
) is
9352 Write_Str
("Accept_Address");
9354 when E_In_Parameter
=>
9355 Write_Str
("Default_Expr_Function");
9357 when Concurrent_Kind |
9358 Incomplete_Or_Private_Kind |
9362 Write_Str
("Discriminant_Constraint");
9367 E_Generic_Function |
9369 E_Generic_Procedure |
9371 Write_Str
("Interface_Name");
9374 Modular_Integer_Kind
=>
9375 Write_Str
("Original_Array_Type");
9377 when Fixed_Point_Kind
=>
9378 Write_Str
("Small_Value");
9381 Write_Str
("Field21??");
9383 end Write_Field21_Name
;
9385 -----------------------
9386 -- Write_Field22_Name --
9387 -----------------------
9389 procedure Write_Field22_Name
(Id
: Entity_Id
) is
9393 Write_Str
("Associated_Storage_Pool");
9396 Write_Str
("Component_Size");
9398 when E_Record_Type
=>
9399 Write_Str
("Corresponding_Remote_Type");
9403 Write_Str
("Original_Record_Component");
9405 when E_Enumeration_Literal
=>
9406 Write_Str
("Enumeration_Rep_Expr");
9408 when E_Record_Type_With_Private |
9409 E_Record_Subtype_With_Private |
9412 E_Limited_Private_Type |
9413 E_Limited_Private_Subtype
=>
9414 Write_Str
("Private_View");
9417 Write_Str
("Protected_Formal");
9427 E_Generic_Function |
9428 E_Generic_Procedure |
9431 E_Return_Statement |
9434 Write_Str
("Scope_Depth_Value");
9437 Write_Str
("Shared_Var_Procs_Instance");
9440 Write_Str
("Field22??");
9442 end Write_Field22_Name
;
9444 ------------------------
9445 -- Write_Field23_Name --
9446 ------------------------
9448 procedure Write_Field23_Name
(Id
: Entity_Id
) is
9451 when E_Discriminant
=>
9452 Write_Str
("CR_Discriminant");
9455 Write_Str
("Entry_Cancel_Parameter");
9457 when E_Enumeration_Type
=>
9458 Write_Str
("Enum_Pos_To_Rep");
9462 Write_Str
("Extra_Constrained");
9465 Write_Str
("Finalization_Master");
9467 when E_Generic_Function |
9469 E_Generic_Procedure
=>
9470 Write_Str
("Inner_Instances");
9473 Write_Str
("Packed_Array_Impl_Type");
9476 Write_Str
("Protection_Object");
9478 when Concurrent_Kind |
9479 Incomplete_Or_Private_Kind |
9483 Write_Str
("Stored_Constraint");
9487 if Present
(Scope
(Id
))
9488 and then Is_Protected_Type
(Scope
(Id
))
9490 Write_Str
("Protection_Object");
9492 Write_Str
("Generic_Renamings");
9496 if Is_Generic_Instance
(Id
) then
9497 Write_Str
("Generic_Renamings");
9499 Write_Str
("Limited_View");
9503 Write_Str
("Field23??");
9505 end Write_Field23_Name
;
9507 ------------------------
9508 -- Write_Field24_Name --
9509 ------------------------
9511 procedure Write_Field24_Name
(Id
: Entity_Id
) is
9517 Write_Str
("Related_Expression");
9520 Write_Str
("Field24???");
9522 end Write_Field24_Name
;
9524 ------------------------
9525 -- Write_Field25_Name --
9526 ------------------------
9528 procedure Write_Field25_Name
(Id
: Entity_Id
) is
9531 when E_Generic_Package |
9533 Write_Str
("Abstract_States");
9536 Write_Str
("Debug_Renaming_Link");
9539 Write_Str
("DT_Offset_To_Top_Func");
9543 Write_Str
("Interface_Alias");
9545 when E_Record_Type |
9547 E_Record_Type_With_Private |
9548 E_Record_Subtype_With_Private
=>
9549 Write_Str
("Interfaces");
9553 Write_Str
("Related_Array_Object");
9556 Write_Str
("Task_Body_Procedure");
9560 Write_Str
("PPC_Wrapper");
9562 when Discrete_Kind
=>
9563 Write_Str
("Static_Discrete_Predicate");
9566 Write_Str
("Static_Real_Or_String_Predicate");
9569 Write_Str
("Field25??");
9571 end Write_Field25_Name
;
9573 ------------------------
9574 -- Write_Field26_Name --
9575 ------------------------
9577 procedure Write_Field26_Name
(Id
: Entity_Id
) is
9580 when E_Record_Type |
9581 E_Record_Type_With_Private
=>
9582 Write_Str
("Dispatch_Table_Wrappers");
9584 when E_In_Out_Parameter |
9587 Write_Str
("Last_Assignment");
9589 when E_Access_Subprogram_Type
=>
9590 Write_Str
("Original_Access_Type");
9592 when E_Generic_Package |
9594 Write_Str
("Package_Instantiation");
9598 Write_Str
("Related_Type");
9601 Write_Str
("Relative_Deadline_Variable");
9605 Write_Str
("Overridden_Operation");
9608 Write_Str
("Field26??");
9610 end Write_Field26_Name
;
9612 ------------------------
9613 -- Write_Field27_Name --
9614 ------------------------
9616 procedure Write_Field27_Name
(Id
: Entity_Id
) is
9621 Write_Str
("Current_Use_Clause");
9626 Write_Str
("Related_Type");
9630 Write_Str
("Wrapped_Entity");
9633 Write_Str
("Field27??");
9635 end Write_Field27_Name
;
9637 ------------------------
9638 -- Write_Field28_Name --
9639 ------------------------
9641 procedure Write_Field28_Name
(Id
: Entity_Id
) is
9649 E_Subprogram_Type
=>
9650 Write_Str
("Extra_Formals");
9654 Write_Str
("Finalizer");
9658 Write_Str
("Initialization_Statements");
9660 when E_Record_Type
=>
9661 Write_Str
("Underlying_Record_View");
9664 Write_Str
("Field28??");
9666 end Write_Field28_Name
;
9668 ------------------------
9669 -- Write_Field29_Name --
9670 ------------------------
9672 procedure Write_Field29_Name
(Id
: Entity_Id
) is
9677 Write_Str
("BIP_Initialization_Call");
9680 Write_Str
("Subprograms_For_Type");
9683 Write_Str
("Field29??");
9685 end Write_Field29_Name
;
9687 ------------------------
9688 -- Write_Field30_Name --
9689 ------------------------
9691 procedure Write_Field30_Name
(Id
: Entity_Id
) is
9695 Write_Str
("Corresponding_Equality");
9699 Write_Str
("Last_Aggregate_Assignment");
9702 Write_Str
("Static_Initialization");
9705 Write_Str
("Field30??");
9707 end Write_Field30_Name
;
9709 ------------------------
9710 -- Write_Field31_Name --
9711 ------------------------
9713 procedure Write_Field31_Name
(Id
: Entity_Id
) is
9718 Write_Str
("Thunk_Entity");
9721 Write_Str
("Derived_Type_Link");
9724 Write_Str
("Field31??");
9726 end Write_Field31_Name
;
9728 ------------------------
9729 -- Write_Field32_Name --
9730 ------------------------
9732 procedure Write_Field32_Name
(Id
: Entity_Id
) is
9736 E_Generic_Function |
9738 E_Generic_Procedure |
9742 E_Subprogram_Body
=>
9743 Write_Str
("SPARK_Pragma");
9746 Write_Str
("Field32??");
9748 end Write_Field32_Name
;
9750 ------------------------
9751 -- Write_Field33_Name --
9752 ------------------------
9754 procedure Write_Field33_Name
(Id
: Entity_Id
) is
9757 when E_Generic_Package |
9760 Write_Str
("SPARK_Aux_Pragma");
9766 Write_Str
("Linker_Section_Pragma");
9769 Write_Str
("Field33??");
9771 end Write_Field33_Name
;
9773 ------------------------
9774 -- Write_Field34_Name --
9775 ------------------------
9777 procedure Write_Field34_Name
(Id
: Entity_Id
) is
9787 Generic_Subprogram_Kind |
9789 Write_Str
("Contract");
9792 Write_Str
("Field34??");
9794 end Write_Field34_Name
;
9796 ------------------------
9797 -- Write_Field35_Name --
9798 ------------------------
9800 procedure Write_Field35_Name
(Id
: Entity_Id
) is
9803 when Subprogram_Kind
=>
9804 Write_Str
("Import_Pragma");
9806 Write_Str
("Field35??");
9808 end Write_Field35_Name
;
9810 -------------------------
9811 -- Iterator Procedures --
9812 -------------------------
9814 procedure Proc_Next_Component
(N
: in out Node_Id
) is
9816 N
:= Next_Component
(N
);
9817 end Proc_Next_Component
;
9819 procedure Proc_Next_Component_Or_Discriminant
(N
: in out Node_Id
) is
9821 N
:= Next_Entity
(N
);
9822 while Present
(N
) loop
9823 exit when Ekind_In
(N
, E_Component
, E_Discriminant
);
9824 N
:= Next_Entity
(N
);
9826 end Proc_Next_Component_Or_Discriminant
;
9828 procedure Proc_Next_Discriminant
(N
: in out Node_Id
) is
9830 N
:= Next_Discriminant
(N
);
9831 end Proc_Next_Discriminant
;
9833 procedure Proc_Next_Formal
(N
: in out Node_Id
) is
9835 N
:= Next_Formal
(N
);
9836 end Proc_Next_Formal
;
9838 procedure Proc_Next_Formal_With_Extras
(N
: in out Node_Id
) is
9840 N
:= Next_Formal_With_Extras
(N
);
9841 end Proc_Next_Formal_With_Extras
;
9843 procedure Proc_Next_Index
(N
: in out Node_Id
) is
9845 N
:= Next_Index
(N
);
9846 end Proc_Next_Index
;
9848 procedure Proc_Next_Inlined_Subprogram
(N
: in out Node_Id
) is
9850 N
:= Next_Inlined_Subprogram
(N
);
9851 end Proc_Next_Inlined_Subprogram
;
9853 procedure Proc_Next_Literal
(N
: in out Node_Id
) is
9855 N
:= Next_Literal
(N
);
9856 end Proc_Next_Literal
;
9858 procedure Proc_Next_Stored_Discriminant
(N
: in out Node_Id
) is
9860 N
:= Next_Stored_Discriminant
(N
);
9861 end Proc_Next_Stored_Discriminant
;