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_Generic_Subprogram
(Id
)
1133 or else Is_Subprogram
(Id
));
1137 function Entry_Parameters_Type
(Id
: E
) return E
is
1140 end Entry_Parameters_Type
;
1142 function Enum_Pos_To_Rep
(Id
: E
) return E
is
1144 pragma Assert
(Ekind
(Id
) = E_Enumeration_Type
);
1146 end Enum_Pos_To_Rep
;
1148 function Enumeration_Pos
(Id
: E
) return Uint
is
1150 pragma Assert
(Ekind
(Id
) = E_Enumeration_Literal
);
1152 end Enumeration_Pos
;
1154 function Enumeration_Rep
(Id
: E
) return U
is
1156 pragma Assert
(Ekind
(Id
) = E_Enumeration_Literal
);
1158 end Enumeration_Rep
;
1160 function Enumeration_Rep_Expr
(Id
: E
) return N
is
1162 pragma Assert
(Ekind
(Id
) = E_Enumeration_Literal
);
1164 end Enumeration_Rep_Expr
;
1166 function Equivalent_Type
(Id
: E
) return E
is
1169 (Ekind_In
(Id
, E_Class_Wide_Type
,
1170 E_Class_Wide_Subtype
,
1171 E_Access_Subprogram_Type
,
1172 E_Access_Protected_Subprogram_Type
,
1173 E_Anonymous_Access_Protected_Subprogram_Type
,
1174 E_Access_Subprogram_Type
,
1177 end Equivalent_Type
;
1179 function Esize
(Id
: E
) return Uint
is
1184 function Extra_Accessibility
(Id
: E
) return E
is
1187 (Is_Formal
(Id
) or else Ekind_In
(Id
, E_Variable
, E_Constant
));
1189 end Extra_Accessibility
;
1191 function Extra_Accessibility_Of_Result
(Id
: E
) return E
is
1193 pragma Assert
(Ekind_In
(Id
, E_Function
, E_Operator
, E_Subprogram_Type
));
1195 end Extra_Accessibility_Of_Result
;
1197 function Extra_Constrained
(Id
: E
) return E
is
1199 pragma Assert
(Is_Formal
(Id
) or else Ekind
(Id
) = E_Variable
);
1201 end Extra_Constrained
;
1203 function Extra_Formal
(Id
: E
) return E
is
1208 function Extra_Formals
(Id
: E
) return E
is
1211 (Is_Overloadable
(Id
)
1212 or else Ekind_In
(Id
, E_Entry_Family
,
1214 E_Subprogram_Type
));
1218 function Can_Use_Internal_Rep
(Id
: E
) return B
is
1220 pragma Assert
(Is_Access_Subprogram_Type
(Base_Type
(Id
)));
1221 return Flag229
(Base_Type
(Id
));
1222 end Can_Use_Internal_Rep
;
1224 function Finalization_Master
(Id
: E
) return E
is
1226 pragma Assert
(Is_Access_Type
(Id
));
1227 return Node23
(Root_Type
(Id
));
1228 end Finalization_Master
;
1230 function Finalize_Storage_Only
(Id
: E
) return B
is
1232 pragma Assert
(Is_Type
(Id
));
1233 return Flag158
(Base_Type
(Id
));
1234 end Finalize_Storage_Only
;
1236 function Finalizer
(Id
: E
) return E
is
1238 pragma Assert
(Ekind_In
(Id
, E_Package
, E_Package_Body
));
1242 function First_Entity
(Id
: E
) return E
is
1247 function First_Exit_Statement
(Id
: E
) return N
is
1249 pragma Assert
(Ekind
(Id
) = E_Loop
);
1251 end First_Exit_Statement
;
1253 function First_Index
(Id
: E
) return N
is
1255 pragma Assert
(Is_Array_Type
(Id
) or else Is_String_Type
(Id
));
1259 function First_Literal
(Id
: E
) return E
is
1261 pragma Assert
(Is_Enumeration_Type
(Id
));
1265 function First_Private_Entity
(Id
: E
) return E
is
1267 pragma Assert
(Ekind_In
(Id
, E_Package
, E_Generic_Package
)
1268 or else Ekind
(Id
) in Concurrent_Kind
);
1270 end First_Private_Entity
;
1272 function First_Rep_Item
(Id
: E
) return E
is
1277 function Freeze_Node
(Id
: E
) return N
is
1282 function From_Limited_With
(Id
: E
) return B
is
1284 return Flag159
(Id
);
1285 end From_Limited_With
;
1287 function Full_View
(Id
: E
) return E
is
1289 pragma Assert
(Is_Type
(Id
) or else Ekind
(Id
) = E_Constant
);
1293 function Generic_Homonym
(Id
: E
) return E
is
1295 pragma Assert
(Ekind
(Id
) = E_Generic_Package
);
1297 end Generic_Homonym
;
1299 function Generic_Renamings
(Id
: E
) return L
is
1301 return Elist23
(Id
);
1302 end Generic_Renamings
;
1304 function Handler_Records
(Id
: E
) return S
is
1307 end Handler_Records
;
1309 function Has_Aliased_Components
(Id
: E
) return B
is
1311 return Flag135
(Implementation_Base_Type
(Id
));
1312 end Has_Aliased_Components
;
1314 function Has_Alignment_Clause
(Id
: E
) return B
is
1317 end Has_Alignment_Clause
;
1319 function Has_All_Calls_Remote
(Id
: E
) return B
is
1322 end Has_All_Calls_Remote
;
1324 function Has_Anonymous_Master
(Id
: E
) return B
is
1327 (Ekind_In
(Id
, E_Function
, E_Package
, E_Package_Body
, E_Procedure
));
1328 return Flag253
(Id
);
1329 end Has_Anonymous_Master
;
1331 function Has_Atomic_Components
(Id
: E
) return B
is
1333 return Flag86
(Implementation_Base_Type
(Id
));
1334 end Has_Atomic_Components
;
1336 function Has_Biased_Representation
(Id
: E
) return B
is
1338 return Flag139
(Id
);
1339 end Has_Biased_Representation
;
1341 function Has_Completion
(Id
: E
) return B
is
1346 function Has_Completion_In_Body
(Id
: E
) return B
is
1348 pragma Assert
(Is_Type
(Id
));
1350 end Has_Completion_In_Body
;
1352 function Has_Complex_Representation
(Id
: E
) return B
is
1354 pragma Assert
(Is_Type
(Id
));
1355 return Flag140
(Implementation_Base_Type
(Id
));
1356 end Has_Complex_Representation
;
1358 function Has_Component_Size_Clause
(Id
: E
) return B
is
1360 pragma Assert
(Is_Array_Type
(Id
));
1361 return Flag68
(Implementation_Base_Type
(Id
));
1362 end Has_Component_Size_Clause
;
1364 function Has_Constrained_Partial_View
(Id
: E
) return B
is
1366 pragma Assert
(Is_Type
(Id
));
1367 return Flag187
(Id
);
1368 end Has_Constrained_Partial_View
;
1370 function Has_Controlled_Component
(Id
: E
) return B
is
1372 return Flag43
(Base_Type
(Id
));
1373 end Has_Controlled_Component
;
1375 function Has_Contiguous_Rep
(Id
: E
) return B
is
1377 return Flag181
(Id
);
1378 end Has_Contiguous_Rep
;
1380 function Has_Controlling_Result
(Id
: E
) return B
is
1383 end Has_Controlling_Result
;
1385 function Has_Convention_Pragma
(Id
: E
) return B
is
1387 return Flag119
(Id
);
1388 end Has_Convention_Pragma
;
1390 function Has_Default_Aspect
(Id
: E
) return B
is
1392 return Flag39
(Base_Type
(Id
));
1393 end Has_Default_Aspect
;
1395 function Has_Default_Init_Cond
(Id
: E
) return B
is
1398 end Has_Default_Init_Cond
;
1400 function Has_Delayed_Aspects
(Id
: E
) return B
is
1402 pragma Assert
(Nkind
(Id
) in N_Entity
);
1403 return Flag200
(Id
);
1404 end Has_Delayed_Aspects
;
1406 function Has_Delayed_Freeze
(Id
: E
) return B
is
1408 pragma Assert
(Nkind
(Id
) in N_Entity
);
1410 end Has_Delayed_Freeze
;
1412 function Has_Delayed_Rep_Aspects
(Id
: E
) return B
is
1414 pragma Assert
(Nkind
(Id
) in N_Entity
);
1415 return Flag261
(Id
);
1416 end Has_Delayed_Rep_Aspects
;
1418 function Has_Discriminants
(Id
: E
) return B
is
1420 pragma Assert
(Nkind
(Id
) in N_Entity
);
1422 end Has_Discriminants
;
1424 function Has_Dispatch_Table
(Id
: E
) return B
is
1426 pragma Assert
(Is_Tagged_Type
(Id
));
1427 return Flag220
(Id
);
1428 end Has_Dispatch_Table
;
1430 function Has_Dynamic_Predicate_Aspect
(Id
: E
) return B
is
1432 pragma Assert
(Is_Type
(Id
));
1433 return Flag258
(Id
);
1434 end Has_Dynamic_Predicate_Aspect
;
1436 function Has_Enumeration_Rep_Clause
(Id
: E
) return B
is
1438 pragma Assert
(Is_Enumeration_Type
(Id
));
1440 end Has_Enumeration_Rep_Clause
;
1442 function Has_Exit
(Id
: E
) return B
is
1447 function Has_Forward_Instantiation
(Id
: E
) return B
is
1449 return Flag175
(Id
);
1450 end Has_Forward_Instantiation
;
1452 function Has_Fully_Qualified_Name
(Id
: E
) return B
is
1454 return Flag173
(Id
);
1455 end Has_Fully_Qualified_Name
;
1457 function Has_Gigi_Rep_Item
(Id
: E
) return B
is
1460 end Has_Gigi_Rep_Item
;
1462 function Has_Homonym
(Id
: E
) return B
is
1467 function Has_Implicit_Dereference
(Id
: E
) return B
is
1469 return Flag251
(Id
);
1470 end Has_Implicit_Dereference
;
1472 function Has_Independent_Components
(Id
: E
) return B
is
1474 pragma Assert
(Is_Array_Type
(Id
) or else Is_Record_Type
(Id
));
1475 return Flag34
(Base_Type
(Id
));
1476 end Has_Independent_Components
;
1478 function Has_Inheritable_Invariants
(Id
: E
) return B
is
1480 pragma Assert
(Is_Type
(Id
));
1481 return Flag248
(Id
);
1482 end Has_Inheritable_Invariants
;
1484 function Has_Inherited_Default_Init_Cond
(Id
: E
) return B
is
1486 pragma Assert
(Is_Type
(Id
));
1487 return Flag133
(Id
);
1488 end Has_Inherited_Default_Init_Cond
;
1490 function Has_Initial_Value
(Id
: E
) return B
is
1492 pragma Assert
(Ekind
(Id
) = E_Variable
or else Is_Formal
(Id
));
1493 return Flag219
(Id
);
1494 end Has_Initial_Value
;
1496 function Has_Invariants
(Id
: E
) return B
is
1498 pragma Assert
(Is_Type
(Id
));
1499 return Flag232
(Id
);
1502 function Has_Loop_Entry_Attributes
(Id
: E
) return B
is
1504 pragma Assert
(Ekind
(Id
) = E_Loop
);
1505 return Flag260
(Id
);
1506 end Has_Loop_Entry_Attributes
;
1508 function Has_Machine_Radix_Clause
(Id
: E
) return B
is
1510 pragma Assert
(Is_Decimal_Fixed_Point_Type
(Id
));
1512 end Has_Machine_Radix_Clause
;
1514 function Has_Master_Entity
(Id
: E
) return B
is
1517 end Has_Master_Entity
;
1519 function Has_Missing_Return
(Id
: E
) return B
is
1521 pragma Assert
(Ekind_In
(Id
, E_Function
, E_Generic_Function
));
1522 return Flag142
(Id
);
1523 end Has_Missing_Return
;
1525 function Has_Nested_Block_With_Handler
(Id
: E
) return B
is
1527 return Flag101
(Id
);
1528 end Has_Nested_Block_With_Handler
;
1530 function Has_Non_Standard_Rep
(Id
: E
) return B
is
1532 return Flag75
(Implementation_Base_Type
(Id
));
1533 end Has_Non_Standard_Rep
;
1535 function Has_Object_Size_Clause
(Id
: E
) return B
is
1537 pragma Assert
(Is_Type
(Id
));
1538 return Flag172
(Id
);
1539 end Has_Object_Size_Clause
;
1541 function Has_Out_Or_In_Out_Parameter
(Id
: E
) return B
is
1543 pragma Assert
(Ekind_In
(Id
, E_Function
, E_Generic_Function
));
1544 return Flag110
(Id
);
1545 end Has_Out_Or_In_Out_Parameter
;
1547 function Has_Per_Object_Constraint
(Id
: E
) return B
is
1549 return Flag154
(Id
);
1550 end Has_Per_Object_Constraint
;
1552 function Has_Postconditions
(Id
: E
) return B
is
1554 pragma Assert
(Is_Subprogram
(Id
));
1555 return Flag240
(Id
);
1556 end Has_Postconditions
;
1558 function Has_Pragma_Controlled
(Id
: E
) return B
is
1560 pragma Assert
(Is_Access_Type
(Id
));
1561 return Flag27
(Implementation_Base_Type
(Id
));
1562 end Has_Pragma_Controlled
;
1564 function Has_Pragma_Elaborate_Body
(Id
: E
) return B
is
1566 return Flag150
(Id
);
1567 end Has_Pragma_Elaborate_Body
;
1569 function Has_Pragma_Inline
(Id
: E
) return B
is
1571 return Flag157
(Id
);
1572 end Has_Pragma_Inline
;
1574 function Has_Pragma_Inline_Always
(Id
: E
) return B
is
1576 return Flag230
(Id
);
1577 end Has_Pragma_Inline_Always
;
1579 function Has_Pragma_No_Inline
(Id
: E
) return B
is
1581 return Flag201
(Id
);
1582 end Has_Pragma_No_Inline
;
1584 function Has_Pragma_Ordered
(Id
: E
) return B
is
1586 pragma Assert
(Is_Enumeration_Type
(Id
));
1587 return Flag198
(Implementation_Base_Type
(Id
));
1588 end Has_Pragma_Ordered
;
1590 function Has_Pragma_Pack
(Id
: E
) return B
is
1592 pragma Assert
(Is_Record_Type
(Id
) or else Is_Array_Type
(Id
));
1593 return Flag121
(Implementation_Base_Type
(Id
));
1594 end Has_Pragma_Pack
;
1596 function Has_Pragma_Preelab_Init
(Id
: E
) return B
is
1598 return Flag221
(Id
);
1599 end Has_Pragma_Preelab_Init
;
1601 function Has_Pragma_Pure
(Id
: E
) return B
is
1603 return Flag203
(Id
);
1604 end Has_Pragma_Pure
;
1606 function Has_Pragma_Pure_Function
(Id
: E
) return B
is
1608 return Flag179
(Id
);
1609 end Has_Pragma_Pure_Function
;
1611 function Has_Pragma_Thread_Local_Storage
(Id
: E
) return B
is
1613 return Flag169
(Id
);
1614 end Has_Pragma_Thread_Local_Storage
;
1616 function Has_Pragma_Unmodified
(Id
: E
) return B
is
1618 return Flag233
(Id
);
1619 end Has_Pragma_Unmodified
;
1621 function Has_Pragma_Unreferenced
(Id
: E
) return B
is
1623 return Flag180
(Id
);
1624 end Has_Pragma_Unreferenced
;
1626 function Has_Pragma_Unreferenced_Objects
(Id
: E
) return B
is
1628 pragma Assert
(Is_Type
(Id
));
1629 return Flag212
(Id
);
1630 end Has_Pragma_Unreferenced_Objects
;
1632 function Has_Predicates
(Id
: E
) return B
is
1634 pragma Assert
(Is_Type
(Id
));
1635 return Flag250
(Id
);
1638 function Has_Primitive_Operations
(Id
: E
) return B
is
1640 pragma Assert
(Is_Type
(Id
));
1641 return Flag120
(Base_Type
(Id
));
1642 end Has_Primitive_Operations
;
1644 function Has_Private_Ancestor
(Id
: E
) return B
is
1646 return Flag151
(Id
);
1647 end Has_Private_Ancestor
;
1649 function Has_Private_Declaration
(Id
: E
) return B
is
1651 return Flag155
(Id
);
1652 end Has_Private_Declaration
;
1654 function Has_Protected
(Id
: E
) return B
is
1656 return Flag271
(Base_Type
(Id
));
1659 function Has_Qualified_Name
(Id
: E
) return B
is
1661 return Flag161
(Id
);
1662 end Has_Qualified_Name
;
1664 function Has_RACW
(Id
: E
) return B
is
1666 pragma Assert
(Ekind
(Id
) = E_Package
);
1667 return Flag214
(Id
);
1670 function Has_Record_Rep_Clause
(Id
: E
) return B
is
1672 pragma Assert
(Is_Record_Type
(Id
));
1673 return Flag65
(Implementation_Base_Type
(Id
));
1674 end Has_Record_Rep_Clause
;
1676 function Has_Recursive_Call
(Id
: E
) return B
is
1678 pragma Assert
(Is_Subprogram
(Id
));
1679 return Flag143
(Id
);
1680 end Has_Recursive_Call
;
1682 function Has_Shift_Operator
(Id
: E
) return B
is
1684 pragma Assert
(Is_Integer_Type
(Id
));
1685 return Flag267
(Base_Type
(Id
));
1686 end Has_Shift_Operator
;
1688 function Has_Size_Clause
(Id
: E
) return B
is
1691 end Has_Size_Clause
;
1693 function Has_Small_Clause
(Id
: E
) return B
is
1696 end Has_Small_Clause
;
1698 function Has_Specified_Layout
(Id
: E
) return B
is
1700 pragma Assert
(Is_Type
(Id
));
1701 return Flag100
(Implementation_Base_Type
(Id
));
1702 end Has_Specified_Layout
;
1704 function Has_Specified_Stream_Input
(Id
: E
) return B
is
1706 pragma Assert
(Is_Type
(Id
));
1707 return Flag190
(Id
);
1708 end Has_Specified_Stream_Input
;
1710 function Has_Specified_Stream_Output
(Id
: E
) return B
is
1712 pragma Assert
(Is_Type
(Id
));
1713 return Flag191
(Id
);
1714 end Has_Specified_Stream_Output
;
1716 function Has_Specified_Stream_Read
(Id
: E
) return B
is
1718 pragma Assert
(Is_Type
(Id
));
1719 return Flag192
(Id
);
1720 end Has_Specified_Stream_Read
;
1722 function Has_Specified_Stream_Write
(Id
: E
) return B
is
1724 pragma Assert
(Is_Type
(Id
));
1725 return Flag193
(Id
);
1726 end Has_Specified_Stream_Write
;
1728 function Has_Static_Discriminants
(Id
: E
) return B
is
1730 pragma Assert
(Is_Type
(Id
));
1731 return Flag211
(Id
);
1732 end Has_Static_Discriminants
;
1734 function Has_Static_Predicate
(Id
: E
) return B
is
1736 pragma Assert
(Is_Type
(Id
));
1737 return Flag269
(Id
);
1738 end Has_Static_Predicate
;
1740 function Has_Static_Predicate_Aspect
(Id
: E
) return B
is
1742 pragma Assert
(Is_Type
(Id
));
1743 return Flag259
(Id
);
1744 end Has_Static_Predicate_Aspect
;
1746 function Has_Storage_Size_Clause
(Id
: E
) return B
is
1748 pragma Assert
(Is_Access_Type
(Id
) or else Is_Task_Type
(Id
));
1749 return Flag23
(Implementation_Base_Type
(Id
));
1750 end Has_Storage_Size_Clause
;
1752 function Has_Stream_Size_Clause
(Id
: E
) return B
is
1754 return Flag184
(Id
);
1755 end Has_Stream_Size_Clause
;
1757 function Has_Task
(Id
: E
) return B
is
1759 return Flag30
(Base_Type
(Id
));
1762 function Has_Thunks
(Id
: E
) return B
is
1764 return Flag228
(Id
);
1767 function Has_Unchecked_Union
(Id
: E
) return B
is
1769 return Flag123
(Base_Type
(Id
));
1770 end Has_Unchecked_Union
;
1772 function Has_Unknown_Discriminants
(Id
: E
) return B
is
1774 pragma Assert
(Is_Type
(Id
));
1776 end Has_Unknown_Discriminants
;
1778 function Has_Up_Level_Access
(Id
: E
) return B
is
1781 (Ekind_In
(Id
, E_Variable
, E_Constant
, E_Loop_Parameter
));
1782 return Flag215
(Id
);
1783 end Has_Up_Level_Access
;
1785 function Has_Visible_Refinement
(Id
: E
) return B
is
1787 pragma Assert
(Ekind
(Id
) = E_Abstract_State
);
1788 return Flag263
(Id
);
1789 end Has_Visible_Refinement
;
1791 function Has_Volatile_Components
(Id
: E
) return B
is
1793 return Flag87
(Implementation_Base_Type
(Id
));
1794 end Has_Volatile_Components
;
1796 function Has_Xref_Entry
(Id
: E
) return B
is
1798 return Flag182
(Id
);
1801 function Hiding_Loop_Variable
(Id
: E
) return E
is
1803 pragma Assert
(Ekind
(Id
) = E_Variable
);
1805 end Hiding_Loop_Variable
;
1807 function Homonym
(Id
: E
) return E
is
1812 function Import_Pragma
(Id
: E
) return E
is
1814 pragma Assert
(Is_Subprogram
(Id
));
1818 function Interface_Alias
(Id
: E
) return E
is
1820 pragma Assert
(Is_Subprogram
(Id
));
1822 end Interface_Alias
;
1824 function Interfaces
(Id
: E
) return L
is
1826 pragma Assert
(Is_Record_Type
(Id
));
1827 return Elist25
(Id
);
1830 function In_Package_Body
(Id
: E
) return B
is
1833 end In_Package_Body
;
1835 function In_Private_Part
(Id
: E
) return B
is
1838 end In_Private_Part
;
1840 function In_Use
(Id
: E
) return B
is
1842 pragma Assert
(Nkind
(Id
) in N_Entity
);
1846 function Initialization_Statements
(Id
: E
) return N
is
1848 pragma Assert
(Ekind_In
(Id
, E_Constant
, E_Variable
));
1850 end Initialization_Statements
;
1852 function Inner_Instances
(Id
: E
) return L
is
1854 return Elist23
(Id
);
1855 end Inner_Instances
;
1857 function Interface_Name
(Id
: E
) return N
is
1862 function Is_Abstract_Subprogram
(Id
: E
) return B
is
1864 pragma Assert
(Is_Overloadable
(Id
));
1866 end Is_Abstract_Subprogram
;
1868 function Is_Abstract_Type
(Id
: E
) return B
is
1870 pragma Assert
(Is_Type
(Id
));
1871 return Flag146
(Id
);
1872 end Is_Abstract_Type
;
1874 function Is_Local_Anonymous_Access
(Id
: E
) return B
is
1876 pragma Assert
(Is_Access_Type
(Id
));
1877 return Flag194
(Id
);
1878 end Is_Local_Anonymous_Access
;
1880 function Is_Access_Constant
(Id
: E
) return B
is
1882 pragma Assert
(Is_Access_Type
(Id
));
1884 end Is_Access_Constant
;
1886 function Is_Ada_2005_Only
(Id
: E
) return B
is
1888 return Flag185
(Id
);
1889 end Is_Ada_2005_Only
;
1891 function Is_Ada_2012_Only
(Id
: E
) return B
is
1893 return Flag199
(Id
);
1894 end Is_Ada_2012_Only
;
1896 function Is_Aliased
(Id
: E
) return B
is
1898 pragma Assert
(Nkind
(Id
) in N_Entity
);
1902 function Is_Asynchronous
(Id
: E
) return B
is
1904 pragma Assert
(Ekind
(Id
) = E_Procedure
or else Is_Type
(Id
));
1906 end Is_Asynchronous
;
1908 function Is_Atomic
(Id
: E
) return B
is
1913 function Is_Bit_Packed_Array
(Id
: E
) return B
is
1915 return Flag122
(Implementation_Base_Type
(Id
));
1916 end Is_Bit_Packed_Array
;
1918 function Is_Called
(Id
: E
) return B
is
1920 pragma Assert
(Ekind_In
(Id
, E_Procedure
, E_Function
));
1921 return Flag102
(Id
);
1924 function Is_Character_Type
(Id
: E
) return B
is
1927 end Is_Character_Type
;
1929 function Is_Child_Unit
(Id
: E
) return B
is
1934 function Is_Class_Wide_Equivalent_Type
(Id
: E
) return B
is
1937 end Is_Class_Wide_Equivalent_Type
;
1939 function Is_Compilation_Unit
(Id
: E
) return B
is
1941 return Flag149
(Id
);
1942 end Is_Compilation_Unit
;
1944 function Is_Completely_Hidden
(Id
: E
) return B
is
1946 pragma Assert
(Ekind
(Id
) = E_Discriminant
);
1947 return Flag103
(Id
);
1948 end Is_Completely_Hidden
;
1950 function Is_Constr_Subt_For_U_Nominal
(Id
: E
) return B
is
1953 end Is_Constr_Subt_For_U_Nominal
;
1955 function Is_Constr_Subt_For_UN_Aliased
(Id
: E
) return B
is
1957 return Flag141
(Id
);
1958 end Is_Constr_Subt_For_UN_Aliased
;
1960 function Is_Constrained
(Id
: E
) return B
is
1962 pragma Assert
(Nkind
(Id
) in N_Entity
);
1966 function Is_Constructor
(Id
: E
) return B
is
1971 function Is_Controlled
(Id
: E
) return B
is
1973 return Flag42
(Base_Type
(Id
));
1976 function Is_Controlling_Formal
(Id
: E
) return B
is
1978 pragma Assert
(Is_Formal
(Id
));
1980 end Is_Controlling_Formal
;
1982 function Is_CPP_Class
(Id
: E
) return B
is
1987 function Is_Default_Init_Cond_Procedure
(Id
: E
) return B
is
1989 pragma Assert
(Ekind_In
(Id
, E_Function
, E_Procedure
));
1990 return Flag132
(Id
);
1991 end Is_Default_Init_Cond_Procedure
;
1993 function Is_Descendent_Of_Address
(Id
: E
) return B
is
1995 return Flag223
(Id
);
1996 end Is_Descendent_Of_Address
;
1998 function Is_Discrim_SO_Function
(Id
: E
) return B
is
2000 return Flag176
(Id
);
2001 end Is_Discrim_SO_Function
;
2003 function Is_Discriminant_Check_Function
(Id
: E
) return B
is
2005 return Flag264
(Id
);
2006 end Is_Discriminant_Check_Function
;
2008 function Is_Dispatch_Table_Entity
(Id
: E
) return B
is
2010 return Flag234
(Id
);
2011 end Is_Dispatch_Table_Entity
;
2013 function Is_Dispatching_Operation
(Id
: E
) return B
is
2015 pragma Assert
(Nkind
(Id
) in N_Entity
);
2017 end Is_Dispatching_Operation
;
2019 function Is_Eliminated
(Id
: E
) return B
is
2021 return Flag124
(Id
);
2024 function Is_Entry_Formal
(Id
: E
) return B
is
2027 end Is_Entry_Formal
;
2029 function Is_Exported
(Id
: E
) return B
is
2034 function Is_First_Subtype
(Id
: E
) return B
is
2037 end Is_First_Subtype
;
2039 function Is_For_Access_Subtype
(Id
: E
) return B
is
2041 pragma Assert
(Ekind_In
(Id
, E_Record_Subtype
, E_Private_Subtype
));
2042 return Flag118
(Id
);
2043 end Is_For_Access_Subtype
;
2045 function Is_Formal_Subprogram
(Id
: E
) return B
is
2047 return Flag111
(Id
);
2048 end Is_Formal_Subprogram
;
2050 function Is_Frozen
(Id
: E
) return B
is
2055 function Is_Generic_Actual_Subprogram
(Id
: E
) return B
is
2057 pragma Assert
(Ekind
(Id
) = E_Function
or else Ekind
(Id
) = E_Procedure
);
2058 return Flag274
(Id
);
2059 end Is_Generic_Actual_Subprogram
;
2061 function Is_Generic_Actual_Type
(Id
: E
) return B
is
2063 pragma Assert
(Is_Type
(Id
));
2065 end Is_Generic_Actual_Type
;
2067 function Is_Generic_Instance
(Id
: E
) return B
is
2069 return Flag130
(Id
);
2070 end Is_Generic_Instance
;
2072 function Is_Generic_Type
(Id
: E
) return B
is
2074 pragma Assert
(Nkind
(Id
) in N_Entity
);
2076 end Is_Generic_Type
;
2078 function Is_Hidden
(Id
: E
) return B
is
2083 function Is_Hidden_Non_Overridden_Subpgm
(Id
: E
) return B
is
2086 end Is_Hidden_Non_Overridden_Subpgm
;
2088 function Is_Hidden_Open_Scope
(Id
: E
) return B
is
2090 return Flag171
(Id
);
2091 end Is_Hidden_Open_Scope
;
2093 function Is_Immediately_Visible
(Id
: E
) return B
is
2095 pragma Assert
(Nkind
(Id
) in N_Entity
);
2097 end Is_Immediately_Visible
;
2099 function Is_Implementation_Defined
(Id
: E
) return B
is
2101 return Flag254
(Id
);
2102 end Is_Implementation_Defined
;
2104 function Is_Imported
(Id
: E
) return B
is
2109 function Is_Independent
(Id
: E
) return B
is
2111 pragma Assert
(Ekind
(Id
) = E_Component
);
2112 return Flag268
(Id
);
2115 function Is_Inlined
(Id
: E
) return B
is
2120 function Is_Inlined_Always
(Id
: E
) return B
is
2122 pragma Assert
(Ekind
(Id
) = E_Function
or else Ekind
(Id
) = E_Procedure
);
2124 end Is_Inlined_Always
;
2126 function Is_Interface
(Id
: E
) return B
is
2128 return Flag186
(Id
);
2131 function Is_Instantiated
(Id
: E
) return B
is
2133 return Flag126
(Id
);
2134 end Is_Instantiated
;
2136 function Is_Internal
(Id
: E
) return B
is
2138 pragma Assert
(Nkind
(Id
) in N_Entity
);
2142 function Is_Interrupt_Handler
(Id
: E
) return B
is
2144 pragma Assert
(Nkind
(Id
) in N_Entity
);
2146 end Is_Interrupt_Handler
;
2148 function Is_Intrinsic_Subprogram
(Id
: E
) return B
is
2151 end Is_Intrinsic_Subprogram
;
2153 function Is_Invariant_Procedure
(Id
: E
) return B
is
2155 pragma Assert
(Ekind_In
(Id
, E_Function
, E_Procedure
));
2156 return Flag257
(Id
);
2157 end Is_Invariant_Procedure
;
2159 function Is_Itype
(Id
: E
) return B
is
2164 function Is_Known_Non_Null
(Id
: E
) return B
is
2167 end Is_Known_Non_Null
;
2169 function Is_Known_Null
(Id
: E
) return B
is
2171 return Flag204
(Id
);
2174 function Is_Known_Valid
(Id
: E
) return B
is
2176 return Flag170
(Id
);
2179 function Is_Limited_Composite
(Id
: E
) return B
is
2181 return Flag106
(Id
);
2182 end Is_Limited_Composite
;
2184 function Is_Limited_Interface
(Id
: E
) return B
is
2186 return Flag197
(Id
);
2187 end Is_Limited_Interface
;
2189 function Is_Limited_Record
(Id
: E
) return B
is
2192 end Is_Limited_Record
;
2194 function Is_Machine_Code_Subprogram
(Id
: E
) return B
is
2196 pragma Assert
(Is_Subprogram
(Id
));
2197 return Flag137
(Id
);
2198 end Is_Machine_Code_Subprogram
;
2200 function Is_Non_Static_Subtype
(Id
: E
) return B
is
2202 pragma Assert
(Is_Type
(Id
));
2203 return Flag109
(Id
);
2204 end Is_Non_Static_Subtype
;
2206 function Is_Null_Init_Proc
(Id
: E
) return B
is
2208 pragma Assert
(Ekind
(Id
) = E_Procedure
);
2209 return Flag178
(Id
);
2210 end Is_Null_Init_Proc
;
2212 function Is_Obsolescent
(Id
: E
) return B
is
2214 return Flag153
(Id
);
2217 function Is_Only_Out_Parameter
(Id
: E
) return B
is
2219 pragma Assert
(Is_Formal
(Id
));
2220 return Flag226
(Id
);
2221 end Is_Only_Out_Parameter
;
2223 function Is_Package_Body_Entity
(Id
: E
) return B
is
2225 return Flag160
(Id
);
2226 end Is_Package_Body_Entity
;
2228 function Is_Packed
(Id
: E
) return B
is
2230 return Flag51
(Implementation_Base_Type
(Id
));
2233 function Is_Packed_Array_Impl_Type
(Id
: E
) return B
is
2235 return Flag138
(Id
);
2236 end Is_Packed_Array_Impl_Type
;
2238 function Is_Potentially_Use_Visible
(Id
: E
) return B
is
2240 pragma Assert
(Nkind
(Id
) in N_Entity
);
2242 end Is_Potentially_Use_Visible
;
2244 function Is_Predicate_Function
(Id
: E
) return B
is
2246 pragma Assert
(Ekind
(Id
) = E_Function
or else Ekind
(Id
) = E_Procedure
);
2247 return Flag255
(Id
);
2248 end Is_Predicate_Function
;
2250 function Is_Predicate_Function_M
(Id
: E
) return B
is
2252 pragma Assert
(Ekind
(Id
) = E_Function
or else Ekind
(Id
) = E_Procedure
);
2253 return Flag256
(Id
);
2254 end Is_Predicate_Function_M
;
2256 function Is_Preelaborated
(Id
: E
) return B
is
2259 end Is_Preelaborated
;
2261 function Is_Primitive
(Id
: E
) return B
is
2264 (Is_Overloadable
(Id
)
2265 or else Ekind_In
(Id
, E_Generic_Function
, E_Generic_Procedure
));
2266 return Flag218
(Id
);
2269 function Is_Primitive_Wrapper
(Id
: E
) return B
is
2271 pragma Assert
(Ekind_In
(Id
, E_Function
, E_Procedure
));
2272 return Flag195
(Id
);
2273 end Is_Primitive_Wrapper
;
2275 function Is_Private_Composite
(Id
: E
) return B
is
2277 pragma Assert
(Is_Type
(Id
));
2278 return Flag107
(Id
);
2279 end Is_Private_Composite
;
2281 function Is_Private_Descendant
(Id
: E
) return B
is
2284 end Is_Private_Descendant
;
2286 function Is_Private_Primitive
(Id
: E
) return B
is
2288 pragma Assert
(Ekind_In
(Id
, E_Function
, E_Procedure
));
2289 return Flag245
(Id
);
2290 end Is_Private_Primitive
;
2292 function Is_Processed_Transient
(Id
: E
) return B
is
2294 pragma Assert
(Ekind_In
(Id
, E_Constant
, E_Loop_Parameter
, E_Variable
));
2295 return Flag252
(Id
);
2296 end Is_Processed_Transient
;
2298 function Is_Public
(Id
: E
) return B
is
2300 pragma Assert
(Nkind
(Id
) in N_Entity
);
2304 function Is_Pure
(Id
: E
) return B
is
2309 function Is_Pure_Unit_Access_Type
(Id
: E
) return B
is
2311 pragma Assert
(Is_Access_Type
(Id
));
2312 return Flag189
(Id
);
2313 end Is_Pure_Unit_Access_Type
;
2315 function Is_RACW_Stub_Type
(Id
: E
) return B
is
2317 pragma Assert
(Is_Type
(Id
));
2318 return Flag244
(Id
);
2319 end Is_RACW_Stub_Type
;
2321 function Is_Raised
(Id
: E
) return B
is
2323 pragma Assert
(Ekind
(Id
) = E_Exception
);
2324 return Flag224
(Id
);
2327 function Is_Remote_Call_Interface
(Id
: E
) return B
is
2330 end Is_Remote_Call_Interface
;
2332 function Is_Remote_Types
(Id
: E
) return B
is
2335 end Is_Remote_Types
;
2337 function Is_Renaming_Of_Object
(Id
: E
) return B
is
2339 return Flag112
(Id
);
2340 end Is_Renaming_Of_Object
;
2342 function Is_Return_Object
(Id
: E
) return B
is
2344 return Flag209
(Id
);
2345 end Is_Return_Object
;
2347 function Is_Safe_To_Reevaluate
(Id
: E
) return B
is
2349 return Flag249
(Id
);
2350 end Is_Safe_To_Reevaluate
;
2352 function Is_Shared_Passive
(Id
: E
) return B
is
2355 end Is_Shared_Passive
;
2357 function Is_Statically_Allocated
(Id
: E
) return B
is
2360 end Is_Statically_Allocated
;
2362 function Is_Tag
(Id
: E
) return B
is
2364 pragma Assert
(Nkind
(Id
) in N_Entity
);
2368 function Is_Tagged_Type
(Id
: E
) return B
is
2373 function Is_Thunk
(Id
: E
) return B
is
2375 return Flag225
(Id
);
2378 function Is_Trivial_Subprogram
(Id
: E
) return B
is
2380 return Flag235
(Id
);
2381 end Is_Trivial_Subprogram
;
2383 function Is_True_Constant
(Id
: E
) return B
is
2385 return Flag163
(Id
);
2386 end Is_True_Constant
;
2388 function Is_Unchecked_Union
(Id
: E
) return B
is
2390 return Flag117
(Implementation_Base_Type
(Id
));
2391 end Is_Unchecked_Union
;
2393 function Is_Underlying_Record_View
(Id
: E
) return B
is
2395 return Flag246
(Id
);
2396 end Is_Underlying_Record_View
;
2398 function Is_Unsigned_Type
(Id
: E
) return B
is
2400 pragma Assert
(Is_Type
(Id
));
2401 return Flag144
(Id
);
2402 end Is_Unsigned_Type
;
2404 function Is_Valued_Procedure
(Id
: E
) return B
is
2406 pragma Assert
(Ekind
(Id
) = E_Procedure
);
2407 return Flag127
(Id
);
2408 end Is_Valued_Procedure
;
2410 function Is_Visible_Formal
(Id
: E
) return B
is
2412 return Flag206
(Id
);
2413 end Is_Visible_Formal
;
2415 function Is_Visible_Lib_Unit
(Id
: E
) return B
is
2417 return Flag116
(Id
);
2418 end Is_Visible_Lib_Unit
;
2420 function Is_Volatile
(Id
: E
) return B
is
2422 pragma Assert
(Nkind
(Id
) in N_Entity
);
2424 if Is_Type
(Id
) then
2425 return Flag16
(Base_Type
(Id
));
2431 function Itype_Printed
(Id
: E
) return B
is
2433 pragma Assert
(Is_Itype
(Id
));
2434 return Flag202
(Id
);
2437 function Kill_Elaboration_Checks
(Id
: E
) return B
is
2440 end Kill_Elaboration_Checks
;
2442 function Kill_Range_Checks
(Id
: E
) return B
is
2445 end Kill_Range_Checks
;
2447 function Known_To_Have_Preelab_Init
(Id
: E
) return B
is
2449 pragma Assert
(Is_Type
(Id
));
2450 return Flag207
(Id
);
2451 end Known_To_Have_Preelab_Init
;
2453 function Last_Aggregate_Assignment
(Id
: E
) return N
is
2455 pragma Assert
(Ekind_In
(Id
, E_Constant
, E_Variable
));
2457 end Last_Aggregate_Assignment
;
2459 function Last_Assignment
(Id
: E
) return N
is
2461 pragma Assert
(Is_Assignable
(Id
));
2463 end Last_Assignment
;
2465 function Last_Entity
(Id
: E
) return E
is
2470 function Limited_View
(Id
: E
) return E
is
2472 pragma Assert
(Ekind
(Id
) = E_Package
);
2476 function Linker_Section_Pragma
(Id
: E
) return N
is
2479 (Is_Type
(Id
) or else Is_Object
(Id
) or else Is_Subprogram
(Id
));
2481 end Linker_Section_Pragma
;
2483 function Lit_Indexes
(Id
: E
) return E
is
2485 pragma Assert
(Is_Enumeration_Type
(Id
));
2489 function Lit_Strings
(Id
: E
) return E
is
2491 pragma Assert
(Is_Enumeration_Type
(Id
));
2495 function Low_Bound_Tested
(Id
: E
) return B
is
2497 return Flag205
(Id
);
2498 end Low_Bound_Tested
;
2500 function Machine_Radix_10
(Id
: E
) return B
is
2502 pragma Assert
(Is_Decimal_Fixed_Point_Type
(Id
));
2504 end Machine_Radix_10
;
2506 function Master_Id
(Id
: E
) return E
is
2508 pragma Assert
(Is_Access_Type
(Id
));
2512 function Materialize_Entity
(Id
: E
) return B
is
2514 return Flag168
(Id
);
2515 end Materialize_Entity
;
2517 function May_Inherit_Delayed_Rep_Aspects
(Id
: E
) return B
is
2519 return Flag262
(Id
);
2520 end May_Inherit_Delayed_Rep_Aspects
;
2522 function Mechanism
(Id
: E
) return M
is
2524 pragma Assert
(Ekind
(Id
) = E_Function
or else Is_Formal
(Id
));
2525 return UI_To_Int
(Uint8
(Id
));
2528 function Modulus
(Id
: E
) return Uint
is
2530 pragma Assert
(Is_Modular_Integer_Type
(Id
));
2531 return Uint17
(Base_Type
(Id
));
2534 function Must_Be_On_Byte_Boundary
(Id
: E
) return B
is
2536 pragma Assert
(Is_Type
(Id
));
2537 return Flag183
(Id
);
2538 end Must_Be_On_Byte_Boundary
;
2540 function Must_Have_Preelab_Init
(Id
: E
) return B
is
2542 pragma Assert
(Is_Type
(Id
));
2543 return Flag208
(Id
);
2544 end Must_Have_Preelab_Init
;
2546 function Needs_Debug_Info
(Id
: E
) return B
is
2548 return Flag147
(Id
);
2549 end Needs_Debug_Info
;
2551 function Needs_No_Actuals
(Id
: E
) return B
is
2554 (Is_Overloadable
(Id
)
2555 or else Ekind_In
(Id
, E_Subprogram_Type
, E_Entry_Family
));
2557 end Needs_No_Actuals
;
2559 function Never_Set_In_Source
(Id
: E
) return B
is
2561 return Flag115
(Id
);
2562 end Never_Set_In_Source
;
2564 function Next_Inlined_Subprogram
(Id
: E
) return E
is
2567 end Next_Inlined_Subprogram
;
2569 function No_Dynamic_Predicate_On_Actual
(Id
: E
) return Boolean is
2571 pragma Assert
(Is_Discrete_Type
(Id
));
2572 return Flag276
(Id
);
2573 end No_Dynamic_Predicate_On_Actual
;
2575 function No_Pool_Assigned
(Id
: E
) return B
is
2577 pragma Assert
(Is_Access_Type
(Id
));
2578 return Flag131
(Root_Type
(Id
));
2579 end No_Pool_Assigned
;
2581 function No_Predicate_On_Actual
(Id
: E
) return Boolean is
2583 pragma Assert
(Is_Discrete_Type
(Id
));
2584 return Flag275
(Id
);
2585 end No_Predicate_On_Actual
;
2587 function No_Return
(Id
: E
) return B
is
2589 return Flag113
(Id
);
2592 function No_Strict_Aliasing
(Id
: E
) return B
is
2594 pragma Assert
(Is_Access_Type
(Id
));
2595 return Flag136
(Base_Type
(Id
));
2596 end No_Strict_Aliasing
;
2598 function Non_Binary_Modulus
(Id
: E
) return B
is
2600 pragma Assert
(Is_Type
(Id
));
2601 return Flag58
(Base_Type
(Id
));
2602 end Non_Binary_Modulus
;
2604 function Non_Limited_View
(Id
: E
) return E
is
2607 (Ekind
(Id
) in Incomplete_Kind
or else Ekind
(Id
) = E_Abstract_State
);
2609 end Non_Limited_View
;
2611 function Nonzero_Is_True
(Id
: E
) return B
is
2613 pragma Assert
(Root_Type
(Id
) = Standard_Boolean
);
2614 return Flag162
(Base_Type
(Id
));
2615 end Nonzero_Is_True
;
2617 function Normalized_First_Bit
(Id
: E
) return U
is
2619 pragma Assert
(Ekind_In
(Id
, E_Component
, E_Discriminant
));
2621 end Normalized_First_Bit
;
2623 function Normalized_Position
(Id
: E
) return U
is
2625 pragma Assert
(Ekind_In
(Id
, E_Component
, E_Discriminant
));
2627 end Normalized_Position
;
2629 function Normalized_Position_Max
(Id
: E
) return U
is
2631 pragma Assert
(Ekind_In
(Id
, E_Component
, E_Discriminant
));
2633 end Normalized_Position_Max
;
2635 function OK_To_Rename
(Id
: E
) return B
is
2637 pragma Assert
(Ekind
(Id
) = E_Variable
);
2638 return Flag247
(Id
);
2641 function OK_To_Reorder_Components
(Id
: E
) return B
is
2643 pragma Assert
(Is_Record_Type
(Id
));
2644 return Flag239
(Base_Type
(Id
));
2645 end OK_To_Reorder_Components
;
2647 function Optimize_Alignment_Space
(Id
: E
) return B
is
2650 (Is_Type
(Id
) or else Ekind_In
(Id
, E_Constant
, E_Variable
));
2651 return Flag241
(Id
);
2652 end Optimize_Alignment_Space
;
2654 function Optimize_Alignment_Time
(Id
: E
) return B
is
2657 (Is_Type
(Id
) or else Ekind_In
(Id
, E_Constant
, E_Variable
));
2658 return Flag242
(Id
);
2659 end Optimize_Alignment_Time
;
2661 function Original_Access_Type
(Id
: E
) return E
is
2663 pragma Assert
(Ekind
(Id
) = E_Access_Subprogram_Type
);
2665 end Original_Access_Type
;
2667 function Original_Array_Type
(Id
: E
) return E
is
2669 pragma Assert
(Is_Array_Type
(Id
) or else Is_Modular_Integer_Type
(Id
));
2671 end Original_Array_Type
;
2673 function Original_Record_Component
(Id
: E
) return E
is
2675 pragma Assert
(Ekind_In
(Id
, E_Void
, E_Component
, E_Discriminant
));
2677 end Original_Record_Component
;
2679 function Overlays_Constant
(Id
: E
) return B
is
2681 return Flag243
(Id
);
2682 end Overlays_Constant
;
2684 function Overridden_Operation
(Id
: E
) return E
is
2687 end Overridden_Operation
;
2689 function Package_Instantiation
(Id
: E
) return N
is
2691 pragma Assert
(Ekind_In
(Id
, E_Package
, E_Generic_Package
));
2693 end Package_Instantiation
;
2695 function Packed_Array_Impl_Type
(Id
: E
) return E
is
2697 pragma Assert
(Is_Array_Type
(Id
));
2699 end Packed_Array_Impl_Type
;
2701 function Parent_Subtype
(Id
: E
) return E
is
2703 pragma Assert
(Is_Record_Type
(Id
));
2704 return Node19
(Base_Type
(Id
));
2707 function Part_Of_Constituents
(Id
: E
) return L
is
2709 pragma Assert
(Ekind
(Id
) = E_Abstract_State
);
2711 end Part_Of_Constituents
;
2713 function Postcondition_Proc
(Id
: E
) return E
is
2715 pragma Assert
(Ekind
(Id
) = E_Procedure
);
2717 end Postcondition_Proc
;
2719 function PPC_Wrapper
(Id
: E
) return E
is
2721 pragma Assert
(Ekind_In
(Id
, E_Entry
, E_Entry_Family
));
2725 function Prival
(Id
: E
) return E
is
2727 pragma Assert
(Is_Protected_Component
(Id
));
2731 function Prival_Link
(Id
: E
) return E
is
2733 pragma Assert
(Ekind_In
(Id
, E_Constant
, E_Variable
));
2737 function Private_Dependents
(Id
: E
) return L
is
2739 pragma Assert
(Is_Incomplete_Or_Private_Type
(Id
));
2740 return Elist18
(Id
);
2741 end Private_Dependents
;
2743 function Private_View
(Id
: E
) return N
is
2745 pragma Assert
(Is_Private_Type
(Id
));
2749 function Protected_Body_Subprogram
(Id
: E
) return E
is
2751 pragma Assert
(Is_Subprogram
(Id
) or else Is_Entry
(Id
));
2753 end Protected_Body_Subprogram
;
2755 function Protected_Formal
(Id
: E
) return E
is
2757 pragma Assert
(Is_Formal
(Id
));
2759 end Protected_Formal
;
2761 function Protection_Object
(Id
: E
) return E
is
2764 (Ekind_In
(Id
, E_Entry
, E_Entry_Family
, E_Function
, E_Procedure
));
2766 end Protection_Object
;
2768 function Reachable
(Id
: E
) return B
is
2773 function Referenced
(Id
: E
) return B
is
2775 return Flag156
(Id
);
2778 function Referenced_As_LHS
(Id
: E
) return B
is
2781 end Referenced_As_LHS
;
2783 function Referenced_As_Out_Parameter
(Id
: E
) return B
is
2785 return Flag227
(Id
);
2786 end Referenced_As_Out_Parameter
;
2788 function Refinement_Constituents
(Id
: E
) return L
is
2790 pragma Assert
(Ekind
(Id
) = E_Abstract_State
);
2792 end Refinement_Constituents
;
2794 function Register_Exception_Call
(Id
: E
) return N
is
2796 pragma Assert
(Ekind
(Id
) = E_Exception
);
2798 end Register_Exception_Call
;
2800 function Related_Array_Object
(Id
: E
) return E
is
2802 pragma Assert
(Is_Array_Type
(Id
));
2804 end Related_Array_Object
;
2806 function Related_Expression
(Id
: E
) return N
is
2808 pragma Assert
(Ekind
(Id
) in Type_Kind
2809 or else Ekind_In
(Id
, E_Constant
, E_Variable
));
2811 end Related_Expression
;
2813 function Related_Instance
(Id
: E
) return E
is
2815 pragma Assert
(Ekind_In
(Id
, E_Package
, E_Package_Body
));
2817 end Related_Instance
;
2819 function Related_Type
(Id
: E
) return E
is
2821 pragma Assert
(Ekind_In
(Id
, E_Component
, E_Constant
, E_Variable
));
2825 function Relative_Deadline_Variable
(Id
: E
) return E
is
2827 pragma Assert
(Is_Task_Type
(Id
));
2828 return Node26
(Implementation_Base_Type
(Id
));
2829 end Relative_Deadline_Variable
;
2831 function Renamed_Entity
(Id
: E
) return N
is
2836 function Renamed_In_Spec
(Id
: E
) return B
is
2838 pragma Assert
(Ekind
(Id
) = E_Package
);
2839 return Flag231
(Id
);
2840 end Renamed_In_Spec
;
2842 function Renamed_Object
(Id
: E
) return N
is
2847 function Renaming_Map
(Id
: E
) return U
is
2852 function Requires_Overriding
(Id
: E
) return B
is
2854 pragma Assert
(Is_Overloadable
(Id
));
2855 return Flag213
(Id
);
2856 end Requires_Overriding
;
2858 function Return_Present
(Id
: E
) return B
is
2863 function Return_Applies_To
(Id
: E
) return N
is
2866 end Return_Applies_To
;
2868 function Returns_By_Ref
(Id
: E
) return B
is
2873 function Returns_Limited_View
(Id
: E
) return B
is
2875 pragma Assert
(Ekind
(Id
) = E_Function
);
2876 return Flag134
(Id
);
2877 end Returns_Limited_View
;
2879 function Reverse_Bit_Order
(Id
: E
) return B
is
2881 pragma Assert
(Is_Record_Type
(Id
));
2882 return Flag164
(Base_Type
(Id
));
2883 end Reverse_Bit_Order
;
2885 function Reverse_Storage_Order
(Id
: E
) return B
is
2887 pragma Assert
(Is_Record_Type
(Id
) or else Is_Array_Type
(Id
));
2888 return Flag93
(Base_Type
(Id
));
2889 end Reverse_Storage_Order
;
2891 function RM_Size
(Id
: E
) return U
is
2893 pragma Assert
(Is_Type
(Id
));
2897 function Scalar_Range
(Id
: E
) return N
is
2902 function Scale_Value
(Id
: E
) return U
is
2907 function Scope_Depth_Value
(Id
: E
) return U
is
2910 end Scope_Depth_Value
;
2912 function Sec_Stack_Needed_For_Return
(Id
: E
) return B
is
2914 return Flag167
(Id
);
2915 end Sec_Stack_Needed_For_Return
;
2917 function Shadow_Entities
(Id
: E
) return S
is
2919 pragma Assert
(Ekind_In
(Id
, E_Package
, E_Generic_Package
));
2921 end Shadow_Entities
;
2923 function Shared_Var_Procs_Instance
(Id
: E
) return E
is
2925 pragma Assert
(Ekind
(Id
) = E_Variable
);
2927 end Shared_Var_Procs_Instance
;
2929 function Size_Check_Code
(Id
: E
) return N
is
2931 pragma Assert
(Ekind_In
(Id
, E_Constant
, E_Variable
));
2933 end Size_Check_Code
;
2935 function Size_Depends_On_Discriminant
(Id
: E
) return B
is
2937 return Flag177
(Id
);
2938 end Size_Depends_On_Discriminant
;
2940 function Size_Known_At_Compile_Time
(Id
: E
) return B
is
2943 end Size_Known_At_Compile_Time
;
2945 function Small_Value
(Id
: E
) return R
is
2947 pragma Assert
(Is_Fixed_Point_Type
(Id
));
2948 return Ureal21
(Id
);
2951 function SPARK_Aux_Pragma
(Id
: E
) return N
is
2954 (Ekind_In
(Id
, E_Generic_Package
, -- package variants
2958 end SPARK_Aux_Pragma
;
2960 function SPARK_Aux_Pragma_Inherited
(Id
: E
) return B
is
2963 (Ekind_In
(Id
, E_Generic_Package
, -- package variants
2966 return Flag266
(Id
);
2967 end SPARK_Aux_Pragma_Inherited
;
2969 function SPARK_Pragma
(Id
: E
) return N
is
2972 (Ekind_In
(Id
, E_Function
, -- subprogram variants
2974 E_Generic_Procedure
,
2978 Ekind_In
(Id
, E_Generic_Package
, -- package variants
2984 function SPARK_Pragma_Inherited
(Id
: E
) return B
is
2987 (Ekind_In
(Id
, E_Function
, -- subprogram variants
2989 E_Generic_Procedure
,
2993 Ekind_In
(Id
, E_Generic_Package
, -- package variants
2996 return Flag265
(Id
);
2997 end SPARK_Pragma_Inherited
;
2999 function Spec_Entity
(Id
: E
) return E
is
3001 pragma Assert
(Ekind
(Id
) = E_Package_Body
or else Is_Formal
(Id
));
3005 function SSO_Set_High_By_Default
(Id
: E
) return B
is
3007 pragma Assert
(Is_Record_Type
(Id
) or else Is_Array_Type
(Id
));
3008 return Flag273
(Base_Type
(Id
));
3009 end SSO_Set_High_By_Default
;
3011 function SSO_Set_Low_By_Default
(Id
: E
) return B
is
3013 pragma Assert
(Is_Record_Type
(Id
) or else Is_Array_Type
(Id
));
3014 return Flag272
(Base_Type
(Id
));
3015 end SSO_Set_Low_By_Default
;
3017 function Static_Discrete_Predicate
(Id
: E
) return S
is
3019 pragma Assert
(Is_Discrete_Type
(Id
));
3021 end Static_Discrete_Predicate
;
3023 function Static_Real_Or_String_Predicate
(Id
: E
) return N
is
3025 pragma Assert
(Is_Real_Type
(Id
) or else Is_String_Type
(Id
));
3027 end Static_Real_Or_String_Predicate
;
3029 function Status_Flag_Or_Transient_Decl
(Id
: E
) return N
is
3031 pragma Assert
(Ekind_In
(Id
, E_Constant
, E_Variable
));
3033 end Status_Flag_Or_Transient_Decl
;
3035 function Storage_Size_Variable
(Id
: E
) return E
is
3037 pragma Assert
(Is_Access_Type
(Id
) or else Is_Task_Type
(Id
));
3038 return Node15
(Implementation_Base_Type
(Id
));
3039 end Storage_Size_Variable
;
3041 function Static_Elaboration_Desired
(Id
: E
) return B
is
3043 pragma Assert
(Ekind
(Id
) = E_Package
);
3045 end Static_Elaboration_Desired
;
3047 function Static_Initialization
(Id
: E
) return N
is
3050 (Ekind
(Id
) = E_Procedure
and then not Is_Dispatching_Operation
(Id
));
3052 end Static_Initialization
;
3054 function Stored_Constraint
(Id
: E
) return L
is
3057 (Is_Composite_Type
(Id
) and then not Is_Array_Type
(Id
));
3058 return Elist23
(Id
);
3059 end Stored_Constraint
;
3061 function Stores_Attribute_Old_Prefix
(Id
: E
) return B
is
3063 return Flag270
(Id
);
3064 end Stores_Attribute_Old_Prefix
;
3066 function Strict_Alignment
(Id
: E
) return B
is
3068 return Flag145
(Implementation_Base_Type
(Id
));
3069 end Strict_Alignment
;
3071 function String_Literal_Length
(Id
: E
) return U
is
3074 end String_Literal_Length
;
3076 function String_Literal_Low_Bound
(Id
: E
) return N
is
3079 end String_Literal_Low_Bound
;
3081 function Subprograms_For_Type
(Id
: E
) return E
is
3083 pragma Assert
(Is_Type
(Id
) or else Is_Subprogram
(Id
));
3085 end Subprograms_For_Type
;
3087 function Suppress_Elaboration_Warnings
(Id
: E
) return B
is
3089 return Flag148
(Id
);
3090 end Suppress_Elaboration_Warnings
;
3092 function Suppress_Initialization
(Id
: E
) return B
is
3094 pragma Assert
(Is_Type
(Id
));
3095 return Flag105
(Id
);
3096 end Suppress_Initialization
;
3098 function Suppress_Style_Checks
(Id
: E
) return B
is
3100 return Flag165
(Id
);
3101 end Suppress_Style_Checks
;
3103 function Suppress_Value_Tracking_On_Call
(Id
: E
) return B
is
3105 return Flag217
(Id
);
3106 end Suppress_Value_Tracking_On_Call
;
3108 function Task_Body_Procedure
(Id
: E
) return N
is
3110 pragma Assert
(Ekind
(Id
) in Task_Kind
);
3112 end Task_Body_Procedure
;
3114 function Thunk_Entity
(Id
: E
) return E
is
3116 pragma Assert
(Ekind_In
(Id
, E_Function
, E_Procedure
)
3117 and then Is_Thunk
(Id
));
3121 function Treat_As_Volatile
(Id
: E
) return B
is
3124 end Treat_As_Volatile
;
3126 function Underlying_Full_View
(Id
: E
) return E
is
3128 pragma Assert
(Ekind
(Id
) in Private_Kind
);
3130 end Underlying_Full_View
;
3132 function Underlying_Record_View
(Id
: E
) return E
is
3135 end Underlying_Record_View
;
3137 function Universal_Aliasing
(Id
: E
) return B
is
3139 pragma Assert
(Is_Type
(Id
));
3140 return Flag216
(Implementation_Base_Type
(Id
));
3141 end Universal_Aliasing
;
3143 function Unset_Reference
(Id
: E
) return N
is
3146 end Unset_Reference
;
3148 function Used_As_Generic_Actual
(Id
: E
) return B
is
3150 return Flag222
(Id
);
3151 end Used_As_Generic_Actual
;
3153 function Uses_Lock_Free
(Id
: E
) return B
is
3155 pragma Assert
(Is_Protected_Type
(Id
));
3156 return Flag188
(Id
);
3159 function Uses_Sec_Stack
(Id
: E
) return B
is
3164 function Warnings_Off
(Id
: E
) return B
is
3169 function Warnings_Off_Used
(Id
: E
) return B
is
3171 return Flag236
(Id
);
3172 end Warnings_Off_Used
;
3174 function Warnings_Off_Used_Unmodified
(Id
: E
) return B
is
3176 return Flag237
(Id
);
3177 end Warnings_Off_Used_Unmodified
;
3179 function Warnings_Off_Used_Unreferenced
(Id
: E
) return B
is
3181 return Flag238
(Id
);
3182 end Warnings_Off_Used_Unreferenced
;
3184 function Wrapped_Entity
(Id
: E
) return E
is
3186 pragma Assert
(Ekind_In
(Id
, E_Function
, E_Procedure
)
3187 and then Is_Primitive_Wrapper
(Id
));
3191 function Was_Hidden
(Id
: E
) return B
is
3193 return Flag196
(Id
);
3196 ------------------------------
3197 -- Classification Functions --
3198 ------------------------------
3200 function Is_Access_Type
(Id
: E
) return B
is
3202 return Ekind
(Id
) in Access_Kind
;
3205 function Is_Access_Protected_Subprogram_Type
(Id
: E
) return B
is
3207 return Ekind
(Id
) in Access_Protected_Kind
;
3208 end Is_Access_Protected_Subprogram_Type
;
3210 function Is_Access_Subprogram_Type
(Id
: E
) return B
is
3212 return Ekind
(Id
) in Access_Subprogram_Kind
;
3213 end Is_Access_Subprogram_Type
;
3215 function Is_Aggregate_Type
(Id
: E
) return B
is
3217 return Ekind
(Id
) in Aggregate_Kind
;
3218 end Is_Aggregate_Type
;
3220 function Is_Array_Type
(Id
: E
) return B
is
3222 return Ekind
(Id
) in Array_Kind
;
3225 function Is_Assignable
(Id
: E
) return B
is
3227 return Ekind
(Id
) in Assignable_Kind
;
3230 function Is_Class_Wide_Type
(Id
: E
) return B
is
3232 return Ekind
(Id
) in Class_Wide_Kind
;
3233 end Is_Class_Wide_Type
;
3235 function Is_Composite_Type
(Id
: E
) return B
is
3237 return Ekind
(Id
) in Composite_Kind
;
3238 end Is_Composite_Type
;
3240 function Is_Concurrent_Body
(Id
: E
) return B
is
3242 return Ekind
(Id
) in
3243 Concurrent_Body_Kind
;
3244 end Is_Concurrent_Body
;
3246 function Is_Concurrent_Record_Type
(Id
: E
) return B
is
3249 end Is_Concurrent_Record_Type
;
3251 function Is_Concurrent_Type
(Id
: E
) return B
is
3253 return Ekind
(Id
) in Concurrent_Kind
;
3254 end Is_Concurrent_Type
;
3256 function Is_Decimal_Fixed_Point_Type
(Id
: E
) return B
is
3258 return Ekind
(Id
) in
3259 Decimal_Fixed_Point_Kind
;
3260 end Is_Decimal_Fixed_Point_Type
;
3262 function Is_Digits_Type
(Id
: E
) return B
is
3264 return Ekind
(Id
) in Digits_Kind
;
3267 function Is_Discrete_Or_Fixed_Point_Type
(Id
: E
) return B
is
3269 return Ekind
(Id
) in Discrete_Or_Fixed_Point_Kind
;
3270 end Is_Discrete_Or_Fixed_Point_Type
;
3272 function Is_Discrete_Type
(Id
: E
) return B
is
3274 return Ekind
(Id
) in Discrete_Kind
;
3275 end Is_Discrete_Type
;
3277 function Is_Elementary_Type
(Id
: E
) return B
is
3279 return Ekind
(Id
) in Elementary_Kind
;
3280 end Is_Elementary_Type
;
3282 function Is_Entry
(Id
: E
) return B
is
3284 return Ekind
(Id
) in Entry_Kind
;
3287 function Is_Enumeration_Type
(Id
: E
) return B
is
3289 return Ekind
(Id
) in
3291 end Is_Enumeration_Type
;
3293 function Is_Fixed_Point_Type
(Id
: E
) return B
is
3295 return Ekind
(Id
) in
3297 end Is_Fixed_Point_Type
;
3299 function Is_Floating_Point_Type
(Id
: E
) return B
is
3301 return Ekind
(Id
) in Float_Kind
;
3302 end Is_Floating_Point_Type
;
3304 function Is_Formal
(Id
: E
) return B
is
3306 return Ekind
(Id
) in Formal_Kind
;
3309 function Is_Formal_Object
(Id
: E
) return B
is
3311 return Ekind
(Id
) in Formal_Object_Kind
;
3312 end Is_Formal_Object
;
3314 function Is_Generic_Subprogram
(Id
: E
) return B
is
3316 return Ekind
(Id
) in Generic_Subprogram_Kind
;
3317 end Is_Generic_Subprogram
;
3319 function Is_Generic_Unit
(Id
: E
) return B
is
3321 return Ekind
(Id
) in Generic_Unit_Kind
;
3322 end Is_Generic_Unit
;
3324 function Is_Incomplete_Or_Private_Type
(Id
: E
) return B
is
3326 return Ekind
(Id
) in
3327 Incomplete_Or_Private_Kind
;
3328 end Is_Incomplete_Or_Private_Type
;
3330 function Is_Incomplete_Type
(Id
: E
) return B
is
3332 return Ekind
(Id
) in
3334 end Is_Incomplete_Type
;
3336 function Is_Integer_Type
(Id
: E
) return B
is
3338 return Ekind
(Id
) in Integer_Kind
;
3339 end Is_Integer_Type
;
3341 function Is_Modular_Integer_Type
(Id
: E
) return B
is
3343 return Ekind
(Id
) in
3344 Modular_Integer_Kind
;
3345 end Is_Modular_Integer_Type
;
3347 function Is_Named_Number
(Id
: E
) return B
is
3349 return Ekind
(Id
) in Named_Kind
;
3350 end Is_Named_Number
;
3352 function Is_Numeric_Type
(Id
: E
) return B
is
3354 return Ekind
(Id
) in Numeric_Kind
;
3355 end Is_Numeric_Type
;
3357 function Is_Object
(Id
: E
) return B
is
3359 return Ekind
(Id
) in Object_Kind
;
3362 function Is_Ordinary_Fixed_Point_Type
(Id
: E
) return B
is
3364 return Ekind
(Id
) in
3365 Ordinary_Fixed_Point_Kind
;
3366 end Is_Ordinary_Fixed_Point_Type
;
3368 function Is_Overloadable
(Id
: E
) return B
is
3370 return Ekind
(Id
) in Overloadable_Kind
;
3371 end Is_Overloadable
;
3373 function Is_Private_Type
(Id
: E
) return B
is
3375 return Ekind
(Id
) in Private_Kind
;
3376 end Is_Private_Type
;
3378 function Is_Protected_Type
(Id
: E
) return B
is
3380 return Ekind
(Id
) in Protected_Kind
;
3381 end Is_Protected_Type
;
3383 function Is_Real_Type
(Id
: E
) return B
is
3385 return Ekind
(Id
) in Real_Kind
;
3388 function Is_Record_Type
(Id
: E
) return B
is
3390 return Ekind
(Id
) in Record_Kind
;
3393 function Is_Scalar_Type
(Id
: E
) return B
is
3395 return Ekind
(Id
) in Scalar_Kind
;
3398 function Is_Signed_Integer_Type
(Id
: E
) return B
is
3400 return Ekind
(Id
) in Signed_Integer_Kind
;
3401 end Is_Signed_Integer_Type
;
3403 function Is_Subprogram
(Id
: E
) return B
is
3405 return Ekind
(Id
) in Subprogram_Kind
;
3408 function Is_Task_Type
(Id
: E
) return B
is
3410 return Ekind
(Id
) in Task_Kind
;
3413 function Is_Type
(Id
: E
) return B
is
3415 return Ekind
(Id
) in Type_Kind
;
3418 ------------------------------
3419 -- Attribute Set Procedures --
3420 ------------------------------
3422 -- Note: in many of these set procedures an "obvious" assertion is missing.
3423 -- The reason for this is that in many cases, a field is set before the
3424 -- Ekind field is set, so that the field is set when Ekind = E_Void. It
3425 -- it is possible to add assertions that specifically include the E_Void
3426 -- possibility, but in some cases, we just omit the assertions.
3428 procedure Set_Abstract_States
(Id
: E
; V
: L
) is
3430 pragma Assert
(Ekind_In
(Id
, E_Generic_Package
, E_Package
));
3431 Set_Elist25
(Id
, V
);
3432 end Set_Abstract_States
;
3434 procedure Set_Accept_Address
(Id
: E
; V
: L
) is
3436 Set_Elist21
(Id
, V
);
3437 end Set_Accept_Address
;
3439 procedure Set_Access_Disp_Table
(Id
: E
; V
: L
) is
3441 pragma Assert
(Ekind
(Id
) = E_Record_Type
3442 and then Id
= Implementation_Base_Type
(Id
));
3443 pragma Assert
(V
= No_Elist
or else Is_Tagged_Type
(Id
));
3444 Set_Elist16
(Id
, V
);
3445 end Set_Access_Disp_Table
;
3447 procedure Set_Associated_Formal_Package
(Id
: E
; V
: E
) is
3450 end Set_Associated_Formal_Package
;
3452 procedure Set_Associated_Node_For_Itype
(Id
: E
; V
: E
) is
3455 end Set_Associated_Node_For_Itype
;
3457 procedure Set_Associated_Storage_Pool
(Id
: E
; V
: E
) is
3459 pragma Assert
(Is_Access_Type
(Id
) and then Is_Base_Type
(Id
));
3461 end Set_Associated_Storage_Pool
;
3463 procedure Set_Actual_Subtype
(Id
: E
; V
: E
) is
3466 (Ekind_In
(Id
, E_Constant
, E_Variable
, E_Generic_In_Out_Parameter
)
3467 or else Is_Formal
(Id
));
3469 end Set_Actual_Subtype
;
3471 procedure Set_Address_Taken
(Id
: E
; V
: B
:= True) is
3473 Set_Flag104
(Id
, V
);
3474 end Set_Address_Taken
;
3476 procedure Set_Alias
(Id
: E
; V
: E
) is
3479 (Is_Overloadable
(Id
) or else Ekind
(Id
) = E_Subprogram_Type
);
3483 procedure Set_Alignment
(Id
: E
; V
: U
) is
3485 pragma Assert
(Is_Type
(Id
)
3486 or else Is_Formal
(Id
)
3487 or else Ekind_In
(Id
, E_Loop_Parameter
,
3494 procedure Set_Barrier_Function
(Id
: E
; V
: N
) is
3496 pragma Assert
(Is_Entry
(Id
));
3498 end Set_Barrier_Function
;
3500 procedure Set_Block_Node
(Id
: E
; V
: N
) is
3502 pragma Assert
(Ekind
(Id
) = E_Block
);
3506 procedure Set_Body_Entity
(Id
: E
; V
: E
) is
3508 pragma Assert
(Ekind_In
(Id
, E_Package
, E_Generic_Package
));
3510 end Set_Body_Entity
;
3512 procedure Set_Body_Needed_For_SAL
(Id
: E
; V
: B
:= True) is
3515 (Ekind
(Id
) = E_Package
3516 or else Is_Subprogram
(Id
)
3517 or else Is_Generic_Unit
(Id
));
3519 end Set_Body_Needed_For_SAL
;
3521 procedure Set_Body_References
(Id
: E
; V
: L
) is
3523 pragma Assert
(Ekind
(Id
) = E_Abstract_State
);
3524 Set_Elist16
(Id
, V
);
3525 end Set_Body_References
;
3527 procedure Set_BIP_Initialization_Call
(Id
: E
; V
: N
) is
3529 pragma Assert
(Ekind_In
(Id
, E_Constant
, E_Variable
));
3531 end Set_BIP_Initialization_Call
;
3533 procedure Set_C_Pass_By_Copy
(Id
: E
; V
: B
:= True) is
3535 pragma Assert
(Is_Record_Type
(Id
) and then Is_Base_Type
(Id
));
3536 Set_Flag125
(Id
, V
);
3537 end Set_C_Pass_By_Copy
;
3539 procedure Set_Can_Never_Be_Null
(Id
: E
; V
: B
:= True) is
3542 end Set_Can_Never_Be_Null
;
3544 procedure Set_Can_Use_Internal_Rep
(Id
: E
; V
: B
:= True) is
3547 (Is_Access_Subprogram_Type
(Id
) and then Is_Base_Type
(Id
));
3548 Set_Flag229
(Id
, V
);
3549 end Set_Can_Use_Internal_Rep
;
3551 procedure Set_Checks_May_Be_Suppressed
(Id
: E
; V
: B
:= True) is
3554 end Set_Checks_May_Be_Suppressed
;
3556 procedure Set_Class_Wide_Type
(Id
: E
; V
: E
) is
3558 pragma Assert
(Is_Type
(Id
));
3560 end Set_Class_Wide_Type
;
3562 procedure Set_Cloned_Subtype
(Id
: E
; V
: E
) is
3564 pragma Assert
(Ekind_In
(Id
, E_Record_Subtype
, E_Class_Wide_Subtype
));
3566 end Set_Cloned_Subtype
;
3568 procedure Set_Component_Bit_Offset
(Id
: E
; V
: U
) is
3570 pragma Assert
(Ekind_In
(Id
, E_Component
, E_Discriminant
));
3572 end Set_Component_Bit_Offset
;
3574 procedure Set_Component_Clause
(Id
: E
; V
: N
) is
3576 pragma Assert
(Ekind_In
(Id
, E_Component
, E_Discriminant
));
3578 end Set_Component_Clause
;
3580 procedure Set_Component_Size
(Id
: E
; V
: U
) is
3582 pragma Assert
(Is_Array_Type
(Id
) and then Is_Base_Type
(Id
));
3584 end Set_Component_Size
;
3586 procedure Set_Component_Type
(Id
: E
; V
: E
) is
3588 pragma Assert
(Is_Array_Type
(Id
) and then Is_Base_Type
(Id
));
3590 end Set_Component_Type
;
3592 procedure Set_Contract
(Id
: E
; V
: N
) is
3595 (Ekind_In
(Id
, E_Entry
,
3603 or else Is_Generic_Subprogram
(Id
)
3604 or else Is_Subprogram
(Id
));
3608 procedure Set_Corresponding_Concurrent_Type
(Id
: E
; V
: E
) is
3611 (Ekind
(Id
) = E_Record_Type
and then Is_Concurrent_Type
(V
));
3613 end Set_Corresponding_Concurrent_Type
;
3615 procedure Set_Corresponding_Discriminant
(Id
: E
; V
: E
) is
3617 pragma Assert
(Ekind
(Id
) = E_Discriminant
);
3619 end Set_Corresponding_Discriminant
;
3621 procedure Set_Corresponding_Equality
(Id
: E
; V
: E
) is
3624 (Ekind
(Id
) = E_Function
3625 and then not Comes_From_Source
(Id
)
3626 and then Chars
(Id
) = Name_Op_Ne
);
3628 end Set_Corresponding_Equality
;
3630 procedure Set_Corresponding_Protected_Entry
(Id
: E
; V
: E
) is
3632 pragma Assert
(Ekind_In
(Id
, E_Void
, E_Subprogram_Body
));
3634 end Set_Corresponding_Protected_Entry
;
3636 procedure Set_Corresponding_Record_Type
(Id
: E
; V
: E
) is
3638 pragma Assert
(Is_Concurrent_Type
(Id
));
3640 end Set_Corresponding_Record_Type
;
3642 procedure Set_Corresponding_Remote_Type
(Id
: E
; V
: E
) is
3645 end Set_Corresponding_Remote_Type
;
3647 procedure Set_Current_Use_Clause
(Id
: E
; V
: E
) is
3649 pragma Assert
(Ekind
(Id
) = E_Package
or else Is_Type
(Id
));
3651 end Set_Current_Use_Clause
;
3653 procedure Set_Current_Value
(Id
: E
; V
: N
) is
3655 pragma Assert
(Ekind
(Id
) in Object_Kind
or else Ekind
(Id
) = E_Void
);
3657 end Set_Current_Value
;
3659 procedure Set_CR_Discriminant
(Id
: E
; V
: E
) is
3662 end Set_CR_Discriminant
;
3664 procedure Set_Debug_Info_Off
(Id
: E
; V
: B
:= True) is
3666 Set_Flag166
(Id
, V
);
3667 end Set_Debug_Info_Off
;
3669 procedure Set_Debug_Renaming_Link
(Id
: E
; V
: E
) is
3672 end Set_Debug_Renaming_Link
;
3674 procedure Set_Default_Aspect_Component_Value
(Id
: E
; V
: E
) is
3676 pragma Assert
(Is_Array_Type
(Id
) and then Is_Base_Type
(Id
));
3678 end Set_Default_Aspect_Component_Value
;
3680 procedure Set_Default_Aspect_Value
(Id
: E
; V
: E
) is
3682 pragma Assert
(Is_Scalar_Type
(Id
) and then Is_Base_Type
(Id
));
3684 end Set_Default_Aspect_Value
;
3686 procedure Set_Default_Expr_Function
(Id
: E
; V
: E
) is
3688 pragma Assert
(Is_Formal
(Id
));
3690 end Set_Default_Expr_Function
;
3692 procedure Set_Default_Expressions_Processed
(Id
: E
; V
: B
:= True) is
3694 Set_Flag108
(Id
, V
);
3695 end Set_Default_Expressions_Processed
;
3697 procedure Set_Default_Value
(Id
: E
; V
: N
) is
3699 pragma Assert
(Is_Formal
(Id
));
3701 end Set_Default_Value
;
3703 procedure Set_Delay_Cleanups
(Id
: E
; V
: B
:= True) is
3707 or else Is_Task_Type
(Id
)
3708 or else Ekind
(Id
) = E_Block
);
3709 Set_Flag114
(Id
, V
);
3710 end Set_Delay_Cleanups
;
3712 procedure Set_Delay_Subprogram_Descriptors
(Id
: E
; V
: B
:= True) is
3715 (Is_Subprogram
(Id
) or else Ekind_In
(Id
, E_Package
, E_Package_Body
));
3718 end Set_Delay_Subprogram_Descriptors
;
3720 procedure Set_Delta_Value
(Id
: E
; V
: R
) is
3722 pragma Assert
(Is_Fixed_Point_Type
(Id
));
3723 Set_Ureal18
(Id
, V
);
3724 end Set_Delta_Value
;
3726 procedure Set_Dependent_Instances
(Id
: E
; V
: L
) is
3728 pragma Assert
(Is_Generic_Instance
(Id
));
3730 end Set_Dependent_Instances
;
3732 procedure Set_Depends_On_Private
(Id
: E
; V
: B
:= True) is
3734 pragma Assert
(Nkind
(Id
) in N_Entity
);
3736 end Set_Depends_On_Private
;
3738 procedure Set_Derived_Type_Link
(Id
: E
; V
: E
) is
3740 pragma Assert
(Is_Type
(Id
) and then Is_Base_Type
(Id
));
3742 end Set_Derived_Type_Link
;
3744 procedure Set_Digits_Value
(Id
: E
; V
: U
) is
3747 (Is_Floating_Point_Type
(Id
)
3748 or else Is_Decimal_Fixed_Point_Type
(Id
));
3750 end Set_Digits_Value
;
3752 procedure Set_Directly_Designated_Type
(Id
: E
; V
: E
) is
3755 end Set_Directly_Designated_Type
;
3757 procedure Set_Discard_Names
(Id
: E
; V
: B
:= True) is
3760 end Set_Discard_Names
;
3762 procedure Set_Discriminal
(Id
: E
; V
: E
) is
3764 pragma Assert
(Ekind
(Id
) = E_Discriminant
);
3766 end Set_Discriminal
;
3768 procedure Set_Discriminal_Link
(Id
: E
; V
: E
) is
3771 end Set_Discriminal_Link
;
3773 procedure Set_Discriminant_Checking_Func
(Id
: E
; V
: E
) is
3775 pragma Assert
(Ekind
(Id
) = E_Component
);
3777 end Set_Discriminant_Checking_Func
;
3779 procedure Set_Discriminant_Constraint
(Id
: E
; V
: L
) is
3781 pragma Assert
(Nkind
(Id
) in N_Entity
);
3782 Set_Elist21
(Id
, V
);
3783 end Set_Discriminant_Constraint
;
3785 procedure Set_Discriminant_Default_Value
(Id
: E
; V
: N
) is
3788 end Set_Discriminant_Default_Value
;
3790 procedure Set_Discriminant_Number
(Id
: E
; V
: U
) is
3793 end Set_Discriminant_Number
;
3795 procedure Set_Dispatch_Table_Wrappers
(Id
: E
; V
: L
) is
3797 pragma Assert
(Ekind
(Id
) = E_Record_Type
3798 and then Id
= Implementation_Base_Type
(Id
));
3799 pragma Assert
(V
= No_Elist
or else Is_Tagged_Type
(Id
));
3800 Set_Elist26
(Id
, V
);
3801 end Set_Dispatch_Table_Wrappers
;
3803 procedure Set_DT_Entry_Count
(Id
: E
; V
: U
) is
3805 pragma Assert
(Ekind
(Id
) = E_Component
);
3807 end Set_DT_Entry_Count
;
3809 procedure Set_DT_Offset_To_Top_Func
(Id
: E
; V
: E
) is
3811 pragma Assert
(Ekind
(Id
) = E_Component
and then Is_Tag
(Id
));
3813 end Set_DT_Offset_To_Top_Func
;
3815 procedure Set_DT_Position
(Id
: E
; V
: U
) is
3817 pragma Assert
(Ekind_In
(Id
, E_Function
, E_Procedure
));
3819 end Set_DT_Position
;
3821 procedure Set_DTC_Entity
(Id
: E
; V
: E
) is
3823 pragma Assert
(Ekind_In
(Id
, E_Function
, E_Procedure
));
3827 procedure Set_Elaborate_Body_Desirable
(Id
: E
; V
: B
:= True) is
3829 pragma Assert
(Ekind
(Id
) = E_Package
);
3830 Set_Flag210
(Id
, V
);
3831 end Set_Elaborate_Body_Desirable
;
3833 procedure Set_Elaboration_Entity
(Id
: E
; V
: E
) is
3838 Ekind
(Id
) = E_Package
3840 Is_Generic_Unit
(Id
));
3842 end Set_Elaboration_Entity
;
3844 procedure Set_Elaboration_Entity_Required
(Id
: E
; V
: B
:= True) is
3849 Ekind
(Id
) = E_Package
3851 Is_Generic_Unit
(Id
));
3852 Set_Flag174
(Id
, V
);
3853 end Set_Elaboration_Entity_Required
;
3855 procedure Set_Encapsulating_State
(Id
: E
; V
: E
) is
3857 pragma Assert
(Ekind_In
(Id
, E_Abstract_State
, E_Variable
));
3859 end Set_Encapsulating_State
;
3861 procedure Set_Enclosing_Scope
(Id
: E
; V
: E
) is
3864 end Set_Enclosing_Scope
;
3866 procedure Set_Entry_Accepted
(Id
: E
; V
: B
:= True) is
3868 pragma Assert
(Is_Entry
(Id
));
3869 Set_Flag152
(Id
, V
);
3870 end Set_Entry_Accepted
;
3872 procedure Set_Entry_Bodies_Array
(Id
: E
; V
: E
) is
3875 end Set_Entry_Bodies_Array
;
3877 procedure Set_Entry_Cancel_Parameter
(Id
: E
; V
: E
) is
3880 end Set_Entry_Cancel_Parameter
;
3882 procedure Set_Entry_Component
(Id
: E
; V
: E
) is
3885 end Set_Entry_Component
;
3887 procedure Set_Entry_Formal
(Id
: E
; V
: E
) is
3890 end Set_Entry_Formal
;
3892 procedure Set_Entry_Index_Constant
(Id
: E
; V
: E
) is
3894 pragma Assert
(Ekind
(Id
) = E_Entry_Index_Parameter
);
3896 end Set_Entry_Index_Constant
;
3898 procedure Set_Entry_Parameters_Type
(Id
: E
; V
: E
) is
3901 end Set_Entry_Parameters_Type
;
3903 procedure Set_Enum_Pos_To_Rep
(Id
: E
; V
: E
) is
3905 pragma Assert
(Ekind
(Id
) = E_Enumeration_Type
);
3907 end Set_Enum_Pos_To_Rep
;
3909 procedure Set_Enumeration_Pos
(Id
: E
; V
: U
) is
3911 pragma Assert
(Ekind
(Id
) = E_Enumeration_Literal
);
3913 end Set_Enumeration_Pos
;
3915 procedure Set_Enumeration_Rep
(Id
: E
; V
: U
) is
3917 pragma Assert
(Ekind
(Id
) = E_Enumeration_Literal
);
3919 end Set_Enumeration_Rep
;
3921 procedure Set_Enumeration_Rep_Expr
(Id
: E
; V
: N
) is
3923 pragma Assert
(Ekind
(Id
) = E_Enumeration_Literal
);
3925 end Set_Enumeration_Rep_Expr
;
3927 procedure Set_Equivalent_Type
(Id
: E
; V
: E
) is
3930 (Ekind_In
(Id
, E_Class_Wide_Type
,
3931 E_Class_Wide_Subtype
,
3932 E_Access_Protected_Subprogram_Type
,
3933 E_Anonymous_Access_Protected_Subprogram_Type
,
3934 E_Access_Subprogram_Type
,
3937 end Set_Equivalent_Type
;
3939 procedure Set_Esize
(Id
: E
; V
: U
) is
3944 procedure Set_Extra_Accessibility
(Id
: E
; V
: E
) is
3947 (Is_Formal
(Id
) or else Ekind_In
(Id
, E_Variable
, E_Constant
));
3949 end Set_Extra_Accessibility
;
3951 procedure Set_Extra_Accessibility_Of_Result
(Id
: E
; V
: E
) is
3953 pragma Assert
(Ekind_In
(Id
, E_Function
, E_Operator
, E_Subprogram_Type
));
3955 end Set_Extra_Accessibility_Of_Result
;
3957 procedure Set_Extra_Constrained
(Id
: E
; V
: E
) is
3959 pragma Assert
(Is_Formal
(Id
) or else Ekind
(Id
) = E_Variable
);
3961 end Set_Extra_Constrained
;
3963 procedure Set_Extra_Formal
(Id
: E
; V
: E
) is
3966 end Set_Extra_Formal
;
3968 procedure Set_Extra_Formals
(Id
: E
; V
: E
) is
3971 (Is_Overloadable
(Id
)
3972 or else Ekind_In
(Id
, E_Entry_Family
,
3974 E_Subprogram_Type
));
3976 end Set_Extra_Formals
;
3978 procedure Set_Finalization_Master
(Id
: E
; V
: E
) is
3980 pragma Assert
(Is_Access_Type
(Id
) and then Is_Base_Type
(Id
));
3982 end Set_Finalization_Master
;
3984 procedure Set_Finalize_Storage_Only
(Id
: E
; V
: B
:= True) is
3986 pragma Assert
(Is_Type
(Id
) and then Is_Base_Type
(Id
));
3987 Set_Flag158
(Id
, V
);
3988 end Set_Finalize_Storage_Only
;
3990 procedure Set_Finalizer
(Id
: E
; V
: E
) is
3992 pragma Assert
(Ekind_In
(Id
, E_Package
, E_Package_Body
));
3996 procedure Set_First_Entity
(Id
: E
; V
: E
) is
3999 end Set_First_Entity
;
4001 procedure Set_First_Exit_Statement
(Id
: E
; V
: N
) is
4003 pragma Assert
(Ekind
(Id
) = E_Loop
);
4005 end Set_First_Exit_Statement
;
4007 procedure Set_First_Index
(Id
: E
; V
: N
) is
4009 pragma Assert
(Is_Array_Type
(Id
) or else Is_String_Type
(Id
));
4011 end Set_First_Index
;
4013 procedure Set_First_Literal
(Id
: E
; V
: E
) is
4015 pragma Assert
(Is_Enumeration_Type
(Id
));
4017 end Set_First_Literal
;
4019 procedure Set_First_Private_Entity
(Id
: E
; V
: E
) is
4021 pragma Assert
(Ekind_In
(Id
, E_Package
, E_Generic_Package
)
4022 or else Ekind
(Id
) in Concurrent_Kind
);
4024 end Set_First_Private_Entity
;
4026 procedure Set_First_Rep_Item
(Id
: E
; V
: N
) is
4029 end Set_First_Rep_Item
;
4031 procedure Set_Float_Rep
(Id
: E
; V
: F
) is
4032 pragma Assert
(Ekind
(Id
) = E_Floating_Point_Type
);
4034 Set_Uint10
(Id
, UI_From_Int
(F
'Pos (V
)));
4037 procedure Set_Freeze_Node
(Id
: E
; V
: N
) is
4040 end Set_Freeze_Node
;
4042 procedure Set_From_Limited_With
(Id
: E
; V
: B
:= True) is
4045 (Is_Type
(Id
) or else Ekind_In
(Id
, E_Abstract_State
, E_Package
));
4046 Set_Flag159
(Id
, V
);
4047 end Set_From_Limited_With
;
4049 procedure Set_Full_View
(Id
: E
; V
: E
) is
4051 pragma Assert
(Is_Type
(Id
) or else Ekind
(Id
) = E_Constant
);
4055 procedure Set_Generic_Homonym
(Id
: E
; V
: E
) is
4058 end Set_Generic_Homonym
;
4060 procedure Set_Generic_Renamings
(Id
: E
; V
: L
) is
4062 Set_Elist23
(Id
, V
);
4063 end Set_Generic_Renamings
;
4065 procedure Set_Handler_Records
(Id
: E
; V
: S
) is
4068 end Set_Handler_Records
;
4070 procedure Set_Has_Aliased_Components
(Id
: E
; V
: B
:= True) is
4072 pragma Assert
(Id
= Base_Type
(Id
));
4073 Set_Flag135
(Id
, V
);
4074 end Set_Has_Aliased_Components
;
4076 procedure Set_Has_Alignment_Clause
(Id
: E
; V
: B
:= True) is
4079 end Set_Has_Alignment_Clause
;
4081 procedure Set_Has_All_Calls_Remote
(Id
: E
; V
: B
:= True) is
4084 end Set_Has_All_Calls_Remote
;
4086 procedure Set_Has_Anonymous_Master
(Id
: E
; V
: B
:= True) is
4089 (Ekind_In
(Id
, E_Function
, E_Package
, E_Package_Body
, E_Procedure
));
4090 Set_Flag253
(Id
, V
);
4091 end Set_Has_Anonymous_Master
;
4093 procedure Set_Has_Atomic_Components
(Id
: E
; V
: B
:= True) is
4095 pragma Assert
(not Is_Type
(Id
) or else Is_Base_Type
(Id
));
4097 end Set_Has_Atomic_Components
;
4099 procedure Set_Has_Biased_Representation
(Id
: E
; V
: B
:= True) is
4102 ((V
= False) or else (Is_Discrete_Type
(Id
) or else Is_Object
(Id
)));
4103 Set_Flag139
(Id
, V
);
4104 end Set_Has_Biased_Representation
;
4106 procedure Set_Has_Completion
(Id
: E
; V
: B
:= True) is
4109 end Set_Has_Completion
;
4111 procedure Set_Has_Completion_In_Body
(Id
: E
; V
: B
:= True) is
4113 pragma Assert
(Is_Type
(Id
));
4115 end Set_Has_Completion_In_Body
;
4117 procedure Set_Has_Complex_Representation
(Id
: E
; V
: B
:= True) is
4119 pragma Assert
(Ekind
(Id
) = E_Record_Type
);
4120 Set_Flag140
(Id
, V
);
4121 end Set_Has_Complex_Representation
;
4123 procedure Set_Has_Component_Size_Clause
(Id
: E
; V
: B
:= True) is
4125 pragma Assert
(Ekind
(Id
) = E_Array_Type
);
4127 end Set_Has_Component_Size_Clause
;
4129 procedure Set_Has_Constrained_Partial_View
(Id
: E
; V
: B
:= True) is
4131 pragma Assert
(Is_Type
(Id
));
4132 Set_Flag187
(Id
, V
);
4133 end Set_Has_Constrained_Partial_View
;
4135 procedure Set_Has_Contiguous_Rep
(Id
: E
; V
: B
:= True) is
4137 Set_Flag181
(Id
, V
);
4138 end Set_Has_Contiguous_Rep
;
4140 procedure Set_Has_Controlled_Component
(Id
: E
; V
: B
:= True) is
4142 pragma Assert
(Id
= Base_Type
(Id
));
4144 end Set_Has_Controlled_Component
;
4146 procedure Set_Has_Controlling_Result
(Id
: E
; V
: B
:= True) is
4149 end Set_Has_Controlling_Result
;
4151 procedure Set_Has_Convention_Pragma
(Id
: E
; V
: B
:= True) is
4153 Set_Flag119
(Id
, V
);
4154 end Set_Has_Convention_Pragma
;
4156 procedure Set_Has_Default_Aspect
(Id
: E
; V
: B
:= True) is
4159 ((Is_Scalar_Type
(Id
) or else Is_Array_Type
(Id
))
4160 and then Is_Base_Type
(Id
));
4162 end Set_Has_Default_Aspect
;
4164 procedure Set_Has_Default_Init_Cond
(Id
: E
; V
: B
:= True) is
4166 pragma Assert
(Is_Type
(Id
));
4168 end Set_Has_Default_Init_Cond
;
4170 procedure Set_Has_Delayed_Aspects
(Id
: E
; V
: B
:= True) is
4172 pragma Assert
(Nkind
(Id
) in N_Entity
);
4173 Set_Flag200
(Id
, V
);
4174 end Set_Has_Delayed_Aspects
;
4176 procedure Set_Has_Delayed_Freeze
(Id
: E
; V
: B
:= True) is
4178 pragma Assert
(Nkind
(Id
) in N_Entity
);
4180 end Set_Has_Delayed_Freeze
;
4182 procedure Set_Has_Delayed_Rep_Aspects
(Id
: E
; V
: B
:= True) is
4184 pragma Assert
(Nkind
(Id
) in N_Entity
);
4185 Set_Flag261
(Id
, V
);
4186 end Set_Has_Delayed_Rep_Aspects
;
4188 procedure Set_Has_Discriminants
(Id
: E
; V
: B
:= True) is
4190 pragma Assert
(Nkind
(Id
) in N_Entity
);
4192 end Set_Has_Discriminants
;
4194 procedure Set_Has_Dispatch_Table
(Id
: E
; V
: B
:= True) is
4196 pragma Assert
(Ekind
(Id
) = E_Record_Type
4197 and then Is_Tagged_Type
(Id
));
4198 Set_Flag220
(Id
, V
);
4199 end Set_Has_Dispatch_Table
;
4201 procedure Set_Has_Dynamic_Predicate_Aspect
(Id
: E
; V
: B
:= True) is
4203 pragma Assert
(Is_Type
(Id
));
4204 Set_Flag258
(Id
, V
);
4205 end Set_Has_Dynamic_Predicate_Aspect
;
4207 procedure Set_Has_Enumeration_Rep_Clause
(Id
: E
; V
: B
:= True) is
4209 pragma Assert
(Is_Enumeration_Type
(Id
));
4211 end Set_Has_Enumeration_Rep_Clause
;
4213 procedure Set_Has_Exit
(Id
: E
; V
: B
:= True) is
4218 procedure Set_Has_Forward_Instantiation
(Id
: E
; V
: B
:= True) is
4220 Set_Flag175
(Id
, V
);
4221 end Set_Has_Forward_Instantiation
;
4223 procedure Set_Has_Fully_Qualified_Name
(Id
: E
; V
: B
:= True) is
4225 Set_Flag173
(Id
, V
);
4226 end Set_Has_Fully_Qualified_Name
;
4228 procedure Set_Has_Gigi_Rep_Item
(Id
: E
; V
: B
:= True) is
4231 end Set_Has_Gigi_Rep_Item
;
4233 procedure Set_Has_Homonym
(Id
: E
; V
: B
:= True) is
4236 end Set_Has_Homonym
;
4238 procedure Set_Has_Implicit_Dereference
(Id
: E
; V
: B
:= True) is
4240 Set_Flag251
(Id
, V
);
4241 end Set_Has_Implicit_Dereference
;
4243 procedure Set_Has_Independent_Components
(Id
: E
; V
: B
:= True) is
4245 pragma Assert
((Is_Array_Type
(Id
) or else Is_Record_Type
(Id
))
4246 and then Is_Base_Type
(Id
));
4248 end Set_Has_Independent_Components
;
4250 procedure Set_Has_Inheritable_Invariants
(Id
: E
; V
: B
:= True) is
4252 pragma Assert
(Is_Type
(Id
));
4253 Set_Flag248
(Id
, V
);
4254 end Set_Has_Inheritable_Invariants
;
4256 procedure Set_Has_Inherited_Default_Init_Cond
(Id
: E
; V
: B
:= True) is
4258 pragma Assert
(Is_Type
(Id
));
4259 Set_Flag133
(Id
, V
);
4260 end Set_Has_Inherited_Default_Init_Cond
;
4262 procedure Set_Has_Initial_Value
(Id
: E
; V
: B
:= True) is
4264 pragma Assert
(Ekind_In
(Id
, E_Variable
, E_Out_Parameter
));
4265 Set_Flag219
(Id
, V
);
4266 end Set_Has_Initial_Value
;
4268 procedure Set_Has_Invariants
(Id
: E
; V
: B
:= True) is
4270 pragma Assert
(Is_Type
(Id
));
4271 Set_Flag232
(Id
, V
);
4272 end Set_Has_Invariants
;
4274 procedure Set_Has_Loop_Entry_Attributes
(Id
: E
; V
: B
:= True) is
4276 pragma Assert
(Ekind
(Id
) = E_Loop
);
4277 Set_Flag260
(Id
, V
);
4278 end Set_Has_Loop_Entry_Attributes
;
4280 procedure Set_Has_Machine_Radix_Clause
(Id
: E
; V
: B
:= True) is
4282 pragma Assert
(Is_Decimal_Fixed_Point_Type
(Id
));
4284 end Set_Has_Machine_Radix_Clause
;
4286 procedure Set_Has_Master_Entity
(Id
: E
; V
: B
:= True) is
4289 end Set_Has_Master_Entity
;
4291 procedure Set_Has_Missing_Return
(Id
: E
; V
: B
:= True) is
4293 pragma Assert
(Ekind_In
(Id
, E_Function
, E_Generic_Function
));
4294 Set_Flag142
(Id
, V
);
4295 end Set_Has_Missing_Return
;
4297 procedure Set_Has_Nested_Block_With_Handler
(Id
: E
; V
: B
:= True) is
4299 Set_Flag101
(Id
, V
);
4300 end Set_Has_Nested_Block_With_Handler
;
4302 procedure Set_Has_Up_Level_Access
(Id
: E
; V
: B
:= True) is
4304 pragma Assert
(Ekind_In
(Id
, E_Variable
, E_Constant
, E_Loop_Parameter
));
4305 Set_Flag215
(Id
, V
);
4306 end Set_Has_Up_Level_Access
;
4308 procedure Set_Has_Non_Standard_Rep
(Id
: E
; V
: B
:= True) is
4310 pragma Assert
(Id
= Base_Type
(Id
));
4312 end Set_Has_Non_Standard_Rep
;
4314 procedure Set_Has_Object_Size_Clause
(Id
: E
; V
: B
:= True) is
4316 pragma Assert
(Is_Type
(Id
));
4317 Set_Flag172
(Id
, V
);
4318 end Set_Has_Object_Size_Clause
;
4320 procedure Set_Has_Out_Or_In_Out_Parameter
(Id
: E
; V
: B
:= True) is
4322 pragma Assert
(Ekind_In
(Id
, E_Function
, E_Generic_Function
));
4323 Set_Flag110
(Id
, V
);
4324 end Set_Has_Out_Or_In_Out_Parameter
;
4326 procedure Set_Has_Per_Object_Constraint
(Id
: E
; V
: B
:= True) is
4328 Set_Flag154
(Id
, V
);
4329 end Set_Has_Per_Object_Constraint
;
4331 procedure Set_Has_Postconditions
(Id
: E
; V
: B
:= True) is
4333 pragma Assert
(Is_Subprogram
(Id
));
4334 Set_Flag240
(Id
, V
);
4335 end Set_Has_Postconditions
;
4337 procedure Set_Has_Pragma_Controlled
(Id
: E
; V
: B
:= True) is
4339 pragma Assert
(Is_Access_Type
(Id
));
4340 Set_Flag27
(Base_Type
(Id
), V
);
4341 end Set_Has_Pragma_Controlled
;
4343 procedure Set_Has_Pragma_Elaborate_Body
(Id
: E
; V
: B
:= True) is
4345 Set_Flag150
(Id
, V
);
4346 end Set_Has_Pragma_Elaborate_Body
;
4348 procedure Set_Has_Pragma_Inline
(Id
: E
; V
: B
:= True) is
4350 Set_Flag157
(Id
, V
);
4351 end Set_Has_Pragma_Inline
;
4353 procedure Set_Has_Pragma_Inline_Always
(Id
: E
; V
: B
:= True) is
4355 Set_Flag230
(Id
, V
);
4356 end Set_Has_Pragma_Inline_Always
;
4358 procedure Set_Has_Pragma_No_Inline
(Id
: E
; V
: B
:= True) is
4360 Set_Flag201
(Id
, V
);
4361 end Set_Has_Pragma_No_Inline
;
4363 procedure Set_Has_Pragma_Ordered
(Id
: E
; V
: B
:= True) is
4365 pragma Assert
(Is_Enumeration_Type
(Id
));
4366 pragma Assert
(Id
= Base_Type
(Id
));
4367 Set_Flag198
(Id
, V
);
4368 end Set_Has_Pragma_Ordered
;
4370 procedure Set_Has_Pragma_Pack
(Id
: E
; V
: B
:= True) is
4372 pragma Assert
(Is_Array_Type
(Id
) or else Is_Record_Type
(Id
));
4373 pragma Assert
(Id
= Base_Type
(Id
));
4374 Set_Flag121
(Id
, V
);
4375 end Set_Has_Pragma_Pack
;
4377 procedure Set_Has_Pragma_Preelab_Init
(Id
: E
; V
: B
:= True) is
4379 Set_Flag221
(Id
, V
);
4380 end Set_Has_Pragma_Preelab_Init
;
4382 procedure Set_Has_Pragma_Pure
(Id
: E
; V
: B
:= True) is
4384 Set_Flag203
(Id
, V
);
4385 end Set_Has_Pragma_Pure
;
4387 procedure Set_Has_Pragma_Pure_Function
(Id
: E
; V
: B
:= True) is
4389 Set_Flag179
(Id
, V
);
4390 end Set_Has_Pragma_Pure_Function
;
4392 procedure Set_Has_Pragma_Thread_Local_Storage
(Id
: E
; V
: B
:= True) is
4394 Set_Flag169
(Id
, V
);
4395 end Set_Has_Pragma_Thread_Local_Storage
;
4397 procedure Set_Has_Pragma_Unmodified
(Id
: E
; V
: B
:= True) is
4399 Set_Flag233
(Id
, V
);
4400 end Set_Has_Pragma_Unmodified
;
4402 procedure Set_Has_Pragma_Unreferenced
(Id
: E
; V
: B
:= True) is
4404 Set_Flag180
(Id
, V
);
4405 end Set_Has_Pragma_Unreferenced
;
4407 procedure Set_Has_Pragma_Unreferenced_Objects
(Id
: E
; V
: B
:= True) is
4409 pragma Assert
(Is_Type
(Id
));
4410 Set_Flag212
(Id
, V
);
4411 end Set_Has_Pragma_Unreferenced_Objects
;
4413 procedure Set_Has_Predicates
(Id
: E
; V
: B
:= True) is
4415 pragma Assert
(Is_Type
(Id
) or else Ekind
(Id
) = E_Void
);
4416 Set_Flag250
(Id
, V
);
4417 end Set_Has_Predicates
;
4419 procedure Set_Has_Primitive_Operations
(Id
: E
; V
: B
:= True) is
4421 pragma Assert
(Id
= Base_Type
(Id
));
4422 Set_Flag120
(Id
, V
);
4423 end Set_Has_Primitive_Operations
;
4425 procedure Set_Has_Private_Ancestor
(Id
: E
; V
: B
:= True) is
4427 pragma Assert
(Is_Type
(Id
));
4428 Set_Flag151
(Id
, V
);
4429 end Set_Has_Private_Ancestor
;
4431 procedure Set_Has_Private_Declaration
(Id
: E
; V
: B
:= True) is
4433 Set_Flag155
(Id
, V
);
4434 end Set_Has_Private_Declaration
;
4436 procedure Set_Has_Protected
(Id
: E
; V
: B
:= True) is
4438 Set_Flag271
(Id
, V
);
4439 end Set_Has_Protected
;
4441 procedure Set_Has_Qualified_Name
(Id
: E
; V
: B
:= True) is
4443 Set_Flag161
(Id
, V
);
4444 end Set_Has_Qualified_Name
;
4446 procedure Set_Has_RACW
(Id
: E
; V
: B
:= True) is
4448 pragma Assert
(Ekind
(Id
) = E_Package
);
4449 Set_Flag214
(Id
, V
);
4452 procedure Set_Has_Record_Rep_Clause
(Id
: E
; V
: B
:= True) is
4454 pragma Assert
(Id
= Base_Type
(Id
));
4456 end Set_Has_Record_Rep_Clause
;
4458 procedure Set_Has_Recursive_Call
(Id
: E
; V
: B
:= True) is
4460 pragma Assert
(Is_Subprogram
(Id
));
4461 Set_Flag143
(Id
, V
);
4462 end Set_Has_Recursive_Call
;
4464 procedure Set_Has_Shift_Operator
(Id
: E
; V
: B
:= True) is
4466 pragma Assert
(Is_Integer_Type
(Id
) and then Is_Base_Type
(Id
));
4467 Set_Flag267
(Id
, V
);
4468 end Set_Has_Shift_Operator
;
4470 procedure Set_Has_Size_Clause
(Id
: E
; V
: B
:= True) is
4473 end Set_Has_Size_Clause
;
4475 procedure Set_Has_Small_Clause
(Id
: E
; V
: B
:= True) is
4478 end Set_Has_Small_Clause
;
4480 procedure Set_Has_Specified_Layout
(Id
: E
; V
: B
:= True) is
4482 pragma Assert
(Id
= Base_Type
(Id
));
4483 Set_Flag100
(Id
, V
);
4484 end Set_Has_Specified_Layout
;
4486 procedure Set_Has_Specified_Stream_Input
(Id
: E
; V
: B
:= True) is
4488 pragma Assert
(Is_Type
(Id
));
4489 Set_Flag190
(Id
, V
);
4490 end Set_Has_Specified_Stream_Input
;
4492 procedure Set_Has_Specified_Stream_Output
(Id
: E
; V
: B
:= True) is
4494 pragma Assert
(Is_Type
(Id
));
4495 Set_Flag191
(Id
, V
);
4496 end Set_Has_Specified_Stream_Output
;
4498 procedure Set_Has_Specified_Stream_Read
(Id
: E
; V
: B
:= True) is
4500 pragma Assert
(Is_Type
(Id
));
4501 Set_Flag192
(Id
, V
);
4502 end Set_Has_Specified_Stream_Read
;
4504 procedure Set_Has_Specified_Stream_Write
(Id
: E
; V
: B
:= True) is
4506 pragma Assert
(Is_Type
(Id
));
4507 Set_Flag193
(Id
, V
);
4508 end Set_Has_Specified_Stream_Write
;
4510 procedure Set_Has_Static_Discriminants
(Id
: E
; V
: B
:= True) is
4512 Set_Flag211
(Id
, V
);
4513 end Set_Has_Static_Discriminants
;
4515 procedure Set_Has_Static_Predicate
(Id
: E
; V
: B
:= True) is
4517 pragma Assert
(Is_Type
(Id
));
4518 Set_Flag269
(Id
, V
);
4519 end Set_Has_Static_Predicate
;
4521 procedure Set_Has_Static_Predicate_Aspect
(Id
: E
; V
: B
:= True) is
4523 pragma Assert
(Is_Type
(Id
));
4524 Set_Flag259
(Id
, V
);
4525 end Set_Has_Static_Predicate_Aspect
;
4527 procedure Set_Has_Storage_Size_Clause
(Id
: E
; V
: B
:= True) is
4529 pragma Assert
(Is_Access_Type
(Id
) or else Is_Task_Type
(Id
));
4530 pragma Assert
(Id
= Base_Type
(Id
));
4532 end Set_Has_Storage_Size_Clause
;
4534 procedure Set_Has_Stream_Size_Clause
(Id
: E
; V
: B
:= True) is
4536 pragma Assert
(Is_Elementary_Type
(Id
));
4537 Set_Flag184
(Id
, V
);
4538 end Set_Has_Stream_Size_Clause
;
4540 procedure Set_Has_Task
(Id
: E
; V
: B
:= True) is
4542 pragma Assert
(Id
= Base_Type
(Id
));
4546 procedure Set_Has_Thunks
(Id
: E
; V
: B
:= True) is
4548 pragma Assert
(Is_Tag
(Id
));
4549 Set_Flag228
(Id
, V
);
4552 procedure Set_Has_Unchecked_Union
(Id
: E
; V
: B
:= True) is
4554 pragma Assert
(Id
= Base_Type
(Id
));
4555 Set_Flag123
(Id
, V
);
4556 end Set_Has_Unchecked_Union
;
4558 procedure Set_Has_Unknown_Discriminants
(Id
: E
; V
: B
:= True) is
4560 pragma Assert
(Is_Type
(Id
));
4562 end Set_Has_Unknown_Discriminants
;
4564 procedure Set_Has_Visible_Refinement
(Id
: E
; V
: B
:= True) is
4566 pragma Assert
(Ekind
(Id
) = E_Abstract_State
);
4567 Set_Flag263
(Id
, V
);
4568 end Set_Has_Visible_Refinement
;
4570 procedure Set_Has_Volatile_Components
(Id
: E
; V
: B
:= True) is
4572 pragma Assert
(not Is_Type
(Id
) or else Is_Base_Type
(Id
));
4574 end Set_Has_Volatile_Components
;
4576 procedure Set_Has_Xref_Entry
(Id
: E
; V
: B
:= True) is
4578 Set_Flag182
(Id
, V
);
4579 end Set_Has_Xref_Entry
;
4581 procedure Set_Hiding_Loop_Variable
(Id
: E
; V
: E
) is
4583 pragma Assert
(Ekind
(Id
) = E_Variable
);
4585 end Set_Hiding_Loop_Variable
;
4587 procedure Set_Homonym
(Id
: E
; V
: E
) is
4589 pragma Assert
(Id
/= V
);
4593 procedure Set_Import_Pragma
(Id
: E
; V
: E
) is
4595 pragma Assert
(Is_Subprogram
(Id
));
4597 end Set_Import_Pragma
;
4599 procedure Set_Interface_Alias
(Id
: E
; V
: E
) is
4603 and then Is_Hidden
(Id
)
4604 and then (Ekind_In
(Id
, E_Procedure
, E_Function
)));
4606 end Set_Interface_Alias
;
4608 procedure Set_Interfaces
(Id
: E
; V
: L
) is
4610 pragma Assert
(Is_Record_Type
(Id
));
4611 Set_Elist25
(Id
, V
);
4614 procedure Set_In_Package_Body
(Id
: E
; V
: B
:= True) is
4617 end Set_In_Package_Body
;
4619 procedure Set_In_Private_Part
(Id
: E
; V
: B
:= True) is
4622 end Set_In_Private_Part
;
4624 procedure Set_In_Use
(Id
: E
; V
: B
:= True) is
4626 pragma Assert
(Nkind
(Id
) in N_Entity
);
4630 procedure Set_Initialization_Statements
(Id
: E
; V
: N
) is
4632 -- Tolerate an E_Void entity since this can be called while resolving
4633 -- an aggregate used as the initialization expression for an object
4634 -- declaration, and this occurs before the Ekind for the object is set.
4636 pragma Assert
(Ekind_In
(Id
, E_Void
, E_Constant
, E_Variable
));
4638 end Set_Initialization_Statements
;
4640 procedure Set_Inner_Instances
(Id
: E
; V
: L
) is
4642 Set_Elist23
(Id
, V
);
4643 end Set_Inner_Instances
;
4645 procedure Set_Interface_Name
(Id
: E
; V
: N
) is
4648 end Set_Interface_Name
;
4650 procedure Set_Is_Abstract_Subprogram
(Id
: E
; V
: B
:= True) is
4652 pragma Assert
(Is_Overloadable
(Id
));
4654 end Set_Is_Abstract_Subprogram
;
4656 procedure Set_Is_Abstract_Type
(Id
: E
; V
: B
:= True) is
4658 pragma Assert
(Is_Type
(Id
));
4659 Set_Flag146
(Id
, V
);
4660 end Set_Is_Abstract_Type
;
4662 procedure Set_Is_Local_Anonymous_Access
(Id
: E
; V
: B
:= True) is
4664 pragma Assert
(Is_Access_Type
(Id
));
4665 Set_Flag194
(Id
, V
);
4666 end Set_Is_Local_Anonymous_Access
;
4668 procedure Set_Is_Access_Constant
(Id
: E
; V
: B
:= True) is
4670 pragma Assert
(Is_Access_Type
(Id
));
4672 end Set_Is_Access_Constant
;
4674 procedure Set_Is_Ada_2005_Only
(Id
: E
; V
: B
:= True) is
4676 Set_Flag185
(Id
, V
);
4677 end Set_Is_Ada_2005_Only
;
4679 procedure Set_Is_Ada_2012_Only
(Id
: E
; V
: B
:= True) is
4681 Set_Flag199
(Id
, V
);
4682 end Set_Is_Ada_2012_Only
;
4684 procedure Set_Is_Aliased
(Id
: E
; V
: B
:= True) is
4686 pragma Assert
(Nkind
(Id
) in N_Entity
);
4690 procedure Set_Is_Asynchronous
(Id
: E
; V
: B
:= True) is
4693 (Ekind
(Id
) = E_Procedure
or else Is_Type
(Id
));
4695 end Set_Is_Asynchronous
;
4697 procedure Set_Is_Atomic
(Id
: E
; V
: B
:= True) is
4702 procedure Set_Is_Bit_Packed_Array
(Id
: E
; V
: B
:= True) is
4704 pragma Assert
((not V
)
4705 or else (Is_Array_Type
(Id
) and then Is_Base_Type
(Id
)));
4706 Set_Flag122
(Id
, V
);
4707 end Set_Is_Bit_Packed_Array
;
4709 procedure Set_Is_Called
(Id
: E
; V
: B
:= True) is
4711 pragma Assert
(Ekind_In
(Id
, E_Procedure
, E_Function
));
4712 Set_Flag102
(Id
, V
);
4715 procedure Set_Is_Character_Type
(Id
: E
; V
: B
:= True) is
4718 end Set_Is_Character_Type
;
4720 procedure Set_Is_Child_Unit
(Id
: E
; V
: B
:= True) is
4723 end Set_Is_Child_Unit
;
4725 procedure Set_Is_Class_Wide_Equivalent_Type
(Id
: E
; V
: B
:= True) is
4728 end Set_Is_Class_Wide_Equivalent_Type
;
4730 procedure Set_Is_Compilation_Unit
(Id
: E
; V
: B
:= True) is
4732 Set_Flag149
(Id
, V
);
4733 end Set_Is_Compilation_Unit
;
4735 procedure Set_Is_Completely_Hidden
(Id
: E
; V
: B
:= True) is
4737 pragma Assert
(Ekind
(Id
) = E_Discriminant
);
4738 Set_Flag103
(Id
, V
);
4739 end Set_Is_Completely_Hidden
;
4741 procedure Set_Is_Concurrent_Record_Type
(Id
: E
; V
: B
:= True) is
4744 end Set_Is_Concurrent_Record_Type
;
4746 procedure Set_Is_Constr_Subt_For_U_Nominal
(Id
: E
; V
: B
:= True) is
4749 end Set_Is_Constr_Subt_For_U_Nominal
;
4751 procedure Set_Is_Constr_Subt_For_UN_Aliased
(Id
: E
; V
: B
:= True) is
4753 Set_Flag141
(Id
, V
);
4754 end Set_Is_Constr_Subt_For_UN_Aliased
;
4756 procedure Set_Is_Constrained
(Id
: E
; V
: B
:= True) is
4758 pragma Assert
(Nkind
(Id
) in N_Entity
);
4760 end Set_Is_Constrained
;
4762 procedure Set_Is_Constructor
(Id
: E
; V
: B
:= True) is
4765 end Set_Is_Constructor
;
4767 procedure Set_Is_Controlled
(Id
: E
; V
: B
:= True) is
4769 pragma Assert
(Id
= Base_Type
(Id
));
4771 end Set_Is_Controlled
;
4773 procedure Set_Is_Controlling_Formal
(Id
: E
; V
: B
:= True) is
4775 pragma Assert
(Is_Formal
(Id
));
4777 end Set_Is_Controlling_Formal
;
4779 procedure Set_Is_CPP_Class
(Id
: E
; V
: B
:= True) is
4782 end Set_Is_CPP_Class
;
4784 procedure Set_Is_Default_Init_Cond_Procedure
(Id
: E
; V
: B
:= True) is
4786 pragma Assert
(Ekind
(Id
) = E_Procedure
);
4787 Set_Flag132
(Id
, V
);
4788 end Set_Is_Default_Init_Cond_Procedure
;
4790 procedure Set_Is_Descendent_Of_Address
(Id
: E
; V
: B
:= True) is
4792 pragma Assert
(Is_Type
(Id
));
4793 Set_Flag223
(Id
, V
);
4794 end Set_Is_Descendent_Of_Address
;
4796 procedure Set_Is_Discrim_SO_Function
(Id
: E
; V
: B
:= True) is
4798 Set_Flag176
(Id
, V
);
4799 end Set_Is_Discrim_SO_Function
;
4801 procedure Set_Is_Discriminant_Check_Function
(Id
: E
; V
: B
:= True) is
4803 Set_Flag264
(Id
, V
);
4804 end Set_Is_Discriminant_Check_Function
;
4806 procedure Set_Is_Dispatch_Table_Entity
(Id
: E
; V
: B
:= True) is
4808 Set_Flag234
(Id
, V
);
4809 end Set_Is_Dispatch_Table_Entity
;
4811 procedure Set_Is_Dispatching_Operation
(Id
: E
; V
: B
:= True) is
4816 Is_Overloadable
(Id
)
4818 Ekind
(Id
) = E_Subprogram_Type
);
4821 end Set_Is_Dispatching_Operation
;
4823 procedure Set_Is_Eliminated
(Id
: E
; V
: B
:= True) is
4825 Set_Flag124
(Id
, V
);
4826 end Set_Is_Eliminated
;
4828 procedure Set_Is_Entry_Formal
(Id
: E
; V
: B
:= True) is
4831 end Set_Is_Entry_Formal
;
4833 procedure Set_Is_Exported
(Id
: E
; V
: B
:= True) is
4836 end Set_Is_Exported
;
4838 procedure Set_Is_First_Subtype
(Id
: E
; V
: B
:= True) is
4841 end Set_Is_First_Subtype
;
4843 procedure Set_Is_For_Access_Subtype
(Id
: E
; V
: B
:= True) is
4845 pragma Assert
(Ekind_In
(Id
, E_Record_Subtype
, E_Private_Subtype
));
4846 Set_Flag118
(Id
, V
);
4847 end Set_Is_For_Access_Subtype
;
4849 procedure Set_Is_Formal_Subprogram
(Id
: E
; V
: B
:= True) is
4851 Set_Flag111
(Id
, V
);
4852 end Set_Is_Formal_Subprogram
;
4854 procedure Set_Is_Frozen
(Id
: E
; V
: B
:= True) is
4856 pragma Assert
(Nkind
(Id
) in N_Entity
);
4860 procedure Set_Is_Generic_Actual_Subprogram
(Id
: E
; V
: B
:= True) is
4862 pragma Assert
(Ekind
(Id
) = E_Function
or else Ekind
(Id
) = E_Procedure
);
4863 Set_Flag274
(Id
, V
);
4864 end Set_Is_Generic_Actual_Subprogram
;
4866 procedure Set_Is_Generic_Actual_Type
(Id
: E
; V
: B
:= True) is
4868 pragma Assert
(Is_Type
(Id
));
4870 end Set_Is_Generic_Actual_Type
;
4872 procedure Set_Is_Generic_Instance
(Id
: E
; V
: B
:= True) is
4874 Set_Flag130
(Id
, V
);
4875 end Set_Is_Generic_Instance
;
4877 procedure Set_Is_Generic_Type
(Id
: E
; V
: B
:= True) is
4879 pragma Assert
(Nkind
(Id
) in N_Entity
);
4881 end Set_Is_Generic_Type
;
4883 procedure Set_Is_Hidden
(Id
: E
; V
: B
:= True) is
4888 procedure Set_Is_Hidden_Non_Overridden_Subpgm
(Id
: E
; V
: B
:= True) is
4890 pragma Assert
(Ekind_In
(Id
, E_Function
, E_Procedure
));
4892 end Set_Is_Hidden_Non_Overridden_Subpgm
;
4894 procedure Set_Is_Hidden_Open_Scope
(Id
: E
; V
: B
:= True) is
4896 Set_Flag171
(Id
, V
);
4897 end Set_Is_Hidden_Open_Scope
;
4899 procedure Set_Is_Immediately_Visible
(Id
: E
; V
: B
:= True) is
4901 pragma Assert
(Nkind
(Id
) in N_Entity
);
4903 end Set_Is_Immediately_Visible
;
4905 procedure Set_Is_Implementation_Defined
(Id
: E
; V
: B
:= True) is
4907 Set_Flag254
(Id
, V
);
4908 end Set_Is_Implementation_Defined
;
4910 procedure Set_Is_Imported
(Id
: E
; V
: B
:= True) is
4913 end Set_Is_Imported
;
4915 procedure Set_Is_Independent
(Id
: E
; V
: B
:= True) is
4917 pragma Assert
(Ekind_In
(Id
, E_Component
, E_Void
));
4918 Set_Flag268
(Id
, V
);
4919 end Set_Is_Independent
;
4921 procedure Set_Is_Inlined
(Id
: E
; V
: B
:= True) is
4926 procedure Set_Is_Inlined_Always
(Id
: E
; V
: B
:= True) is
4928 pragma Assert
(Ekind
(Id
) = E_Function
or else Ekind
(Id
) = E_Procedure
);
4930 end Set_Is_Inlined_Always
;
4932 procedure Set_Is_Interface
(Id
: E
; V
: B
:= True) is
4934 pragma Assert
(Is_Record_Type
(Id
));
4935 Set_Flag186
(Id
, V
);
4936 end Set_Is_Interface
;
4938 procedure Set_Is_Instantiated
(Id
: E
; V
: B
:= True) is
4940 Set_Flag126
(Id
, V
);
4941 end Set_Is_Instantiated
;
4943 procedure Set_Is_Internal
(Id
: E
; V
: B
:= True) is
4945 pragma Assert
(Nkind
(Id
) in N_Entity
);
4947 end Set_Is_Internal
;
4949 procedure Set_Is_Interrupt_Handler
(Id
: E
; V
: B
:= True) is
4951 pragma Assert
(Nkind
(Id
) in N_Entity
);
4953 end Set_Is_Interrupt_Handler
;
4955 procedure Set_Is_Intrinsic_Subprogram
(Id
: E
; V
: B
:= True) is
4958 end Set_Is_Intrinsic_Subprogram
;
4960 procedure Set_Is_Invariant_Procedure
(Id
: E
; V
: B
:= True) is
4962 pragma Assert
(Ekind
(Id
) = E_Procedure
);
4963 Set_Flag257
(Id
, V
);
4964 end Set_Is_Invariant_Procedure
;
4966 procedure Set_Is_Itype
(Id
: E
; V
: B
:= True) is
4971 procedure Set_Is_Known_Non_Null
(Id
: E
; V
: B
:= True) is
4974 end Set_Is_Known_Non_Null
;
4976 procedure Set_Is_Known_Null
(Id
: E
; V
: B
:= True) is
4978 Set_Flag204
(Id
, V
);
4979 end Set_Is_Known_Null
;
4981 procedure Set_Is_Known_Valid
(Id
: E
; V
: B
:= True) is
4983 Set_Flag170
(Id
, V
);
4984 end Set_Is_Known_Valid
;
4986 procedure Set_Is_Limited_Composite
(Id
: E
; V
: B
:= True) is
4988 pragma Assert
(Is_Type
(Id
));
4989 Set_Flag106
(Id
, V
);
4990 end Set_Is_Limited_Composite
;
4992 procedure Set_Is_Limited_Interface
(Id
: E
; V
: B
:= True) is
4994 pragma Assert
(Is_Interface
(Id
));
4995 Set_Flag197
(Id
, V
);
4996 end Set_Is_Limited_Interface
;
4998 procedure Set_Is_Limited_Record
(Id
: E
; V
: B
:= True) is
5001 end Set_Is_Limited_Record
;
5003 procedure Set_Is_Machine_Code_Subprogram
(Id
: E
; V
: B
:= True) is
5005 pragma Assert
(Is_Subprogram
(Id
));
5006 Set_Flag137
(Id
, V
);
5007 end Set_Is_Machine_Code_Subprogram
;
5009 procedure Set_Is_Non_Static_Subtype
(Id
: E
; V
: B
:= True) is
5011 pragma Assert
(Is_Type
(Id
));
5012 Set_Flag109
(Id
, V
);
5013 end Set_Is_Non_Static_Subtype
;
5015 procedure Set_Is_Null_Init_Proc
(Id
: E
; V
: B
:= True) is
5017 pragma Assert
(Ekind
(Id
) = E_Procedure
);
5018 Set_Flag178
(Id
, V
);
5019 end Set_Is_Null_Init_Proc
;
5021 procedure Set_Is_Obsolescent
(Id
: E
; V
: B
:= True) is
5023 Set_Flag153
(Id
, V
);
5024 end Set_Is_Obsolescent
;
5026 procedure Set_Is_Only_Out_Parameter
(Id
: E
; V
: B
:= True) is
5028 pragma Assert
(Ekind
(Id
) = E_Out_Parameter
);
5029 Set_Flag226
(Id
, V
);
5030 end Set_Is_Only_Out_Parameter
;
5032 procedure Set_Is_Package_Body_Entity
(Id
: E
; V
: B
:= True) is
5034 Set_Flag160
(Id
, V
);
5035 end Set_Is_Package_Body_Entity
;
5037 procedure Set_Is_Packed
(Id
: E
; V
: B
:= True) is
5039 pragma Assert
(Id
= Base_Type
(Id
));
5043 procedure Set_Is_Packed_Array_Impl_Type
(Id
: E
; V
: B
:= True) is
5045 Set_Flag138
(Id
, V
);
5046 end Set_Is_Packed_Array_Impl_Type
;
5048 procedure Set_Is_Potentially_Use_Visible
(Id
: E
; V
: B
:= True) is
5050 pragma Assert
(Nkind
(Id
) in N_Entity
);
5052 end Set_Is_Potentially_Use_Visible
;
5054 procedure Set_Is_Predicate_Function
(Id
: E
; V
: B
:= True) is
5056 pragma Assert
(Ekind
(Id
) = E_Function
or else Ekind
(Id
) = E_Procedure
);
5057 Set_Flag255
(Id
, V
);
5058 end Set_Is_Predicate_Function
;
5060 procedure Set_Is_Predicate_Function_M
(Id
: E
; V
: B
:= True) is
5062 pragma Assert
(Ekind
(Id
) = E_Function
or else Ekind
(Id
) = E_Procedure
);
5063 Set_Flag256
(Id
, V
);
5064 end Set_Is_Predicate_Function_M
;
5066 procedure Set_Is_Preelaborated
(Id
: E
; V
: B
:= True) is
5069 end Set_Is_Preelaborated
;
5071 procedure Set_Is_Primitive
(Id
: E
; V
: B
:= True) is
5074 (Is_Overloadable
(Id
)
5075 or else Ekind_In
(Id
, E_Generic_Function
, E_Generic_Procedure
));
5076 Set_Flag218
(Id
, V
);
5077 end Set_Is_Primitive
;
5079 procedure Set_Is_Primitive_Wrapper
(Id
: E
; V
: B
:= True) is
5081 pragma Assert
(Ekind_In
(Id
, E_Function
, E_Procedure
));
5082 Set_Flag195
(Id
, V
);
5083 end Set_Is_Primitive_Wrapper
;
5085 procedure Set_Is_Private_Composite
(Id
: E
; V
: B
:= True) is
5087 pragma Assert
(Is_Type
(Id
));
5088 Set_Flag107
(Id
, V
);
5089 end Set_Is_Private_Composite
;
5091 procedure Set_Is_Private_Descendant
(Id
: E
; V
: B
:= True) is
5094 end Set_Is_Private_Descendant
;
5096 procedure Set_Is_Private_Primitive
(Id
: E
; V
: B
:= True) is
5098 pragma Assert
(Ekind_In
(Id
, E_Function
, E_Procedure
));
5099 Set_Flag245
(Id
, V
);
5100 end Set_Is_Private_Primitive
;
5102 procedure Set_Is_Processed_Transient
(Id
: E
; V
: B
:= True) is
5104 pragma Assert
(Ekind_In
(Id
, E_Constant
, E_Loop_Parameter
, E_Variable
));
5105 Set_Flag252
(Id
, V
);
5106 end Set_Is_Processed_Transient
;
5108 procedure Set_Is_Public
(Id
: E
; V
: B
:= True) is
5110 pragma Assert
(Nkind
(Id
) in N_Entity
);
5114 procedure Set_Is_Pure
(Id
: E
; V
: B
:= True) is
5119 procedure Set_Is_Pure_Unit_Access_Type
(Id
: E
; V
: B
:= True) is
5121 pragma Assert
(Is_Access_Type
(Id
));
5122 Set_Flag189
(Id
, V
);
5123 end Set_Is_Pure_Unit_Access_Type
;
5125 procedure Set_Is_RACW_Stub_Type
(Id
: E
; V
: B
:= True) is
5127 pragma Assert
(Is_Type
(Id
));
5128 Set_Flag244
(Id
, V
);
5129 end Set_Is_RACW_Stub_Type
;
5131 procedure Set_Is_Raised
(Id
: E
; V
: B
:= True) is
5133 pragma Assert
(Ekind
(Id
) = E_Exception
);
5134 Set_Flag224
(Id
, V
);
5137 procedure Set_Is_Remote_Call_Interface
(Id
: E
; V
: B
:= True) is
5140 end Set_Is_Remote_Call_Interface
;
5142 procedure Set_Is_Remote_Types
(Id
: E
; V
: B
:= True) is
5145 end Set_Is_Remote_Types
;
5147 procedure Set_Is_Renaming_Of_Object
(Id
: E
; V
: B
:= True) is
5149 Set_Flag112
(Id
, V
);
5150 end Set_Is_Renaming_Of_Object
;
5152 procedure Set_Is_Return_Object
(Id
: E
; V
: B
:= True) is
5154 Set_Flag209
(Id
, V
);
5155 end Set_Is_Return_Object
;
5157 procedure Set_Is_Safe_To_Reevaluate
(Id
: E
; V
: B
:= True) is
5159 pragma Assert
(Ekind
(Id
) = E_Variable
);
5160 Set_Flag249
(Id
, V
);
5161 end Set_Is_Safe_To_Reevaluate
;
5163 procedure Set_Is_Shared_Passive
(Id
: E
; V
: B
:= True) is
5166 end Set_Is_Shared_Passive
;
5168 procedure Set_Is_Statically_Allocated
(Id
: E
; V
: B
:= True) is
5172 or else Ekind_In
(Id
, E_Exception
,
5177 end Set_Is_Statically_Allocated
;
5179 procedure Set_Is_Tag
(Id
: E
; V
: B
:= True) is
5181 pragma Assert
(Ekind_In
(Id
, E_Component
, E_Constant
, E_Variable
));
5185 procedure Set_Is_Tagged_Type
(Id
: E
; V
: B
:= True) is
5188 end Set_Is_Tagged_Type
;
5190 procedure Set_Is_Thunk
(Id
: E
; V
: B
:= True) is
5192 pragma Assert
(Is_Subprogram
(Id
));
5193 Set_Flag225
(Id
, V
);
5196 procedure Set_Is_Trivial_Subprogram
(Id
: E
; V
: B
:= True) is
5198 Set_Flag235
(Id
, V
);
5199 end Set_Is_Trivial_Subprogram
;
5201 procedure Set_Is_True_Constant
(Id
: E
; V
: B
:= True) is
5203 Set_Flag163
(Id
, V
);
5204 end Set_Is_True_Constant
;
5206 procedure Set_Is_Unchecked_Union
(Id
: E
; V
: B
:= True) is
5208 pragma Assert
(Id
= Base_Type
(Id
));
5209 Set_Flag117
(Id
, V
);
5210 end Set_Is_Unchecked_Union
;
5212 procedure Set_Is_Underlying_Record_View
(Id
: E
; V
: B
:= True) is
5214 pragma Assert
(Ekind
(Id
) = E_Record_Type
);
5215 Set_Flag246
(Id
, V
);
5216 end Set_Is_Underlying_Record_View
;
5218 procedure Set_Is_Unsigned_Type
(Id
: E
; V
: B
:= True) is
5220 pragma Assert
(Is_Discrete_Or_Fixed_Point_Type
(Id
));
5221 Set_Flag144
(Id
, V
);
5222 end Set_Is_Unsigned_Type
;
5224 procedure Set_Is_Valued_Procedure
(Id
: E
; V
: B
:= True) is
5226 pragma Assert
(Ekind
(Id
) = E_Procedure
);
5227 Set_Flag127
(Id
, V
);
5228 end Set_Is_Valued_Procedure
;
5230 procedure Set_Is_Visible_Formal
(Id
: E
; V
: B
:= True) is
5232 Set_Flag206
(Id
, V
);
5233 end Set_Is_Visible_Formal
;
5235 procedure Set_Is_Visible_Lib_Unit
(Id
: E
; V
: B
:= True) is
5237 Set_Flag116
(Id
, V
);
5238 end Set_Is_Visible_Lib_Unit
;
5240 procedure Set_Is_Volatile
(Id
: E
; V
: B
:= True) is
5242 pragma Assert
(Nkind
(Id
) in N_Entity
);
5244 end Set_Is_Volatile
;
5246 procedure Set_Itype_Printed
(Id
: E
; V
: B
:= True) is
5248 pragma Assert
(Is_Itype
(Id
));
5249 Set_Flag202
(Id
, V
);
5250 end Set_Itype_Printed
;
5252 procedure Set_Kill_Elaboration_Checks
(Id
: E
; V
: B
:= True) is
5255 end Set_Kill_Elaboration_Checks
;
5257 procedure Set_Kill_Range_Checks
(Id
: E
; V
: B
:= True) is
5260 end Set_Kill_Range_Checks
;
5262 procedure Set_Known_To_Have_Preelab_Init
(Id
: E
; V
: B
:= True) is
5264 pragma Assert
(Is_Type
(Id
));
5265 Set_Flag207
(Id
, V
);
5266 end Set_Known_To_Have_Preelab_Init
;
5268 procedure Set_Last_Aggregate_Assignment
(Id
: E
; V
: N
) is
5270 pragma Assert
(Ekind_In
(Id
, E_Constant
, E_Variable
));
5272 end Set_Last_Aggregate_Assignment
;
5274 procedure Set_Last_Assignment
(Id
: E
; V
: N
) is
5276 pragma Assert
(Is_Assignable
(Id
));
5278 end Set_Last_Assignment
;
5280 procedure Set_Last_Entity
(Id
: E
; V
: E
) is
5283 end Set_Last_Entity
;
5285 procedure Set_Limited_View
(Id
: E
; V
: E
) is
5287 pragma Assert
(Ekind
(Id
) = E_Package
);
5289 end Set_Limited_View
;
5291 procedure Set_Linker_Section_Pragma
(Id
: E
; V
: N
) is
5293 pragma Assert
(Is_Type
(Id
)
5294 or else Ekind_In
(Id
, E_Constant
, E_Variable
)
5295 or else Is_Subprogram
(Id
));
5297 end Set_Linker_Section_Pragma
;
5299 procedure Set_Lit_Indexes
(Id
: E
; V
: E
) is
5301 pragma Assert
(Is_Enumeration_Type
(Id
) and then Root_Type
(Id
) = Id
);
5303 end Set_Lit_Indexes
;
5305 procedure Set_Lit_Strings
(Id
: E
; V
: E
) is
5307 pragma Assert
(Is_Enumeration_Type
(Id
) and then Root_Type
(Id
) = Id
);
5309 end Set_Lit_Strings
;
5311 procedure Set_Low_Bound_Tested
(Id
: E
; V
: B
:= True) is
5313 pragma Assert
(Is_Formal
(Id
));
5314 Set_Flag205
(Id
, V
);
5315 end Set_Low_Bound_Tested
;
5317 procedure Set_Machine_Radix_10
(Id
: E
; V
: B
:= True) is
5319 pragma Assert
(Is_Decimal_Fixed_Point_Type
(Id
));
5321 end Set_Machine_Radix_10
;
5323 procedure Set_Master_Id
(Id
: E
; V
: E
) is
5325 pragma Assert
(Is_Access_Type
(Id
));
5329 procedure Set_Materialize_Entity
(Id
: E
; V
: B
:= True) is
5331 Set_Flag168
(Id
, V
);
5332 end Set_Materialize_Entity
;
5334 procedure Set_May_Inherit_Delayed_Rep_Aspects
(Id
: E
; V
: B
:= True) is
5336 Set_Flag262
(Id
, V
);
5337 end Set_May_Inherit_Delayed_Rep_Aspects
;
5339 procedure Set_Mechanism
(Id
: E
; V
: M
) is
5341 pragma Assert
(Ekind
(Id
) = E_Function
or else Is_Formal
(Id
));
5342 Set_Uint8
(Id
, UI_From_Int
(V
));
5345 procedure Set_Modulus
(Id
: E
; V
: U
) is
5347 pragma Assert
(Ekind
(Id
) = E_Modular_Integer_Type
);
5351 procedure Set_Must_Be_On_Byte_Boundary
(Id
: E
; V
: B
:= True) is
5353 pragma Assert
(Is_Type
(Id
));
5354 Set_Flag183
(Id
, V
);
5355 end Set_Must_Be_On_Byte_Boundary
;
5357 procedure Set_Must_Have_Preelab_Init
(Id
: E
; V
: B
:= True) is
5359 pragma Assert
(Is_Type
(Id
));
5360 Set_Flag208
(Id
, V
);
5361 end Set_Must_Have_Preelab_Init
;
5363 procedure Set_Needs_Debug_Info
(Id
: E
; V
: B
:= True) is
5365 Set_Flag147
(Id
, V
);
5366 end Set_Needs_Debug_Info
;
5368 procedure Set_Needs_No_Actuals
(Id
: E
; V
: B
:= True) is
5371 (Is_Overloadable
(Id
)
5372 or else Ekind_In
(Id
, E_Subprogram_Type
, E_Entry_Family
));
5374 end Set_Needs_No_Actuals
;
5376 procedure Set_Never_Set_In_Source
(Id
: E
; V
: B
:= True) is
5378 Set_Flag115
(Id
, V
);
5379 end Set_Never_Set_In_Source
;
5381 procedure Set_Next_Inlined_Subprogram
(Id
: E
; V
: E
) is
5384 end Set_Next_Inlined_Subprogram
;
5386 procedure Set_No_Dynamic_Predicate_On_Actual
(Id
: E
; V
: B
:= True) is
5388 pragma Assert
(Is_Discrete_Type
(Id
));
5389 Set_Flag276
(Id
, V
);
5390 end Set_No_Dynamic_Predicate_On_Actual
;
5392 procedure Set_No_Pool_Assigned
(Id
: E
; V
: B
:= True) is
5394 pragma Assert
(Is_Access_Type
(Id
) and then Is_Base_Type
(Id
));
5395 Set_Flag131
(Id
, V
);
5396 end Set_No_Pool_Assigned
;
5398 procedure Set_No_Predicate_On_Actual
(Id
: E
; V
: B
:= True) is
5400 pragma Assert
(Is_Discrete_Type
(Id
));
5401 Set_Flag275
(Id
, V
);
5402 end Set_No_Predicate_On_Actual
;
5404 procedure Set_No_Return
(Id
: E
; V
: B
:= True) is
5407 (V
= False or else Ekind_In
(Id
, E_Procedure
, E_Generic_Procedure
));
5408 Set_Flag113
(Id
, V
);
5411 procedure Set_No_Strict_Aliasing
(Id
: E
; V
: B
:= True) is
5413 pragma Assert
(Is_Access_Type
(Id
) and then Is_Base_Type
(Id
));
5414 Set_Flag136
(Id
, V
);
5415 end Set_No_Strict_Aliasing
;
5417 procedure Set_Non_Binary_Modulus
(Id
: E
; V
: B
:= True) is
5419 pragma Assert
(Is_Type
(Id
) and then Is_Base_Type
(Id
));
5421 end Set_Non_Binary_Modulus
;
5423 procedure Set_Non_Limited_View
(Id
: E
; V
: E
) is
5426 (Ekind
(Id
) in Incomplete_Kind
or else Ekind
(Id
) = E_Abstract_State
);
5428 end Set_Non_Limited_View
;
5430 procedure Set_Nonzero_Is_True
(Id
: E
; V
: B
:= True) is
5433 (Root_Type
(Id
) = Standard_Boolean
5434 and then Ekind
(Id
) = E_Enumeration_Type
);
5435 Set_Flag162
(Id
, V
);
5436 end Set_Nonzero_Is_True
;
5438 procedure Set_Normalized_First_Bit
(Id
: E
; V
: U
) is
5440 pragma Assert
(Ekind_In
(Id
, E_Component
, E_Discriminant
));
5442 end Set_Normalized_First_Bit
;
5444 procedure Set_Normalized_Position
(Id
: E
; V
: U
) is
5446 pragma Assert
(Ekind_In
(Id
, E_Component
, E_Discriminant
));
5448 end Set_Normalized_Position
;
5450 procedure Set_Normalized_Position_Max
(Id
: E
; V
: U
) is
5452 pragma Assert
(Ekind_In
(Id
, E_Component
, E_Discriminant
));
5454 end Set_Normalized_Position_Max
;
5456 procedure Set_OK_To_Rename
(Id
: E
; V
: B
:= True) is
5458 pragma Assert
(Ekind
(Id
) = E_Variable
);
5459 Set_Flag247
(Id
, V
);
5460 end Set_OK_To_Rename
;
5462 procedure Set_OK_To_Reorder_Components
(Id
: E
; V
: B
:= True) is
5465 (Is_Record_Type
(Id
) and then Is_Base_Type
(Id
));
5466 Set_Flag239
(Id
, V
);
5467 end Set_OK_To_Reorder_Components
;
5469 procedure Set_Optimize_Alignment_Space
(Id
: E
; V
: B
:= True) is
5472 (Is_Type
(Id
) or else Ekind_In
(Id
, E_Constant
, E_Variable
));
5473 Set_Flag241
(Id
, V
);
5474 end Set_Optimize_Alignment_Space
;
5476 procedure Set_Optimize_Alignment_Time
(Id
: E
; V
: B
:= True) is
5479 (Is_Type
(Id
) or else Ekind_In
(Id
, E_Constant
, E_Variable
));
5480 Set_Flag242
(Id
, V
);
5481 end Set_Optimize_Alignment_Time
;
5483 procedure Set_Original_Access_Type
(Id
: E
; V
: E
) is
5485 pragma Assert
(Ekind
(Id
) = E_Access_Subprogram_Type
);
5487 end Set_Original_Access_Type
;
5489 procedure Set_Original_Array_Type
(Id
: E
; V
: E
) is
5491 pragma Assert
(Is_Array_Type
(Id
) or else Is_Modular_Integer_Type
(Id
));
5493 end Set_Original_Array_Type
;
5495 procedure Set_Original_Record_Component
(Id
: E
; V
: E
) is
5497 pragma Assert
(Ekind_In
(Id
, E_Void
, E_Component
, E_Discriminant
));
5499 end Set_Original_Record_Component
;
5501 procedure Set_Overlays_Constant
(Id
: E
; V
: B
:= True) is
5503 Set_Flag243
(Id
, V
);
5504 end Set_Overlays_Constant
;
5506 procedure Set_Overridden_Operation
(Id
: E
; V
: E
) is
5509 end Set_Overridden_Operation
;
5511 procedure Set_Package_Instantiation
(Id
: E
; V
: N
) is
5513 pragma Assert
(Ekind_In
(Id
, E_Void
, E_Generic_Package
, E_Package
));
5515 end Set_Package_Instantiation
;
5517 procedure Set_Packed_Array_Impl_Type
(Id
: E
; V
: E
) is
5519 pragma Assert
(Is_Array_Type
(Id
));
5521 end Set_Packed_Array_Impl_Type
;
5523 procedure Set_Parent_Subtype
(Id
: E
; V
: E
) is
5525 pragma Assert
(Ekind
(Id
) = E_Record_Type
);
5527 end Set_Parent_Subtype
;
5529 procedure Set_Part_Of_Constituents
(Id
: E
; V
: L
) is
5531 pragma Assert
(Ekind
(Id
) = E_Abstract_State
);
5533 end Set_Part_Of_Constituents
;
5535 procedure Set_Postcondition_Proc
(Id
: E
; V
: E
) is
5537 pragma Assert
(Ekind
(Id
) = E_Procedure
);
5539 end Set_Postcondition_Proc
;
5541 procedure Set_PPC_Wrapper
(Id
: E
; V
: E
) is
5543 pragma Assert
(Ekind_In
(Id
, E_Entry
, E_Entry_Family
));
5545 end Set_PPC_Wrapper
;
5547 procedure Set_Direct_Primitive_Operations
(Id
: E
; V
: L
) is
5549 pragma Assert
(Is_Tagged_Type
(Id
));
5550 Set_Elist10
(Id
, V
);
5551 end Set_Direct_Primitive_Operations
;
5553 procedure Set_Prival
(Id
: E
; V
: E
) is
5555 pragma Assert
(Is_Protected_Component
(Id
));
5559 procedure Set_Prival_Link
(Id
: E
; V
: E
) is
5561 pragma Assert
(Ekind_In
(Id
, E_Constant
, E_Variable
));
5563 end Set_Prival_Link
;
5565 procedure Set_Private_Dependents
(Id
: E
; V
: L
) is
5567 pragma Assert
(Is_Incomplete_Or_Private_Type
(Id
));
5568 Set_Elist18
(Id
, V
);
5569 end Set_Private_Dependents
;
5571 procedure Set_Private_View
(Id
: E
; V
: N
) is
5573 pragma Assert
(Is_Private_Type
(Id
));
5575 end Set_Private_View
;
5577 procedure Set_Protected_Body_Subprogram
(Id
: E
; V
: E
) is
5579 pragma Assert
(Is_Subprogram
(Id
) or else Is_Entry
(Id
));
5581 end Set_Protected_Body_Subprogram
;
5583 procedure Set_Protected_Formal
(Id
: E
; V
: E
) is
5585 pragma Assert
(Is_Formal
(Id
));
5587 end Set_Protected_Formal
;
5589 procedure Set_Protection_Object
(Id
: E
; V
: E
) is
5591 pragma Assert
(Ekind_In
(Id
, E_Entry
,
5596 end Set_Protection_Object
;
5598 procedure Set_Reachable
(Id
: E
; V
: B
:= True) is
5603 procedure Set_Referenced
(Id
: E
; V
: B
:= True) is
5605 Set_Flag156
(Id
, V
);
5608 procedure Set_Referenced_As_LHS
(Id
: E
; V
: B
:= True) is
5611 end Set_Referenced_As_LHS
;
5613 procedure Set_Referenced_As_Out_Parameter
(Id
: E
; V
: B
:= True) is
5615 Set_Flag227
(Id
, V
);
5616 end Set_Referenced_As_Out_Parameter
;
5618 procedure Set_Refinement_Constituents
(Id
: E
; V
: L
) is
5620 pragma Assert
(Ekind
(Id
) = E_Abstract_State
);
5622 end Set_Refinement_Constituents
;
5624 procedure Set_Register_Exception_Call
(Id
: E
; V
: N
) is
5626 pragma Assert
(Ekind
(Id
) = E_Exception
);
5628 end Set_Register_Exception_Call
;
5630 procedure Set_Related_Array_Object
(Id
: E
; V
: E
) is
5632 pragma Assert
(Is_Array_Type
(Id
));
5634 end Set_Related_Array_Object
;
5636 procedure Set_Related_Expression
(Id
: E
; V
: N
) is
5638 pragma Assert
(Ekind
(Id
) in Type_Kind
5639 or else Ekind_In
(Id
, E_Constant
, E_Variable
, E_Void
));
5641 end Set_Related_Expression
;
5643 procedure Set_Related_Instance
(Id
: E
; V
: E
) is
5645 pragma Assert
(Ekind_In
(Id
, E_Package
, E_Package_Body
));
5647 end Set_Related_Instance
;
5649 procedure Set_Related_Type
(Id
: E
; V
: E
) is
5651 pragma Assert
(Ekind_In
(Id
, E_Component
, E_Constant
, E_Variable
));
5653 end Set_Related_Type
;
5655 procedure Set_Relative_Deadline_Variable
(Id
: E
; V
: E
) is
5657 pragma Assert
(Is_Task_Type
(Id
) and then Is_Base_Type
(Id
));
5659 end Set_Relative_Deadline_Variable
;
5661 procedure Set_Renamed_Entity
(Id
: E
; V
: N
) is
5664 end Set_Renamed_Entity
;
5666 procedure Set_Renamed_In_Spec
(Id
: E
; V
: B
:= True) is
5668 pragma Assert
(Ekind
(Id
) = E_Package
);
5669 Set_Flag231
(Id
, V
);
5670 end Set_Renamed_In_Spec
;
5672 procedure Set_Renamed_Object
(Id
: E
; V
: N
) is
5675 end Set_Renamed_Object
;
5677 procedure Set_Renaming_Map
(Id
: E
; V
: U
) is
5680 end Set_Renaming_Map
;
5682 procedure Set_Requires_Overriding
(Id
: E
; V
: B
:= True) is
5684 pragma Assert
(Is_Overloadable
(Id
));
5685 Set_Flag213
(Id
, V
);
5686 end Set_Requires_Overriding
;
5688 procedure Set_Return_Present
(Id
: E
; V
: B
:= True) is
5691 end Set_Return_Present
;
5693 procedure Set_Return_Applies_To
(Id
: E
; V
: N
) is
5696 end Set_Return_Applies_To
;
5698 procedure Set_Returns_By_Ref
(Id
: E
; V
: B
:= True) is
5701 end Set_Returns_By_Ref
;
5703 procedure Set_Returns_Limited_View
(Id
: E
; V
: B
:= True) is
5705 pragma Assert
(Ekind
(Id
) = E_Function
);
5706 Set_Flag134
(Id
, V
);
5707 end Set_Returns_Limited_View
;
5709 procedure Set_Reverse_Bit_Order
(Id
: E
; V
: B
:= True) is
5712 (Is_Record_Type
(Id
) and then Is_Base_Type
(Id
));
5713 Set_Flag164
(Id
, V
);
5714 end Set_Reverse_Bit_Order
;
5716 procedure Set_Reverse_Storage_Order
(Id
: E
; V
: B
:= True) is
5720 and then (Is_Record_Type
(Id
) or else Is_Array_Type
(Id
)));
5722 end Set_Reverse_Storage_Order
;
5724 procedure Set_RM_Size
(Id
: E
; V
: U
) is
5726 pragma Assert
(Is_Type
(Id
));
5730 procedure Set_Scalar_Range
(Id
: E
; V
: N
) is
5733 end Set_Scalar_Range
;
5735 procedure Set_Scale_Value
(Id
: E
; V
: U
) is
5738 end Set_Scale_Value
;
5740 procedure Set_Scope_Depth_Value
(Id
: E
; V
: U
) is
5742 pragma Assert
(not Is_Record_Type
(Id
));
5744 end Set_Scope_Depth_Value
;
5746 procedure Set_Sec_Stack_Needed_For_Return
(Id
: E
; V
: B
:= True) is
5748 Set_Flag167
(Id
, V
);
5749 end Set_Sec_Stack_Needed_For_Return
;
5751 procedure Set_Shadow_Entities
(Id
: E
; V
: S
) is
5753 pragma Assert
(Ekind_In
(Id
, E_Package
, E_Generic_Package
));
5755 end Set_Shadow_Entities
;
5757 procedure Set_Shared_Var_Procs_Instance
(Id
: E
; V
: E
) is
5759 pragma Assert
(Ekind
(Id
) = E_Variable
);
5761 end Set_Shared_Var_Procs_Instance
;
5763 procedure Set_Size_Check_Code
(Id
: E
; V
: N
) is
5765 pragma Assert
(Ekind_In
(Id
, E_Constant
, E_Variable
));
5767 end Set_Size_Check_Code
;
5769 procedure Set_Size_Depends_On_Discriminant
(Id
: E
; V
: B
:= True) is
5771 Set_Flag177
(Id
, V
);
5772 end Set_Size_Depends_On_Discriminant
;
5774 procedure Set_Size_Known_At_Compile_Time
(Id
: E
; V
: B
:= True) is
5777 end Set_Size_Known_At_Compile_Time
;
5779 procedure Set_Small_Value
(Id
: E
; V
: R
) is
5781 pragma Assert
(Is_Fixed_Point_Type
(Id
));
5782 Set_Ureal21
(Id
, V
);
5783 end Set_Small_Value
;
5785 procedure Set_SPARK_Aux_Pragma
(Id
: E
; V
: N
) is
5788 (Ekind_In
(Id
, E_Generic_Package
, -- package variants
5793 end Set_SPARK_Aux_Pragma
;
5795 procedure Set_SPARK_Aux_Pragma_Inherited
(Id
: E
; V
: B
:= True) is
5798 (Ekind_In
(Id
, E_Generic_Package
, -- package variants
5802 Set_Flag266
(Id
, V
);
5803 end Set_SPARK_Aux_Pragma_Inherited
;
5805 procedure Set_SPARK_Pragma
(Id
: E
; V
: N
) is
5808 (Ekind_In
(Id
, E_Function
, -- subprogram variants
5810 E_Generic_Procedure
,
5814 Ekind_In
(Id
, E_Generic_Package
, -- package variants
5819 end Set_SPARK_Pragma
;
5821 procedure Set_SPARK_Pragma_Inherited
(Id
: E
; V
: B
:= True) is
5824 (Ekind_In
(Id
, E_Function
, -- subprogram variants
5826 E_Generic_Procedure
,
5830 Ekind_In
(Id
, E_Generic_Package
, -- package variants
5834 Set_Flag265
(Id
, V
);
5835 end Set_SPARK_Pragma_Inherited
;
5837 procedure Set_Spec_Entity
(Id
: E
; V
: E
) is
5839 pragma Assert
(Ekind
(Id
) = E_Package_Body
or else Is_Formal
(Id
));
5841 end Set_Spec_Entity
;
5843 procedure Set_SSO_Set_High_By_Default
(Id
: E
; V
: B
:= True) is
5847 and then (Is_Record_Type
(Id
) or else Is_Array_Type
(Id
)));
5848 Set_Flag273
(Id
, V
);
5849 end Set_SSO_Set_High_By_Default
;
5851 procedure Set_SSO_Set_Low_By_Default
(Id
: E
; V
: B
:= True) is
5855 and then (Is_Record_Type
(Id
) or else Is_Array_Type
(Id
)));
5856 Set_Flag272
(Id
, V
);
5857 end Set_SSO_Set_Low_By_Default
;
5859 procedure Set_Static_Discrete_Predicate
(Id
: E
; V
: S
) is
5861 pragma Assert
(Is_Discrete_Type
(Id
) and then Has_Predicates
(Id
));
5863 end Set_Static_Discrete_Predicate
;
5865 procedure Set_Static_Real_Or_String_Predicate
(Id
: E
; V
: N
) is
5867 pragma Assert
((Is_Real_Type
(Id
) or else Is_String_Type
(Id
))
5868 and then Has_Predicates
(Id
));
5870 end Set_Static_Real_Or_String_Predicate
;
5872 procedure Set_Status_Flag_Or_Transient_Decl
(Id
: E
; V
: E
) is
5874 pragma Assert
(Ekind_In
(Id
, E_Constant
, E_Variable
));
5876 end Set_Status_Flag_Or_Transient_Decl
;
5878 procedure Set_Storage_Size_Variable
(Id
: E
; V
: E
) is
5880 pragma Assert
(Is_Access_Type
(Id
) or else Is_Task_Type
(Id
));
5881 pragma Assert
(Id
= Base_Type
(Id
));
5883 end Set_Storage_Size_Variable
;
5885 procedure Set_Static_Elaboration_Desired
(Id
: E
; V
: B
) is
5887 pragma Assert
(Ekind
(Id
) = E_Package
);
5889 end Set_Static_Elaboration_Desired
;
5891 procedure Set_Static_Initialization
(Id
: E
; V
: N
) is
5894 (Ekind
(Id
) = E_Procedure
and then not Is_Dispatching_Operation
(Id
));
5896 end Set_Static_Initialization
;
5898 procedure Set_Stored_Constraint
(Id
: E
; V
: L
) is
5900 pragma Assert
(Nkind
(Id
) in N_Entity
);
5901 Set_Elist23
(Id
, V
);
5902 end Set_Stored_Constraint
;
5904 procedure Set_Stores_Attribute_Old_Prefix
(Id
: E
; V
: B
:= True) is
5906 pragma Assert
(Ekind
(Id
) = E_Constant
);
5907 Set_Flag270
(Id
, V
);
5908 end Set_Stores_Attribute_Old_Prefix
;
5910 procedure Set_Strict_Alignment
(Id
: E
; V
: B
:= True) is
5912 pragma Assert
(Id
= Base_Type
(Id
));
5913 Set_Flag145
(Id
, V
);
5914 end Set_Strict_Alignment
;
5916 procedure Set_String_Literal_Length
(Id
: E
; V
: U
) is
5918 pragma Assert
(Ekind
(Id
) = E_String_Literal_Subtype
);
5920 end Set_String_Literal_Length
;
5922 procedure Set_String_Literal_Low_Bound
(Id
: E
; V
: N
) is
5924 pragma Assert
(Ekind
(Id
) = E_String_Literal_Subtype
);
5926 end Set_String_Literal_Low_Bound
;
5928 procedure Set_Subprograms_For_Type
(Id
: E
; V
: E
) is
5930 pragma Assert
(Is_Type
(Id
) or else Is_Subprogram
(Id
));
5932 end Set_Subprograms_For_Type
;
5934 procedure Set_Suppress_Elaboration_Warnings
(Id
: E
; V
: B
:= True) is
5936 Set_Flag148
(Id
, V
);
5937 end Set_Suppress_Elaboration_Warnings
;
5939 procedure Set_Suppress_Initialization
(Id
: E
; V
: B
:= True) is
5941 pragma Assert
(Is_Type
(Id
));
5942 Set_Flag105
(Id
, V
);
5943 end Set_Suppress_Initialization
;
5945 procedure Set_Suppress_Style_Checks
(Id
: E
; V
: B
:= True) is
5947 Set_Flag165
(Id
, V
);
5948 end Set_Suppress_Style_Checks
;
5950 procedure Set_Suppress_Value_Tracking_On_Call
(Id
: E
; V
: B
:= True) is
5952 Set_Flag217
(Id
, V
);
5953 end Set_Suppress_Value_Tracking_On_Call
;
5955 procedure Set_Task_Body_Procedure
(Id
: E
; V
: N
) is
5957 pragma Assert
(Ekind
(Id
) in Task_Kind
);
5959 end Set_Task_Body_Procedure
;
5961 procedure Set_Thunk_Entity
(Id
: E
; V
: E
) is
5963 pragma Assert
(Ekind_In
(Id
, E_Function
, E_Procedure
)
5964 and then Is_Thunk
(Id
));
5966 end Set_Thunk_Entity
;
5968 procedure Set_Treat_As_Volatile
(Id
: E
; V
: B
:= True) is
5971 end Set_Treat_As_Volatile
;
5973 procedure Set_Underlying_Full_View
(Id
: E
; V
: E
) is
5975 pragma Assert
(Ekind
(Id
) in Private_Kind
);
5977 end Set_Underlying_Full_View
;
5979 procedure Set_Underlying_Record_View
(Id
: E
; V
: E
) is
5981 pragma Assert
(Ekind
(Id
) = E_Record_Type
);
5983 end Set_Underlying_Record_View
;
5985 procedure Set_Universal_Aliasing
(Id
: E
; V
: B
:= True) is
5987 pragma Assert
(Is_Type
(Id
) and then Is_Base_Type
(Id
));
5988 Set_Flag216
(Id
, V
);
5989 end Set_Universal_Aliasing
;
5991 procedure Set_Unset_Reference
(Id
: E
; V
: N
) is
5994 end Set_Unset_Reference
;
5996 procedure Set_Used_As_Generic_Actual
(Id
: E
; V
: B
:= True) is
5998 Set_Flag222
(Id
, V
);
5999 end Set_Used_As_Generic_Actual
;
6001 procedure Set_Uses_Lock_Free
(Id
: E
; V
: B
:= True) is
6003 pragma Assert
(Ekind
(Id
) = E_Protected_Type
);
6004 Set_Flag188
(Id
, V
);
6005 end Set_Uses_Lock_Free
;
6007 procedure Set_Uses_Sec_Stack
(Id
: E
; V
: B
:= True) is
6010 end Set_Uses_Sec_Stack
;
6012 procedure Set_Warnings_Off
(Id
: E
; V
: B
:= True) is
6015 end Set_Warnings_Off
;
6017 procedure Set_Warnings_Off_Used
(Id
: E
; V
: B
:= True) is
6019 Set_Flag236
(Id
, V
);
6020 end Set_Warnings_Off_Used
;
6022 procedure Set_Warnings_Off_Used_Unmodified
(Id
: E
; V
: B
:= True) is
6024 Set_Flag237
(Id
, V
);
6025 end Set_Warnings_Off_Used_Unmodified
;
6027 procedure Set_Warnings_Off_Used_Unreferenced
(Id
: E
; V
: B
:= True) is
6029 Set_Flag238
(Id
, V
);
6030 end Set_Warnings_Off_Used_Unreferenced
;
6032 procedure Set_Was_Hidden
(Id
: E
; V
: B
:= True) is
6034 Set_Flag196
(Id
, V
);
6037 procedure Set_Wrapped_Entity
(Id
: E
; V
: E
) is
6039 pragma Assert
(Ekind_In
(Id
, E_Function
, E_Procedure
)
6040 and then Is_Primitive_Wrapper
(Id
));
6042 end Set_Wrapped_Entity
;
6044 -----------------------------------
6045 -- Field Initialization Routines --
6046 -----------------------------------
6048 procedure Init_Alignment
(Id
: E
) is
6050 Set_Uint14
(Id
, Uint_0
);
6053 procedure Init_Alignment
(Id
: E
; V
: Int
) is
6055 Set_Uint14
(Id
, UI_From_Int
(V
));
6058 procedure Init_Component_Bit_Offset
(Id
: E
) is
6060 Set_Uint11
(Id
, No_Uint
);
6061 end Init_Component_Bit_Offset
;
6063 procedure Init_Component_Bit_Offset
(Id
: E
; V
: Int
) is
6065 Set_Uint11
(Id
, UI_From_Int
(V
));
6066 end Init_Component_Bit_Offset
;
6068 procedure Init_Component_Size
(Id
: E
) is
6070 Set_Uint22
(Id
, Uint_0
);
6071 end Init_Component_Size
;
6073 procedure Init_Component_Size
(Id
: E
; V
: Int
) is
6075 Set_Uint22
(Id
, UI_From_Int
(V
));
6076 end Init_Component_Size
;
6078 procedure Init_Digits_Value
(Id
: E
) is
6080 Set_Uint17
(Id
, Uint_0
);
6081 end Init_Digits_Value
;
6083 procedure Init_Digits_Value
(Id
: E
; V
: Int
) is
6085 Set_Uint17
(Id
, UI_From_Int
(V
));
6086 end Init_Digits_Value
;
6088 procedure Init_Esize
(Id
: E
) is
6090 Set_Uint12
(Id
, Uint_0
);
6093 procedure Init_Esize
(Id
: E
; V
: Int
) is
6095 Set_Uint12
(Id
, UI_From_Int
(V
));
6098 procedure Init_Normalized_First_Bit
(Id
: E
) is
6100 Set_Uint8
(Id
, No_Uint
);
6101 end Init_Normalized_First_Bit
;
6103 procedure Init_Normalized_First_Bit
(Id
: E
; V
: Int
) is
6105 Set_Uint8
(Id
, UI_From_Int
(V
));
6106 end Init_Normalized_First_Bit
;
6108 procedure Init_Normalized_Position
(Id
: E
) is
6110 Set_Uint14
(Id
, No_Uint
);
6111 end Init_Normalized_Position
;
6113 procedure Init_Normalized_Position
(Id
: E
; V
: Int
) is
6115 Set_Uint14
(Id
, UI_From_Int
(V
));
6116 end Init_Normalized_Position
;
6118 procedure Init_Normalized_Position_Max
(Id
: E
) is
6120 Set_Uint10
(Id
, No_Uint
);
6121 end Init_Normalized_Position_Max
;
6123 procedure Init_Normalized_Position_Max
(Id
: E
; V
: Int
) is
6125 Set_Uint10
(Id
, UI_From_Int
(V
));
6126 end Init_Normalized_Position_Max
;
6128 procedure Init_RM_Size
(Id
: E
) is
6130 Set_Uint13
(Id
, Uint_0
);
6133 procedure Init_RM_Size
(Id
: E
; V
: Int
) is
6135 Set_Uint13
(Id
, UI_From_Int
(V
));
6138 -----------------------------
6139 -- Init_Component_Location --
6140 -----------------------------
6142 procedure Init_Component_Location
(Id
: E
) is
6144 Set_Uint8
(Id
, No_Uint
); -- Normalized_First_Bit
6145 Set_Uint10
(Id
, No_Uint
); -- Normalized_Position_Max
6146 Set_Uint11
(Id
, No_Uint
); -- Component_Bit_Offset
6147 Set_Uint12
(Id
, Uint_0
); -- Esize
6148 Set_Uint14
(Id
, No_Uint
); -- Normalized_Position
6149 end Init_Component_Location
;
6151 ----------------------------
6152 -- Init_Object_Size_Align --
6153 ----------------------------
6155 procedure Init_Object_Size_Align
(Id
: E
) is
6157 Set_Uint12
(Id
, Uint_0
); -- Esize
6158 Set_Uint14
(Id
, Uint_0
); -- Alignment
6159 end Init_Object_Size_Align
;
6165 procedure Init_Size
(Id
: E
; V
: Int
) is
6167 pragma Assert
(not Is_Object
(Id
));
6168 Set_Uint12
(Id
, UI_From_Int
(V
)); -- Esize
6169 Set_Uint13
(Id
, UI_From_Int
(V
)); -- RM_Size
6172 ---------------------
6173 -- Init_Size_Align --
6174 ---------------------
6176 procedure Init_Size_Align
(Id
: E
) is
6178 pragma Assert
(not Is_Object
(Id
));
6179 Set_Uint12
(Id
, Uint_0
); -- Esize
6180 Set_Uint13
(Id
, Uint_0
); -- RM_Size
6181 Set_Uint14
(Id
, Uint_0
); -- Alignment
6182 end Init_Size_Align
;
6184 ----------------------------------------------
6185 -- Type Representation Attribute Predicates --
6186 ----------------------------------------------
6188 function Known_Alignment
(E
: Entity_Id
) return B
is
6190 return Uint14
(E
) /= Uint_0
6191 and then Uint14
(E
) /= No_Uint
;
6192 end Known_Alignment
;
6194 function Known_Component_Bit_Offset
(E
: Entity_Id
) return B
is
6196 return Uint11
(E
) /= No_Uint
;
6197 end Known_Component_Bit_Offset
;
6199 function Known_Component_Size
(E
: Entity_Id
) return B
is
6201 return Uint22
(Base_Type
(E
)) /= Uint_0
6202 and then Uint22
(Base_Type
(E
)) /= No_Uint
;
6203 end Known_Component_Size
;
6205 function Known_Esize
(E
: Entity_Id
) return B
is
6207 return Uint12
(E
) /= Uint_0
6208 and then Uint12
(E
) /= No_Uint
;
6211 function Known_Normalized_First_Bit
(E
: Entity_Id
) return B
is
6213 return Uint8
(E
) /= No_Uint
;
6214 end Known_Normalized_First_Bit
;
6216 function Known_Normalized_Position
(E
: Entity_Id
) return B
is
6218 return Uint14
(E
) /= No_Uint
;
6219 end Known_Normalized_Position
;
6221 function Known_Normalized_Position_Max
(E
: Entity_Id
) return B
is
6223 return Uint10
(E
) /= No_Uint
;
6224 end Known_Normalized_Position_Max
;
6226 function Known_RM_Size
(E
: Entity_Id
) return B
is
6228 return Uint13
(E
) /= No_Uint
6229 and then (Uint13
(E
) /= Uint_0
6230 or else Is_Discrete_Type
(E
)
6231 or else Is_Fixed_Point_Type
(E
));
6234 function Known_Static_Component_Bit_Offset
(E
: Entity_Id
) return B
is
6236 return Uint11
(E
) /= No_Uint
6237 and then Uint11
(E
) >= Uint_0
;
6238 end Known_Static_Component_Bit_Offset
;
6240 function Known_Static_Component_Size
(E
: Entity_Id
) return B
is
6242 return Uint22
(Base_Type
(E
)) > Uint_0
;
6243 end Known_Static_Component_Size
;
6245 function Known_Static_Esize
(E
: Entity_Id
) return B
is
6247 return Uint12
(E
) > Uint_0
6248 and then not Is_Generic_Type
(E
);
6249 end Known_Static_Esize
;
6251 function Known_Static_Normalized_First_Bit
(E
: Entity_Id
) return B
is
6253 return Uint8
(E
) /= No_Uint
6254 and then Uint8
(E
) >= Uint_0
;
6255 end Known_Static_Normalized_First_Bit
;
6257 function Known_Static_Normalized_Position
(E
: Entity_Id
) return B
is
6259 return Uint14
(E
) /= No_Uint
6260 and then Uint14
(E
) >= Uint_0
;
6261 end Known_Static_Normalized_Position
;
6263 function Known_Static_Normalized_Position_Max
(E
: Entity_Id
) return B
is
6265 return Uint10
(E
) /= No_Uint
6266 and then Uint10
(E
) >= Uint_0
;
6267 end Known_Static_Normalized_Position_Max
;
6269 function Known_Static_RM_Size
(E
: Entity_Id
) return B
is
6271 return (Uint13
(E
) > Uint_0
6272 or else Is_Discrete_Type
(E
)
6273 or else Is_Fixed_Point_Type
(E
))
6274 and then not Is_Generic_Type
(E
);
6275 end Known_Static_RM_Size
;
6277 function Unknown_Alignment
(E
: Entity_Id
) return B
is
6279 return Uint14
(E
) = Uint_0
6280 or else Uint14
(E
) = No_Uint
;
6281 end Unknown_Alignment
;
6283 function Unknown_Component_Bit_Offset
(E
: Entity_Id
) return B
is
6285 return Uint11
(E
) = No_Uint
;
6286 end Unknown_Component_Bit_Offset
;
6288 function Unknown_Component_Size
(E
: Entity_Id
) return B
is
6290 return Uint22
(Base_Type
(E
)) = Uint_0
6292 Uint22
(Base_Type
(E
)) = No_Uint
;
6293 end Unknown_Component_Size
;
6295 function Unknown_Esize
(E
: Entity_Id
) return B
is
6297 return Uint12
(E
) = No_Uint
6299 Uint12
(E
) = Uint_0
;
6302 function Unknown_Normalized_First_Bit
(E
: Entity_Id
) return B
is
6304 return Uint8
(E
) = No_Uint
;
6305 end Unknown_Normalized_First_Bit
;
6307 function Unknown_Normalized_Position
(E
: Entity_Id
) return B
is
6309 return Uint14
(E
) = No_Uint
;
6310 end Unknown_Normalized_Position
;
6312 function Unknown_Normalized_Position_Max
(E
: Entity_Id
) return B
is
6314 return Uint10
(E
) = No_Uint
;
6315 end Unknown_Normalized_Position_Max
;
6317 function Unknown_RM_Size
(E
: Entity_Id
) return B
is
6319 return (Uint13
(E
) = Uint_0
6320 and then not Is_Discrete_Type
(E
)
6321 and then not Is_Fixed_Point_Type
(E
))
6322 or else Uint13
(E
) = No_Uint
;
6323 end Unknown_RM_Size
;
6325 --------------------
6326 -- Address_Clause --
6327 --------------------
6329 function Address_Clause
(Id
: E
) return N
is
6331 return Get_Attribute_Definition_Clause
(Id
, Attribute_Address
);
6338 function Aft_Value
(Id
: E
) return U
is
6340 Delta_Val
: Ureal
:= Delta_Value
(Id
);
6342 while Delta_Val
< Ureal_Tenth
loop
6343 Delta_Val
:= Delta_Val
* Ureal_10
;
6344 Result
:= Result
+ 1;
6347 return UI_From_Int
(Result
);
6350 ----------------------
6351 -- Alignment_Clause --
6352 ----------------------
6354 function Alignment_Clause
(Id
: E
) return N
is
6356 return Get_Attribute_Definition_Clause
(Id
, Attribute_Alignment
);
6357 end Alignment_Clause
;
6363 procedure Append_Entity
(Id
: Entity_Id
; V
: Entity_Id
) is
6365 if Last_Entity
(V
) = Empty
then
6366 Set_First_Entity
(Id
=> V
, V
=> Id
);
6368 Set_Next_Entity
(Last_Entity
(V
), Id
);
6371 Set_Next_Entity
(Id
, Empty
);
6373 Set_Last_Entity
(Id
=> V
, V
=> Id
);
6380 function Base_Type
(Id
: E
) return E
is
6382 if Is_Base_Type
(Id
) then
6385 pragma Assert
(Is_Type
(Id
));
6390 -------------------------
6391 -- Component_Alignment --
6392 -------------------------
6394 -- Component Alignment is encoded using two flags, Flag128/129 as
6395 -- follows. Note that both flags False = Align_Default, so that the
6396 -- default initialization of flags to False initializes component
6397 -- alignment to the default value as required.
6399 -- Flag128 Flag129 Value
6400 -- ------- ------- -----
6401 -- False False Calign_Default
6402 -- False True Calign_Component_Size
6403 -- True False Calign_Component_Size_4
6404 -- True True Calign_Storage_Unit
6406 function Component_Alignment
(Id
: E
) return C
is
6407 BT
: constant Node_Id
:= Base_Type
(Id
);
6410 pragma Assert
(Is_Array_Type
(Id
) or else Is_Record_Type
(Id
));
6412 if Flag128
(BT
) then
6413 if Flag129
(BT
) then
6414 return Calign_Storage_Unit
;
6416 return Calign_Component_Size_4
;
6420 if Flag129
(BT
) then
6421 return Calign_Component_Size
;
6423 return Calign_Default
;
6426 end Component_Alignment
;
6428 ----------------------
6429 -- Declaration_Node --
6430 ----------------------
6432 function Declaration_Node
(Id
: E
) return N
is
6436 if Ekind
(Id
) = E_Incomplete_Type
6437 and then Present
(Full_View
(Id
))
6439 P
:= Parent
(Full_View
(Id
));
6445 if Nkind
(P
) /= N_Selected_Component
6446 and then Nkind
(P
) /= N_Expanded_Name
6448 not (Nkind
(P
) = N_Defining_Program_Unit_Name
6449 and then Is_Child_Unit
(Id
))
6456 end Declaration_Node
;
6458 ---------------------------------
6459 -- Default_Init_Cond_Procedure --
6460 ---------------------------------
6462 function Default_Init_Cond_Procedure
(Id
: E
) return E
is
6468 and then (Has_Default_Init_Cond
(Id
)
6469 or Has_Inherited_Default_Init_Cond
(Id
)));
6471 S
:= Subprograms_For_Type
(Id
);
6472 while Present
(S
) loop
6473 if Is_Default_Init_Cond_Procedure
(S
) then
6477 S
:= Subprograms_For_Type
(S
);
6481 end Default_Init_Cond_Procedure
;
6483 ---------------------
6484 -- Designated_Type --
6485 ---------------------
6487 function Designated_Type
(Id
: E
) return E
is
6491 Desig_Type
:= Directly_Designated_Type
(Id
);
6493 if Ekind
(Desig_Type
) = E_Incomplete_Type
6494 and then Present
(Full_View
(Desig_Type
))
6496 return Full_View
(Desig_Type
);
6498 elsif Is_Class_Wide_Type
(Desig_Type
)
6499 and then Ekind
(Etype
(Desig_Type
)) = E_Incomplete_Type
6500 and then Present
(Full_View
(Etype
(Desig_Type
)))
6501 and then Present
(Class_Wide_Type
(Full_View
(Etype
(Desig_Type
))))
6503 return Class_Wide_Type
(Full_View
(Etype
(Desig_Type
)));
6508 end Designated_Type
;
6510 ----------------------
6511 -- Entry_Index_Type --
6512 ----------------------
6514 function Entry_Index_Type
(Id
: E
) return N
is
6516 pragma Assert
(Ekind
(Id
) = E_Entry_Family
);
6517 return Etype
(Discrete_Subtype_Definition
(Parent
(Id
)));
6518 end Entry_Index_Type
;
6520 ---------------------
6521 -- First_Component --
6522 ---------------------
6524 function First_Component
(Id
: E
) return E
is
6529 (Is_Record_Type
(Id
) or else Is_Incomplete_Or_Private_Type
(Id
));
6531 Comp_Id
:= First_Entity
(Id
);
6532 while Present
(Comp_Id
) loop
6533 exit when Ekind
(Comp_Id
) = E_Component
;
6534 Comp_Id
:= Next_Entity
(Comp_Id
);
6538 end First_Component
;
6540 -------------------------------------
6541 -- First_Component_Or_Discriminant --
6542 -------------------------------------
6544 function First_Component_Or_Discriminant
(Id
: E
) return E
is
6549 (Is_Record_Type
(Id
)
6550 or else Is_Incomplete_Or_Private_Type
(Id
)
6551 or else Has_Discriminants
(Id
));
6553 Comp_Id
:= First_Entity
(Id
);
6554 while Present
(Comp_Id
) loop
6555 exit when Ekind_In
(Comp_Id
, E_Component
, E_Discriminant
);
6556 Comp_Id
:= Next_Entity
(Comp_Id
);
6560 end First_Component_Or_Discriminant
;
6566 function First_Formal
(Id
: E
) return E
is
6571 (Is_Overloadable
(Id
)
6572 or else Ekind_In
(Id
, E_Entry_Family
,
6574 E_Subprogram_Type
));
6576 if Ekind
(Id
) = E_Enumeration_Literal
then
6580 Formal
:= First_Entity
(Id
);
6582 if Present
(Formal
) and then Is_Formal
(Formal
) then
6590 ------------------------------
6591 -- First_Formal_With_Extras --
6592 ------------------------------
6594 function First_Formal_With_Extras
(Id
: E
) return E
is
6599 (Is_Overloadable
(Id
)
6600 or else Ekind_In
(Id
, E_Entry_Family
,
6602 E_Subprogram_Type
));
6604 if Ekind
(Id
) = E_Enumeration_Literal
then
6608 Formal
:= First_Entity
(Id
);
6610 if Present
(Formal
) and then Is_Formal
(Formal
) then
6613 return Extra_Formals
(Id
); -- Empty if no extra formals
6616 end First_Formal_With_Extras
;
6618 -------------------------------------
6619 -- Get_Attribute_Definition_Clause --
6620 -------------------------------------
6622 function Get_Attribute_Definition_Clause
6624 Id
: Attribute_Id
) return Node_Id
6629 N
:= First_Rep_Item
(E
);
6630 while Present
(N
) loop
6631 if Nkind
(N
) = N_Attribute_Definition_Clause
6632 and then Get_Attribute_Id
(Chars
(N
)) = Id
6641 end Get_Attribute_Definition_Clause
;
6647 function Get_Full_View
(T
: Entity_Id
) return Entity_Id
is
6649 if Ekind
(T
) = E_Incomplete_Type
and then Present
(Full_View
(T
)) then
6650 return Full_View
(T
);
6652 elsif Is_Class_Wide_Type
(T
)
6653 and then Ekind
(Root_Type
(T
)) = E_Incomplete_Type
6654 and then Present
(Full_View
(Root_Type
(T
)))
6656 return Class_Wide_Type
(Full_View
(Root_Type
(T
)));
6667 function Get_Pragma
(E
: Entity_Id
; Id
: Pragma_Id
) return Node_Id
is
6668 Is_CDG
: constant Boolean :=
6669 Id
= Pragma_Abstract_State
or else
6670 Id
= Pragma_Async_Readers
or else
6671 Id
= Pragma_Async_Writers
or else
6672 Id
= Pragma_Depends
or else
6673 Id
= Pragma_Effective_Reads
or else
6674 Id
= Pragma_Effective_Writes
or else
6675 Id
= Pragma_Global
or else
6676 Id
= Pragma_Initial_Condition
or else
6677 Id
= Pragma_Initializes
or else
6678 Id
= Pragma_Part_Of
or else
6679 Id
= Pragma_Refined_Depends
or else
6680 Id
= Pragma_Refined_Global
or else
6681 Id
= Pragma_Refined_State
;
6682 Is_CTC
: constant Boolean :=
6683 Id
= Pragma_Contract_Cases
or else
6684 Id
= Pragma_Test_Case
;
6685 Is_PPC
: constant Boolean :=
6686 Id
= Pragma_Precondition
or else
6687 Id
= Pragma_Postcondition
or else
6688 Id
= Pragma_Refined_Post
;
6690 In_Contract
: constant Boolean := Is_CDG
or Is_CTC
or Is_PPC
;
6696 -- Handle pragmas that appear in N_Contract nodes. Those have to be
6697 -- extracted from their specialized list.
6700 Items
:= Contract
(E
);
6706 Item
:= Classifications
(Items
);
6709 Item
:= Contract_Test_Cases
(Items
);
6712 Item
:= Pre_Post_Conditions
(Items
);
6718 Item
:= First_Rep_Item
(E
);
6721 while Present
(Item
) loop
6722 if Nkind
(Item
) = N_Pragma
6723 and then Get_Pragma_Id
(Pragma_Name
(Item
)) = Id
6727 -- All nodes in N_Contract are chained using Next_Pragma
6729 elsif In_Contract
then
6730 Item
:= Next_Pragma
(Item
);
6735 Next_Rep_Item
(Item
);
6742 --------------------------------------
6743 -- Get_Record_Representation_Clause --
6744 --------------------------------------
6746 function Get_Record_Representation_Clause
(E
: Entity_Id
) return Node_Id
is
6750 N
:= First_Rep_Item
(E
);
6751 while Present
(N
) loop
6752 if Nkind
(N
) = N_Record_Representation_Clause
then
6760 end Get_Record_Representation_Clause
;
6762 ------------------------
6763 -- Has_Attach_Handler --
6764 ------------------------
6766 function Has_Attach_Handler
(Id
: E
) return B
is
6770 pragma Assert
(Is_Protected_Type
(Id
));
6772 Ritem
:= First_Rep_Item
(Id
);
6773 while Present
(Ritem
) loop
6774 if Nkind
(Ritem
) = N_Pragma
6775 and then Pragma_Name
(Ritem
) = Name_Attach_Handler
6779 Next_Rep_Item
(Ritem
);
6784 end Has_Attach_Handler
;
6790 function Has_Entries
(Id
: E
) return B
is
6794 pragma Assert
(Is_Concurrent_Type
(Id
));
6796 Ent
:= First_Entity
(Id
);
6797 while Present
(Ent
) loop
6798 if Is_Entry
(Ent
) then
6802 Ent
:= Next_Entity
(Ent
);
6808 ----------------------------
6809 -- Has_Foreign_Convention --
6810 ----------------------------
6812 function Has_Foreign_Convention
(Id
: E
) return B
is
6814 -- While regular Intrinsics such as the Standard operators fit in the
6815 -- "Ada" convention, those with an Interface_Name materialize GCC
6816 -- builtin imports for which Ada special treatments shouldn't apply.
6818 return Convention
(Id
) in Foreign_Convention
6819 or else (Convention
(Id
) = Convention_Intrinsic
6820 and then Present
(Interface_Name
(Id
)));
6821 end Has_Foreign_Convention
;
6823 ---------------------------
6824 -- Has_Interrupt_Handler --
6825 ---------------------------
6827 function Has_Interrupt_Handler
(Id
: E
) return B
is
6831 pragma Assert
(Is_Protected_Type
(Id
));
6833 Ritem
:= First_Rep_Item
(Id
);
6834 while Present
(Ritem
) loop
6835 if Nkind
(Ritem
) = N_Pragma
6836 and then Pragma_Name
(Ritem
) = Name_Interrupt_Handler
6840 Next_Rep_Item
(Ritem
);
6845 end Has_Interrupt_Handler
;
6847 -----------------------------
6848 -- Has_Non_Null_Refinement --
6849 -----------------------------
6851 function Has_Non_Null_Refinement
(Id
: E
) return B
is
6853 -- "Refinement" is a concept applicable only to abstract states
6855 pragma Assert
(Ekind
(Id
) = E_Abstract_State
);
6857 if Has_Visible_Refinement
(Id
) then
6858 pragma Assert
(Present
(Refinement_Constituents
(Id
)));
6860 -- For a refinement to be non-null, the first constituent must be
6861 -- anything other than null.
6864 Nkind
(Node
(First_Elmt
(Refinement_Constituents
(Id
)))) /= N_Null
;
6868 end Has_Non_Null_Refinement
;
6870 -----------------------------
6871 -- Has_Null_Abstract_State --
6872 -----------------------------
6874 function Has_Null_Abstract_State
(Id
: E
) return B
is
6876 pragma Assert
(Ekind_In
(Id
, E_Generic_Package
, E_Package
));
6879 Present
(Abstract_States
(Id
))
6880 and then Is_Null_State
(Node
(First_Elmt
(Abstract_States
(Id
))));
6881 end Has_Null_Abstract_State
;
6883 -------------------------
6884 -- Has_Null_Refinement --
6885 -------------------------
6887 function Has_Null_Refinement
(Id
: E
) return B
is
6889 -- "Refinement" is a concept applicable only to abstract states
6891 pragma Assert
(Ekind
(Id
) = E_Abstract_State
);
6893 if Has_Visible_Refinement
(Id
) then
6894 pragma Assert
(Present
(Refinement_Constituents
(Id
)));
6896 -- For a refinement to be null, the state's sole constituent must be
6900 Nkind
(Node
(First_Elmt
(Refinement_Constituents
(Id
)))) = N_Null
;
6904 end Has_Null_Refinement
;
6906 --------------------
6907 -- Has_Unmodified --
6908 --------------------
6910 function Has_Unmodified
(E
: Entity_Id
) return Boolean is
6912 if Has_Pragma_Unmodified
(E
) then
6914 elsif Warnings_Off
(E
) then
6915 Set_Warnings_Off_Used_Unmodified
(E
);
6922 ---------------------
6923 -- Has_Unreferenced --
6924 ---------------------
6926 function Has_Unreferenced
(E
: Entity_Id
) return Boolean is
6928 if Has_Pragma_Unreferenced
(E
) then
6930 elsif Warnings_Off
(E
) then
6931 Set_Warnings_Off_Used_Unreferenced
(E
);
6936 end Has_Unreferenced
;
6938 ----------------------
6939 -- Has_Warnings_Off --
6940 ----------------------
6942 function Has_Warnings_Off
(E
: Entity_Id
) return Boolean is
6944 if Warnings_Off
(E
) then
6945 Set_Warnings_Off_Used
(E
);
6950 end Has_Warnings_Off
;
6952 ------------------------------
6953 -- Implementation_Base_Type --
6954 ------------------------------
6956 function Implementation_Base_Type
(Id
: E
) return E
is
6961 Bastyp
:= Base_Type
(Id
);
6963 if Is_Incomplete_Or_Private_Type
(Bastyp
) then
6964 Imptyp
:= Underlying_Type
(Bastyp
);
6966 -- If we have an implementation type, then just return it,
6967 -- otherwise we return the Base_Type anyway. This can only
6968 -- happen in error situations and should avoid some error bombs.
6970 if Present
(Imptyp
) then
6971 return Base_Type
(Imptyp
);
6979 end Implementation_Base_Type
;
6981 -------------------------
6982 -- Invariant_Procedure --
6983 -------------------------
6985 function Invariant_Procedure
(Id
: E
) return E
is
6989 pragma Assert
(Is_Type
(Id
) and then Has_Invariants
(Id
));
6991 if No
(Subprograms_For_Type
(Id
)) then
6995 S
:= Subprograms_For_Type
(Id
);
6996 while Present
(S
) loop
6997 if Is_Invariant_Procedure
(S
) then
7000 S
:= Subprograms_For_Type
(S
);
7006 end Invariant_Procedure
;
7012 -- Global flag table allowing rapid computation of this function
7014 Entity_Is_Base_Type
: constant array (Entity_Kind
) of Boolean :=
7015 (E_Enumeration_Subtype |
7017 E_Signed_Integer_Subtype |
7018 E_Modular_Integer_Subtype |
7019 E_Floating_Point_Subtype |
7020 E_Ordinary_Fixed_Point_Subtype |
7021 E_Decimal_Fixed_Point_Subtype |
7026 E_Record_Subtype_With_Private |
7027 E_Limited_Private_Subtype |
7029 E_Protected_Subtype |
7031 E_String_Literal_Subtype |
7032 E_Class_Wide_Subtype
=> False,
7035 function Is_Base_Type
(Id
: E
) return Boolean is
7037 return Entity_Is_Base_Type
(Ekind
(Id
));
7040 ---------------------
7041 -- Is_Boolean_Type --
7042 ---------------------
7044 function Is_Boolean_Type
(Id
: E
) return B
is
7046 return Root_Type
(Id
) = Standard_Boolean
;
7047 end Is_Boolean_Type
;
7049 ------------------------
7050 -- Is_Constant_Object --
7051 ------------------------
7053 function Is_Constant_Object
(Id
: E
) return B
is
7054 K
: constant Entity_Kind
:= Ekind
(Id
);
7057 K
= E_Constant
or else K
= E_In_Parameter
or else K
= E_Loop_Parameter
;
7058 end Is_Constant_Object
;
7060 --------------------
7061 -- Is_Discriminal --
7062 --------------------
7064 function Is_Discriminal
(Id
: E
) return B
is
7066 return (Ekind_In
(Id
, E_Constant
, E_In_Parameter
)
7067 and then Present
(Discriminal_Link
(Id
)));
7070 ----------------------
7071 -- Is_Dynamic_Scope --
7072 ----------------------
7074 function Is_Dynamic_Scope
(Id
: E
) return B
is
7077 Ekind
(Id
) = E_Block
7079 Ekind
(Id
) = E_Function
7081 Ekind
(Id
) = E_Procedure
7083 Ekind
(Id
) = E_Subprogram_Body
7085 Ekind
(Id
) = E_Task_Type
7087 (Ekind
(Id
) = E_Limited_Private_Type
7088 and then Present
(Full_View
(Id
))
7089 and then Ekind
(Full_View
(Id
)) = E_Task_Type
)
7091 Ekind
(Id
) = E_Entry
7093 Ekind
(Id
) = E_Entry_Family
7095 Ekind
(Id
) = E_Return_Statement
;
7096 end Is_Dynamic_Scope
;
7098 --------------------
7099 -- Is_Entity_Name --
7100 --------------------
7102 function Is_Entity_Name
(N
: Node_Id
) return Boolean is
7103 Kind
: constant Node_Kind
:= Nkind
(N
);
7106 -- Identifiers, operator symbols, expanded names are entity names
7108 return Kind
= N_Identifier
7109 or else Kind
= N_Operator_Symbol
7110 or else Kind
= N_Expanded_Name
7112 -- Attribute references are entity names if they refer to an entity.
7113 -- Note that we don't do this by testing for the presence of the
7114 -- Entity field in the N_Attribute_Reference node, since it may not
7115 -- have been set yet.
7117 or else (Kind
= N_Attribute_Reference
7118 and then Is_Entity_Attribute_Name
(Attribute_Name
(N
)));
7121 -----------------------
7122 -- Is_External_State --
7123 -----------------------
7125 function Is_External_State
(Id
: E
) return B
is
7128 Ekind
(Id
) = E_Abstract_State
and then Has_Option
(Id
, Name_External
);
7129 end Is_External_State
;
7135 function Is_Finalizer
(Id
: E
) return B
is
7137 return Ekind
(Id
) = E_Procedure
and then Chars
(Id
) = Name_uFinalizer
;
7140 ---------------------
7141 -- Is_Ghost_Entity --
7142 ---------------------
7144 -- Note: coding below allows for ghost variables. They are not currently
7145 -- implemented, so we will always get False for variables, but that is
7146 -- expected to change in the future.
7148 function Is_Ghost_Entity
(Id
: E
) return B
is
7150 if Present
(Id
) and then Ekind
(Id
) = E_Variable
then
7151 return Convention
(Id
) = Convention_Ghost
;
7153 return Is_Ghost_Subprogram
(Id
);
7155 end Is_Ghost_Entity
;
7157 -------------------------
7158 -- Is_Ghost_Subprogram --
7159 -------------------------
7161 function Is_Ghost_Subprogram
(Id
: E
) return B
is
7163 if Present
(Id
) and then Ekind_In
(Id
, E_Function
, E_Procedure
) then
7164 return Convention
(Id
) = Convention_Ghost
;
7168 end Is_Ghost_Subprogram
;
7174 function Is_Null_State
(Id
: E
) return B
is
7177 Ekind
(Id
) = E_Abstract_State
and then Nkind
(Parent
(Id
)) = N_Null
;
7180 ---------------------
7181 -- Is_Packed_Array --
7182 ---------------------
7184 function Is_Packed_Array
(Id
: E
) return B
is
7186 return Is_Array_Type
(Id
) and then Is_Packed
(Id
);
7187 end Is_Packed_Array
;
7189 -----------------------------------
7190 -- Is_Package_Or_Generic_Package --
7191 -----------------------------------
7193 function Is_Package_Or_Generic_Package
(Id
: E
) return B
is
7195 return Ekind_In
(Id
, E_Generic_Package
, E_Package
);
7196 end Is_Package_Or_Generic_Package
;
7202 function Is_Prival
(Id
: E
) return B
is
7204 return (Ekind_In
(Id
, E_Constant
, E_Variable
)
7205 and then Present
(Prival_Link
(Id
)));
7208 ----------------------------
7209 -- Is_Protected_Component --
7210 ----------------------------
7212 function Is_Protected_Component
(Id
: E
) return B
is
7214 return Ekind
(Id
) = E_Component
and then Is_Protected_Type
(Scope
(Id
));
7215 end Is_Protected_Component
;
7217 ----------------------------
7218 -- Is_Protected_Interface --
7219 ----------------------------
7221 function Is_Protected_Interface
(Id
: E
) return B
is
7222 Typ
: constant Entity_Id
:= Base_Type
(Id
);
7224 if not Is_Interface
(Typ
) then
7226 elsif Is_Class_Wide_Type
(Typ
) then
7227 return Is_Protected_Interface
(Etype
(Typ
));
7229 return Protected_Present
(Type_Definition
(Parent
(Typ
)));
7231 end Is_Protected_Interface
;
7233 ------------------------------
7234 -- Is_Protected_Record_Type --
7235 ------------------------------
7237 function Is_Protected_Record_Type
(Id
: E
) return B
is
7240 Is_Concurrent_Record_Type
(Id
)
7241 and then Is_Protected_Type
(Corresponding_Concurrent_Type
(Id
));
7242 end Is_Protected_Record_Type
;
7244 --------------------------------
7245 -- Is_Standard_Character_Type --
7246 --------------------------------
7248 function Is_Standard_Character_Type
(Id
: E
) return B
is
7250 if Is_Type
(Id
) then
7252 R
: constant Entity_Id
:= Root_Type
(Id
);
7255 R
= Standard_Character
7257 R
= Standard_Wide_Character
7259 R
= Standard_Wide_Wide_Character
;
7265 end Is_Standard_Character_Type
;
7267 -----------------------------
7268 -- Is_Standard_String_Type --
7269 -----------------------------
7271 function Is_Standard_String_Type
(Id
: E
) return B
is
7273 if Is_Type
(Id
) then
7275 R
: constant Entity_Id
:= Root_Type
(Id
);
7280 R
= Standard_Wide_String
7282 R
= Standard_Wide_Wide_String
;
7288 end Is_Standard_String_Type
;
7290 --------------------
7291 -- Is_String_Type --
7292 --------------------
7294 function Is_String_Type
(Id
: E
) return B
is
7296 return Is_Array_Type
(Id
)
7297 and then Id
/= Any_Composite
7298 and then Number_Dimensions
(Id
) = 1
7299 and then Is_Character_Type
(Component_Type
(Id
));
7302 -------------------------------
7303 -- Is_Synchronized_Interface --
7304 -------------------------------
7306 function Is_Synchronized_Interface
(Id
: E
) return B
is
7307 Typ
: constant Entity_Id
:= Base_Type
(Id
);
7310 if not Is_Interface
(Typ
) then
7313 elsif Is_Class_Wide_Type
(Typ
) then
7314 return Is_Synchronized_Interface
(Etype
(Typ
));
7317 return Protected_Present
(Type_Definition
(Parent
(Typ
)))
7318 or else Synchronized_Present
(Type_Definition
(Parent
(Typ
)))
7319 or else Task_Present
(Type_Definition
(Parent
(Typ
)));
7321 end Is_Synchronized_Interface
;
7323 -----------------------
7324 -- Is_Task_Interface --
7325 -----------------------
7327 function Is_Task_Interface
(Id
: E
) return B
is
7328 Typ
: constant Entity_Id
:= Base_Type
(Id
);
7330 if not Is_Interface
(Typ
) then
7332 elsif Is_Class_Wide_Type
(Typ
) then
7333 return Is_Task_Interface
(Etype
(Typ
));
7335 return Task_Present
(Type_Definition
(Parent
(Typ
)));
7337 end Is_Task_Interface
;
7339 -------------------------
7340 -- Is_Task_Record_Type --
7341 -------------------------
7343 function Is_Task_Record_Type
(Id
: E
) return B
is
7346 Is_Concurrent_Record_Type
(Id
)
7347 and then Is_Task_Type
(Corresponding_Concurrent_Type
(Id
));
7348 end Is_Task_Record_Type
;
7350 ------------------------
7351 -- Is_Wrapper_Package --
7352 ------------------------
7354 function Is_Wrapper_Package
(Id
: E
) return B
is
7356 return (Ekind
(Id
) = E_Package
and then Present
(Related_Instance
(Id
)));
7357 end Is_Wrapper_Package
;
7363 function Last_Formal
(Id
: E
) return E
is
7368 (Is_Overloadable
(Id
)
7369 or else Ekind_In
(Id
, E_Entry_Family
,
7371 E_Subprogram_Type
));
7373 if Ekind
(Id
) = E_Enumeration_Literal
then
7377 Formal
:= First_Formal
(Id
);
7379 if Present
(Formal
) then
7380 while Present
(Next_Formal
(Formal
)) loop
7381 Formal
:= Next_Formal
(Formal
);
7389 function Model_Emin_Value
(Id
: E
) return Uint
is
7391 return Machine_Emin_Value
(Id
);
7392 end Model_Emin_Value
;
7394 -------------------------
7395 -- Model_Epsilon_Value --
7396 -------------------------
7398 function Model_Epsilon_Value
(Id
: E
) return Ureal
is
7399 Radix
: constant Ureal
:= UR_From_Uint
(Machine_Radix_Value
(Id
));
7401 return Radix
** (1 - Model_Mantissa_Value
(Id
));
7402 end Model_Epsilon_Value
;
7404 --------------------------
7405 -- Model_Mantissa_Value --
7406 --------------------------
7408 function Model_Mantissa_Value
(Id
: E
) return Uint
is
7410 return Machine_Mantissa_Value
(Id
);
7411 end Model_Mantissa_Value
;
7413 -----------------------
7414 -- Model_Small_Value --
7415 -----------------------
7417 function Model_Small_Value
(Id
: E
) return Ureal
is
7418 Radix
: constant Ureal
:= UR_From_Uint
(Machine_Radix_Value
(Id
));
7420 return Radix
** (Model_Emin_Value
(Id
) - 1);
7421 end Model_Small_Value
;
7423 ------------------------
7424 -- Machine_Emax_Value --
7425 ------------------------
7427 function Machine_Emax_Value
(Id
: E
) return Uint
is
7428 Digs
: constant Pos
:= UI_To_Int
(Digits_Value
(Base_Type
(Id
)));
7431 case Float_Rep
(Id
) is
7434 when 1 .. 6 => return Uint_128
;
7435 when 7 .. 15 => return 2**10;
7436 when 16 .. 33 => return 2**14;
7437 when others => return No_Uint
;
7441 return Uint_2
** Uint_7
- Uint_1
;
7443 end Machine_Emax_Value
;
7445 ------------------------
7446 -- Machine_Emin_Value --
7447 ------------------------
7449 function Machine_Emin_Value
(Id
: E
) return Uint
is
7451 case Float_Rep
(Id
) is
7452 when IEEE_Binary
=> return Uint_3
- Machine_Emax_Value
(Id
);
7453 when AAMP
=> return -Machine_Emax_Value
(Id
);
7455 end Machine_Emin_Value
;
7457 ----------------------------
7458 -- Machine_Mantissa_Value --
7459 ----------------------------
7461 function Machine_Mantissa_Value
(Id
: E
) return Uint
is
7462 Digs
: constant Pos
:= UI_To_Int
(Digits_Value
(Base_Type
(Id
)));
7465 case Float_Rep
(Id
) is
7468 when 1 .. 6 => return Uint_24
;
7469 when 7 .. 15 => return UI_From_Int
(53);
7470 when 16 .. 18 => return Uint_64
;
7471 when 19 .. 33 => return UI_From_Int
(113);
7472 when others => return No_Uint
;
7477 when 1 .. 6 => return Uint_24
;
7478 when 7 .. 9 => return UI_From_Int
(40);
7479 when others => return No_Uint
;
7482 end Machine_Mantissa_Value
;
7484 -------------------------
7485 -- Machine_Radix_Value --
7486 -------------------------
7488 function Machine_Radix_Value
(Id
: E
) return U
is
7490 case Float_Rep
(Id
) is
7491 when IEEE_Binary | AAMP
=>
7494 end Machine_Radix_Value
;
7496 --------------------
7497 -- Next_Component --
7498 --------------------
7500 function Next_Component
(Id
: E
) return E
is
7504 Comp_Id
:= Next_Entity
(Id
);
7505 while Present
(Comp_Id
) loop
7506 exit when Ekind
(Comp_Id
) = E_Component
;
7507 Comp_Id
:= Next_Entity
(Comp_Id
);
7513 ------------------------------------
7514 -- Next_Component_Or_Discriminant --
7515 ------------------------------------
7517 function Next_Component_Or_Discriminant
(Id
: E
) return E
is
7521 Comp_Id
:= Next_Entity
(Id
);
7522 while Present
(Comp_Id
) loop
7523 exit when Ekind_In
(Comp_Id
, E_Component
, E_Discriminant
);
7524 Comp_Id
:= Next_Entity
(Comp_Id
);
7528 end Next_Component_Or_Discriminant
;
7530 -----------------------
7531 -- Next_Discriminant --
7532 -----------------------
7534 -- This function actually implements both Next_Discriminant and
7535 -- Next_Stored_Discriminant by making sure that the Discriminant
7536 -- returned is of the same variety as Id.
7538 function Next_Discriminant
(Id
: E
) return E
is
7540 -- Derived Tagged types with private extensions look like this...
7542 -- E_Discriminant d1
7543 -- E_Discriminant d2
7545 -- E_Discriminant d1
7546 -- E_Discriminant d2
7549 -- so it is critical not to go past the leading discriminants
7554 pragma Assert
(Ekind
(Id
) = E_Discriminant
);
7557 D
:= Next_Entity
(D
);
7559 or else (Ekind
(D
) /= E_Discriminant
7560 and then not Is_Itype
(D
))
7565 exit when Ekind
(D
) = E_Discriminant
7566 and then (Is_Completely_Hidden
(D
) = Is_Completely_Hidden
(Id
));
7570 end Next_Discriminant
;
7576 function Next_Formal
(Id
: E
) return E
is
7580 -- Follow the chain of declared entities as long as the kind of the
7581 -- entity corresponds to a formal parameter. Skip internal entities
7582 -- that may have been created for implicit subtypes, in the process
7583 -- of analyzing default expressions.
7587 P
:= Next_Entity
(P
);
7589 if No
(P
) or else Is_Formal
(P
) then
7591 elsif not Is_Internal
(P
) then
7597 -----------------------------
7598 -- Next_Formal_With_Extras --
7599 -----------------------------
7601 function Next_Formal_With_Extras
(Id
: E
) return E
is
7603 if Present
(Extra_Formal
(Id
)) then
7604 return Extra_Formal
(Id
);
7606 return Next_Formal
(Id
);
7608 end Next_Formal_With_Extras
;
7614 function Next_Index
(Id
: Node_Id
) return Node_Id
is
7623 function Next_Literal
(Id
: E
) return E
is
7625 pragma Assert
(Nkind
(Id
) in N_Entity
);
7629 ------------------------------
7630 -- Next_Stored_Discriminant --
7631 ------------------------------
7633 function Next_Stored_Discriminant
(Id
: E
) return E
is
7635 -- See comment in Next_Discriminant
7637 return Next_Discriminant
(Id
);
7638 end Next_Stored_Discriminant
;
7640 -----------------------
7641 -- Number_Dimensions --
7642 -----------------------
7644 function Number_Dimensions
(Id
: E
) return Pos
is
7649 if Ekind
(Id
) = E_String_Literal_Subtype
then
7654 T
:= First_Index
(Id
);
7655 while Present
(T
) loop
7662 end Number_Dimensions
;
7664 --------------------
7665 -- Number_Entries --
7666 --------------------
7668 function Number_Entries
(Id
: E
) return Nat
is
7673 pragma Assert
(Is_Concurrent_Type
(Id
));
7676 Ent
:= First_Entity
(Id
);
7677 while Present
(Ent
) loop
7678 if Is_Entry
(Ent
) then
7682 Ent
:= Next_Entity
(Ent
);
7688 --------------------
7689 -- Number_Formals --
7690 --------------------
7692 function Number_Formals
(Id
: E
) return Pos
is
7698 Formal
:= First_Formal
(Id
);
7699 while Present
(Formal
) loop
7701 Formal
:= Next_Formal
(Formal
);
7707 --------------------
7708 -- Parameter_Mode --
7709 --------------------
7711 function Parameter_Mode
(Id
: E
) return Formal_Kind
is
7716 ------------------------
7717 -- Predicate_Function --
7718 ------------------------
7720 function Predicate_Function
(Id
: E
) return E
is
7725 pragma Assert
(Is_Type
(Id
));
7727 -- If type is private and has a completion, predicate may be defined
7728 -- on the full view.
7730 if Is_Private_Type
(Id
) and then Present
(Full_View
(Id
)) then
7731 T
:= Full_View
(Id
);
7736 if No
(Subprograms_For_Type
(T
)) then
7740 S
:= Subprograms_For_Type
(T
);
7741 while Present
(S
) loop
7742 if Is_Predicate_Function
(S
) then
7745 S
:= Subprograms_For_Type
(S
);
7751 end Predicate_Function
;
7753 --------------------------
7754 -- Predicate_Function_M --
7755 --------------------------
7757 function Predicate_Function_M
(Id
: E
) return E
is
7762 pragma Assert
(Is_Type
(Id
));
7764 -- If type is private and has a completion, predicate may be defined
7765 -- on the full view.
7767 if Is_Private_Type
(Id
) and then Present
(Full_View
(Id
)) then
7768 T
:= Full_View
(Id
);
7773 if No
(Subprograms_For_Type
(T
)) then
7777 S
:= Subprograms_For_Type
(T
);
7778 while Present
(S
) loop
7779 if Is_Predicate_Function_M
(S
) then
7782 S
:= Subprograms_For_Type
(S
);
7788 end Predicate_Function_M
;
7790 -------------------------
7791 -- Present_In_Rep_Item --
7792 -------------------------
7794 function Present_In_Rep_Item
(E
: Entity_Id
; N
: Node_Id
) return Boolean is
7798 Ritem
:= First_Rep_Item
(E
);
7800 while Present
(Ritem
) loop
7805 Next_Rep_Item
(Ritem
);
7809 end Present_In_Rep_Item
;
7811 --------------------------
7812 -- Primitive_Operations --
7813 --------------------------
7815 function Primitive_Operations
(Id
: E
) return L
is
7817 if Is_Concurrent_Type
(Id
) then
7818 if Present
(Corresponding_Record_Type
(Id
)) then
7819 return Direct_Primitive_Operations
7820 (Corresponding_Record_Type
(Id
));
7822 -- If expansion is disabled the corresponding record type is absent,
7823 -- but if the type has ancestors it may have primitive operations.
7825 elsif Is_Tagged_Type
(Id
) then
7826 return Direct_Primitive_Operations
(Id
);
7832 return Direct_Primitive_Operations
(Id
);
7834 end Primitive_Operations
;
7836 ---------------------
7837 -- Record_Rep_Item --
7838 ---------------------
7840 procedure Record_Rep_Item
(E
: Entity_Id
; N
: Node_Id
) is
7842 Set_Next_Rep_Item
(N
, First_Rep_Item
(E
));
7843 Set_First_Rep_Item
(E
, N
);
7844 end Record_Rep_Item
;
7850 function Root_Type
(Id
: E
) return E
is
7854 pragma Assert
(Nkind
(Id
) in N_Entity
);
7856 T
:= Base_Type
(Id
);
7858 if Ekind
(T
) = E_Class_Wide_Type
then
7870 -- Following test catches some error cases resulting from
7873 elsif No
(Etyp
) then
7874 Check_Error_Detected
;
7877 elsif Is_Private_Type
(T
) and then Etyp
= Full_View
(T
) then
7880 elsif Is_Private_Type
(Etyp
) and then Full_View
(Etyp
) = T
then
7886 -- Return if there is a circularity in the inheritance chain. This
7887 -- happens in some error situations and we do not want to get
7888 -- stuck in this loop.
7890 if T
= Base_Type
(Id
) then
7897 ---------------------
7898 -- Safe_Emax_Value --
7899 ---------------------
7901 function Safe_Emax_Value
(Id
: E
) return Uint
is
7903 return Machine_Emax_Value
(Id
);
7904 end Safe_Emax_Value
;
7906 ----------------------
7907 -- Safe_First_Value --
7908 ----------------------
7910 function Safe_First_Value
(Id
: E
) return Ureal
is
7912 return -Safe_Last_Value
(Id
);
7913 end Safe_First_Value
;
7915 ---------------------
7916 -- Safe_Last_Value --
7917 ---------------------
7919 function Safe_Last_Value
(Id
: E
) return Ureal
is
7920 Radix
: constant Uint
:= Machine_Radix_Value
(Id
);
7921 Mantissa
: constant Uint
:= Machine_Mantissa_Value
(Id
);
7922 Emax
: constant Uint
:= Safe_Emax_Value
(Id
);
7923 Significand
: constant Uint
:= Radix
** Mantissa
- 1;
7924 Exponent
: constant Uint
:= Emax
- Mantissa
;
7930 (Num
=> Significand
* 2 ** (Exponent
mod 4),
7931 Den
=> -Exponent
/ 4,
7936 (Num
=> Significand
,
7940 end Safe_Last_Value
;
7946 function Scope_Depth
(Id
: E
) return Uint
is
7951 while Is_Record_Type
(Scop
) loop
7952 Scop
:= Scope
(Scop
);
7955 return Scope_Depth_Value
(Scop
);
7958 ---------------------
7959 -- Scope_Depth_Set --
7960 ---------------------
7962 function Scope_Depth_Set
(Id
: E
) return B
is
7964 return not Is_Record_Type
(Id
)
7965 and then Field22
(Id
) /= Union_Id
(Empty
);
7966 end Scope_Depth_Set
;
7968 -----------------------------
7969 -- Set_Component_Alignment --
7970 -----------------------------
7972 -- Component Alignment is encoded using two flags, Flag128/129 as
7973 -- follows. Note that both flags False = Align_Default, so that the
7974 -- default initialization of flags to False initializes component
7975 -- alignment to the default value as required.
7977 -- Flag128 Flag129 Value
7978 -- ------- ------- -----
7979 -- False False Calign_Default
7980 -- False True Calign_Component_Size
7981 -- True False Calign_Component_Size_4
7982 -- True True Calign_Storage_Unit
7984 procedure Set_Component_Alignment
(Id
: E
; V
: C
) is
7986 pragma Assert
((Is_Array_Type
(Id
) or else Is_Record_Type
(Id
))
7987 and then Is_Base_Type
(Id
));
7990 when Calign_Default
=>
7991 Set_Flag128
(Id
, False);
7992 Set_Flag129
(Id
, False);
7994 when Calign_Component_Size
=>
7995 Set_Flag128
(Id
, False);
7996 Set_Flag129
(Id
, True);
7998 when Calign_Component_Size_4
=>
7999 Set_Flag128
(Id
, True);
8000 Set_Flag129
(Id
, False);
8002 when Calign_Storage_Unit
=>
8003 Set_Flag128
(Id
, True);
8004 Set_Flag129
(Id
, True);
8006 end Set_Component_Alignment
;
8008 -------------------------------------
8009 -- Set_Default_Init_Cond_Procedure --
8010 -------------------------------------
8012 procedure Set_Default_Init_Cond_Procedure
(Id
: E
; V
: E
) is
8017 (Is_Type
(Id
) and then (Has_Default_Init_Cond
(Id
)
8019 Has_Inherited_Default_Init_Cond
(Id
)));
8021 S
:= Subprograms_For_Type
(Id
);
8022 Set_Subprograms_For_Type
(Id
, V
);
8023 Set_Subprograms_For_Type
(V
, S
);
8025 -- Check for a duplicate procedure
8027 while Present
(S
) loop
8028 if Is_Default_Init_Cond_Procedure
(S
) then
8029 raise Program_Error
;
8032 S
:= Subprograms_For_Type
(S
);
8034 end Set_Default_Init_Cond_Procedure
;
8036 -----------------------------
8037 -- Set_Invariant_Procedure --
8038 -----------------------------
8040 procedure Set_Invariant_Procedure
(Id
: E
; V
: E
) is
8044 pragma Assert
(Is_Type
(Id
) and then Has_Invariants
(Id
));
8046 S
:= Subprograms_For_Type
(Id
);
8047 Set_Subprograms_For_Type
(Id
, V
);
8048 Set_Subprograms_For_Type
(V
, S
);
8050 -- Check for duplicate entry
8052 while Present
(S
) loop
8053 if Is_Invariant_Procedure
(S
) then
8054 raise Program_Error
;
8056 S
:= Subprograms_For_Type
(S
);
8059 end Set_Invariant_Procedure
;
8061 ----------------------------
8062 -- Set_Predicate_Function --
8063 ----------------------------
8065 procedure Set_Predicate_Function
(Id
: E
; V
: E
) is
8069 pragma Assert
(Is_Type
(Id
) and then Has_Predicates
(Id
));
8071 S
:= Subprograms_For_Type
(Id
);
8072 Set_Subprograms_For_Type
(Id
, V
);
8073 Set_Subprograms_For_Type
(V
, S
);
8075 while Present
(S
) loop
8076 if Is_Predicate_Function
(S
) then
8077 raise Program_Error
;
8079 S
:= Subprograms_For_Type
(S
);
8082 end Set_Predicate_Function
;
8084 ------------------------------
8085 -- Set_Predicate_Function_M --
8086 ------------------------------
8088 procedure Set_Predicate_Function_M
(Id
: E
; V
: E
) is
8092 pragma Assert
(Is_Type
(Id
) and then Has_Predicates
(Id
));
8094 S
:= Subprograms_For_Type
(Id
);
8095 Set_Subprograms_For_Type
(Id
, V
);
8096 Set_Subprograms_For_Type
(V
, S
);
8098 -- Check for duplicates
8100 while Present
(S
) loop
8101 if Is_Predicate_Function_M
(S
) then
8102 raise Program_Error
;
8104 S
:= Subprograms_For_Type
(S
);
8107 end Set_Predicate_Function_M
;
8113 function Size_Clause
(Id
: E
) return N
is
8115 return Get_Attribute_Definition_Clause
(Id
, Attribute_Size
);
8118 ------------------------
8119 -- Stream_Size_Clause --
8120 ------------------------
8122 function Stream_Size_Clause
(Id
: E
) return N
is
8124 return Get_Attribute_Definition_Clause
(Id
, Attribute_Stream_Size
);
8125 end Stream_Size_Clause
;
8131 function Subtype_Kind
(K
: Entity_Kind
) return Entity_Kind
is
8137 Kind
:= E_Access_Subtype
;
8141 Kind
:= E_Array_Subtype
;
8143 when E_Class_Wide_Type |
8144 E_Class_Wide_Subtype
=>
8145 Kind
:= E_Class_Wide_Subtype
;
8147 when E_Decimal_Fixed_Point_Type |
8148 E_Decimal_Fixed_Point_Subtype
=>
8149 Kind
:= E_Decimal_Fixed_Point_Subtype
;
8151 when E_Ordinary_Fixed_Point_Type |
8152 E_Ordinary_Fixed_Point_Subtype
=>
8153 Kind
:= E_Ordinary_Fixed_Point_Subtype
;
8155 when E_Private_Type |
8156 E_Private_Subtype
=>
8157 Kind
:= E_Private_Subtype
;
8159 when E_Limited_Private_Type |
8160 E_Limited_Private_Subtype
=>
8161 Kind
:= E_Limited_Private_Subtype
;
8163 when E_Record_Type_With_Private |
8164 E_Record_Subtype_With_Private
=>
8165 Kind
:= E_Record_Subtype_With_Private
;
8167 when E_Record_Type |
8169 Kind
:= E_Record_Subtype
;
8171 when Enumeration_Kind
=>
8172 Kind
:= E_Enumeration_Subtype
;
8175 Kind
:= E_Floating_Point_Subtype
;
8177 when Signed_Integer_Kind
=>
8178 Kind
:= E_Signed_Integer_Subtype
;
8180 when Modular_Integer_Kind
=>
8181 Kind
:= E_Modular_Integer_Subtype
;
8183 when Protected_Kind
=>
8184 Kind
:= E_Protected_Subtype
;
8187 Kind
:= E_Task_Subtype
;
8191 raise Program_Error
;
8197 ---------------------
8198 -- Type_High_Bound --
8199 ---------------------
8201 function Type_High_Bound
(Id
: E
) return Node_Id
is
8202 Rng
: constant Node_Id
:= Scalar_Range
(Id
);
8204 if Nkind
(Rng
) = N_Subtype_Indication
then
8205 return High_Bound
(Range_Expression
(Constraint
(Rng
)));
8207 return High_Bound
(Rng
);
8209 end Type_High_Bound
;
8211 --------------------
8212 -- Type_Low_Bound --
8213 --------------------
8215 function Type_Low_Bound
(Id
: E
) return Node_Id
is
8216 Rng
: constant Node_Id
:= Scalar_Range
(Id
);
8218 if Nkind
(Rng
) = N_Subtype_Indication
then
8219 return Low_Bound
(Range_Expression
(Constraint
(Rng
)));
8221 return Low_Bound
(Rng
);
8225 ---------------------
8226 -- Underlying_Type --
8227 ---------------------
8229 function Underlying_Type
(Id
: E
) return E
is
8231 -- For record_with_private the underlying type is always the direct
8232 -- full view. Never try to take the full view of the parent it
8233 -- doesn't make sense.
8235 if Ekind
(Id
) = E_Record_Type_With_Private
then
8236 return Full_View
(Id
);
8238 elsif Ekind
(Id
) in Incomplete_Or_Private_Kind
then
8240 -- If we have an incomplete or private type with a full view,
8241 -- then we return the Underlying_Type of this full view.
8243 if Present
(Full_View
(Id
)) then
8244 if Id
= Full_View
(Id
) then
8246 -- Previous error in declaration
8251 return Underlying_Type
(Full_View
(Id
));
8254 -- If we have a private type with an underlying full view, then we
8255 -- return the Underlying_Type of this underlying full view.
8257 elsif Ekind
(Id
) in Private_Kind
8258 and then Present
(Underlying_Full_View
(Id
))
8260 return Underlying_Type
(Underlying_Full_View
(Id
));
8262 -- If we have an incomplete entity that comes from the limited
8263 -- view then we return the Underlying_Type of its non-limited
8266 elsif From_Limited_With
(Id
)
8267 and then Present
(Non_Limited_View
(Id
))
8269 return Underlying_Type
(Non_Limited_View
(Id
));
8271 -- Otherwise check for the case where we have a derived type or
8272 -- subtype, and if so get the Underlying_Type of the parent type.
8274 elsif Etype
(Id
) /= Id
then
8275 return Underlying_Type
(Etype
(Id
));
8277 -- Otherwise we have an incomplete or private type that has
8278 -- no full view, which means that we have not encountered the
8279 -- completion, so return Empty to indicate the underlying type
8280 -- is not yet known.
8286 -- For non-incomplete, non-private types, return the type itself Also
8287 -- for entities that are not types at all return the entity itself.
8292 end Underlying_Type
;
8294 ------------------------
8295 -- Write_Entity_Flags --
8296 ------------------------
8298 procedure Write_Entity_Flags
(Id
: Entity_Id
; Prefix
: String) is
8300 procedure W
(Flag_Name
: String; Flag
: Boolean);
8301 -- Write out given flag if it is set
8307 procedure W
(Flag_Name
: String; Flag
: Boolean) is
8311 Write_Str
(Flag_Name
);
8312 Write_Str
(" = True");
8317 -- Start of processing for Write_Entity_Flags
8320 if (Is_Array_Type
(Id
) or else Is_Record_Type
(Id
))
8321 and then Is_Base_Type
(Id
)
8324 Write_Str
("Component_Alignment = ");
8326 case Component_Alignment
(Id
) is
8327 when Calign_Default
=>
8328 Write_Str
("Calign_Default");
8330 when Calign_Component_Size
=>
8331 Write_Str
("Calign_Component_Size");
8333 when Calign_Component_Size_4
=>
8334 Write_Str
("Calign_Component_Size_4");
8336 when Calign_Storage_Unit
=>
8337 Write_Str
("Calign_Storage_Unit");
8343 W
("Address_Taken", Flag104
(Id
));
8344 W
("Body_Needed_For_SAL", Flag40
(Id
));
8345 W
("C_Pass_By_Copy", Flag125
(Id
));
8346 W
("Can_Never_Be_Null", Flag38
(Id
));
8347 W
("Checks_May_Be_Suppressed", Flag31
(Id
));
8348 W
("Debug_Info_Off", Flag166
(Id
));
8349 W
("Default_Expressions_Processed", Flag108
(Id
));
8350 W
("Delay_Cleanups", Flag114
(Id
));
8351 W
("Delay_Subprogram_Descriptors", Flag50
(Id
));
8352 W
("Depends_On_Private", Flag14
(Id
));
8353 W
("Discard_Names", Flag88
(Id
));
8354 W
("Elaboration_Entity_Required", Flag174
(Id
));
8355 W
("Elaborate_Body_Desirable", Flag210
(Id
));
8356 W
("Entry_Accepted", Flag152
(Id
));
8357 W
("Can_Use_Internal_Rep", Flag229
(Id
));
8358 W
("Finalize_Storage_Only", Flag158
(Id
));
8359 W
("From_Limited_With", Flag159
(Id
));
8360 W
("Has_Aliased_Components", Flag135
(Id
));
8361 W
("Has_Alignment_Clause", Flag46
(Id
));
8362 W
("Has_All_Calls_Remote", Flag79
(Id
));
8363 W
("Has_Anonymous_Master", Flag253
(Id
));
8364 W
("Has_Atomic_Components", Flag86
(Id
));
8365 W
("Has_Biased_Representation", Flag139
(Id
));
8366 W
("Has_Completion", Flag26
(Id
));
8367 W
("Has_Completion_In_Body", Flag71
(Id
));
8368 W
("Has_Complex_Representation", Flag140
(Id
));
8369 W
("Has_Component_Size_Clause", Flag68
(Id
));
8370 W
("Has_Contiguous_Rep", Flag181
(Id
));
8371 W
("Has_Controlled_Component", Flag43
(Id
));
8372 W
("Has_Controlling_Result", Flag98
(Id
));
8373 W
("Has_Convention_Pragma", Flag119
(Id
));
8374 W
("Has_Default_Aspect", Flag39
(Id
));
8375 W
("Has_Default_Init_Cond", Flag3
(Id
));
8376 W
("Has_Delayed_Aspects", Flag200
(Id
));
8377 W
("Has_Delayed_Freeze", Flag18
(Id
));
8378 W
("Has_Delayed_Rep_Aspects", Flag261
(Id
));
8379 W
("Has_Discriminants", Flag5
(Id
));
8380 W
("Has_Dispatch_Table", Flag220
(Id
));
8381 W
("Has_Dynamic_Predicate_Aspect", Flag258
(Id
));
8382 W
("Has_Enumeration_Rep_Clause", Flag66
(Id
));
8383 W
("Has_Exit", Flag47
(Id
));
8384 W
("Has_Forward_Instantiation", Flag175
(Id
));
8385 W
("Has_Fully_Qualified_Name", Flag173
(Id
));
8386 W
("Has_Gigi_Rep_Item", Flag82
(Id
));
8387 W
("Has_Homonym", Flag56
(Id
));
8388 W
("Has_Implicit_Dereference", Flag251
(Id
));
8389 W
("Has_Independent_Components", Flag34
(Id
));
8390 W
("Has_Inheritable_Invariants", Flag248
(Id
));
8391 W
("Has_Inherited_Default_Init_Cond", Flag133
(Id
));
8392 W
("Has_Initial_Value", Flag219
(Id
));
8393 W
("Has_Invariants", Flag232
(Id
));
8394 W
("Has_Loop_Entry_Attributes", Flag260
(Id
));
8395 W
("Has_Machine_Radix_Clause", Flag83
(Id
));
8396 W
("Has_Master_Entity", Flag21
(Id
));
8397 W
("Has_Missing_Return", Flag142
(Id
));
8398 W
("Has_Nested_Block_With_Handler", Flag101
(Id
));
8399 W
("Has_Non_Standard_Rep", Flag75
(Id
));
8400 W
("Has_Out_Or_In_Out_Parameter", Flag110
(Id
));
8401 W
("Has_Object_Size_Clause", Flag172
(Id
));
8402 W
("Has_Per_Object_Constraint", Flag154
(Id
));
8403 W
("Has_Postconditions", Flag240
(Id
));
8404 W
("Has_Pragma_Controlled", Flag27
(Id
));
8405 W
("Has_Pragma_Elaborate_Body", Flag150
(Id
));
8406 W
("Has_Pragma_Inline", Flag157
(Id
));
8407 W
("Has_Pragma_Inline_Always", Flag230
(Id
));
8408 W
("Has_Pragma_No_Inline", Flag201
(Id
));
8409 W
("Has_Pragma_Ordered", Flag198
(Id
));
8410 W
("Has_Pragma_Pack", Flag121
(Id
));
8411 W
("Has_Pragma_Preelab_Init", Flag221
(Id
));
8412 W
("Has_Pragma_Pure", Flag203
(Id
));
8413 W
("Has_Pragma_Pure_Function", Flag179
(Id
));
8414 W
("Has_Pragma_Thread_Local_Storage", Flag169
(Id
));
8415 W
("Has_Pragma_Unmodified", Flag233
(Id
));
8416 W
("Has_Pragma_Unreferenced", Flag180
(Id
));
8417 W
("Has_Pragma_Unreferenced_Objects", Flag212
(Id
));
8418 W
("Has_Predicates", Flag250
(Id
));
8419 W
("Has_Primitive_Operations", Flag120
(Id
));
8420 W
("Has_Private_Ancestor", Flag151
(Id
));
8421 W
("Has_Private_Declaration", Flag155
(Id
));
8422 W
("Has_Protected", Flag271
(Id
));
8423 W
("Has_Qualified_Name", Flag161
(Id
));
8424 W
("Has_RACW", Flag214
(Id
));
8425 W
("Has_Record_Rep_Clause", Flag65
(Id
));
8426 W
("Has_Recursive_Call", Flag143
(Id
));
8427 W
("Has_Shift_Operator", Flag267
(Id
));
8428 W
("Has_Size_Clause", Flag29
(Id
));
8429 W
("Has_Small_Clause", Flag67
(Id
));
8430 W
("Has_Specified_Layout", Flag100
(Id
));
8431 W
("Has_Specified_Stream_Input", Flag190
(Id
));
8432 W
("Has_Specified_Stream_Output", Flag191
(Id
));
8433 W
("Has_Specified_Stream_Read", Flag192
(Id
));
8434 W
("Has_Specified_Stream_Write", Flag193
(Id
));
8435 W
("Has_Static_Discriminants", Flag211
(Id
));
8436 W
("Has_Static_Predicate", Flag269
(Id
));
8437 W
("Has_Static_Predicate_Aspect", Flag259
(Id
));
8438 W
("Has_Storage_Size_Clause", Flag23
(Id
));
8439 W
("Has_Stream_Size_Clause", Flag184
(Id
));
8440 W
("Has_Task", Flag30
(Id
));
8441 W
("Has_Thunks", Flag228
(Id
));
8442 W
("Has_Unchecked_Union", Flag123
(Id
));
8443 W
("Has_Unknown_Discriminants", Flag72
(Id
));
8444 W
("Has_Up_Level_Access", Flag215
(Id
));
8445 W
("Has_Visible_Refinement", Flag263
(Id
));
8446 W
("Has_Volatile_Components", Flag87
(Id
));
8447 W
("Has_Xref_Entry", Flag182
(Id
));
8448 W
("In_Package_Body", Flag48
(Id
));
8449 W
("In_Private_Part", Flag45
(Id
));
8450 W
("In_Use", Flag8
(Id
));
8451 W
("Is_Abstract_Subprogram", Flag19
(Id
));
8452 W
("Is_Abstract_Type", Flag146
(Id
));
8453 W
("Is_Access_Constant", Flag69
(Id
));
8454 W
("Is_Ada_2005_Only", Flag185
(Id
));
8455 W
("Is_Ada_2012_Only", Flag199
(Id
));
8456 W
("Is_Aliased", Flag15
(Id
));
8457 W
("Is_Asynchronous", Flag81
(Id
));
8458 W
("Is_Atomic", Flag85
(Id
));
8459 W
("Is_Bit_Packed_Array", Flag122
(Id
));
8460 W
("Is_CPP_Class", Flag74
(Id
));
8461 W
("Is_Called", Flag102
(Id
));
8462 W
("Is_Character_Type", Flag63
(Id
));
8463 W
("Is_Child_Unit", Flag73
(Id
));
8464 W
("Is_Class_Wide_Equivalent_Type", Flag35
(Id
));
8465 W
("Is_Compilation_Unit", Flag149
(Id
));
8466 W
("Is_Completely_Hidden", Flag103
(Id
));
8467 W
("Is_Concurrent_Record_Type", Flag20
(Id
));
8468 W
("Is_Constr_Subt_For_UN_Aliased", Flag141
(Id
));
8469 W
("Is_Constr_Subt_For_U_Nominal", Flag80
(Id
));
8470 W
("Is_Constrained", Flag12
(Id
));
8471 W
("Is_Constructor", Flag76
(Id
));
8472 W
("Is_Controlled", Flag42
(Id
));
8473 W
("Is_Controlling_Formal", Flag97
(Id
));
8474 W
("Is_Default_Init_Cond_Procedure", Flag132
(Id
));
8475 W
("Is_Descendent_Of_Address", Flag223
(Id
));
8476 W
("Is_Discrim_SO_Function", Flag176
(Id
));
8477 W
("Is_Discriminant_Check_Function", Flag264
(Id
));
8478 W
("Is_Dispatch_Table_Entity", Flag234
(Id
));
8479 W
("Is_Dispatching_Operation", Flag6
(Id
));
8480 W
("Is_Eliminated", Flag124
(Id
));
8481 W
("Is_Entry_Formal", Flag52
(Id
));
8482 W
("Is_Exported", Flag99
(Id
));
8483 W
("Is_First_Subtype", Flag70
(Id
));
8484 W
("Is_For_Access_Subtype", Flag118
(Id
));
8485 W
("Is_Formal_Subprogram", Flag111
(Id
));
8486 W
("Is_Frozen", Flag4
(Id
));
8487 W
("Is_Generic_Actual_Subprogram", Flag274
(Id
));
8488 W
("Is_Generic_Actual_Type", Flag94
(Id
));
8489 W
("Is_Generic_Instance", Flag130
(Id
));
8490 W
("Is_Generic_Type", Flag13
(Id
));
8491 W
("Is_Hidden", Flag57
(Id
));
8492 W
("Is_Hidden_Non_Overridden_Subpgm", Flag2
(Id
));
8493 W
("Is_Hidden_Open_Scope", Flag171
(Id
));
8494 W
("Is_Immediately_Visible", Flag7
(Id
));
8495 W
("Is_Implementation_Defined", Flag254
(Id
));
8496 W
("Is_Imported", Flag24
(Id
));
8497 W
("Is_Independent", Flag268
(Id
));
8498 W
("Is_Inlined", Flag11
(Id
));
8499 W
("Is_Inlined_Always", Flag1
(Id
));
8500 W
("Is_Instantiated", Flag126
(Id
));
8501 W
("Is_Interface", Flag186
(Id
));
8502 W
("Is_Internal", Flag17
(Id
));
8503 W
("Is_Interrupt_Handler", Flag89
(Id
));
8504 W
("Is_Intrinsic_Subprogram", Flag64
(Id
));
8505 W
("Is_Invariant_Procedure", Flag257
(Id
));
8506 W
("Is_Itype", Flag91
(Id
));
8507 W
("Is_Known_Non_Null", Flag37
(Id
));
8508 W
("Is_Known_Null", Flag204
(Id
));
8509 W
("Is_Known_Valid", Flag170
(Id
));
8510 W
("Is_Limited_Composite", Flag106
(Id
));
8511 W
("Is_Limited_Interface", Flag197
(Id
));
8512 W
("Is_Limited_Record", Flag25
(Id
));
8513 W
("Is_Local_Anonymous_Access", Flag194
(Id
));
8514 W
("Is_Machine_Code_Subprogram", Flag137
(Id
));
8515 W
("Is_Non_Static_Subtype", Flag109
(Id
));
8516 W
("Is_Null_Init_Proc", Flag178
(Id
));
8517 W
("Is_Obsolescent", Flag153
(Id
));
8518 W
("Is_Only_Out_Parameter", Flag226
(Id
));
8519 W
("Is_Package_Body_Entity", Flag160
(Id
));
8520 W
("Is_Packed", Flag51
(Id
));
8521 W
("Is_Packed_Array_Impl_Type", Flag138
(Id
));
8522 W
("Is_Potentially_Use_Visible", Flag9
(Id
));
8523 W
("Is_Predicate_Function", Flag255
(Id
));
8524 W
("Is_Predicate_Function_M", Flag256
(Id
));
8525 W
("Is_Preelaborated", Flag59
(Id
));
8526 W
("Is_Primitive", Flag218
(Id
));
8527 W
("Is_Primitive_Wrapper", Flag195
(Id
));
8528 W
("Is_Private_Composite", Flag107
(Id
));
8529 W
("Is_Private_Descendant", Flag53
(Id
));
8530 W
("Is_Private_Primitive", Flag245
(Id
));
8531 W
("Is_Processed_Transient", Flag252
(Id
));
8532 W
("Is_Public", Flag10
(Id
));
8533 W
("Is_Pure", Flag44
(Id
));
8534 W
("Is_Pure_Unit_Access_Type", Flag189
(Id
));
8535 W
("Is_RACW_Stub_Type", Flag244
(Id
));
8536 W
("Is_Raised", Flag224
(Id
));
8537 W
("Is_Remote_Call_Interface", Flag62
(Id
));
8538 W
("Is_Remote_Types", Flag61
(Id
));
8539 W
("Is_Renaming_Of_Object", Flag112
(Id
));
8540 W
("Is_Return_Object", Flag209
(Id
));
8541 W
("Is_Safe_To_Reevaluate", Flag249
(Id
));
8542 W
("Is_Shared_Passive", Flag60
(Id
));
8543 W
("Is_Statically_Allocated", Flag28
(Id
));
8544 W
("Is_Tag", Flag78
(Id
));
8545 W
("Is_Tagged_Type", Flag55
(Id
));
8546 W
("Is_Thunk", Flag225
(Id
));
8547 W
("Is_Trivial_Subprogram", Flag235
(Id
));
8548 W
("Is_True_Constant", Flag163
(Id
));
8549 W
("Is_Unchecked_Union", Flag117
(Id
));
8550 W
("Is_Underlying_Record_View", Flag246
(Id
));
8551 W
("Is_Unsigned_Type", Flag144
(Id
));
8552 W
("Is_Valued_Procedure", Flag127
(Id
));
8553 W
("Is_Visible_Formal", Flag206
(Id
));
8554 W
("Is_Visible_Lib_Unit", Flag116
(Id
));
8555 W
("Is_Volatile", Flag16
(Id
));
8556 W
("Itype_Printed", Flag202
(Id
));
8557 W
("Kill_Elaboration_Checks", Flag32
(Id
));
8558 W
("Kill_Range_Checks", Flag33
(Id
));
8559 W
("Known_To_Have_Preelab_Init", Flag207
(Id
));
8560 W
("Low_Bound_Tested", Flag205
(Id
));
8561 W
("Machine_Radix_10", Flag84
(Id
));
8562 W
("Materialize_Entity", Flag168
(Id
));
8563 W
("May_Inherit_Delayed_Rep_Aspects", Flag262
(Id
));
8564 W
("Must_Be_On_Byte_Boundary", Flag183
(Id
));
8565 W
("Must_Have_Preelab_Init", Flag208
(Id
));
8566 W
("Needs_Debug_Info", Flag147
(Id
));
8567 W
("Needs_No_Actuals", Flag22
(Id
));
8568 W
("Never_Set_In_Source", Flag115
(Id
));
8569 W
("No_Dynamic_Predicate_On_actual", Flag276
(Id
));
8570 W
("No_Pool_Assigned", Flag131
(Id
));
8571 W
("No_Predicate_On_actual", Flag275
(Id
));
8572 W
("No_Return", Flag113
(Id
));
8573 W
("No_Strict_Aliasing", Flag136
(Id
));
8574 W
("Non_Binary_Modulus", Flag58
(Id
));
8575 W
("Nonzero_Is_True", Flag162
(Id
));
8576 W
("OK_To_Rename", Flag247
(Id
));
8577 W
("OK_To_Reorder_Components", Flag239
(Id
));
8578 W
("Optimize_Alignment_Space", Flag241
(Id
));
8579 W
("Optimize_Alignment_Time", Flag242
(Id
));
8580 W
("Overlays_Constant", Flag243
(Id
));
8581 W
("Reachable", Flag49
(Id
));
8582 W
("Referenced", Flag156
(Id
));
8583 W
("Referenced_As_LHS", Flag36
(Id
));
8584 W
("Referenced_As_Out_Parameter", Flag227
(Id
));
8585 W
("Renamed_In_Spec", Flag231
(Id
));
8586 W
("Requires_Overriding", Flag213
(Id
));
8587 W
("Return_Present", Flag54
(Id
));
8588 W
("Returns_By_Ref", Flag90
(Id
));
8589 W
("Returns_Limited_View", Flag134
(Id
));
8590 W
("Reverse_Bit_Order", Flag164
(Id
));
8591 W
("Reverse_Storage_Order", Flag93
(Id
));
8592 W
("Sec_Stack_Needed_For_Return", Flag167
(Id
));
8593 W
("Size_Depends_On_Discriminant", Flag177
(Id
));
8594 W
("Size_Known_At_Compile_Time", Flag92
(Id
));
8595 W
("SPARK_Aux_Pragma_Inherited", Flag266
(Id
));
8596 W
("SPARK_Pragma_Inherited", Flag265
(Id
));
8597 W
("SSO_Set_High_By_Default", Flag273
(Id
));
8598 W
("SSO_Set_Low_By_Default", Flag272
(Id
));
8599 W
("Static_Elaboration_Desired", Flag77
(Id
));
8600 W
("Stores_Attribute_Old_Prefix", Flag270
(Id
));
8601 W
("Strict_Alignment", Flag145
(Id
));
8602 W
("Suppress_Elaboration_Warnings", Flag148
(Id
));
8603 W
("Suppress_Initialization", Flag105
(Id
));
8604 W
("Suppress_Style_Checks", Flag165
(Id
));
8605 W
("Suppress_Value_Tracking_On_Call", Flag217
(Id
));
8606 W
("Treat_As_Volatile", Flag41
(Id
));
8607 W
("Universal_Aliasing", Flag216
(Id
));
8608 W
("Used_As_Generic_Actual", Flag222
(Id
));
8609 W
("Uses_Sec_Stack", Flag95
(Id
));
8610 W
("Warnings_Off", Flag96
(Id
));
8611 W
("Warnings_Off_Used", Flag236
(Id
));
8612 W
("Warnings_Off_Used_Unmodified", Flag237
(Id
));
8613 W
("Warnings_Off_Used_Unreferenced", Flag238
(Id
));
8614 W
("Was_Hidden", Flag196
(Id
));
8615 end Write_Entity_Flags
;
8617 -----------------------
8618 -- Write_Entity_Info --
8619 -----------------------
8621 procedure Write_Entity_Info
(Id
: Entity_Id
; Prefix
: String) is
8623 procedure Write_Attribute
(Which
: String; Nam
: E
);
8624 -- Write attribute value with given string name
8626 procedure Write_Kind
(Id
: Entity_Id
);
8627 -- Write Ekind field of entity
8629 ---------------------
8630 -- Write_Attribute --
8631 ---------------------
8633 procedure Write_Attribute
(Which
: String; Nam
: E
) is
8637 Write_Int
(Int
(Nam
));
8639 Write_Name
(Chars
(Nam
));
8641 end Write_Attribute
;
8647 procedure Write_Kind
(Id
: Entity_Id
) is
8648 K
: constant String := Entity_Kind
'Image (Ekind
(Id
));
8652 Write_Str
(" Kind ");
8654 if Is_Type
(Id
) and then Is_Tagged_Type
(Id
) then
8655 Write_Str
("TAGGED ");
8658 Write_Str
(K
(3 .. K
'Length));
8661 if Is_Type
(Id
) and then Depends_On_Private
(Id
) then
8662 Write_Str
("Depends_On_Private ");
8666 -- Start of processing for Write_Entity_Info
8670 Write_Attribute
("Name ", Id
);
8671 Write_Int
(Int
(Id
));
8675 Write_Attribute
(" Type ", Etype
(Id
));
8677 Write_Attribute
(" Scope ", Scope
(Id
));
8682 when Discrete_Kind
=>
8683 Write_Str
("Bounds: Id = ");
8685 if Present
(Scalar_Range
(Id
)) then
8686 Write_Int
(Int
(Type_Low_Bound
(Id
)));
8687 Write_Str
(" .. Id = ");
8688 Write_Int
(Int
(Type_High_Bound
(Id
)));
8690 Write_Str
("Empty");
8701 (" Component Type ", Component_Type
(Id
));
8704 Write_Str
(" Indexes ");
8706 Index
:= First_Index
(Id
);
8707 while Present
(Index
) loop
8708 Write_Attribute
(" ", Etype
(Index
));
8709 Index
:= Next_Index
(Index
);
8717 (" Directly Designated Type ",
8718 Directly_Designated_Type
(Id
));
8721 when Overloadable_Kind
=>
8722 if Present
(Homonym
(Id
)) then
8723 Write_Str
(" Homonym ");
8724 Write_Name
(Chars
(Homonym
(Id
)));
8726 Write_Int
(Int
(Homonym
(Id
)));
8733 if Ekind
(Scope
(Id
)) in Record_Kind
then
8735 " Original_Record_Component ",
8736 Original_Record_Component
(Id
));
8737 Write_Int
(Int
(Original_Record_Component
(Id
)));
8741 when others => null;
8743 end Write_Entity_Info
;
8745 -----------------------
8746 -- Write_Field6_Name --
8747 -----------------------
8749 procedure Write_Field6_Name
(Id
: Entity_Id
) is
8750 pragma Warnings
(Off
, Id
);
8752 Write_Str
("First_Rep_Item");
8753 end Write_Field6_Name
;
8755 -----------------------
8756 -- Write_Field7_Name --
8757 -----------------------
8759 procedure Write_Field7_Name
(Id
: Entity_Id
) is
8760 pragma Warnings
(Off
, Id
);
8762 Write_Str
("Freeze_Node");
8763 end Write_Field7_Name
;
8765 -----------------------
8766 -- Write_Field8_Name --
8767 -----------------------
8769 procedure Write_Field8_Name
(Id
: Entity_Id
) is
8773 Write_Str
("Associated_Node_For_Itype");
8776 Write_Str
("Dependent_Instances");
8779 Write_Str
("First_Exit_Statement");
8782 Write_Str
("Hiding_Loop_Variable");
8786 E_Subprogram_Body
=>
8787 Write_Str
("Mechanism");
8791 Write_Str
("Normalized_First_Bit");
8794 Write_Str
("Postcondition_Proc");
8796 when E_Abstract_State
=>
8797 Write_Str
("Refinement_Constituents");
8799 when E_Return_Statement
=>
8800 Write_Str
("Return_Applies_To");
8803 Write_Str
("Field8??");
8805 end Write_Field8_Name
;
8807 -----------------------
8808 -- Write_Field9_Name --
8809 -----------------------
8811 procedure Write_Field9_Name
(Id
: Entity_Id
) is
8815 Write_Str
("Class_Wide_Type");
8818 Write_Str
("Current_Value");
8820 when E_Abstract_State
=>
8821 Write_Str
("Part_Of_Constituents");
8824 E_Generic_Function |
8826 E_Generic_Procedure |
8829 Write_Str
("Renaming_Map");
8832 Write_Str
("Field9??");
8834 end Write_Field9_Name
;
8836 ------------------------
8837 -- Write_Field10_Name --
8838 ------------------------
8840 procedure Write_Field10_Name
(Id
: Entity_Id
) is
8843 when E_Abstract_State |
8845 Write_Str
("Encapsulating_State");
8847 when Class_Wide_Kind |
8853 Write_Str
("Direct_Primitive_Operations");
8856 Write_Str
("Float_Rep");
8858 when E_In_Parameter |
8860 Write_Str
("Discriminal_Link");
8866 Write_Str
("Handler_Records");
8870 Write_Str
("Normalized_Position_Max");
8873 Write_Str
("Field10??");
8875 end Write_Field10_Name
;
8877 ------------------------
8878 -- Write_Field11_Name --
8879 ------------------------
8881 procedure Write_Field11_Name
(Id
: Entity_Id
) is
8885 Write_Str
("Block_Node");
8889 Write_Str
("Component_Bit_Offset");
8892 Write_Str
("Entry_Component");
8894 when E_Enumeration_Literal
=>
8895 Write_Str
("Enumeration_Pos");
8899 Write_Str
("Full_View");
8901 when E_Generic_Package
=>
8902 Write_Str
("Generic_Homonym");
8908 Write_Str
("Protected_Body_Subprogram");
8911 Write_Str
("Field11??");
8913 end Write_Field11_Name
;
8915 ------------------------
8916 -- Write_Field12_Name --
8917 ------------------------
8919 procedure Write_Field12_Name
(Id
: Entity_Id
) is
8923 Write_Str
("Associated_Formal_Package");
8926 Write_Str
("Barrier_Function");
8928 when E_Enumeration_Literal
=>
8929 Write_Str
("Enumeration_Rep");
8937 E_In_Out_Parameter |
8941 Write_Str
("Esize");
8945 Write_Str
("Next_Inlined_Subprogram");
8948 Write_Str
("Field12??");
8950 end Write_Field12_Name
;
8952 ------------------------
8953 -- Write_Field13_Name --
8954 ------------------------
8956 procedure Write_Field13_Name
(Id
: Entity_Id
) is
8961 Write_Str
("Component_Clause");
8964 Write_Str
("Elaboration_Entity");
8968 Generic_Unit_Kind
=>
8969 Write_Str
("Elaboration_Entity");
8973 Write_Str
("Extra_Accessibility");
8976 Write_Str
("RM_Size");
8979 Write_Str
("Field13??");
8981 end Write_Field13_Name
;
8983 -----------------------
8984 -- Write_Field14_Name --
8985 -----------------------
8987 procedure Write_Field14_Name
(Id
: Entity_Id
) is
8996 Write_Str
("Alignment");
9000 Write_Str
("Normalized_Position");
9003 E_Generic_Package
=>
9004 Write_Str
("Shadow_Entities");
9007 Write_Str
("Field14??");
9009 end Write_Field14_Name
;
9011 ------------------------
9012 -- Write_Field15_Name --
9013 ------------------------
9015 procedure Write_Field15_Name
(Id
: Entity_Id
) is
9018 when E_Discriminant
=>
9019 Write_Str
("Discriminant_Number");
9022 Write_Str
("DT_Entry_Count");
9026 Write_Str
("DT_Position");
9028 when E_Protected_Type
=>
9029 Write_Str
("Entry_Bodies_Array");
9032 Write_Str
("Entry_Parameters_Type");
9035 Write_Str
("Extra_Formal");
9037 when Enumeration_Kind
=>
9038 Write_Str
("Lit_Indexes");
9042 Write_Str
("Related_Instance");
9044 when Decimal_Fixed_Point_Kind
=>
9045 Write_Str
("Scale_Value");
9049 Write_Str
("Status_Flag_Or_Transient_Decl");
9053 Write_Str
("Storage_Size_Variable");
9055 when E_String_Literal_Subtype
=>
9056 Write_Str
("String_Literal_Low_Bound");
9059 Write_Str
("Field15??");
9061 end Write_Field15_Name
;
9063 ------------------------
9064 -- Write_Field16_Name --
9065 ------------------------
9067 procedure Write_Field16_Name
(Id
: Entity_Id
) is
9070 when E_Record_Type |
9071 E_Record_Type_With_Private
=>
9072 Write_Str
("Access_Disp_Table");
9074 when E_Abstract_State
=>
9075 Write_Str
("Body_References");
9077 when E_Record_Subtype |
9078 E_Class_Wide_Subtype
=>
9079 Write_Str
("Cloned_Subtype");
9083 Write_Str
("DTC_Entity");
9086 Write_Str
("Entry_Formal");
9091 Write_Str
("First_Private_Entity");
9093 when Enumeration_Kind
=>
9094 Write_Str
("Lit_Strings");
9096 when E_String_Literal_Subtype
=>
9097 Write_Str
("String_Literal_Length");
9101 Write_Str
("Unset_Reference");
9104 Write_Str
("Field16??");
9106 end Write_Field16_Name
;
9108 ------------------------
9109 -- Write_Field17_Name --
9110 ------------------------
9112 procedure Write_Field17_Name
(Id
: Entity_Id
) is
9117 E_Generic_In_Out_Parameter |
9119 Write_Str
("Actual_Subtype");
9122 Write_Str
("Digits_Value");
9124 when E_Discriminant
=>
9125 Write_Str
("Discriminal");
9134 E_Generic_Function |
9136 E_Generic_Procedure |
9144 E_Return_Statement |
9146 E_Subprogram_Type
=>
9147 Write_Str
("First_Entity");
9150 Write_Str
("First_Index");
9152 when Enumeration_Kind
=>
9153 Write_Str
("First_Literal");
9156 Write_Str
("Master_Id");
9158 when Modular_Integer_Kind
=>
9159 Write_Str
("Modulus");
9161 when E_Abstract_State |
9162 E_Incomplete_Type
=>
9163 Write_Str
("Non_Limited_View");
9165 when E_Incomplete_Subtype
=>
9166 if From_Limited_With
(Id
) then
9167 Write_Str
("Non_Limited_View");
9171 Write_Str
("Prival");
9174 Write_Str
("Field17??");
9176 end Write_Field17_Name
;
9178 ------------------------
9179 -- Write_Field18_Name --
9180 ------------------------
9182 procedure Write_Field18_Name
(Id
: Entity_Id
) is
9185 when E_Enumeration_Literal |
9189 Write_Str
("Alias");
9191 when E_Record_Type
=>
9192 Write_Str
("Corresponding_Concurrent_Type");
9194 when E_Subprogram_Body
=>
9195 Write_Str
("Corresponding_Protected_Entry");
9197 when Concurrent_Kind
=>
9198 Write_Str
("Corresponding_Record_Type");
9203 Write_Str
("Enclosing_Scope");
9205 when E_Entry_Index_Parameter
=>
9206 Write_Str
("Entry_Index_Constant");
9208 when E_Class_Wide_Subtype |
9209 E_Access_Protected_Subprogram_Type |
9210 E_Anonymous_Access_Protected_Subprogram_Type |
9211 E_Access_Subprogram_Type |
9213 Write_Str
("Equivalent_Type");
9215 when Fixed_Point_Kind
=>
9216 Write_Str
("Delta_Value");
9218 when Incomplete_Or_Private_Kind |
9220 Write_Str
("Private_Dependents");
9223 Write_Str
("Renamed_Object");
9227 E_Generic_Function |
9228 E_Generic_Procedure |
9229 E_Generic_Package
=>
9230 Write_Str
("Renamed_Entity");
9233 Write_Str
("Field18??");
9235 end Write_Field18_Name
;
9237 -----------------------
9238 -- Write_Field19_Name --
9239 -----------------------
9241 procedure Write_Field19_Name
(Id
: Entity_Id
) is
9245 E_Generic_Package
=>
9246 Write_Str
("Body_Entity");
9248 when E_Discriminant
=>
9249 Write_Str
("Corresponding_Discriminant");
9252 Write_Str
("Default_Aspect_Value");
9254 when E_Array_Type
=>
9255 Write_Str
("Default_Component_Value");
9257 when E_Record_Type
=>
9258 Write_Str
("Parent_Subtype");
9262 Write_Str
("Size_Check_Code");
9264 when E_Package_Body |
9266 Write_Str
("Spec_Entity");
9268 when Private_Kind
=>
9269 Write_Str
("Underlying_Full_View");
9271 when E_Function | E_Operator | E_Subprogram_Type
=>
9272 Write_Str
("Extra_Accessibility_Of_Result");
9275 Write_Str
("Field19??");
9277 end Write_Field19_Name
;
9279 -----------------------
9280 -- Write_Field20_Name --
9281 -----------------------
9283 procedure Write_Field20_Name
(Id
: Entity_Id
) is
9287 Write_Str
("Component_Type");
9289 when E_In_Parameter |
9290 E_Generic_In_Parameter
=>
9291 Write_Str
("Default_Value");
9294 Write_Str
("Directly_Designated_Type");
9297 Write_Str
("Discriminant_Checking_Func");
9299 when E_Discriminant
=>
9300 Write_Str
("Discriminant_Default_Value");
9309 E_Generic_Function |
9311 E_Generic_Procedure |
9319 E_Return_Statement |
9321 E_Subprogram_Type
=>
9322 Write_Str
("Last_Entity");
9326 Write_Str
("Prival_Link");
9329 Write_Str
("Scalar_Range");
9332 Write_Str
("Register_Exception_Call");
9335 Write_Str
("Field20??");
9337 end Write_Field20_Name
;
9339 -----------------------
9340 -- Write_Field21_Name --
9341 -----------------------
9343 procedure Write_Field21_Name
(Id
: Entity_Id
) is
9347 Write_Str
("Accept_Address");
9349 when E_In_Parameter
=>
9350 Write_Str
("Default_Expr_Function");
9352 when Concurrent_Kind |
9353 Incomplete_Or_Private_Kind |
9357 Write_Str
("Discriminant_Constraint");
9362 E_Generic_Function |
9364 E_Generic_Procedure |
9366 Write_Str
("Interface_Name");
9369 Modular_Integer_Kind
=>
9370 Write_Str
("Original_Array_Type");
9372 when Fixed_Point_Kind
=>
9373 Write_Str
("Small_Value");
9376 Write_Str
("Field21??");
9378 end Write_Field21_Name
;
9380 -----------------------
9381 -- Write_Field22_Name --
9382 -----------------------
9384 procedure Write_Field22_Name
(Id
: Entity_Id
) is
9388 Write_Str
("Associated_Storage_Pool");
9391 Write_Str
("Component_Size");
9393 when E_Record_Type
=>
9394 Write_Str
("Corresponding_Remote_Type");
9398 Write_Str
("Original_Record_Component");
9400 when E_Enumeration_Literal
=>
9401 Write_Str
("Enumeration_Rep_Expr");
9403 when E_Record_Type_With_Private |
9404 E_Record_Subtype_With_Private |
9407 E_Limited_Private_Type |
9408 E_Limited_Private_Subtype
=>
9409 Write_Str
("Private_View");
9412 Write_Str
("Protected_Formal");
9422 E_Generic_Function |
9423 E_Generic_Procedure |
9426 E_Return_Statement |
9429 Write_Str
("Scope_Depth_Value");
9432 Write_Str
("Shared_Var_Procs_Instance");
9435 Write_Str
("Field22??");
9437 end Write_Field22_Name
;
9439 ------------------------
9440 -- Write_Field23_Name --
9441 ------------------------
9443 procedure Write_Field23_Name
(Id
: Entity_Id
) is
9446 when E_Discriminant
=>
9447 Write_Str
("CR_Discriminant");
9450 Write_Str
("Entry_Cancel_Parameter");
9452 when E_Enumeration_Type
=>
9453 Write_Str
("Enum_Pos_To_Rep");
9457 Write_Str
("Extra_Constrained");
9460 Write_Str
("Finalization_Master");
9462 when E_Generic_Function |
9464 E_Generic_Procedure
=>
9465 Write_Str
("Inner_Instances");
9468 Write_Str
("Packed_Array_Impl_Type");
9471 Write_Str
("Protection_Object");
9473 when Concurrent_Kind |
9474 Incomplete_Or_Private_Kind |
9478 Write_Str
("Stored_Constraint");
9482 if Present
(Scope
(Id
))
9483 and then Is_Protected_Type
(Scope
(Id
))
9485 Write_Str
("Protection_Object");
9487 Write_Str
("Generic_Renamings");
9491 if Is_Generic_Instance
(Id
) then
9492 Write_Str
("Generic_Renamings");
9494 Write_Str
("Limited_View");
9498 Write_Str
("Field23??");
9500 end Write_Field23_Name
;
9502 ------------------------
9503 -- Write_Field24_Name --
9504 ------------------------
9506 procedure Write_Field24_Name
(Id
: Entity_Id
) is
9512 Write_Str
("Related_Expression");
9515 Write_Str
("Field24???");
9517 end Write_Field24_Name
;
9519 ------------------------
9520 -- Write_Field25_Name --
9521 ------------------------
9523 procedure Write_Field25_Name
(Id
: Entity_Id
) is
9526 when E_Generic_Package |
9528 Write_Str
("Abstract_States");
9531 Write_Str
("Debug_Renaming_Link");
9534 Write_Str
("DT_Offset_To_Top_Func");
9538 Write_Str
("Interface_Alias");
9540 when E_Record_Type |
9542 E_Record_Type_With_Private |
9543 E_Record_Subtype_With_Private
=>
9544 Write_Str
("Interfaces");
9548 Write_Str
("Related_Array_Object");
9551 Write_Str
("Task_Body_Procedure");
9555 Write_Str
("PPC_Wrapper");
9557 when Discrete_Kind
=>
9558 Write_Str
("Static_Discrete_Predicate");
9561 Write_Str
("Static_Real_Or_String_Predicate");
9564 Write_Str
("Field25??");
9566 end Write_Field25_Name
;
9568 ------------------------
9569 -- Write_Field26_Name --
9570 ------------------------
9572 procedure Write_Field26_Name
(Id
: Entity_Id
) is
9575 when E_Record_Type |
9576 E_Record_Type_With_Private
=>
9577 Write_Str
("Dispatch_Table_Wrappers");
9579 when E_In_Out_Parameter |
9582 Write_Str
("Last_Assignment");
9584 when E_Access_Subprogram_Type
=>
9585 Write_Str
("Original_Access_Type");
9587 when E_Generic_Package |
9589 Write_Str
("Package_Instantiation");
9593 Write_Str
("Related_Type");
9596 Write_Str
("Relative_Deadline_Variable");
9600 Write_Str
("Overridden_Operation");
9603 Write_Str
("Field26??");
9605 end Write_Field26_Name
;
9607 ------------------------
9608 -- Write_Field27_Name --
9609 ------------------------
9611 procedure Write_Field27_Name
(Id
: Entity_Id
) is
9616 Write_Str
("Current_Use_Clause");
9621 Write_Str
("Related_Type");
9625 Write_Str
("Wrapped_Entity");
9628 Write_Str
("Field27??");
9630 end Write_Field27_Name
;
9632 ------------------------
9633 -- Write_Field28_Name --
9634 ------------------------
9636 procedure Write_Field28_Name
(Id
: Entity_Id
) is
9644 E_Subprogram_Type
=>
9645 Write_Str
("Extra_Formals");
9649 Write_Str
("Finalizer");
9653 Write_Str
("Initialization_Statements");
9655 when E_Record_Type
=>
9656 Write_Str
("Underlying_Record_View");
9659 Write_Str
("Field28??");
9661 end Write_Field28_Name
;
9663 ------------------------
9664 -- Write_Field29_Name --
9665 ------------------------
9667 procedure Write_Field29_Name
(Id
: Entity_Id
) is
9672 Write_Str
("BIP_Initialization_Call");
9675 Write_Str
("Subprograms_For_Type");
9678 Write_Str
("Field29??");
9680 end Write_Field29_Name
;
9682 ------------------------
9683 -- Write_Field30_Name --
9684 ------------------------
9686 procedure Write_Field30_Name
(Id
: Entity_Id
) is
9690 Write_Str
("Corresponding_Equality");
9694 Write_Str
("Last_Aggregate_Assignment");
9697 Write_Str
("Static_Initialization");
9700 Write_Str
("Field30??");
9702 end Write_Field30_Name
;
9704 ------------------------
9705 -- Write_Field31_Name --
9706 ------------------------
9708 procedure Write_Field31_Name
(Id
: Entity_Id
) is
9713 Write_Str
("Thunk_Entity");
9716 Write_Str
("Derived_Type_Link");
9719 Write_Str
("Field31??");
9721 end Write_Field31_Name
;
9723 ------------------------
9724 -- Write_Field32_Name --
9725 ------------------------
9727 procedure Write_Field32_Name
(Id
: Entity_Id
) is
9731 E_Generic_Function |
9733 E_Generic_Procedure |
9737 E_Subprogram_Body
=>
9738 Write_Str
("SPARK_Pragma");
9741 Write_Str
("Field32??");
9743 end Write_Field32_Name
;
9745 ------------------------
9746 -- Write_Field33_Name --
9747 ------------------------
9749 procedure Write_Field33_Name
(Id
: Entity_Id
) is
9752 when E_Generic_Package |
9755 Write_Str
("SPARK_Aux_Pragma");
9761 Write_Str
("Linker_Section_Pragma");
9764 Write_Str
("Field33??");
9766 end Write_Field33_Name
;
9768 ------------------------
9769 -- Write_Field34_Name --
9770 ------------------------
9772 procedure Write_Field34_Name
(Id
: Entity_Id
) is
9782 Generic_Subprogram_Kind |
9784 Write_Str
("Contract");
9787 Write_Str
("Field34??");
9789 end Write_Field34_Name
;
9791 ------------------------
9792 -- Write_Field35_Name --
9793 ------------------------
9795 procedure Write_Field35_Name
(Id
: Entity_Id
) is
9798 when Subprogram_Kind
=>
9799 Write_Str
("Import_Pragma");
9801 Write_Str
("Field35??");
9803 end Write_Field35_Name
;
9805 -------------------------
9806 -- Iterator Procedures --
9807 -------------------------
9809 procedure Proc_Next_Component
(N
: in out Node_Id
) is
9811 N
:= Next_Component
(N
);
9812 end Proc_Next_Component
;
9814 procedure Proc_Next_Component_Or_Discriminant
(N
: in out Node_Id
) is
9816 N
:= Next_Entity
(N
);
9817 while Present
(N
) loop
9818 exit when Ekind_In
(N
, E_Component
, E_Discriminant
);
9819 N
:= Next_Entity
(N
);
9821 end Proc_Next_Component_Or_Discriminant
;
9823 procedure Proc_Next_Discriminant
(N
: in out Node_Id
) is
9825 N
:= Next_Discriminant
(N
);
9826 end Proc_Next_Discriminant
;
9828 procedure Proc_Next_Formal
(N
: in out Node_Id
) is
9830 N
:= Next_Formal
(N
);
9831 end Proc_Next_Formal
;
9833 procedure Proc_Next_Formal_With_Extras
(N
: in out Node_Id
) is
9835 N
:= Next_Formal_With_Extras
(N
);
9836 end Proc_Next_Formal_With_Extras
;
9838 procedure Proc_Next_Index
(N
: in out Node_Id
) is
9840 N
:= Next_Index
(N
);
9841 end Proc_Next_Index
;
9843 procedure Proc_Next_Inlined_Subprogram
(N
: in out Node_Id
) is
9845 N
:= Next_Inlined_Subprogram
(N
);
9846 end Proc_Next_Inlined_Subprogram
;
9848 procedure Proc_Next_Literal
(N
: in out Node_Id
) is
9850 N
:= Next_Literal
(N
);
9851 end Proc_Next_Literal
;
9853 procedure Proc_Next_Stored_Discriminant
(N
: in out Node_Id
) is
9855 N
:= Next_Stored_Discriminant
(N
);
9856 end Proc_Next_Stored_Discriminant
;