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
254 -- No_Tagged_Streams_Pragma Node32
256 -- Linker_Section_Pragma Node33
257 -- SPARK_Aux_Pragma Node33
261 -- Import_Pragma Node35
263 ---------------------------------------------
264 -- Usage of Flags in Defining Entity Nodes --
265 ---------------------------------------------
267 -- All flags are unique, there is no overlaying, so each flag is physically
268 -- present in every entity. However, for many of the flags, it only makes
269 -- sense for them to be set true for certain subsets of entity kinds. See
270 -- the spec of Einfo for further details.
272 -- Is_Inlined_Always Flag1
273 -- Is_Hidden_Non_Overridden_Subpgm Flag2
274 -- Has_Default_Init_Cond Flag3
276 -- Has_Discriminants Flag5
277 -- Is_Dispatching_Operation Flag6
278 -- Is_Immediately_Visible Flag7
280 -- Is_Potentially_Use_Visible Flag9
284 -- Is_Constrained Flag12
285 -- Is_Generic_Type Flag13
286 -- Depends_On_Private Flag14
288 -- Is_Volatile Flag16
289 -- Is_Internal Flag17
290 -- Has_Delayed_Freeze Flag18
291 -- Is_Abstract_Subprogram Flag19
292 -- Is_Concurrent_Record_Type Flag20
294 -- Has_Master_Entity Flag21
295 -- Needs_No_Actuals Flag22
296 -- Has_Storage_Size_Clause Flag23
297 -- Is_Imported Flag24
298 -- Is_Limited_Record Flag25
299 -- Has_Completion Flag26
300 -- Has_Pragma_Controlled Flag27
301 -- Is_Statically_Allocated Flag28
302 -- Has_Size_Clause Flag29
305 -- Checks_May_Be_Suppressed Flag31
306 -- Kill_Elaboration_Checks Flag32
307 -- Kill_Range_Checks Flag33
308 -- Has_Independent_Components Flag34
309 -- Is_Class_Wide_Equivalent_Type Flag35
310 -- Referenced_As_LHS Flag36
311 -- Is_Known_Non_Null Flag37
312 -- Can_Never_Be_Null Flag38
313 -- Has_Default_Aspect Flag39
314 -- Body_Needed_For_SAL Flag40
316 -- Treat_As_Volatile Flag41
317 -- Is_Controlled Flag42
318 -- Has_Controlled_Component Flag43
320 -- In_Private_Part Flag45
321 -- Has_Alignment_Clause Flag46
323 -- In_Package_Body Flag48
325 -- Delay_Subprogram_Descriptors Flag50
328 -- Is_Entry_Formal Flag52
329 -- Is_Private_Descendant Flag53
330 -- Return_Present Flag54
331 -- Is_Tagged_Type Flag55
332 -- Has_Homonym Flag56
334 -- Non_Binary_Modulus Flag58
335 -- Is_Preelaborated Flag59
336 -- Is_Shared_Passive Flag60
338 -- Is_Remote_Types Flag61
339 -- Is_Remote_Call_Interface Flag62
340 -- Is_Character_Type Flag63
341 -- Is_Intrinsic_Subprogram Flag64
342 -- Has_Record_Rep_Clause Flag65
343 -- Has_Enumeration_Rep_Clause Flag66
344 -- Has_Small_Clause Flag67
345 -- Has_Component_Size_Clause Flag68
346 -- Is_Access_Constant Flag69
347 -- Is_First_Subtype Flag70
349 -- Has_Completion_In_Body Flag71
350 -- Has_Unknown_Discriminants Flag72
351 -- Is_Child_Unit Flag73
352 -- Is_CPP_Class Flag74
353 -- Has_Non_Standard_Rep Flag75
354 -- Is_Constructor Flag76
355 -- Static_Elaboration_Desired Flag77
357 -- Has_All_Calls_Remote Flag79
358 -- Is_Constr_Subt_For_U_Nominal Flag80
360 -- Is_Asynchronous Flag81
361 -- Has_Gigi_Rep_Item Flag82
362 -- Has_Machine_Radix_Clause Flag83
363 -- Machine_Radix_10 Flag84
365 -- Has_Atomic_Components Flag86
366 -- Has_Volatile_Components Flag87
367 -- Discard_Names Flag88
368 -- Is_Interrupt_Handler Flag89
369 -- Returns_By_Ref Flag90
372 -- Size_Known_At_Compile_Time Flag92
373 -- Reverse_Storage_Order Flag93
374 -- Is_Generic_Actual_Type Flag94
375 -- Uses_Sec_Stack Flag95
376 -- Warnings_Off Flag96
377 -- Is_Controlling_Formal Flag97
378 -- Has_Controlling_Result Flag98
379 -- Is_Exported Flag99
380 -- Has_Specified_Layout Flag100
382 -- Has_Nested_Block_With_Handler Flag101
384 -- Is_Completely_Hidden Flag103
385 -- Address_Taken Flag104
386 -- Suppress_Initialization Flag105
387 -- Is_Limited_Composite Flag106
388 -- Is_Private_Composite Flag107
389 -- Default_Expressions_Processed Flag108
390 -- Is_Non_Static_Subtype Flag109
391 -- Has_Out_Or_In_Out_Parameter Flag110
393 -- Is_Formal_Subprogram Flag111
394 -- Is_Renaming_Of_Object Flag112
396 -- Delay_Cleanups Flag114
397 -- Never_Set_In_Source Flag115
398 -- Is_Visible_Lib_Unit Flag116
399 -- Is_Unchecked_Union Flag117
400 -- Is_For_Access_Subtype Flag118
401 -- Has_Convention_Pragma Flag119
402 -- Has_Primitive_Operations Flag120
404 -- Has_Pragma_Pack Flag121
405 -- Is_Bit_Packed_Array Flag122
406 -- Has_Unchecked_Union Flag123
407 -- Is_Eliminated Flag124
408 -- C_Pass_By_Copy Flag125
409 -- Is_Instantiated Flag126
410 -- Is_Valued_Procedure Flag127
411 -- (used for Component_Alignment) Flag128
412 -- (used for Component_Alignment) Flag129
413 -- Is_Generic_Instance Flag130
415 -- No_Pool_Assigned Flag131
416 -- Is_Default_Init_Cond_Procedure Flag132
417 -- Has_Inherited_Default_Init_Cond Flag133
418 -- Returns_Limited_View Flag134
419 -- Has_Aliased_Components Flag135
420 -- No_Strict_Aliasing Flag136
421 -- Is_Machine_Code_Subprogram Flag137
422 -- Is_Packed_Array_Impl_Type Flag138
423 -- Has_Biased_Representation Flag139
424 -- Has_Complex_Representation Flag140
426 -- Is_Constr_Subt_For_UN_Aliased Flag141
427 -- Has_Missing_Return Flag142
428 -- Has_Recursive_Call Flag143
429 -- Is_Unsigned_Type Flag144
430 -- Strict_Alignment Flag145
431 -- Is_Abstract_Type Flag146
432 -- Needs_Debug_Info Flag147
433 -- Suppress_Elaboration_Warnings Flag148
434 -- Is_Compilation_Unit Flag149
435 -- Has_Pragma_Elaborate_Body Flag150
437 -- Has_Private_Ancestor Flag151
438 -- Entry_Accepted Flag152
439 -- Is_Obsolescent Flag153
440 -- Has_Per_Object_Constraint Flag154
441 -- Has_Private_Declaration Flag155
442 -- Referenced Flag156
443 -- Has_Pragma_Inline Flag157
444 -- Finalize_Storage_Only Flag158
445 -- From_Limited_With Flag159
446 -- Is_Package_Body_Entity Flag160
448 -- Has_Qualified_Name Flag161
449 -- Nonzero_Is_True Flag162
450 -- Is_True_Constant Flag163
451 -- Reverse_Bit_Order Flag164
452 -- Suppress_Style_Checks Flag165
453 -- Debug_Info_Off Flag166
454 -- Sec_Stack_Needed_For_Return Flag167
455 -- Materialize_Entity Flag168
456 -- Has_Pragma_Thread_Local_Storage Flag169
457 -- Is_Known_Valid Flag170
459 -- Is_Hidden_Open_Scope Flag171
460 -- Has_Object_Size_Clause Flag172
461 -- Has_Fully_Qualified_Name Flag173
462 -- Elaboration_Entity_Required Flag174
463 -- Has_Forward_Instantiation Flag175
464 -- Is_Discrim_SO_Function Flag176
465 -- Size_Depends_On_Discriminant Flag177
466 -- Is_Null_Init_Proc Flag178
467 -- Has_Pragma_Pure_Function Flag179
468 -- Has_Pragma_Unreferenced Flag180
470 -- Has_Contiguous_Rep Flag181
471 -- Has_Xref_Entry Flag182
472 -- Must_Be_On_Byte_Boundary Flag183
473 -- Has_Stream_Size_Clause Flag184
474 -- Is_Ada_2005_Only Flag185
475 -- Is_Interface Flag186
476 -- Has_Constrained_Partial_View Flag187
477 -- Uses_Lock_Free Flag188
478 -- Is_Pure_Unit_Access_Type Flag189
479 -- Has_Specified_Stream_Input Flag190
481 -- Has_Specified_Stream_Output Flag191
482 -- Has_Specified_Stream_Read Flag192
483 -- Has_Specified_Stream_Write Flag193
484 -- Is_Local_Anonymous_Access Flag194
485 -- Is_Primitive_Wrapper Flag195
486 -- Was_Hidden Flag196
487 -- Is_Limited_Interface Flag197
488 -- Has_Pragma_Ordered Flag198
489 -- Is_Ada_2012_Only Flag199
491 -- Has_Delayed_Aspects Flag200
492 -- Has_Pragma_No_Inline Flag201
493 -- Itype_Printed Flag202
494 -- Has_Pragma_Pure Flag203
495 -- Is_Known_Null Flag204
496 -- Low_Bound_Tested Flag205
497 -- Is_Visible_Formal Flag206
498 -- Known_To_Have_Preelab_Init Flag207
499 -- Must_Have_Preelab_Init Flag208
500 -- Is_Return_Object Flag209
501 -- Elaborate_Body_Desirable Flag210
503 -- Has_Static_Discriminants Flag211
504 -- Has_Pragma_Unreferenced_Objects Flag212
505 -- Requires_Overriding Flag213
507 -- Has_Up_Level_Access Flag215
508 -- Universal_Aliasing Flag216
509 -- Suppress_Value_Tracking_On_Call Flag217
510 -- Is_Primitive Flag218
511 -- Has_Initial_Value Flag219
512 -- Has_Dispatch_Table Flag220
514 -- Has_Pragma_Preelab_Init Flag221
515 -- Used_As_Generic_Actual Flag222
516 -- Is_Descendent_Of_Address Flag223
519 -- Is_Only_Out_Parameter Flag226
520 -- Referenced_As_Out_Parameter Flag227
521 -- Has_Thunks Flag228
522 -- Can_Use_Internal_Rep Flag229
523 -- Has_Pragma_Inline_Always Flag230
525 -- Renamed_In_Spec Flag231
526 -- Has_Invariants Flag232
527 -- Has_Pragma_Unmodified Flag233
528 -- Is_Dispatch_Table_Entity Flag234
529 -- Is_Trivial_Subprogram Flag235
530 -- Warnings_Off_Used Flag236
531 -- Warnings_Off_Used_Unmodified Flag237
532 -- Warnings_Off_Used_Unreferenced Flag238
533 -- OK_To_Reorder_Components Flag239
534 -- Has_Postconditions Flag240
536 -- Optimize_Alignment_Space Flag241
537 -- Optimize_Alignment_Time Flag242
538 -- Overlays_Constant Flag243
539 -- Is_RACW_Stub_Type Flag244
540 -- Is_Private_Primitive Flag245
541 -- Is_Underlying_Record_View Flag246
542 -- OK_To_Rename Flag247
543 -- Has_Inheritable_Invariants Flag248
544 -- Is_Safe_To_Reevaluate Flag249
545 -- Has_Predicates Flag250
547 -- Has_Implicit_Dereference Flag251
548 -- Is_Processed_Transient Flag252
549 -- Has_Anonymous_Master Flag253
550 -- Is_Implementation_Defined Flag254
551 -- Is_Predicate_Function Flag255
552 -- Is_Predicate_Function_M Flag256
553 -- Is_Invariant_Procedure Flag257
554 -- Has_Dynamic_Predicate_Aspect Flag258
555 -- Has_Static_Predicate_Aspect Flag259
556 -- Has_Loop_Entry_Attributes Flag260
558 -- Has_Delayed_Rep_Aspects Flag261
559 -- May_Inherit_Delayed_Rep_Aspects Flag262
560 -- Has_Visible_Refinement Flag263
561 -- Is_Discriminant_Check_Function Flag264
562 -- SPARK_Pragma_Inherited Flag265
563 -- SPARK_Aux_Pragma_Inherited Flag266
564 -- Has_Shift_Operator Flag267
565 -- Is_Independent Flag268
566 -- Has_Static_Predicate Flag269
567 -- Stores_Attribute_Old_Prefix Flag270
569 -- Has_Protected Flag271
570 -- SSO_Set_Low_By_Default Flag272
571 -- 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
575 -- Is_Checked_Ghost_Entity Flag277
576 -- Is_Ignored_Ghost_Entity Flag278
588 -- Note: Flag287-317 are defined in atree.ads/adb, but not yet in atree.h
590 -----------------------
591 -- Local subprograms --
592 -----------------------
595 (State_Id
: Entity_Id
;
596 Option_Nam
: Name_Id
) return Boolean;
597 -- Determine whether abstract state State_Id has particular option denoted
598 -- by the name Option_Nam.
604 function Float_Rep
(Id
: E
) return F
is
605 pragma Assert
(Is_Floating_Point_Type
(Id
));
607 return F
'Val (UI_To_Int
(Uint10
(Base_Type
(Id
))));
615 (State_Id
: Entity_Id
;
616 Option_Nam
: Name_Id
) return Boolean
618 Decl
: constant Node_Id
:= Parent
(State_Id
);
623 pragma Assert
(Ekind
(State_Id
) = E_Abstract_State
);
625 -- The declaration of abstract states with options appear as an
626 -- extension aggregate. If this is not the case, the option is not
629 if Nkind
(Decl
) /= N_Extension_Aggregate
then
635 Opt
:= First
(Expressions
(Decl
));
636 while Present
(Opt
) loop
638 -- Currently the only simple option allowed is External
640 if Nkind
(Opt
) = N_Identifier
641 and then Chars
(Opt
) = Name_External
642 and then Chars
(Opt
) = Option_Nam
650 -- Complex options with various specifiers
652 Opt
:= First
(Component_Associations
(Decl
));
653 while Present
(Opt
) loop
654 Opt_Nam
:= First
(Choices
(Opt
));
656 if Nkind
(Opt_Nam
) = N_Identifier
657 and then Chars
(Opt_Nam
) = Option_Nam
668 --------------------------------
669 -- Attribute Access Functions --
670 --------------------------------
672 function Abstract_States
(Id
: E
) return L
is
674 pragma Assert
(Ekind_In
(Id
, E_Generic_Package
, E_Package
));
678 function Accept_Address
(Id
: E
) return L
is
683 function Access_Disp_Table
(Id
: E
) return L
is
685 pragma Assert
(Ekind_In
(Id
, E_Record_Type
,
687 return Elist16
(Implementation_Base_Type
(Id
));
688 end Access_Disp_Table
;
690 function Actual_Subtype
(Id
: E
) return E
is
693 (Ekind_In
(Id
, E_Constant
, E_Variable
, E_Generic_In_Out_Parameter
)
694 or else Is_Formal
(Id
));
698 function Address_Taken
(Id
: E
) return B
is
703 function Alias
(Id
: E
) return E
is
706 (Is_Overloadable
(Id
) or else Ekind
(Id
) = E_Subprogram_Type
);
710 function Alignment
(Id
: E
) return U
is
712 pragma Assert
(Is_Type
(Id
)
713 or else Is_Formal
(Id
)
714 or else Ekind_In
(Id
, E_Loop_Parameter
,
721 function Associated_Formal_Package
(Id
: E
) return E
is
723 pragma Assert
(Ekind
(Id
) = E_Package
);
725 end Associated_Formal_Package
;
727 function Associated_Node_For_Itype
(Id
: E
) return N
is
730 end Associated_Node_For_Itype
;
732 function Associated_Storage_Pool
(Id
: E
) return E
is
734 pragma Assert
(Is_Access_Type
(Id
));
735 return Node22
(Root_Type
(Id
));
736 end Associated_Storage_Pool
;
738 function Barrier_Function
(Id
: E
) return N
is
740 pragma Assert
(Is_Entry
(Id
));
742 end Barrier_Function
;
744 function Block_Node
(Id
: E
) return N
is
746 pragma Assert
(Ekind
(Id
) = E_Block
);
750 function Body_Entity
(Id
: E
) return E
is
752 pragma Assert
(Ekind_In
(Id
, E_Package
, E_Generic_Package
));
756 function Body_Needed_For_SAL
(Id
: E
) return B
is
759 (Ekind
(Id
) = E_Package
760 or else Is_Subprogram
(Id
)
761 or else Is_Generic_Unit
(Id
));
763 end Body_Needed_For_SAL
;
765 function Body_References
(Id
: E
) return L
is
767 pragma Assert
(Ekind
(Id
) = E_Abstract_State
);
771 function BIP_Initialization_Call
(Id
: E
) return N
is
773 pragma Assert
(Ekind_In
(Id
, E_Constant
, E_Variable
));
775 end BIP_Initialization_Call
;
777 function C_Pass_By_Copy
(Id
: E
) return B
is
779 pragma Assert
(Is_Record_Type
(Id
));
780 return Flag125
(Implementation_Base_Type
(Id
));
783 function Can_Never_Be_Null
(Id
: E
) return B
is
786 end Can_Never_Be_Null
;
788 function Checks_May_Be_Suppressed
(Id
: E
) return B
is
791 end Checks_May_Be_Suppressed
;
793 function Class_Wide_Type
(Id
: E
) return E
is
795 pragma Assert
(Is_Type
(Id
));
799 function Cloned_Subtype
(Id
: E
) return E
is
801 pragma Assert
(Ekind_In
(Id
, E_Record_Subtype
, E_Class_Wide_Subtype
));
805 function Component_Bit_Offset
(Id
: E
) return U
is
807 pragma Assert
(Ekind_In
(Id
, E_Component
, E_Discriminant
));
809 end Component_Bit_Offset
;
811 function Component_Clause
(Id
: E
) return N
is
813 pragma Assert
(Ekind_In
(Id
, E_Component
, E_Discriminant
));
815 end Component_Clause
;
817 function Component_Size
(Id
: E
) return U
is
819 pragma Assert
(Is_Array_Type
(Id
));
820 return Uint22
(Implementation_Base_Type
(Id
));
823 function Component_Type
(Id
: E
) return E
is
825 pragma Assert
(Is_Array_Type
(Id
) or else Is_String_Type
(Id
));
826 return Node20
(Implementation_Base_Type
(Id
));
829 function Corresponding_Concurrent_Type
(Id
: E
) return E
is
831 pragma Assert
(Ekind
(Id
) = E_Record_Type
);
833 end Corresponding_Concurrent_Type
;
835 function Corresponding_Discriminant
(Id
: E
) return E
is
837 pragma Assert
(Ekind
(Id
) = E_Discriminant
);
839 end Corresponding_Discriminant
;
841 function Corresponding_Equality
(Id
: E
) return E
is
844 (Ekind
(Id
) = E_Function
845 and then not Comes_From_Source
(Id
)
846 and then Chars
(Id
) = Name_Op_Ne
);
848 end Corresponding_Equality
;
850 function Corresponding_Protected_Entry
(Id
: E
) return E
is
852 pragma Assert
(Ekind
(Id
) = E_Subprogram_Body
);
854 end Corresponding_Protected_Entry
;
856 function Corresponding_Record_Type
(Id
: E
) return E
is
858 pragma Assert
(Is_Concurrent_Type
(Id
));
860 end Corresponding_Record_Type
;
862 function Corresponding_Remote_Type
(Id
: E
) return E
is
865 end Corresponding_Remote_Type
;
867 function Current_Use_Clause
(Id
: E
) return E
is
869 pragma Assert
(Ekind
(Id
) = E_Package
or else Is_Type
(Id
));
871 end Current_Use_Clause
;
873 function Current_Value
(Id
: E
) return N
is
875 pragma Assert
(Ekind
(Id
) in Object_Kind
);
879 function CR_Discriminant
(Id
: E
) return E
is
884 function Debug_Info_Off
(Id
: E
) return B
is
889 function Debug_Renaming_Link
(Id
: E
) return E
is
892 end Debug_Renaming_Link
;
894 function Default_Aspect_Component_Value
(Id
: E
) return N
is
896 pragma Assert
(Is_Array_Type
(Id
));
897 return Node19
(Base_Type
(Id
));
898 end Default_Aspect_Component_Value
;
900 function Default_Aspect_Value
(Id
: E
) return N
is
902 pragma Assert
(Is_Scalar_Type
(Id
));
903 return Node19
(Base_Type
(Id
));
904 end Default_Aspect_Value
;
906 function Default_Expr_Function
(Id
: E
) return E
is
908 pragma Assert
(Is_Formal
(Id
));
910 end Default_Expr_Function
;
912 function Default_Expressions_Processed
(Id
: E
) return B
is
915 end Default_Expressions_Processed
;
917 function Default_Value
(Id
: E
) return N
is
919 pragma Assert
(Is_Formal
(Id
));
923 function Delay_Cleanups
(Id
: E
) return B
is
928 function Delay_Subprogram_Descriptors
(Id
: E
) return B
is
931 end Delay_Subprogram_Descriptors
;
933 function Delta_Value
(Id
: E
) return R
is
935 pragma Assert
(Is_Fixed_Point_Type
(Id
));
939 function Dependent_Instances
(Id
: E
) return L
is
941 pragma Assert
(Is_Generic_Instance
(Id
));
943 end Dependent_Instances
;
945 function Depends_On_Private
(Id
: E
) return B
is
947 pragma Assert
(Nkind
(Id
) in N_Entity
);
949 end Depends_On_Private
;
951 function Derived_Type_Link
(Id
: E
) return E
is
953 pragma Assert
(Is_Type
(Id
));
954 return Node31
(Base_Type
(Id
));
955 end Derived_Type_Link
;
957 function Digits_Value
(Id
: E
) return U
is
960 (Is_Floating_Point_Type
(Id
)
961 or else Is_Decimal_Fixed_Point_Type
(Id
));
965 function Direct_Primitive_Operations
(Id
: E
) return L
is
967 pragma Assert
(Is_Tagged_Type
(Id
));
969 end Direct_Primitive_Operations
;
971 function Directly_Designated_Type
(Id
: E
) return E
is
973 pragma Assert
(Is_Access_Type
(Id
));
975 end Directly_Designated_Type
;
977 function Discard_Names
(Id
: E
) return B
is
982 function Discriminal
(Id
: E
) return E
is
984 pragma Assert
(Ekind
(Id
) = E_Discriminant
);
988 function Discriminal_Link
(Id
: E
) return N
is
991 end Discriminal_Link
;
993 function Discriminant_Checking_Func
(Id
: E
) return E
is
995 pragma Assert
(Ekind
(Id
) = E_Component
);
997 end Discriminant_Checking_Func
;
999 function Discriminant_Constraint
(Id
: E
) return L
is
1001 pragma Assert
(Is_Composite_Type
(Id
) and then Has_Discriminants
(Id
));
1002 return Elist21
(Id
);
1003 end Discriminant_Constraint
;
1005 function Discriminant_Default_Value
(Id
: E
) return N
is
1007 pragma Assert
(Ekind
(Id
) = E_Discriminant
);
1009 end Discriminant_Default_Value
;
1011 function Discriminant_Number
(Id
: E
) return U
is
1013 pragma Assert
(Ekind
(Id
) = E_Discriminant
);
1015 end Discriminant_Number
;
1017 function Dispatch_Table_Wrappers
(Id
: E
) return L
is
1019 pragma Assert
(Ekind_In
(Id
, E_Record_Type
,
1021 return Elist26
(Implementation_Base_Type
(Id
));
1022 end Dispatch_Table_Wrappers
;
1024 function DT_Entry_Count
(Id
: E
) return U
is
1026 pragma Assert
(Ekind
(Id
) = E_Component
and then Is_Tag
(Id
));
1030 function DT_Offset_To_Top_Func
(Id
: E
) return E
is
1032 pragma Assert
(Ekind
(Id
) = E_Component
and then Is_Tag
(Id
));
1034 end DT_Offset_To_Top_Func
;
1036 function DT_Position
(Id
: E
) return U
is
1038 pragma Assert
(Ekind_In
(Id
, E_Function
, E_Procedure
)
1039 and then Present
(DTC_Entity
(Id
)));
1043 function DTC_Entity
(Id
: E
) return E
is
1045 pragma Assert
(Ekind_In
(Id
, E_Function
, E_Procedure
));
1049 function Elaborate_Body_Desirable
(Id
: E
) return B
is
1051 pragma Assert
(Ekind
(Id
) = E_Package
);
1052 return Flag210
(Id
);
1053 end Elaborate_Body_Desirable
;
1055 function Elaboration_Entity
(Id
: E
) return E
is
1060 Ekind
(Id
) = E_Package
1062 Is_Generic_Unit
(Id
));
1064 end Elaboration_Entity
;
1066 function Elaboration_Entity_Required
(Id
: E
) return B
is
1071 Ekind
(Id
) = E_Package
1073 Is_Generic_Unit
(Id
));
1074 return Flag174
(Id
);
1075 end Elaboration_Entity_Required
;
1077 function Encapsulating_State
(Id
: E
) return N
is
1079 pragma Assert
(Ekind_In
(Id
, E_Abstract_State
, E_Variable
));
1081 end Encapsulating_State
;
1083 function Enclosing_Scope
(Id
: E
) return E
is
1086 end Enclosing_Scope
;
1088 function Entry_Accepted
(Id
: E
) return B
is
1090 pragma Assert
(Is_Entry
(Id
));
1091 return Flag152
(Id
);
1094 function Entry_Bodies_Array
(Id
: E
) return E
is
1097 end Entry_Bodies_Array
;
1099 function Entry_Cancel_Parameter
(Id
: E
) return E
is
1102 end Entry_Cancel_Parameter
;
1104 function Entry_Component
(Id
: E
) return E
is
1107 end Entry_Component
;
1109 function Entry_Formal
(Id
: E
) return E
is
1114 function Entry_Index_Constant
(Id
: E
) return N
is
1116 pragma Assert
(Ekind
(Id
) = E_Entry_Index_Parameter
);
1118 end Entry_Index_Constant
;
1120 function Contract
(Id
: E
) return N
is
1123 (Ekind_In
(Id
, E_Entry
,
1130 or else Is_Subprogram_Or_Generic_Subprogram
(Id
));
1134 function Entry_Parameters_Type
(Id
: E
) return E
is
1137 end Entry_Parameters_Type
;
1139 function Enum_Pos_To_Rep
(Id
: E
) return E
is
1141 pragma Assert
(Ekind
(Id
) = E_Enumeration_Type
);
1143 end Enum_Pos_To_Rep
;
1145 function Enumeration_Pos
(Id
: E
) return Uint
is
1147 pragma Assert
(Ekind
(Id
) = E_Enumeration_Literal
);
1149 end Enumeration_Pos
;
1151 function Enumeration_Rep
(Id
: E
) return U
is
1153 pragma Assert
(Ekind
(Id
) = E_Enumeration_Literal
);
1155 end Enumeration_Rep
;
1157 function Enumeration_Rep_Expr
(Id
: E
) return N
is
1159 pragma Assert
(Ekind
(Id
) = E_Enumeration_Literal
);
1161 end Enumeration_Rep_Expr
;
1163 function Equivalent_Type
(Id
: E
) return E
is
1166 (Ekind_In
(Id
, E_Class_Wide_Type
,
1167 E_Class_Wide_Subtype
,
1168 E_Access_Subprogram_Type
,
1169 E_Access_Protected_Subprogram_Type
,
1170 E_Anonymous_Access_Protected_Subprogram_Type
,
1171 E_Access_Subprogram_Type
,
1174 end Equivalent_Type
;
1176 function Esize
(Id
: E
) return Uint
is
1181 function Extra_Accessibility
(Id
: E
) return E
is
1184 (Is_Formal
(Id
) or else Ekind_In
(Id
, E_Variable
, E_Constant
));
1186 end Extra_Accessibility
;
1188 function Extra_Accessibility_Of_Result
(Id
: E
) return E
is
1190 pragma Assert
(Ekind_In
(Id
, E_Function
, E_Operator
, E_Subprogram_Type
));
1192 end Extra_Accessibility_Of_Result
;
1194 function Extra_Constrained
(Id
: E
) return E
is
1196 pragma Assert
(Is_Formal
(Id
) or else Ekind
(Id
) = E_Variable
);
1198 end Extra_Constrained
;
1200 function Extra_Formal
(Id
: E
) return E
is
1205 function Extra_Formals
(Id
: E
) return E
is
1208 (Is_Overloadable
(Id
)
1209 or else Ekind_In
(Id
, E_Entry_Family
,
1211 E_Subprogram_Type
));
1215 function Can_Use_Internal_Rep
(Id
: E
) return B
is
1217 pragma Assert
(Is_Access_Subprogram_Type
(Base_Type
(Id
)));
1218 return Flag229
(Base_Type
(Id
));
1219 end Can_Use_Internal_Rep
;
1221 function Finalization_Master
(Id
: E
) return E
is
1223 pragma Assert
(Is_Access_Type
(Id
));
1224 return Node23
(Root_Type
(Id
));
1225 end Finalization_Master
;
1227 function Finalize_Storage_Only
(Id
: E
) return B
is
1229 pragma Assert
(Is_Type
(Id
));
1230 return Flag158
(Base_Type
(Id
));
1231 end Finalize_Storage_Only
;
1233 function Finalizer
(Id
: E
) return E
is
1235 pragma Assert
(Ekind_In
(Id
, E_Package
, E_Package_Body
));
1239 function First_Entity
(Id
: E
) return E
is
1244 function First_Exit_Statement
(Id
: E
) return N
is
1246 pragma Assert
(Ekind
(Id
) = E_Loop
);
1248 end First_Exit_Statement
;
1250 function First_Index
(Id
: E
) return N
is
1252 pragma Assert
(Is_Array_Type
(Id
) or else Is_String_Type
(Id
));
1256 function First_Literal
(Id
: E
) return E
is
1258 pragma Assert
(Is_Enumeration_Type
(Id
));
1262 function First_Private_Entity
(Id
: E
) return E
is
1264 pragma Assert
(Ekind_In
(Id
, E_Package
, E_Generic_Package
)
1265 or else Ekind
(Id
) in Concurrent_Kind
);
1267 end First_Private_Entity
;
1269 function First_Rep_Item
(Id
: E
) return E
is
1274 function Freeze_Node
(Id
: E
) return N
is
1279 function From_Limited_With
(Id
: E
) return B
is
1281 return Flag159
(Id
);
1282 end From_Limited_With
;
1284 function Full_View
(Id
: E
) return E
is
1286 pragma Assert
(Is_Type
(Id
) or else Ekind
(Id
) = E_Constant
);
1290 function Generic_Homonym
(Id
: E
) return E
is
1292 pragma Assert
(Ekind
(Id
) = E_Generic_Package
);
1294 end Generic_Homonym
;
1296 function Generic_Renamings
(Id
: E
) return L
is
1298 return Elist23
(Id
);
1299 end Generic_Renamings
;
1301 function Handler_Records
(Id
: E
) return S
is
1304 end Handler_Records
;
1306 function Has_Aliased_Components
(Id
: E
) return B
is
1308 return Flag135
(Implementation_Base_Type
(Id
));
1309 end Has_Aliased_Components
;
1311 function Has_Alignment_Clause
(Id
: E
) return B
is
1314 end Has_Alignment_Clause
;
1316 function Has_All_Calls_Remote
(Id
: E
) return B
is
1319 end Has_All_Calls_Remote
;
1321 function Has_Anonymous_Master
(Id
: E
) return B
is
1324 (Ekind_In
(Id
, E_Function
, E_Package
, E_Package_Body
, E_Procedure
));
1325 return Flag253
(Id
);
1326 end Has_Anonymous_Master
;
1328 function Has_Atomic_Components
(Id
: E
) return B
is
1330 return Flag86
(Implementation_Base_Type
(Id
));
1331 end Has_Atomic_Components
;
1333 function Has_Biased_Representation
(Id
: E
) return B
is
1335 return Flag139
(Id
);
1336 end Has_Biased_Representation
;
1338 function Has_Completion
(Id
: E
) return B
is
1343 function Has_Completion_In_Body
(Id
: E
) return B
is
1345 pragma Assert
(Is_Type
(Id
));
1347 end Has_Completion_In_Body
;
1349 function Has_Complex_Representation
(Id
: E
) return B
is
1351 pragma Assert
(Is_Type
(Id
));
1352 return Flag140
(Implementation_Base_Type
(Id
));
1353 end Has_Complex_Representation
;
1355 function Has_Component_Size_Clause
(Id
: E
) return B
is
1357 pragma Assert
(Is_Array_Type
(Id
));
1358 return Flag68
(Implementation_Base_Type
(Id
));
1359 end Has_Component_Size_Clause
;
1361 function Has_Constrained_Partial_View
(Id
: E
) return B
is
1363 pragma Assert
(Is_Type
(Id
));
1364 return Flag187
(Id
);
1365 end Has_Constrained_Partial_View
;
1367 function Has_Controlled_Component
(Id
: E
) return B
is
1369 return Flag43
(Base_Type
(Id
));
1370 end Has_Controlled_Component
;
1372 function Has_Contiguous_Rep
(Id
: E
) return B
is
1374 return Flag181
(Id
);
1375 end Has_Contiguous_Rep
;
1377 function Has_Controlling_Result
(Id
: E
) return B
is
1380 end Has_Controlling_Result
;
1382 function Has_Convention_Pragma
(Id
: E
) return B
is
1384 return Flag119
(Id
);
1385 end Has_Convention_Pragma
;
1387 function Has_Default_Aspect
(Id
: E
) return B
is
1389 return Flag39
(Base_Type
(Id
));
1390 end Has_Default_Aspect
;
1392 function Has_Default_Init_Cond
(Id
: E
) return B
is
1395 end Has_Default_Init_Cond
;
1397 function Has_Delayed_Aspects
(Id
: E
) return B
is
1399 pragma Assert
(Nkind
(Id
) in N_Entity
);
1400 return Flag200
(Id
);
1401 end Has_Delayed_Aspects
;
1403 function Has_Delayed_Freeze
(Id
: E
) return B
is
1405 pragma Assert
(Nkind
(Id
) in N_Entity
);
1407 end Has_Delayed_Freeze
;
1409 function Has_Delayed_Rep_Aspects
(Id
: E
) return B
is
1411 pragma Assert
(Nkind
(Id
) in N_Entity
);
1412 return Flag261
(Id
);
1413 end Has_Delayed_Rep_Aspects
;
1415 function Has_Discriminants
(Id
: E
) return B
is
1417 pragma Assert
(Nkind
(Id
) in N_Entity
);
1419 end Has_Discriminants
;
1421 function Has_Dispatch_Table
(Id
: E
) return B
is
1423 pragma Assert
(Is_Tagged_Type
(Id
));
1424 return Flag220
(Id
);
1425 end Has_Dispatch_Table
;
1427 function Has_Dynamic_Predicate_Aspect
(Id
: E
) return B
is
1429 pragma Assert
(Is_Type
(Id
));
1430 return Flag258
(Id
);
1431 end Has_Dynamic_Predicate_Aspect
;
1433 function Has_Enumeration_Rep_Clause
(Id
: E
) return B
is
1435 pragma Assert
(Is_Enumeration_Type
(Id
));
1437 end Has_Enumeration_Rep_Clause
;
1439 function Has_Exit
(Id
: E
) return B
is
1444 function Has_Forward_Instantiation
(Id
: E
) return B
is
1446 return Flag175
(Id
);
1447 end Has_Forward_Instantiation
;
1449 function Has_Fully_Qualified_Name
(Id
: E
) return B
is
1451 return Flag173
(Id
);
1452 end Has_Fully_Qualified_Name
;
1454 function Has_Gigi_Rep_Item
(Id
: E
) return B
is
1457 end Has_Gigi_Rep_Item
;
1459 function Has_Homonym
(Id
: E
) return B
is
1464 function Has_Implicit_Dereference
(Id
: E
) return B
is
1466 return Flag251
(Id
);
1467 end Has_Implicit_Dereference
;
1469 function Has_Independent_Components
(Id
: E
) return B
is
1471 return Flag34
(Implementation_Base_Type
(Id
));
1472 end Has_Independent_Components
;
1474 function Has_Inheritable_Invariants
(Id
: E
) return B
is
1476 pragma Assert
(Is_Type
(Id
));
1477 return Flag248
(Id
);
1478 end Has_Inheritable_Invariants
;
1480 function Has_Inherited_Default_Init_Cond
(Id
: E
) return B
is
1482 pragma Assert
(Is_Type
(Id
));
1483 return Flag133
(Id
);
1484 end Has_Inherited_Default_Init_Cond
;
1486 function Has_Initial_Value
(Id
: E
) return B
is
1488 pragma Assert
(Ekind
(Id
) = E_Variable
or else Is_Formal
(Id
));
1489 return Flag219
(Id
);
1490 end Has_Initial_Value
;
1492 function Has_Invariants
(Id
: E
) return B
is
1494 pragma Assert
(Is_Type
(Id
));
1495 return Flag232
(Id
);
1498 function Has_Loop_Entry_Attributes
(Id
: E
) return B
is
1500 pragma Assert
(Ekind
(Id
) = E_Loop
);
1501 return Flag260
(Id
);
1502 end Has_Loop_Entry_Attributes
;
1504 function Has_Machine_Radix_Clause
(Id
: E
) return B
is
1506 pragma Assert
(Is_Decimal_Fixed_Point_Type
(Id
));
1508 end Has_Machine_Radix_Clause
;
1510 function Has_Master_Entity
(Id
: E
) return B
is
1513 end Has_Master_Entity
;
1515 function Has_Missing_Return
(Id
: E
) return B
is
1517 pragma Assert
(Ekind_In
(Id
, E_Function
, E_Generic_Function
));
1518 return Flag142
(Id
);
1519 end Has_Missing_Return
;
1521 function Has_Nested_Block_With_Handler
(Id
: E
) return B
is
1523 return Flag101
(Id
);
1524 end Has_Nested_Block_With_Handler
;
1526 function Has_Non_Standard_Rep
(Id
: E
) return B
is
1528 return Flag75
(Implementation_Base_Type
(Id
));
1529 end Has_Non_Standard_Rep
;
1531 function Has_Object_Size_Clause
(Id
: E
) return B
is
1533 pragma Assert
(Is_Type
(Id
));
1534 return Flag172
(Id
);
1535 end Has_Object_Size_Clause
;
1537 function Has_Out_Or_In_Out_Parameter
(Id
: E
) return B
is
1539 pragma Assert
(Ekind_In
(Id
, E_Function
, E_Generic_Function
));
1540 return Flag110
(Id
);
1541 end Has_Out_Or_In_Out_Parameter
;
1543 function Has_Per_Object_Constraint
(Id
: E
) return B
is
1545 return Flag154
(Id
);
1546 end Has_Per_Object_Constraint
;
1548 function Has_Postconditions
(Id
: E
) return B
is
1550 pragma Assert
(Is_Subprogram
(Id
));
1551 return Flag240
(Id
);
1552 end Has_Postconditions
;
1554 function Has_Pragma_Controlled
(Id
: E
) return B
is
1556 pragma Assert
(Is_Access_Type
(Id
));
1557 return Flag27
(Implementation_Base_Type
(Id
));
1558 end Has_Pragma_Controlled
;
1560 function Has_Pragma_Elaborate_Body
(Id
: E
) return B
is
1562 return Flag150
(Id
);
1563 end Has_Pragma_Elaborate_Body
;
1565 function Has_Pragma_Inline
(Id
: E
) return B
is
1567 return Flag157
(Id
);
1568 end Has_Pragma_Inline
;
1570 function Has_Pragma_Inline_Always
(Id
: E
) return B
is
1572 return Flag230
(Id
);
1573 end Has_Pragma_Inline_Always
;
1575 function Has_Pragma_No_Inline
(Id
: E
) return B
is
1577 return Flag201
(Id
);
1578 end Has_Pragma_No_Inline
;
1580 function Has_Pragma_Ordered
(Id
: E
) return B
is
1582 pragma Assert
(Is_Enumeration_Type
(Id
));
1583 return Flag198
(Implementation_Base_Type
(Id
));
1584 end Has_Pragma_Ordered
;
1586 function Has_Pragma_Pack
(Id
: E
) return B
is
1588 pragma Assert
(Is_Record_Type
(Id
) or else Is_Array_Type
(Id
));
1589 return Flag121
(Implementation_Base_Type
(Id
));
1590 end Has_Pragma_Pack
;
1592 function Has_Pragma_Preelab_Init
(Id
: E
) return B
is
1594 return Flag221
(Id
);
1595 end Has_Pragma_Preelab_Init
;
1597 function Has_Pragma_Pure
(Id
: E
) return B
is
1599 return Flag203
(Id
);
1600 end Has_Pragma_Pure
;
1602 function Has_Pragma_Pure_Function
(Id
: E
) return B
is
1604 return Flag179
(Id
);
1605 end Has_Pragma_Pure_Function
;
1607 function Has_Pragma_Thread_Local_Storage
(Id
: E
) return B
is
1609 return Flag169
(Id
);
1610 end Has_Pragma_Thread_Local_Storage
;
1612 function Has_Pragma_Unmodified
(Id
: E
) return B
is
1614 return Flag233
(Id
);
1615 end Has_Pragma_Unmodified
;
1617 function Has_Pragma_Unreferenced
(Id
: E
) return B
is
1619 return Flag180
(Id
);
1620 end Has_Pragma_Unreferenced
;
1622 function Has_Pragma_Unreferenced_Objects
(Id
: E
) return B
is
1624 pragma Assert
(Is_Type
(Id
));
1625 return Flag212
(Id
);
1626 end Has_Pragma_Unreferenced_Objects
;
1628 function Has_Predicates
(Id
: E
) return B
is
1630 pragma Assert
(Is_Type
(Id
));
1631 return Flag250
(Id
);
1634 function Has_Primitive_Operations
(Id
: E
) return B
is
1636 pragma Assert
(Is_Type
(Id
));
1637 return Flag120
(Base_Type
(Id
));
1638 end Has_Primitive_Operations
;
1640 function Has_Private_Ancestor
(Id
: E
) return B
is
1642 return Flag151
(Id
);
1643 end Has_Private_Ancestor
;
1645 function Has_Private_Declaration
(Id
: E
) return B
is
1647 return Flag155
(Id
);
1648 end Has_Private_Declaration
;
1650 function Has_Protected
(Id
: E
) return B
is
1652 return Flag271
(Base_Type
(Id
));
1655 function Has_Qualified_Name
(Id
: E
) return B
is
1657 return Flag161
(Id
);
1658 end Has_Qualified_Name
;
1660 function Has_RACW
(Id
: E
) return B
is
1662 pragma Assert
(Ekind
(Id
) = E_Package
);
1663 return Flag214
(Id
);
1666 function Has_Record_Rep_Clause
(Id
: E
) return B
is
1668 pragma Assert
(Is_Record_Type
(Id
));
1669 return Flag65
(Implementation_Base_Type
(Id
));
1670 end Has_Record_Rep_Clause
;
1672 function Has_Recursive_Call
(Id
: E
) return B
is
1674 pragma Assert
(Is_Subprogram
(Id
));
1675 return Flag143
(Id
);
1676 end Has_Recursive_Call
;
1678 function Has_Shift_Operator
(Id
: E
) return B
is
1680 pragma Assert
(Is_Integer_Type
(Id
));
1681 return Flag267
(Base_Type
(Id
));
1682 end Has_Shift_Operator
;
1684 function Has_Size_Clause
(Id
: E
) return B
is
1687 end Has_Size_Clause
;
1689 function Has_Small_Clause
(Id
: E
) return B
is
1692 end Has_Small_Clause
;
1694 function Has_Specified_Layout
(Id
: E
) return B
is
1696 pragma Assert
(Is_Type
(Id
));
1697 return Flag100
(Implementation_Base_Type
(Id
));
1698 end Has_Specified_Layout
;
1700 function Has_Specified_Stream_Input
(Id
: E
) return B
is
1702 pragma Assert
(Is_Type
(Id
));
1703 return Flag190
(Id
);
1704 end Has_Specified_Stream_Input
;
1706 function Has_Specified_Stream_Output
(Id
: E
) return B
is
1708 pragma Assert
(Is_Type
(Id
));
1709 return Flag191
(Id
);
1710 end Has_Specified_Stream_Output
;
1712 function Has_Specified_Stream_Read
(Id
: E
) return B
is
1714 pragma Assert
(Is_Type
(Id
));
1715 return Flag192
(Id
);
1716 end Has_Specified_Stream_Read
;
1718 function Has_Specified_Stream_Write
(Id
: E
) return B
is
1720 pragma Assert
(Is_Type
(Id
));
1721 return Flag193
(Id
);
1722 end Has_Specified_Stream_Write
;
1724 function Has_Static_Discriminants
(Id
: E
) return B
is
1726 pragma Assert
(Is_Type
(Id
));
1727 return Flag211
(Id
);
1728 end Has_Static_Discriminants
;
1730 function Has_Static_Predicate
(Id
: E
) return B
is
1732 pragma Assert
(Is_Type
(Id
));
1733 return Flag269
(Id
);
1734 end Has_Static_Predicate
;
1736 function Has_Static_Predicate_Aspect
(Id
: E
) return B
is
1738 pragma Assert
(Is_Type
(Id
));
1739 return Flag259
(Id
);
1740 end Has_Static_Predicate_Aspect
;
1742 function Has_Storage_Size_Clause
(Id
: E
) return B
is
1744 pragma Assert
(Is_Access_Type
(Id
) or else Is_Task_Type
(Id
));
1745 return Flag23
(Implementation_Base_Type
(Id
));
1746 end Has_Storage_Size_Clause
;
1748 function Has_Stream_Size_Clause
(Id
: E
) return B
is
1750 return Flag184
(Id
);
1751 end Has_Stream_Size_Clause
;
1753 function Has_Task
(Id
: E
) return B
is
1755 return Flag30
(Base_Type
(Id
));
1758 function Has_Thunks
(Id
: E
) return B
is
1760 return Flag228
(Id
);
1763 function Has_Unchecked_Union
(Id
: E
) return B
is
1765 return Flag123
(Base_Type
(Id
));
1766 end Has_Unchecked_Union
;
1768 function Has_Unknown_Discriminants
(Id
: E
) return B
is
1770 pragma Assert
(Is_Type
(Id
));
1772 end Has_Unknown_Discriminants
;
1774 function Has_Up_Level_Access
(Id
: E
) return B
is
1777 (Ekind_In
(Id
, E_Variable
, E_Constant
, E_Loop_Parameter
));
1778 return Flag215
(Id
);
1779 end Has_Up_Level_Access
;
1781 function Has_Visible_Refinement
(Id
: E
) return B
is
1783 pragma Assert
(Ekind
(Id
) = E_Abstract_State
);
1784 return Flag263
(Id
);
1785 end Has_Visible_Refinement
;
1787 function Has_Volatile_Components
(Id
: E
) return B
is
1789 return Flag87
(Implementation_Base_Type
(Id
));
1790 end Has_Volatile_Components
;
1792 function Has_Xref_Entry
(Id
: E
) return B
is
1794 return Flag182
(Id
);
1797 function Hiding_Loop_Variable
(Id
: E
) return E
is
1799 pragma Assert
(Ekind
(Id
) = E_Variable
);
1801 end Hiding_Loop_Variable
;
1803 function Homonym
(Id
: E
) return E
is
1808 function Import_Pragma
(Id
: E
) return E
is
1810 pragma Assert
(Is_Subprogram
(Id
));
1814 function Interface_Alias
(Id
: E
) return E
is
1816 pragma Assert
(Is_Subprogram
(Id
));
1818 end Interface_Alias
;
1820 function Interfaces
(Id
: E
) return L
is
1822 pragma Assert
(Is_Record_Type
(Id
));
1823 return Elist25
(Id
);
1826 function In_Package_Body
(Id
: E
) return B
is
1829 end In_Package_Body
;
1831 function In_Private_Part
(Id
: E
) return B
is
1834 end In_Private_Part
;
1836 function In_Use
(Id
: E
) return B
is
1838 pragma Assert
(Nkind
(Id
) in N_Entity
);
1842 function Initialization_Statements
(Id
: E
) return N
is
1844 pragma Assert
(Ekind_In
(Id
, E_Constant
, E_Variable
));
1846 end Initialization_Statements
;
1848 function Inner_Instances
(Id
: E
) return L
is
1850 return Elist23
(Id
);
1851 end Inner_Instances
;
1853 function Interface_Name
(Id
: E
) return N
is
1858 function Is_Abstract_Subprogram
(Id
: E
) return B
is
1860 pragma Assert
(Is_Overloadable
(Id
));
1862 end Is_Abstract_Subprogram
;
1864 function Is_Abstract_Type
(Id
: E
) return B
is
1866 pragma Assert
(Is_Type
(Id
));
1867 return Flag146
(Id
);
1868 end Is_Abstract_Type
;
1870 function Is_Local_Anonymous_Access
(Id
: E
) return B
is
1872 pragma Assert
(Is_Access_Type
(Id
));
1873 return Flag194
(Id
);
1874 end Is_Local_Anonymous_Access
;
1876 function Is_Access_Constant
(Id
: E
) return B
is
1878 pragma Assert
(Is_Access_Type
(Id
));
1880 end Is_Access_Constant
;
1882 function Is_Ada_2005_Only
(Id
: E
) return B
is
1884 return Flag185
(Id
);
1885 end Is_Ada_2005_Only
;
1887 function Is_Ada_2012_Only
(Id
: E
) return B
is
1889 return Flag199
(Id
);
1890 end Is_Ada_2012_Only
;
1892 function Is_Aliased
(Id
: E
) return B
is
1894 pragma Assert
(Nkind
(Id
) in N_Entity
);
1898 function Is_Asynchronous
(Id
: E
) return B
is
1900 pragma Assert
(Ekind
(Id
) = E_Procedure
or else Is_Type
(Id
));
1902 end Is_Asynchronous
;
1904 function Is_Atomic
(Id
: E
) return B
is
1909 function Is_Bit_Packed_Array
(Id
: E
) return B
is
1911 return Flag122
(Implementation_Base_Type
(Id
));
1912 end Is_Bit_Packed_Array
;
1914 function Is_Called
(Id
: E
) return B
is
1916 pragma Assert
(Ekind_In
(Id
, E_Procedure
, E_Function
));
1917 return Flag102
(Id
);
1920 function Is_Character_Type
(Id
: E
) return B
is
1923 end Is_Character_Type
;
1925 function Is_Checked_Ghost_Entity
(Id
: E
) return B
is
1927 pragma Assert
(Nkind
(Id
) in N_Entity
);
1928 return Flag277
(Id
);
1929 end Is_Checked_Ghost_Entity
;
1931 function Is_Child_Unit
(Id
: E
) return B
is
1936 function Is_Class_Wide_Equivalent_Type
(Id
: E
) return B
is
1939 end Is_Class_Wide_Equivalent_Type
;
1941 function Is_Compilation_Unit
(Id
: E
) return B
is
1943 return Flag149
(Id
);
1944 end Is_Compilation_Unit
;
1946 function Is_Completely_Hidden
(Id
: E
) return B
is
1948 pragma Assert
(Ekind
(Id
) = E_Discriminant
);
1949 return Flag103
(Id
);
1950 end Is_Completely_Hidden
;
1952 function Is_Constr_Subt_For_U_Nominal
(Id
: E
) return B
is
1955 end Is_Constr_Subt_For_U_Nominal
;
1957 function Is_Constr_Subt_For_UN_Aliased
(Id
: E
) return B
is
1959 return Flag141
(Id
);
1960 end Is_Constr_Subt_For_UN_Aliased
;
1962 function Is_Constrained
(Id
: E
) return B
is
1964 pragma Assert
(Nkind
(Id
) in N_Entity
);
1968 function Is_Constructor
(Id
: E
) return B
is
1973 function Is_Controlled
(Id
: E
) return B
is
1975 return Flag42
(Base_Type
(Id
));
1978 function Is_Controlling_Formal
(Id
: E
) return B
is
1980 pragma Assert
(Is_Formal
(Id
));
1982 end Is_Controlling_Formal
;
1984 function Is_CPP_Class
(Id
: E
) return B
is
1989 function Is_Default_Init_Cond_Procedure
(Id
: E
) return B
is
1991 pragma Assert
(Ekind_In
(Id
, E_Function
, E_Procedure
));
1992 return Flag132
(Id
);
1993 end Is_Default_Init_Cond_Procedure
;
1995 function Is_Descendent_Of_Address
(Id
: E
) return B
is
1997 return Flag223
(Id
);
1998 end Is_Descendent_Of_Address
;
2000 function Is_Discrim_SO_Function
(Id
: E
) return B
is
2002 return Flag176
(Id
);
2003 end Is_Discrim_SO_Function
;
2005 function Is_Discriminant_Check_Function
(Id
: E
) return B
is
2007 return Flag264
(Id
);
2008 end Is_Discriminant_Check_Function
;
2010 function Is_Dispatch_Table_Entity
(Id
: E
) return B
is
2012 return Flag234
(Id
);
2013 end Is_Dispatch_Table_Entity
;
2015 function Is_Dispatching_Operation
(Id
: E
) return B
is
2017 pragma Assert
(Nkind
(Id
) in N_Entity
);
2019 end Is_Dispatching_Operation
;
2021 function Is_Eliminated
(Id
: E
) return B
is
2023 return Flag124
(Id
);
2026 function Is_Entry_Formal
(Id
: E
) return B
is
2029 end Is_Entry_Formal
;
2031 function Is_Exported
(Id
: E
) return B
is
2036 function Is_First_Subtype
(Id
: E
) return B
is
2039 end Is_First_Subtype
;
2041 function Is_For_Access_Subtype
(Id
: E
) return B
is
2043 pragma Assert
(Ekind_In
(Id
, E_Record_Subtype
, E_Private_Subtype
));
2044 return Flag118
(Id
);
2045 end Is_For_Access_Subtype
;
2047 function Is_Formal_Subprogram
(Id
: E
) return B
is
2049 return Flag111
(Id
);
2050 end Is_Formal_Subprogram
;
2052 function Is_Frozen
(Id
: E
) return B
is
2057 function Is_Generic_Actual_Subprogram
(Id
: E
) return B
is
2059 pragma Assert
(Ekind
(Id
) = E_Function
or else Ekind
(Id
) = E_Procedure
);
2060 return Flag274
(Id
);
2061 end Is_Generic_Actual_Subprogram
;
2063 function Is_Generic_Actual_Type
(Id
: E
) return B
is
2065 pragma Assert
(Is_Type
(Id
));
2067 end Is_Generic_Actual_Type
;
2069 function Is_Generic_Instance
(Id
: E
) return B
is
2071 return Flag130
(Id
);
2072 end Is_Generic_Instance
;
2074 function Is_Generic_Type
(Id
: E
) return B
is
2076 pragma Assert
(Nkind
(Id
) in N_Entity
);
2078 end Is_Generic_Type
;
2080 function Is_Hidden
(Id
: E
) return B
is
2085 function Is_Hidden_Non_Overridden_Subpgm
(Id
: E
) return B
is
2088 end Is_Hidden_Non_Overridden_Subpgm
;
2090 function Is_Hidden_Open_Scope
(Id
: E
) return B
is
2092 return Flag171
(Id
);
2093 end Is_Hidden_Open_Scope
;
2095 function Is_Ignored_Ghost_Entity
(Id
: E
) return B
is
2097 pragma Assert
(Nkind
(Id
) in N_Entity
);
2098 return Flag278
(Id
);
2099 end Is_Ignored_Ghost_Entity
;
2101 function Is_Immediately_Visible
(Id
: E
) return B
is
2103 pragma Assert
(Nkind
(Id
) in N_Entity
);
2105 end Is_Immediately_Visible
;
2107 function Is_Implementation_Defined
(Id
: E
) return B
is
2109 return Flag254
(Id
);
2110 end Is_Implementation_Defined
;
2112 function Is_Imported
(Id
: E
) return B
is
2117 function Is_Independent
(Id
: E
) return B
is
2119 return Flag268
(Id
);
2122 function Is_Inlined
(Id
: E
) return B
is
2127 function Is_Inlined_Always
(Id
: E
) return B
is
2129 pragma Assert
(Ekind
(Id
) = E_Function
or else Ekind
(Id
) = E_Procedure
);
2131 end Is_Inlined_Always
;
2133 function Is_Interface
(Id
: E
) return B
is
2135 return Flag186
(Id
);
2138 function Is_Instantiated
(Id
: E
) return B
is
2140 return Flag126
(Id
);
2141 end Is_Instantiated
;
2143 function Is_Internal
(Id
: E
) return B
is
2145 pragma Assert
(Nkind
(Id
) in N_Entity
);
2149 function Is_Interrupt_Handler
(Id
: E
) return B
is
2151 pragma Assert
(Nkind
(Id
) in N_Entity
);
2153 end Is_Interrupt_Handler
;
2155 function Is_Intrinsic_Subprogram
(Id
: E
) return B
is
2158 end Is_Intrinsic_Subprogram
;
2160 function Is_Invariant_Procedure
(Id
: E
) return B
is
2162 pragma Assert
(Ekind_In
(Id
, E_Function
, E_Procedure
));
2163 return Flag257
(Id
);
2164 end Is_Invariant_Procedure
;
2166 function Is_Itype
(Id
: E
) return B
is
2171 function Is_Known_Non_Null
(Id
: E
) return B
is
2174 end Is_Known_Non_Null
;
2176 function Is_Known_Null
(Id
: E
) return B
is
2178 return Flag204
(Id
);
2181 function Is_Known_Valid
(Id
: E
) return B
is
2183 return Flag170
(Id
);
2186 function Is_Limited_Composite
(Id
: E
) return B
is
2188 return Flag106
(Id
);
2189 end Is_Limited_Composite
;
2191 function Is_Limited_Interface
(Id
: E
) return B
is
2193 return Flag197
(Id
);
2194 end Is_Limited_Interface
;
2196 function Is_Limited_Record
(Id
: E
) return B
is
2199 end Is_Limited_Record
;
2201 function Is_Machine_Code_Subprogram
(Id
: E
) return B
is
2203 pragma Assert
(Is_Subprogram
(Id
));
2204 return Flag137
(Id
);
2205 end Is_Machine_Code_Subprogram
;
2207 function Is_Non_Static_Subtype
(Id
: E
) return B
is
2209 pragma Assert
(Is_Type
(Id
));
2210 return Flag109
(Id
);
2211 end Is_Non_Static_Subtype
;
2213 function Is_Null_Init_Proc
(Id
: E
) return B
is
2215 pragma Assert
(Ekind
(Id
) = E_Procedure
);
2216 return Flag178
(Id
);
2217 end Is_Null_Init_Proc
;
2219 function Is_Obsolescent
(Id
: E
) return B
is
2221 return Flag153
(Id
);
2224 function Is_Only_Out_Parameter
(Id
: E
) return B
is
2226 pragma Assert
(Is_Formal
(Id
));
2227 return Flag226
(Id
);
2228 end Is_Only_Out_Parameter
;
2230 function Is_Package_Body_Entity
(Id
: E
) return B
is
2232 return Flag160
(Id
);
2233 end Is_Package_Body_Entity
;
2235 function Is_Packed
(Id
: E
) return B
is
2237 return Flag51
(Implementation_Base_Type
(Id
));
2240 function Is_Packed_Array_Impl_Type
(Id
: E
) return B
is
2242 return Flag138
(Id
);
2243 end Is_Packed_Array_Impl_Type
;
2245 function Is_Potentially_Use_Visible
(Id
: E
) return B
is
2247 pragma Assert
(Nkind
(Id
) in N_Entity
);
2249 end Is_Potentially_Use_Visible
;
2251 function Is_Predicate_Function
(Id
: E
) return B
is
2253 pragma Assert
(Ekind
(Id
) = E_Function
or else Ekind
(Id
) = E_Procedure
);
2254 return Flag255
(Id
);
2255 end Is_Predicate_Function
;
2257 function Is_Predicate_Function_M
(Id
: E
) return B
is
2259 pragma Assert
(Ekind
(Id
) = E_Function
or else Ekind
(Id
) = E_Procedure
);
2260 return Flag256
(Id
);
2261 end Is_Predicate_Function_M
;
2263 function Is_Preelaborated
(Id
: E
) return B
is
2266 end Is_Preelaborated
;
2268 function Is_Primitive
(Id
: E
) return B
is
2271 (Is_Overloadable
(Id
)
2272 or else Ekind_In
(Id
, E_Generic_Function
, E_Generic_Procedure
));
2273 return Flag218
(Id
);
2276 function Is_Primitive_Wrapper
(Id
: E
) return B
is
2278 pragma Assert
(Ekind_In
(Id
, E_Function
, E_Procedure
));
2279 return Flag195
(Id
);
2280 end Is_Primitive_Wrapper
;
2282 function Is_Private_Composite
(Id
: E
) return B
is
2284 pragma Assert
(Is_Type
(Id
));
2285 return Flag107
(Id
);
2286 end Is_Private_Composite
;
2288 function Is_Private_Descendant
(Id
: E
) return B
is
2291 end Is_Private_Descendant
;
2293 function Is_Private_Primitive
(Id
: E
) return B
is
2295 pragma Assert
(Ekind_In
(Id
, E_Function
, E_Procedure
));
2296 return Flag245
(Id
);
2297 end Is_Private_Primitive
;
2299 function Is_Processed_Transient
(Id
: E
) return B
is
2301 pragma Assert
(Ekind_In
(Id
, E_Constant
, E_Loop_Parameter
, E_Variable
));
2302 return Flag252
(Id
);
2303 end Is_Processed_Transient
;
2305 function Is_Public
(Id
: E
) return B
is
2307 pragma Assert
(Nkind
(Id
) in N_Entity
);
2311 function Is_Pure
(Id
: E
) return B
is
2316 function Is_Pure_Unit_Access_Type
(Id
: E
) return B
is
2318 pragma Assert
(Is_Access_Type
(Id
));
2319 return Flag189
(Id
);
2320 end Is_Pure_Unit_Access_Type
;
2322 function Is_RACW_Stub_Type
(Id
: E
) return B
is
2324 pragma Assert
(Is_Type
(Id
));
2325 return Flag244
(Id
);
2326 end Is_RACW_Stub_Type
;
2328 function Is_Raised
(Id
: E
) return B
is
2330 pragma Assert
(Ekind
(Id
) = E_Exception
);
2331 return Flag224
(Id
);
2334 function Is_Remote_Call_Interface
(Id
: E
) return B
is
2337 end Is_Remote_Call_Interface
;
2339 function Is_Remote_Types
(Id
: E
) return B
is
2342 end Is_Remote_Types
;
2344 function Is_Renaming_Of_Object
(Id
: E
) return B
is
2346 return Flag112
(Id
);
2347 end Is_Renaming_Of_Object
;
2349 function Is_Return_Object
(Id
: E
) return B
is
2351 return Flag209
(Id
);
2352 end Is_Return_Object
;
2354 function Is_Safe_To_Reevaluate
(Id
: E
) return B
is
2356 return Flag249
(Id
);
2357 end Is_Safe_To_Reevaluate
;
2359 function Is_Shared_Passive
(Id
: E
) return B
is
2362 end Is_Shared_Passive
;
2364 function Is_Statically_Allocated
(Id
: E
) return B
is
2367 end Is_Statically_Allocated
;
2369 function Is_Tag
(Id
: E
) return B
is
2371 pragma Assert
(Nkind
(Id
) in N_Entity
);
2375 function Is_Tagged_Type
(Id
: E
) return B
is
2380 function Is_Thunk
(Id
: E
) return B
is
2382 return Flag225
(Id
);
2385 function Is_Trivial_Subprogram
(Id
: E
) return B
is
2387 return Flag235
(Id
);
2388 end Is_Trivial_Subprogram
;
2390 function Is_True_Constant
(Id
: E
) return B
is
2392 return Flag163
(Id
);
2393 end Is_True_Constant
;
2395 function Is_Unchecked_Union
(Id
: E
) return B
is
2397 return Flag117
(Implementation_Base_Type
(Id
));
2398 end Is_Unchecked_Union
;
2400 function Is_Underlying_Record_View
(Id
: E
) return B
is
2402 return Flag246
(Id
);
2403 end Is_Underlying_Record_View
;
2405 function Is_Unsigned_Type
(Id
: E
) return B
is
2407 pragma Assert
(Is_Type
(Id
));
2408 return Flag144
(Id
);
2409 end Is_Unsigned_Type
;
2411 function Is_Valued_Procedure
(Id
: E
) return B
is
2413 pragma Assert
(Ekind
(Id
) = E_Procedure
);
2414 return Flag127
(Id
);
2415 end Is_Valued_Procedure
;
2417 function Is_Visible_Formal
(Id
: E
) return B
is
2419 return Flag206
(Id
);
2420 end Is_Visible_Formal
;
2422 function Is_Visible_Lib_Unit
(Id
: E
) return B
is
2424 return Flag116
(Id
);
2425 end Is_Visible_Lib_Unit
;
2427 function Is_Volatile
(Id
: E
) return B
is
2429 pragma Assert
(Nkind
(Id
) in N_Entity
);
2431 if Is_Type
(Id
) then
2432 return Flag16
(Base_Type
(Id
));
2438 function Itype_Printed
(Id
: E
) return B
is
2440 pragma Assert
(Is_Itype
(Id
));
2441 return Flag202
(Id
);
2444 function Kill_Elaboration_Checks
(Id
: E
) return B
is
2447 end Kill_Elaboration_Checks
;
2449 function Kill_Range_Checks
(Id
: E
) return B
is
2452 end Kill_Range_Checks
;
2454 function Known_To_Have_Preelab_Init
(Id
: E
) return B
is
2456 pragma Assert
(Is_Type
(Id
));
2457 return Flag207
(Id
);
2458 end Known_To_Have_Preelab_Init
;
2460 function Last_Aggregate_Assignment
(Id
: E
) return N
is
2462 pragma Assert
(Ekind_In
(Id
, E_Constant
, E_Variable
));
2464 end Last_Aggregate_Assignment
;
2466 function Last_Assignment
(Id
: E
) return N
is
2468 pragma Assert
(Is_Assignable
(Id
));
2470 end Last_Assignment
;
2472 function Last_Entity
(Id
: E
) return E
is
2477 function Limited_View
(Id
: E
) return E
is
2479 pragma Assert
(Ekind
(Id
) = E_Package
);
2483 function Linker_Section_Pragma
(Id
: E
) return N
is
2486 (Is_Type
(Id
) or else Is_Object
(Id
) or else Is_Subprogram
(Id
));
2488 end Linker_Section_Pragma
;
2490 function Lit_Indexes
(Id
: E
) return E
is
2492 pragma Assert
(Is_Enumeration_Type
(Id
));
2496 function Lit_Strings
(Id
: E
) return E
is
2498 pragma Assert
(Is_Enumeration_Type
(Id
));
2502 function Low_Bound_Tested
(Id
: E
) return B
is
2504 return Flag205
(Id
);
2505 end Low_Bound_Tested
;
2507 function Machine_Radix_10
(Id
: E
) return B
is
2509 pragma Assert
(Is_Decimal_Fixed_Point_Type
(Id
));
2511 end Machine_Radix_10
;
2513 function Master_Id
(Id
: E
) return E
is
2515 pragma Assert
(Is_Access_Type
(Id
));
2519 function Materialize_Entity
(Id
: E
) return B
is
2521 return Flag168
(Id
);
2522 end Materialize_Entity
;
2524 function May_Inherit_Delayed_Rep_Aspects
(Id
: E
) return B
is
2526 return Flag262
(Id
);
2527 end May_Inherit_Delayed_Rep_Aspects
;
2529 function Mechanism
(Id
: E
) return M
is
2531 pragma Assert
(Ekind
(Id
) = E_Function
or else Is_Formal
(Id
));
2532 return UI_To_Int
(Uint8
(Id
));
2535 function Modulus
(Id
: E
) return Uint
is
2537 pragma Assert
(Is_Modular_Integer_Type
(Id
));
2538 return Uint17
(Base_Type
(Id
));
2541 function Must_Be_On_Byte_Boundary
(Id
: E
) return B
is
2543 pragma Assert
(Is_Type
(Id
));
2544 return Flag183
(Id
);
2545 end Must_Be_On_Byte_Boundary
;
2547 function Must_Have_Preelab_Init
(Id
: E
) return B
is
2549 pragma Assert
(Is_Type
(Id
));
2550 return Flag208
(Id
);
2551 end Must_Have_Preelab_Init
;
2553 function Needs_Debug_Info
(Id
: E
) return B
is
2555 return Flag147
(Id
);
2556 end Needs_Debug_Info
;
2558 function Needs_No_Actuals
(Id
: E
) return B
is
2561 (Is_Overloadable
(Id
)
2562 or else Ekind_In
(Id
, E_Subprogram_Type
, E_Entry_Family
));
2564 end Needs_No_Actuals
;
2566 function Never_Set_In_Source
(Id
: E
) return B
is
2568 return Flag115
(Id
);
2569 end Never_Set_In_Source
;
2571 function Next_Inlined_Subprogram
(Id
: E
) return E
is
2574 end Next_Inlined_Subprogram
;
2576 function No_Dynamic_Predicate_On_Actual
(Id
: E
) return Boolean is
2578 pragma Assert
(Is_Discrete_Type
(Id
));
2579 return Flag276
(Id
);
2580 end No_Dynamic_Predicate_On_Actual
;
2582 function No_Pool_Assigned
(Id
: E
) return B
is
2584 pragma Assert
(Is_Access_Type
(Id
));
2585 return Flag131
(Root_Type
(Id
));
2586 end No_Pool_Assigned
;
2588 function No_Predicate_On_Actual
(Id
: E
) return Boolean is
2590 pragma Assert
(Is_Discrete_Type
(Id
));
2591 return Flag275
(Id
);
2592 end No_Predicate_On_Actual
;
2594 function No_Return
(Id
: E
) return B
is
2596 return Flag113
(Id
);
2599 function No_Strict_Aliasing
(Id
: E
) return B
is
2601 pragma Assert
(Is_Access_Type
(Id
));
2602 return Flag136
(Base_Type
(Id
));
2603 end No_Strict_Aliasing
;
2605 function No_Tagged_Streams_Pragma
(Id
: E
) return N
is
2607 pragma Assert
(Is_Tagged_Type
(Id
));
2609 end No_Tagged_Streams_Pragma
;
2611 function Non_Binary_Modulus
(Id
: E
) return B
is
2613 pragma Assert
(Is_Type
(Id
));
2614 return Flag58
(Base_Type
(Id
));
2615 end Non_Binary_Modulus
;
2617 function Non_Limited_View
(Id
: E
) return E
is
2620 (Ekind
(Id
) in Incomplete_Kind
or else Ekind
(Id
) = E_Abstract_State
);
2622 end Non_Limited_View
;
2624 function Nonzero_Is_True
(Id
: E
) return B
is
2626 pragma Assert
(Root_Type
(Id
) = Standard_Boolean
);
2627 return Flag162
(Base_Type
(Id
));
2628 end Nonzero_Is_True
;
2630 function Normalized_First_Bit
(Id
: E
) return U
is
2632 pragma Assert
(Ekind_In
(Id
, E_Component
, E_Discriminant
));
2634 end Normalized_First_Bit
;
2636 function Normalized_Position
(Id
: E
) return U
is
2638 pragma Assert
(Ekind_In
(Id
, E_Component
, E_Discriminant
));
2640 end Normalized_Position
;
2642 function Normalized_Position_Max
(Id
: E
) return U
is
2644 pragma Assert
(Ekind_In
(Id
, E_Component
, E_Discriminant
));
2646 end Normalized_Position_Max
;
2648 function OK_To_Rename
(Id
: E
) return B
is
2650 pragma Assert
(Ekind
(Id
) = E_Variable
);
2651 return Flag247
(Id
);
2654 function OK_To_Reorder_Components
(Id
: E
) return B
is
2656 pragma Assert
(Is_Record_Type
(Id
));
2657 return Flag239
(Base_Type
(Id
));
2658 end OK_To_Reorder_Components
;
2660 function Optimize_Alignment_Space
(Id
: E
) return B
is
2663 (Is_Type
(Id
) or else Ekind_In
(Id
, E_Constant
, E_Variable
));
2664 return Flag241
(Id
);
2665 end Optimize_Alignment_Space
;
2667 function Optimize_Alignment_Time
(Id
: E
) return B
is
2670 (Is_Type
(Id
) or else Ekind_In
(Id
, E_Constant
, E_Variable
));
2671 return Flag242
(Id
);
2672 end Optimize_Alignment_Time
;
2674 function Original_Access_Type
(Id
: E
) return E
is
2676 pragma Assert
(Ekind
(Id
) = E_Access_Subprogram_Type
);
2678 end Original_Access_Type
;
2680 function Original_Array_Type
(Id
: E
) return E
is
2682 pragma Assert
(Is_Array_Type
(Id
) or else Is_Modular_Integer_Type
(Id
));
2684 end Original_Array_Type
;
2686 function Original_Record_Component
(Id
: E
) return E
is
2688 pragma Assert
(Ekind_In
(Id
, E_Void
, E_Component
, E_Discriminant
));
2690 end Original_Record_Component
;
2692 function Overlays_Constant
(Id
: E
) return B
is
2694 return Flag243
(Id
);
2695 end Overlays_Constant
;
2697 function Overridden_Operation
(Id
: E
) return E
is
2700 end Overridden_Operation
;
2702 function Package_Instantiation
(Id
: E
) return N
is
2704 pragma Assert
(Ekind_In
(Id
, E_Package
, E_Generic_Package
));
2706 end Package_Instantiation
;
2708 function Packed_Array_Impl_Type
(Id
: E
) return E
is
2710 pragma Assert
(Is_Array_Type
(Id
));
2712 end Packed_Array_Impl_Type
;
2714 function Parent_Subtype
(Id
: E
) return E
is
2716 pragma Assert
(Is_Record_Type
(Id
));
2717 return Node19
(Base_Type
(Id
));
2720 function Part_Of_Constituents
(Id
: E
) return L
is
2722 pragma Assert
(Ekind
(Id
) = E_Abstract_State
);
2724 end Part_Of_Constituents
;
2726 function Postcondition_Proc
(Id
: E
) return E
is
2728 pragma Assert
(Ekind
(Id
) = E_Procedure
);
2730 end Postcondition_Proc
;
2732 function PPC_Wrapper
(Id
: E
) return E
is
2734 pragma Assert
(Ekind_In
(Id
, E_Entry
, E_Entry_Family
));
2738 function Prival
(Id
: E
) return E
is
2740 pragma Assert
(Is_Protected_Component
(Id
));
2744 function Prival_Link
(Id
: E
) return E
is
2746 pragma Assert
(Ekind_In
(Id
, E_Constant
, E_Variable
));
2750 function Private_Dependents
(Id
: E
) return L
is
2752 pragma Assert
(Is_Incomplete_Or_Private_Type
(Id
));
2753 return Elist18
(Id
);
2754 end Private_Dependents
;
2756 function Private_View
(Id
: E
) return N
is
2758 pragma Assert
(Is_Private_Type
(Id
));
2762 function Protected_Body_Subprogram
(Id
: E
) return E
is
2764 pragma Assert
(Is_Subprogram
(Id
) or else Is_Entry
(Id
));
2766 end Protected_Body_Subprogram
;
2768 function Protected_Formal
(Id
: E
) return E
is
2770 pragma Assert
(Is_Formal
(Id
));
2772 end Protected_Formal
;
2774 function Protection_Object
(Id
: E
) return E
is
2777 (Ekind_In
(Id
, E_Entry
, E_Entry_Family
, E_Function
, E_Procedure
));
2779 end Protection_Object
;
2781 function Reachable
(Id
: E
) return B
is
2786 function Referenced
(Id
: E
) return B
is
2788 return Flag156
(Id
);
2791 function Referenced_As_LHS
(Id
: E
) return B
is
2794 end Referenced_As_LHS
;
2796 function Referenced_As_Out_Parameter
(Id
: E
) return B
is
2798 return Flag227
(Id
);
2799 end Referenced_As_Out_Parameter
;
2801 function Refinement_Constituents
(Id
: E
) return L
is
2803 pragma Assert
(Ekind
(Id
) = E_Abstract_State
);
2805 end Refinement_Constituents
;
2807 function Register_Exception_Call
(Id
: E
) return N
is
2809 pragma Assert
(Ekind
(Id
) = E_Exception
);
2811 end Register_Exception_Call
;
2813 function Related_Array_Object
(Id
: E
) return E
is
2815 pragma Assert
(Is_Array_Type
(Id
));
2817 end Related_Array_Object
;
2819 function Related_Expression
(Id
: E
) return N
is
2821 pragma Assert
(Ekind
(Id
) in Type_Kind
2822 or else Ekind_In
(Id
, E_Constant
, E_Variable
));
2824 end Related_Expression
;
2826 function Related_Instance
(Id
: E
) return E
is
2828 pragma Assert
(Ekind_In
(Id
, E_Package
, E_Package_Body
));
2830 end Related_Instance
;
2832 function Related_Type
(Id
: E
) return E
is
2834 pragma Assert
(Ekind_In
(Id
, E_Component
, E_Constant
, E_Variable
));
2838 function Relative_Deadline_Variable
(Id
: E
) return E
is
2840 pragma Assert
(Is_Task_Type
(Id
));
2841 return Node26
(Implementation_Base_Type
(Id
));
2842 end Relative_Deadline_Variable
;
2844 function Renamed_Entity
(Id
: E
) return N
is
2849 function Renamed_In_Spec
(Id
: E
) return B
is
2851 pragma Assert
(Ekind
(Id
) = E_Package
);
2852 return Flag231
(Id
);
2853 end Renamed_In_Spec
;
2855 function Renamed_Object
(Id
: E
) return N
is
2860 function Renaming_Map
(Id
: E
) return U
is
2865 function Requires_Overriding
(Id
: E
) return B
is
2867 pragma Assert
(Is_Overloadable
(Id
));
2868 return Flag213
(Id
);
2869 end Requires_Overriding
;
2871 function Return_Present
(Id
: E
) return B
is
2876 function Return_Applies_To
(Id
: E
) return N
is
2879 end Return_Applies_To
;
2881 function Returns_By_Ref
(Id
: E
) return B
is
2886 function Returns_Limited_View
(Id
: E
) return B
is
2888 pragma Assert
(Ekind
(Id
) = E_Function
);
2889 return Flag134
(Id
);
2890 end Returns_Limited_View
;
2892 function Reverse_Bit_Order
(Id
: E
) return B
is
2894 pragma Assert
(Is_Record_Type
(Id
));
2895 return Flag164
(Base_Type
(Id
));
2896 end Reverse_Bit_Order
;
2898 function Reverse_Storage_Order
(Id
: E
) return B
is
2900 pragma Assert
(Is_Record_Type
(Id
) or else Is_Array_Type
(Id
));
2901 return Flag93
(Base_Type
(Id
));
2902 end Reverse_Storage_Order
;
2904 function RM_Size
(Id
: E
) return U
is
2906 pragma Assert
(Is_Type
(Id
));
2910 function Scalar_Range
(Id
: E
) return N
is
2915 function Scale_Value
(Id
: E
) return U
is
2920 function Scope_Depth_Value
(Id
: E
) return U
is
2923 end Scope_Depth_Value
;
2925 function Sec_Stack_Needed_For_Return
(Id
: E
) return B
is
2927 return Flag167
(Id
);
2928 end Sec_Stack_Needed_For_Return
;
2930 function Shadow_Entities
(Id
: E
) return S
is
2932 pragma Assert
(Ekind_In
(Id
, E_Package
, E_Generic_Package
));
2934 end Shadow_Entities
;
2936 function Shared_Var_Procs_Instance
(Id
: E
) return E
is
2938 pragma Assert
(Ekind
(Id
) = E_Variable
);
2940 end Shared_Var_Procs_Instance
;
2942 function Size_Check_Code
(Id
: E
) return N
is
2944 pragma Assert
(Ekind_In
(Id
, E_Constant
, E_Variable
));
2946 end Size_Check_Code
;
2948 function Size_Depends_On_Discriminant
(Id
: E
) return B
is
2950 return Flag177
(Id
);
2951 end Size_Depends_On_Discriminant
;
2953 function Size_Known_At_Compile_Time
(Id
: E
) return B
is
2956 end Size_Known_At_Compile_Time
;
2958 function Small_Value
(Id
: E
) return R
is
2960 pragma Assert
(Is_Fixed_Point_Type
(Id
));
2961 return Ureal21
(Id
);
2964 function SPARK_Aux_Pragma
(Id
: E
) return N
is
2967 (Ekind_In
(Id
, E_Generic_Package
, -- package variants
2971 end SPARK_Aux_Pragma
;
2973 function SPARK_Aux_Pragma_Inherited
(Id
: E
) return B
is
2976 (Ekind_In
(Id
, E_Generic_Package
, -- package variants
2979 return Flag266
(Id
);
2980 end SPARK_Aux_Pragma_Inherited
;
2982 function SPARK_Pragma
(Id
: E
) return N
is
2985 (Ekind_In
(Id
, E_Function
, -- subprogram variants
2987 E_Generic_Procedure
,
2991 Ekind_In
(Id
, E_Generic_Package
, -- package variants
2997 function SPARK_Pragma_Inherited
(Id
: E
) return B
is
3000 (Ekind_In
(Id
, E_Function
, -- subprogram variants
3002 E_Generic_Procedure
,
3006 Ekind_In
(Id
, E_Generic_Package
, -- package variants
3009 return Flag265
(Id
);
3010 end SPARK_Pragma_Inherited
;
3012 function Spec_Entity
(Id
: E
) return E
is
3014 pragma Assert
(Ekind
(Id
) = E_Package_Body
or else Is_Formal
(Id
));
3018 function SSO_Set_High_By_Default
(Id
: E
) return B
is
3020 pragma Assert
(Is_Record_Type
(Id
) or else Is_Array_Type
(Id
));
3021 return Flag273
(Base_Type
(Id
));
3022 end SSO_Set_High_By_Default
;
3024 function SSO_Set_Low_By_Default
(Id
: E
) return B
is
3026 pragma Assert
(Is_Record_Type
(Id
) or else Is_Array_Type
(Id
));
3027 return Flag272
(Base_Type
(Id
));
3028 end SSO_Set_Low_By_Default
;
3030 function Static_Discrete_Predicate
(Id
: E
) return S
is
3032 pragma Assert
(Is_Discrete_Type
(Id
));
3034 end Static_Discrete_Predicate
;
3036 function Static_Real_Or_String_Predicate
(Id
: E
) return N
is
3038 pragma Assert
(Is_Real_Type
(Id
) or else Is_String_Type
(Id
));
3040 end Static_Real_Or_String_Predicate
;
3042 function Status_Flag_Or_Transient_Decl
(Id
: E
) return N
is
3044 pragma Assert
(Ekind_In
(Id
, E_Constant
, E_Variable
));
3046 end Status_Flag_Or_Transient_Decl
;
3048 function Storage_Size_Variable
(Id
: E
) return E
is
3050 pragma Assert
(Is_Access_Type
(Id
) or else Is_Task_Type
(Id
));
3051 return Node15
(Implementation_Base_Type
(Id
));
3052 end Storage_Size_Variable
;
3054 function Static_Elaboration_Desired
(Id
: E
) return B
is
3056 pragma Assert
(Ekind
(Id
) = E_Package
);
3058 end Static_Elaboration_Desired
;
3060 function Static_Initialization
(Id
: E
) return N
is
3063 (Ekind
(Id
) = E_Procedure
and then not Is_Dispatching_Operation
(Id
));
3065 end Static_Initialization
;
3067 function Stored_Constraint
(Id
: E
) return L
is
3070 (Is_Composite_Type
(Id
) and then not Is_Array_Type
(Id
));
3071 return Elist23
(Id
);
3072 end Stored_Constraint
;
3074 function Stores_Attribute_Old_Prefix
(Id
: E
) return B
is
3076 return Flag270
(Id
);
3077 end Stores_Attribute_Old_Prefix
;
3079 function Strict_Alignment
(Id
: E
) return B
is
3081 return Flag145
(Implementation_Base_Type
(Id
));
3082 end Strict_Alignment
;
3084 function String_Literal_Length
(Id
: E
) return U
is
3087 end String_Literal_Length
;
3089 function String_Literal_Low_Bound
(Id
: E
) return N
is
3092 end String_Literal_Low_Bound
;
3094 function Subprograms_For_Type
(Id
: E
) return E
is
3096 pragma Assert
(Is_Type
(Id
) or else Is_Subprogram
(Id
));
3098 end Subprograms_For_Type
;
3100 function Suppress_Elaboration_Warnings
(Id
: E
) return B
is
3102 return Flag148
(Id
);
3103 end Suppress_Elaboration_Warnings
;
3105 function Suppress_Initialization
(Id
: E
) return B
is
3107 pragma Assert
(Is_Type
(Id
) or else Ekind
(Id
) = E_Variable
);
3108 return Flag105
(Id
);
3109 end Suppress_Initialization
;
3111 function Suppress_Style_Checks
(Id
: E
) return B
is
3113 return Flag165
(Id
);
3114 end Suppress_Style_Checks
;
3116 function Suppress_Value_Tracking_On_Call
(Id
: E
) return B
is
3118 return Flag217
(Id
);
3119 end Suppress_Value_Tracking_On_Call
;
3121 function Task_Body_Procedure
(Id
: E
) return N
is
3123 pragma Assert
(Ekind
(Id
) in Task_Kind
);
3125 end Task_Body_Procedure
;
3127 function Thunk_Entity
(Id
: E
) return E
is
3129 pragma Assert
(Ekind_In
(Id
, E_Function
, E_Procedure
)
3130 and then Is_Thunk
(Id
));
3134 function Treat_As_Volatile
(Id
: E
) return B
is
3137 end Treat_As_Volatile
;
3139 function Underlying_Full_View
(Id
: E
) return E
is
3141 pragma Assert
(Ekind
(Id
) in Private_Kind
);
3143 end Underlying_Full_View
;
3145 function Underlying_Record_View
(Id
: E
) return E
is
3148 end Underlying_Record_View
;
3150 function Universal_Aliasing
(Id
: E
) return B
is
3152 pragma Assert
(Is_Type
(Id
));
3153 return Flag216
(Implementation_Base_Type
(Id
));
3154 end Universal_Aliasing
;
3156 function Unset_Reference
(Id
: E
) return N
is
3159 end Unset_Reference
;
3161 function Used_As_Generic_Actual
(Id
: E
) return B
is
3163 return Flag222
(Id
);
3164 end Used_As_Generic_Actual
;
3166 function Uses_Lock_Free
(Id
: E
) return B
is
3168 pragma Assert
(Is_Protected_Type
(Id
));
3169 return Flag188
(Id
);
3172 function Uses_Sec_Stack
(Id
: E
) return B
is
3177 function Warnings_Off
(Id
: E
) return B
is
3182 function Warnings_Off_Used
(Id
: E
) return B
is
3184 return Flag236
(Id
);
3185 end Warnings_Off_Used
;
3187 function Warnings_Off_Used_Unmodified
(Id
: E
) return B
is
3189 return Flag237
(Id
);
3190 end Warnings_Off_Used_Unmodified
;
3192 function Warnings_Off_Used_Unreferenced
(Id
: E
) return B
is
3194 return Flag238
(Id
);
3195 end Warnings_Off_Used_Unreferenced
;
3197 function Wrapped_Entity
(Id
: E
) return E
is
3199 pragma Assert
(Ekind_In
(Id
, E_Function
, E_Procedure
)
3200 and then Is_Primitive_Wrapper
(Id
));
3204 function Was_Hidden
(Id
: E
) return B
is
3206 return Flag196
(Id
);
3209 ------------------------------
3210 -- Classification Functions --
3211 ------------------------------
3213 function Is_Access_Type
(Id
: E
) return B
is
3215 return Ekind
(Id
) in Access_Kind
;
3218 function Is_Access_Protected_Subprogram_Type
(Id
: E
) return B
is
3220 return Ekind
(Id
) in Access_Protected_Kind
;
3221 end Is_Access_Protected_Subprogram_Type
;
3223 function Is_Access_Subprogram_Type
(Id
: E
) return B
is
3225 return Ekind
(Id
) in Access_Subprogram_Kind
;
3226 end Is_Access_Subprogram_Type
;
3228 function Is_Aggregate_Type
(Id
: E
) return B
is
3230 return Ekind
(Id
) in Aggregate_Kind
;
3231 end Is_Aggregate_Type
;
3233 function Is_Array_Type
(Id
: E
) return B
is
3235 return Ekind
(Id
) in Array_Kind
;
3238 function Is_Assignable
(Id
: E
) return B
is
3240 return Ekind
(Id
) in Assignable_Kind
;
3243 function Is_Class_Wide_Type
(Id
: E
) return B
is
3245 return Ekind
(Id
) in Class_Wide_Kind
;
3246 end Is_Class_Wide_Type
;
3248 function Is_Composite_Type
(Id
: E
) return B
is
3250 return Ekind
(Id
) in Composite_Kind
;
3251 end Is_Composite_Type
;
3253 function Is_Concurrent_Body
(Id
: E
) return B
is
3255 return Ekind
(Id
) in
3256 Concurrent_Body_Kind
;
3257 end Is_Concurrent_Body
;
3259 function Is_Concurrent_Record_Type
(Id
: E
) return B
is
3262 end Is_Concurrent_Record_Type
;
3264 function Is_Concurrent_Type
(Id
: E
) return B
is
3266 return Ekind
(Id
) in Concurrent_Kind
;
3267 end Is_Concurrent_Type
;
3269 function Is_Decimal_Fixed_Point_Type
(Id
: E
) return B
is
3271 return Ekind
(Id
) in
3272 Decimal_Fixed_Point_Kind
;
3273 end Is_Decimal_Fixed_Point_Type
;
3275 function Is_Digits_Type
(Id
: E
) return B
is
3277 return Ekind
(Id
) in Digits_Kind
;
3280 function Is_Discrete_Or_Fixed_Point_Type
(Id
: E
) return B
is
3282 return Ekind
(Id
) in Discrete_Or_Fixed_Point_Kind
;
3283 end Is_Discrete_Or_Fixed_Point_Type
;
3285 function Is_Discrete_Type
(Id
: E
) return B
is
3287 return Ekind
(Id
) in Discrete_Kind
;
3288 end Is_Discrete_Type
;
3290 function Is_Elementary_Type
(Id
: E
) return B
is
3292 return Ekind
(Id
) in Elementary_Kind
;
3293 end Is_Elementary_Type
;
3295 function Is_Entry
(Id
: E
) return B
is
3297 return Ekind
(Id
) in Entry_Kind
;
3300 function Is_Enumeration_Type
(Id
: E
) return B
is
3302 return Ekind
(Id
) in
3304 end Is_Enumeration_Type
;
3306 function Is_Fixed_Point_Type
(Id
: E
) return B
is
3308 return Ekind
(Id
) in
3310 end Is_Fixed_Point_Type
;
3312 function Is_Floating_Point_Type
(Id
: E
) return B
is
3314 return Ekind
(Id
) in Float_Kind
;
3315 end Is_Floating_Point_Type
;
3317 function Is_Formal
(Id
: E
) return B
is
3319 return Ekind
(Id
) in Formal_Kind
;
3322 function Is_Formal_Object
(Id
: E
) return B
is
3324 return Ekind
(Id
) in Formal_Object_Kind
;
3325 end Is_Formal_Object
;
3327 function Is_Generic_Subprogram
(Id
: E
) return B
is
3329 return Ekind
(Id
) in Generic_Subprogram_Kind
;
3330 end Is_Generic_Subprogram
;
3332 function Is_Generic_Unit
(Id
: E
) return B
is
3334 return Ekind
(Id
) in Generic_Unit_Kind
;
3335 end Is_Generic_Unit
;
3337 function Is_Incomplete_Or_Private_Type
(Id
: E
) return B
is
3339 return Ekind
(Id
) in
3340 Incomplete_Or_Private_Kind
;
3341 end Is_Incomplete_Or_Private_Type
;
3343 function Is_Incomplete_Type
(Id
: E
) return B
is
3345 return Ekind
(Id
) in
3347 end Is_Incomplete_Type
;
3349 function Is_Integer_Type
(Id
: E
) return B
is
3351 return Ekind
(Id
) in Integer_Kind
;
3352 end Is_Integer_Type
;
3354 function Is_Modular_Integer_Type
(Id
: E
) return B
is
3356 return Ekind
(Id
) in
3357 Modular_Integer_Kind
;
3358 end Is_Modular_Integer_Type
;
3360 function Is_Named_Number
(Id
: E
) return B
is
3362 return Ekind
(Id
) in Named_Kind
;
3363 end Is_Named_Number
;
3365 function Is_Numeric_Type
(Id
: E
) return B
is
3367 return Ekind
(Id
) in Numeric_Kind
;
3368 end Is_Numeric_Type
;
3370 function Is_Object
(Id
: E
) return B
is
3372 return Ekind
(Id
) in Object_Kind
;
3375 function Is_Ordinary_Fixed_Point_Type
(Id
: E
) return B
is
3377 return Ekind
(Id
) in
3378 Ordinary_Fixed_Point_Kind
;
3379 end Is_Ordinary_Fixed_Point_Type
;
3381 function Is_Overloadable
(Id
: E
) return B
is
3383 return Ekind
(Id
) in Overloadable_Kind
;
3384 end Is_Overloadable
;
3386 function Is_Private_Type
(Id
: E
) return B
is
3388 return Ekind
(Id
) in Private_Kind
;
3389 end Is_Private_Type
;
3391 function Is_Protected_Type
(Id
: E
) return B
is
3393 return Ekind
(Id
) in Protected_Kind
;
3394 end Is_Protected_Type
;
3396 function Is_Real_Type
(Id
: E
) return B
is
3398 return Ekind
(Id
) in Real_Kind
;
3401 function Is_Record_Type
(Id
: E
) return B
is
3403 return Ekind
(Id
) in Record_Kind
;
3406 function Is_Scalar_Type
(Id
: E
) return B
is
3408 return Ekind
(Id
) in Scalar_Kind
;
3411 function Is_Signed_Integer_Type
(Id
: E
) return B
is
3413 return Ekind
(Id
) in Signed_Integer_Kind
;
3414 end Is_Signed_Integer_Type
;
3416 function Is_Subprogram
(Id
: E
) return B
is
3418 return Ekind
(Id
) in Subprogram_Kind
;
3421 function Is_Subprogram_Or_Generic_Subprogram
(Id
: E
) return B
is
3423 return Ekind
(Id
) in Subprogram_Kind
3425 Ekind
(Id
) in Generic_Subprogram_Kind
;
3426 end Is_Subprogram_Or_Generic_Subprogram
;
3428 function Is_Task_Type
(Id
: E
) return B
is
3430 return Ekind
(Id
) in Task_Kind
;
3433 function Is_Type
(Id
: E
) return B
is
3435 return Ekind
(Id
) in Type_Kind
;
3438 ------------------------------
3439 -- Attribute Set Procedures --
3440 ------------------------------
3442 -- Note: in many of these set procedures an "obvious" assertion is missing.
3443 -- The reason for this is that in many cases, a field is set before the
3444 -- Ekind field is set, so that the field is set when Ekind = E_Void. It
3445 -- it is possible to add assertions that specifically include the E_Void
3446 -- possibility, but in some cases, we just omit the assertions.
3448 procedure Set_Abstract_States
(Id
: E
; V
: L
) is
3450 pragma Assert
(Ekind_In
(Id
, E_Generic_Package
, E_Package
));
3451 Set_Elist25
(Id
, V
);
3452 end Set_Abstract_States
;
3454 procedure Set_Accept_Address
(Id
: E
; V
: L
) is
3456 Set_Elist21
(Id
, V
);
3457 end Set_Accept_Address
;
3459 procedure Set_Access_Disp_Table
(Id
: E
; V
: L
) is
3461 pragma Assert
(Ekind
(Id
) = E_Record_Type
3462 and then Id
= Implementation_Base_Type
(Id
));
3463 pragma Assert
(V
= No_Elist
or else Is_Tagged_Type
(Id
));
3464 Set_Elist16
(Id
, V
);
3465 end Set_Access_Disp_Table
;
3467 procedure Set_Associated_Formal_Package
(Id
: E
; V
: E
) is
3470 end Set_Associated_Formal_Package
;
3472 procedure Set_Associated_Node_For_Itype
(Id
: E
; V
: E
) is
3475 end Set_Associated_Node_For_Itype
;
3477 procedure Set_Associated_Storage_Pool
(Id
: E
; V
: E
) is
3479 pragma Assert
(Is_Access_Type
(Id
) and then Is_Base_Type
(Id
));
3481 end Set_Associated_Storage_Pool
;
3483 procedure Set_Actual_Subtype
(Id
: E
; V
: E
) is
3486 (Ekind_In
(Id
, E_Constant
, E_Variable
, E_Generic_In_Out_Parameter
)
3487 or else Is_Formal
(Id
));
3489 end Set_Actual_Subtype
;
3491 procedure Set_Address_Taken
(Id
: E
; V
: B
:= True) is
3493 Set_Flag104
(Id
, V
);
3494 end Set_Address_Taken
;
3496 procedure Set_Alias
(Id
: E
; V
: E
) is
3499 (Is_Overloadable
(Id
) or else Ekind
(Id
) = E_Subprogram_Type
);
3503 procedure Set_Alignment
(Id
: E
; V
: U
) is
3505 pragma Assert
(Is_Type
(Id
)
3506 or else Is_Formal
(Id
)
3507 or else Ekind_In
(Id
, E_Loop_Parameter
,
3514 procedure Set_Barrier_Function
(Id
: E
; V
: N
) is
3516 pragma Assert
(Is_Entry
(Id
));
3518 end Set_Barrier_Function
;
3520 procedure Set_Block_Node
(Id
: E
; V
: N
) is
3522 pragma Assert
(Ekind
(Id
) = E_Block
);
3526 procedure Set_Body_Entity
(Id
: E
; V
: E
) is
3528 pragma Assert
(Ekind_In
(Id
, E_Package
, E_Generic_Package
));
3530 end Set_Body_Entity
;
3532 procedure Set_Body_Needed_For_SAL
(Id
: E
; V
: B
:= True) is
3535 (Ekind
(Id
) = E_Package
3536 or else Is_Subprogram
(Id
)
3537 or else Is_Generic_Unit
(Id
));
3539 end Set_Body_Needed_For_SAL
;
3541 procedure Set_Body_References
(Id
: E
; V
: L
) is
3543 pragma Assert
(Ekind
(Id
) = E_Abstract_State
);
3544 Set_Elist16
(Id
, V
);
3545 end Set_Body_References
;
3547 procedure Set_BIP_Initialization_Call
(Id
: E
; V
: N
) is
3549 pragma Assert
(Ekind_In
(Id
, E_Constant
, E_Variable
));
3551 end Set_BIP_Initialization_Call
;
3553 procedure Set_C_Pass_By_Copy
(Id
: E
; V
: B
:= True) is
3555 pragma Assert
(Is_Record_Type
(Id
) and then Is_Base_Type
(Id
));
3556 Set_Flag125
(Id
, V
);
3557 end Set_C_Pass_By_Copy
;
3559 procedure Set_Can_Never_Be_Null
(Id
: E
; V
: B
:= True) is
3562 end Set_Can_Never_Be_Null
;
3564 procedure Set_Can_Use_Internal_Rep
(Id
: E
; V
: B
:= True) is
3567 (Is_Access_Subprogram_Type
(Id
) and then Is_Base_Type
(Id
));
3568 Set_Flag229
(Id
, V
);
3569 end Set_Can_Use_Internal_Rep
;
3571 procedure Set_Checks_May_Be_Suppressed
(Id
: E
; V
: B
:= True) is
3574 end Set_Checks_May_Be_Suppressed
;
3576 procedure Set_Class_Wide_Type
(Id
: E
; V
: E
) is
3578 pragma Assert
(Is_Type
(Id
));
3580 end Set_Class_Wide_Type
;
3582 procedure Set_Cloned_Subtype
(Id
: E
; V
: E
) is
3584 pragma Assert
(Ekind_In
(Id
, E_Record_Subtype
, E_Class_Wide_Subtype
));
3586 end Set_Cloned_Subtype
;
3588 procedure Set_Component_Bit_Offset
(Id
: E
; V
: U
) is
3590 pragma Assert
(Ekind_In
(Id
, E_Component
, E_Discriminant
));
3592 end Set_Component_Bit_Offset
;
3594 procedure Set_Component_Clause
(Id
: E
; V
: N
) is
3596 pragma Assert
(Ekind_In
(Id
, E_Component
, E_Discriminant
));
3598 end Set_Component_Clause
;
3600 procedure Set_Component_Size
(Id
: E
; V
: U
) is
3602 pragma Assert
(Is_Array_Type
(Id
) and then Is_Base_Type
(Id
));
3604 end Set_Component_Size
;
3606 procedure Set_Component_Type
(Id
: E
; V
: E
) is
3608 pragma Assert
(Is_Array_Type
(Id
) and then Is_Base_Type
(Id
));
3610 end Set_Component_Type
;
3612 procedure Set_Contract
(Id
: E
; V
: N
) is
3615 (Ekind_In
(Id
, E_Entry
,
3623 or else Is_Subprogram_Or_Generic_Subprogram
(Id
));
3627 procedure Set_Corresponding_Concurrent_Type
(Id
: E
; V
: E
) is
3630 (Ekind
(Id
) = E_Record_Type
and then Is_Concurrent_Type
(V
));
3632 end Set_Corresponding_Concurrent_Type
;
3634 procedure Set_Corresponding_Discriminant
(Id
: E
; V
: E
) is
3636 pragma Assert
(Ekind
(Id
) = E_Discriminant
);
3638 end Set_Corresponding_Discriminant
;
3640 procedure Set_Corresponding_Equality
(Id
: E
; V
: E
) is
3643 (Ekind
(Id
) = E_Function
3644 and then not Comes_From_Source
(Id
)
3645 and then Chars
(Id
) = Name_Op_Ne
);
3647 end Set_Corresponding_Equality
;
3649 procedure Set_Corresponding_Protected_Entry
(Id
: E
; V
: E
) is
3651 pragma Assert
(Ekind_In
(Id
, E_Void
, E_Subprogram_Body
));
3653 end Set_Corresponding_Protected_Entry
;
3655 procedure Set_Corresponding_Record_Type
(Id
: E
; V
: E
) is
3657 pragma Assert
(Is_Concurrent_Type
(Id
));
3659 end Set_Corresponding_Record_Type
;
3661 procedure Set_Corresponding_Remote_Type
(Id
: E
; V
: E
) is
3664 end Set_Corresponding_Remote_Type
;
3666 procedure Set_Current_Use_Clause
(Id
: E
; V
: E
) is
3668 pragma Assert
(Ekind
(Id
) = E_Package
or else Is_Type
(Id
));
3670 end Set_Current_Use_Clause
;
3672 procedure Set_Current_Value
(Id
: E
; V
: N
) is
3674 pragma Assert
(Ekind
(Id
) in Object_Kind
or else Ekind
(Id
) = E_Void
);
3676 end Set_Current_Value
;
3678 procedure Set_CR_Discriminant
(Id
: E
; V
: E
) is
3681 end Set_CR_Discriminant
;
3683 procedure Set_Debug_Info_Off
(Id
: E
; V
: B
:= True) is
3685 Set_Flag166
(Id
, V
);
3686 end Set_Debug_Info_Off
;
3688 procedure Set_Debug_Renaming_Link
(Id
: E
; V
: E
) is
3691 end Set_Debug_Renaming_Link
;
3693 procedure Set_Default_Aspect_Component_Value
(Id
: E
; V
: E
) is
3695 pragma Assert
(Is_Array_Type
(Id
) and then Is_Base_Type
(Id
));
3697 end Set_Default_Aspect_Component_Value
;
3699 procedure Set_Default_Aspect_Value
(Id
: E
; V
: E
) is
3701 pragma Assert
(Is_Scalar_Type
(Id
) and then Is_Base_Type
(Id
));
3703 end Set_Default_Aspect_Value
;
3705 procedure Set_Default_Expr_Function
(Id
: E
; V
: E
) is
3707 pragma Assert
(Is_Formal
(Id
));
3709 end Set_Default_Expr_Function
;
3711 procedure Set_Default_Expressions_Processed
(Id
: E
; V
: B
:= True) is
3713 Set_Flag108
(Id
, V
);
3714 end Set_Default_Expressions_Processed
;
3716 procedure Set_Default_Value
(Id
: E
; V
: N
) is
3718 pragma Assert
(Is_Formal
(Id
));
3720 end Set_Default_Value
;
3722 procedure Set_Delay_Cleanups
(Id
: E
; V
: B
:= True) is
3726 or else Is_Task_Type
(Id
)
3727 or else Ekind
(Id
) = E_Block
);
3728 Set_Flag114
(Id
, V
);
3729 end Set_Delay_Cleanups
;
3731 procedure Set_Delay_Subprogram_Descriptors
(Id
: E
; V
: B
:= True) is
3734 (Is_Subprogram
(Id
) or else Ekind_In
(Id
, E_Package
, E_Package_Body
));
3737 end Set_Delay_Subprogram_Descriptors
;
3739 procedure Set_Delta_Value
(Id
: E
; V
: R
) is
3741 pragma Assert
(Is_Fixed_Point_Type
(Id
));
3742 Set_Ureal18
(Id
, V
);
3743 end Set_Delta_Value
;
3745 procedure Set_Dependent_Instances
(Id
: E
; V
: L
) is
3747 pragma Assert
(Is_Generic_Instance
(Id
));
3749 end Set_Dependent_Instances
;
3751 procedure Set_Depends_On_Private
(Id
: E
; V
: B
:= True) is
3753 pragma Assert
(Nkind
(Id
) in N_Entity
);
3755 end Set_Depends_On_Private
;
3757 procedure Set_Derived_Type_Link
(Id
: E
; V
: E
) is
3759 pragma Assert
(Is_Type
(Id
) and then Is_Base_Type
(Id
));
3761 end Set_Derived_Type_Link
;
3763 procedure Set_Digits_Value
(Id
: E
; V
: U
) is
3766 (Is_Floating_Point_Type
(Id
)
3767 or else Is_Decimal_Fixed_Point_Type
(Id
));
3769 end Set_Digits_Value
;
3771 procedure Set_Directly_Designated_Type
(Id
: E
; V
: E
) is
3774 end Set_Directly_Designated_Type
;
3776 procedure Set_Discard_Names
(Id
: E
; V
: B
:= True) is
3779 end Set_Discard_Names
;
3781 procedure Set_Discriminal
(Id
: E
; V
: E
) is
3783 pragma Assert
(Ekind
(Id
) = E_Discriminant
);
3785 end Set_Discriminal
;
3787 procedure Set_Discriminal_Link
(Id
: E
; V
: E
) is
3790 end Set_Discriminal_Link
;
3792 procedure Set_Discriminant_Checking_Func
(Id
: E
; V
: E
) is
3794 pragma Assert
(Ekind
(Id
) = E_Component
);
3796 end Set_Discriminant_Checking_Func
;
3798 procedure Set_Discriminant_Constraint
(Id
: E
; V
: L
) is
3800 pragma Assert
(Nkind
(Id
) in N_Entity
);
3801 Set_Elist21
(Id
, V
);
3802 end Set_Discriminant_Constraint
;
3804 procedure Set_Discriminant_Default_Value
(Id
: E
; V
: N
) is
3807 end Set_Discriminant_Default_Value
;
3809 procedure Set_Discriminant_Number
(Id
: E
; V
: U
) is
3812 end Set_Discriminant_Number
;
3814 procedure Set_Dispatch_Table_Wrappers
(Id
: E
; V
: L
) is
3816 pragma Assert
(Ekind
(Id
) = E_Record_Type
3817 and then Id
= Implementation_Base_Type
(Id
));
3818 pragma Assert
(V
= No_Elist
or else Is_Tagged_Type
(Id
));
3819 Set_Elist26
(Id
, V
);
3820 end Set_Dispatch_Table_Wrappers
;
3822 procedure Set_DT_Entry_Count
(Id
: E
; V
: U
) is
3824 pragma Assert
(Ekind
(Id
) = E_Component
);
3826 end Set_DT_Entry_Count
;
3828 procedure Set_DT_Offset_To_Top_Func
(Id
: E
; V
: E
) is
3830 pragma Assert
(Ekind
(Id
) = E_Component
and then Is_Tag
(Id
));
3832 end Set_DT_Offset_To_Top_Func
;
3834 procedure Set_DT_Position
(Id
: E
; V
: U
) is
3836 pragma Assert
(Ekind_In
(Id
, E_Function
, E_Procedure
));
3838 end Set_DT_Position
;
3840 procedure Set_DTC_Entity
(Id
: E
; V
: E
) is
3842 pragma Assert
(Ekind_In
(Id
, E_Function
, E_Procedure
));
3846 procedure Set_Elaborate_Body_Desirable
(Id
: E
; V
: B
:= True) is
3848 pragma Assert
(Ekind
(Id
) = E_Package
);
3849 Set_Flag210
(Id
, V
);
3850 end Set_Elaborate_Body_Desirable
;
3852 procedure Set_Elaboration_Entity
(Id
: E
; V
: E
) is
3857 Ekind
(Id
) = E_Package
3859 Is_Generic_Unit
(Id
));
3861 end Set_Elaboration_Entity
;
3863 procedure Set_Elaboration_Entity_Required
(Id
: E
; V
: B
:= True) is
3868 Ekind
(Id
) = E_Package
3870 Is_Generic_Unit
(Id
));
3871 Set_Flag174
(Id
, V
);
3872 end Set_Elaboration_Entity_Required
;
3874 procedure Set_Encapsulating_State
(Id
: E
; V
: E
) is
3876 pragma Assert
(Ekind_In
(Id
, E_Abstract_State
, E_Variable
));
3878 end Set_Encapsulating_State
;
3880 procedure Set_Enclosing_Scope
(Id
: E
; V
: E
) is
3883 end Set_Enclosing_Scope
;
3885 procedure Set_Entry_Accepted
(Id
: E
; V
: B
:= True) is
3887 pragma Assert
(Is_Entry
(Id
));
3888 Set_Flag152
(Id
, V
);
3889 end Set_Entry_Accepted
;
3891 procedure Set_Entry_Bodies_Array
(Id
: E
; V
: E
) is
3894 end Set_Entry_Bodies_Array
;
3896 procedure Set_Entry_Cancel_Parameter
(Id
: E
; V
: E
) is
3899 end Set_Entry_Cancel_Parameter
;
3901 procedure Set_Entry_Component
(Id
: E
; V
: E
) is
3904 end Set_Entry_Component
;
3906 procedure Set_Entry_Formal
(Id
: E
; V
: E
) is
3909 end Set_Entry_Formal
;
3911 procedure Set_Entry_Index_Constant
(Id
: E
; V
: E
) is
3913 pragma Assert
(Ekind
(Id
) = E_Entry_Index_Parameter
);
3915 end Set_Entry_Index_Constant
;
3917 procedure Set_Entry_Parameters_Type
(Id
: E
; V
: E
) is
3920 end Set_Entry_Parameters_Type
;
3922 procedure Set_Enum_Pos_To_Rep
(Id
: E
; V
: E
) is
3924 pragma Assert
(Ekind
(Id
) = E_Enumeration_Type
);
3926 end Set_Enum_Pos_To_Rep
;
3928 procedure Set_Enumeration_Pos
(Id
: E
; V
: U
) is
3930 pragma Assert
(Ekind
(Id
) = E_Enumeration_Literal
);
3932 end Set_Enumeration_Pos
;
3934 procedure Set_Enumeration_Rep
(Id
: E
; V
: U
) is
3936 pragma Assert
(Ekind
(Id
) = E_Enumeration_Literal
);
3938 end Set_Enumeration_Rep
;
3940 procedure Set_Enumeration_Rep_Expr
(Id
: E
; V
: N
) is
3942 pragma Assert
(Ekind
(Id
) = E_Enumeration_Literal
);
3944 end Set_Enumeration_Rep_Expr
;
3946 procedure Set_Equivalent_Type
(Id
: E
; V
: E
) is
3949 (Ekind_In
(Id
, E_Class_Wide_Type
,
3950 E_Class_Wide_Subtype
,
3951 E_Access_Protected_Subprogram_Type
,
3952 E_Anonymous_Access_Protected_Subprogram_Type
,
3953 E_Access_Subprogram_Type
,
3956 end Set_Equivalent_Type
;
3958 procedure Set_Esize
(Id
: E
; V
: U
) is
3963 procedure Set_Extra_Accessibility
(Id
: E
; V
: E
) is
3966 (Is_Formal
(Id
) or else Ekind_In
(Id
, E_Variable
, E_Constant
));
3968 end Set_Extra_Accessibility
;
3970 procedure Set_Extra_Accessibility_Of_Result
(Id
: E
; V
: E
) is
3972 pragma Assert
(Ekind_In
(Id
, E_Function
, E_Operator
, E_Subprogram_Type
));
3974 end Set_Extra_Accessibility_Of_Result
;
3976 procedure Set_Extra_Constrained
(Id
: E
; V
: E
) is
3978 pragma Assert
(Is_Formal
(Id
) or else Ekind
(Id
) = E_Variable
);
3980 end Set_Extra_Constrained
;
3982 procedure Set_Extra_Formal
(Id
: E
; V
: E
) is
3985 end Set_Extra_Formal
;
3987 procedure Set_Extra_Formals
(Id
: E
; V
: E
) is
3990 (Is_Overloadable
(Id
)
3991 or else Ekind_In
(Id
, E_Entry_Family
,
3993 E_Subprogram_Type
));
3995 end Set_Extra_Formals
;
3997 procedure Set_Finalization_Master
(Id
: E
; V
: E
) is
3999 pragma Assert
(Is_Access_Type
(Id
) and then Is_Base_Type
(Id
));
4001 end Set_Finalization_Master
;
4003 procedure Set_Finalize_Storage_Only
(Id
: E
; V
: B
:= True) is
4005 pragma Assert
(Is_Type
(Id
) and then Is_Base_Type
(Id
));
4006 Set_Flag158
(Id
, V
);
4007 end Set_Finalize_Storage_Only
;
4009 procedure Set_Finalizer
(Id
: E
; V
: E
) is
4011 pragma Assert
(Ekind_In
(Id
, E_Package
, E_Package_Body
));
4015 procedure Set_First_Entity
(Id
: E
; V
: E
) is
4018 end Set_First_Entity
;
4020 procedure Set_First_Exit_Statement
(Id
: E
; V
: N
) is
4022 pragma Assert
(Ekind
(Id
) = E_Loop
);
4024 end Set_First_Exit_Statement
;
4026 procedure Set_First_Index
(Id
: E
; V
: N
) is
4028 pragma Assert
(Is_Array_Type
(Id
) or else Is_String_Type
(Id
));
4030 end Set_First_Index
;
4032 procedure Set_First_Literal
(Id
: E
; V
: E
) is
4034 pragma Assert
(Is_Enumeration_Type
(Id
));
4036 end Set_First_Literal
;
4038 procedure Set_First_Private_Entity
(Id
: E
; V
: E
) is
4040 pragma Assert
(Ekind_In
(Id
, E_Package
, E_Generic_Package
)
4041 or else Ekind
(Id
) in Concurrent_Kind
);
4043 end Set_First_Private_Entity
;
4045 procedure Set_First_Rep_Item
(Id
: E
; V
: N
) is
4048 end Set_First_Rep_Item
;
4050 procedure Set_Float_Rep
(Id
: E
; V
: F
) is
4051 pragma Assert
(Ekind
(Id
) = E_Floating_Point_Type
);
4053 Set_Uint10
(Id
, UI_From_Int
(F
'Pos (V
)));
4056 procedure Set_Freeze_Node
(Id
: E
; V
: N
) is
4059 end Set_Freeze_Node
;
4061 procedure Set_From_Limited_With
(Id
: E
; V
: B
:= True) is
4064 (Is_Type
(Id
) or else Ekind_In
(Id
, E_Abstract_State
, E_Package
));
4065 Set_Flag159
(Id
, V
);
4066 end Set_From_Limited_With
;
4068 procedure Set_Full_View
(Id
: E
; V
: E
) is
4070 pragma Assert
(Is_Type
(Id
) or else Ekind
(Id
) = E_Constant
);
4074 procedure Set_Generic_Homonym
(Id
: E
; V
: E
) is
4077 end Set_Generic_Homonym
;
4079 procedure Set_Generic_Renamings
(Id
: E
; V
: L
) is
4081 Set_Elist23
(Id
, V
);
4082 end Set_Generic_Renamings
;
4084 procedure Set_Handler_Records
(Id
: E
; V
: S
) is
4087 end Set_Handler_Records
;
4089 procedure Set_Has_Aliased_Components
(Id
: E
; V
: B
:= True) is
4091 pragma Assert
(Id
= Base_Type
(Id
));
4092 Set_Flag135
(Id
, V
);
4093 end Set_Has_Aliased_Components
;
4095 procedure Set_Has_Alignment_Clause
(Id
: E
; V
: B
:= True) is
4098 end Set_Has_Alignment_Clause
;
4100 procedure Set_Has_All_Calls_Remote
(Id
: E
; V
: B
:= True) is
4103 end Set_Has_All_Calls_Remote
;
4105 procedure Set_Has_Anonymous_Master
(Id
: E
; V
: B
:= True) is
4108 (Ekind_In
(Id
, E_Function
, E_Package
, E_Package_Body
, E_Procedure
));
4109 Set_Flag253
(Id
, V
);
4110 end Set_Has_Anonymous_Master
;
4112 procedure Set_Has_Atomic_Components
(Id
: E
; V
: B
:= True) is
4114 pragma Assert
(not Is_Type
(Id
) or else Is_Base_Type
(Id
));
4116 end Set_Has_Atomic_Components
;
4118 procedure Set_Has_Biased_Representation
(Id
: E
; V
: B
:= True) is
4121 ((V
= False) or else (Is_Discrete_Type
(Id
) or else Is_Object
(Id
)));
4122 Set_Flag139
(Id
, V
);
4123 end Set_Has_Biased_Representation
;
4125 procedure Set_Has_Completion
(Id
: E
; V
: B
:= True) is
4128 end Set_Has_Completion
;
4130 procedure Set_Has_Completion_In_Body
(Id
: E
; V
: B
:= True) is
4132 pragma Assert
(Is_Type
(Id
));
4134 end Set_Has_Completion_In_Body
;
4136 procedure Set_Has_Complex_Representation
(Id
: E
; V
: B
:= True) is
4138 pragma Assert
(Ekind
(Id
) = E_Record_Type
);
4139 Set_Flag140
(Id
, V
);
4140 end Set_Has_Complex_Representation
;
4142 procedure Set_Has_Component_Size_Clause
(Id
: E
; V
: B
:= True) is
4144 pragma Assert
(Ekind
(Id
) = E_Array_Type
);
4146 end Set_Has_Component_Size_Clause
;
4148 procedure Set_Has_Constrained_Partial_View
(Id
: E
; V
: B
:= True) is
4150 pragma Assert
(Is_Type
(Id
));
4151 Set_Flag187
(Id
, V
);
4152 end Set_Has_Constrained_Partial_View
;
4154 procedure Set_Has_Contiguous_Rep
(Id
: E
; V
: B
:= True) is
4156 Set_Flag181
(Id
, V
);
4157 end Set_Has_Contiguous_Rep
;
4159 procedure Set_Has_Controlled_Component
(Id
: E
; V
: B
:= True) is
4161 pragma Assert
(Id
= Base_Type
(Id
));
4163 end Set_Has_Controlled_Component
;
4165 procedure Set_Has_Controlling_Result
(Id
: E
; V
: B
:= True) is
4168 end Set_Has_Controlling_Result
;
4170 procedure Set_Has_Convention_Pragma
(Id
: E
; V
: B
:= True) is
4172 Set_Flag119
(Id
, V
);
4173 end Set_Has_Convention_Pragma
;
4175 procedure Set_Has_Default_Aspect
(Id
: E
; V
: B
:= True) is
4178 ((Is_Scalar_Type
(Id
) or else Is_Array_Type
(Id
))
4179 and then Is_Base_Type
(Id
));
4181 end Set_Has_Default_Aspect
;
4183 procedure Set_Has_Default_Init_Cond
(Id
: E
; V
: B
:= True) is
4185 pragma Assert
(Is_Type
(Id
));
4187 end Set_Has_Default_Init_Cond
;
4189 procedure Set_Has_Delayed_Aspects
(Id
: E
; V
: B
:= True) is
4191 pragma Assert
(Nkind
(Id
) in N_Entity
);
4192 Set_Flag200
(Id
, V
);
4193 end Set_Has_Delayed_Aspects
;
4195 procedure Set_Has_Delayed_Freeze
(Id
: E
; V
: B
:= True) is
4197 pragma Assert
(Nkind
(Id
) in N_Entity
);
4199 end Set_Has_Delayed_Freeze
;
4201 procedure Set_Has_Delayed_Rep_Aspects
(Id
: E
; V
: B
:= True) is
4203 pragma Assert
(Nkind
(Id
) in N_Entity
);
4204 Set_Flag261
(Id
, V
);
4205 end Set_Has_Delayed_Rep_Aspects
;
4207 procedure Set_Has_Discriminants
(Id
: E
; V
: B
:= True) is
4209 pragma Assert
(Nkind
(Id
) in N_Entity
);
4211 end Set_Has_Discriminants
;
4213 procedure Set_Has_Dispatch_Table
(Id
: E
; V
: B
:= True) is
4215 pragma Assert
(Ekind
(Id
) = E_Record_Type
4216 and then Is_Tagged_Type
(Id
));
4217 Set_Flag220
(Id
, V
);
4218 end Set_Has_Dispatch_Table
;
4220 procedure Set_Has_Dynamic_Predicate_Aspect
(Id
: E
; V
: B
:= True) is
4222 pragma Assert
(Is_Type
(Id
));
4223 Set_Flag258
(Id
, V
);
4224 end Set_Has_Dynamic_Predicate_Aspect
;
4226 procedure Set_Has_Enumeration_Rep_Clause
(Id
: E
; V
: B
:= True) is
4228 pragma Assert
(Is_Enumeration_Type
(Id
));
4230 end Set_Has_Enumeration_Rep_Clause
;
4232 procedure Set_Has_Exit
(Id
: E
; V
: B
:= True) is
4237 procedure Set_Has_Forward_Instantiation
(Id
: E
; V
: B
:= True) is
4239 Set_Flag175
(Id
, V
);
4240 end Set_Has_Forward_Instantiation
;
4242 procedure Set_Has_Fully_Qualified_Name
(Id
: E
; V
: B
:= True) is
4244 Set_Flag173
(Id
, V
);
4245 end Set_Has_Fully_Qualified_Name
;
4247 procedure Set_Has_Gigi_Rep_Item
(Id
: E
; V
: B
:= True) is
4250 end Set_Has_Gigi_Rep_Item
;
4252 procedure Set_Has_Homonym
(Id
: E
; V
: B
:= True) is
4255 end Set_Has_Homonym
;
4257 procedure Set_Has_Implicit_Dereference
(Id
: E
; V
: B
:= True) is
4259 Set_Flag251
(Id
, V
);
4260 end Set_Has_Implicit_Dereference
;
4262 procedure Set_Has_Independent_Components
(Id
: E
; V
: B
:= True) is
4264 pragma Assert
(not Is_Type
(Id
) or else Is_Base_Type
(Id
));
4266 end Set_Has_Independent_Components
;
4268 procedure Set_Has_Inheritable_Invariants
(Id
: E
; V
: B
:= True) is
4270 pragma Assert
(Is_Type
(Id
));
4271 Set_Flag248
(Id
, V
);
4272 end Set_Has_Inheritable_Invariants
;
4274 procedure Set_Has_Inherited_Default_Init_Cond
(Id
: E
; V
: B
:= True) is
4276 pragma Assert
(Is_Type
(Id
));
4277 Set_Flag133
(Id
, V
);
4278 end Set_Has_Inherited_Default_Init_Cond
;
4280 procedure Set_Has_Initial_Value
(Id
: E
; V
: B
:= True) is
4282 pragma Assert
(Ekind_In
(Id
, E_Variable
, E_Out_Parameter
));
4283 Set_Flag219
(Id
, V
);
4284 end Set_Has_Initial_Value
;
4286 procedure Set_Has_Invariants
(Id
: E
; V
: B
:= True) is
4288 pragma Assert
(Is_Type
(Id
));
4289 Set_Flag232
(Id
, V
);
4290 end Set_Has_Invariants
;
4292 procedure Set_Has_Loop_Entry_Attributes
(Id
: E
; V
: B
:= True) is
4294 pragma Assert
(Ekind
(Id
) = E_Loop
);
4295 Set_Flag260
(Id
, V
);
4296 end Set_Has_Loop_Entry_Attributes
;
4298 procedure Set_Has_Machine_Radix_Clause
(Id
: E
; V
: B
:= True) is
4300 pragma Assert
(Is_Decimal_Fixed_Point_Type
(Id
));
4302 end Set_Has_Machine_Radix_Clause
;
4304 procedure Set_Has_Master_Entity
(Id
: E
; V
: B
:= True) is
4307 end Set_Has_Master_Entity
;
4309 procedure Set_Has_Missing_Return
(Id
: E
; V
: B
:= True) is
4311 pragma Assert
(Ekind_In
(Id
, E_Function
, E_Generic_Function
));
4312 Set_Flag142
(Id
, V
);
4313 end Set_Has_Missing_Return
;
4315 procedure Set_Has_Nested_Block_With_Handler
(Id
: E
; V
: B
:= True) is
4317 Set_Flag101
(Id
, V
);
4318 end Set_Has_Nested_Block_With_Handler
;
4320 procedure Set_Has_Up_Level_Access
(Id
: E
; V
: B
:= True) is
4322 pragma Assert
(Ekind_In
(Id
, E_Variable
, E_Constant
, E_Loop_Parameter
));
4323 Set_Flag215
(Id
, V
);
4324 end Set_Has_Up_Level_Access
;
4326 procedure Set_Has_Non_Standard_Rep
(Id
: E
; V
: B
:= True) is
4328 pragma Assert
(Id
= Base_Type
(Id
));
4330 end Set_Has_Non_Standard_Rep
;
4332 procedure Set_Has_Object_Size_Clause
(Id
: E
; V
: B
:= True) is
4334 pragma Assert
(Is_Type
(Id
));
4335 Set_Flag172
(Id
, V
);
4336 end Set_Has_Object_Size_Clause
;
4338 procedure Set_Has_Out_Or_In_Out_Parameter
(Id
: E
; V
: B
:= True) is
4340 pragma Assert
(Ekind_In
(Id
, E_Function
, E_Generic_Function
));
4341 Set_Flag110
(Id
, V
);
4342 end Set_Has_Out_Or_In_Out_Parameter
;
4344 procedure Set_Has_Per_Object_Constraint
(Id
: E
; V
: B
:= True) is
4346 Set_Flag154
(Id
, V
);
4347 end Set_Has_Per_Object_Constraint
;
4349 procedure Set_Has_Postconditions
(Id
: E
; V
: B
:= True) is
4351 pragma Assert
(Is_Subprogram
(Id
));
4352 Set_Flag240
(Id
, V
);
4353 end Set_Has_Postconditions
;
4355 procedure Set_Has_Pragma_Controlled
(Id
: E
; V
: B
:= True) is
4357 pragma Assert
(Is_Access_Type
(Id
));
4358 Set_Flag27
(Base_Type
(Id
), V
);
4359 end Set_Has_Pragma_Controlled
;
4361 procedure Set_Has_Pragma_Elaborate_Body
(Id
: E
; V
: B
:= True) is
4363 Set_Flag150
(Id
, V
);
4364 end Set_Has_Pragma_Elaborate_Body
;
4366 procedure Set_Has_Pragma_Inline
(Id
: E
; V
: B
:= True) is
4368 Set_Flag157
(Id
, V
);
4369 end Set_Has_Pragma_Inline
;
4371 procedure Set_Has_Pragma_Inline_Always
(Id
: E
; V
: B
:= True) is
4373 Set_Flag230
(Id
, V
);
4374 end Set_Has_Pragma_Inline_Always
;
4376 procedure Set_Has_Pragma_No_Inline
(Id
: E
; V
: B
:= True) is
4378 Set_Flag201
(Id
, V
);
4379 end Set_Has_Pragma_No_Inline
;
4381 procedure Set_Has_Pragma_Ordered
(Id
: E
; V
: B
:= True) is
4383 pragma Assert
(Is_Enumeration_Type
(Id
));
4384 pragma Assert
(Id
= Base_Type
(Id
));
4385 Set_Flag198
(Id
, V
);
4386 end Set_Has_Pragma_Ordered
;
4388 procedure Set_Has_Pragma_Pack
(Id
: E
; V
: B
:= True) is
4390 pragma Assert
(Is_Array_Type
(Id
) or else Is_Record_Type
(Id
));
4391 pragma Assert
(Id
= Base_Type
(Id
));
4392 Set_Flag121
(Id
, V
);
4393 end Set_Has_Pragma_Pack
;
4395 procedure Set_Has_Pragma_Preelab_Init
(Id
: E
; V
: B
:= True) is
4397 Set_Flag221
(Id
, V
);
4398 end Set_Has_Pragma_Preelab_Init
;
4400 procedure Set_Has_Pragma_Pure
(Id
: E
; V
: B
:= True) is
4402 Set_Flag203
(Id
, V
);
4403 end Set_Has_Pragma_Pure
;
4405 procedure Set_Has_Pragma_Pure_Function
(Id
: E
; V
: B
:= True) is
4407 Set_Flag179
(Id
, V
);
4408 end Set_Has_Pragma_Pure_Function
;
4410 procedure Set_Has_Pragma_Thread_Local_Storage
(Id
: E
; V
: B
:= True) is
4412 Set_Flag169
(Id
, V
);
4413 end Set_Has_Pragma_Thread_Local_Storage
;
4415 procedure Set_Has_Pragma_Unmodified
(Id
: E
; V
: B
:= True) is
4417 Set_Flag233
(Id
, V
);
4418 end Set_Has_Pragma_Unmodified
;
4420 procedure Set_Has_Pragma_Unreferenced
(Id
: E
; V
: B
:= True) is
4422 Set_Flag180
(Id
, V
);
4423 end Set_Has_Pragma_Unreferenced
;
4425 procedure Set_Has_Pragma_Unreferenced_Objects
(Id
: E
; V
: B
:= True) is
4427 pragma Assert
(Is_Type
(Id
));
4428 Set_Flag212
(Id
, V
);
4429 end Set_Has_Pragma_Unreferenced_Objects
;
4431 procedure Set_Has_Predicates
(Id
: E
; V
: B
:= True) is
4433 pragma Assert
(Is_Type
(Id
) or else Ekind
(Id
) = E_Void
);
4434 Set_Flag250
(Id
, V
);
4435 end Set_Has_Predicates
;
4437 procedure Set_Has_Primitive_Operations
(Id
: E
; V
: B
:= True) is
4439 pragma Assert
(Id
= Base_Type
(Id
));
4440 Set_Flag120
(Id
, V
);
4441 end Set_Has_Primitive_Operations
;
4443 procedure Set_Has_Private_Ancestor
(Id
: E
; V
: B
:= True) is
4445 pragma Assert
(Is_Type
(Id
));
4446 Set_Flag151
(Id
, V
);
4447 end Set_Has_Private_Ancestor
;
4449 procedure Set_Has_Private_Declaration
(Id
: E
; V
: B
:= True) is
4451 Set_Flag155
(Id
, V
);
4452 end Set_Has_Private_Declaration
;
4454 procedure Set_Has_Protected
(Id
: E
; V
: B
:= True) is
4456 Set_Flag271
(Id
, V
);
4457 end Set_Has_Protected
;
4459 procedure Set_Has_Qualified_Name
(Id
: E
; V
: B
:= True) is
4461 Set_Flag161
(Id
, V
);
4462 end Set_Has_Qualified_Name
;
4464 procedure Set_Has_RACW
(Id
: E
; V
: B
:= True) is
4466 pragma Assert
(Ekind
(Id
) = E_Package
);
4467 Set_Flag214
(Id
, V
);
4470 procedure Set_Has_Record_Rep_Clause
(Id
: E
; V
: B
:= True) is
4472 pragma Assert
(Id
= Base_Type
(Id
));
4474 end Set_Has_Record_Rep_Clause
;
4476 procedure Set_Has_Recursive_Call
(Id
: E
; V
: B
:= True) is
4478 pragma Assert
(Is_Subprogram
(Id
));
4479 Set_Flag143
(Id
, V
);
4480 end Set_Has_Recursive_Call
;
4482 procedure Set_Has_Shift_Operator
(Id
: E
; V
: B
:= True) is
4484 pragma Assert
(Is_Integer_Type
(Id
) and then Is_Base_Type
(Id
));
4485 Set_Flag267
(Id
, V
);
4486 end Set_Has_Shift_Operator
;
4488 procedure Set_Has_Size_Clause
(Id
: E
; V
: B
:= True) is
4491 end Set_Has_Size_Clause
;
4493 procedure Set_Has_Small_Clause
(Id
: E
; V
: B
:= True) is
4496 end Set_Has_Small_Clause
;
4498 procedure Set_Has_Specified_Layout
(Id
: E
; V
: B
:= True) is
4500 pragma Assert
(Id
= Base_Type
(Id
));
4501 Set_Flag100
(Id
, V
);
4502 end Set_Has_Specified_Layout
;
4504 procedure Set_Has_Specified_Stream_Input
(Id
: E
; V
: B
:= True) is
4506 pragma Assert
(Is_Type
(Id
));
4507 Set_Flag190
(Id
, V
);
4508 end Set_Has_Specified_Stream_Input
;
4510 procedure Set_Has_Specified_Stream_Output
(Id
: E
; V
: B
:= True) is
4512 pragma Assert
(Is_Type
(Id
));
4513 Set_Flag191
(Id
, V
);
4514 end Set_Has_Specified_Stream_Output
;
4516 procedure Set_Has_Specified_Stream_Read
(Id
: E
; V
: B
:= True) is
4518 pragma Assert
(Is_Type
(Id
));
4519 Set_Flag192
(Id
, V
);
4520 end Set_Has_Specified_Stream_Read
;
4522 procedure Set_Has_Specified_Stream_Write
(Id
: E
; V
: B
:= True) is
4524 pragma Assert
(Is_Type
(Id
));
4525 Set_Flag193
(Id
, V
);
4526 end Set_Has_Specified_Stream_Write
;
4528 procedure Set_Has_Static_Discriminants
(Id
: E
; V
: B
:= True) is
4530 Set_Flag211
(Id
, V
);
4531 end Set_Has_Static_Discriminants
;
4533 procedure Set_Has_Static_Predicate
(Id
: E
; V
: B
:= True) is
4535 pragma Assert
(Is_Type
(Id
));
4536 Set_Flag269
(Id
, V
);
4537 end Set_Has_Static_Predicate
;
4539 procedure Set_Has_Static_Predicate_Aspect
(Id
: E
; V
: B
:= True) is
4541 pragma Assert
(Is_Type
(Id
));
4542 Set_Flag259
(Id
, V
);
4543 end Set_Has_Static_Predicate_Aspect
;
4545 procedure Set_Has_Storage_Size_Clause
(Id
: E
; V
: B
:= True) is
4547 pragma Assert
(Is_Access_Type
(Id
) or else Is_Task_Type
(Id
));
4548 pragma Assert
(Id
= Base_Type
(Id
));
4550 end Set_Has_Storage_Size_Clause
;
4552 procedure Set_Has_Stream_Size_Clause
(Id
: E
; V
: B
:= True) is
4554 pragma Assert
(Is_Elementary_Type
(Id
));
4555 Set_Flag184
(Id
, V
);
4556 end Set_Has_Stream_Size_Clause
;
4558 procedure Set_Has_Task
(Id
: E
; V
: B
:= True) is
4560 pragma Assert
(Id
= Base_Type
(Id
));
4564 procedure Set_Has_Thunks
(Id
: E
; V
: B
:= True) is
4566 pragma Assert
(Is_Tag
(Id
));
4567 Set_Flag228
(Id
, V
);
4570 procedure Set_Has_Unchecked_Union
(Id
: E
; V
: B
:= True) is
4572 pragma Assert
(Id
= Base_Type
(Id
));
4573 Set_Flag123
(Id
, V
);
4574 end Set_Has_Unchecked_Union
;
4576 procedure Set_Has_Unknown_Discriminants
(Id
: E
; V
: B
:= True) is
4578 pragma Assert
(Is_Type
(Id
));
4580 end Set_Has_Unknown_Discriminants
;
4582 procedure Set_Has_Visible_Refinement
(Id
: E
; V
: B
:= True) is
4584 pragma Assert
(Ekind
(Id
) = E_Abstract_State
);
4585 Set_Flag263
(Id
, V
);
4586 end Set_Has_Visible_Refinement
;
4588 procedure Set_Has_Volatile_Components
(Id
: E
; V
: B
:= True) is
4590 pragma Assert
(not Is_Type
(Id
) or else Is_Base_Type
(Id
));
4592 end Set_Has_Volatile_Components
;
4594 procedure Set_Has_Xref_Entry
(Id
: E
; V
: B
:= True) is
4596 Set_Flag182
(Id
, V
);
4597 end Set_Has_Xref_Entry
;
4599 procedure Set_Hiding_Loop_Variable
(Id
: E
; V
: E
) is
4601 pragma Assert
(Ekind
(Id
) = E_Variable
);
4603 end Set_Hiding_Loop_Variable
;
4605 procedure Set_Homonym
(Id
: E
; V
: E
) is
4607 pragma Assert
(Id
/= V
);
4611 procedure Set_Import_Pragma
(Id
: E
; V
: E
) is
4613 pragma Assert
(Is_Subprogram
(Id
));
4615 end Set_Import_Pragma
;
4617 procedure Set_Interface_Alias
(Id
: E
; V
: E
) is
4621 and then Is_Hidden
(Id
)
4622 and then (Ekind_In
(Id
, E_Procedure
, E_Function
)));
4624 end Set_Interface_Alias
;
4626 procedure Set_Interfaces
(Id
: E
; V
: L
) is
4628 pragma Assert
(Is_Record_Type
(Id
));
4629 Set_Elist25
(Id
, V
);
4632 procedure Set_In_Package_Body
(Id
: E
; V
: B
:= True) is
4635 end Set_In_Package_Body
;
4637 procedure Set_In_Private_Part
(Id
: E
; V
: B
:= True) is
4640 end Set_In_Private_Part
;
4642 procedure Set_In_Use
(Id
: E
; V
: B
:= True) is
4644 pragma Assert
(Nkind
(Id
) in N_Entity
);
4648 procedure Set_Initialization_Statements
(Id
: E
; V
: N
) is
4650 -- Tolerate an E_Void entity since this can be called while resolving
4651 -- an aggregate used as the initialization expression for an object
4652 -- declaration, and this occurs before the Ekind for the object is set.
4654 pragma Assert
(Ekind_In
(Id
, E_Void
, E_Constant
, E_Variable
));
4656 end Set_Initialization_Statements
;
4658 procedure Set_Inner_Instances
(Id
: E
; V
: L
) is
4660 Set_Elist23
(Id
, V
);
4661 end Set_Inner_Instances
;
4663 procedure Set_Interface_Name
(Id
: E
; V
: N
) is
4666 end Set_Interface_Name
;
4668 procedure Set_Is_Abstract_Subprogram
(Id
: E
; V
: B
:= True) is
4670 pragma Assert
(Is_Overloadable
(Id
));
4672 end Set_Is_Abstract_Subprogram
;
4674 procedure Set_Is_Abstract_Type
(Id
: E
; V
: B
:= True) is
4676 pragma Assert
(Is_Type
(Id
));
4677 Set_Flag146
(Id
, V
);
4678 end Set_Is_Abstract_Type
;
4680 procedure Set_Is_Local_Anonymous_Access
(Id
: E
; V
: B
:= True) is
4682 pragma Assert
(Is_Access_Type
(Id
));
4683 Set_Flag194
(Id
, V
);
4684 end Set_Is_Local_Anonymous_Access
;
4686 procedure Set_Is_Access_Constant
(Id
: E
; V
: B
:= True) is
4688 pragma Assert
(Is_Access_Type
(Id
));
4690 end Set_Is_Access_Constant
;
4692 procedure Set_Is_Ada_2005_Only
(Id
: E
; V
: B
:= True) is
4694 Set_Flag185
(Id
, V
);
4695 end Set_Is_Ada_2005_Only
;
4697 procedure Set_Is_Ada_2012_Only
(Id
: E
; V
: B
:= True) is
4699 Set_Flag199
(Id
, V
);
4700 end Set_Is_Ada_2012_Only
;
4702 procedure Set_Is_Aliased
(Id
: E
; V
: B
:= True) is
4704 pragma Assert
(Nkind
(Id
) in N_Entity
);
4708 procedure Set_Is_Asynchronous
(Id
: E
; V
: B
:= True) is
4711 (Ekind
(Id
) = E_Procedure
or else Is_Type
(Id
));
4713 end Set_Is_Asynchronous
;
4715 procedure Set_Is_Atomic
(Id
: E
; V
: B
:= True) is
4720 procedure Set_Is_Bit_Packed_Array
(Id
: E
; V
: B
:= True) is
4722 pragma Assert
((not V
)
4723 or else (Is_Array_Type
(Id
) and then Is_Base_Type
(Id
)));
4724 Set_Flag122
(Id
, V
);
4725 end Set_Is_Bit_Packed_Array
;
4727 procedure Set_Is_Called
(Id
: E
; V
: B
:= True) is
4729 pragma Assert
(Ekind_In
(Id
, E_Procedure
, E_Function
));
4730 Set_Flag102
(Id
, V
);
4733 procedure Set_Is_Character_Type
(Id
: E
; V
: B
:= True) is
4736 end Set_Is_Character_Type
;
4738 procedure Set_Is_Checked_Ghost_Entity
(Id
: E
; V
: B
:= True) is
4740 pragma Assert
(Is_Formal
(Id
)
4741 or else Is_Object
(Id
)
4742 or else Is_Package_Or_Generic_Package
(Id
)
4743 or else Is_Subprogram_Or_Generic_Subprogram
(Id
)
4744 or else Is_Type
(Id
)
4745 or else Ekind
(Id
) = E_Abstract_State
4746 or else Ekind
(Id
) = E_Component
4747 or else Ekind
(Id
) = E_Discriminant
4748 or else Ekind
(Id
) = E_Exception
4749 or else Ekind
(Id
) = E_Package_Body
4750 or else Ekind
(Id
) = E_Subprogram_Body
);
4751 Set_Flag277
(Id
, V
);
4752 end Set_Is_Checked_Ghost_Entity
;
4754 procedure Set_Is_Child_Unit
(Id
: E
; V
: B
:= True) is
4757 end Set_Is_Child_Unit
;
4759 procedure Set_Is_Class_Wide_Equivalent_Type
(Id
: E
; V
: B
:= True) is
4762 end Set_Is_Class_Wide_Equivalent_Type
;
4764 procedure Set_Is_Compilation_Unit
(Id
: E
; V
: B
:= True) is
4766 Set_Flag149
(Id
, V
);
4767 end Set_Is_Compilation_Unit
;
4769 procedure Set_Is_Completely_Hidden
(Id
: E
; V
: B
:= True) is
4771 pragma Assert
(Ekind
(Id
) = E_Discriminant
);
4772 Set_Flag103
(Id
, V
);
4773 end Set_Is_Completely_Hidden
;
4775 procedure Set_Is_Concurrent_Record_Type
(Id
: E
; V
: B
:= True) is
4778 end Set_Is_Concurrent_Record_Type
;
4780 procedure Set_Is_Constr_Subt_For_U_Nominal
(Id
: E
; V
: B
:= True) is
4783 end Set_Is_Constr_Subt_For_U_Nominal
;
4785 procedure Set_Is_Constr_Subt_For_UN_Aliased
(Id
: E
; V
: B
:= True) is
4787 Set_Flag141
(Id
, V
);
4788 end Set_Is_Constr_Subt_For_UN_Aliased
;
4790 procedure Set_Is_Constrained
(Id
: E
; V
: B
:= True) is
4792 pragma Assert
(Nkind
(Id
) in N_Entity
);
4794 end Set_Is_Constrained
;
4796 procedure Set_Is_Constructor
(Id
: E
; V
: B
:= True) is
4799 end Set_Is_Constructor
;
4801 procedure Set_Is_Controlled
(Id
: E
; V
: B
:= True) is
4803 pragma Assert
(Id
= Base_Type
(Id
));
4805 end Set_Is_Controlled
;
4807 procedure Set_Is_Controlling_Formal
(Id
: E
; V
: B
:= True) is
4809 pragma Assert
(Is_Formal
(Id
));
4811 end Set_Is_Controlling_Formal
;
4813 procedure Set_Is_CPP_Class
(Id
: E
; V
: B
:= True) is
4816 end Set_Is_CPP_Class
;
4818 procedure Set_Is_Default_Init_Cond_Procedure
(Id
: E
; V
: B
:= True) is
4820 pragma Assert
(Ekind
(Id
) = E_Procedure
);
4821 Set_Flag132
(Id
, V
);
4822 end Set_Is_Default_Init_Cond_Procedure
;
4824 procedure Set_Is_Descendent_Of_Address
(Id
: E
; V
: B
:= True) is
4826 pragma Assert
(Is_Type
(Id
));
4827 Set_Flag223
(Id
, V
);
4828 end Set_Is_Descendent_Of_Address
;
4830 procedure Set_Is_Discrim_SO_Function
(Id
: E
; V
: B
:= True) is
4832 Set_Flag176
(Id
, V
);
4833 end Set_Is_Discrim_SO_Function
;
4835 procedure Set_Is_Discriminant_Check_Function
(Id
: E
; V
: B
:= True) is
4837 Set_Flag264
(Id
, V
);
4838 end Set_Is_Discriminant_Check_Function
;
4840 procedure Set_Is_Dispatch_Table_Entity
(Id
: E
; V
: B
:= True) is
4842 Set_Flag234
(Id
, V
);
4843 end Set_Is_Dispatch_Table_Entity
;
4845 procedure Set_Is_Dispatching_Operation
(Id
: E
; V
: B
:= True) is
4850 Is_Overloadable
(Id
)
4852 Ekind
(Id
) = E_Subprogram_Type
);
4855 end Set_Is_Dispatching_Operation
;
4857 procedure Set_Is_Eliminated
(Id
: E
; V
: B
:= True) is
4859 Set_Flag124
(Id
, V
);
4860 end Set_Is_Eliminated
;
4862 procedure Set_Is_Entry_Formal
(Id
: E
; V
: B
:= True) is
4865 end Set_Is_Entry_Formal
;
4867 procedure Set_Is_Exported
(Id
: E
; V
: B
:= True) is
4870 end Set_Is_Exported
;
4872 procedure Set_Is_First_Subtype
(Id
: E
; V
: B
:= True) is
4875 end Set_Is_First_Subtype
;
4877 procedure Set_Is_For_Access_Subtype
(Id
: E
; V
: B
:= True) is
4879 pragma Assert
(Ekind_In
(Id
, E_Record_Subtype
, E_Private_Subtype
));
4880 Set_Flag118
(Id
, V
);
4881 end Set_Is_For_Access_Subtype
;
4883 procedure Set_Is_Formal_Subprogram
(Id
: E
; V
: B
:= True) is
4885 Set_Flag111
(Id
, V
);
4886 end Set_Is_Formal_Subprogram
;
4888 procedure Set_Is_Frozen
(Id
: E
; V
: B
:= True) is
4890 pragma Assert
(Nkind
(Id
) in N_Entity
);
4894 procedure Set_Is_Generic_Actual_Subprogram
(Id
: E
; V
: B
:= True) is
4896 pragma Assert
(Ekind_In
(Id
, E_Function
, E_Procedure
));
4897 Set_Flag274
(Id
, V
);
4898 end Set_Is_Generic_Actual_Subprogram
;
4900 procedure Set_Is_Generic_Actual_Type
(Id
: E
; V
: B
:= True) is
4902 pragma Assert
(Is_Type
(Id
));
4904 end Set_Is_Generic_Actual_Type
;
4906 procedure Set_Is_Generic_Instance
(Id
: E
; V
: B
:= True) is
4908 Set_Flag130
(Id
, V
);
4909 end Set_Is_Generic_Instance
;
4911 procedure Set_Is_Generic_Type
(Id
: E
; V
: B
:= True) is
4913 pragma Assert
(Nkind
(Id
) in N_Entity
);
4915 end Set_Is_Generic_Type
;
4917 procedure Set_Is_Hidden
(Id
: E
; V
: B
:= True) is
4922 procedure Set_Is_Hidden_Non_Overridden_Subpgm
(Id
: E
; V
: B
:= True) is
4924 pragma Assert
(Ekind_In
(Id
, E_Function
, E_Procedure
));
4926 end Set_Is_Hidden_Non_Overridden_Subpgm
;
4928 procedure Set_Is_Hidden_Open_Scope
(Id
: E
; V
: B
:= True) is
4930 Set_Flag171
(Id
, V
);
4931 end Set_Is_Hidden_Open_Scope
;
4933 procedure Set_Is_Ignored_Ghost_Entity
(Id
: E
; V
: B
:= True) is
4935 pragma Assert
(Is_Formal
(Id
)
4936 or else Is_Object
(Id
)
4937 or else Is_Package_Or_Generic_Package
(Id
)
4938 or else Is_Subprogram_Or_Generic_Subprogram
(Id
)
4939 or else Is_Type
(Id
)
4940 or else Ekind
(Id
) = E_Abstract_State
4941 or else Ekind
(Id
) = E_Component
4942 or else Ekind
(Id
) = E_Discriminant
4943 or else Ekind
(Id
) = E_Exception
4944 or else Ekind
(Id
) = E_Package_Body
4945 or else Ekind
(Id
) = E_Subprogram_Body
);
4946 Set_Flag278
(Id
, V
);
4947 end Set_Is_Ignored_Ghost_Entity
;
4949 procedure Set_Is_Immediately_Visible
(Id
: E
; V
: B
:= True) is
4951 pragma Assert
(Nkind
(Id
) in N_Entity
);
4953 end Set_Is_Immediately_Visible
;
4955 procedure Set_Is_Implementation_Defined
(Id
: E
; V
: B
:= True) is
4957 Set_Flag254
(Id
, V
);
4958 end Set_Is_Implementation_Defined
;
4960 procedure Set_Is_Imported
(Id
: E
; V
: B
:= True) is
4963 end Set_Is_Imported
;
4965 procedure Set_Is_Independent
(Id
: E
; V
: B
:= True) is
4967 Set_Flag268
(Id
, V
);
4968 end Set_Is_Independent
;
4970 procedure Set_Is_Inlined
(Id
: E
; V
: B
:= True) is
4975 procedure Set_Is_Inlined_Always
(Id
: E
; V
: B
:= True) is
4977 pragma Assert
(Ekind
(Id
) = E_Function
or else Ekind
(Id
) = E_Procedure
);
4979 end Set_Is_Inlined_Always
;
4981 procedure Set_Is_Interface
(Id
: E
; V
: B
:= True) is
4983 pragma Assert
(Is_Record_Type
(Id
));
4984 Set_Flag186
(Id
, V
);
4985 end Set_Is_Interface
;
4987 procedure Set_Is_Instantiated
(Id
: E
; V
: B
:= True) is
4989 Set_Flag126
(Id
, V
);
4990 end Set_Is_Instantiated
;
4992 procedure Set_Is_Internal
(Id
: E
; V
: B
:= True) is
4994 pragma Assert
(Nkind
(Id
) in N_Entity
);
4996 end Set_Is_Internal
;
4998 procedure Set_Is_Interrupt_Handler
(Id
: E
; V
: B
:= True) is
5000 pragma Assert
(Nkind
(Id
) in N_Entity
);
5002 end Set_Is_Interrupt_Handler
;
5004 procedure Set_Is_Intrinsic_Subprogram
(Id
: E
; V
: B
:= True) is
5007 end Set_Is_Intrinsic_Subprogram
;
5009 procedure Set_Is_Invariant_Procedure
(Id
: E
; V
: B
:= True) is
5011 pragma Assert
(Ekind
(Id
) = E_Procedure
);
5012 Set_Flag257
(Id
, V
);
5013 end Set_Is_Invariant_Procedure
;
5015 procedure Set_Is_Itype
(Id
: E
; V
: B
:= True) is
5020 procedure Set_Is_Known_Non_Null
(Id
: E
; V
: B
:= True) is
5023 end Set_Is_Known_Non_Null
;
5025 procedure Set_Is_Known_Null
(Id
: E
; V
: B
:= True) is
5027 Set_Flag204
(Id
, V
);
5028 end Set_Is_Known_Null
;
5030 procedure Set_Is_Known_Valid
(Id
: E
; V
: B
:= True) is
5032 Set_Flag170
(Id
, V
);
5033 end Set_Is_Known_Valid
;
5035 procedure Set_Is_Limited_Composite
(Id
: E
; V
: B
:= True) is
5037 pragma Assert
(Is_Type
(Id
));
5038 Set_Flag106
(Id
, V
);
5039 end Set_Is_Limited_Composite
;
5041 procedure Set_Is_Limited_Interface
(Id
: E
; V
: B
:= True) is
5043 pragma Assert
(Is_Interface
(Id
));
5044 Set_Flag197
(Id
, V
);
5045 end Set_Is_Limited_Interface
;
5047 procedure Set_Is_Limited_Record
(Id
: E
; V
: B
:= True) is
5050 end Set_Is_Limited_Record
;
5052 procedure Set_Is_Machine_Code_Subprogram
(Id
: E
; V
: B
:= True) is
5054 pragma Assert
(Is_Subprogram
(Id
));
5055 Set_Flag137
(Id
, V
);
5056 end Set_Is_Machine_Code_Subprogram
;
5058 procedure Set_Is_Non_Static_Subtype
(Id
: E
; V
: B
:= True) is
5060 pragma Assert
(Is_Type
(Id
));
5061 Set_Flag109
(Id
, V
);
5062 end Set_Is_Non_Static_Subtype
;
5064 procedure Set_Is_Null_Init_Proc
(Id
: E
; V
: B
:= True) is
5066 pragma Assert
(Ekind
(Id
) = E_Procedure
);
5067 Set_Flag178
(Id
, V
);
5068 end Set_Is_Null_Init_Proc
;
5070 procedure Set_Is_Obsolescent
(Id
: E
; V
: B
:= True) is
5072 Set_Flag153
(Id
, V
);
5073 end Set_Is_Obsolescent
;
5075 procedure Set_Is_Only_Out_Parameter
(Id
: E
; V
: B
:= True) is
5077 pragma Assert
(Ekind
(Id
) = E_Out_Parameter
);
5078 Set_Flag226
(Id
, V
);
5079 end Set_Is_Only_Out_Parameter
;
5081 procedure Set_Is_Package_Body_Entity
(Id
: E
; V
: B
:= True) is
5083 Set_Flag160
(Id
, V
);
5084 end Set_Is_Package_Body_Entity
;
5086 procedure Set_Is_Packed
(Id
: E
; V
: B
:= True) is
5088 pragma Assert
(Id
= Base_Type
(Id
));
5092 procedure Set_Is_Packed_Array_Impl_Type
(Id
: E
; V
: B
:= True) is
5094 Set_Flag138
(Id
, V
);
5095 end Set_Is_Packed_Array_Impl_Type
;
5097 procedure Set_Is_Potentially_Use_Visible
(Id
: E
; V
: B
:= True) is
5099 pragma Assert
(Nkind
(Id
) in N_Entity
);
5101 end Set_Is_Potentially_Use_Visible
;
5103 procedure Set_Is_Predicate_Function
(Id
: E
; V
: B
:= True) is
5105 pragma Assert
(Ekind
(Id
) = E_Function
or else Ekind
(Id
) = E_Procedure
);
5106 Set_Flag255
(Id
, V
);
5107 end Set_Is_Predicate_Function
;
5109 procedure Set_Is_Predicate_Function_M
(Id
: E
; V
: B
:= True) is
5111 pragma Assert
(Ekind
(Id
) = E_Function
or else Ekind
(Id
) = E_Procedure
);
5112 Set_Flag256
(Id
, V
);
5113 end Set_Is_Predicate_Function_M
;
5115 procedure Set_Is_Preelaborated
(Id
: E
; V
: B
:= True) is
5118 end Set_Is_Preelaborated
;
5120 procedure Set_Is_Primitive
(Id
: E
; V
: B
:= True) is
5123 (Is_Overloadable
(Id
)
5124 or else Ekind_In
(Id
, E_Generic_Function
, E_Generic_Procedure
));
5125 Set_Flag218
(Id
, V
);
5126 end Set_Is_Primitive
;
5128 procedure Set_Is_Primitive_Wrapper
(Id
: E
; V
: B
:= True) is
5130 pragma Assert
(Ekind_In
(Id
, E_Function
, E_Procedure
));
5131 Set_Flag195
(Id
, V
);
5132 end Set_Is_Primitive_Wrapper
;
5134 procedure Set_Is_Private_Composite
(Id
: E
; V
: B
:= True) is
5136 pragma Assert
(Is_Type
(Id
));
5137 Set_Flag107
(Id
, V
);
5138 end Set_Is_Private_Composite
;
5140 procedure Set_Is_Private_Descendant
(Id
: E
; V
: B
:= True) is
5143 end Set_Is_Private_Descendant
;
5145 procedure Set_Is_Private_Primitive
(Id
: E
; V
: B
:= True) is
5147 pragma Assert
(Ekind_In
(Id
, E_Function
, E_Procedure
));
5148 Set_Flag245
(Id
, V
);
5149 end Set_Is_Private_Primitive
;
5151 procedure Set_Is_Processed_Transient
(Id
: E
; V
: B
:= True) is
5153 pragma Assert
(Ekind_In
(Id
, E_Constant
, E_Loop_Parameter
, E_Variable
));
5154 Set_Flag252
(Id
, V
);
5155 end Set_Is_Processed_Transient
;
5157 procedure Set_Is_Public
(Id
: E
; V
: B
:= True) is
5159 pragma Assert
(Nkind
(Id
) in N_Entity
);
5163 procedure Set_Is_Pure
(Id
: E
; V
: B
:= True) is
5168 procedure Set_Is_Pure_Unit_Access_Type
(Id
: E
; V
: B
:= True) is
5170 pragma Assert
(Is_Access_Type
(Id
));
5171 Set_Flag189
(Id
, V
);
5172 end Set_Is_Pure_Unit_Access_Type
;
5174 procedure Set_Is_RACW_Stub_Type
(Id
: E
; V
: B
:= True) is
5176 pragma Assert
(Is_Type
(Id
));
5177 Set_Flag244
(Id
, V
);
5178 end Set_Is_RACW_Stub_Type
;
5180 procedure Set_Is_Raised
(Id
: E
; V
: B
:= True) is
5182 pragma Assert
(Ekind
(Id
) = E_Exception
);
5183 Set_Flag224
(Id
, V
);
5186 procedure Set_Is_Remote_Call_Interface
(Id
: E
; V
: B
:= True) is
5189 end Set_Is_Remote_Call_Interface
;
5191 procedure Set_Is_Remote_Types
(Id
: E
; V
: B
:= True) is
5194 end Set_Is_Remote_Types
;
5196 procedure Set_Is_Renaming_Of_Object
(Id
: E
; V
: B
:= True) is
5198 Set_Flag112
(Id
, V
);
5199 end Set_Is_Renaming_Of_Object
;
5201 procedure Set_Is_Return_Object
(Id
: E
; V
: B
:= True) is
5203 Set_Flag209
(Id
, V
);
5204 end Set_Is_Return_Object
;
5206 procedure Set_Is_Safe_To_Reevaluate
(Id
: E
; V
: B
:= True) is
5208 pragma Assert
(Ekind
(Id
) = E_Variable
);
5209 Set_Flag249
(Id
, V
);
5210 end Set_Is_Safe_To_Reevaluate
;
5212 procedure Set_Is_Shared_Passive
(Id
: E
; V
: B
:= True) is
5215 end Set_Is_Shared_Passive
;
5217 procedure Set_Is_Statically_Allocated
(Id
: E
; V
: B
:= True) is
5221 or else Ekind_In
(Id
, E_Exception
,
5226 end Set_Is_Statically_Allocated
;
5228 procedure Set_Is_Tag
(Id
: E
; V
: B
:= True) is
5230 pragma Assert
(Ekind_In
(Id
, E_Component
, E_Constant
, E_Variable
));
5234 procedure Set_Is_Tagged_Type
(Id
: E
; V
: B
:= True) is
5237 end Set_Is_Tagged_Type
;
5239 procedure Set_Is_Thunk
(Id
: E
; V
: B
:= True) is
5241 pragma Assert
(Is_Subprogram
(Id
));
5242 Set_Flag225
(Id
, V
);
5245 procedure Set_Is_Trivial_Subprogram
(Id
: E
; V
: B
:= True) is
5247 Set_Flag235
(Id
, V
);
5248 end Set_Is_Trivial_Subprogram
;
5250 procedure Set_Is_True_Constant
(Id
: E
; V
: B
:= True) is
5252 Set_Flag163
(Id
, V
);
5253 end Set_Is_True_Constant
;
5255 procedure Set_Is_Unchecked_Union
(Id
: E
; V
: B
:= True) is
5257 pragma Assert
(Id
= Base_Type
(Id
));
5258 Set_Flag117
(Id
, V
);
5259 end Set_Is_Unchecked_Union
;
5261 procedure Set_Is_Underlying_Record_View
(Id
: E
; V
: B
:= True) is
5263 pragma Assert
(Ekind
(Id
) = E_Record_Type
);
5264 Set_Flag246
(Id
, V
);
5265 end Set_Is_Underlying_Record_View
;
5267 procedure Set_Is_Unsigned_Type
(Id
: E
; V
: B
:= True) is
5269 pragma Assert
(Is_Discrete_Or_Fixed_Point_Type
(Id
));
5270 Set_Flag144
(Id
, V
);
5271 end Set_Is_Unsigned_Type
;
5273 procedure Set_Is_Valued_Procedure
(Id
: E
; V
: B
:= True) is
5275 pragma Assert
(Ekind
(Id
) = E_Procedure
);
5276 Set_Flag127
(Id
, V
);
5277 end Set_Is_Valued_Procedure
;
5279 procedure Set_Is_Visible_Formal
(Id
: E
; V
: B
:= True) is
5281 Set_Flag206
(Id
, V
);
5282 end Set_Is_Visible_Formal
;
5284 procedure Set_Is_Visible_Lib_Unit
(Id
: E
; V
: B
:= True) is
5286 Set_Flag116
(Id
, V
);
5287 end Set_Is_Visible_Lib_Unit
;
5289 procedure Set_Is_Volatile
(Id
: E
; V
: B
:= True) is
5291 pragma Assert
(Nkind
(Id
) in N_Entity
);
5293 end Set_Is_Volatile
;
5295 procedure Set_Itype_Printed
(Id
: E
; V
: B
:= True) is
5297 pragma Assert
(Is_Itype
(Id
));
5298 Set_Flag202
(Id
, V
);
5299 end Set_Itype_Printed
;
5301 procedure Set_Kill_Elaboration_Checks
(Id
: E
; V
: B
:= True) is
5304 end Set_Kill_Elaboration_Checks
;
5306 procedure Set_Kill_Range_Checks
(Id
: E
; V
: B
:= True) is
5309 end Set_Kill_Range_Checks
;
5311 procedure Set_Known_To_Have_Preelab_Init
(Id
: E
; V
: B
:= True) is
5313 pragma Assert
(Is_Type
(Id
));
5314 Set_Flag207
(Id
, V
);
5315 end Set_Known_To_Have_Preelab_Init
;
5317 procedure Set_Last_Aggregate_Assignment
(Id
: E
; V
: N
) is
5319 pragma Assert
(Ekind_In
(Id
, E_Constant
, E_Variable
));
5321 end Set_Last_Aggregate_Assignment
;
5323 procedure Set_Last_Assignment
(Id
: E
; V
: N
) is
5325 pragma Assert
(Is_Assignable
(Id
));
5327 end Set_Last_Assignment
;
5329 procedure Set_Last_Entity
(Id
: E
; V
: E
) is
5332 end Set_Last_Entity
;
5334 procedure Set_Limited_View
(Id
: E
; V
: E
) is
5336 pragma Assert
(Ekind
(Id
) = E_Package
);
5338 end Set_Limited_View
;
5340 procedure Set_Linker_Section_Pragma
(Id
: E
; V
: N
) is
5342 pragma Assert
(Is_Type
(Id
)
5343 or else Ekind_In
(Id
, E_Constant
, E_Variable
)
5344 or else Is_Subprogram
(Id
));
5346 end Set_Linker_Section_Pragma
;
5348 procedure Set_Lit_Indexes
(Id
: E
; V
: E
) is
5350 pragma Assert
(Is_Enumeration_Type
(Id
) and then Root_Type
(Id
) = Id
);
5352 end Set_Lit_Indexes
;
5354 procedure Set_Lit_Strings
(Id
: E
; V
: E
) is
5356 pragma Assert
(Is_Enumeration_Type
(Id
) and then Root_Type
(Id
) = Id
);
5358 end Set_Lit_Strings
;
5360 procedure Set_Low_Bound_Tested
(Id
: E
; V
: B
:= True) is
5362 pragma Assert
(Is_Formal
(Id
));
5363 Set_Flag205
(Id
, V
);
5364 end Set_Low_Bound_Tested
;
5366 procedure Set_Machine_Radix_10
(Id
: E
; V
: B
:= True) is
5368 pragma Assert
(Is_Decimal_Fixed_Point_Type
(Id
));
5370 end Set_Machine_Radix_10
;
5372 procedure Set_Master_Id
(Id
: E
; V
: E
) is
5374 pragma Assert
(Is_Access_Type
(Id
));
5378 procedure Set_Materialize_Entity
(Id
: E
; V
: B
:= True) is
5380 Set_Flag168
(Id
, V
);
5381 end Set_Materialize_Entity
;
5383 procedure Set_May_Inherit_Delayed_Rep_Aspects
(Id
: E
; V
: B
:= True) is
5385 Set_Flag262
(Id
, V
);
5386 end Set_May_Inherit_Delayed_Rep_Aspects
;
5388 procedure Set_Mechanism
(Id
: E
; V
: M
) is
5390 pragma Assert
(Ekind
(Id
) = E_Function
or else Is_Formal
(Id
));
5391 Set_Uint8
(Id
, UI_From_Int
(V
));
5394 procedure Set_Modulus
(Id
: E
; V
: U
) is
5396 pragma Assert
(Ekind
(Id
) = E_Modular_Integer_Type
);
5400 procedure Set_Must_Be_On_Byte_Boundary
(Id
: E
; V
: B
:= True) is
5402 pragma Assert
(Is_Type
(Id
));
5403 Set_Flag183
(Id
, V
);
5404 end Set_Must_Be_On_Byte_Boundary
;
5406 procedure Set_Must_Have_Preelab_Init
(Id
: E
; V
: B
:= True) is
5408 pragma Assert
(Is_Type
(Id
));
5409 Set_Flag208
(Id
, V
);
5410 end Set_Must_Have_Preelab_Init
;
5412 procedure Set_Needs_Debug_Info
(Id
: E
; V
: B
:= True) is
5414 Set_Flag147
(Id
, V
);
5415 end Set_Needs_Debug_Info
;
5417 procedure Set_Needs_No_Actuals
(Id
: E
; V
: B
:= True) is
5420 (Is_Overloadable
(Id
)
5421 or else Ekind_In
(Id
, E_Subprogram_Type
, E_Entry_Family
));
5423 end Set_Needs_No_Actuals
;
5425 procedure Set_Never_Set_In_Source
(Id
: E
; V
: B
:= True) is
5427 Set_Flag115
(Id
, V
);
5428 end Set_Never_Set_In_Source
;
5430 procedure Set_Next_Inlined_Subprogram
(Id
: E
; V
: E
) is
5433 end Set_Next_Inlined_Subprogram
;
5435 procedure Set_No_Dynamic_Predicate_On_Actual
(Id
: E
; V
: B
:= True) is
5437 pragma Assert
(Is_Discrete_Type
(Id
));
5438 Set_Flag276
(Id
, V
);
5439 end Set_No_Dynamic_Predicate_On_Actual
;
5441 procedure Set_No_Pool_Assigned
(Id
: E
; V
: B
:= True) is
5443 pragma Assert
(Is_Access_Type
(Id
) and then Is_Base_Type
(Id
));
5444 Set_Flag131
(Id
, V
);
5445 end Set_No_Pool_Assigned
;
5447 procedure Set_No_Predicate_On_Actual
(Id
: E
; V
: B
:= True) is
5449 pragma Assert
(Is_Discrete_Type
(Id
));
5450 Set_Flag275
(Id
, V
);
5451 end Set_No_Predicate_On_Actual
;
5453 procedure Set_No_Return
(Id
: E
; V
: B
:= True) is
5456 (V
= False or else Ekind_In
(Id
, E_Procedure
, E_Generic_Procedure
));
5457 Set_Flag113
(Id
, V
);
5460 procedure Set_No_Strict_Aliasing
(Id
: E
; V
: B
:= True) is
5462 pragma Assert
(Is_Access_Type
(Id
) and then Is_Base_Type
(Id
));
5463 Set_Flag136
(Id
, V
);
5464 end Set_No_Strict_Aliasing
;
5466 procedure Set_No_Tagged_Streams_Pragma
(Id
: E
; V
: E
) is
5468 pragma Assert
(Is_Tagged_Type
(Id
));
5470 end Set_No_Tagged_Streams_Pragma
;
5472 procedure Set_Non_Binary_Modulus
(Id
: E
; V
: B
:= True) is
5474 pragma Assert
(Is_Type
(Id
) and then Is_Base_Type
(Id
));
5476 end Set_Non_Binary_Modulus
;
5478 procedure Set_Non_Limited_View
(Id
: E
; V
: E
) is
5481 (Ekind
(Id
) in Incomplete_Kind
or else Ekind
(Id
) = E_Abstract_State
);
5483 end Set_Non_Limited_View
;
5485 procedure Set_Nonzero_Is_True
(Id
: E
; V
: B
:= True) is
5488 (Root_Type
(Id
) = Standard_Boolean
5489 and then Ekind
(Id
) = E_Enumeration_Type
);
5490 Set_Flag162
(Id
, V
);
5491 end Set_Nonzero_Is_True
;
5493 procedure Set_Normalized_First_Bit
(Id
: E
; V
: U
) is
5495 pragma Assert
(Ekind_In
(Id
, E_Component
, E_Discriminant
));
5497 end Set_Normalized_First_Bit
;
5499 procedure Set_Normalized_Position
(Id
: E
; V
: U
) is
5501 pragma Assert
(Ekind_In
(Id
, E_Component
, E_Discriminant
));
5503 end Set_Normalized_Position
;
5505 procedure Set_Normalized_Position_Max
(Id
: E
; V
: U
) is
5507 pragma Assert
(Ekind_In
(Id
, E_Component
, E_Discriminant
));
5509 end Set_Normalized_Position_Max
;
5511 procedure Set_OK_To_Rename
(Id
: E
; V
: B
:= True) is
5513 pragma Assert
(Ekind
(Id
) = E_Variable
);
5514 Set_Flag247
(Id
, V
);
5515 end Set_OK_To_Rename
;
5517 procedure Set_OK_To_Reorder_Components
(Id
: E
; V
: B
:= True) is
5520 (Is_Record_Type
(Id
) and then Is_Base_Type
(Id
));
5521 Set_Flag239
(Id
, V
);
5522 end Set_OK_To_Reorder_Components
;
5524 procedure Set_Optimize_Alignment_Space
(Id
: E
; V
: B
:= True) is
5527 (Is_Type
(Id
) or else Ekind_In
(Id
, E_Constant
, E_Variable
));
5528 Set_Flag241
(Id
, V
);
5529 end Set_Optimize_Alignment_Space
;
5531 procedure Set_Optimize_Alignment_Time
(Id
: E
; V
: B
:= True) is
5534 (Is_Type
(Id
) or else Ekind_In
(Id
, E_Constant
, E_Variable
));
5535 Set_Flag242
(Id
, V
);
5536 end Set_Optimize_Alignment_Time
;
5538 procedure Set_Original_Access_Type
(Id
: E
; V
: E
) is
5540 pragma Assert
(Ekind
(Id
) = E_Access_Subprogram_Type
);
5542 end Set_Original_Access_Type
;
5544 procedure Set_Original_Array_Type
(Id
: E
; V
: E
) is
5546 pragma Assert
(Is_Array_Type
(Id
) or else Is_Modular_Integer_Type
(Id
));
5548 end Set_Original_Array_Type
;
5550 procedure Set_Original_Record_Component
(Id
: E
; V
: E
) is
5552 pragma Assert
(Ekind_In
(Id
, E_Void
, E_Component
, E_Discriminant
));
5554 end Set_Original_Record_Component
;
5556 procedure Set_Overlays_Constant
(Id
: E
; V
: B
:= True) is
5558 Set_Flag243
(Id
, V
);
5559 end Set_Overlays_Constant
;
5561 procedure Set_Overridden_Operation
(Id
: E
; V
: E
) is
5564 end Set_Overridden_Operation
;
5566 procedure Set_Package_Instantiation
(Id
: E
; V
: N
) is
5568 pragma Assert
(Ekind_In
(Id
, E_Void
, E_Generic_Package
, E_Package
));
5570 end Set_Package_Instantiation
;
5572 procedure Set_Packed_Array_Impl_Type
(Id
: E
; V
: E
) is
5574 pragma Assert
(Is_Array_Type
(Id
));
5576 end Set_Packed_Array_Impl_Type
;
5578 procedure Set_Parent_Subtype
(Id
: E
; V
: E
) is
5580 pragma Assert
(Ekind
(Id
) = E_Record_Type
);
5582 end Set_Parent_Subtype
;
5584 procedure Set_Part_Of_Constituents
(Id
: E
; V
: L
) is
5586 pragma Assert
(Ekind
(Id
) = E_Abstract_State
);
5588 end Set_Part_Of_Constituents
;
5590 procedure Set_Postcondition_Proc
(Id
: E
; V
: E
) is
5592 pragma Assert
(Ekind
(Id
) = E_Procedure
);
5594 end Set_Postcondition_Proc
;
5596 procedure Set_PPC_Wrapper
(Id
: E
; V
: E
) is
5598 pragma Assert
(Ekind_In
(Id
, E_Entry
, E_Entry_Family
));
5600 end Set_PPC_Wrapper
;
5602 procedure Set_Direct_Primitive_Operations
(Id
: E
; V
: L
) is
5604 pragma Assert
(Is_Tagged_Type
(Id
));
5605 Set_Elist10
(Id
, V
);
5606 end Set_Direct_Primitive_Operations
;
5608 procedure Set_Prival
(Id
: E
; V
: E
) is
5610 pragma Assert
(Is_Protected_Component
(Id
));
5614 procedure Set_Prival_Link
(Id
: E
; V
: E
) is
5616 pragma Assert
(Ekind_In
(Id
, E_Constant
, E_Variable
));
5618 end Set_Prival_Link
;
5620 procedure Set_Private_Dependents
(Id
: E
; V
: L
) is
5622 pragma Assert
(Is_Incomplete_Or_Private_Type
(Id
));
5623 Set_Elist18
(Id
, V
);
5624 end Set_Private_Dependents
;
5626 procedure Set_Private_View
(Id
: E
; V
: N
) is
5628 pragma Assert
(Is_Private_Type
(Id
));
5630 end Set_Private_View
;
5632 procedure Set_Protected_Body_Subprogram
(Id
: E
; V
: E
) is
5634 pragma Assert
(Is_Subprogram
(Id
) or else Is_Entry
(Id
));
5636 end Set_Protected_Body_Subprogram
;
5638 procedure Set_Protected_Formal
(Id
: E
; V
: E
) is
5640 pragma Assert
(Is_Formal
(Id
));
5642 end Set_Protected_Formal
;
5644 procedure Set_Protection_Object
(Id
: E
; V
: E
) is
5646 pragma Assert
(Ekind_In
(Id
, E_Entry
,
5651 end Set_Protection_Object
;
5653 procedure Set_Reachable
(Id
: E
; V
: B
:= True) is
5658 procedure Set_Referenced
(Id
: E
; V
: B
:= True) is
5660 Set_Flag156
(Id
, V
);
5663 procedure Set_Referenced_As_LHS
(Id
: E
; V
: B
:= True) is
5666 end Set_Referenced_As_LHS
;
5668 procedure Set_Referenced_As_Out_Parameter
(Id
: E
; V
: B
:= True) is
5670 Set_Flag227
(Id
, V
);
5671 end Set_Referenced_As_Out_Parameter
;
5673 procedure Set_Refinement_Constituents
(Id
: E
; V
: L
) is
5675 pragma Assert
(Ekind
(Id
) = E_Abstract_State
);
5677 end Set_Refinement_Constituents
;
5679 procedure Set_Register_Exception_Call
(Id
: E
; V
: N
) is
5681 pragma Assert
(Ekind
(Id
) = E_Exception
);
5683 end Set_Register_Exception_Call
;
5685 procedure Set_Related_Array_Object
(Id
: E
; V
: E
) is
5687 pragma Assert
(Is_Array_Type
(Id
));
5689 end Set_Related_Array_Object
;
5691 procedure Set_Related_Expression
(Id
: E
; V
: N
) is
5693 pragma Assert
(Ekind
(Id
) in Type_Kind
5694 or else Ekind_In
(Id
, E_Constant
, E_Variable
, E_Void
));
5696 end Set_Related_Expression
;
5698 procedure Set_Related_Instance
(Id
: E
; V
: E
) is
5700 pragma Assert
(Ekind_In
(Id
, E_Package
, E_Package_Body
));
5702 end Set_Related_Instance
;
5704 procedure Set_Related_Type
(Id
: E
; V
: E
) is
5706 pragma Assert
(Ekind_In
(Id
, E_Component
, E_Constant
, E_Variable
));
5708 end Set_Related_Type
;
5710 procedure Set_Relative_Deadline_Variable
(Id
: E
; V
: E
) is
5712 pragma Assert
(Is_Task_Type
(Id
) and then Is_Base_Type
(Id
));
5714 end Set_Relative_Deadline_Variable
;
5716 procedure Set_Renamed_Entity
(Id
: E
; V
: N
) is
5719 end Set_Renamed_Entity
;
5721 procedure Set_Renamed_In_Spec
(Id
: E
; V
: B
:= True) is
5723 pragma Assert
(Ekind
(Id
) = E_Package
);
5724 Set_Flag231
(Id
, V
);
5725 end Set_Renamed_In_Spec
;
5727 procedure Set_Renamed_Object
(Id
: E
; V
: N
) is
5730 end Set_Renamed_Object
;
5732 procedure Set_Renaming_Map
(Id
: E
; V
: U
) is
5735 end Set_Renaming_Map
;
5737 procedure Set_Requires_Overriding
(Id
: E
; V
: B
:= True) is
5739 pragma Assert
(Is_Overloadable
(Id
));
5740 Set_Flag213
(Id
, V
);
5741 end Set_Requires_Overriding
;
5743 procedure Set_Return_Present
(Id
: E
; V
: B
:= True) is
5746 end Set_Return_Present
;
5748 procedure Set_Return_Applies_To
(Id
: E
; V
: N
) is
5751 end Set_Return_Applies_To
;
5753 procedure Set_Returns_By_Ref
(Id
: E
; V
: B
:= True) is
5756 end Set_Returns_By_Ref
;
5758 procedure Set_Returns_Limited_View
(Id
: E
; V
: B
:= True) is
5760 pragma Assert
(Ekind
(Id
) = E_Function
);
5761 Set_Flag134
(Id
, V
);
5762 end Set_Returns_Limited_View
;
5764 procedure Set_Reverse_Bit_Order
(Id
: E
; V
: B
:= True) is
5767 (Is_Record_Type
(Id
) and then Is_Base_Type
(Id
));
5768 Set_Flag164
(Id
, V
);
5769 end Set_Reverse_Bit_Order
;
5771 procedure Set_Reverse_Storage_Order
(Id
: E
; V
: B
:= True) is
5775 and then (Is_Record_Type
(Id
) or else Is_Array_Type
(Id
)));
5777 end Set_Reverse_Storage_Order
;
5779 procedure Set_RM_Size
(Id
: E
; V
: U
) is
5781 pragma Assert
(Is_Type
(Id
));
5785 procedure Set_Scalar_Range
(Id
: E
; V
: N
) is
5788 end Set_Scalar_Range
;
5790 procedure Set_Scale_Value
(Id
: E
; V
: U
) is
5793 end Set_Scale_Value
;
5795 procedure Set_Scope_Depth_Value
(Id
: E
; V
: U
) is
5797 pragma Assert
(not Is_Record_Type
(Id
));
5799 end Set_Scope_Depth_Value
;
5801 procedure Set_Sec_Stack_Needed_For_Return
(Id
: E
; V
: B
:= True) is
5803 Set_Flag167
(Id
, V
);
5804 end Set_Sec_Stack_Needed_For_Return
;
5806 procedure Set_Shadow_Entities
(Id
: E
; V
: S
) is
5808 pragma Assert
(Ekind_In
(Id
, E_Package
, E_Generic_Package
));
5810 end Set_Shadow_Entities
;
5812 procedure Set_Shared_Var_Procs_Instance
(Id
: E
; V
: E
) is
5814 pragma Assert
(Ekind
(Id
) = E_Variable
);
5816 end Set_Shared_Var_Procs_Instance
;
5818 procedure Set_Size_Check_Code
(Id
: E
; V
: N
) is
5820 pragma Assert
(Ekind_In
(Id
, E_Constant
, E_Variable
));
5822 end Set_Size_Check_Code
;
5824 procedure Set_Size_Depends_On_Discriminant
(Id
: E
; V
: B
:= True) is
5826 Set_Flag177
(Id
, V
);
5827 end Set_Size_Depends_On_Discriminant
;
5829 procedure Set_Size_Known_At_Compile_Time
(Id
: E
; V
: B
:= True) is
5832 end Set_Size_Known_At_Compile_Time
;
5834 procedure Set_Small_Value
(Id
: E
; V
: R
) is
5836 pragma Assert
(Is_Fixed_Point_Type
(Id
));
5837 Set_Ureal21
(Id
, V
);
5838 end Set_Small_Value
;
5840 procedure Set_SPARK_Aux_Pragma
(Id
: E
; V
: N
) is
5843 (Ekind_In
(Id
, E_Generic_Package
, -- package variants
5848 end Set_SPARK_Aux_Pragma
;
5850 procedure Set_SPARK_Aux_Pragma_Inherited
(Id
: E
; V
: B
:= True) is
5853 (Ekind_In
(Id
, E_Generic_Package
, -- package variants
5857 Set_Flag266
(Id
, V
);
5858 end Set_SPARK_Aux_Pragma_Inherited
;
5860 procedure Set_SPARK_Pragma
(Id
: E
; V
: N
) is
5863 (Ekind_In
(Id
, E_Function
, -- subprogram variants
5865 E_Generic_Procedure
,
5869 Ekind_In
(Id
, E_Generic_Package
, -- package variants
5874 end Set_SPARK_Pragma
;
5876 procedure Set_SPARK_Pragma_Inherited
(Id
: E
; V
: B
:= True) is
5879 (Ekind_In
(Id
, E_Function
, -- subprogram variants
5881 E_Generic_Procedure
,
5885 Ekind_In
(Id
, E_Generic_Package
, -- package variants
5889 Set_Flag265
(Id
, V
);
5890 end Set_SPARK_Pragma_Inherited
;
5892 procedure Set_Spec_Entity
(Id
: E
; V
: E
) is
5894 pragma Assert
(Ekind
(Id
) = E_Package_Body
or else Is_Formal
(Id
));
5896 end Set_Spec_Entity
;
5898 procedure Set_SSO_Set_High_By_Default
(Id
: E
; V
: B
:= True) is
5902 and then (Is_Record_Type
(Id
) or else Is_Array_Type
(Id
)));
5903 Set_Flag273
(Id
, V
);
5904 end Set_SSO_Set_High_By_Default
;
5906 procedure Set_SSO_Set_Low_By_Default
(Id
: E
; V
: B
:= True) is
5910 and then (Is_Record_Type
(Id
) or else Is_Array_Type
(Id
)));
5911 Set_Flag272
(Id
, V
);
5912 end Set_SSO_Set_Low_By_Default
;
5914 procedure Set_Static_Discrete_Predicate
(Id
: E
; V
: S
) is
5916 pragma Assert
(Is_Discrete_Type
(Id
) and then Has_Predicates
(Id
));
5918 end Set_Static_Discrete_Predicate
;
5920 procedure Set_Static_Real_Or_String_Predicate
(Id
: E
; V
: N
) is
5922 pragma Assert
((Is_Real_Type
(Id
) or else Is_String_Type
(Id
))
5923 and then Has_Predicates
(Id
));
5925 end Set_Static_Real_Or_String_Predicate
;
5927 procedure Set_Status_Flag_Or_Transient_Decl
(Id
: E
; V
: E
) is
5929 pragma Assert
(Ekind_In
(Id
, E_Constant
, E_Variable
));
5931 end Set_Status_Flag_Or_Transient_Decl
;
5933 procedure Set_Storage_Size_Variable
(Id
: E
; V
: E
) is
5935 pragma Assert
(Is_Access_Type
(Id
) or else Is_Task_Type
(Id
));
5936 pragma Assert
(Id
= Base_Type
(Id
));
5938 end Set_Storage_Size_Variable
;
5940 procedure Set_Static_Elaboration_Desired
(Id
: E
; V
: B
) is
5942 pragma Assert
(Ekind
(Id
) = E_Package
);
5944 end Set_Static_Elaboration_Desired
;
5946 procedure Set_Static_Initialization
(Id
: E
; V
: N
) is
5949 (Ekind
(Id
) = E_Procedure
and then not Is_Dispatching_Operation
(Id
));
5951 end Set_Static_Initialization
;
5953 procedure Set_Stored_Constraint
(Id
: E
; V
: L
) is
5955 pragma Assert
(Nkind
(Id
) in N_Entity
);
5956 Set_Elist23
(Id
, V
);
5957 end Set_Stored_Constraint
;
5959 procedure Set_Stores_Attribute_Old_Prefix
(Id
: E
; V
: B
:= True) is
5961 pragma Assert
(Ekind
(Id
) = E_Constant
);
5962 Set_Flag270
(Id
, V
);
5963 end Set_Stores_Attribute_Old_Prefix
;
5965 procedure Set_Strict_Alignment
(Id
: E
; V
: B
:= True) is
5967 pragma Assert
(Id
= Base_Type
(Id
));
5968 Set_Flag145
(Id
, V
);
5969 end Set_Strict_Alignment
;
5971 procedure Set_String_Literal_Length
(Id
: E
; V
: U
) is
5973 pragma Assert
(Ekind
(Id
) = E_String_Literal_Subtype
);
5975 end Set_String_Literal_Length
;
5977 procedure Set_String_Literal_Low_Bound
(Id
: E
; V
: N
) is
5979 pragma Assert
(Ekind
(Id
) = E_String_Literal_Subtype
);
5981 end Set_String_Literal_Low_Bound
;
5983 procedure Set_Subprograms_For_Type
(Id
: E
; V
: E
) is
5985 pragma Assert
(Is_Type
(Id
) or else Is_Subprogram
(Id
));
5987 end Set_Subprograms_For_Type
;
5989 procedure Set_Suppress_Elaboration_Warnings
(Id
: E
; V
: B
:= True) is
5991 Set_Flag148
(Id
, V
);
5992 end Set_Suppress_Elaboration_Warnings
;
5994 procedure Set_Suppress_Initialization
(Id
: E
; V
: B
:= True) is
5996 pragma Assert
(Is_Type
(Id
) or else Ekind
(Id
) = E_Variable
);
5997 Set_Flag105
(Id
, V
);
5998 end Set_Suppress_Initialization
;
6000 procedure Set_Suppress_Style_Checks
(Id
: E
; V
: B
:= True) is
6002 Set_Flag165
(Id
, V
);
6003 end Set_Suppress_Style_Checks
;
6005 procedure Set_Suppress_Value_Tracking_On_Call
(Id
: E
; V
: B
:= True) is
6007 Set_Flag217
(Id
, V
);
6008 end Set_Suppress_Value_Tracking_On_Call
;
6010 procedure Set_Task_Body_Procedure
(Id
: E
; V
: N
) is
6012 pragma Assert
(Ekind
(Id
) in Task_Kind
);
6014 end Set_Task_Body_Procedure
;
6016 procedure Set_Thunk_Entity
(Id
: E
; V
: E
) is
6018 pragma Assert
(Ekind_In
(Id
, E_Function
, E_Procedure
)
6019 and then Is_Thunk
(Id
));
6021 end Set_Thunk_Entity
;
6023 procedure Set_Treat_As_Volatile
(Id
: E
; V
: B
:= True) is
6026 end Set_Treat_As_Volatile
;
6028 procedure Set_Underlying_Full_View
(Id
: E
; V
: E
) is
6030 pragma Assert
(Ekind
(Id
) in Private_Kind
);
6032 end Set_Underlying_Full_View
;
6034 procedure Set_Underlying_Record_View
(Id
: E
; V
: E
) is
6036 pragma Assert
(Ekind
(Id
) = E_Record_Type
);
6038 end Set_Underlying_Record_View
;
6040 procedure Set_Universal_Aliasing
(Id
: E
; V
: B
:= True) is
6042 pragma Assert
(Is_Type
(Id
) and then Is_Base_Type
(Id
));
6043 Set_Flag216
(Id
, V
);
6044 end Set_Universal_Aliasing
;
6046 procedure Set_Unset_Reference
(Id
: E
; V
: N
) is
6049 end Set_Unset_Reference
;
6051 procedure Set_Used_As_Generic_Actual
(Id
: E
; V
: B
:= True) is
6053 Set_Flag222
(Id
, V
);
6054 end Set_Used_As_Generic_Actual
;
6056 procedure Set_Uses_Lock_Free
(Id
: E
; V
: B
:= True) is
6058 pragma Assert
(Ekind
(Id
) = E_Protected_Type
);
6059 Set_Flag188
(Id
, V
);
6060 end Set_Uses_Lock_Free
;
6062 procedure Set_Uses_Sec_Stack
(Id
: E
; V
: B
:= True) is
6065 end Set_Uses_Sec_Stack
;
6067 procedure Set_Warnings_Off
(Id
: E
; V
: B
:= True) is
6070 end Set_Warnings_Off
;
6072 procedure Set_Warnings_Off_Used
(Id
: E
; V
: B
:= True) is
6074 Set_Flag236
(Id
, V
);
6075 end Set_Warnings_Off_Used
;
6077 procedure Set_Warnings_Off_Used_Unmodified
(Id
: E
; V
: B
:= True) is
6079 Set_Flag237
(Id
, V
);
6080 end Set_Warnings_Off_Used_Unmodified
;
6082 procedure Set_Warnings_Off_Used_Unreferenced
(Id
: E
; V
: B
:= True) is
6084 Set_Flag238
(Id
, V
);
6085 end Set_Warnings_Off_Used_Unreferenced
;
6087 procedure Set_Was_Hidden
(Id
: E
; V
: B
:= True) is
6089 Set_Flag196
(Id
, V
);
6092 procedure Set_Wrapped_Entity
(Id
: E
; V
: E
) is
6094 pragma Assert
(Ekind_In
(Id
, E_Function
, E_Procedure
)
6095 and then Is_Primitive_Wrapper
(Id
));
6097 end Set_Wrapped_Entity
;
6099 -----------------------------------
6100 -- Field Initialization Routines --
6101 -----------------------------------
6103 procedure Init_Alignment
(Id
: E
) is
6105 Set_Uint14
(Id
, Uint_0
);
6108 procedure Init_Alignment
(Id
: E
; V
: Int
) is
6110 Set_Uint14
(Id
, UI_From_Int
(V
));
6113 procedure Init_Component_Bit_Offset
(Id
: E
) is
6115 Set_Uint11
(Id
, No_Uint
);
6116 end Init_Component_Bit_Offset
;
6118 procedure Init_Component_Bit_Offset
(Id
: E
; V
: Int
) is
6120 Set_Uint11
(Id
, UI_From_Int
(V
));
6121 end Init_Component_Bit_Offset
;
6123 procedure Init_Component_Size
(Id
: E
) is
6125 Set_Uint22
(Id
, Uint_0
);
6126 end Init_Component_Size
;
6128 procedure Init_Component_Size
(Id
: E
; V
: Int
) is
6130 Set_Uint22
(Id
, UI_From_Int
(V
));
6131 end Init_Component_Size
;
6133 procedure Init_Digits_Value
(Id
: E
) is
6135 Set_Uint17
(Id
, Uint_0
);
6136 end Init_Digits_Value
;
6138 procedure Init_Digits_Value
(Id
: E
; V
: Int
) is
6140 Set_Uint17
(Id
, UI_From_Int
(V
));
6141 end Init_Digits_Value
;
6143 procedure Init_Esize
(Id
: E
) is
6145 Set_Uint12
(Id
, Uint_0
);
6148 procedure Init_Esize
(Id
: E
; V
: Int
) is
6150 Set_Uint12
(Id
, UI_From_Int
(V
));
6153 procedure Init_Normalized_First_Bit
(Id
: E
) is
6155 Set_Uint8
(Id
, No_Uint
);
6156 end Init_Normalized_First_Bit
;
6158 procedure Init_Normalized_First_Bit
(Id
: E
; V
: Int
) is
6160 Set_Uint8
(Id
, UI_From_Int
(V
));
6161 end Init_Normalized_First_Bit
;
6163 procedure Init_Normalized_Position
(Id
: E
) is
6165 Set_Uint14
(Id
, No_Uint
);
6166 end Init_Normalized_Position
;
6168 procedure Init_Normalized_Position
(Id
: E
; V
: Int
) is
6170 Set_Uint14
(Id
, UI_From_Int
(V
));
6171 end Init_Normalized_Position
;
6173 procedure Init_Normalized_Position_Max
(Id
: E
) is
6175 Set_Uint10
(Id
, No_Uint
);
6176 end Init_Normalized_Position_Max
;
6178 procedure Init_Normalized_Position_Max
(Id
: E
; V
: Int
) is
6180 Set_Uint10
(Id
, UI_From_Int
(V
));
6181 end Init_Normalized_Position_Max
;
6183 procedure Init_RM_Size
(Id
: E
) is
6185 Set_Uint13
(Id
, Uint_0
);
6188 procedure Init_RM_Size
(Id
: E
; V
: Int
) is
6190 Set_Uint13
(Id
, UI_From_Int
(V
));
6193 -----------------------------
6194 -- Init_Component_Location --
6195 -----------------------------
6197 procedure Init_Component_Location
(Id
: E
) is
6199 Set_Uint8
(Id
, No_Uint
); -- Normalized_First_Bit
6200 Set_Uint10
(Id
, No_Uint
); -- Normalized_Position_Max
6201 Set_Uint11
(Id
, No_Uint
); -- Component_Bit_Offset
6202 Set_Uint12
(Id
, Uint_0
); -- Esize
6203 Set_Uint14
(Id
, No_Uint
); -- Normalized_Position
6204 end Init_Component_Location
;
6206 ----------------------------
6207 -- Init_Object_Size_Align --
6208 ----------------------------
6210 procedure Init_Object_Size_Align
(Id
: E
) is
6212 Set_Uint12
(Id
, Uint_0
); -- Esize
6213 Set_Uint14
(Id
, Uint_0
); -- Alignment
6214 end Init_Object_Size_Align
;
6220 procedure Init_Size
(Id
: E
; V
: Int
) is
6222 pragma Assert
(not Is_Object
(Id
));
6223 Set_Uint12
(Id
, UI_From_Int
(V
)); -- Esize
6224 Set_Uint13
(Id
, UI_From_Int
(V
)); -- RM_Size
6227 ---------------------
6228 -- Init_Size_Align --
6229 ---------------------
6231 procedure Init_Size_Align
(Id
: E
) is
6233 pragma Assert
(not Is_Object
(Id
));
6234 Set_Uint12
(Id
, Uint_0
); -- Esize
6235 Set_Uint13
(Id
, Uint_0
); -- RM_Size
6236 Set_Uint14
(Id
, Uint_0
); -- Alignment
6237 end Init_Size_Align
;
6239 ----------------------------------------------
6240 -- Type Representation Attribute Predicates --
6241 ----------------------------------------------
6243 function Known_Alignment
(E
: Entity_Id
) return B
is
6245 return Uint14
(E
) /= Uint_0
6246 and then Uint14
(E
) /= No_Uint
;
6247 end Known_Alignment
;
6249 function Known_Component_Bit_Offset
(E
: Entity_Id
) return B
is
6251 return Uint11
(E
) /= No_Uint
;
6252 end Known_Component_Bit_Offset
;
6254 function Known_Component_Size
(E
: Entity_Id
) return B
is
6256 return Uint22
(Base_Type
(E
)) /= Uint_0
6257 and then Uint22
(Base_Type
(E
)) /= No_Uint
;
6258 end Known_Component_Size
;
6260 function Known_Esize
(E
: Entity_Id
) return B
is
6262 return Uint12
(E
) /= Uint_0
6263 and then Uint12
(E
) /= No_Uint
;
6266 function Known_Normalized_First_Bit
(E
: Entity_Id
) return B
is
6268 return Uint8
(E
) /= No_Uint
;
6269 end Known_Normalized_First_Bit
;
6271 function Known_Normalized_Position
(E
: Entity_Id
) return B
is
6273 return Uint14
(E
) /= No_Uint
;
6274 end Known_Normalized_Position
;
6276 function Known_Normalized_Position_Max
(E
: Entity_Id
) return B
is
6278 return Uint10
(E
) /= No_Uint
;
6279 end Known_Normalized_Position_Max
;
6281 function Known_RM_Size
(E
: Entity_Id
) return B
is
6283 return Uint13
(E
) /= No_Uint
6284 and then (Uint13
(E
) /= Uint_0
6285 or else Is_Discrete_Type
(E
)
6286 or else Is_Fixed_Point_Type
(E
));
6289 function Known_Static_Component_Bit_Offset
(E
: Entity_Id
) return B
is
6291 return Uint11
(E
) /= No_Uint
6292 and then Uint11
(E
) >= Uint_0
;
6293 end Known_Static_Component_Bit_Offset
;
6295 function Known_Static_Component_Size
(E
: Entity_Id
) return B
is
6297 return Uint22
(Base_Type
(E
)) > Uint_0
;
6298 end Known_Static_Component_Size
;
6300 function Known_Static_Esize
(E
: Entity_Id
) return B
is
6302 return Uint12
(E
) > Uint_0
6303 and then not Is_Generic_Type
(E
);
6304 end Known_Static_Esize
;
6306 function Known_Static_Normalized_First_Bit
(E
: Entity_Id
) return B
is
6308 return Uint8
(E
) /= No_Uint
6309 and then Uint8
(E
) >= Uint_0
;
6310 end Known_Static_Normalized_First_Bit
;
6312 function Known_Static_Normalized_Position
(E
: Entity_Id
) return B
is
6314 return Uint14
(E
) /= No_Uint
6315 and then Uint14
(E
) >= Uint_0
;
6316 end Known_Static_Normalized_Position
;
6318 function Known_Static_Normalized_Position_Max
(E
: Entity_Id
) return B
is
6320 return Uint10
(E
) /= No_Uint
6321 and then Uint10
(E
) >= Uint_0
;
6322 end Known_Static_Normalized_Position_Max
;
6324 function Known_Static_RM_Size
(E
: Entity_Id
) return B
is
6326 return (Uint13
(E
) > Uint_0
6327 or else Is_Discrete_Type
(E
)
6328 or else Is_Fixed_Point_Type
(E
))
6329 and then not Is_Generic_Type
(E
);
6330 end Known_Static_RM_Size
;
6332 function Unknown_Alignment
(E
: Entity_Id
) return B
is
6334 return Uint14
(E
) = Uint_0
6335 or else Uint14
(E
) = No_Uint
;
6336 end Unknown_Alignment
;
6338 function Unknown_Component_Bit_Offset
(E
: Entity_Id
) return B
is
6340 return Uint11
(E
) = No_Uint
;
6341 end Unknown_Component_Bit_Offset
;
6343 function Unknown_Component_Size
(E
: Entity_Id
) return B
is
6345 return Uint22
(Base_Type
(E
)) = Uint_0
6347 Uint22
(Base_Type
(E
)) = No_Uint
;
6348 end Unknown_Component_Size
;
6350 function Unknown_Esize
(E
: Entity_Id
) return B
is
6352 return Uint12
(E
) = No_Uint
6354 Uint12
(E
) = Uint_0
;
6357 function Unknown_Normalized_First_Bit
(E
: Entity_Id
) return B
is
6359 return Uint8
(E
) = No_Uint
;
6360 end Unknown_Normalized_First_Bit
;
6362 function Unknown_Normalized_Position
(E
: Entity_Id
) return B
is
6364 return Uint14
(E
) = No_Uint
;
6365 end Unknown_Normalized_Position
;
6367 function Unknown_Normalized_Position_Max
(E
: Entity_Id
) return B
is
6369 return Uint10
(E
) = No_Uint
;
6370 end Unknown_Normalized_Position_Max
;
6372 function Unknown_RM_Size
(E
: Entity_Id
) return B
is
6374 return (Uint13
(E
) = Uint_0
6375 and then not Is_Discrete_Type
(E
)
6376 and then not Is_Fixed_Point_Type
(E
))
6377 or else Uint13
(E
) = No_Uint
;
6378 end Unknown_RM_Size
;
6380 --------------------
6381 -- Address_Clause --
6382 --------------------
6384 function Address_Clause
(Id
: E
) return N
is
6386 return Get_Attribute_Definition_Clause
(Id
, Attribute_Address
);
6393 function Aft_Value
(Id
: E
) return U
is
6395 Delta_Val
: Ureal
:= Delta_Value
(Id
);
6397 while Delta_Val
< Ureal_Tenth
loop
6398 Delta_Val
:= Delta_Val
* Ureal_10
;
6399 Result
:= Result
+ 1;
6402 return UI_From_Int
(Result
);
6405 ----------------------
6406 -- Alignment_Clause --
6407 ----------------------
6409 function Alignment_Clause
(Id
: E
) return N
is
6411 return Get_Attribute_Definition_Clause
(Id
, Attribute_Alignment
);
6412 end Alignment_Clause
;
6418 procedure Append_Entity
(Id
: Entity_Id
; V
: Entity_Id
) is
6420 if Last_Entity
(V
) = Empty
then
6421 Set_First_Entity
(Id
=> V
, V
=> Id
);
6423 Set_Next_Entity
(Last_Entity
(V
), Id
);
6426 Set_Next_Entity
(Id
, Empty
);
6428 Set_Last_Entity
(Id
=> V
, V
=> Id
);
6435 function Base_Type
(Id
: E
) return E
is
6437 if Is_Base_Type
(Id
) then
6440 pragma Assert
(Is_Type
(Id
));
6445 -------------------------
6446 -- Component_Alignment --
6447 -------------------------
6449 -- Component Alignment is encoded using two flags, Flag128/129 as
6450 -- follows. Note that both flags False = Align_Default, so that the
6451 -- default initialization of flags to False initializes component
6452 -- alignment to the default value as required.
6454 -- Flag128 Flag129 Value
6455 -- ------- ------- -----
6456 -- False False Calign_Default
6457 -- False True Calign_Component_Size
6458 -- True False Calign_Component_Size_4
6459 -- True True Calign_Storage_Unit
6461 function Component_Alignment
(Id
: E
) return C
is
6462 BT
: constant Node_Id
:= Base_Type
(Id
);
6465 pragma Assert
(Is_Array_Type
(Id
) or else Is_Record_Type
(Id
));
6467 if Flag128
(BT
) then
6468 if Flag129
(BT
) then
6469 return Calign_Storage_Unit
;
6471 return Calign_Component_Size_4
;
6475 if Flag129
(BT
) then
6476 return Calign_Component_Size
;
6478 return Calign_Default
;
6481 end Component_Alignment
;
6483 ----------------------
6484 -- Declaration_Node --
6485 ----------------------
6487 function Declaration_Node
(Id
: E
) return N
is
6491 if Ekind
(Id
) = E_Incomplete_Type
6492 and then Present
(Full_View
(Id
))
6494 P
:= Parent
(Full_View
(Id
));
6500 if Nkind
(P
) /= N_Selected_Component
6501 and then Nkind
(P
) /= N_Expanded_Name
6503 not (Nkind
(P
) = N_Defining_Program_Unit_Name
6504 and then Is_Child_Unit
(Id
))
6511 end Declaration_Node
;
6513 ---------------------------------
6514 -- Default_Init_Cond_Procedure --
6515 ---------------------------------
6517 function Default_Init_Cond_Procedure
(Id
: E
) return E
is
6523 and then (Has_Default_Init_Cond
(Id
)
6524 or Has_Inherited_Default_Init_Cond
(Id
)));
6526 S
:= Subprograms_For_Type
(Id
);
6527 while Present
(S
) loop
6528 if Is_Default_Init_Cond_Procedure
(S
) then
6532 S
:= Subprograms_For_Type
(S
);
6536 end Default_Init_Cond_Procedure
;
6538 ---------------------
6539 -- Designated_Type --
6540 ---------------------
6542 function Designated_Type
(Id
: E
) return E
is
6546 Desig_Type
:= Directly_Designated_Type
(Id
);
6548 if Ekind
(Desig_Type
) = E_Incomplete_Type
6549 and then Present
(Full_View
(Desig_Type
))
6551 return Full_View
(Desig_Type
);
6553 elsif Is_Class_Wide_Type
(Desig_Type
)
6554 and then Ekind
(Etype
(Desig_Type
)) = E_Incomplete_Type
6555 and then Present
(Full_View
(Etype
(Desig_Type
)))
6556 and then Present
(Class_Wide_Type
(Full_View
(Etype
(Desig_Type
))))
6558 return Class_Wide_Type
(Full_View
(Etype
(Desig_Type
)));
6563 end Designated_Type
;
6565 ----------------------
6566 -- Entry_Index_Type --
6567 ----------------------
6569 function Entry_Index_Type
(Id
: E
) return N
is
6571 pragma Assert
(Ekind
(Id
) = E_Entry_Family
);
6572 return Etype
(Discrete_Subtype_Definition
(Parent
(Id
)));
6573 end Entry_Index_Type
;
6575 ---------------------
6576 -- First_Component --
6577 ---------------------
6579 function First_Component
(Id
: E
) return E
is
6584 (Is_Record_Type
(Id
) or else Is_Incomplete_Or_Private_Type
(Id
));
6586 Comp_Id
:= First_Entity
(Id
);
6587 while Present
(Comp_Id
) loop
6588 exit when Ekind
(Comp_Id
) = E_Component
;
6589 Comp_Id
:= Next_Entity
(Comp_Id
);
6593 end First_Component
;
6595 -------------------------------------
6596 -- First_Component_Or_Discriminant --
6597 -------------------------------------
6599 function First_Component_Or_Discriminant
(Id
: E
) return E
is
6604 (Is_Record_Type
(Id
)
6605 or else Is_Incomplete_Or_Private_Type
(Id
)
6606 or else Has_Discriminants
(Id
));
6608 Comp_Id
:= First_Entity
(Id
);
6609 while Present
(Comp_Id
) loop
6610 exit when Ekind_In
(Comp_Id
, E_Component
, E_Discriminant
);
6611 Comp_Id
:= Next_Entity
(Comp_Id
);
6615 end First_Component_Or_Discriminant
;
6621 function First_Formal
(Id
: E
) return E
is
6626 (Is_Overloadable
(Id
)
6627 or else Ekind_In
(Id
, E_Entry_Family
,
6629 E_Subprogram_Type
));
6631 if Ekind
(Id
) = E_Enumeration_Literal
then
6635 Formal
:= First_Entity
(Id
);
6637 if Present
(Formal
) and then Is_Formal
(Formal
) then
6645 ------------------------------
6646 -- First_Formal_With_Extras --
6647 ------------------------------
6649 function First_Formal_With_Extras
(Id
: E
) return E
is
6654 (Is_Overloadable
(Id
)
6655 or else Ekind_In
(Id
, E_Entry_Family
,
6657 E_Subprogram_Type
));
6659 if Ekind
(Id
) = E_Enumeration_Literal
then
6663 Formal
:= First_Entity
(Id
);
6665 if Present
(Formal
) and then Is_Formal
(Formal
) then
6668 return Extra_Formals
(Id
); -- Empty if no extra formals
6671 end First_Formal_With_Extras
;
6673 -------------------------------------
6674 -- Get_Attribute_Definition_Clause --
6675 -------------------------------------
6677 function Get_Attribute_Definition_Clause
6679 Id
: Attribute_Id
) return Node_Id
6684 N
:= First_Rep_Item
(E
);
6685 while Present
(N
) loop
6686 if Nkind
(N
) = N_Attribute_Definition_Clause
6687 and then Get_Attribute_Id
(Chars
(N
)) = Id
6696 end Get_Attribute_Definition_Clause
;
6702 function Get_Full_View
(T
: Entity_Id
) return Entity_Id
is
6704 if Ekind
(T
) = E_Incomplete_Type
and then Present
(Full_View
(T
)) then
6705 return Full_View
(T
);
6707 elsif Is_Class_Wide_Type
(T
)
6708 and then Ekind
(Root_Type
(T
)) = E_Incomplete_Type
6709 and then Present
(Full_View
(Root_Type
(T
)))
6711 return Class_Wide_Type
(Full_View
(Root_Type
(T
)));
6722 function Get_Pragma
(E
: Entity_Id
; Id
: Pragma_Id
) return Node_Id
is
6723 Is_CDG
: constant Boolean :=
6724 Id
= Pragma_Abstract_State
or else
6725 Id
= Pragma_Async_Readers
or else
6726 Id
= Pragma_Async_Writers
or else
6727 Id
= Pragma_Depends
or else
6728 Id
= Pragma_Effective_Reads
or else
6729 Id
= Pragma_Effective_Writes
or else
6730 Id
= Pragma_Extensions_Visible
or else
6731 Id
= Pragma_Global
or else
6732 Id
= Pragma_Initial_Condition
or else
6733 Id
= Pragma_Initializes
or else
6734 Id
= Pragma_Part_Of
or else
6735 Id
= Pragma_Refined_Depends
or else
6736 Id
= Pragma_Refined_Global
or else
6737 Id
= Pragma_Refined_State
;
6738 Is_CTC
: constant Boolean :=
6739 Id
= Pragma_Contract_Cases
or else
6740 Id
= Pragma_Test_Case
;
6741 Is_PPC
: constant Boolean :=
6742 Id
= Pragma_Precondition
or else
6743 Id
= Pragma_Postcondition
or else
6744 Id
= Pragma_Refined_Post
;
6746 In_Contract
: constant Boolean := Is_CDG
or Is_CTC
or Is_PPC
;
6752 -- Handle pragmas that appear in N_Contract nodes. Those have to be
6753 -- extracted from their specialized list.
6756 Items
:= Contract
(E
);
6762 Item
:= Classifications
(Items
);
6765 Item
:= Contract_Test_Cases
(Items
);
6768 Item
:= Pre_Post_Conditions
(Items
);
6774 Item
:= First_Rep_Item
(E
);
6777 while Present
(Item
) loop
6778 if Nkind
(Item
) = N_Pragma
6779 and then Get_Pragma_Id
(Pragma_Name
(Item
)) = Id
6783 -- All nodes in N_Contract are chained using Next_Pragma
6785 elsif In_Contract
then
6786 Item
:= Next_Pragma
(Item
);
6791 Next_Rep_Item
(Item
);
6798 --------------------------------------
6799 -- Get_Record_Representation_Clause --
6800 --------------------------------------
6802 function Get_Record_Representation_Clause
(E
: Entity_Id
) return Node_Id
is
6806 N
:= First_Rep_Item
(E
);
6807 while Present
(N
) loop
6808 if Nkind
(N
) = N_Record_Representation_Clause
then
6816 end Get_Record_Representation_Clause
;
6818 ------------------------
6819 -- Has_Attach_Handler --
6820 ------------------------
6822 function Has_Attach_Handler
(Id
: E
) return B
is
6826 pragma Assert
(Is_Protected_Type
(Id
));
6828 Ritem
:= First_Rep_Item
(Id
);
6829 while Present
(Ritem
) loop
6830 if Nkind
(Ritem
) = N_Pragma
6831 and then Pragma_Name
(Ritem
) = Name_Attach_Handler
6835 Next_Rep_Item
(Ritem
);
6840 end Has_Attach_Handler
;
6846 function Has_Entries
(Id
: E
) return B
is
6850 pragma Assert
(Is_Concurrent_Type
(Id
));
6852 Ent
:= First_Entity
(Id
);
6853 while Present
(Ent
) loop
6854 if Is_Entry
(Ent
) then
6858 Ent
:= Next_Entity
(Ent
);
6864 ----------------------------
6865 -- Has_Foreign_Convention --
6866 ----------------------------
6868 function Has_Foreign_Convention
(Id
: E
) return B
is
6870 -- While regular Intrinsics such as the Standard operators fit in the
6871 -- "Ada" convention, those with an Interface_Name materialize GCC
6872 -- builtin imports for which Ada special treatments shouldn't apply.
6874 return Convention
(Id
) in Foreign_Convention
6875 or else (Convention
(Id
) = Convention_Intrinsic
6876 and then Present
(Interface_Name
(Id
)));
6877 end Has_Foreign_Convention
;
6879 ---------------------------
6880 -- Has_Interrupt_Handler --
6881 ---------------------------
6883 function Has_Interrupt_Handler
(Id
: E
) return B
is
6887 pragma Assert
(Is_Protected_Type
(Id
));
6889 Ritem
:= First_Rep_Item
(Id
);
6890 while Present
(Ritem
) loop
6891 if Nkind
(Ritem
) = N_Pragma
6892 and then Pragma_Name
(Ritem
) = Name_Interrupt_Handler
6896 Next_Rep_Item
(Ritem
);
6901 end Has_Interrupt_Handler
;
6903 -----------------------------
6904 -- Has_Non_Null_Refinement --
6905 -----------------------------
6907 function Has_Non_Null_Refinement
(Id
: E
) return B
is
6909 -- "Refinement" is a concept applicable only to abstract states
6911 pragma Assert
(Ekind
(Id
) = E_Abstract_State
);
6913 if Has_Visible_Refinement
(Id
) then
6914 pragma Assert
(Present
(Refinement_Constituents
(Id
)));
6916 -- For a refinement to be non-null, the first constituent must be
6917 -- anything other than null.
6920 Nkind
(Node
(First_Elmt
(Refinement_Constituents
(Id
)))) /= N_Null
;
6924 end Has_Non_Null_Refinement
;
6926 -----------------------------
6927 -- Has_Null_Abstract_State --
6928 -----------------------------
6930 function Has_Null_Abstract_State
(Id
: E
) return B
is
6932 pragma Assert
(Ekind_In
(Id
, E_Generic_Package
, E_Package
));
6935 Present
(Abstract_States
(Id
))
6936 and then Is_Null_State
(Node
(First_Elmt
(Abstract_States
(Id
))));
6937 end Has_Null_Abstract_State
;
6939 -------------------------
6940 -- Has_Null_Refinement --
6941 -------------------------
6943 function Has_Null_Refinement
(Id
: E
) return B
is
6945 -- "Refinement" is a concept applicable only to abstract states
6947 pragma Assert
(Ekind
(Id
) = E_Abstract_State
);
6949 if Has_Visible_Refinement
(Id
) then
6950 pragma Assert
(Present
(Refinement_Constituents
(Id
)));
6952 -- For a refinement to be null, the state's sole constituent must be
6956 Nkind
(Node
(First_Elmt
(Refinement_Constituents
(Id
)))) = N_Null
;
6960 end Has_Null_Refinement
;
6962 --------------------
6963 -- Has_Unmodified --
6964 --------------------
6966 function Has_Unmodified
(E
: Entity_Id
) return Boolean is
6968 if Has_Pragma_Unmodified
(E
) then
6970 elsif Warnings_Off
(E
) then
6971 Set_Warnings_Off_Used_Unmodified
(E
);
6978 ---------------------
6979 -- Has_Unreferenced --
6980 ---------------------
6982 function Has_Unreferenced
(E
: Entity_Id
) return Boolean is
6984 if Has_Pragma_Unreferenced
(E
) then
6986 elsif Warnings_Off
(E
) then
6987 Set_Warnings_Off_Used_Unreferenced
(E
);
6992 end Has_Unreferenced
;
6994 ----------------------
6995 -- Has_Warnings_Off --
6996 ----------------------
6998 function Has_Warnings_Off
(E
: Entity_Id
) return Boolean is
7000 if Warnings_Off
(E
) then
7001 Set_Warnings_Off_Used
(E
);
7006 end Has_Warnings_Off
;
7008 ------------------------------
7009 -- Implementation_Base_Type --
7010 ------------------------------
7012 function Implementation_Base_Type
(Id
: E
) return E
is
7017 Bastyp
:= Base_Type
(Id
);
7019 if Is_Incomplete_Or_Private_Type
(Bastyp
) then
7020 Imptyp
:= Underlying_Type
(Bastyp
);
7022 -- If we have an implementation type, then just return it,
7023 -- otherwise we return the Base_Type anyway. This can only
7024 -- happen in error situations and should avoid some error bombs.
7026 if Present
(Imptyp
) then
7027 return Base_Type
(Imptyp
);
7035 end Implementation_Base_Type
;
7037 -------------------------
7038 -- Invariant_Procedure --
7039 -------------------------
7041 function Invariant_Procedure
(Id
: E
) return E
is
7045 pragma Assert
(Is_Type
(Id
) and then Has_Invariants
(Id
));
7047 if No
(Subprograms_For_Type
(Id
)) then
7051 S
:= Subprograms_For_Type
(Id
);
7052 while Present
(S
) loop
7053 if Is_Invariant_Procedure
(S
) then
7056 S
:= Subprograms_For_Type
(S
);
7062 end Invariant_Procedure
;
7068 -- Global flag table allowing rapid computation of this function
7070 Entity_Is_Base_Type
: constant array (Entity_Kind
) of Boolean :=
7071 (E_Enumeration_Subtype |
7073 E_Signed_Integer_Subtype |
7074 E_Modular_Integer_Subtype |
7075 E_Floating_Point_Subtype |
7076 E_Ordinary_Fixed_Point_Subtype |
7077 E_Decimal_Fixed_Point_Subtype |
7082 E_Record_Subtype_With_Private |
7083 E_Limited_Private_Subtype |
7085 E_Protected_Subtype |
7087 E_String_Literal_Subtype |
7088 E_Class_Wide_Subtype
=> False,
7091 function Is_Base_Type
(Id
: E
) return Boolean is
7093 return Entity_Is_Base_Type
(Ekind
(Id
));
7096 ---------------------
7097 -- Is_Boolean_Type --
7098 ---------------------
7100 function Is_Boolean_Type
(Id
: E
) return B
is
7102 return Root_Type
(Id
) = Standard_Boolean
;
7103 end Is_Boolean_Type
;
7105 ------------------------
7106 -- Is_Constant_Object --
7107 ------------------------
7109 function Is_Constant_Object
(Id
: E
) return B
is
7110 K
: constant Entity_Kind
:= Ekind
(Id
);
7113 K
= E_Constant
or else K
= E_In_Parameter
or else K
= E_Loop_Parameter
;
7114 end Is_Constant_Object
;
7116 --------------------
7117 -- Is_Discriminal --
7118 --------------------
7120 function Is_Discriminal
(Id
: E
) return B
is
7122 return (Ekind_In
(Id
, E_Constant
, E_In_Parameter
)
7123 and then Present
(Discriminal_Link
(Id
)));
7126 ----------------------
7127 -- Is_Dynamic_Scope --
7128 ----------------------
7130 function Is_Dynamic_Scope
(Id
: E
) return B
is
7133 Ekind
(Id
) = E_Block
7135 Ekind
(Id
) = E_Function
7137 Ekind
(Id
) = E_Procedure
7139 Ekind
(Id
) = E_Subprogram_Body
7141 Ekind
(Id
) = E_Task_Type
7143 (Ekind
(Id
) = E_Limited_Private_Type
7144 and then Present
(Full_View
(Id
))
7145 and then Ekind
(Full_View
(Id
)) = E_Task_Type
)
7147 Ekind
(Id
) = E_Entry
7149 Ekind
(Id
) = E_Entry_Family
7151 Ekind
(Id
) = E_Return_Statement
;
7152 end Is_Dynamic_Scope
;
7154 --------------------
7155 -- Is_Entity_Name --
7156 --------------------
7158 function Is_Entity_Name
(N
: Node_Id
) return Boolean is
7159 Kind
: constant Node_Kind
:= Nkind
(N
);
7162 -- Identifiers, operator symbols, expanded names are entity names
7164 return Kind
= N_Identifier
7165 or else Kind
= N_Operator_Symbol
7166 or else Kind
= N_Expanded_Name
7168 -- Attribute references are entity names if they refer to an entity.
7169 -- Note that we don't do this by testing for the presence of the
7170 -- Entity field in the N_Attribute_Reference node, since it may not
7171 -- have been set yet.
7173 or else (Kind
= N_Attribute_Reference
7174 and then Is_Entity_Attribute_Name
(Attribute_Name
(N
)));
7177 -----------------------
7178 -- Is_External_State --
7179 -----------------------
7181 function Is_External_State
(Id
: E
) return B
is
7184 Ekind
(Id
) = E_Abstract_State
and then Has_Option
(Id
, Name_External
);
7185 end Is_External_State
;
7191 function Is_Finalizer
(Id
: E
) return B
is
7193 return Ekind
(Id
) = E_Procedure
and then Chars
(Id
) = Name_uFinalizer
;
7200 function Is_Null_State
(Id
: E
) return B
is
7203 Ekind
(Id
) = E_Abstract_State
and then Nkind
(Parent
(Id
)) = N_Null
;
7206 ---------------------
7207 -- Is_Packed_Array --
7208 ---------------------
7210 function Is_Packed_Array
(Id
: E
) return B
is
7212 return Is_Array_Type
(Id
) and then Is_Packed
(Id
);
7213 end Is_Packed_Array
;
7215 -----------------------------------
7216 -- Is_Package_Or_Generic_Package --
7217 -----------------------------------
7219 function Is_Package_Or_Generic_Package
(Id
: E
) return B
is
7221 return Ekind_In
(Id
, E_Generic_Package
, E_Package
);
7222 end Is_Package_Or_Generic_Package
;
7228 function Is_Prival
(Id
: E
) return B
is
7230 return (Ekind_In
(Id
, E_Constant
, E_Variable
)
7231 and then Present
(Prival_Link
(Id
)));
7234 ----------------------------
7235 -- Is_Protected_Component --
7236 ----------------------------
7238 function Is_Protected_Component
(Id
: E
) return B
is
7240 return Ekind
(Id
) = E_Component
and then Is_Protected_Type
(Scope
(Id
));
7241 end Is_Protected_Component
;
7243 ----------------------------
7244 -- Is_Protected_Interface --
7245 ----------------------------
7247 function Is_Protected_Interface
(Id
: E
) return B
is
7248 Typ
: constant Entity_Id
:= Base_Type
(Id
);
7250 if not Is_Interface
(Typ
) then
7252 elsif Is_Class_Wide_Type
(Typ
) then
7253 return Is_Protected_Interface
(Etype
(Typ
));
7255 return Protected_Present
(Type_Definition
(Parent
(Typ
)));
7257 end Is_Protected_Interface
;
7259 ------------------------------
7260 -- Is_Protected_Record_Type --
7261 ------------------------------
7263 function Is_Protected_Record_Type
(Id
: E
) return B
is
7266 Is_Concurrent_Record_Type
(Id
)
7267 and then Is_Protected_Type
(Corresponding_Concurrent_Type
(Id
));
7268 end Is_Protected_Record_Type
;
7270 --------------------------------
7271 -- Is_Standard_Character_Type --
7272 --------------------------------
7274 function Is_Standard_Character_Type
(Id
: E
) return B
is
7276 if Is_Type
(Id
) then
7278 R
: constant Entity_Id
:= Root_Type
(Id
);
7281 R
= Standard_Character
7283 R
= Standard_Wide_Character
7285 R
= Standard_Wide_Wide_Character
;
7291 end Is_Standard_Character_Type
;
7293 -----------------------------
7294 -- Is_Standard_String_Type --
7295 -----------------------------
7297 function Is_Standard_String_Type
(Id
: E
) return B
is
7299 if Is_Type
(Id
) then
7301 R
: constant Entity_Id
:= Root_Type
(Id
);
7306 R
= Standard_Wide_String
7308 R
= Standard_Wide_Wide_String
;
7314 end Is_Standard_String_Type
;
7316 --------------------
7317 -- Is_String_Type --
7318 --------------------
7320 function Is_String_Type
(Id
: E
) return B
is
7322 return Is_Array_Type
(Id
)
7323 and then Id
/= Any_Composite
7324 and then Number_Dimensions
(Id
) = 1
7325 and then Is_Character_Type
(Component_Type
(Id
));
7328 -------------------------------
7329 -- Is_Synchronized_Interface --
7330 -------------------------------
7332 function Is_Synchronized_Interface
(Id
: E
) return B
is
7333 Typ
: constant Entity_Id
:= Base_Type
(Id
);
7336 if not Is_Interface
(Typ
) then
7339 elsif Is_Class_Wide_Type
(Typ
) then
7340 return Is_Synchronized_Interface
(Etype
(Typ
));
7343 return Protected_Present
(Type_Definition
(Parent
(Typ
)))
7344 or else Synchronized_Present
(Type_Definition
(Parent
(Typ
)))
7345 or else Task_Present
(Type_Definition
(Parent
(Typ
)));
7347 end Is_Synchronized_Interface
;
7349 -----------------------
7350 -- Is_Task_Interface --
7351 -----------------------
7353 function Is_Task_Interface
(Id
: E
) return B
is
7354 Typ
: constant Entity_Id
:= Base_Type
(Id
);
7356 if not Is_Interface
(Typ
) then
7358 elsif Is_Class_Wide_Type
(Typ
) then
7359 return Is_Task_Interface
(Etype
(Typ
));
7361 return Task_Present
(Type_Definition
(Parent
(Typ
)));
7363 end Is_Task_Interface
;
7365 -------------------------
7366 -- Is_Task_Record_Type --
7367 -------------------------
7369 function Is_Task_Record_Type
(Id
: E
) return B
is
7372 Is_Concurrent_Record_Type
(Id
)
7373 and then Is_Task_Type
(Corresponding_Concurrent_Type
(Id
));
7374 end Is_Task_Record_Type
;
7376 ------------------------
7377 -- Is_Wrapper_Package --
7378 ------------------------
7380 function Is_Wrapper_Package
(Id
: E
) return B
is
7382 return (Ekind
(Id
) = E_Package
and then Present
(Related_Instance
(Id
)));
7383 end Is_Wrapper_Package
;
7389 function Last_Formal
(Id
: E
) return E
is
7394 (Is_Overloadable
(Id
)
7395 or else Ekind_In
(Id
, E_Entry_Family
,
7397 E_Subprogram_Type
));
7399 if Ekind
(Id
) = E_Enumeration_Literal
then
7403 Formal
:= First_Formal
(Id
);
7405 if Present
(Formal
) then
7406 while Present
(Next_Formal
(Formal
)) loop
7407 Formal
:= Next_Formal
(Formal
);
7415 function Model_Emin_Value
(Id
: E
) return Uint
is
7417 return Machine_Emin_Value
(Id
);
7418 end Model_Emin_Value
;
7420 -------------------------
7421 -- Model_Epsilon_Value --
7422 -------------------------
7424 function Model_Epsilon_Value
(Id
: E
) return Ureal
is
7425 Radix
: constant Ureal
:= UR_From_Uint
(Machine_Radix_Value
(Id
));
7427 return Radix
** (1 - Model_Mantissa_Value
(Id
));
7428 end Model_Epsilon_Value
;
7430 --------------------------
7431 -- Model_Mantissa_Value --
7432 --------------------------
7434 function Model_Mantissa_Value
(Id
: E
) return Uint
is
7436 return Machine_Mantissa_Value
(Id
);
7437 end Model_Mantissa_Value
;
7439 -----------------------
7440 -- Model_Small_Value --
7441 -----------------------
7443 function Model_Small_Value
(Id
: E
) return Ureal
is
7444 Radix
: constant Ureal
:= UR_From_Uint
(Machine_Radix_Value
(Id
));
7446 return Radix
** (Model_Emin_Value
(Id
) - 1);
7447 end Model_Small_Value
;
7449 ------------------------
7450 -- Machine_Emax_Value --
7451 ------------------------
7453 function Machine_Emax_Value
(Id
: E
) return Uint
is
7454 Digs
: constant Pos
:= UI_To_Int
(Digits_Value
(Base_Type
(Id
)));
7457 case Float_Rep
(Id
) is
7460 when 1 .. 6 => return Uint_128
;
7461 when 7 .. 15 => return 2**10;
7462 when 16 .. 33 => return 2**14;
7463 when others => return No_Uint
;
7467 return Uint_2
** Uint_7
- Uint_1
;
7469 end Machine_Emax_Value
;
7471 ------------------------
7472 -- Machine_Emin_Value --
7473 ------------------------
7475 function Machine_Emin_Value
(Id
: E
) return Uint
is
7477 case Float_Rep
(Id
) is
7478 when IEEE_Binary
=> return Uint_3
- Machine_Emax_Value
(Id
);
7479 when AAMP
=> return -Machine_Emax_Value
(Id
);
7481 end Machine_Emin_Value
;
7483 ----------------------------
7484 -- Machine_Mantissa_Value --
7485 ----------------------------
7487 function Machine_Mantissa_Value
(Id
: E
) return Uint
is
7488 Digs
: constant Pos
:= UI_To_Int
(Digits_Value
(Base_Type
(Id
)));
7491 case Float_Rep
(Id
) is
7494 when 1 .. 6 => return Uint_24
;
7495 when 7 .. 15 => return UI_From_Int
(53);
7496 when 16 .. 18 => return Uint_64
;
7497 when 19 .. 33 => return UI_From_Int
(113);
7498 when others => return No_Uint
;
7503 when 1 .. 6 => return Uint_24
;
7504 when 7 .. 9 => return UI_From_Int
(40);
7505 when others => return No_Uint
;
7508 end Machine_Mantissa_Value
;
7510 -------------------------
7511 -- Machine_Radix_Value --
7512 -------------------------
7514 function Machine_Radix_Value
(Id
: E
) return U
is
7516 case Float_Rep
(Id
) is
7517 when IEEE_Binary | AAMP
=>
7520 end Machine_Radix_Value
;
7522 --------------------
7523 -- Next_Component --
7524 --------------------
7526 function Next_Component
(Id
: E
) return E
is
7530 Comp_Id
:= Next_Entity
(Id
);
7531 while Present
(Comp_Id
) loop
7532 exit when Ekind
(Comp_Id
) = E_Component
;
7533 Comp_Id
:= Next_Entity
(Comp_Id
);
7539 ------------------------------------
7540 -- Next_Component_Or_Discriminant --
7541 ------------------------------------
7543 function Next_Component_Or_Discriminant
(Id
: E
) return E
is
7547 Comp_Id
:= Next_Entity
(Id
);
7548 while Present
(Comp_Id
) loop
7549 exit when Ekind_In
(Comp_Id
, E_Component
, E_Discriminant
);
7550 Comp_Id
:= Next_Entity
(Comp_Id
);
7554 end Next_Component_Or_Discriminant
;
7556 -----------------------
7557 -- Next_Discriminant --
7558 -----------------------
7560 -- This function actually implements both Next_Discriminant and
7561 -- Next_Stored_Discriminant by making sure that the Discriminant
7562 -- returned is of the same variety as Id.
7564 function Next_Discriminant
(Id
: E
) return E
is
7566 -- Derived Tagged types with private extensions look like this...
7568 -- E_Discriminant d1
7569 -- E_Discriminant d2
7571 -- E_Discriminant d1
7572 -- E_Discriminant d2
7575 -- so it is critical not to go past the leading discriminants
7580 pragma Assert
(Ekind
(Id
) = E_Discriminant
);
7583 D
:= Next_Entity
(D
);
7585 or else (Ekind
(D
) /= E_Discriminant
7586 and then not Is_Itype
(D
))
7591 exit when Ekind
(D
) = E_Discriminant
7592 and then (Is_Completely_Hidden
(D
) = Is_Completely_Hidden
(Id
));
7596 end Next_Discriminant
;
7602 function Next_Formal
(Id
: E
) return E
is
7606 -- Follow the chain of declared entities as long as the kind of the
7607 -- entity corresponds to a formal parameter. Skip internal entities
7608 -- that may have been created for implicit subtypes, in the process
7609 -- of analyzing default expressions.
7613 P
:= Next_Entity
(P
);
7615 if No
(P
) or else Is_Formal
(P
) then
7617 elsif not Is_Internal
(P
) then
7623 -----------------------------
7624 -- Next_Formal_With_Extras --
7625 -----------------------------
7627 function Next_Formal_With_Extras
(Id
: E
) return E
is
7629 if Present
(Extra_Formal
(Id
)) then
7630 return Extra_Formal
(Id
);
7632 return Next_Formal
(Id
);
7634 end Next_Formal_With_Extras
;
7640 function Next_Index
(Id
: Node_Id
) return Node_Id
is
7649 function Next_Literal
(Id
: E
) return E
is
7651 pragma Assert
(Nkind
(Id
) in N_Entity
);
7655 ------------------------------
7656 -- Next_Stored_Discriminant --
7657 ------------------------------
7659 function Next_Stored_Discriminant
(Id
: E
) return E
is
7661 -- See comment in Next_Discriminant
7663 return Next_Discriminant
(Id
);
7664 end Next_Stored_Discriminant
;
7666 -----------------------
7667 -- Number_Dimensions --
7668 -----------------------
7670 function Number_Dimensions
(Id
: E
) return Pos
is
7675 if Ekind
(Id
) = E_String_Literal_Subtype
then
7680 T
:= First_Index
(Id
);
7681 while Present
(T
) loop
7688 end Number_Dimensions
;
7690 --------------------
7691 -- Number_Entries --
7692 --------------------
7694 function Number_Entries
(Id
: E
) return Nat
is
7699 pragma Assert
(Is_Concurrent_Type
(Id
));
7702 Ent
:= First_Entity
(Id
);
7703 while Present
(Ent
) loop
7704 if Is_Entry
(Ent
) then
7708 Ent
:= Next_Entity
(Ent
);
7714 --------------------
7715 -- Number_Formals --
7716 --------------------
7718 function Number_Formals
(Id
: E
) return Pos
is
7724 Formal
:= First_Formal
(Id
);
7725 while Present
(Formal
) loop
7727 Formal
:= Next_Formal
(Formal
);
7733 --------------------
7734 -- Parameter_Mode --
7735 --------------------
7737 function Parameter_Mode
(Id
: E
) return Formal_Kind
is
7742 ------------------------
7743 -- Predicate_Function --
7744 ------------------------
7746 function Predicate_Function
(Id
: E
) return E
is
7751 pragma Assert
(Is_Type
(Id
));
7753 -- If type is private and has a completion, predicate may be defined
7754 -- on the full view.
7756 if Is_Private_Type
(Id
) and then Present
(Full_View
(Id
)) then
7757 T
:= Full_View
(Id
);
7762 if No
(Subprograms_For_Type
(T
)) then
7766 S
:= Subprograms_For_Type
(T
);
7767 while Present
(S
) loop
7768 if Is_Predicate_Function
(S
) then
7771 S
:= Subprograms_For_Type
(S
);
7777 end Predicate_Function
;
7779 --------------------------
7780 -- Predicate_Function_M --
7781 --------------------------
7783 function Predicate_Function_M
(Id
: E
) return E
is
7788 pragma Assert
(Is_Type
(Id
));
7790 -- If type is private and has a completion, predicate may be defined
7791 -- on the full view.
7793 if Is_Private_Type
(Id
) and then Present
(Full_View
(Id
)) then
7794 T
:= Full_View
(Id
);
7799 if No
(Subprograms_For_Type
(T
)) then
7803 S
:= Subprograms_For_Type
(T
);
7804 while Present
(S
) loop
7805 if Is_Predicate_Function_M
(S
) then
7808 S
:= Subprograms_For_Type
(S
);
7814 end Predicate_Function_M
;
7816 -------------------------
7817 -- Present_In_Rep_Item --
7818 -------------------------
7820 function Present_In_Rep_Item
(E
: Entity_Id
; N
: Node_Id
) return Boolean is
7824 Ritem
:= First_Rep_Item
(E
);
7826 while Present
(Ritem
) loop
7831 Next_Rep_Item
(Ritem
);
7835 end Present_In_Rep_Item
;
7837 --------------------------
7838 -- Primitive_Operations --
7839 --------------------------
7841 function Primitive_Operations
(Id
: E
) return L
is
7843 if Is_Concurrent_Type
(Id
) then
7844 if Present
(Corresponding_Record_Type
(Id
)) then
7845 return Direct_Primitive_Operations
7846 (Corresponding_Record_Type
(Id
));
7848 -- If expansion is disabled the corresponding record type is absent,
7849 -- but if the type has ancestors it may have primitive operations.
7851 elsif Is_Tagged_Type
(Id
) then
7852 return Direct_Primitive_Operations
(Id
);
7858 return Direct_Primitive_Operations
(Id
);
7860 end Primitive_Operations
;
7862 ---------------------
7863 -- Record_Rep_Item --
7864 ---------------------
7866 procedure Record_Rep_Item
(E
: Entity_Id
; N
: Node_Id
) is
7868 Set_Next_Rep_Item
(N
, First_Rep_Item
(E
));
7869 Set_First_Rep_Item
(E
, N
);
7870 end Record_Rep_Item
;
7876 function Root_Type
(Id
: E
) return E
is
7880 pragma Assert
(Nkind
(Id
) in N_Entity
);
7882 T
:= Base_Type
(Id
);
7884 if Ekind
(T
) = E_Class_Wide_Type
then
7896 -- Following test catches some error cases resulting from
7899 elsif No
(Etyp
) then
7900 Check_Error_Detected
;
7903 elsif Is_Private_Type
(T
) and then Etyp
= Full_View
(T
) then
7906 elsif Is_Private_Type
(Etyp
) and then Full_View
(Etyp
) = T
then
7912 -- Return if there is a circularity in the inheritance chain. This
7913 -- happens in some error situations and we do not want to get
7914 -- stuck in this loop.
7916 if T
= Base_Type
(Id
) then
7923 ---------------------
7924 -- Safe_Emax_Value --
7925 ---------------------
7927 function Safe_Emax_Value
(Id
: E
) return Uint
is
7929 return Machine_Emax_Value
(Id
);
7930 end Safe_Emax_Value
;
7932 ----------------------
7933 -- Safe_First_Value --
7934 ----------------------
7936 function Safe_First_Value
(Id
: E
) return Ureal
is
7938 return -Safe_Last_Value
(Id
);
7939 end Safe_First_Value
;
7941 ---------------------
7942 -- Safe_Last_Value --
7943 ---------------------
7945 function Safe_Last_Value
(Id
: E
) return Ureal
is
7946 Radix
: constant Uint
:= Machine_Radix_Value
(Id
);
7947 Mantissa
: constant Uint
:= Machine_Mantissa_Value
(Id
);
7948 Emax
: constant Uint
:= Safe_Emax_Value
(Id
);
7949 Significand
: constant Uint
:= Radix
** Mantissa
- 1;
7950 Exponent
: constant Uint
:= Emax
- Mantissa
;
7956 (Num
=> Significand
* 2 ** (Exponent
mod 4),
7957 Den
=> -Exponent
/ 4,
7962 (Num
=> Significand
,
7966 end Safe_Last_Value
;
7972 function Scope_Depth
(Id
: E
) return Uint
is
7977 while Is_Record_Type
(Scop
) loop
7978 Scop
:= Scope
(Scop
);
7981 return Scope_Depth_Value
(Scop
);
7984 ---------------------
7985 -- Scope_Depth_Set --
7986 ---------------------
7988 function Scope_Depth_Set
(Id
: E
) return B
is
7990 return not Is_Record_Type
(Id
)
7991 and then Field22
(Id
) /= Union_Id
(Empty
);
7992 end Scope_Depth_Set
;
7994 -----------------------------
7995 -- Set_Component_Alignment --
7996 -----------------------------
7998 -- Component Alignment is encoded using two flags, Flag128/129 as
7999 -- follows. Note that both flags False = Align_Default, so that the
8000 -- default initialization of flags to False initializes component
8001 -- alignment to the default value as required.
8003 -- Flag128 Flag129 Value
8004 -- ------- ------- -----
8005 -- False False Calign_Default
8006 -- False True Calign_Component_Size
8007 -- True False Calign_Component_Size_4
8008 -- True True Calign_Storage_Unit
8010 procedure Set_Component_Alignment
(Id
: E
; V
: C
) is
8012 pragma Assert
((Is_Array_Type
(Id
) or else Is_Record_Type
(Id
))
8013 and then Is_Base_Type
(Id
));
8016 when Calign_Default
=>
8017 Set_Flag128
(Id
, False);
8018 Set_Flag129
(Id
, False);
8020 when Calign_Component_Size
=>
8021 Set_Flag128
(Id
, False);
8022 Set_Flag129
(Id
, True);
8024 when Calign_Component_Size_4
=>
8025 Set_Flag128
(Id
, True);
8026 Set_Flag129
(Id
, False);
8028 when Calign_Storage_Unit
=>
8029 Set_Flag128
(Id
, True);
8030 Set_Flag129
(Id
, True);
8032 end Set_Component_Alignment
;
8034 -------------------------------------
8035 -- Set_Default_Init_Cond_Procedure --
8036 -------------------------------------
8038 procedure Set_Default_Init_Cond_Procedure
(Id
: E
; V
: E
) is
8043 (Is_Type
(Id
) and then (Has_Default_Init_Cond
(Id
)
8045 Has_Inherited_Default_Init_Cond
(Id
)));
8047 S
:= Subprograms_For_Type
(Id
);
8048 Set_Subprograms_For_Type
(Id
, V
);
8049 Set_Subprograms_For_Type
(V
, S
);
8051 -- Check for a duplicate procedure
8053 while Present
(S
) loop
8054 if Is_Default_Init_Cond_Procedure
(S
) then
8055 raise Program_Error
;
8058 S
:= Subprograms_For_Type
(S
);
8060 end Set_Default_Init_Cond_Procedure
;
8062 -----------------------------
8063 -- Set_Invariant_Procedure --
8064 -----------------------------
8066 procedure Set_Invariant_Procedure
(Id
: E
; V
: E
) is
8070 pragma Assert
(Is_Type
(Id
) and then Has_Invariants
(Id
));
8072 S
:= Subprograms_For_Type
(Id
);
8073 Set_Subprograms_For_Type
(Id
, V
);
8074 Set_Subprograms_For_Type
(V
, S
);
8076 -- Check for duplicate entry
8078 while Present
(S
) loop
8079 if Is_Invariant_Procedure
(S
) then
8080 raise Program_Error
;
8082 S
:= Subprograms_For_Type
(S
);
8085 end Set_Invariant_Procedure
;
8087 ----------------------------
8088 -- Set_Predicate_Function --
8089 ----------------------------
8091 procedure Set_Predicate_Function
(Id
: E
; V
: E
) is
8095 pragma Assert
(Is_Type
(Id
) and then Has_Predicates
(Id
));
8097 S
:= Subprograms_For_Type
(Id
);
8098 Set_Subprograms_For_Type
(Id
, V
);
8099 Set_Subprograms_For_Type
(V
, S
);
8101 while Present
(S
) loop
8102 if Is_Predicate_Function
(S
) then
8103 raise Program_Error
;
8105 S
:= Subprograms_For_Type
(S
);
8108 end Set_Predicate_Function
;
8110 ------------------------------
8111 -- Set_Predicate_Function_M --
8112 ------------------------------
8114 procedure Set_Predicate_Function_M
(Id
: E
; V
: E
) is
8118 pragma Assert
(Is_Type
(Id
) and then Has_Predicates
(Id
));
8120 S
:= Subprograms_For_Type
(Id
);
8121 Set_Subprograms_For_Type
(Id
, V
);
8122 Set_Subprograms_For_Type
(V
, S
);
8124 -- Check for duplicates
8126 while Present
(S
) loop
8127 if Is_Predicate_Function_M
(S
) then
8128 raise Program_Error
;
8130 S
:= Subprograms_For_Type
(S
);
8133 end Set_Predicate_Function_M
;
8139 function Size_Clause
(Id
: E
) return N
is
8141 return Get_Attribute_Definition_Clause
(Id
, Attribute_Size
);
8144 ------------------------
8145 -- Stream_Size_Clause --
8146 ------------------------
8148 function Stream_Size_Clause
(Id
: E
) return N
is
8150 return Get_Attribute_Definition_Clause
(Id
, Attribute_Stream_Size
);
8151 end Stream_Size_Clause
;
8157 function Subtype_Kind
(K
: Entity_Kind
) return Entity_Kind
is
8163 Kind
:= E_Access_Subtype
;
8167 Kind
:= E_Array_Subtype
;
8169 when E_Class_Wide_Type |
8170 E_Class_Wide_Subtype
=>
8171 Kind
:= E_Class_Wide_Subtype
;
8173 when E_Decimal_Fixed_Point_Type |
8174 E_Decimal_Fixed_Point_Subtype
=>
8175 Kind
:= E_Decimal_Fixed_Point_Subtype
;
8177 when E_Ordinary_Fixed_Point_Type |
8178 E_Ordinary_Fixed_Point_Subtype
=>
8179 Kind
:= E_Ordinary_Fixed_Point_Subtype
;
8181 when E_Private_Type |
8182 E_Private_Subtype
=>
8183 Kind
:= E_Private_Subtype
;
8185 when E_Limited_Private_Type |
8186 E_Limited_Private_Subtype
=>
8187 Kind
:= E_Limited_Private_Subtype
;
8189 when E_Record_Type_With_Private |
8190 E_Record_Subtype_With_Private
=>
8191 Kind
:= E_Record_Subtype_With_Private
;
8193 when E_Record_Type |
8195 Kind
:= E_Record_Subtype
;
8197 when Enumeration_Kind
=>
8198 Kind
:= E_Enumeration_Subtype
;
8201 Kind
:= E_Floating_Point_Subtype
;
8203 when Signed_Integer_Kind
=>
8204 Kind
:= E_Signed_Integer_Subtype
;
8206 when Modular_Integer_Kind
=>
8207 Kind
:= E_Modular_Integer_Subtype
;
8209 when Protected_Kind
=>
8210 Kind
:= E_Protected_Subtype
;
8213 Kind
:= E_Task_Subtype
;
8217 raise Program_Error
;
8223 ---------------------
8224 -- Type_High_Bound --
8225 ---------------------
8227 function Type_High_Bound
(Id
: E
) return Node_Id
is
8228 Rng
: constant Node_Id
:= Scalar_Range
(Id
);
8230 if Nkind
(Rng
) = N_Subtype_Indication
then
8231 return High_Bound
(Range_Expression
(Constraint
(Rng
)));
8233 return High_Bound
(Rng
);
8235 end Type_High_Bound
;
8237 --------------------
8238 -- Type_Low_Bound --
8239 --------------------
8241 function Type_Low_Bound
(Id
: E
) return Node_Id
is
8242 Rng
: constant Node_Id
:= Scalar_Range
(Id
);
8244 if Nkind
(Rng
) = N_Subtype_Indication
then
8245 return Low_Bound
(Range_Expression
(Constraint
(Rng
)));
8247 return Low_Bound
(Rng
);
8251 ---------------------
8252 -- Underlying_Type --
8253 ---------------------
8255 function Underlying_Type
(Id
: E
) return E
is
8257 -- For record_with_private the underlying type is always the direct
8258 -- full view. Never try to take the full view of the parent it
8259 -- doesn't make sense.
8261 if Ekind
(Id
) = E_Record_Type_With_Private
then
8262 return Full_View
(Id
);
8264 elsif Ekind
(Id
) in Incomplete_Or_Private_Kind
then
8266 -- If we have an incomplete or private type with a full view,
8267 -- then we return the Underlying_Type of this full view.
8269 if Present
(Full_View
(Id
)) then
8270 if Id
= Full_View
(Id
) then
8272 -- Previous error in declaration
8277 return Underlying_Type
(Full_View
(Id
));
8280 -- If we have a private type with an underlying full view, then we
8281 -- return the Underlying_Type of this underlying full view.
8283 elsif Ekind
(Id
) in Private_Kind
8284 and then Present
(Underlying_Full_View
(Id
))
8286 return Underlying_Type
(Underlying_Full_View
(Id
));
8288 -- If we have an incomplete entity that comes from the limited
8289 -- view then we return the Underlying_Type of its non-limited
8292 elsif From_Limited_With
(Id
)
8293 and then Present
(Non_Limited_View
(Id
))
8295 return Underlying_Type
(Non_Limited_View
(Id
));
8297 -- Otherwise check for the case where we have a derived type or
8298 -- subtype, and if so get the Underlying_Type of the parent type.
8300 elsif Etype
(Id
) /= Id
then
8301 return Underlying_Type
(Etype
(Id
));
8303 -- Otherwise we have an incomplete or private type that has
8304 -- no full view, which means that we have not encountered the
8305 -- completion, so return Empty to indicate the underlying type
8306 -- is not yet known.
8312 -- For non-incomplete, non-private types, return the type itself Also
8313 -- for entities that are not types at all return the entity itself.
8318 end Underlying_Type
;
8320 ------------------------
8321 -- Write_Entity_Flags --
8322 ------------------------
8324 procedure Write_Entity_Flags
(Id
: Entity_Id
; Prefix
: String) is
8326 procedure W
(Flag_Name
: String; Flag
: Boolean);
8327 -- Write out given flag if it is set
8333 procedure W
(Flag_Name
: String; Flag
: Boolean) is
8337 Write_Str
(Flag_Name
);
8338 Write_Str
(" = True");
8343 -- Start of processing for Write_Entity_Flags
8346 if (Is_Array_Type
(Id
) or else Is_Record_Type
(Id
))
8347 and then Is_Base_Type
(Id
)
8350 Write_Str
("Component_Alignment = ");
8352 case Component_Alignment
(Id
) is
8353 when Calign_Default
=>
8354 Write_Str
("Calign_Default");
8356 when Calign_Component_Size
=>
8357 Write_Str
("Calign_Component_Size");
8359 when Calign_Component_Size_4
=>
8360 Write_Str
("Calign_Component_Size_4");
8362 when Calign_Storage_Unit
=>
8363 Write_Str
("Calign_Storage_Unit");
8369 W
("Address_Taken", Flag104
(Id
));
8370 W
("Body_Needed_For_SAL", Flag40
(Id
));
8371 W
("C_Pass_By_Copy", Flag125
(Id
));
8372 W
("Can_Never_Be_Null", Flag38
(Id
));
8373 W
("Checks_May_Be_Suppressed", Flag31
(Id
));
8374 W
("Debug_Info_Off", Flag166
(Id
));
8375 W
("Default_Expressions_Processed", Flag108
(Id
));
8376 W
("Delay_Cleanups", Flag114
(Id
));
8377 W
("Delay_Subprogram_Descriptors", Flag50
(Id
));
8378 W
("Depends_On_Private", Flag14
(Id
));
8379 W
("Discard_Names", Flag88
(Id
));
8380 W
("Elaboration_Entity_Required", Flag174
(Id
));
8381 W
("Elaborate_Body_Desirable", Flag210
(Id
));
8382 W
("Entry_Accepted", Flag152
(Id
));
8383 W
("Can_Use_Internal_Rep", Flag229
(Id
));
8384 W
("Finalize_Storage_Only", Flag158
(Id
));
8385 W
("From_Limited_With", Flag159
(Id
));
8386 W
("Has_Aliased_Components", Flag135
(Id
));
8387 W
("Has_Alignment_Clause", Flag46
(Id
));
8388 W
("Has_All_Calls_Remote", Flag79
(Id
));
8389 W
("Has_Anonymous_Master", Flag253
(Id
));
8390 W
("Has_Atomic_Components", Flag86
(Id
));
8391 W
("Has_Biased_Representation", Flag139
(Id
));
8392 W
("Has_Completion", Flag26
(Id
));
8393 W
("Has_Completion_In_Body", Flag71
(Id
));
8394 W
("Has_Complex_Representation", Flag140
(Id
));
8395 W
("Has_Component_Size_Clause", Flag68
(Id
));
8396 W
("Has_Contiguous_Rep", Flag181
(Id
));
8397 W
("Has_Controlled_Component", Flag43
(Id
));
8398 W
("Has_Controlling_Result", Flag98
(Id
));
8399 W
("Has_Convention_Pragma", Flag119
(Id
));
8400 W
("Has_Default_Aspect", Flag39
(Id
));
8401 W
("Has_Default_Init_Cond", Flag3
(Id
));
8402 W
("Has_Delayed_Aspects", Flag200
(Id
));
8403 W
("Has_Delayed_Freeze", Flag18
(Id
));
8404 W
("Has_Delayed_Rep_Aspects", Flag261
(Id
));
8405 W
("Has_Discriminants", Flag5
(Id
));
8406 W
("Has_Dispatch_Table", Flag220
(Id
));
8407 W
("Has_Dynamic_Predicate_Aspect", Flag258
(Id
));
8408 W
("Has_Enumeration_Rep_Clause", Flag66
(Id
));
8409 W
("Has_Exit", Flag47
(Id
));
8410 W
("Has_Forward_Instantiation", Flag175
(Id
));
8411 W
("Has_Fully_Qualified_Name", Flag173
(Id
));
8412 W
("Has_Gigi_Rep_Item", Flag82
(Id
));
8413 W
("Has_Homonym", Flag56
(Id
));
8414 W
("Has_Implicit_Dereference", Flag251
(Id
));
8415 W
("Has_Independent_Components", Flag34
(Id
));
8416 W
("Has_Inheritable_Invariants", Flag248
(Id
));
8417 W
("Has_Inherited_Default_Init_Cond", Flag133
(Id
));
8418 W
("Has_Initial_Value", Flag219
(Id
));
8419 W
("Has_Invariants", Flag232
(Id
));
8420 W
("Has_Loop_Entry_Attributes", Flag260
(Id
));
8421 W
("Has_Machine_Radix_Clause", Flag83
(Id
));
8422 W
("Has_Master_Entity", Flag21
(Id
));
8423 W
("Has_Missing_Return", Flag142
(Id
));
8424 W
("Has_Nested_Block_With_Handler", Flag101
(Id
));
8425 W
("Has_Non_Standard_Rep", Flag75
(Id
));
8426 W
("Has_Out_Or_In_Out_Parameter", Flag110
(Id
));
8427 W
("Has_Object_Size_Clause", Flag172
(Id
));
8428 W
("Has_Per_Object_Constraint", Flag154
(Id
));
8429 W
("Has_Postconditions", Flag240
(Id
));
8430 W
("Has_Pragma_Controlled", Flag27
(Id
));
8431 W
("Has_Pragma_Elaborate_Body", Flag150
(Id
));
8432 W
("Has_Pragma_Inline", Flag157
(Id
));
8433 W
("Has_Pragma_Inline_Always", Flag230
(Id
));
8434 W
("Has_Pragma_No_Inline", Flag201
(Id
));
8435 W
("Has_Pragma_Ordered", Flag198
(Id
));
8436 W
("Has_Pragma_Pack", Flag121
(Id
));
8437 W
("Has_Pragma_Preelab_Init", Flag221
(Id
));
8438 W
("Has_Pragma_Pure", Flag203
(Id
));
8439 W
("Has_Pragma_Pure_Function", Flag179
(Id
));
8440 W
("Has_Pragma_Thread_Local_Storage", Flag169
(Id
));
8441 W
("Has_Pragma_Unmodified", Flag233
(Id
));
8442 W
("Has_Pragma_Unreferenced", Flag180
(Id
));
8443 W
("Has_Pragma_Unreferenced_Objects", Flag212
(Id
));
8444 W
("Has_Predicates", Flag250
(Id
));
8445 W
("Has_Primitive_Operations", Flag120
(Id
));
8446 W
("Has_Private_Ancestor", Flag151
(Id
));
8447 W
("Has_Private_Declaration", Flag155
(Id
));
8448 W
("Has_Protected", Flag271
(Id
));
8449 W
("Has_Qualified_Name", Flag161
(Id
));
8450 W
("Has_RACW", Flag214
(Id
));
8451 W
("Has_Record_Rep_Clause", Flag65
(Id
));
8452 W
("Has_Recursive_Call", Flag143
(Id
));
8453 W
("Has_Shift_Operator", Flag267
(Id
));
8454 W
("Has_Size_Clause", Flag29
(Id
));
8455 W
("Has_Small_Clause", Flag67
(Id
));
8456 W
("Has_Specified_Layout", Flag100
(Id
));
8457 W
("Has_Specified_Stream_Input", Flag190
(Id
));
8458 W
("Has_Specified_Stream_Output", Flag191
(Id
));
8459 W
("Has_Specified_Stream_Read", Flag192
(Id
));
8460 W
("Has_Specified_Stream_Write", Flag193
(Id
));
8461 W
("Has_Static_Discriminants", Flag211
(Id
));
8462 W
("Has_Static_Predicate", Flag269
(Id
));
8463 W
("Has_Static_Predicate_Aspect", Flag259
(Id
));
8464 W
("Has_Storage_Size_Clause", Flag23
(Id
));
8465 W
("Has_Stream_Size_Clause", Flag184
(Id
));
8466 W
("Has_Task", Flag30
(Id
));
8467 W
("Has_Thunks", Flag228
(Id
));
8468 W
("Has_Unchecked_Union", Flag123
(Id
));
8469 W
("Has_Unknown_Discriminants", Flag72
(Id
));
8470 W
("Has_Up_Level_Access", Flag215
(Id
));
8471 W
("Has_Visible_Refinement", Flag263
(Id
));
8472 W
("Has_Volatile_Components", Flag87
(Id
));
8473 W
("Has_Xref_Entry", Flag182
(Id
));
8474 W
("In_Package_Body", Flag48
(Id
));
8475 W
("In_Private_Part", Flag45
(Id
));
8476 W
("In_Use", Flag8
(Id
));
8477 W
("Is_Abstract_Subprogram", Flag19
(Id
));
8478 W
("Is_Abstract_Type", Flag146
(Id
));
8479 W
("Is_Access_Constant", Flag69
(Id
));
8480 W
("Is_Ada_2005_Only", Flag185
(Id
));
8481 W
("Is_Ada_2012_Only", Flag199
(Id
));
8482 W
("Is_Aliased", Flag15
(Id
));
8483 W
("Is_Asynchronous", Flag81
(Id
));
8484 W
("Is_Atomic", Flag85
(Id
));
8485 W
("Is_Bit_Packed_Array", Flag122
(Id
));
8486 W
("Is_CPP_Class", Flag74
(Id
));
8487 W
("Is_Called", Flag102
(Id
));
8488 W
("Is_Character_Type", Flag63
(Id
));
8489 W
("Is_Checked_Ghost_Entity", Flag277
(Id
));
8490 W
("Is_Child_Unit", Flag73
(Id
));
8491 W
("Is_Class_Wide_Equivalent_Type", Flag35
(Id
));
8492 W
("Is_Compilation_Unit", Flag149
(Id
));
8493 W
("Is_Completely_Hidden", Flag103
(Id
));
8494 W
("Is_Concurrent_Record_Type", Flag20
(Id
));
8495 W
("Is_Constr_Subt_For_UN_Aliased", Flag141
(Id
));
8496 W
("Is_Constr_Subt_For_U_Nominal", Flag80
(Id
));
8497 W
("Is_Constrained", Flag12
(Id
));
8498 W
("Is_Constructor", Flag76
(Id
));
8499 W
("Is_Controlled", Flag42
(Id
));
8500 W
("Is_Controlling_Formal", Flag97
(Id
));
8501 W
("Is_Default_Init_Cond_Procedure", Flag132
(Id
));
8502 W
("Is_Descendent_Of_Address", Flag223
(Id
));
8503 W
("Is_Discrim_SO_Function", Flag176
(Id
));
8504 W
("Is_Discriminant_Check_Function", Flag264
(Id
));
8505 W
("Is_Dispatch_Table_Entity", Flag234
(Id
));
8506 W
("Is_Dispatching_Operation", Flag6
(Id
));
8507 W
("Is_Eliminated", Flag124
(Id
));
8508 W
("Is_Entry_Formal", Flag52
(Id
));
8509 W
("Is_Exported", Flag99
(Id
));
8510 W
("Is_First_Subtype", Flag70
(Id
));
8511 W
("Is_For_Access_Subtype", Flag118
(Id
));
8512 W
("Is_Formal_Subprogram", Flag111
(Id
));
8513 W
("Is_Frozen", Flag4
(Id
));
8514 W
("Is_Generic_Actual_Subprogram", Flag274
(Id
));
8515 W
("Is_Generic_Actual_Type", Flag94
(Id
));
8516 W
("Is_Generic_Instance", Flag130
(Id
));
8517 W
("Is_Generic_Type", Flag13
(Id
));
8518 W
("Is_Hidden", Flag57
(Id
));
8519 W
("Is_Hidden_Non_Overridden_Subpgm", Flag2
(Id
));
8520 W
("Is_Hidden_Open_Scope", Flag171
(Id
));
8521 W
("Is_Ignored_Ghost_Entity", Flag278
(Id
));
8522 W
("Is_Immediately_Visible", Flag7
(Id
));
8523 W
("Is_Implementation_Defined", Flag254
(Id
));
8524 W
("Is_Imported", Flag24
(Id
));
8525 W
("Is_Independent", Flag268
(Id
));
8526 W
("Is_Inlined", Flag11
(Id
));
8527 W
("Is_Inlined_Always", Flag1
(Id
));
8528 W
("Is_Instantiated", Flag126
(Id
));
8529 W
("Is_Interface", Flag186
(Id
));
8530 W
("Is_Internal", Flag17
(Id
));
8531 W
("Is_Interrupt_Handler", Flag89
(Id
));
8532 W
("Is_Intrinsic_Subprogram", Flag64
(Id
));
8533 W
("Is_Invariant_Procedure", Flag257
(Id
));
8534 W
("Is_Itype", Flag91
(Id
));
8535 W
("Is_Known_Non_Null", Flag37
(Id
));
8536 W
("Is_Known_Null", Flag204
(Id
));
8537 W
("Is_Known_Valid", Flag170
(Id
));
8538 W
("Is_Limited_Composite", Flag106
(Id
));
8539 W
("Is_Limited_Interface", Flag197
(Id
));
8540 W
("Is_Limited_Record", Flag25
(Id
));
8541 W
("Is_Local_Anonymous_Access", Flag194
(Id
));
8542 W
("Is_Machine_Code_Subprogram", Flag137
(Id
));
8543 W
("Is_Non_Static_Subtype", Flag109
(Id
));
8544 W
("Is_Null_Init_Proc", Flag178
(Id
));
8545 W
("Is_Obsolescent", Flag153
(Id
));
8546 W
("Is_Only_Out_Parameter", Flag226
(Id
));
8547 W
("Is_Package_Body_Entity", Flag160
(Id
));
8548 W
("Is_Packed", Flag51
(Id
));
8549 W
("Is_Packed_Array_Impl_Type", Flag138
(Id
));
8550 W
("Is_Potentially_Use_Visible", Flag9
(Id
));
8551 W
("Is_Predicate_Function", Flag255
(Id
));
8552 W
("Is_Predicate_Function_M", Flag256
(Id
));
8553 W
("Is_Preelaborated", Flag59
(Id
));
8554 W
("Is_Primitive", Flag218
(Id
));
8555 W
("Is_Primitive_Wrapper", Flag195
(Id
));
8556 W
("Is_Private_Composite", Flag107
(Id
));
8557 W
("Is_Private_Descendant", Flag53
(Id
));
8558 W
("Is_Private_Primitive", Flag245
(Id
));
8559 W
("Is_Processed_Transient", Flag252
(Id
));
8560 W
("Is_Public", Flag10
(Id
));
8561 W
("Is_Pure", Flag44
(Id
));
8562 W
("Is_Pure_Unit_Access_Type", Flag189
(Id
));
8563 W
("Is_RACW_Stub_Type", Flag244
(Id
));
8564 W
("Is_Raised", Flag224
(Id
));
8565 W
("Is_Remote_Call_Interface", Flag62
(Id
));
8566 W
("Is_Remote_Types", Flag61
(Id
));
8567 W
("Is_Renaming_Of_Object", Flag112
(Id
));
8568 W
("Is_Return_Object", Flag209
(Id
));
8569 W
("Is_Safe_To_Reevaluate", Flag249
(Id
));
8570 W
("Is_Shared_Passive", Flag60
(Id
));
8571 W
("Is_Statically_Allocated", Flag28
(Id
));
8572 W
("Is_Tag", Flag78
(Id
));
8573 W
("Is_Tagged_Type", Flag55
(Id
));
8574 W
("Is_Thunk", Flag225
(Id
));
8575 W
("Is_Trivial_Subprogram", Flag235
(Id
));
8576 W
("Is_True_Constant", Flag163
(Id
));
8577 W
("Is_Unchecked_Union", Flag117
(Id
));
8578 W
("Is_Underlying_Record_View", Flag246
(Id
));
8579 W
("Is_Unsigned_Type", Flag144
(Id
));
8580 W
("Is_Valued_Procedure", Flag127
(Id
));
8581 W
("Is_Visible_Formal", Flag206
(Id
));
8582 W
("Is_Visible_Lib_Unit", Flag116
(Id
));
8583 W
("Is_Volatile", Flag16
(Id
));
8584 W
("Itype_Printed", Flag202
(Id
));
8585 W
("Kill_Elaboration_Checks", Flag32
(Id
));
8586 W
("Kill_Range_Checks", Flag33
(Id
));
8587 W
("Known_To_Have_Preelab_Init", Flag207
(Id
));
8588 W
("Low_Bound_Tested", Flag205
(Id
));
8589 W
("Machine_Radix_10", Flag84
(Id
));
8590 W
("Materialize_Entity", Flag168
(Id
));
8591 W
("May_Inherit_Delayed_Rep_Aspects", Flag262
(Id
));
8592 W
("Must_Be_On_Byte_Boundary", Flag183
(Id
));
8593 W
("Must_Have_Preelab_Init", Flag208
(Id
));
8594 W
("Needs_Debug_Info", Flag147
(Id
));
8595 W
("Needs_No_Actuals", Flag22
(Id
));
8596 W
("Never_Set_In_Source", Flag115
(Id
));
8597 W
("No_Dynamic_Predicate_On_actual", Flag276
(Id
));
8598 W
("No_Pool_Assigned", Flag131
(Id
));
8599 W
("No_Predicate_On_actual", Flag275
(Id
));
8600 W
("No_Return", Flag113
(Id
));
8601 W
("No_Strict_Aliasing", Flag136
(Id
));
8602 W
("Non_Binary_Modulus", Flag58
(Id
));
8603 W
("Nonzero_Is_True", Flag162
(Id
));
8604 W
("OK_To_Rename", Flag247
(Id
));
8605 W
("OK_To_Reorder_Components", Flag239
(Id
));
8606 W
("Optimize_Alignment_Space", Flag241
(Id
));
8607 W
("Optimize_Alignment_Time", Flag242
(Id
));
8608 W
("Overlays_Constant", Flag243
(Id
));
8609 W
("Reachable", Flag49
(Id
));
8610 W
("Referenced", Flag156
(Id
));
8611 W
("Referenced_As_LHS", Flag36
(Id
));
8612 W
("Referenced_As_Out_Parameter", Flag227
(Id
));
8613 W
("Renamed_In_Spec", Flag231
(Id
));
8614 W
("Requires_Overriding", Flag213
(Id
));
8615 W
("Return_Present", Flag54
(Id
));
8616 W
("Returns_By_Ref", Flag90
(Id
));
8617 W
("Returns_Limited_View", Flag134
(Id
));
8618 W
("Reverse_Bit_Order", Flag164
(Id
));
8619 W
("Reverse_Storage_Order", Flag93
(Id
));
8620 W
("Sec_Stack_Needed_For_Return", Flag167
(Id
));
8621 W
("Size_Depends_On_Discriminant", Flag177
(Id
));
8622 W
("Size_Known_At_Compile_Time", Flag92
(Id
));
8623 W
("SPARK_Aux_Pragma_Inherited", Flag266
(Id
));
8624 W
("SPARK_Pragma_Inherited", Flag265
(Id
));
8625 W
("SSO_Set_High_By_Default", Flag273
(Id
));
8626 W
("SSO_Set_Low_By_Default", Flag272
(Id
));
8627 W
("Static_Elaboration_Desired", Flag77
(Id
));
8628 W
("Stores_Attribute_Old_Prefix", Flag270
(Id
));
8629 W
("Strict_Alignment", Flag145
(Id
));
8630 W
("Suppress_Elaboration_Warnings", Flag148
(Id
));
8631 W
("Suppress_Initialization", Flag105
(Id
));
8632 W
("Suppress_Style_Checks", Flag165
(Id
));
8633 W
("Suppress_Value_Tracking_On_Call", Flag217
(Id
));
8634 W
("Treat_As_Volatile", Flag41
(Id
));
8635 W
("Universal_Aliasing", Flag216
(Id
));
8636 W
("Used_As_Generic_Actual", Flag222
(Id
));
8637 W
("Uses_Sec_Stack", Flag95
(Id
));
8638 W
("Warnings_Off", Flag96
(Id
));
8639 W
("Warnings_Off_Used", Flag236
(Id
));
8640 W
("Warnings_Off_Used_Unmodified", Flag237
(Id
));
8641 W
("Warnings_Off_Used_Unreferenced", Flag238
(Id
));
8642 W
("Was_Hidden", Flag196
(Id
));
8643 end Write_Entity_Flags
;
8645 -----------------------
8646 -- Write_Entity_Info --
8647 -----------------------
8649 procedure Write_Entity_Info
(Id
: Entity_Id
; Prefix
: String) is
8651 procedure Write_Attribute
(Which
: String; Nam
: E
);
8652 -- Write attribute value with given string name
8654 procedure Write_Kind
(Id
: Entity_Id
);
8655 -- Write Ekind field of entity
8657 ---------------------
8658 -- Write_Attribute --
8659 ---------------------
8661 procedure Write_Attribute
(Which
: String; Nam
: E
) is
8665 Write_Int
(Int
(Nam
));
8667 Write_Name
(Chars
(Nam
));
8669 end Write_Attribute
;
8675 procedure Write_Kind
(Id
: Entity_Id
) is
8676 K
: constant String := Entity_Kind
'Image (Ekind
(Id
));
8680 Write_Str
(" Kind ");
8682 if Is_Type
(Id
) and then Is_Tagged_Type
(Id
) then
8683 Write_Str
("TAGGED ");
8686 Write_Str
(K
(3 .. K
'Length));
8689 if Is_Type
(Id
) and then Depends_On_Private
(Id
) then
8690 Write_Str
("Depends_On_Private ");
8694 -- Start of processing for Write_Entity_Info
8698 Write_Attribute
("Name ", Id
);
8699 Write_Int
(Int
(Id
));
8703 Write_Attribute
(" Type ", Etype
(Id
));
8705 Write_Attribute
(" Scope ", Scope
(Id
));
8710 when Discrete_Kind
=>
8711 Write_Str
("Bounds: Id = ");
8713 if Present
(Scalar_Range
(Id
)) then
8714 Write_Int
(Int
(Type_Low_Bound
(Id
)));
8715 Write_Str
(" .. Id = ");
8716 Write_Int
(Int
(Type_High_Bound
(Id
)));
8718 Write_Str
("Empty");
8729 (" Component Type ", Component_Type
(Id
));
8732 Write_Str
(" Indexes ");
8734 Index
:= First_Index
(Id
);
8735 while Present
(Index
) loop
8736 Write_Attribute
(" ", Etype
(Index
));
8737 Index
:= Next_Index
(Index
);
8745 (" Directly Designated Type ",
8746 Directly_Designated_Type
(Id
));
8749 when Overloadable_Kind
=>
8750 if Present
(Homonym
(Id
)) then
8751 Write_Str
(" Homonym ");
8752 Write_Name
(Chars
(Homonym
(Id
)));
8754 Write_Int
(Int
(Homonym
(Id
)));
8761 if Ekind
(Scope
(Id
)) in Record_Kind
then
8763 " Original_Record_Component ",
8764 Original_Record_Component
(Id
));
8765 Write_Int
(Int
(Original_Record_Component
(Id
)));
8769 when others => null;
8771 end Write_Entity_Info
;
8773 -----------------------
8774 -- Write_Field6_Name --
8775 -----------------------
8777 procedure Write_Field6_Name
(Id
: Entity_Id
) is
8778 pragma Warnings
(Off
, Id
);
8780 Write_Str
("First_Rep_Item");
8781 end Write_Field6_Name
;
8783 -----------------------
8784 -- Write_Field7_Name --
8785 -----------------------
8787 procedure Write_Field7_Name
(Id
: Entity_Id
) is
8788 pragma Warnings
(Off
, Id
);
8790 Write_Str
("Freeze_Node");
8791 end Write_Field7_Name
;
8793 -----------------------
8794 -- Write_Field8_Name --
8795 -----------------------
8797 procedure Write_Field8_Name
(Id
: Entity_Id
) is
8801 Write_Str
("Associated_Node_For_Itype");
8804 Write_Str
("Dependent_Instances");
8807 Write_Str
("First_Exit_Statement");
8810 Write_Str
("Hiding_Loop_Variable");
8814 E_Subprogram_Body
=>
8815 Write_Str
("Mechanism");
8819 Write_Str
("Normalized_First_Bit");
8822 Write_Str
("Postcondition_Proc");
8824 when E_Abstract_State
=>
8825 Write_Str
("Refinement_Constituents");
8827 when E_Return_Statement
=>
8828 Write_Str
("Return_Applies_To");
8831 Write_Str
("Field8??");
8833 end Write_Field8_Name
;
8835 -----------------------
8836 -- Write_Field9_Name --
8837 -----------------------
8839 procedure Write_Field9_Name
(Id
: Entity_Id
) is
8843 Write_Str
("Class_Wide_Type");
8846 Write_Str
("Current_Value");
8848 when E_Abstract_State
=>
8849 Write_Str
("Part_Of_Constituents");
8852 E_Generic_Function |
8854 E_Generic_Procedure |
8857 Write_Str
("Renaming_Map");
8860 Write_Str
("Field9??");
8862 end Write_Field9_Name
;
8864 ------------------------
8865 -- Write_Field10_Name --
8866 ------------------------
8868 procedure Write_Field10_Name
(Id
: Entity_Id
) is
8871 when E_Abstract_State |
8873 Write_Str
("Encapsulating_State");
8875 when Class_Wide_Kind |
8881 Write_Str
("Direct_Primitive_Operations");
8884 Write_Str
("Float_Rep");
8886 when E_In_Parameter |
8888 Write_Str
("Discriminal_Link");
8894 Write_Str
("Handler_Records");
8898 Write_Str
("Normalized_Position_Max");
8901 Write_Str
("Field10??");
8903 end Write_Field10_Name
;
8905 ------------------------
8906 -- Write_Field11_Name --
8907 ------------------------
8909 procedure Write_Field11_Name
(Id
: Entity_Id
) is
8913 Write_Str
("Block_Node");
8917 Write_Str
("Component_Bit_Offset");
8920 Write_Str
("Entry_Component");
8922 when E_Enumeration_Literal
=>
8923 Write_Str
("Enumeration_Pos");
8927 Write_Str
("Full_View");
8929 when E_Generic_Package
=>
8930 Write_Str
("Generic_Homonym");
8936 Write_Str
("Protected_Body_Subprogram");
8939 Write_Str
("Field11??");
8941 end Write_Field11_Name
;
8943 ------------------------
8944 -- Write_Field12_Name --
8945 ------------------------
8947 procedure Write_Field12_Name
(Id
: Entity_Id
) is
8951 Write_Str
("Associated_Formal_Package");
8954 Write_Str
("Barrier_Function");
8956 when E_Enumeration_Literal
=>
8957 Write_Str
("Enumeration_Rep");
8965 E_In_Out_Parameter |
8969 Write_Str
("Esize");
8973 Write_Str
("Next_Inlined_Subprogram");
8976 Write_Str
("Field12??");
8978 end Write_Field12_Name
;
8980 ------------------------
8981 -- Write_Field13_Name --
8982 ------------------------
8984 procedure Write_Field13_Name
(Id
: Entity_Id
) is
8989 Write_Str
("Component_Clause");
8992 Write_Str
("Elaboration_Entity");
8996 Generic_Unit_Kind
=>
8997 Write_Str
("Elaboration_Entity");
9001 Write_Str
("Extra_Accessibility");
9004 Write_Str
("RM_Size");
9007 Write_Str
("Field13??");
9009 end Write_Field13_Name
;
9011 -----------------------
9012 -- Write_Field14_Name --
9013 -----------------------
9015 procedure Write_Field14_Name
(Id
: Entity_Id
) is
9024 Write_Str
("Alignment");
9028 Write_Str
("Normalized_Position");
9031 E_Generic_Package
=>
9032 Write_Str
("Shadow_Entities");
9035 Write_Str
("Field14??");
9037 end Write_Field14_Name
;
9039 ------------------------
9040 -- Write_Field15_Name --
9041 ------------------------
9043 procedure Write_Field15_Name
(Id
: Entity_Id
) is
9046 when E_Discriminant
=>
9047 Write_Str
("Discriminant_Number");
9050 Write_Str
("DT_Entry_Count");
9054 Write_Str
("DT_Position");
9056 when E_Protected_Type
=>
9057 Write_Str
("Entry_Bodies_Array");
9060 Write_Str
("Entry_Parameters_Type");
9063 Write_Str
("Extra_Formal");
9065 when Enumeration_Kind
=>
9066 Write_Str
("Lit_Indexes");
9070 Write_Str
("Related_Instance");
9072 when Decimal_Fixed_Point_Kind
=>
9073 Write_Str
("Scale_Value");
9077 Write_Str
("Status_Flag_Or_Transient_Decl");
9081 Write_Str
("Storage_Size_Variable");
9083 when E_String_Literal_Subtype
=>
9084 Write_Str
("String_Literal_Low_Bound");
9087 Write_Str
("Field15??");
9089 end Write_Field15_Name
;
9091 ------------------------
9092 -- Write_Field16_Name --
9093 ------------------------
9095 procedure Write_Field16_Name
(Id
: Entity_Id
) is
9098 when E_Record_Type |
9099 E_Record_Type_With_Private
=>
9100 Write_Str
("Access_Disp_Table");
9102 when E_Abstract_State
=>
9103 Write_Str
("Body_References");
9105 when E_Record_Subtype |
9106 E_Class_Wide_Subtype
=>
9107 Write_Str
("Cloned_Subtype");
9111 Write_Str
("DTC_Entity");
9114 Write_Str
("Entry_Formal");
9119 Write_Str
("First_Private_Entity");
9121 when Enumeration_Kind
=>
9122 Write_Str
("Lit_Strings");
9124 when E_String_Literal_Subtype
=>
9125 Write_Str
("String_Literal_Length");
9129 Write_Str
("Unset_Reference");
9132 Write_Str
("Field16??");
9134 end Write_Field16_Name
;
9136 ------------------------
9137 -- Write_Field17_Name --
9138 ------------------------
9140 procedure Write_Field17_Name
(Id
: Entity_Id
) is
9145 E_Generic_In_Out_Parameter |
9147 Write_Str
("Actual_Subtype");
9150 Write_Str
("Digits_Value");
9152 when E_Discriminant
=>
9153 Write_Str
("Discriminal");
9162 E_Generic_Function |
9164 E_Generic_Procedure |
9172 E_Return_Statement |
9174 E_Subprogram_Type
=>
9175 Write_Str
("First_Entity");
9178 Write_Str
("First_Index");
9180 when Enumeration_Kind
=>
9181 Write_Str
("First_Literal");
9184 Write_Str
("Master_Id");
9186 when Modular_Integer_Kind
=>
9187 Write_Str
("Modulus");
9189 when E_Abstract_State |
9190 E_Incomplete_Type
=>
9191 Write_Str
("Non_Limited_View");
9193 when E_Incomplete_Subtype
=>
9194 if From_Limited_With
(Id
) then
9195 Write_Str
("Non_Limited_View");
9199 Write_Str
("Prival");
9202 Write_Str
("Field17??");
9204 end Write_Field17_Name
;
9206 ------------------------
9207 -- Write_Field18_Name --
9208 ------------------------
9210 procedure Write_Field18_Name
(Id
: Entity_Id
) is
9213 when E_Enumeration_Literal |
9217 Write_Str
("Alias");
9219 when E_Record_Type
=>
9220 Write_Str
("Corresponding_Concurrent_Type");
9222 when E_Subprogram_Body
=>
9223 Write_Str
("Corresponding_Protected_Entry");
9225 when Concurrent_Kind
=>
9226 Write_Str
("Corresponding_Record_Type");
9231 Write_Str
("Enclosing_Scope");
9233 when E_Entry_Index_Parameter
=>
9234 Write_Str
("Entry_Index_Constant");
9236 when E_Class_Wide_Subtype |
9237 E_Access_Protected_Subprogram_Type |
9238 E_Anonymous_Access_Protected_Subprogram_Type |
9239 E_Access_Subprogram_Type |
9241 Write_Str
("Equivalent_Type");
9243 when Fixed_Point_Kind
=>
9244 Write_Str
("Delta_Value");
9246 when Incomplete_Or_Private_Kind |
9248 Write_Str
("Private_Dependents");
9251 Write_Str
("Renamed_Object");
9255 E_Generic_Function |
9256 E_Generic_Procedure |
9257 E_Generic_Package
=>
9258 Write_Str
("Renamed_Entity");
9261 Write_Str
("Field18??");
9263 end Write_Field18_Name
;
9265 -----------------------
9266 -- Write_Field19_Name --
9267 -----------------------
9269 procedure Write_Field19_Name
(Id
: Entity_Id
) is
9273 E_Generic_Package
=>
9274 Write_Str
("Body_Entity");
9276 when E_Discriminant
=>
9277 Write_Str
("Corresponding_Discriminant");
9280 Write_Str
("Default_Aspect_Value");
9282 when E_Array_Type
=>
9283 Write_Str
("Default_Component_Value");
9285 when E_Record_Type
=>
9286 Write_Str
("Parent_Subtype");
9290 Write_Str
("Size_Check_Code");
9292 when E_Package_Body |
9294 Write_Str
("Spec_Entity");
9296 when Private_Kind
=>
9297 Write_Str
("Underlying_Full_View");
9299 when E_Function | E_Operator | E_Subprogram_Type
=>
9300 Write_Str
("Extra_Accessibility_Of_Result");
9303 Write_Str
("Field19??");
9305 end Write_Field19_Name
;
9307 -----------------------
9308 -- Write_Field20_Name --
9309 -----------------------
9311 procedure Write_Field20_Name
(Id
: Entity_Id
) is
9315 Write_Str
("Component_Type");
9317 when E_In_Parameter |
9318 E_Generic_In_Parameter
=>
9319 Write_Str
("Default_Value");
9322 Write_Str
("Directly_Designated_Type");
9325 Write_Str
("Discriminant_Checking_Func");
9327 when E_Discriminant
=>
9328 Write_Str
("Discriminant_Default_Value");
9337 E_Generic_Function |
9339 E_Generic_Procedure |
9347 E_Return_Statement |
9349 E_Subprogram_Type
=>
9350 Write_Str
("Last_Entity");
9354 Write_Str
("Prival_Link");
9357 Write_Str
("Scalar_Range");
9360 Write_Str
("Register_Exception_Call");
9363 Write_Str
("Field20??");
9365 end Write_Field20_Name
;
9367 -----------------------
9368 -- Write_Field21_Name --
9369 -----------------------
9371 procedure Write_Field21_Name
(Id
: Entity_Id
) is
9375 Write_Str
("Accept_Address");
9377 when E_In_Parameter
=>
9378 Write_Str
("Default_Expr_Function");
9380 when Concurrent_Kind |
9381 Incomplete_Or_Private_Kind |
9385 Write_Str
("Discriminant_Constraint");
9390 E_Generic_Function |
9392 E_Generic_Procedure |
9394 Write_Str
("Interface_Name");
9397 Modular_Integer_Kind
=>
9398 Write_Str
("Original_Array_Type");
9400 when Fixed_Point_Kind
=>
9401 Write_Str
("Small_Value");
9404 Write_Str
("Field21??");
9406 end Write_Field21_Name
;
9408 -----------------------
9409 -- Write_Field22_Name --
9410 -----------------------
9412 procedure Write_Field22_Name
(Id
: Entity_Id
) is
9416 Write_Str
("Associated_Storage_Pool");
9419 Write_Str
("Component_Size");
9421 when E_Record_Type
=>
9422 Write_Str
("Corresponding_Remote_Type");
9426 Write_Str
("Original_Record_Component");
9428 when E_Enumeration_Literal
=>
9429 Write_Str
("Enumeration_Rep_Expr");
9431 when E_Record_Type_With_Private |
9432 E_Record_Subtype_With_Private |
9435 E_Limited_Private_Type |
9436 E_Limited_Private_Subtype
=>
9437 Write_Str
("Private_View");
9440 Write_Str
("Protected_Formal");
9450 E_Generic_Function |
9451 E_Generic_Procedure |
9454 E_Return_Statement |
9457 Write_Str
("Scope_Depth_Value");
9460 Write_Str
("Shared_Var_Procs_Instance");
9463 Write_Str
("Field22??");
9465 end Write_Field22_Name
;
9467 ------------------------
9468 -- Write_Field23_Name --
9469 ------------------------
9471 procedure Write_Field23_Name
(Id
: Entity_Id
) is
9474 when E_Discriminant
=>
9475 Write_Str
("CR_Discriminant");
9478 Write_Str
("Entry_Cancel_Parameter");
9480 when E_Enumeration_Type
=>
9481 Write_Str
("Enum_Pos_To_Rep");
9485 Write_Str
("Extra_Constrained");
9488 Write_Str
("Finalization_Master");
9490 when E_Generic_Function |
9492 E_Generic_Procedure
=>
9493 Write_Str
("Inner_Instances");
9496 Write_Str
("Packed_Array_Impl_Type");
9499 Write_Str
("Protection_Object");
9501 when Concurrent_Kind |
9502 Incomplete_Or_Private_Kind |
9506 Write_Str
("Stored_Constraint");
9510 if Present
(Scope
(Id
))
9511 and then Is_Protected_Type
(Scope
(Id
))
9513 Write_Str
("Protection_Object");
9515 Write_Str
("Generic_Renamings");
9519 if Is_Generic_Instance
(Id
) then
9520 Write_Str
("Generic_Renamings");
9522 Write_Str
("Limited_View");
9526 Write_Str
("Field23??");
9528 end Write_Field23_Name
;
9530 ------------------------
9531 -- Write_Field24_Name --
9532 ------------------------
9534 procedure Write_Field24_Name
(Id
: Entity_Id
) is
9540 Write_Str
("Related_Expression");
9543 Write_Str
("Field24???");
9545 end Write_Field24_Name
;
9547 ------------------------
9548 -- Write_Field25_Name --
9549 ------------------------
9551 procedure Write_Field25_Name
(Id
: Entity_Id
) is
9554 when E_Generic_Package |
9556 Write_Str
("Abstract_States");
9559 Write_Str
("Debug_Renaming_Link");
9562 Write_Str
("DT_Offset_To_Top_Func");
9566 Write_Str
("Interface_Alias");
9568 when E_Record_Type |
9570 E_Record_Type_With_Private |
9571 E_Record_Subtype_With_Private
=>
9572 Write_Str
("Interfaces");
9576 Write_Str
("Related_Array_Object");
9579 Write_Str
("Task_Body_Procedure");
9583 Write_Str
("PPC_Wrapper");
9585 when Discrete_Kind
=>
9586 Write_Str
("Static_Discrete_Predicate");
9589 Write_Str
("Static_Real_Or_String_Predicate");
9592 Write_Str
("Field25??");
9594 end Write_Field25_Name
;
9596 ------------------------
9597 -- Write_Field26_Name --
9598 ------------------------
9600 procedure Write_Field26_Name
(Id
: Entity_Id
) is
9603 when E_Record_Type |
9604 E_Record_Type_With_Private
=>
9605 Write_Str
("Dispatch_Table_Wrappers");
9607 when E_In_Out_Parameter |
9610 Write_Str
("Last_Assignment");
9612 when E_Access_Subprogram_Type
=>
9613 Write_Str
("Original_Access_Type");
9615 when E_Generic_Package |
9617 Write_Str
("Package_Instantiation");
9621 Write_Str
("Related_Type");
9624 Write_Str
("Relative_Deadline_Variable");
9628 Write_Str
("Overridden_Operation");
9631 Write_Str
("Field26??");
9633 end Write_Field26_Name
;
9635 ------------------------
9636 -- Write_Field27_Name --
9637 ------------------------
9639 procedure Write_Field27_Name
(Id
: Entity_Id
) is
9644 Write_Str
("Current_Use_Clause");
9649 Write_Str
("Related_Type");
9653 Write_Str
("Wrapped_Entity");
9656 Write_Str
("Field27??");
9658 end Write_Field27_Name
;
9660 ------------------------
9661 -- Write_Field28_Name --
9662 ------------------------
9664 procedure Write_Field28_Name
(Id
: Entity_Id
) is
9672 E_Subprogram_Type
=>
9673 Write_Str
("Extra_Formals");
9677 Write_Str
("Finalizer");
9681 Write_Str
("Initialization_Statements");
9683 when E_Record_Type
=>
9684 Write_Str
("Underlying_Record_View");
9687 Write_Str
("Field28??");
9689 end Write_Field28_Name
;
9691 ------------------------
9692 -- Write_Field29_Name --
9693 ------------------------
9695 procedure Write_Field29_Name
(Id
: Entity_Id
) is
9700 Write_Str
("BIP_Initialization_Call");
9703 Write_Str
("Subprograms_For_Type");
9706 Write_Str
("Field29??");
9708 end Write_Field29_Name
;
9710 ------------------------
9711 -- Write_Field30_Name --
9712 ------------------------
9714 procedure Write_Field30_Name
(Id
: Entity_Id
) is
9718 Write_Str
("Corresponding_Equality");
9722 Write_Str
("Last_Aggregate_Assignment");
9725 Write_Str
("Static_Initialization");
9728 Write_Str
("Field30??");
9730 end Write_Field30_Name
;
9732 ------------------------
9733 -- Write_Field31_Name --
9734 ------------------------
9736 procedure Write_Field31_Name
(Id
: Entity_Id
) is
9741 Write_Str
("Thunk_Entity");
9744 Write_Str
("Derived_Type_Link");
9747 Write_Str
("Field31??");
9749 end Write_Field31_Name
;
9751 ------------------------
9752 -- Write_Field32_Name --
9753 ------------------------
9755 procedure Write_Field32_Name
(Id
: Entity_Id
) is
9759 E_Generic_Function |
9761 E_Generic_Procedure |
9765 E_Subprogram_Body
=>
9766 Write_Str
("SPARK_Pragma");
9769 Write_Str
("No_Tagged_Streams_Pragma");
9772 Write_Str
("Field32??");
9774 end Write_Field32_Name
;
9776 ------------------------
9777 -- Write_Field33_Name --
9778 ------------------------
9780 procedure Write_Field33_Name
(Id
: Entity_Id
) is
9783 when E_Generic_Package |
9786 Write_Str
("SPARK_Aux_Pragma");
9792 Write_Str
("Linker_Section_Pragma");
9795 Write_Str
("Field33??");
9797 end Write_Field33_Name
;
9799 ------------------------
9800 -- Write_Field34_Name --
9801 ------------------------
9803 procedure Write_Field34_Name
(Id
: Entity_Id
) is
9813 Generic_Subprogram_Kind |
9815 Write_Str
("Contract");
9818 Write_Str
("Field34??");
9820 end Write_Field34_Name
;
9822 ------------------------
9823 -- Write_Field35_Name --
9824 ------------------------
9826 procedure Write_Field35_Name
(Id
: Entity_Id
) is
9829 when Subprogram_Kind
=>
9830 Write_Str
("Import_Pragma");
9832 Write_Str
("Field35??");
9834 end Write_Field35_Name
;
9836 -------------------------
9837 -- Iterator Procedures --
9838 -------------------------
9840 procedure Proc_Next_Component
(N
: in out Node_Id
) is
9842 N
:= Next_Component
(N
);
9843 end Proc_Next_Component
;
9845 procedure Proc_Next_Component_Or_Discriminant
(N
: in out Node_Id
) is
9847 N
:= Next_Entity
(N
);
9848 while Present
(N
) loop
9849 exit when Ekind_In
(N
, E_Component
, E_Discriminant
);
9850 N
:= Next_Entity
(N
);
9852 end Proc_Next_Component_Or_Discriminant
;
9854 procedure Proc_Next_Discriminant
(N
: in out Node_Id
) is
9856 N
:= Next_Discriminant
(N
);
9857 end Proc_Next_Discriminant
;
9859 procedure Proc_Next_Formal
(N
: in out Node_Id
) is
9861 N
:= Next_Formal
(N
);
9862 end Proc_Next_Formal
;
9864 procedure Proc_Next_Formal_With_Extras
(N
: in out Node_Id
) is
9866 N
:= Next_Formal_With_Extras
(N
);
9867 end Proc_Next_Formal_With_Extras
;
9869 procedure Proc_Next_Index
(N
: in out Node_Id
) is
9871 N
:= Next_Index
(N
);
9872 end Proc_Next_Index
;
9874 procedure Proc_Next_Inlined_Subprogram
(N
: in out Node_Id
) is
9876 N
:= Next_Inlined_Subprogram
(N
);
9877 end Proc_Next_Inlined_Subprogram
;
9879 procedure Proc_Next_Literal
(N
: in out Node_Id
) is
9881 N
:= Next_Literal
(N
);
9882 end Proc_Next_Literal
;
9884 procedure Proc_Next_Stored_Discriminant
(N
: in out Node_Id
) is
9886 N
:= Next_Stored_Discriminant
(N
);
9887 end Proc_Next_Stored_Discriminant
;