1 ------------------------------------------------------------------------------
3 -- GNAT COMPILER COMPONENTS --
9 -- Copyright (C) 1992-2004, 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 2, 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. See the GNU General Public License --
17 -- for more details. You should have received a copy of the GNU General --
18 -- Public License distributed with GNAT; see file COPYING. If not, write --
19 -- to the Free Software Foundation, 59 Temple Place - Suite 330, Boston, --
20 -- MA 02111-1307, USA. --
22 -- As a special exception, if other files instantiate generics from this --
23 -- unit, or you link this unit with other files to produce an executable, --
24 -- this unit does not by itself cause the resulting executable to be --
25 -- covered by the GNU General Public License. This exception does not --
26 -- however invalidate any other reasons why the executable file might be --
27 -- covered by the GNU Public License. --
29 -- GNAT was originally developed by the GNAT team at New York University. --
30 -- Extensive contributions were provided by Ada Core Technologies Inc. --
32 ------------------------------------------------------------------------------
34 pragma Style_Checks
(All_Checks
);
35 -- Turn off subprogram ordering check for this package
37 -- WARNING: There is a C version of this package. Any changes to this source
38 -- file must be properly reflected in the C header a-atree.h (for inlined
39 -- bodies) and the C file a-atree.c (for remaining non-inlined bodies).
41 with Debug
; use Debug
;
42 with Nlists
; use Nlists
;
43 with Elists
; use Elists
;
44 with Output
; use Output
;
45 with Sinput
; use Sinput
;
46 with Tree_IO
; use Tree_IO
;
48 with GNAT
.HTable
; use GNAT
.HTable
;
53 -- Count allocated nodes for Num_Nodes function
56 -- We are allowed to see these from within our own body!
58 use Atree_Private_Part
;
59 -- We are also allowed to see our private data structures!
61 function E_To_N
is new Unchecked_Conversion
(Entity_Kind
, Node_Kind
);
62 function N_To_E
is new Unchecked_Conversion
(Node_Kind
, Entity_Kind
);
63 -- Functions used to store Entity_Kind value in Nkind field
65 -- The following declarations are used to store flags 65-72 in the
66 -- Nkind field of the third component of an extended (entity) node.
68 type Flag_Byte
is record
79 pragma Pack
(Flag_Byte
);
80 for Flag_Byte
'Size use 8;
82 type Flag_Byte_Ptr
is access all Flag_Byte
;
83 type Node_Kind_Ptr
is access all Node_Kind
;
85 function To_Flag_Byte
is new
86 Unchecked_Conversion
(Node_Kind
, Flag_Byte
);
88 function To_Flag_Byte_Ptr
is new
89 Unchecked_Conversion
(Node_Kind_Ptr
, Flag_Byte_Ptr
);
91 -- The following declarations are used to store flags 73-96 in the
92 -- Field12 field of the third component of an extended (entity) node.
94 type Flag_Word
is record
122 Convention
: Convention_Id
;
125 pragma Pack
(Flag_Word
);
126 for Flag_Word
'Size use 32;
127 for Flag_Word
'Alignment use 4;
129 type Flag_Word_Ptr
is access all Flag_Word
;
130 type Union_Id_Ptr
is access all Union_Id
;
132 function To_Flag_Word
is new
133 Unchecked_Conversion
(Union_Id
, Flag_Word
);
135 function To_Flag_Word_Ptr
is new
136 Unchecked_Conversion
(Union_Id_Ptr
, Flag_Word_Ptr
);
138 -- The following declarations are used to store flags 97-128 in the
139 -- Field12 field of the fourth component of an extended (entity) node.
141 type Flag_Word2
is record
179 pragma Pack
(Flag_Word2
);
180 for Flag_Word2
'Size use 32;
181 for Flag_Word2
'Alignment use 4;
183 type Flag_Word2_Ptr
is access all Flag_Word2
;
185 function To_Flag_Word2
is new
186 Unchecked_Conversion
(Union_Id
, Flag_Word2
);
188 function To_Flag_Word2_Ptr
is new
189 Unchecked_Conversion
(Union_Id_Ptr
, Flag_Word2_Ptr
);
191 -- The following declarations are used to store flags 97-120 in the
192 -- Field12 field of the fourth component of an extended (entity) node.
194 type Flag_Word3
is record
232 pragma Pack
(Flag_Word3
);
233 for Flag_Word3
'Size use 32;
234 for Flag_Word3
'Alignment use 4;
236 type Flag_Word3_Ptr
is access all Flag_Word3
;
238 function To_Flag_Word3
is new
239 Unchecked_Conversion
(Union_Id
, Flag_Word3
);
241 function To_Flag_Word3_Ptr
is new
242 Unchecked_Conversion
(Union_Id_Ptr
, Flag_Word3_Ptr
);
244 -- Default value used to initialize default nodes. Note that some of the
245 -- fields get overwritten, and in particular, Nkind always gets reset.
247 Default_Node
: Node_Record
:= (
248 Is_Extension
=> False,
253 Rewrite_Ins
=> False,
255 Comes_From_Source
=> False, -- modified by Set_Comes_From_Source_Default
256 Error_Posted
=> False,
275 Nkind
=> N_Unused_At_Start
,
278 Link
=> Empty_List_Or_Node
,
279 Field1
=> Empty_List_Or_Node
,
280 Field2
=> Empty_List_Or_Node
,
281 Field3
=> Empty_List_Or_Node
,
282 Field4
=> Empty_List_Or_Node
,
283 Field5
=> Empty_List_Or_Node
);
285 -- Default value used to initialize node extensions (i.e. the second
286 -- and third and fourth components of an extended node). Note we are
287 -- cheating a bit here when it comes to Node12, which really holds
288 -- flags an (for the third component), the convention. But it works
289 -- because Empty, False, Convention_Ada, all happen to be all zero bits.
291 Default_Node_Extension
: constant Node_Record
:= (
292 Is_Extension
=> True,
297 Rewrite_Ins
=> False,
299 Comes_From_Source
=> False,
300 Error_Posted
=> False,
319 Nkind
=> E_To_N
(E_Void
),
321 Field6
=> Empty_List_Or_Node
,
322 Field7
=> Empty_List_Or_Node
,
323 Field8
=> Empty_List_Or_Node
,
324 Field9
=> Empty_List_Or_Node
,
325 Field10
=> Empty_List_Or_Node
,
326 Field11
=> Empty_List_Or_Node
,
327 Field12
=> Empty_List_Or_Node
);
329 --------------------------------------------------
330 -- Implementation of Tree Substitution Routines --
331 --------------------------------------------------
333 -- A separate table keeps track of the mapping between rewritten nodes
334 -- and their corresponding original tree nodes. Rewrite makes an entry
335 -- in this table for use by Original_Node. By default, if no call is
336 -- Rewrite, the entry in this table points to the original unwritten node.
338 -- Note: eventually, this should be a field in the Node directly, but
339 -- for now we do not want to disturb the efficiency of a power of 2
342 package Orig_Nodes
is new Table
.Table
(
343 Table_Component_Type
=> Node_Id
,
344 Table_Index_Type
=> Node_Id
,
345 Table_Low_Bound
=> First_Node_Id
,
346 Table_Initial
=> Alloc
.Orig_Nodes_Initial
,
347 Table_Increment
=> Alloc
.Orig_Nodes_Increment
,
348 Table_Name
=> "Orig_Nodes");
350 ----------------------------------------
351 -- Global_Variables for New_Copy_Tree --
352 ----------------------------------------
354 -- These global variables are used by New_Copy_Tree. See description
355 -- of the body of this subprogram for details. Global variables can be
356 -- safely used by New_Copy_Tree, since there is no case of a recursive
357 -- call from the processing inside New_Copy_Tree.
359 NCT_Hash_Threshhold
: constant := 20;
360 -- If there are more than this number of pairs of entries in the
361 -- map, then Hash_Tables_Used will be set, and the hash tables will
362 -- be initialized and used for the searches.
364 NCT_Hash_Tables_Used
: Boolean := False;
365 -- Set to True if hash tables are in use
367 NCT_Table_Entries
: Nat
;
368 -- Count entries in table to see if threshhold is reached
370 NCT_Hash_Table_Setup
: Boolean := False;
371 -- Set to True if hash table contains data. We set this True if we
372 -- setup the hash table with data, and leave it set permanently
373 -- from then on, this is a signal that second and subsequent users
374 -- of the hash table must clear the old entries before reuse.
376 subtype NCT_Header_Num
is Int
range 0 .. 511;
377 -- Defines range of headers in hash tables (512 headers)
379 -----------------------
380 -- Local Subprograms --
381 -----------------------
383 procedure Fix_Parent
(Field
: Union_Id
; Old_Node
, New_Node
: Node_Id
);
384 -- This subprogram is used to fixup parent pointers that are rendered
385 -- incorrect because of a node copy. Field is checked to see if it
386 -- points to a node, list, or element list that has a parent that
387 -- points to Old_Node. If so, the parent is reset to point to New_Node.
393 function Analyzed
(N
: Node_Id
) return Boolean is
395 pragma Assert
(N
in Nodes
.First
.. Nodes
.Last
);
396 return Nodes
.Table
(N
).Analyzed
;
403 procedure Change_Node
(N
: Node_Id
; New_Node_Kind
: Node_Kind
) is
404 Save_Sloc
: constant Source_Ptr
:= Sloc
(N
);
405 Save_In_List
: constant Boolean := Nodes
.Table
(N
).In_List
;
406 Save_Link
: constant Union_Id
:= Nodes
.Table
(N
).Link
;
407 Save_CFS
: constant Boolean := Nodes
.Table
(N
).Comes_From_Source
;
408 Save_Posted
: constant Boolean := Nodes
.Table
(N
).Error_Posted
;
409 Par_Count
: Paren_Count_Type
:= 0;
412 if Nkind
(N
) in N_Subexpr
then
413 Par_Count
:= Paren_Count
(N
);
416 Nodes
.Table
(N
) := Default_Node
;
417 Nodes
.Table
(N
).Sloc
:= Save_Sloc
;
418 Nodes
.Table
(N
).In_List
:= Save_In_List
;
419 Nodes
.Table
(N
).Link
:= Save_Link
;
420 Nodes
.Table
(N
).Comes_From_Source
:= Save_CFS
;
421 Nodes
.Table
(N
).Nkind
:= New_Node_Kind
;
422 Nodes
.Table
(N
).Error_Posted
:= Save_Posted
;
424 if New_Node_Kind
in N_Subexpr
then
425 Set_Paren_Count
(N
, Par_Count
);
429 -----------------------
430 -- Comes_From_Source --
431 -----------------------
433 function Comes_From_Source
(N
: Node_Id
) return Boolean is
435 pragma Assert
(N
in Nodes
.First
.. Nodes
.Last
);
436 return Nodes
.Table
(N
).Comes_From_Source
;
437 end Comes_From_Source
;
443 function Convention
(E
: Entity_Id
) return Convention_Id
is
445 pragma Assert
(Nkind
(E
) in N_Entity
);
446 return To_Flag_Word
(Nodes
.Table
(E
+ 2).Field12
).Convention
;
453 procedure Copy_Node
(Source
: Node_Id
; Destination
: Node_Id
) is
454 Save_In_List
: constant Boolean := Nodes
.Table
(Destination
).In_List
;
455 Save_Link
: constant Union_Id
:= Nodes
.Table
(Destination
).Link
;
458 Nodes
.Table
(Destination
) := Nodes
.Table
(Source
);
459 Nodes
.Table
(Destination
).In_List
:= Save_In_List
;
460 Nodes
.Table
(Destination
).Link
:= Save_Link
;
462 if Has_Extension
(Source
) then
463 pragma Assert
(Has_Extension
(Destination
));
464 Nodes
.Table
(Destination
+ 1) := Nodes
.Table
(Source
+ 1);
465 Nodes
.Table
(Destination
+ 2) := Nodes
.Table
(Source
+ 2);
466 Nodes
.Table
(Destination
+ 3) := Nodes
.Table
(Source
+ 3);
469 pragma Assert
(not Has_Extension
(Source
));
474 ------------------------
475 -- Copy_Separate_Tree --
476 ------------------------
478 function Copy_Separate_Tree
(Source
: Node_Id
) return Node_Id
is
481 function Copy_Entity
(E
: Entity_Id
) return Entity_Id
;
482 -- Copy Entity, copying only the Ekind and Chars fields
484 function Copy_List
(List
: List_Id
) return List_Id
;
487 function Possible_Copy
(Field
: Union_Id
) return Union_Id
;
488 -- Given a field, returns a copy of the node or list if its parent
489 -- is the current source node, and otherwise returns the input
495 function Copy_Entity
(E
: Entity_Id
) return Entity_Id
is
499 case N_Entity
(Nkind
(E
)) is
500 when N_Defining_Identifier
=>
501 New_Ent
:= New_Entity
(N_Defining_Identifier
, Sloc
(E
));
503 when N_Defining_Character_Literal
=>
504 New_Ent
:= New_Entity
(N_Defining_Character_Literal
, Sloc
(E
));
506 when N_Defining_Operator_Symbol
=>
507 New_Ent
:= New_Entity
(N_Defining_Operator_Symbol
, Sloc
(E
));
510 Set_Chars
(New_Ent
, Chars
(E
));
518 function Copy_List
(List
: List_Id
) return List_Id
is
523 if List
= No_List
then
530 while Present
(E
) loop
532 if Has_Extension
(E
) then
533 Append
(Copy_Entity
(E
), NL
);
535 Append
(Copy_Separate_Tree
(E
), NL
);
549 function Possible_Copy
(Field
: Union_Id
) return Union_Id
is
553 if Field
in Node_Range
then
555 New_N
:= Union_Id
(Copy_Separate_Tree
(Node_Id
(Field
)));
557 if Parent
(Node_Id
(Field
)) = Source
then
558 Set_Parent
(Node_Id
(New_N
), New_Id
);
563 elsif Field
in List_Range
then
564 New_N
:= Union_Id
(Copy_List
(List_Id
(Field
)));
566 if Parent
(List_Id
(Field
)) = Source
then
567 Set_Parent
(List_Id
(New_N
), New_Id
);
577 -- Start of processing for Copy_Separate_Tree
580 if Source
<= Empty_Or_Error
then
583 elsif Has_Extension
(Source
) then
584 return Copy_Entity
(Source
);
587 Nodes
.Increment_Last
;
588 New_Id
:= Nodes
.Last
;
589 Nodes
.Table
(New_Id
) := Nodes
.Table
(Source
);
590 Nodes
.Table
(New_Id
).Link
:= Empty_List_Or_Node
;
591 Nodes
.Table
(New_Id
).In_List
:= False;
592 Nodes
.Table
(New_Id
).Rewrite_Ins
:= False;
593 Node_Count
:= Node_Count
+ 1;
595 Orig_Nodes
.Increment_Last
;
596 Allocate_List_Tables
(Nodes
.Last
);
597 Orig_Nodes
.Table
(New_Id
) := New_Id
;
599 -- Recursively copy descendents
601 Set_Field1
(New_Id
, Possible_Copy
(Field1
(New_Id
)));
602 Set_Field2
(New_Id
, Possible_Copy
(Field2
(New_Id
)));
603 Set_Field3
(New_Id
, Possible_Copy
(Field3
(New_Id
)));
604 Set_Field4
(New_Id
, Possible_Copy
(Field4
(New_Id
)));
605 Set_Field5
(New_Id
, Possible_Copy
(Field5
(New_Id
)));
607 -- Set Entity field to Empty
608 -- Why is this done??? and why is it always right to do it???
610 if Nkind
(New_Id
) in N_Has_Entity
611 or else Nkind
(New_Id
) = N_Freeze_Entity
613 Set_Entity
(New_Id
, Empty
);
616 -- All done, return copied node
620 end Copy_Separate_Tree
;
626 procedure Delete_Node
(Node
: Node_Id
) is
628 pragma Assert
(not Nodes
.Table
(Node
).In_List
);
631 Write_Str
("Delete node ");
632 Write_Int
(Int
(Node
));
636 Nodes
.Table
(Node
) := Default_Node
;
637 Nodes
.Table
(Node
).Nkind
:= N_Unused_At_Start
;
638 Node_Count
:= Node_Count
- 1;
640 -- Note: for now, we are not bothering to reuse deleted nodes
648 procedure Delete_Tree
(Node
: Node_Id
) is
650 procedure Delete_Field
(F
: Union_Id
);
651 -- Delete item pointed to by field F if it is a syntactic element
653 procedure Delete_List
(L
: List_Id
);
654 -- Delete all elements on the given list
656 procedure Delete_Field
(F
: Union_Id
) is
658 if F
= Union_Id
(Empty
) then
661 elsif F
in Node_Range
662 and then Parent
(Node_Id
(F
)) = Node
664 Delete_Tree
(Node_Id
(F
));
666 elsif F
in List_Range
667 and then Parent
(List_Id
(F
)) = Node
669 Delete_List
(List_Id
(F
));
671 -- No need to test Elist case, there are no syntactic Elists
678 procedure Delete_List
(L
: List_Id
) is
680 while Is_Non_Empty_List
(L
) loop
681 Delete_Tree
(Remove_Head
(L
));
685 -- Start of processing for Delete_Tree
688 -- Delete descendents
690 Delete_Field
(Field1
(Node
));
691 Delete_Field
(Field2
(Node
));
692 Delete_Field
(Field3
(Node
));
693 Delete_Field
(Field4
(Node
));
694 Delete_Field
(Field5
(Node
));
701 function Ekind
(E
: Entity_Id
) return Entity_Kind
is
703 pragma Assert
(Nkind
(E
) in N_Entity
);
704 return N_To_E
(Nodes
.Table
(E
+ 1).Nkind
);
711 function Error_Posted
(N
: Node_Id
) return Boolean is
713 pragma Assert
(N
in Nodes
.First
.. Nodes
.Last
);
714 return Nodes
.Table
(N
).Error_Posted
;
717 -----------------------
718 -- Exchange_Entities --
719 -----------------------
721 procedure Exchange_Entities
(E1
: Entity_Id
; E2
: Entity_Id
) is
722 Temp_Ent
: Node_Record
;
725 pragma Assert
(Has_Extension
(E1
)
726 and then Has_Extension
(E2
)
727 and then not Nodes
.Table
(E1
).In_List
728 and then not Nodes
.Table
(E2
).In_List
);
730 -- Exchange the contents of the two entities
732 Temp_Ent
:= Nodes
.Table
(E1
);
733 Nodes
.Table
(E1
) := Nodes
.Table
(E2
);
734 Nodes
.Table
(E2
) := Temp_Ent
;
735 Temp_Ent
:= Nodes
.Table
(E1
+ 1);
736 Nodes
.Table
(E1
+ 1) := Nodes
.Table
(E2
+ 1);
737 Nodes
.Table
(E2
+ 1) := Temp_Ent
;
738 Temp_Ent
:= Nodes
.Table
(E1
+ 2);
739 Nodes
.Table
(E1
+ 2) := Nodes
.Table
(E2
+ 2);
740 Nodes
.Table
(E2
+ 2) := Temp_Ent
;
741 Temp_Ent
:= Nodes
.Table
(E1
+ 3);
742 Nodes
.Table
(E1
+ 3) := Nodes
.Table
(E2
+ 3);
743 Nodes
.Table
(E2
+ 3) := Temp_Ent
;
745 -- That exchange exchanged the parent pointers as well, which is what
746 -- we want, but we need to patch up the defining identifier pointers
747 -- in the parent nodes (the child pointers) to match this switch
748 -- unless for Implicit types entities which have no parent, in which
749 -- case we don't do anything otherwise we won't be able to revert back
750 -- to the original situation.
752 -- Shouldn't this use Is_Itype instead of the Parent test
754 if Present
(Parent
(E1
)) and then Present
(Parent
(E2
)) then
755 Set_Defining_Identifier
(Parent
(E1
), E1
);
756 Set_Defining_Identifier
(Parent
(E2
), E2
);
758 end Exchange_Entities
;
764 function Extend_Node
(Node
: Node_Id
) return Entity_Id
is
767 procedure Debug_Extend_Node
;
768 -- Debug routine for debug flag N
770 procedure Debug_Extend_Node
is
773 Write_Str
("Extend node ");
774 Write_Int
(Int
(Node
));
776 if Result
= Node
then
777 Write_Str
(" in place");
779 Write_Str
(" copied to ");
780 Write_Int
(Int
(Result
));
785 end Debug_Extend_Node
;
787 pragma Inline
(Debug_Extend_Node
);
790 if Node
/= Nodes
.Last
then
791 Nodes
.Increment_Last
;
792 Nodes
.Table
(Nodes
.Last
) := Nodes
.Table
(Node
);
793 Result
:= Nodes
.Last
;
795 Orig_Nodes
.Increment_Last
;
796 Orig_Nodes
.Table
(Nodes
.Last
) := Nodes
.Last
;
802 Nodes
.Increment_Last
;
803 Nodes
.Table
(Nodes
.Last
) := Default_Node_Extension
;
804 Nodes
.Increment_Last
;
805 Nodes
.Table
(Nodes
.Last
) := Default_Node_Extension
;
806 Nodes
.Increment_Last
;
807 Nodes
.Table
(Nodes
.Last
) := Default_Node_Extension
;
809 Orig_Nodes
.Set_Last
(Nodes
.Last
);
810 Allocate_List_Tables
(Nodes
.Last
);
812 pragma Debug
(Debug_Extend_Node
);
820 procedure Fix_Parent
(Field
: Union_Id
; Old_Node
, New_Node
: Node_Id
) is
822 -- Fix parent of node that is referenced by Field. Note that we must
823 -- exclude the case where the node is a member of a list, because in
824 -- this case the parent is the parent of the list.
826 if Field
in Node_Range
827 and then Present
(Node_Id
(Field
))
828 and then not Nodes
.Table
(Node_Id
(Field
)).In_List
829 and then Parent
(Node_Id
(Field
)) = Old_Node
831 Set_Parent
(Node_Id
(Field
), New_Node
);
833 -- Fix parent of list that is referenced by Field
835 elsif Field
in List_Range
836 and then Present
(List_Id
(Field
))
837 and then Parent
(List_Id
(Field
)) = Old_Node
839 Set_Parent
(List_Id
(Field
), New_Node
);
843 -----------------------------------
844 -- Get_Comes_From_Source_Default --
845 -----------------------------------
847 function Get_Comes_From_Source_Default
return Boolean is
849 return Default_Node
.Comes_From_Source
;
850 end Get_Comes_From_Source_Default
;
856 function Has_Extension
(N
: Node_Id
) return Boolean is
858 return N
< Nodes
.Last
and then Nodes
.Table
(N
+ 1).Is_Extension
;
865 procedure Initialize
is
867 pragma Warnings
(Off
, Dummy
);
871 Atree_Private_Part
.Nodes
.Init
;
874 -- Allocate Empty node
876 Dummy
:= New_Node
(N_Empty
, No_Location
);
877 Set_Name1
(Empty
, No_Name
);
879 -- Allocate Error node, and set Error_Posted, since we certainly
880 -- only generate an Error node if we do post some kind of error!
882 Dummy
:= New_Node
(N_Error
, No_Location
);
883 Set_Name1
(Error
, Error_Name
);
884 Set_Error_Posted
(Error
, True);
886 -- Set global variables for New_Copy_Tree:
887 NCT_Hash_Tables_Used
:= False;
888 NCT_Table_Entries
:= 0;
889 NCT_Hash_Table_Setup
:= False;
892 --------------------------
893 -- Is_Rewrite_Insertion --
894 --------------------------
896 function Is_Rewrite_Insertion
(Node
: Node_Id
) return Boolean is
898 return Nodes
.Table
(Node
).Rewrite_Ins
;
899 end Is_Rewrite_Insertion
;
901 -----------------------------
902 -- Is_Rewrite_Substitution --
903 -----------------------------
905 function Is_Rewrite_Substitution
(Node
: Node_Id
) return Boolean is
907 return Orig_Nodes
.Table
(Node
) /= Node
;
908 end Is_Rewrite_Substitution
;
914 function Last_Node_Id
return Node_Id
is
925 Nodes
.Locked
:= True;
926 Orig_Nodes
.Locked
:= True;
931 ----------------------------
932 -- Mark_Rewrite_Insertion --
933 ----------------------------
935 procedure Mark_Rewrite_Insertion
(New_Node
: Node_Id
) is
937 Nodes
.Table
(New_Node
).Rewrite_Ins
:= True;
938 end Mark_Rewrite_Insertion
;
944 function New_Copy
(Source
: Node_Id
) return Node_Id
is
948 if Source
<= Empty_Or_Error
then
952 Nodes
.Increment_Last
;
953 New_Id
:= Nodes
.Last
;
954 Nodes
.Table
(New_Id
) := Nodes
.Table
(Source
);
955 Nodes
.Table
(New_Id
).Link
:= Empty_List_Or_Node
;
956 Nodes
.Table
(New_Id
).In_List
:= False;
957 Nodes
.Table
(New_Id
).Rewrite_Ins
:= False;
959 Orig_Nodes
.Increment_Last
;
960 Orig_Nodes
.Table
(New_Id
) := New_Id
;
962 if Has_Extension
(Source
) then
963 Nodes
.Increment_Last
;
964 Nodes
.Table
(New_Id
+ 1) := Nodes
.Table
(Source
+ 1);
965 Nodes
.Increment_Last
;
966 Nodes
.Table
(New_Id
+ 2) := Nodes
.Table
(Source
+ 2);
967 Nodes
.Increment_Last
;
968 Nodes
.Table
(New_Id
+ 3) := Nodes
.Table
(Source
+ 3);
970 Orig_Nodes
.Set_Last
(Nodes
.Last
);
973 Allocate_List_Tables
(Nodes
.Last
);
974 Node_Count
:= Node_Count
+ 1;
983 -- Our approach here requires a two pass traversal of the tree. The
984 -- first pass visits all nodes that eventually will be copied looking
985 -- for defining Itypes. If any defining Itypes are found, then they are
986 -- copied, and an entry is added to the replacement map. In the second
987 -- phase, the tree is copied, using the replacement map to replace any
988 -- Itype references within the copied tree.
990 -- The following hash tables are used if the Map supplied has more
991 -- than hash threshhold entries to speed up access to the map. If
992 -- there are fewer entries, then the map is searched sequentially
993 -- (because setting up a hash table for only a few entries takes
994 -- more time than it saves.
996 function New_Copy_Hash
(E
: Entity_Id
) return NCT_Header_Num
;
997 -- Hash function used for hash operations
999 function New_Copy_Hash
(E
: Entity_Id
) return NCT_Header_Num
is
1001 return Nat
(E
) mod (NCT_Header_Num
'Last + 1);
1004 -- The hash table NCT_Assoc associates old entities in the table
1005 -- with their corresponding new entities (i.e. the pairs of entries
1006 -- presented in the original Map argument are Key-Element pairs).
1008 package NCT_Assoc
is new Simple_HTable
(
1009 Header_Num
=> NCT_Header_Num
,
1010 Element
=> Entity_Id
,
1011 No_Element
=> Empty
,
1013 Hash
=> New_Copy_Hash
,
1014 Equal
=> Types
."=");
1016 -- The hash table NCT_Itype_Assoc contains entries only for those
1017 -- old nodes which have a non-empty Associated_Node_For_Itype set.
1018 -- The key is the associated node, and the element is the new node
1019 -- itself (NOT the associated node for the new node).
1021 package NCT_Itype_Assoc
is new Simple_HTable
(
1022 Header_Num
=> NCT_Header_Num
,
1023 Element
=> Entity_Id
,
1024 No_Element
=> Empty
,
1026 Hash
=> New_Copy_Hash
,
1027 Equal
=> Types
."=");
1029 -- Start of New_Copy_Tree function
1031 function New_Copy_Tree
1033 Map
: Elist_Id
:= No_Elist
;
1034 New_Sloc
: Source_Ptr
:= No_Location
;
1035 New_Scope
: Entity_Id
:= Empty
) return Node_Id
1037 Actual_Map
: Elist_Id
:= Map
;
1038 -- This is the actual map for the copy. It is initialized with the
1039 -- given elements, and then enlarged as required for Itypes that are
1040 -- copied during the first phase of the copy operation. The visit
1041 -- procedures add elements to this map as Itypes are encountered.
1042 -- The reason we cannot use Map directly, is that it may well be
1043 -- (and normally is) initialized to No_Elist, and if we have mapped
1044 -- entities, we have to reset it to point to a real Elist.
1046 function Assoc
(N
: Node_Or_Entity_Id
) return Node_Id
;
1047 -- Called during second phase to map entities into their corresponding
1048 -- copies using Actual_Map. If the argument is not an entity, or is not
1049 -- in Actual_Map, then it is returned unchanged.
1051 procedure Build_NCT_Hash_Tables
;
1052 -- Builds hash tables (number of elements >= threshold value)
1054 function Copy_Elist_With_Replacement
1055 (Old_Elist
: Elist_Id
) return Elist_Id
;
1056 -- Called during second phase to copy element list doing replacements.
1058 procedure Copy_Itype_With_Replacement
(New_Itype
: Entity_Id
);
1059 -- Called during the second phase to process a copied Itype. The actual
1060 -- copy happened during the first phase (so that we could make the entry
1061 -- in the mapping), but we still have to deal with the descendents of
1062 -- the copied Itype and copy them where necessary.
1064 function Copy_List_With_Replacement
(Old_List
: List_Id
) return List_Id
;
1065 -- Called during second phase to copy list doing replacements.
1067 function Copy_Node_With_Replacement
(Old_Node
: Node_Id
) return Node_Id
;
1068 -- Called during second phase to copy node doing replacements
1070 procedure Visit_Elist
(E
: Elist_Id
);
1071 -- Called during first phase to visit all elements of an Elist
1073 procedure Visit_Field
(F
: Union_Id
; N
: Node_Id
);
1074 -- Visit a single field, recursing to call Visit_Node or Visit_List
1075 -- if the field is a syntactic descendent of the current node (i.e.
1076 -- its parent is Node N).
1078 procedure Visit_Itype
(Old_Itype
: Entity_Id
);
1079 -- Called during first phase to visit subsidiary fields of a defining
1080 -- Itype, and also create a copy and make an entry in the replacement
1081 -- map for the new copy.
1083 procedure Visit_List
(L
: List_Id
);
1084 -- Called during first phase to visit all elements of a List
1086 procedure Visit_Node
(N
: Node_Or_Entity_Id
);
1087 -- Called during first phase to visit a node and all its subtrees
1093 function Assoc
(N
: Node_Or_Entity_Id
) return Node_Id
is
1098 if not Has_Extension
(N
) or else No
(Actual_Map
) then
1101 elsif NCT_Hash_Tables_Used
then
1102 Ent
:= NCT_Assoc
.Get
(Entity_Id
(N
));
1104 if Present
(Ent
) then
1110 -- No hash table used, do serial search
1113 E
:= First_Elmt
(Actual_Map
);
1114 while Present
(E
) loop
1115 if Node
(E
) = N
then
1116 return Node
(Next_Elmt
(E
));
1118 E
:= Next_Elmt
(Next_Elmt
(E
));
1126 ---------------------------
1127 -- Build_NCT_Hash_Tables --
1128 ---------------------------
1130 procedure Build_NCT_Hash_Tables
is
1134 if NCT_Hash_Table_Setup
then
1136 NCT_Itype_Assoc
.Reset
;
1139 Elmt
:= First_Elmt
(Actual_Map
);
1140 while Present
(Elmt
) loop
1143 NCT_Assoc
.Set
(Ent
, Node
(Elmt
));
1146 if Is_Type
(Ent
) then
1148 Anode
: constant Entity_Id
:=
1149 Associated_Node_For_Itype
(Ent
);
1152 if Present
(Anode
) then
1153 NCT_Itype_Assoc
.Set
(Anode
, Node
(Elmt
));
1159 NCT_Hash_Tables_Used
:= True;
1160 NCT_Hash_Table_Setup
:= True;
1161 end Build_NCT_Hash_Tables
;
1163 ---------------------------------
1164 -- Copy_Elist_With_Replacement --
1165 ---------------------------------
1167 function Copy_Elist_With_Replacement
1168 (Old_Elist
: Elist_Id
) return Elist_Id
1171 New_Elist
: Elist_Id
;
1174 if No
(Old_Elist
) then
1178 New_Elist
:= New_Elmt_List
;
1179 M
:= First_Elmt
(Old_Elist
);
1181 while Present
(M
) loop
1182 Append_Elmt
(Copy_Node_With_Replacement
(Node
(M
)), New_Elist
);
1188 end Copy_Elist_With_Replacement
;
1190 ---------------------------------
1191 -- Copy_Itype_With_Replacement --
1192 ---------------------------------
1194 -- This routine exactly parallels its phase one analog Visit_Itype,
1195 -- and like that routine, knows far too many semantic details about
1196 -- the descendents of Itypes and whether they need copying or not.
1198 procedure Copy_Itype_With_Replacement
(New_Itype
: Entity_Id
) is
1200 -- Translate Next_Entity, Scope and Etype fields, in case they
1201 -- reference entities that have been mapped into copies.
1203 Set_Next_Entity
(New_Itype
, Assoc
(Next_Entity
(New_Itype
)));
1204 Set_Etype
(New_Itype
, Assoc
(Etype
(New_Itype
)));
1206 if Present
(New_Scope
) then
1207 Set_Scope
(New_Itype
, New_Scope
);
1209 Set_Scope
(New_Itype
, Assoc
(Scope
(New_Itype
)));
1212 -- Copy referenced fields
1214 if Is_Discrete_Type
(New_Itype
) then
1215 Set_Scalar_Range
(New_Itype
,
1216 Copy_Node_With_Replacement
(Scalar_Range
(New_Itype
)));
1218 elsif Has_Discriminants
(Base_Type
(New_Itype
)) then
1219 Set_Discriminant_Constraint
(New_Itype
,
1220 Copy_Elist_With_Replacement
1221 (Discriminant_Constraint
(New_Itype
)));
1223 elsif Is_Array_Type
(New_Itype
) then
1224 if Present
(First_Index
(New_Itype
)) then
1225 Set_First_Index
(New_Itype
,
1226 First
(Copy_List_With_Replacement
1227 (List_Containing
(First_Index
(New_Itype
)))));
1230 if Is_Packed
(New_Itype
) then
1231 Set_Packed_Array_Type
(New_Itype
,
1232 Copy_Node_With_Replacement
1233 (Packed_Array_Type
(New_Itype
)));
1236 end Copy_Itype_With_Replacement
;
1238 --------------------------------
1239 -- Copy_List_With_Replacement --
1240 --------------------------------
1242 function Copy_List_With_Replacement
1243 (Old_List
: List_Id
) return List_Id
1249 if Old_List
= No_List
then
1253 New_List
:= Empty_List
;
1254 E
:= First
(Old_List
);
1255 while Present
(E
) loop
1256 Append
(Copy_Node_With_Replacement
(E
), New_List
);
1262 end Copy_List_With_Replacement
;
1264 --------------------------------
1265 -- Copy_Node_With_Replacement --
1266 --------------------------------
1268 function Copy_Node_With_Replacement
1269 (Old_Node
: Node_Id
) return Node_Id
1273 function Copy_Field_With_Replacement
1274 (Field
: Union_Id
) return Union_Id
;
1275 -- Given Field, which is a field of Old_Node, return a copy of it
1276 -- if it is a syntactic field (i.e. its parent is Node), setting
1277 -- the parent of the copy to poit to New_Node. Otherwise returns
1278 -- the field (possibly mapped if it is an entity).
1280 ---------------------------------
1281 -- Copy_Field_With_Replacement --
1282 ---------------------------------
1284 function Copy_Field_With_Replacement
1285 (Field
: Union_Id
) return Union_Id
1288 if Field
= Union_Id
(Empty
) then
1291 elsif Field
in Node_Range
then
1293 Old_N
: constant Node_Id
:= Node_Id
(Field
);
1297 -- If syntactic field, as indicated by the parent pointer
1298 -- being set, then copy the referenced node recursively.
1300 if Parent
(Old_N
) = Old_Node
then
1301 New_N
:= Copy_Node_With_Replacement
(Old_N
);
1303 if New_N
/= Old_N
then
1304 Set_Parent
(New_N
, New_Node
);
1307 -- For semantic fields, update possible entity reference
1308 -- from the replacement map.
1311 New_N
:= Assoc
(Old_N
);
1314 return Union_Id
(New_N
);
1317 elsif Field
in List_Range
then
1319 Old_L
: constant List_Id
:= List_Id
(Field
);
1323 -- If syntactic field, as indicated by the parent pointer,
1324 -- then recursively copy the entire referenced list.
1326 if Parent
(Old_L
) = Old_Node
then
1327 New_L
:= Copy_List_With_Replacement
(Old_L
);
1328 Set_Parent
(New_L
, New_Node
);
1330 -- For semantic list, just returned unchanged
1336 return Union_Id
(New_L
);
1339 -- Anything other than a list or a node is returned unchanged
1344 end Copy_Field_With_Replacement
;
1346 -- Start of processing for Copy_Node_With_Replacement
1349 if Old_Node
<= Empty_Or_Error
then
1352 elsif Has_Extension
(Old_Node
) then
1353 return Assoc
(Old_Node
);
1356 Nodes
.Increment_Last
;
1357 New_Node
:= Nodes
.Last
;
1358 Nodes
.Table
(New_Node
) := Nodes
.Table
(Old_Node
);
1359 Nodes
.Table
(New_Node
).Link
:= Empty_List_Or_Node
;
1360 Nodes
.Table
(New_Node
).In_List
:= False;
1361 Node_Count
:= Node_Count
+ 1;
1363 Orig_Nodes
.Increment_Last
;
1364 Allocate_List_Tables
(Nodes
.Last
);
1366 Orig_Nodes
.Table
(Nodes
.Last
) := Nodes
.Last
;
1368 -- If the node we are copying is the associated node of a
1369 -- previously copied Itype, then adjust the associated node
1370 -- of the copy of that Itype accordingly.
1372 if Present
(Actual_Map
) then
1378 -- Case of hash table used
1380 if NCT_Hash_Tables_Used
then
1381 Ent
:= NCT_Itype_Assoc
.Get
(Old_Node
);
1383 if Present
(Ent
) then
1384 Set_Associated_Node_For_Itype
(Ent
, New_Node
);
1387 -- Case of no hash table used
1390 E
:= First_Elmt
(Actual_Map
);
1391 while Present
(E
) loop
1392 if Is_Itype
(Node
(E
))
1394 Old_Node
= Associated_Node_For_Itype
(Node
(E
))
1396 Set_Associated_Node_For_Itype
1397 (Node
(Next_Elmt
(E
)), New_Node
);
1400 E
:= Next_Elmt
(Next_Elmt
(E
));
1406 -- Recursively copy descendents
1409 (New_Node
, Copy_Field_With_Replacement
(Field1
(New_Node
)));
1411 (New_Node
, Copy_Field_With_Replacement
(Field2
(New_Node
)));
1413 (New_Node
, Copy_Field_With_Replacement
(Field3
(New_Node
)));
1415 (New_Node
, Copy_Field_With_Replacement
(Field4
(New_Node
)));
1417 (New_Node
, Copy_Field_With_Replacement
(Field5
(New_Node
)));
1419 -- If the original is marked as a rewrite insertion, then unmark
1420 -- the copy, since we inserted the original, not the copy.
1422 Nodes
.Table
(New_Node
).Rewrite_Ins
:= False;
1424 -- Adjust Sloc of new node if necessary
1426 if New_Sloc
/= No_Location
then
1427 Set_Sloc
(New_Node
, New_Sloc
);
1429 -- If we adjust the Sloc, then we are essentially making
1430 -- a completely new node, so the Comes_From_Source flag
1431 -- should be reset to the proper default value.
1433 Nodes
.Table
(New_Node
).Comes_From_Source
:=
1434 Default_Node
.Comes_From_Source
;
1437 -- Reset First_Real_Statement for Handled_Sequence_Of_Statements.
1438 -- The replacement mechanism applies to entities, and is not used
1439 -- here. Eventually we may need a more general graph-copying
1440 -- routine. For now, do a sequential search to find desired node.
1442 if Nkind
(Old_Node
) = N_Handled_Sequence_Of_Statements
1443 and then Present
(First_Real_Statement
(Old_Node
))
1446 Old_F
: constant Node_Id
:= First_Real_Statement
(Old_Node
);
1450 N1
:= First
(Statements
(Old_Node
));
1451 N2
:= First
(Statements
(New_Node
));
1453 while N1
/= Old_F
loop
1458 Set_First_Real_Statement
(New_Node
, N2
);
1463 -- All done, return copied node
1466 end Copy_Node_With_Replacement
;
1472 procedure Visit_Elist
(E
: Elist_Id
) is
1477 Elmt
:= First_Elmt
(E
);
1479 while Elmt
/= No_Elmt
loop
1480 Visit_Node
(Node
(Elmt
));
1490 procedure Visit_Field
(F
: Union_Id
; N
: Node_Id
) is
1492 if F
= Union_Id
(Empty
) then
1495 elsif F
in Node_Range
then
1497 -- Copy node if it is syntactic, i.e. its parent pointer is
1498 -- set to point to the field that referenced it (certain
1499 -- Itypes will also meet this criterion, which is fine, since
1500 -- these are clearly Itypes that do need to be copied, since
1501 -- we are copying their parent.)
1503 if Parent
(Node_Id
(F
)) = N
then
1504 Visit_Node
(Node_Id
(F
));
1507 -- Another case, if we are pointing to an Itype, then we want
1508 -- to copy it if its associated node is somewhere in the tree
1511 -- Note: the exclusion of self-referential copies is just an
1512 -- optimization, since the search of the already copied list
1513 -- would catch it, but it is a common case (Etype pointing
1514 -- to itself for an Itype that is a base type).
1516 elsif Has_Extension
(Node_Id
(F
))
1517 and then Is_Itype
(Entity_Id
(F
))
1518 and then Node_Id
(F
) /= N
1524 P
:= Associated_Node_For_Itype
(Node_Id
(F
));
1525 while Present
(P
) loop
1527 Visit_Node
(Node_Id
(F
));
1534 -- An Itype whose parent is not being copied definitely
1535 -- should NOT be copied, since it does not belong in any
1536 -- sense to the copied subtree.
1542 elsif F
in List_Range
1543 and then Parent
(List_Id
(F
)) = N
1545 Visit_List
(List_Id
(F
));
1554 -- Note: we are relying on far too much semantic knowledge in this
1555 -- routine, it really should just do a blind replacement of all
1556 -- fields, or at least a more blind replacement. For example, we
1557 -- do not deal with corresponding record types, and that works
1558 -- because we have no Itypes of task types, but nowhere is there
1559 -- a guarantee that this will always be the case. ???
1561 procedure Visit_Itype
(Old_Itype
: Entity_Id
) is
1562 New_Itype
: Entity_Id
;
1567 -- Itypes that describe the designated type of access to subprograms
1568 -- have the structure of subprogram declarations, with signatures,
1569 -- etc. Either we duplicate the signatures completely, or choose to
1570 -- share such itypes, which is fine because their elaboration will
1571 -- have no side effects. In any case, this is additional semantic
1572 -- information that seems awkward to have in atree.
1574 if Ekind
(Old_Itype
) = E_Subprogram_Type
then
1578 New_Itype
:= New_Copy
(Old_Itype
);
1580 -- If our associated node is an entity that has already been copied,
1581 -- then set the associated node of the copy to point to the right
1582 -- copy. If we have copied an Itype that is itself the associated
1583 -- node of some previously copied Itype, then we set the right
1584 -- pointer in the other direction.
1586 if Present
(Actual_Map
) then
1588 -- Case of hash tables used
1590 if NCT_Hash_Tables_Used
then
1592 Ent
:= NCT_Assoc
.Get
(Associated_Node_For_Itype
(Old_Itype
));
1593 if Present
(Ent
) then
1594 Set_Associated_Node_For_Itype
(New_Itype
, Ent
);
1597 Ent
:= NCT_Itype_Assoc
.Get
(Old_Itype
);
1598 if Present
(Ent
) then
1599 Set_Associated_Node_For_Itype
(Ent
, New_Itype
);
1602 -- Case of hash tables not used
1605 E
:= First_Elmt
(Actual_Map
);
1606 while Present
(E
) loop
1607 if Associated_Node_For_Itype
(Old_Itype
) = Node
(E
) then
1608 Set_Associated_Node_For_Itype
1609 (New_Itype
, Node
(Next_Elmt
(E
)));
1612 if Is_Type
(Node
(E
))
1614 Old_Itype
= Associated_Node_For_Itype
(Node
(E
))
1616 Set_Associated_Node_For_Itype
1617 (Node
(Next_Elmt
(E
)), New_Itype
);
1620 E
:= Next_Elmt
(Next_Elmt
(E
));
1625 if Present
(Freeze_Node
(New_Itype
)) then
1626 Set_Is_Frozen
(New_Itype
, False);
1627 Set_Freeze_Node
(New_Itype
, Empty
);
1630 -- Add new association to map
1632 if No
(Actual_Map
) then
1633 Actual_Map
:= New_Elmt_List
;
1636 Append_Elmt
(Old_Itype
, Actual_Map
);
1637 Append_Elmt
(New_Itype
, Actual_Map
);
1639 if NCT_Hash_Tables_Used
then
1640 NCT_Assoc
.Set
(Old_Itype
, New_Itype
);
1643 NCT_Table_Entries
:= NCT_Table_Entries
+ 1;
1645 if NCT_Table_Entries
> NCT_Hash_Threshhold
then
1646 Build_NCT_Hash_Tables
;
1650 -- If a record subtype is simply copied, the entity list will be
1651 -- shared. Thus cloned_Subtype must be set to indicate the sharing.
1653 if Ekind
(Old_Itype
) = E_Record_Subtype
1654 or else Ekind
(Old_Itype
) = E_Class_Wide_Subtype
1656 Set_Cloned_Subtype
(New_Itype
, Old_Itype
);
1659 -- Visit descendents that eventually get copied
1661 Visit_Field
(Union_Id
(Etype
(Old_Itype
)), Old_Itype
);
1663 if Is_Discrete_Type
(Old_Itype
) then
1664 Visit_Field
(Union_Id
(Scalar_Range
(Old_Itype
)), Old_Itype
);
1666 elsif Has_Discriminants
(Base_Type
(Old_Itype
)) then
1667 -- ??? This should involve call to Visit_Field.
1668 Visit_Elist
(Discriminant_Constraint
(Old_Itype
));
1670 elsif Is_Array_Type
(Old_Itype
) then
1671 if Present
(First_Index
(Old_Itype
)) then
1672 Visit_Field
(Union_Id
(List_Containing
1673 (First_Index
(Old_Itype
))),
1677 if Is_Packed
(Old_Itype
) then
1678 Visit_Field
(Union_Id
(Packed_Array_Type
(Old_Itype
)),
1688 procedure Visit_List
(L
: List_Id
) is
1692 if L
/= No_List
then
1695 while Present
(N
) loop
1706 procedure Visit_Node
(N
: Node_Or_Entity_Id
) is
1708 -- Start of processing for Visit_Node
1711 -- Handle case of an Itype, which must be copied
1713 if Has_Extension
(N
)
1714 and then Is_Itype
(N
)
1716 -- Nothing to do if already in the list. This can happen with an
1717 -- Itype entity that appears more than once in the tree.
1718 -- Note that we do not want to visit descendents in this case.
1720 -- Test for already in list when hash table is used
1722 if NCT_Hash_Tables_Used
then
1723 if Present
(NCT_Assoc
.Get
(Entity_Id
(N
))) then
1727 -- Test for already in list when hash table not used
1734 if Present
(Actual_Map
) then
1735 E
:= First_Elmt
(Actual_Map
);
1736 while Present
(E
) loop
1737 if Node
(E
) = N
then
1740 E
:= Next_Elmt
(Next_Elmt
(E
));
1750 -- Visit descendents
1752 Visit_Field
(Field1
(N
), N
);
1753 Visit_Field
(Field2
(N
), N
);
1754 Visit_Field
(Field3
(N
), N
);
1755 Visit_Field
(Field4
(N
), N
);
1756 Visit_Field
(Field5
(N
), N
);
1759 -- Start of processing for New_Copy_Tree
1764 -- See if we should use hash table
1766 if No
(Actual_Map
) then
1767 NCT_Hash_Tables_Used
:= False;
1774 NCT_Table_Entries
:= 0;
1775 Elmt
:= First_Elmt
(Actual_Map
);
1776 while Present
(Elmt
) loop
1777 NCT_Table_Entries
:= NCT_Table_Entries
+ 1;
1782 if NCT_Table_Entries
> NCT_Hash_Threshhold
then
1783 Build_NCT_Hash_Tables
;
1785 NCT_Hash_Tables_Used
:= False;
1790 -- Hash table set up if required, now start phase one by visiting
1791 -- top node (we will recursively visit the descendents).
1793 Visit_Node
(Source
);
1795 -- Now the second phase of the copy can start. First we process
1796 -- all the mapped entities, copying their descendents.
1798 if Present
(Actual_Map
) then
1801 New_Itype
: Entity_Id
;
1804 Elmt
:= First_Elmt
(Actual_Map
);
1805 while Present
(Elmt
) loop
1807 New_Itype
:= Node
(Elmt
);
1808 Copy_Itype_With_Replacement
(New_Itype
);
1814 -- Now we can copy the actual tree
1816 return Copy_Node_With_Replacement
(Source
);
1824 (New_Node_Kind
: Node_Kind
;
1825 New_Sloc
: Source_Ptr
) return Entity_Id
1829 procedure New_Entity_Debugging_Output
;
1830 -- Debugging routine for debug flag N
1831 pragma Inline
(New_Entity_Debugging_Output
);
1833 ---------------------------------
1834 -- New_Entity_Debugging_Output --
1835 ---------------------------------
1837 procedure New_Entity_Debugging_Output
is
1839 if Debug_Flag_N
then
1840 Write_Str
("Allocate entity, Id = ");
1841 Write_Int
(Int
(Nodes
.Last
));
1843 Write_Location
(New_Sloc
);
1845 Write_Str
(Node_Kind
'Image (New_Node_Kind
));
1848 end New_Entity_Debugging_Output
;
1850 -- Start of processing for New_Entity
1853 pragma Assert
(New_Node_Kind
in N_Entity
);
1855 Nodes
.Increment_Last
;
1858 -- If this is a node with a real location and we are generating
1859 -- source nodes, then reset Current_Error_Node. This is useful
1860 -- if we bomb during parsing to get a error location for the bomb.
1862 if Default_Node
.Comes_From_Source
and then New_Sloc
> No_Location
then
1863 Current_Error_Node
:= Ent
;
1866 Nodes
.Table
(Nodes
.Last
) := Default_Node
;
1867 Nodes
.Table
(Nodes
.Last
).Nkind
:= New_Node_Kind
;
1868 Nodes
.Table
(Nodes
.Last
).Sloc
:= New_Sloc
;
1869 pragma Debug
(New_Entity_Debugging_Output
);
1871 Orig_Nodes
.Increment_Last
;
1872 Orig_Nodes
.Table
(Nodes
.Last
) := Nodes
.Last
;
1874 Nodes
.Increment_Last
;
1875 Nodes
.Table
(Nodes
.Last
) := Default_Node_Extension
;
1877 Nodes
.Increment_Last
;
1878 Nodes
.Table
(Nodes
.Last
) := Default_Node_Extension
;
1880 Nodes
.Increment_Last
;
1881 Nodes
.Table
(Nodes
.Last
) := Default_Node_Extension
;
1883 Orig_Nodes
.Set_Last
(Nodes
.Last
);
1884 Allocate_List_Tables
(Nodes
.Last
);
1885 Node_Count
:= Node_Count
+ 1;
1894 (New_Node_Kind
: Node_Kind
;
1895 New_Sloc
: Source_Ptr
) return Node_Id
1899 procedure New_Node_Debugging_Output
;
1900 -- Debugging routine for debug flag N
1901 pragma Inline
(New_Node_Debugging_Output
);
1903 --------------------------
1904 -- New_Debugging_Output --
1905 --------------------------
1907 procedure New_Node_Debugging_Output
is
1909 if Debug_Flag_N
then
1910 Write_Str
("Allocate node, Id = ");
1911 Write_Int
(Int
(Nodes
.Last
));
1913 Write_Location
(New_Sloc
);
1915 Write_Str
(Node_Kind
'Image (New_Node_Kind
));
1918 end New_Node_Debugging_Output
;
1920 -- Start of processing for New_Node
1923 pragma Assert
(New_Node_Kind
not in N_Entity
);
1924 Nodes
.Increment_Last
;
1925 Nodes
.Table
(Nodes
.Last
) := Default_Node
;
1926 Nodes
.Table
(Nodes
.Last
).Nkind
:= New_Node_Kind
;
1927 Nodes
.Table
(Nodes
.Last
).Sloc
:= New_Sloc
;
1928 pragma Debug
(New_Node_Debugging_Output
);
1931 -- If this is a node with a real location and we are generating
1932 -- source nodes, then reset Current_Error_Node. This is useful
1933 -- if we bomb during parsing to get a error location for the bomb.
1935 if Default_Node
.Comes_From_Source
and then New_Sloc
> No_Location
then
1936 Current_Error_Node
:= Nod
;
1939 Node_Count
:= Node_Count
+ 1;
1940 Orig_Nodes
.Increment_Last
;
1941 Allocate_List_Tables
(Nodes
.Last
);
1942 Orig_Nodes
.Table
(Nodes
.Last
) := Nodes
.Last
;
1950 function Nkind
(N
: Node_Id
) return Node_Kind
is
1952 return Nodes
.Table
(N
).Nkind
;
1959 function No
(N
: Node_Id
) return Boolean is
1968 function Nodes_Address
return System
.Address
is
1970 return Nodes
.Table
(First_Node_Id
)'Address;
1977 function Num_Nodes
return Nat
is
1986 function Original_Node
(Node
: Node_Id
) return Node_Id
is
1988 return Orig_Nodes
.Table
(Node
);
1995 function Paren_Count
(N
: Node_Id
) return Paren_Count_Type
is
1996 C
: Paren_Count_Type
:= 0;
1999 pragma Assert
(N
in Nodes
.First
.. Nodes
.Last
);
2001 if Nodes
.Table
(N
).Pflag1
then
2005 if Nodes
.Table
(N
).Pflag2
then
2016 function Parent
(N
: Node_Id
) return Node_Id
is
2018 if Is_List_Member
(N
) then
2019 return Parent
(List_Containing
(N
));
2021 return Node_Id
(Nodes
.Table
(N
).Link
);
2029 function Present
(N
: Node_Id
) return Boolean is
2034 --------------------------------
2035 -- Preserve_Comes_From_Source --
2036 --------------------------------
2038 procedure Preserve_Comes_From_Source
(NewN
, OldN
: Node_Id
) is
2040 Nodes
.Table
(NewN
).Comes_From_Source
:=
2041 Nodes
.Table
(OldN
).Comes_From_Source
;
2042 end Preserve_Comes_From_Source
;
2048 function Relocate_Node
(Source
: Node_Id
) return Node_Id
is
2056 New_Node
:= New_Copy
(Source
);
2057 Fix_Parent
(Field1
(Source
), Source
, New_Node
);
2058 Fix_Parent
(Field2
(Source
), Source
, New_Node
);
2059 Fix_Parent
(Field3
(Source
), Source
, New_Node
);
2060 Fix_Parent
(Field4
(Source
), Source
, New_Node
);
2061 Fix_Parent
(Field5
(Source
), Source
, New_Node
);
2063 -- We now set the parent of the new node to be the same as the
2064 -- parent of the source. Almost always this parent will be
2065 -- replaced by a new value when the relocated node is reattached
2066 -- to the tree, but by doing it now, we ensure that this node is
2067 -- not even temporarily disconnected from the tree. Note that this
2068 -- does not happen free, because in the list case, the parent does
2071 Set_Parent
(New_Node
, Parent
(Source
));
2073 -- If the node being relocated was a rewriting of some original
2074 -- node, then the relocated node has the same original node.
2076 if Orig_Nodes
.Table
(Source
) /= Source
then
2077 Orig_Nodes
.Table
(New_Node
) := Orig_Nodes
.Table
(Source
);
2087 procedure Replace
(Old_Node
, New_Node
: Node_Id
) is
2088 Old_Link
: constant Union_Id
:= Nodes
.Table
(Old_Node
).Link
;
2089 Old_InL
: constant Boolean := Nodes
.Table
(Old_Node
).In_List
;
2090 Old_Post
: constant Boolean := Nodes
.Table
(Old_Node
).Error_Posted
;
2091 Old_CFS
: constant Boolean := Nodes
.Table
(Old_Node
).Comes_From_Source
;
2095 (not Has_Extension
(Old_Node
)
2096 and not Has_Extension
(New_Node
)
2097 and not Nodes
.Table
(New_Node
).In_List
);
2099 -- Do copy, preserving link and in list status and comes from source
2101 Nodes
.Table
(Old_Node
) := Nodes
.Table
(New_Node
);
2102 Nodes
.Table
(Old_Node
).Link
:= Old_Link
;
2103 Nodes
.Table
(Old_Node
).In_List
:= Old_InL
;
2104 Nodes
.Table
(Old_Node
).Comes_From_Source
:= Old_CFS
;
2105 Nodes
.Table
(Old_Node
).Error_Posted
:= Old_Post
;
2107 -- Fix parents of substituted node, since it has changed identity
2109 Fix_Parent
(Field1
(Old_Node
), New_Node
, Old_Node
);
2110 Fix_Parent
(Field2
(Old_Node
), New_Node
, Old_Node
);
2111 Fix_Parent
(Field3
(Old_Node
), New_Node
, Old_Node
);
2112 Fix_Parent
(Field4
(Old_Node
), New_Node
, Old_Node
);
2113 Fix_Parent
(Field5
(Old_Node
), New_Node
, Old_Node
);
2115 -- Since we are doing a replace, we assume that the original node
2116 -- is intended to become the new replaced node. The call would be
2117 -- to Rewrite if there were an intention to save the original node.
2119 Orig_Nodes
.Table
(Old_Node
) := Old_Node
;
2121 -- Finally delete the source, since it is now copied
2123 Delete_Node
(New_Node
);
2130 procedure Rewrite
(Old_Node
, New_Node
: Node_Id
) is
2132 Old_Link
: constant Union_Id
:= Nodes
.Table
(Old_Node
).Link
;
2133 Old_In_List
: constant Boolean := Nodes
.Table
(Old_Node
).In_List
;
2134 Old_Error_P
: constant Boolean := Nodes
.Table
(Old_Node
).Error_Posted
;
2135 -- These three fields are always preserved in the new node
2137 Old_Paren_Count
: Paren_Count_Type
;
2138 Old_Must_Not_Freeze
: Boolean;
2139 -- These fields are preserved in the new node only if the new node
2140 -- and the old node are both subexpression nodes.
2142 -- Note: it is a violation of abstraction levels for Must_Not_Freeze
2143 -- to be referenced like this. ???
2149 (not Has_Extension
(Old_Node
)
2150 and not Has_Extension
(New_Node
)
2151 and not Nodes
.Table
(New_Node
).In_List
);
2153 if Nkind
(Old_Node
) in N_Subexpr
then
2154 Old_Paren_Count
:= Paren_Count
(Old_Node
);
2155 Old_Must_Not_Freeze
:= Must_Not_Freeze
(Old_Node
);
2157 Old_Paren_Count
:= 0;
2158 Old_Must_Not_Freeze
:= False;
2161 -- Allocate a new node, to be used to preserve the original contents
2162 -- of the Old_Node, for possible later retrival by Original_Node and
2163 -- make an entry in the Orig_Nodes table. This is only done if we have
2164 -- not already rewritten the node, as indicated by an Orig_Nodes entry
2165 -- that does not reference the Old_Node.
2167 if Orig_Nodes
.Table
(Old_Node
) = Old_Node
then
2168 Nodes
.Increment_Last
;
2169 Sav_Node
:= Nodes
.Last
;
2170 Nodes
.Table
(Sav_Node
) := Nodes
.Table
(Old_Node
);
2171 Nodes
.Table
(Sav_Node
).In_List
:= False;
2172 Nodes
.Table
(Sav_Node
).Link
:= Union_Id
(Parent
(Old_Node
));
2174 Orig_Nodes
.Increment_Last
;
2175 Allocate_List_Tables
(Nodes
.Last
);
2177 Orig_Nodes
.Table
(Sav_Node
) := Sav_Node
;
2178 Orig_Nodes
.Table
(Old_Node
) := Sav_Node
;
2181 -- Copy substitute node into place, preserving old fields as required
2183 Nodes
.Table
(Old_Node
) := Nodes
.Table
(New_Node
);
2184 Nodes
.Table
(Old_Node
).Link
:= Old_Link
;
2185 Nodes
.Table
(Old_Node
).In_List
:= Old_In_List
;
2186 Nodes
.Table
(Old_Node
).Error_Posted
:= Old_Error_P
;
2188 if Nkind
(New_Node
) in N_Subexpr
then
2189 Set_Paren_Count
(Old_Node
, Old_Paren_Count
);
2190 Set_Must_Not_Freeze
(Old_Node
, Old_Must_Not_Freeze
);
2193 Fix_Parent
(Field1
(Old_Node
), New_Node
, Old_Node
);
2194 Fix_Parent
(Field2
(Old_Node
), New_Node
, Old_Node
);
2195 Fix_Parent
(Field3
(Old_Node
), New_Node
, Old_Node
);
2196 Fix_Parent
(Field4
(Old_Node
), New_Node
, Old_Node
);
2197 Fix_Parent
(Field5
(Old_Node
), New_Node
, Old_Node
);
2204 procedure Set_Analyzed
(N
: Node_Id
; Val
: Boolean := True) is
2206 Nodes
.Table
(N
).Analyzed
:= Val
;
2209 ---------------------------
2210 -- Set_Comes_From_Source --
2211 ---------------------------
2213 procedure Set_Comes_From_Source
(N
: Node_Id
; Val
: Boolean) is
2215 pragma Assert
(N
in Nodes
.First
.. Nodes
.Last
);
2216 Nodes
.Table
(N
).Comes_From_Source
:= Val
;
2217 end Set_Comes_From_Source
;
2219 -----------------------------------
2220 -- Set_Comes_From_Source_Default --
2221 -----------------------------------
2223 procedure Set_Comes_From_Source_Default
(Default
: Boolean) is
2225 Default_Node
.Comes_From_Source
:= Default
;
2226 end Set_Comes_From_Source_Default
;
2228 --------------------
2229 -- Set_Convention --
2230 --------------------
2232 procedure Set_Convention
(E
: Entity_Id
; Val
: Convention_Id
) is
2234 pragma Assert
(Nkind
(E
) in N_Entity
);
2237 (Nodes.Table (E + 2).Field12'Unrestricted_Access)).Convention :=
2245 procedure Set_Ekind (E : Entity_Id; Val : Entity_Kind) is
2247 pragma Assert (Nkind (E) in N_Entity);
2248 Nodes.Table (E + 1).Nkind := E_To_N (Val);
2251 ----------------------
2252 -- Set_Error_Posted --
2253 ----------------------
2255 procedure Set_Error_Posted (N : Node_Id; Val : Boolean := True) is
2257 Nodes.Table (N).Error_Posted := Val;
2258 end Set_Error_Posted;
2260 ---------------------
2261 -- Set_Paren_Count --
2262 ---------------------
2264 procedure Set_Paren_Count (N : Node_Id; Val : Paren_Count_Type) is
2266 pragma Assert (Nkind (N) in N_Subexpr);
2267 Nodes.Table (N).Pflag1 := (Val mod 2 /= 0);
2268 Nodes.Table (N).Pflag2 := (Val >= 2);
2269 end Set_Paren_Count;
2275 procedure Set_Parent (N : Node_Id; Val : Node_Id) is
2277 pragma Assert (not Nodes.Table (N).In_List);
2278 Nodes.Table (N).Link := Union_Id (Val);
2285 procedure Set_Sloc (N : Node_Id; Val : Source_Ptr) is
2287 Nodes.Table (N).Sloc := Val;
2294 function Sloc (N : Node_Id) return Source_Ptr is
2296 return Nodes.Table (N).Sloc;
2303 function Traverse_Func (Node : Node_Id) return Traverse_Result is
2305 function Traverse_Field (Fld : Union_Id) return Traverse_Result;
2306 -- Fld is one of the fields of Node. If the field points to a
2307 -- syntactic node or list, then this node or list is traversed,
2308 -- and the result is the result of this traversal. Otherwise
2309 -- a value of True is returned with no processing.
2311 --------------------
2312 -- Traverse_Field --
2313 --------------------
2315 function Traverse_Field (Fld : Union_Id) return Traverse_Result is
2317 if Fld = Union_Id (Empty) then
2320 -- Descendent is a node
2322 elsif Fld in Node_Range then
2324 -- Traverse descendent that is syntactic subtree node
2326 if Parent (Node_Id (Fld)) = Node
2327 or else Original_Node (Parent (Node_Id (Fld))) = Node
2329 return Traverse_Func (Node_Id (Fld));
2331 -- Node that is not a syntactic subtree
2337 -- Descendent is a list
2339 elsif Fld in List_Range then
2341 -- Traverse descendent that is a syntactic subtree list
2343 if Parent (List_Id (Fld)) = Node
2344 or else Original_Node (Parent (List_Id (Fld))) = Node
2347 Elmt : Node_Id := First (List_Id (Fld));
2349 while Present (Elmt) loop
2350 if Traverse_Func (Elmt) = Abandon then
2360 -- List that is not a syntactic subtree
2366 -- Field was not a node or a list
2373 -- Start of processing for Traverse_Func
2376 case Process (Node) is
2384 if Traverse_Field (Union_Id (Field1 (Node))) = Abandon
2386 Traverse_Field (Union_Id (Field2 (Node))) = Abandon
2388 Traverse_Field (Union_Id (Field3 (Node))) = Abandon
2390 Traverse_Field (Union_Id (Field4 (Node))) = Abandon
2392 Traverse_Field (Union_Id (Field5 (Node))) = Abandon
2402 Onode : constant Node_Id := Original_Node (Node);
2405 if Traverse_Field (Union_Id (Field1 (Onode))) = Abandon
2407 Traverse_Field (Union_Id (Field2 (Onode))) = Abandon
2409 Traverse_Field (Union_Id (Field3 (Onode))) = Abandon
2411 Traverse_Field (Union_Id (Field4 (Onode))) = Abandon
2413 Traverse_Field (Union_Id (Field5 (Onode))) = Abandon
2428 procedure Traverse_Proc (Node : Node_Id) is
2429 function Traverse is new Traverse_Func (Process);
2430 Discard : Traverse_Result;
2431 pragma Warnings (Off, Discard);
2434 Discard := Traverse (Node);
2441 procedure Tree_Read is
2443 Tree_Read_Int (Node_Count);
2445 Orig_Nodes.Tree_Read;
2452 procedure Tree_Write is
2454 Tree_Write_Int (Node_Count);
2456 Orig_Nodes.Tree_Write;
2459 ------------------------------
2460 -- Unchecked Access Package --
2461 ------------------------------
2463 package body Unchecked_Access is
2465 function Field1 (N : Node_Id) return Union_Id is
2467 pragma Assert (N in Nodes.First .. Nodes.Last);
2468 return Nodes.Table (N).Field1;
2471 function Field2 (N : Node_Id) return Union_Id is
2473 pragma Assert (N in Nodes.First .. Nodes.Last);
2474 return Nodes.Table (N).Field2;
2477 function Field3 (N : Node_Id) return Union_Id is
2479 pragma Assert (N in Nodes.First .. Nodes.Last);
2480 return Nodes.Table (N).Field3;
2483 function Field4 (N : Node_Id) return Union_Id is
2485 pragma Assert (N in Nodes.First .. Nodes.Last);
2486 return Nodes.Table (N).Field4;
2489 function Field5 (N : Node_Id) return Union_Id is
2491 pragma Assert (N in Nodes.First .. Nodes.Last);
2492 return Nodes.Table (N).Field5;
2495 function Field6 (N : Node_Id) return Union_Id is
2497 pragma Assert (Nkind (N) in N_Entity);
2498 return Nodes.Table (N + 1).Field6;
2501 function Field7 (N : Node_Id) return Union_Id is
2503 pragma Assert (Nkind (N) in N_Entity);
2504 return Nodes.Table (N + 1).Field7;
2507 function Field8 (N : Node_Id) return Union_Id is
2509 pragma Assert (Nkind (N) in N_Entity);
2510 return Nodes.Table (N + 1).Field8;
2513 function Field9 (N : Node_Id) return Union_Id is
2515 pragma Assert (Nkind (N) in N_Entity);
2516 return Nodes.Table (N + 1).Field9;
2519 function Field10 (N : Node_Id) return Union_Id is
2521 pragma Assert (Nkind (N) in N_Entity);
2522 return Nodes.Table (N + 1).Field10;
2525 function Field11 (N : Node_Id) return Union_Id is
2527 pragma Assert (Nkind (N) in N_Entity);
2528 return Nodes.Table (N + 1).Field11;
2531 function Field12 (N : Node_Id) return Union_Id is
2533 pragma Assert (Nkind (N) in N_Entity);
2534 return Nodes.Table (N + 1).Field12;
2537 function Field13 (N : Node_Id) return Union_Id is
2539 pragma Assert (Nkind (N) in N_Entity);
2540 return Nodes.Table (N + 2).Field6;
2543 function Field14 (N : Node_Id) return Union_Id is
2545 pragma Assert (Nkind (N) in N_Entity);
2546 return Nodes.Table (N + 2).Field7;
2549 function Field15 (N : Node_Id) return Union_Id is
2551 pragma Assert (Nkind (N) in N_Entity);
2552 return Nodes.Table (N + 2).Field8;
2555 function Field16 (N : Node_Id) return Union_Id is
2557 pragma Assert (Nkind (N) in N_Entity);
2558 return Nodes.Table (N + 2).Field9;
2561 function Field17 (N : Node_Id) return Union_Id is
2563 pragma Assert (Nkind (N) in N_Entity);
2564 return Nodes.Table (N + 2).Field10;
2567 function Field18 (N : Node_Id) return Union_Id is
2569 pragma Assert (Nkind (N) in N_Entity);
2570 return Nodes.Table (N + 2).Field11;
2573 function Field19 (N : Node_Id) return Union_Id is
2575 pragma Assert (Nkind (N) in N_Entity);
2576 return Nodes.Table (N + 3).Field6;
2579 function Field20 (N : Node_Id) return Union_Id is
2581 pragma Assert (Nkind (N) in N_Entity);
2582 return Nodes.Table (N + 3).Field7;
2585 function Field21 (N : Node_Id) return Union_Id is
2587 pragma Assert (Nkind (N) in N_Entity);
2588 return Nodes.Table (N + 3).Field8;
2591 function Field22 (N : Node_Id) return Union_Id is
2593 pragma Assert (Nkind (N) in N_Entity);
2594 return Nodes.Table (N + 3).Field9;
2597 function Field23 (N : Node_Id) return Union_Id is
2599 pragma Assert (Nkind (N) in N_Entity);
2600 return Nodes.Table (N + 3).Field10;
2603 function Node1 (N : Node_Id) return Node_Id is
2605 pragma Assert (N in Nodes.First .. Nodes.Last);
2606 return Node_Id (Nodes.Table (N).Field1);
2609 function Node2 (N : Node_Id) return Node_Id is
2611 pragma Assert (N in Nodes.First .. Nodes.Last);
2612 return Node_Id (Nodes.Table (N).Field2);
2615 function Node3 (N : Node_Id) return Node_Id is
2617 pragma Assert (N in Nodes.First .. Nodes.Last);
2618 return Node_Id (Nodes.Table (N).Field3);
2621 function Node4 (N : Node_Id) return Node_Id is
2623 pragma Assert (N in Nodes.First .. Nodes.Last);
2624 return Node_Id (Nodes.Table (N).Field4);
2627 function Node5 (N : Node_Id) return Node_Id is
2629 pragma Assert (N in Nodes.First .. Nodes.Last);
2630 return Node_Id (Nodes.Table (N).Field5);
2633 function Node6 (N : Node_Id) return Node_Id is
2635 pragma Assert (Nkind (N) in N_Entity);
2636 return Node_Id (Nodes.Table (N + 1).Field6);
2639 function Node7 (N : Node_Id) return Node_Id is
2641 pragma Assert (Nkind (N) in N_Entity);
2642 return Node_Id (Nodes.Table (N + 1).Field7);
2645 function Node8 (N : Node_Id) return Node_Id is
2647 pragma Assert (Nkind (N) in N_Entity);
2648 return Node_Id (Nodes.Table (N + 1).Field8);
2651 function Node9 (N : Node_Id) return Node_Id is
2653 pragma Assert (Nkind (N) in N_Entity);
2654 return Node_Id (Nodes.Table (N + 1).Field9);
2657 function Node10 (N : Node_Id) return Node_Id is
2659 pragma Assert (Nkind (N) in N_Entity);
2660 return Node_Id (Nodes.Table (N + 1).Field10);
2663 function Node11 (N : Node_Id) return Node_Id is
2665 pragma Assert (Nkind (N) in N_Entity);
2666 return Node_Id (Nodes.Table (N + 1).Field11);
2669 function Node12 (N : Node_Id) return Node_Id is
2671 pragma Assert (Nkind (N) in N_Entity);
2672 return Node_Id (Nodes.Table (N + 1).Field12);
2675 function Node13 (N : Node_Id) return Node_Id is
2677 pragma Assert (Nkind (N) in N_Entity);
2678 return Node_Id (Nodes.Table (N + 2).Field6);
2681 function Node14 (N : Node_Id) return Node_Id is
2683 pragma Assert (Nkind (N) in N_Entity);
2684 return Node_Id (Nodes.Table (N + 2).Field7);
2687 function Node15 (N : Node_Id) return Node_Id is
2689 pragma Assert (Nkind (N) in N_Entity);
2690 return Node_Id (Nodes.Table (N + 2).Field8);
2693 function Node16 (N : Node_Id) return Node_Id is
2695 pragma Assert (Nkind (N) in N_Entity);
2696 return Node_Id (Nodes.Table (N + 2).Field9);
2699 function Node17 (N : Node_Id) return Node_Id is
2701 pragma Assert (Nkind (N) in N_Entity);
2702 return Node_Id (Nodes.Table (N + 2).Field10);
2705 function Node18 (N : Node_Id) return Node_Id is
2707 pragma Assert (Nkind (N) in N_Entity);
2708 return Node_Id (Nodes.Table (N + 2).Field11);
2711 function Node19 (N : Node_Id) return Node_Id is
2713 pragma Assert (Nkind (N) in N_Entity);
2714 return Node_Id (Nodes.Table (N + 3).Field6);
2717 function Node20 (N : Node_Id) return Node_Id is
2719 pragma Assert (Nkind (N) in N_Entity);
2720 return Node_Id (Nodes.Table (N + 3).Field7);
2723 function Node21 (N : Node_Id) return Node_Id is
2725 pragma Assert (Nkind (N) in N_Entity);
2726 return Node_Id (Nodes.Table (N + 3).Field8);
2729 function Node22 (N : Node_Id) return Node_Id is
2731 pragma Assert (Nkind (N) in N_Entity);
2732 return Node_Id (Nodes.Table (N + 3).Field9);
2735 function Node23 (N : Node_Id) return Node_Id is
2737 pragma Assert (Nkind (N) in N_Entity);
2738 return Node_Id (Nodes.Table (N + 3).Field10);
2741 function List1 (N : Node_Id) return List_Id is
2743 pragma Assert (N in Nodes.First .. Nodes.Last);
2744 return List_Id (Nodes.Table (N).Field1);
2747 function List2 (N : Node_Id) return List_Id is
2749 pragma Assert (N in Nodes.First .. Nodes.Last);
2750 return List_Id (Nodes.Table (N).Field2);
2753 function List3 (N : Node_Id) return List_Id is
2755 pragma Assert (N in Nodes.First .. Nodes.Last);
2756 return List_Id (Nodes.Table (N).Field3);
2759 function List4 (N : Node_Id) return List_Id is
2761 pragma Assert (N in Nodes.First .. Nodes.Last);
2762 return List_Id (Nodes.Table (N).Field4);
2765 function List5 (N : Node_Id) return List_Id is
2767 pragma Assert (N in Nodes.First .. Nodes.Last);
2768 return List_Id (Nodes.Table (N).Field5);
2771 function List10 (N : Node_Id) return List_Id is
2773 pragma Assert (Nkind (N) in N_Entity);
2774 return List_Id (Nodes.Table (N + 1).Field10);
2777 function List14 (N : Node_Id) return List_Id is
2779 pragma Assert (Nkind (N) in N_Entity);
2780 return List_Id (Nodes.Table (N + 2).Field7);
2783 function Elist2 (N : Node_Id) return Elist_Id is
2785 return Elist_Id (Nodes.Table (N).Field2);
2788 function Elist3 (N : Node_Id) return Elist_Id is
2790 return Elist_Id (Nodes.Table (N).Field3);
2793 function Elist4 (N : Node_Id) return Elist_Id is
2795 return Elist_Id (Nodes.Table (N).Field4);
2798 function Elist8 (N : Node_Id) return Elist_Id is
2800 pragma Assert (Nkind (N) in N_Entity);
2801 return Elist_Id (Nodes.Table (N + 1).Field8);
2804 function Elist13 (N : Node_Id) return Elist_Id is
2806 pragma Assert (Nkind (N) in N_Entity);
2807 return Elist_Id (Nodes.Table (N + 2).Field6);
2810 function Elist15 (N : Node_Id) return Elist_Id is
2812 pragma Assert (Nkind (N) in N_Entity);
2813 return Elist_Id (Nodes.Table (N + 2).Field8);
2816 function Elist16 (N : Node_Id) return Elist_Id is
2818 pragma Assert (Nkind (N) in N_Entity);
2819 return Elist_Id (Nodes.Table (N + 2).Field9);
2822 function Elist18 (N : Node_Id) return Elist_Id is
2824 pragma Assert (Nkind (N) in N_Entity);
2825 return Elist_Id (Nodes.Table (N + 2).Field11);
2828 function Elist21 (N : Node_Id) return Elist_Id is
2830 pragma Assert (Nkind (N) in N_Entity);
2831 return Elist_Id (Nodes.Table (N + 3).Field8);
2834 function Elist23 (N : Node_Id) return Elist_Id is
2836 pragma Assert (Nkind (N) in N_Entity);
2837 return Elist_Id (Nodes.Table (N + 3).Field10);
2840 function Name1 (N : Node_Id) return Name_Id is
2842 pragma Assert (N in Nodes.First .. Nodes.Last);
2843 return Name_Id (Nodes.Table (N).Field1);
2846 function Name2 (N : Node_Id) return Name_Id is
2848 pragma Assert (N in Nodes.First .. Nodes.Last);
2849 return Name_Id (Nodes.Table (N).Field2);
2852 function Str3 (N : Node_Id) return String_Id is
2854 pragma Assert (N in Nodes.First .. Nodes.Last);
2855 return String_Id (Nodes.Table (N).Field3);
2858 function Char_Code2 (N : Node_Id) return Char_Code is
2860 pragma Assert (N in Nodes.First .. Nodes.Last);
2861 return Char_Code (Nodes.Table (N).Field2 - Char_Code_Bias);
2864 function Uint3 (N : Node_Id) return Uint is
2865 pragma Assert (N in Nodes.First .. Nodes.Last);
2866 U : constant Union_Id := Nodes.Table (N).Field3;
2872 return From_Union (U);
2876 function Uint4 (N : Node_Id) return Uint is
2877 pragma Assert (N in Nodes.First .. Nodes.Last);
2878 U : constant Union_Id := Nodes.Table (N).Field4;
2884 return From_Union (U);
2888 function Uint5 (N : Node_Id) return Uint is
2889 pragma Assert (N in Nodes.First .. Nodes.Last);
2890 U : constant Union_Id := Nodes.Table (N).Field5;
2896 return From_Union (U);
2900 function Uint8 (N : Node_Id) return Uint is
2901 pragma Assert (Nkind (N) in N_Entity);
2902 U : constant Union_Id := Nodes.Table (N + 1).Field8;
2908 return From_Union (U);
2912 function Uint9 (N : Node_Id) return Uint is
2913 pragma Assert (Nkind (N) in N_Entity);
2914 U : constant Union_Id := Nodes.Table (N + 1).Field9;
2920 return From_Union (U);
2924 function Uint11 (N : Node_Id) return Uint is
2925 pragma Assert (Nkind (N) in N_Entity);
2926 U : constant Union_Id := Nodes.Table (N + 1).Field11;
2932 return From_Union (U);
2936 function Uint10 (N : Node_Id) return Uint is
2937 pragma Assert (Nkind (N) in N_Entity);
2938 U : constant Union_Id := Nodes.Table (N + 1).Field10;
2944 return From_Union (U);
2948 function Uint12 (N : Node_Id) return Uint is
2949 pragma Assert (Nkind (N) in N_Entity);
2950 U : constant Union_Id := Nodes.Table (N + 1).Field12;
2956 return From_Union (U);
2960 function Uint13 (N : Node_Id) return Uint is
2961 pragma Assert (Nkind (N) in N_Entity);
2962 U : constant Union_Id := Nodes.Table (N + 2).Field6;
2968 return From_Union (U);
2972 function Uint14 (N : Node_Id) return Uint is
2973 pragma Assert (Nkind (N) in N_Entity);
2974 U : constant Union_Id := Nodes.Table (N + 2).Field7;
2980 return From_Union (U);
2984 function Uint15 (N : Node_Id) return Uint is
2985 pragma Assert (Nkind (N) in N_Entity);
2986 U : constant Union_Id := Nodes.Table (N + 2).Field8;
2992 return From_Union (U);
2996 function Uint16 (N : Node_Id) return Uint is
2997 pragma Assert (Nkind (N) in N_Entity);
2998 U : constant Union_Id := Nodes.Table (N + 2).Field9;
3004 return From_Union (U);
3008 function Uint17 (N : Node_Id) return Uint is
3009 pragma Assert (Nkind (N) in N_Entity);
3010 U : constant Union_Id := Nodes.Table (N + 2).Field10;
3016 return From_Union (U);
3020 function Uint22 (N : Node_Id) return Uint is
3021 pragma Assert (Nkind (N) in N_Entity);
3022 U : constant Union_Id := Nodes.Table (N + 3).Field9;
3028 return From_Union (U);
3032 function Ureal3 (N : Node_Id) return Ureal is
3034 pragma Assert (N in Nodes.First .. Nodes.Last);
3035 return From_Union (Nodes.Table (N).Field3);
3038 function Ureal18 (N : Node_Id) return Ureal is
3040 pragma Assert (Nkind (N) in N_Entity);
3041 return From_Union (Nodes.Table (N + 2).Field11);
3044 function Ureal21 (N : Node_Id) return Ureal is
3046 pragma Assert (Nkind (N) in N_Entity);
3047 return From_Union (Nodes.Table (N + 3).Field8);
3050 function Flag4 (N : Node_Id) return Boolean is
3052 pragma Assert (N in Nodes.First .. Nodes.Last);
3053 return Nodes.Table (N).Flag4;
3056 function Flag5 (N : Node_Id) return Boolean is
3058 pragma Assert (N in Nodes.First .. Nodes.Last);
3059 return Nodes.Table (N).Flag5;
3062 function Flag6 (N : Node_Id) return Boolean is
3064 pragma Assert (N in Nodes.First .. Nodes.Last);
3065 return Nodes.Table (N).Flag6;
3068 function Flag7 (N : Node_Id) return Boolean is
3070 pragma Assert (N in Nodes.First .. Nodes.Last);
3071 return Nodes.Table (N).Flag7;
3074 function Flag8 (N : Node_Id) return Boolean is
3076 pragma Assert (N in Nodes.First .. Nodes.Last);
3077 return Nodes.Table (N).Flag8;
3080 function Flag9 (N : Node_Id) return Boolean is
3082 pragma Assert (N in Nodes.First .. Nodes.Last);
3083 return Nodes.Table (N).Flag9;
3086 function Flag10 (N : Node_Id) return Boolean is
3088 pragma Assert (N in Nodes.First .. Nodes.Last);
3089 return Nodes.Table (N).Flag10;
3092 function Flag11 (N : Node_Id) return Boolean is
3094 pragma Assert (N in Nodes.First .. Nodes.Last);
3095 return Nodes.Table (N).Flag11;
3098 function Flag12 (N : Node_Id) return Boolean is
3100 pragma Assert (N in Nodes.First .. Nodes.Last);
3101 return Nodes.Table (N).Flag12;
3104 function Flag13 (N : Node_Id) return Boolean is
3106 pragma Assert (N in Nodes.First .. Nodes.Last);
3107 return Nodes.Table (N).Flag13;
3110 function Flag14 (N : Node_Id) return Boolean is
3112 pragma Assert (N in Nodes.First .. Nodes.Last);
3113 return Nodes.Table (N).Flag14;
3116 function Flag15 (N : Node_Id) return Boolean is
3118 pragma Assert (N in Nodes.First .. Nodes.Last);
3119 return Nodes.Table (N).Flag15;
3122 function Flag16 (N : Node_Id) return Boolean is
3124 pragma Assert (N in Nodes.First .. Nodes.Last);
3125 return Nodes.Table (N).Flag16;
3128 function Flag17 (N : Node_Id) return Boolean is
3130 pragma Assert (N in Nodes.First .. Nodes.Last);
3131 return Nodes.Table (N).Flag17;
3134 function Flag18 (N : Node_Id) return Boolean is
3136 pragma Assert (N in Nodes.First .. Nodes.Last);
3137 return Nodes.Table (N).Flag18;
3140 function Flag19 (N : Node_Id) return Boolean is
3142 pragma Assert (Nkind (N) in N_Entity);
3143 return Nodes.Table (N + 1).In_List;
3146 function Flag20 (N : Node_Id) return Boolean is
3148 pragma Assert (Nkind (N) in N_Entity);
3149 return Nodes.Table (N + 1).Unused_1;
3152 function Flag21 (N : Node_Id) return Boolean is
3154 pragma Assert (Nkind (N) in N_Entity);
3155 return Nodes.Table (N + 1).Rewrite_Ins;
3158 function Flag22 (N : Node_Id) return Boolean is
3160 pragma Assert (Nkind (N) in N_Entity);
3161 return Nodes.Table (N + 1).Analyzed;
3164 function Flag23 (N : Node_Id) return Boolean is
3166 pragma Assert (Nkind (N) in N_Entity);
3167 return Nodes.Table (N + 1).Comes_From_Source;
3170 function Flag24 (N : Node_Id) return Boolean is
3172 pragma Assert (Nkind (N) in N_Entity);
3173 return Nodes.Table (N + 1).Error_Posted;
3176 function Flag25 (N : Node_Id) return Boolean is
3178 pragma Assert (Nkind (N) in N_Entity);
3179 return Nodes.Table (N + 1).Flag4;
3182 function Flag26 (N : Node_Id) return Boolean is
3184 pragma Assert (Nkind (N) in N_Entity);
3185 return Nodes.Table (N + 1).Flag5;
3188 function Flag27 (N : Node_Id) return Boolean is
3190 pragma Assert (Nkind (N) in N_Entity);
3191 return Nodes.Table (N + 1).Flag6;
3194 function Flag28 (N : Node_Id) return Boolean is
3196 pragma Assert (Nkind (N) in N_Entity);
3197 return Nodes.Table (N + 1).Flag7;
3200 function Flag29 (N : Node_Id) return Boolean is
3202 pragma Assert (Nkind (N) in N_Entity);
3203 return Nodes.Table (N + 1).Flag8;
3206 function Flag30 (N : Node_Id) return Boolean is
3208 pragma Assert (Nkind (N) in N_Entity);
3209 return Nodes.Table (N + 1).Flag9;
3212 function Flag31 (N : Node_Id) return Boolean is
3214 pragma Assert (Nkind (N) in N_Entity);
3215 return Nodes.Table (N + 1).Flag10;
3218 function Flag32 (N : Node_Id) return Boolean is
3220 pragma Assert (Nkind (N) in N_Entity);
3221 return Nodes.Table (N + 1).Flag11;
3224 function Flag33 (N : Node_Id) return Boolean is
3226 pragma Assert (Nkind (N) in N_Entity);
3227 return Nodes.Table (N + 1).Flag12;
3230 function Flag34 (N : Node_Id) return Boolean is
3232 pragma Assert (Nkind (N) in N_Entity);
3233 return Nodes.Table (N + 1).Flag13;
3236 function Flag35 (N : Node_Id) return Boolean is
3238 pragma Assert (Nkind (N) in N_Entity);
3239 return Nodes.Table (N + 1).Flag14;
3242 function Flag36 (N : Node_Id) return Boolean is
3244 pragma Assert (Nkind (N) in N_Entity);
3245 return Nodes.Table (N + 1).Flag15;
3248 function Flag37 (N : Node_Id) return Boolean is
3250 pragma Assert (Nkind (N) in N_Entity);
3251 return Nodes.Table (N + 1).Flag16;
3254 function Flag38 (N : Node_Id) return Boolean is
3256 pragma Assert (Nkind (N) in N_Entity);
3257 return Nodes.Table (N + 1).Flag17;
3260 function Flag39 (N : Node_Id) return Boolean is
3262 pragma Assert (Nkind (N) in N_Entity);
3263 return Nodes.Table (N + 1).Flag18;
3266 function Flag40 (N : Node_Id) return Boolean is
3268 pragma Assert (Nkind (N) in N_Entity);
3269 return Nodes.Table (N + 2).In_List;
3272 function Flag41 (N : Node_Id) return Boolean is
3274 pragma Assert (Nkind (N) in N_Entity);
3275 return Nodes.Table (N + 2).Unused_1;
3278 function Flag42 (N : Node_Id) return Boolean is
3280 pragma Assert (Nkind (N) in N_Entity);
3281 return Nodes.Table (N + 2).Rewrite_Ins;
3284 function Flag43 (N : Node_Id) return Boolean is
3286 pragma Assert (Nkind (N) in N_Entity);
3287 return Nodes.Table (N + 2).Analyzed;
3290 function Flag44 (N : Node_Id) return Boolean is
3292 pragma Assert (Nkind (N) in N_Entity);
3293 return Nodes.Table (N + 2).Comes_From_Source;
3296 function Flag45 (N : Node_Id) return Boolean is
3298 pragma Assert (Nkind (N) in N_Entity);
3299 return Nodes.Table (N + 2).Error_Posted;
3302 function Flag46 (N : Node_Id) return Boolean is
3304 pragma Assert (Nkind (N) in N_Entity);
3305 return Nodes.Table (N + 2).Flag4;
3308 function Flag47 (N : Node_Id) return Boolean is
3310 pragma Assert (Nkind (N) in N_Entity);
3311 return Nodes.Table (N + 2).Flag5;
3314 function Flag48 (N : Node_Id) return Boolean is
3316 pragma Assert (Nkind (N) in N_Entity);
3317 return Nodes.Table (N + 2).Flag6;
3320 function Flag49 (N : Node_Id) return Boolean is
3322 pragma Assert (Nkind (N) in N_Entity);
3323 return Nodes.Table (N + 2).Flag7;
3326 function Flag50 (N : Node_Id) return Boolean is
3328 pragma Assert (Nkind (N) in N_Entity);
3329 return Nodes.Table (N + 2).Flag8;
3332 function Flag51 (N : Node_Id) return Boolean is
3334 pragma Assert (Nkind (N) in N_Entity);
3335 return Nodes.Table (N + 2).Flag9;
3338 function Flag52 (N : Node_Id) return Boolean is
3340 pragma Assert (Nkind (N) in N_Entity);
3341 return Nodes.Table (N + 2).Flag10;
3344 function Flag53 (N : Node_Id) return Boolean is
3346 pragma Assert (Nkind (N) in N_Entity);
3347 return Nodes.Table (N + 2).Flag11;
3350 function Flag54 (N : Node_Id) return Boolean is
3352 pragma Assert (Nkind (N) in N_Entity);
3353 return Nodes.Table (N + 2).Flag12;
3356 function Flag55 (N : Node_Id) return Boolean is
3358 pragma Assert (Nkind (N) in N_Entity);
3359 return Nodes.Table (N + 2).Flag13;
3362 function Flag56 (N : Node_Id) return Boolean is
3364 pragma Assert (Nkind (N) in N_Entity);
3365 return Nodes.Table (N + 2).Flag14;
3368 function Flag57 (N : Node_Id) return Boolean is
3370 pragma Assert (Nkind (N) in N_Entity);
3371 return Nodes.Table (N + 2).Flag15;
3374 function Flag58 (N : Node_Id) return Boolean is
3376 pragma Assert (Nkind (N) in N_Entity);
3377 return Nodes.Table (N + 2).Flag16;
3380 function Flag59 (N : Node_Id) return Boolean is
3382 pragma Assert (Nkind (N) in N_Entity);
3383 return Nodes.Table (N + 2).Flag17;
3386 function Flag60 (N : Node_Id) return Boolean is
3388 pragma Assert (Nkind (N) in N_Entity);
3389 return Nodes.Table (N + 2).Flag18;
3392 function Flag61 (N : Node_Id) return Boolean is
3394 pragma Assert (Nkind (N) in N_Entity);
3395 return Nodes.Table (N + 1).Pflag1;
3398 function Flag62 (N : Node_Id) return Boolean is
3400 pragma Assert (Nkind (N) in N_Entity);
3401 return Nodes.Table (N + 1).Pflag2;
3404 function Flag63 (N : Node_Id) return Boolean is
3406 pragma Assert (Nkind (N) in N_Entity);
3407 return Nodes.Table (N + 2).Pflag1;
3410 function Flag64 (N : Node_Id) return Boolean is
3412 pragma Assert (Nkind (N) in N_Entity);
3413 return Nodes.Table (N + 2).Pflag2;
3416 function Flag65 (N : Node_Id) return Boolean is
3418 pragma Assert (Nkind (N) in N_Entity);
3419 return To_Flag_Byte (Nodes.Table (N + 2).Nkind).Flag65;
3422 function Flag66 (N : Node_Id) return Boolean is
3424 pragma Assert (Nkind (N) in N_Entity);
3425 return To_Flag_Byte (Nodes.Table (N + 2).Nkind).Flag66;
3428 function Flag67 (N : Node_Id) return Boolean is
3430 pragma Assert (Nkind (N) in N_Entity);
3431 return To_Flag_Byte (Nodes.Table (N + 2).Nkind).Flag67;
3434 function Flag68 (N : Node_Id) return Boolean is
3436 pragma Assert (Nkind (N) in N_Entity);
3437 return To_Flag_Byte (Nodes.Table (N + 2).Nkind).Flag68;
3440 function Flag69 (N : Node_Id) return Boolean is
3442 pragma Assert (Nkind (N) in N_Entity);
3443 return To_Flag_Byte (Nodes.Table (N + 2).Nkind).Flag69;
3446 function Flag70 (N : Node_Id) return Boolean is
3448 pragma Assert (Nkind (N) in N_Entity);
3449 return To_Flag_Byte (Nodes.Table (N + 2).Nkind).Flag70;
3452 function Flag71 (N : Node_Id) return Boolean is
3454 pragma Assert (Nkind (N) in N_Entity);
3455 return To_Flag_Byte (Nodes.Table (N + 2).Nkind).Flag71;
3458 function Flag72 (N : Node_Id) return Boolean is
3460 pragma Assert (Nkind (N) in N_Entity);
3461 return To_Flag_Byte (Nodes.Table (N + 2).Nkind).Flag72;
3464 function Flag73 (N : Node_Id) return Boolean is
3466 pragma Assert (Nkind (N) in N_Entity);
3467 return To_Flag_Word (Nodes.Table (N + 2).Field12).Flag73;
3470 function Flag74 (N : Node_Id) return Boolean is
3472 pragma Assert (Nkind (N) in N_Entity);
3473 return To_Flag_Word (Nodes.Table (N + 2).Field12).Flag74;
3476 function Flag75 (N : Node_Id) return Boolean is
3478 pragma Assert (Nkind (N) in N_Entity);
3479 return To_Flag_Word (Nodes.Table (N + 2).Field12).Flag75;
3482 function Flag76 (N : Node_Id) return Boolean is
3484 pragma Assert (Nkind (N) in N_Entity);
3485 return To_Flag_Word (Nodes.Table (N + 2).Field12).Flag76;
3488 function Flag77 (N : Node_Id) return Boolean is
3490 pragma Assert (Nkind (N) in N_Entity);
3491 return To_Flag_Word (Nodes.Table (N + 2).Field12).Flag77;
3494 function Flag78 (N : Node_Id) return Boolean is
3496 pragma Assert (Nkind (N) in N_Entity);
3497 return To_Flag_Word (Nodes.Table (N + 2).Field12).Flag78;
3500 function Flag79 (N : Node_Id) return Boolean is
3502 pragma Assert (Nkind (N) in N_Entity);
3503 return To_Flag_Word (Nodes.Table (N + 2).Field12).Flag79;
3506 function Flag80 (N : Node_Id) return Boolean is
3508 pragma Assert (Nkind (N) in N_Entity);
3509 return To_Flag_Word (Nodes.Table (N + 2).Field12).Flag80;
3512 function Flag81 (N : Node_Id) return Boolean is
3514 pragma Assert (Nkind (N) in N_Entity);
3515 return To_Flag_Word (Nodes.Table (N + 2).Field12).Flag81;
3518 function Flag82 (N : Node_Id) return Boolean is
3520 pragma Assert (Nkind (N) in N_Entity);
3521 return To_Flag_Word (Nodes.Table (N + 2).Field12).Flag82;
3524 function Flag83 (N : Node_Id) return Boolean is
3526 pragma Assert (Nkind (N) in N_Entity);
3527 return To_Flag_Word (Nodes.Table (N + 2).Field12).Flag83;
3530 function Flag84 (N : Node_Id) return Boolean is
3532 pragma Assert (Nkind (N) in N_Entity);
3533 return To_Flag_Word (Nodes.Table (N + 2).Field12).Flag84;
3536 function Flag85 (N : Node_Id) return Boolean is
3538 pragma Assert (Nkind (N) in N_Entity);
3539 return To_Flag_Word (Nodes.Table (N + 2).Field12).Flag85;
3542 function Flag86 (N : Node_Id) return Boolean is
3544 pragma Assert (Nkind (N) in N_Entity);
3545 return To_Flag_Word (Nodes.Table (N + 2).Field12).Flag86;
3548 function Flag87 (N : Node_Id) return Boolean is
3550 pragma Assert (Nkind (N) in N_Entity);
3551 return To_Flag_Word (Nodes.Table (N + 2).Field12).Flag87;
3554 function Flag88 (N : Node_Id) return Boolean is
3556 pragma Assert (Nkind (N) in N_Entity);
3557 return To_Flag_Word (Nodes.Table (N + 2).Field12).Flag88;
3560 function Flag89 (N : Node_Id) return Boolean is
3562 pragma Assert (Nkind (N) in N_Entity);
3563 return To_Flag_Word (Nodes.Table (N + 2).Field12).Flag89;
3566 function Flag90 (N : Node_Id) return Boolean is
3568 pragma Assert (Nkind (N) in N_Entity);
3569 return To_Flag_Word (Nodes.Table (N + 2).Field12).Flag90;
3572 function Flag91 (N : Node_Id) return Boolean is
3574 pragma Assert (Nkind (N) in N_Entity);
3575 return To_Flag_Word (Nodes.Table (N + 2).Field12).Flag91;
3578 function Flag92 (N : Node_Id) return Boolean is
3580 pragma Assert (Nkind (N) in N_Entity);
3581 return To_Flag_Word (Nodes.Table (N + 2).Field12).Flag92;
3584 function Flag93 (N : Node_Id) return Boolean is
3586 pragma Assert (Nkind (N) in N_Entity);
3587 return To_Flag_Word (Nodes.Table (N + 2).Field12).Flag93;
3590 function Flag94 (N : Node_Id) return Boolean is
3592 pragma Assert (Nkind (N) in N_Entity);
3593 return To_Flag_Word (Nodes.Table (N + 2).Field12).Flag94;
3596 function Flag95 (N : Node_Id) return Boolean is
3598 pragma Assert (Nkind (N) in N_Entity);
3599 return To_Flag_Word (Nodes.Table (N + 2).Field12).Flag95;
3602 function Flag96 (N : Node_Id) return Boolean is
3604 pragma Assert (Nkind (N) in N_Entity);
3605 return To_Flag_Word (Nodes.Table (N + 2).Field12).Flag96;
3608 function Flag97 (N : Node_Id) return Boolean is
3610 pragma Assert (Nkind (N) in N_Entity);
3611 return To_Flag_Word2 (Nodes.Table (N + 3).Field12).Flag97;
3614 function Flag98 (N : Node_Id) return Boolean is
3616 pragma Assert (Nkind (N) in N_Entity);
3617 return To_Flag_Word2 (Nodes.Table (N + 3).Field12).Flag98;
3620 function Flag99 (N : Node_Id) return Boolean is
3622 pragma Assert (Nkind (N) in N_Entity);
3623 return To_Flag_Word2 (Nodes.Table (N + 3).Field12).Flag99;
3626 function Flag100 (N : Node_Id) return Boolean is
3628 pragma Assert (Nkind (N) in N_Entity);
3629 return To_Flag_Word2 (Nodes.Table (N + 3).Field12).Flag100;
3632 function Flag101 (N : Node_Id) return Boolean is
3634 pragma Assert (Nkind (N) in N_Entity);
3635 return To_Flag_Word2 (Nodes.Table (N + 3).Field12).Flag101;
3638 function Flag102 (N : Node_Id) return Boolean is
3640 pragma Assert (Nkind (N) in N_Entity);
3641 return To_Flag_Word2 (Nodes.Table (N + 3).Field12).Flag102;
3644 function Flag103 (N : Node_Id) return Boolean is
3646 pragma Assert (Nkind (N) in N_Entity);
3647 return To_Flag_Word2 (Nodes.Table (N + 3).Field12).Flag103;
3650 function Flag104 (N : Node_Id) return Boolean is
3652 pragma Assert (Nkind (N) in N_Entity);
3653 return To_Flag_Word2 (Nodes.Table (N + 3).Field12).Flag104;
3656 function Flag105 (N : Node_Id) return Boolean is
3658 pragma Assert (Nkind (N) in N_Entity);
3659 return To_Flag_Word2 (Nodes.Table (N + 3).Field12).Flag105;
3662 function Flag106 (N : Node_Id) return Boolean is
3664 pragma Assert (Nkind (N) in N_Entity);
3665 return To_Flag_Word2 (Nodes.Table (N + 3).Field12).Flag106;
3668 function Flag107 (N : Node_Id) return Boolean is
3670 pragma Assert (Nkind (N) in N_Entity);
3671 return To_Flag_Word2 (Nodes.Table (N + 3).Field12).Flag107;
3674 function Flag108 (N : Node_Id) return Boolean is
3676 pragma Assert (Nkind (N) in N_Entity);
3677 return To_Flag_Word2 (Nodes.Table (N + 3).Field12).Flag108;
3680 function Flag109 (N : Node_Id) return Boolean is
3682 pragma Assert (Nkind (N) in N_Entity);
3683 return To_Flag_Word2 (Nodes.Table (N + 3).Field12).Flag109;
3686 function Flag110 (N : Node_Id) return Boolean is
3688 pragma Assert (Nkind (N) in N_Entity);
3689 return To_Flag_Word2 (Nodes.Table (N + 3).Field12).Flag110;
3692 function Flag111 (N : Node_Id) return Boolean is
3694 pragma Assert (Nkind (N) in N_Entity);
3695 return To_Flag_Word2 (Nodes.Table (N + 3).Field12).Flag111;
3698 function Flag112 (N : Node_Id) return Boolean is
3700 pragma Assert (Nkind (N) in N_Entity);
3701 return To_Flag_Word2 (Nodes.Table (N + 3).Field12).Flag112;
3704 function Flag113 (N : Node_Id) return Boolean is
3706 pragma Assert (Nkind (N) in N_Entity);
3707 return To_Flag_Word2 (Nodes.Table (N + 3).Field12).Flag113;
3710 function Flag114 (N : Node_Id) return Boolean is
3712 pragma Assert (Nkind (N) in N_Entity);
3713 return To_Flag_Word2 (Nodes.Table (N + 3).Field12).Flag114;
3716 function Flag115 (N : Node_Id) return Boolean is
3718 pragma Assert (Nkind (N) in N_Entity);
3719 return To_Flag_Word2 (Nodes.Table (N + 3).Field12).Flag115;
3722 function Flag116 (N : Node_Id) return Boolean is
3724 pragma Assert (Nkind (N) in N_Entity);
3725 return To_Flag_Word2 (Nodes.Table (N + 3).Field12).Flag116;
3728 function Flag117 (N : Node_Id) return Boolean is
3730 pragma Assert (Nkind (N) in N_Entity);
3731 return To_Flag_Word2 (Nodes.Table (N + 3).Field12).Flag117;
3734 function Flag118 (N : Node_Id) return Boolean is
3736 pragma Assert (Nkind (N) in N_Entity);
3737 return To_Flag_Word2 (Nodes.Table (N + 3).Field12).Flag118;
3740 function Flag119 (N : Node_Id) return Boolean is
3742 pragma Assert (Nkind (N) in N_Entity);
3743 return To_Flag_Word2 (Nodes.Table (N + 3).Field12).Flag119;
3746 function Flag120 (N : Node_Id) return Boolean is
3748 pragma Assert (Nkind (N) in N_Entity);
3749 return To_Flag_Word2 (Nodes.Table (N + 3).Field12).Flag120;
3752 function Flag121 (N : Node_Id) return Boolean is
3754 pragma Assert (Nkind (N) in N_Entity);
3755 return To_Flag_Word2 (Nodes.Table (N + 3).Field12).Flag121;
3758 function Flag122 (N : Node_Id) return Boolean is
3760 pragma Assert (Nkind (N) in N_Entity);
3761 return To_Flag_Word2 (Nodes.Table (N + 3).Field12).Flag122;
3764 function Flag123 (N : Node_Id) return Boolean is
3766 pragma Assert (Nkind (N) in N_Entity);
3767 return To_Flag_Word2 (Nodes.Table (N + 3).Field12).Flag123;
3770 function Flag124 (N : Node_Id) return Boolean is
3772 pragma Assert (Nkind (N) in N_Entity);
3773 return To_Flag_Word2 (Nodes.Table (N + 3).Field12).Flag124;
3776 function Flag125 (N : Node_Id) return Boolean is
3778 pragma Assert (Nkind (N) in N_Entity);
3779 return To_Flag_Word2 (Nodes.Table (N + 3).Field12).Flag125;
3782 function Flag126 (N : Node_Id) return Boolean is
3784 pragma Assert (Nkind (N) in N_Entity);
3785 return To_Flag_Word2 (Nodes.Table (N + 3).Field12).Flag126;
3788 function Flag127 (N : Node_Id) return Boolean is
3790 pragma Assert (Nkind (N) in N_Entity);
3791 return To_Flag_Word2 (Nodes.Table (N + 3).Field12).Flag127;
3794 function Flag128 (N : Node_Id) return Boolean is
3796 pragma Assert (Nkind (N) in N_Entity);
3797 return To_Flag_Word2 (Nodes.Table (N + 3).Field12).Flag128;
3800 function Flag129 (N : Node_Id) return Boolean is
3802 pragma Assert (Nkind (N) in N_Entity);
3803 return Nodes.Table (N + 3).In_List;
3806 function Flag130 (N : Node_Id) return Boolean is
3808 pragma Assert (Nkind (N) in N_Entity);
3809 return Nodes.Table (N + 3).Unused_1;
3812 function Flag131 (N : Node_Id) return Boolean is
3814 pragma Assert (Nkind (N) in N_Entity);
3815 return Nodes.Table (N + 3).Rewrite_Ins;
3818 function Flag132 (N : Node_Id) return Boolean is
3820 pragma Assert (Nkind (N) in N_Entity);
3821 return Nodes.Table (N + 3).Analyzed;
3824 function Flag133 (N : Node_Id) return Boolean is
3826 pragma Assert (Nkind (N) in N_Entity);
3827 return Nodes.Table (N + 3).Comes_From_Source;
3830 function Flag134 (N : Node_Id) return Boolean is
3832 pragma Assert (Nkind (N) in N_Entity);
3833 return Nodes.Table (N + 3).Error_Posted;
3836 function Flag135 (N : Node_Id) return Boolean is
3838 pragma Assert (Nkind (N) in N_Entity);
3839 return Nodes.Table (N + 3).Flag4;
3842 function Flag136 (N : Node_Id) return Boolean is
3844 pragma Assert (Nkind (N) in N_Entity);
3845 return Nodes.Table (N + 3).Flag5;
3848 function Flag137 (N : Node_Id) return Boolean is
3850 pragma Assert (Nkind (N) in N_Entity);
3851 return Nodes.Table (N + 3).Flag6;
3854 function Flag138 (N : Node_Id) return Boolean is
3856 pragma Assert (Nkind (N) in N_Entity);
3857 return Nodes.Table (N + 3).Flag7;
3860 function Flag139 (N : Node_Id) return Boolean is
3862 pragma Assert (Nkind (N) in N_Entity);
3863 return Nodes.Table (N + 3).Flag8;
3866 function Flag140 (N : Node_Id) return Boolean is
3868 pragma Assert (Nkind (N) in N_Entity);
3869 return Nodes.Table (N + 3).Flag9;
3872 function Flag141 (N : Node_Id) return Boolean is
3874 pragma Assert (Nkind (N) in N_Entity);
3875 return Nodes.Table (N + 3).Flag10;
3878 function Flag142 (N : Node_Id) return Boolean is
3880 pragma Assert (Nkind (N) in N_Entity);
3881 return Nodes.Table (N + 3).Flag11;
3884 function Flag143 (N : Node_Id) return Boolean is
3886 pragma Assert (Nkind (N) in N_Entity);
3887 return Nodes.Table (N + 3).Flag12;
3890 function Flag144 (N : Node_Id) return Boolean is
3892 pragma Assert (Nkind (N) in N_Entity);
3893 return Nodes.Table (N + 3).Flag13;
3896 function Flag145 (N : Node_Id) return Boolean is
3898 pragma Assert (Nkind (N) in N_Entity);
3899 return Nodes.Table (N + 3).Flag14;
3902 function Flag146 (N : Node_Id) return Boolean is
3904 pragma Assert (Nkind (N) in N_Entity);
3905 return Nodes.Table (N + 3).Flag15;
3908 function Flag147 (N : Node_Id) return Boolean is
3910 pragma Assert (Nkind (N) in N_Entity);
3911 return Nodes.Table (N + 3).Flag16;
3914 function Flag148 (N : Node_Id) return Boolean is
3916 pragma Assert (Nkind (N) in N_Entity);
3917 return Nodes.Table (N + 3).Flag17;
3920 function Flag149 (N : Node_Id) return Boolean is
3922 pragma Assert (Nkind (N) in N_Entity);
3923 return Nodes.Table (N + 3).Flag18;
3926 function Flag150 (N : Node_Id) return Boolean is
3928 pragma Assert (Nkind (N) in N_Entity);
3929 return Nodes.Table (N + 3).Pflag1;
3932 function Flag151 (N : Node_Id) return Boolean is
3934 pragma Assert (Nkind (N) in N_Entity);
3935 return Nodes.Table (N + 3).Pflag2;
3938 function Flag152 (N : Node_Id) return Boolean is
3940 pragma Assert (Nkind (N) in N_Entity);
3941 return To_Flag_Word3 (Nodes.Table (N + 3).Field11).Flag152;
3944 function Flag153 (N : Node_Id) return Boolean is
3946 pragma Assert (Nkind (N) in N_Entity);
3947 return To_Flag_Word3 (Nodes.Table (N + 3).Field11).Flag153;
3950 function Flag154 (N : Node_Id) return Boolean is
3952 pragma Assert (Nkind (N) in N_Entity);
3953 return To_Flag_Word3 (Nodes.Table (N + 3).Field11).Flag154;
3956 function Flag155 (N : Node_Id) return Boolean is
3958 pragma Assert (Nkind (N) in N_Entity);
3959 return To_Flag_Word3 (Nodes.Table (N + 3).Field11).Flag155;
3962 function Flag156 (N : Node_Id) return Boolean is
3964 pragma Assert (Nkind (N) in N_Entity);
3965 return To_Flag_Word3 (Nodes.Table (N + 3).Field11).Flag156;
3968 function Flag157 (N : Node_Id) return Boolean is
3970 pragma Assert (Nkind (N) in N_Entity);
3971 return To_Flag_Word3 (Nodes.Table (N + 3).Field11).Flag157;
3974 function Flag158 (N : Node_Id) return Boolean is
3976 pragma Assert (Nkind (N) in N_Entity);
3977 return To_Flag_Word3 (Nodes.Table (N + 3).Field11).Flag158;
3980 function Flag159 (N : Node_Id) return Boolean is
3982 pragma Assert (Nkind (N) in N_Entity);
3983 return To_Flag_Word3 (Nodes.Table (N + 3).Field11).Flag159;
3986 function Flag160 (N : Node_Id) return Boolean is
3988 pragma Assert (Nkind (N) in N_Entity);
3989 return To_Flag_Word3 (Nodes.Table (N + 3).Field11).Flag160;
3992 function Flag161 (N : Node_Id) return Boolean is
3994 pragma Assert (Nkind (N) in N_Entity);
3995 return To_Flag_Word3 (Nodes.Table (N + 3).Field11).Flag161;
3998 function Flag162 (N : Node_Id) return Boolean is
4000 pragma Assert (Nkind (N) in N_Entity);
4001 return To_Flag_Word3 (Nodes.Table (N + 3).Field11).Flag162;
4004 function Flag163 (N : Node_Id) return Boolean is
4006 pragma Assert (Nkind (N) in N_Entity);
4007 return To_Flag_Word3 (Nodes.Table (N + 3).Field11).Flag163;
4010 function Flag164 (N : Node_Id) return Boolean is
4012 pragma Assert (Nkind (N) in N_Entity);
4013 return To_Flag_Word3 (Nodes.Table (N + 3).Field11).Flag164;
4016 function Flag165 (N : Node_Id) return Boolean is
4018 pragma Assert (Nkind (N) in N_Entity);
4019 return To_Flag_Word3 (Nodes.Table (N + 3).Field11).Flag165;
4022 function Flag166 (N : Node_Id) return Boolean is
4024 pragma Assert (Nkind (N) in N_Entity);
4025 return To_Flag_Word3 (Nodes.Table (N + 3).Field11).Flag166;
4028 function Flag167 (N : Node_Id) return Boolean is
4030 pragma Assert (Nkind (N) in N_Entity);
4031 return To_Flag_Word3 (Nodes.Table (N + 3).Field11).Flag167;
4034 function Flag168 (N : Node_Id) return Boolean is
4036 pragma Assert (Nkind (N) in N_Entity);
4037 return To_Flag_Word3 (Nodes.Table (N + 3).Field11).Flag168;
4040 function Flag169 (N : Node_Id) return Boolean is
4042 pragma Assert (Nkind (N) in N_Entity);
4043 return To_Flag_Word3 (Nodes.Table (N + 3).Field11).Flag169;
4046 function Flag170 (N : Node_Id) return Boolean is
4048 pragma Assert (Nkind (N) in N_Entity);
4049 return To_Flag_Word3 (Nodes.Table (N + 3).Field11).Flag170;
4052 function Flag171 (N : Node_Id) return Boolean is
4054 pragma Assert (Nkind (N) in N_Entity);
4055 return To_Flag_Word3 (Nodes.Table (N + 3).Field11).Flag171;
4058 function Flag172 (N : Node_Id) return Boolean is
4060 pragma Assert (Nkind (N) in N_Entity);
4061 return To_Flag_Word3 (Nodes.Table (N + 3).Field11).Flag172;
4064 function Flag173 (N : Node_Id) return Boolean is
4066 pragma Assert (Nkind (N) in N_Entity);
4067 return To_Flag_Word3 (Nodes.Table (N + 3).Field11).Flag173;
4070 function Flag174 (N : Node_Id) return Boolean is
4072 pragma Assert (Nkind (N) in N_Entity);
4073 return To_Flag_Word3 (Nodes.Table (N + 3).Field11).Flag174;
4076 function Flag175 (N : Node_Id) return Boolean is
4078 pragma Assert (Nkind (N) in N_Entity);
4079 return To_Flag_Word3 (Nodes.Table (N + 3).Field11).Flag175;
4082 function Flag176 (N : Node_Id) return Boolean is
4084 pragma Assert (Nkind (N) in N_Entity);
4085 return To_Flag_Word3 (Nodes.Table (N + 3).Field11).Flag176;
4088 function Flag177 (N : Node_Id) return Boolean is
4090 pragma Assert (Nkind (N) in N_Entity);
4091 return To_Flag_Word3 (Nodes.Table (N + 3).Field11).Flag177;
4094 function Flag178 (N : Node_Id) return Boolean is
4096 pragma Assert (Nkind (N) in N_Entity);
4097 return To_Flag_Word3 (Nodes.Table (N + 3).Field11).Flag178;
4100 function Flag179 (N : Node_Id) return Boolean is
4102 pragma Assert (Nkind (N) in N_Entity);
4103 return To_Flag_Word3 (Nodes.Table (N + 3).Field11).Flag179;
4106 function Flag180 (N : Node_Id) return Boolean is
4108 pragma Assert (Nkind (N) in N_Entity);
4109 return To_Flag_Word3 (Nodes.Table (N + 3).Field11).Flag180;
4112 function Flag181 (N : Node_Id) return Boolean is
4114 pragma Assert (Nkind (N) in N_Entity);
4115 return To_Flag_Word3 (Nodes.Table (N + 3).Field11).Flag181;
4118 function Flag182 (N : Node_Id) return Boolean is
4120 pragma Assert (Nkind (N) in N_Entity);
4121 return To_Flag_Word3 (Nodes.Table (N + 3).Field11).Flag182;
4124 function Flag183 (N : Node_Id) return Boolean is
4126 pragma Assert (Nkind (N) in N_Entity);
4127 return To_Flag_Word3 (Nodes.Table (N + 3).Field11).Flag183;
4130 procedure Set_Nkind (N : Node_Id; Val : Node_Kind) is
4132 pragma Assert (N in Nodes.First .. Nodes.Last);
4133 Nodes.Table (N).Nkind := Val;
4136 procedure Set_Field1 (N : Node_Id; Val : Union_Id) is
4138 pragma Assert (N in Nodes.First .. Nodes.Last);
4139 Nodes.Table (N).Field1 := Val;
4142 procedure Set_Field2 (N : Node_Id; Val : Union_Id) is
4144 pragma Assert (N in Nodes.First .. Nodes.Last);
4145 Nodes.Table (N).Field2 := Val;
4148 procedure Set_Field3 (N : Node_Id; Val : Union_Id) is
4150 pragma Assert (N in Nodes.First .. Nodes.Last);
4151 Nodes.Table (N).Field3 := Val;
4154 procedure Set_Field4 (N : Node_Id; Val : Union_Id) is
4156 pragma Assert (N in Nodes.First .. Nodes.Last);
4157 Nodes.Table (N).Field4 := Val;
4160 procedure Set_Field5 (N : Node_Id; Val : Union_Id) is
4162 pragma Assert (N in Nodes.First .. Nodes.Last);
4163 Nodes.Table (N).Field5 := Val;
4166 procedure Set_Field6 (N : Node_Id; Val : Union_Id) is
4168 pragma Assert (Nkind (N) in N_Entity);
4169 Nodes.Table (N + 1).Field6 := Val;
4172 procedure Set_Field7 (N : Node_Id; Val : Union_Id) is
4174 pragma Assert (Nkind (N) in N_Entity);
4175 Nodes.Table (N + 1).Field7 := Val;
4178 procedure Set_Field8 (N : Node_Id; Val : Union_Id) is
4180 pragma Assert (Nkind (N) in N_Entity);
4181 Nodes.Table (N + 1).Field8 := Val;
4184 procedure Set_Field9 (N : Node_Id; Val : Union_Id) is
4186 pragma Assert (Nkind (N) in N_Entity);
4187 Nodes.Table (N + 1).Field9 := Val;
4190 procedure Set_Field10 (N : Node_Id; Val : Union_Id) is
4192 pragma Assert (Nkind (N) in N_Entity);
4193 Nodes.Table (N + 1).Field10 := Val;
4196 procedure Set_Field11 (N : Node_Id; Val : Union_Id) is
4198 pragma Assert (Nkind (N) in N_Entity);
4199 Nodes.Table (N + 1).Field11 := Val;
4202 procedure Set_Field12 (N : Node_Id; Val : Union_Id) is
4204 pragma Assert (Nkind (N) in N_Entity);
4205 Nodes.Table (N + 1).Field12 := Val;
4208 procedure Set_Field13 (N : Node_Id; Val : Union_Id) is
4210 pragma Assert (Nkind (N) in N_Entity);
4211 Nodes.Table (N + 2).Field6 := Val;
4214 procedure Set_Field14 (N : Node_Id; Val : Union_Id) is
4216 pragma Assert (Nkind (N) in N_Entity);
4217 Nodes.Table (N + 2).Field7 := Val;
4220 procedure Set_Field15 (N : Node_Id; Val : Union_Id) is
4222 pragma Assert (Nkind (N) in N_Entity);
4223 Nodes.Table (N + 2).Field8 := Val;
4226 procedure Set_Field16 (N : Node_Id; Val : Union_Id) is
4228 pragma Assert (Nkind (N) in N_Entity);
4229 Nodes.Table (N + 2).Field9 := Val;
4232 procedure Set_Field17 (N : Node_Id; Val : Union_Id) is
4234 pragma Assert (Nkind (N) in N_Entity);
4235 Nodes.Table (N + 2).Field10 := Val;
4238 procedure Set_Field18 (N : Node_Id; Val : Union_Id) is
4240 pragma Assert (Nkind (N) in N_Entity);
4241 Nodes.Table (N + 2).Field11 := Val;
4244 procedure Set_Field19 (N : Node_Id; Val : Union_Id) is
4246 pragma Assert (Nkind (N) in N_Entity);
4247 Nodes.Table (N + 3).Field6 := Val;
4250 procedure Set_Field20 (N : Node_Id; Val : Union_Id) is
4252 pragma Assert (Nkind (N) in N_Entity);
4253 Nodes.Table (N + 3).Field7 := Val;
4256 procedure Set_Field21 (N : Node_Id; Val : Union_Id) is
4258 pragma Assert (Nkind (N) in N_Entity);
4259 Nodes.Table (N + 3).Field8 := Val;
4262 procedure Set_Field22 (N : Node_Id; Val : Union_Id) is
4264 pragma Assert (Nkind (N) in N_Entity);
4265 Nodes.Table (N + 3).Field9 := Val;
4268 procedure Set_Field23 (N : Node_Id; Val : Union_Id) is
4270 pragma Assert (Nkind (N) in N_Entity);
4271 Nodes.Table (N + 3).Field10 := Val;
4274 procedure Set_Node1 (N : Node_Id; Val : Node_Id) is
4276 pragma Assert (N in Nodes.First .. Nodes.Last);
4277 Nodes.Table (N).Field1 := Union_Id (Val);
4280 procedure Set_Node2 (N : Node_Id; Val : Node_Id) is
4282 pragma Assert (N in Nodes.First .. Nodes.Last);
4283 Nodes.Table (N).Field2 := Union_Id (Val);
4286 procedure Set_Node3 (N : Node_Id; Val : Node_Id) is
4288 pragma Assert (N in Nodes.First .. Nodes.Last);
4289 Nodes.Table (N).Field3 := Union_Id (Val);
4292 procedure Set_Node4 (N : Node_Id; Val : Node_Id) is
4294 pragma Assert (N in Nodes.First .. Nodes.Last);
4295 Nodes.Table (N).Field4 := Union_Id (Val);
4298 procedure Set_Node5 (N : Node_Id; Val : Node_Id) is
4300 pragma Assert (N in Nodes.First .. Nodes.Last);
4301 Nodes.Table (N).Field5 := Union_Id (Val);
4304 procedure Set_Node6 (N : Node_Id; Val : Node_Id) is
4306 pragma Assert (Nkind (N) in N_Entity);
4307 Nodes.Table (N + 1).Field6 := Union_Id (Val);
4310 procedure Set_Node7 (N : Node_Id; Val : Node_Id) is
4312 pragma Assert (Nkind (N) in N_Entity);
4313 Nodes.Table (N + 1).Field7 := Union_Id (Val);
4316 procedure Set_Node8 (N : Node_Id; Val : Node_Id) is
4318 pragma Assert (Nkind (N) in N_Entity);
4319 Nodes.Table (N + 1).Field8 := Union_Id (Val);
4322 procedure Set_Node9 (N : Node_Id; Val : Node_Id) is
4324 pragma Assert (Nkind (N) in N_Entity);
4325 Nodes.Table (N + 1).Field9 := Union_Id (Val);
4328 procedure Set_Node10 (N : Node_Id; Val : Node_Id) is
4330 pragma Assert (Nkind (N) in N_Entity);
4331 Nodes.Table (N + 1).Field10 := Union_Id (Val);
4334 procedure Set_Node11 (N : Node_Id; Val : Node_Id) is
4336 pragma Assert (Nkind (N) in N_Entity);
4337 Nodes.Table (N + 1).Field11 := Union_Id (Val);
4340 procedure Set_Node12 (N : Node_Id; Val : Node_Id) is
4342 pragma Assert (Nkind (N) in N_Entity);
4343 Nodes.Table (N + 1).Field12 := Union_Id (Val);
4346 procedure Set_Node13 (N : Node_Id; Val : Node_Id) is
4348 pragma Assert (Nkind (N) in N_Entity);
4349 Nodes.Table (N + 2).Field6 := Union_Id (Val);
4352 procedure Set_Node14 (N : Node_Id; Val : Node_Id) is
4354 pragma Assert (Nkind (N) in N_Entity);
4355 Nodes.Table (N + 2).Field7 := Union_Id (Val);
4358 procedure Set_Node15 (N : Node_Id; Val : Node_Id) is
4360 pragma Assert (Nkind (N) in N_Entity);
4361 Nodes.Table (N + 2).Field8 := Union_Id (Val);
4364 procedure Set_Node16 (N : Node_Id; Val : Node_Id) is
4366 pragma Assert (Nkind (N) in N_Entity);
4367 Nodes.Table (N + 2).Field9 := Union_Id (Val);
4370 procedure Set_Node17 (N : Node_Id; Val : Node_Id) is
4372 pragma Assert (Nkind (N) in N_Entity);
4373 Nodes.Table (N + 2).Field10 := Union_Id (Val);
4376 procedure Set_Node18 (N : Node_Id; Val : Node_Id) is
4378 pragma Assert (Nkind (N) in N_Entity);
4379 Nodes.Table (N + 2).Field11 := Union_Id (Val);
4382 procedure Set_Node19 (N : Node_Id; Val : Node_Id) is
4384 pragma Assert (Nkind (N) in N_Entity);
4385 Nodes.Table (N + 3).Field6 := Union_Id (Val);
4388 procedure Set_Node20 (N : Node_Id; Val : Node_Id) is
4390 pragma Assert (Nkind (N) in N_Entity);
4391 Nodes.Table (N + 3).Field7 := Union_Id (Val);
4394 procedure Set_Node21 (N : Node_Id; Val : Node_Id) is
4396 pragma Assert (Nkind (N) in N_Entity);
4397 Nodes.Table (N + 3).Field8 := Union_Id (Val);
4400 procedure Set_Node22 (N : Node_Id; Val : Node_Id) is
4402 pragma Assert (Nkind (N) in N_Entity);
4403 Nodes.Table (N + 3).Field9 := Union_Id (Val);
4406 procedure Set_Node23 (N : Node_Id; Val : Node_Id) is
4408 pragma Assert (Nkind (N) in N_Entity);
4409 Nodes.Table (N + 3).Field10 := Union_Id (Val);
4412 procedure Set_List1 (N : Node_Id; Val : List_Id) is
4414 pragma Assert (N in Nodes.First .. Nodes.Last);
4415 Nodes.Table (N).Field1 := Union_Id (Val);
4418 procedure Set_List2 (N : Node_Id; Val : List_Id) is
4420 pragma Assert (N in Nodes.First .. Nodes.Last);
4421 Nodes.Table (N).Field2 := Union_Id (Val);
4424 procedure Set_List3 (N : Node_Id; Val : List_Id) is
4426 pragma Assert (N in Nodes.First .. Nodes.Last);
4427 Nodes.Table (N).Field3 := Union_Id (Val);
4430 procedure Set_List4 (N : Node_Id; Val : List_Id) is
4432 pragma Assert (N in Nodes.First .. Nodes.Last);
4433 Nodes.Table (N).Field4 := Union_Id (Val);
4436 procedure Set_List5 (N : Node_Id; Val : List_Id) is
4438 pragma Assert (N in Nodes.First .. Nodes.Last);
4439 Nodes.Table (N).Field5 := Union_Id (Val);
4442 procedure Set_List10 (N : Node_Id; Val : List_Id) is
4444 pragma Assert (Nkind (N) in N_Entity);
4445 Nodes.Table (N + 1).Field10 := Union_Id (Val);
4448 procedure Set_List14 (N : Node_Id; Val : List_Id) is
4450 pragma Assert (Nkind (N) in N_Entity);
4451 Nodes.Table (N + 2).Field7 := Union_Id (Val);
4454 procedure Set_Elist2 (N : Node_Id; Val : Elist_Id) is
4456 Nodes.Table (N).Field2 := Union_Id (Val);
4459 procedure Set_Elist3 (N : Node_Id; Val : Elist_Id) is
4461 Nodes.Table (N).Field3 := Union_Id (Val);
4464 procedure Set_Elist4 (N : Node_Id; Val : Elist_Id) is
4466 Nodes.Table (N).Field4 := Union_Id (Val);
4469 procedure Set_Elist8 (N : Node_Id; Val : Elist_Id) is
4471 pragma Assert (Nkind (N) in N_Entity);
4472 Nodes.Table (N + 1).Field8 := Union_Id (Val);
4475 procedure Set_Elist13 (N : Node_Id; Val : Elist_Id) is
4477 pragma Assert (Nkind (N) in N_Entity);
4478 Nodes.Table (N + 2).Field6 := Union_Id (Val);
4481 procedure Set_Elist15 (N : Node_Id; Val : Elist_Id) is
4483 pragma Assert (Nkind (N) in N_Entity);
4484 Nodes.Table (N + 2).Field8 := Union_Id (Val);
4487 procedure Set_Elist16 (N : Node_Id; Val : Elist_Id) is
4489 pragma Assert (Nkind (N) in N_Entity);
4490 Nodes.Table (N + 2).Field9 := Union_Id (Val);
4493 procedure Set_Elist18 (N : Node_Id; Val : Elist_Id) is
4495 pragma Assert (Nkind (N) in N_Entity);
4496 Nodes.Table (N + 2).Field11 := Union_Id (Val);
4499 procedure Set_Elist21 (N : Node_Id; Val : Elist_Id) is
4501 pragma Assert (Nkind (N) in N_Entity);
4502 Nodes.Table (N + 3).Field8 := Union_Id (Val);
4505 procedure Set_Elist23 (N : Node_Id; Val : Elist_Id) is
4507 pragma Assert (Nkind (N) in N_Entity);
4508 Nodes.Table (N + 3).Field10 := Union_Id (Val);
4511 procedure Set_Name1 (N : Node_Id; Val : Name_Id) is
4513 pragma Assert (N in Nodes.First .. Nodes.Last);
4514 Nodes.Table (N).Field1 := Union_Id (Val);
4517 procedure Set_Name2 (N : Node_Id; Val : Name_Id) is
4519 pragma Assert (N in Nodes.First .. Nodes.Last);
4520 Nodes.Table (N).Field2 := Union_Id (Val);
4523 procedure Set_Str3 (N : Node_Id; Val : String_Id) is
4525 pragma Assert (N in Nodes.First .. Nodes.Last);
4526 Nodes.Table (N).Field3 := Union_Id (Val);
4529 procedure Set_Uint3 (N : Node_Id; Val : Uint) is
4531 pragma Assert (N in Nodes.First .. Nodes.Last);
4532 Nodes.Table (N).Field3 := To_Union (Val);
4535 procedure Set_Uint4 (N : Node_Id; Val : Uint) is
4537 pragma Assert (N in Nodes.First .. Nodes.Last);
4538 Nodes.Table (N).Field4 := To_Union (Val);
4541 procedure Set_Uint5 (N : Node_Id; Val : Uint) is
4543 pragma Assert (N in Nodes.First .. Nodes.Last);
4544 Nodes.Table (N).Field5 := To_Union (Val);
4547 procedure Set_Uint8 (N : Node_Id; Val : Uint) is
4549 pragma Assert (Nkind (N) in N_Entity);
4550 Nodes.Table (N + 1).Field8 := To_Union (Val);
4553 procedure Set_Uint9 (N : Node_Id; Val : Uint) is
4555 pragma Assert (Nkind (N) in N_Entity);
4556 Nodes.Table (N + 1).Field9 := To_Union (Val);
4559 procedure Set_Uint10 (N : Node_Id; Val : Uint) is
4561 pragma Assert (Nkind (N) in N_Entity);
4562 Nodes.Table (N + 1).Field10 := To_Union (Val);
4565 procedure Set_Uint11 (N : Node_Id; Val : Uint) is
4567 pragma Assert (Nkind (N) in N_Entity);
4568 Nodes.Table (N + 1).Field11 := To_Union (Val);
4571 procedure Set_Uint12 (N : Node_Id; Val : Uint) is
4573 pragma Assert (Nkind (N) in N_Entity);
4574 Nodes.Table (N + 1).Field12 := To_Union (Val);
4577 procedure Set_Uint13 (N : Node_Id; Val : Uint) is
4579 pragma Assert (Nkind (N) in N_Entity);
4580 Nodes.Table (N + 2).Field6 := To_Union (Val);
4583 procedure Set_Uint14 (N : Node_Id; Val : Uint) is
4585 pragma Assert (Nkind (N) in N_Entity);
4586 Nodes.Table (N + 2).Field7 := To_Union (Val);
4589 procedure Set_Uint15 (N : Node_Id; Val : Uint) is
4591 pragma Assert (Nkind (N) in N_Entity);
4592 Nodes.Table (N + 2).Field8 := To_Union (Val);
4595 procedure Set_Uint16 (N : Node_Id; Val : Uint) is
4597 pragma Assert (Nkind (N) in N_Entity);
4598 Nodes.Table (N + 2).Field9 := To_Union (Val);
4601 procedure Set_Uint17 (N : Node_Id; Val : Uint) is
4603 pragma Assert (Nkind (N) in N_Entity);
4604 Nodes.Table (N + 2).Field10 := To_Union (Val);
4607 procedure Set_Uint22 (N : Node_Id; Val : Uint) is
4609 pragma Assert (Nkind (N) in N_Entity);
4610 Nodes.Table (N + 3).Field9 := To_Union (Val);
4613 procedure Set_Ureal3 (N : Node_Id; Val : Ureal) is
4615 pragma Assert (N in Nodes.First .. Nodes.Last);
4616 Nodes.Table (N).Field3 := To_Union (Val);
4619 procedure Set_Ureal18 (N : Node_Id; Val : Ureal) is
4621 pragma Assert (Nkind (N) in N_Entity);
4622 Nodes.Table (N + 2).Field11 := To_Union (Val);
4625 procedure Set_Ureal21 (N : Node_Id; Val : Ureal) is
4627 pragma Assert (Nkind (N) in N_Entity);
4628 Nodes.Table (N + 3).Field8 := To_Union (Val);
4631 procedure Set_Char_Code2 (N : Node_Id; Val : Char_Code) is
4633 pragma Assert (N in Nodes.First .. Nodes.Last);
4634 Nodes.Table (N).Field2 := Union_Id (Val) + Char_Code_Bias;
4637 procedure Set_Flag4 (N : Node_Id; Val : Boolean) is
4639 pragma Assert (N in Nodes.First .. Nodes.Last);
4640 Nodes.Table (N).Flag4 := Val;
4643 procedure Set_Flag5 (N : Node_Id; Val : Boolean) is
4645 pragma Assert (N in Nodes.First .. Nodes.Last);
4646 Nodes.Table (N).Flag5 := Val;
4649 procedure Set_Flag6 (N : Node_Id; Val : Boolean) is
4651 pragma Assert (N in Nodes.First .. Nodes.Last);
4652 Nodes.Table (N).Flag6 := Val;
4655 procedure Set_Flag7 (N : Node_Id; Val : Boolean) is
4657 pragma Assert (N in Nodes.First .. Nodes.Last);
4658 Nodes.Table (N).Flag7 := Val;
4661 procedure Set_Flag8 (N : Node_Id; Val : Boolean) is
4663 pragma Assert (N in Nodes.First .. Nodes.Last);
4664 Nodes.Table (N).Flag8 := Val;
4667 procedure Set_Flag9 (N : Node_Id; Val : Boolean) is
4669 pragma Assert (N in Nodes.First .. Nodes.Last);
4670 Nodes.Table (N).Flag9 := Val;
4673 procedure Set_Flag10 (N : Node_Id; Val : Boolean) is
4675 pragma Assert (N in Nodes.First .. Nodes.Last);
4676 Nodes.Table (N).Flag10 := Val;
4679 procedure Set_Flag11 (N : Node_Id; Val : Boolean) is
4681 pragma Assert (N in Nodes.First .. Nodes.Last);
4682 Nodes.Table (N).Flag11 := Val;
4685 procedure Set_Flag12 (N : Node_Id; Val : Boolean) is
4687 pragma Assert (N in Nodes.First .. Nodes.Last);
4688 Nodes.Table (N).Flag12 := Val;
4691 procedure Set_Flag13 (N : Node_Id; Val : Boolean) is
4693 pragma Assert (N in Nodes.First .. Nodes.Last);
4694 Nodes.Table (N).Flag13 := Val;
4697 procedure Set_Flag14 (N : Node_Id; Val : Boolean) is
4699 pragma Assert (N in Nodes.First .. Nodes.Last);
4700 Nodes.Table (N).Flag14 := Val;
4703 procedure Set_Flag15 (N : Node_Id; Val : Boolean) is
4705 pragma Assert (N in Nodes.First .. Nodes.Last);
4706 Nodes.Table (N).Flag15 := Val;
4709 procedure Set_Flag16 (N : Node_Id; Val : Boolean) is
4711 pragma Assert (N in Nodes.First .. Nodes.Last);
4712 Nodes.Table (N).Flag16 := Val;
4715 procedure Set_Flag17 (N : Node_Id; Val : Boolean) is
4717 pragma Assert (N in Nodes.First .. Nodes.Last);
4718 Nodes.Table (N).Flag17 := Val;
4721 procedure Set_Flag18 (N : Node_Id; Val : Boolean) is
4723 pragma Assert (N in Nodes.First .. Nodes.Last);
4724 Nodes.Table (N).Flag18 := Val;
4727 procedure Set_Flag19 (N : Node_Id; Val : Boolean) is
4729 pragma Assert (Nkind (N) in N_Entity);
4730 Nodes.Table (N + 1).In_List := Val;
4733 procedure Set_Flag20 (N : Node_Id; Val : Boolean) is
4735 pragma Assert (Nkind (N) in N_Entity);
4736 Nodes.Table (N + 1).Unused_1 := Val;
4739 procedure Set_Flag21 (N : Node_Id; Val : Boolean) is
4741 pragma Assert (Nkind (N) in N_Entity);
4742 Nodes.Table (N + 1).Rewrite_Ins := Val;
4745 procedure Set_Flag22 (N : Node_Id; Val : Boolean) is
4747 pragma Assert (Nkind (N) in N_Entity);
4748 Nodes.Table (N + 1).Analyzed := Val;
4751 procedure Set_Flag23 (N : Node_Id; Val : Boolean) is
4753 pragma Assert (Nkind (N) in N_Entity);
4754 Nodes.Table (N + 1).Comes_From_Source := Val;
4757 procedure Set_Flag24 (N : Node_Id; Val : Boolean) is
4759 pragma Assert (Nkind (N) in N_Entity);
4760 Nodes.Table (N + 1).Error_Posted := Val;
4763 procedure Set_Flag25 (N : Node_Id; Val : Boolean) is
4765 pragma Assert (Nkind (N) in N_Entity);
4766 Nodes.Table (N + 1).Flag4 := Val;
4769 procedure Set_Flag26 (N : Node_Id; Val : Boolean) is
4771 pragma Assert (Nkind (N) in N_Entity);
4772 Nodes.Table (N + 1).Flag5 := Val;
4775 procedure Set_Flag27 (N : Node_Id; Val : Boolean) is
4777 pragma Assert (Nkind (N) in N_Entity);
4778 Nodes.Table (N + 1).Flag6 := Val;
4781 procedure Set_Flag28 (N : Node_Id; Val : Boolean) is
4783 pragma Assert (Nkind (N) in N_Entity);
4784 Nodes.Table (N + 1).Flag7 := Val;
4787 procedure Set_Flag29 (N : Node_Id; Val : Boolean) is
4789 pragma Assert (Nkind (N) in N_Entity);
4790 Nodes.Table (N + 1).Flag8 := Val;
4793 procedure Set_Flag30 (N : Node_Id; Val : Boolean) is
4795 pragma Assert (Nkind (N) in N_Entity);
4796 Nodes.Table (N + 1).Flag9 := Val;
4799 procedure Set_Flag31 (N : Node_Id; Val : Boolean) is
4801 pragma Assert (Nkind (N) in N_Entity);
4802 Nodes.Table (N + 1).Flag10 := Val;
4805 procedure Set_Flag32 (N : Node_Id; Val : Boolean) is
4807 pragma Assert (Nkind (N) in N_Entity);
4808 Nodes.Table (N + 1).Flag11 := Val;
4811 procedure Set_Flag33 (N : Node_Id; Val : Boolean) is
4813 pragma Assert (Nkind (N) in N_Entity);
4814 Nodes.Table (N + 1).Flag12 := Val;
4817 procedure Set_Flag34 (N : Node_Id; Val : Boolean) is
4819 pragma Assert (Nkind (N) in N_Entity);
4820 Nodes.Table (N + 1).Flag13 := Val;
4823 procedure Set_Flag35 (N : Node_Id; Val : Boolean) is
4825 pragma Assert (Nkind (N) in N_Entity);
4826 Nodes.Table (N + 1).Flag14 := Val;
4829 procedure Set_Flag36 (N : Node_Id; Val : Boolean) is
4831 pragma Assert (Nkind (N) in N_Entity);
4832 Nodes.Table (N + 1).Flag15 := Val;
4835 procedure Set_Flag37 (N : Node_Id; Val : Boolean) is
4837 pragma Assert (Nkind (N) in N_Entity);
4838 Nodes.Table (N + 1).Flag16 := Val;
4841 procedure Set_Flag38 (N : Node_Id; Val : Boolean) is
4843 pragma Assert (Nkind (N) in N_Entity);
4844 Nodes.Table (N + 1).Flag17 := Val;
4847 procedure Set_Flag39 (N : Node_Id; Val : Boolean) is
4849 pragma Assert (Nkind (N) in N_Entity);
4850 Nodes.Table (N + 1).Flag18 := Val;
4853 procedure Set_Flag40 (N : Node_Id; Val : Boolean) is
4855 pragma Assert (Nkind (N) in N_Entity);
4856 Nodes.Table (N + 2).In_List := Val;
4859 procedure Set_Flag41 (N : Node_Id; Val : Boolean) is
4861 pragma Assert (Nkind (N) in N_Entity);
4862 Nodes.Table (N + 2).Unused_1 := Val;
4865 procedure Set_Flag42 (N : Node_Id; Val : Boolean) is
4867 pragma Assert (Nkind (N) in N_Entity);
4868 Nodes.Table (N + 2).Rewrite_Ins := Val;
4871 procedure Set_Flag43 (N : Node_Id; Val : Boolean) is
4873 pragma Assert (Nkind (N) in N_Entity);
4874 Nodes.Table (N + 2).Analyzed := Val;
4877 procedure Set_Flag44 (N : Node_Id; Val : Boolean) is
4879 pragma Assert (Nkind (N) in N_Entity);
4880 Nodes.Table (N + 2).Comes_From_Source := Val;
4883 procedure Set_Flag45 (N : Node_Id; Val : Boolean) is
4885 pragma Assert (Nkind (N) in N_Entity);
4886 Nodes.Table (N + 2).Error_Posted := Val;
4889 procedure Set_Flag46 (N : Node_Id; Val : Boolean) is
4891 pragma Assert (Nkind (N) in N_Entity);
4892 Nodes.Table (N + 2).Flag4 := Val;
4895 procedure Set_Flag47 (N : Node_Id; Val : Boolean) is
4897 pragma Assert (Nkind (N) in N_Entity);
4898 Nodes.Table (N + 2).Flag5 := Val;
4901 procedure Set_Flag48 (N : Node_Id; Val : Boolean) is
4903 pragma Assert (Nkind (N) in N_Entity);
4904 Nodes.Table (N + 2).Flag6 := Val;
4907 procedure Set_Flag49 (N : Node_Id; Val : Boolean) is
4909 pragma Assert (Nkind (N) in N_Entity);
4910 Nodes.Table (N + 2).Flag7 := Val;
4913 procedure Set_Flag50 (N : Node_Id; Val : Boolean) is
4915 pragma Assert (Nkind (N) in N_Entity);
4916 Nodes.Table (N + 2).Flag8 := Val;
4919 procedure Set_Flag51 (N : Node_Id; Val : Boolean) is
4921 pragma Assert (Nkind (N) in N_Entity);
4922 Nodes.Table (N + 2).Flag9 := Val;
4925 procedure Set_Flag52 (N : Node_Id; Val : Boolean) is
4927 pragma Assert (Nkind (N) in N_Entity);
4928 Nodes.Table (N + 2).Flag10 := Val;
4931 procedure Set_Flag53 (N : Node_Id; Val : Boolean) is
4933 pragma Assert (Nkind (N) in N_Entity);
4934 Nodes.Table (N + 2).Flag11 := Val;
4937 procedure Set_Flag54 (N : Node_Id; Val : Boolean) is
4939 pragma Assert (Nkind (N) in N_Entity);
4940 Nodes.Table (N + 2).Flag12 := Val;
4943 procedure Set_Flag55 (N : Node_Id; Val : Boolean) is
4945 pragma Assert (Nkind (N) in N_Entity);
4946 Nodes.Table (N + 2).Flag13 := Val;
4949 procedure Set_Flag56 (N : Node_Id; Val : Boolean) is
4951 pragma Assert (Nkind (N) in N_Entity);
4952 Nodes.Table (N + 2).Flag14 := Val;
4955 procedure Set_Flag57 (N : Node_Id; Val : Boolean) is
4957 pragma Assert (Nkind (N) in N_Entity);
4958 Nodes.Table (N + 2).Flag15 := Val;
4961 procedure Set_Flag58 (N : Node_Id; Val : Boolean) is
4963 pragma Assert (Nkind (N) in N_Entity);
4964 Nodes.Table (N + 2).Flag16 := Val;
4967 procedure Set_Flag59 (N : Node_Id; Val : Boolean) is
4969 pragma Assert (Nkind (N) in N_Entity);
4970 Nodes.Table (N + 2).Flag17 := Val;
4973 procedure Set_Flag60 (N : Node_Id; Val : Boolean) is
4975 pragma Assert (Nkind (N) in N_Entity);
4976 Nodes.Table (N + 2).Flag18 := Val;
4979 procedure Set_Flag61 (N : Node_Id; Val : Boolean) is
4981 pragma Assert (Nkind (N) in N_Entity);
4982 Nodes.Table (N + 1).Pflag1 := Val;
4985 procedure Set_Flag62 (N : Node_Id; Val : Boolean) is
4987 pragma Assert (Nkind (N) in N_Entity);
4988 Nodes.Table (N + 1).Pflag2 := Val;
4991 procedure Set_Flag63 (N : Node_Id; Val : Boolean) is
4993 pragma Assert (Nkind (N) in N_Entity);
4994 Nodes.Table (N + 2).Pflag1 := Val;
4997 procedure Set_Flag64 (N : Node_Id; Val : Boolean) is
4999 pragma Assert (Nkind (N) in N_Entity);
5000 Nodes.Table (N + 2).Pflag2 := Val;
5003 procedure Set_Flag65 (N : Node_Id; Val : Boolean) is
5005 pragma Assert (Nkind (N) in N_Entity);
5008 (Nodes
.Table
(N
+ 2).Nkind
'Unrestricted_Access)).Flag65
:= Val
;
5011 procedure Set_Flag66
(N
: Node_Id
; Val
: Boolean) is
5013 pragma Assert
(Nkind
(N
) in N_Entity
);
5016 (Nodes.Table (N + 2).Nkind'Unrestricted_Access)).Flag66 := Val;
5019 procedure Set_Flag67 (N : Node_Id; Val : Boolean) is
5021 pragma Assert (Nkind (N) in N_Entity);
5024 (Nodes
.Table
(N
+ 2).Nkind
'Unrestricted_Access)).Flag67
:= Val
;
5027 procedure Set_Flag68
(N
: Node_Id
; Val
: Boolean) is
5029 pragma Assert
(Nkind
(N
) in N_Entity
);
5032 (Nodes.Table (N + 2).Nkind'Unrestricted_Access)).Flag68 := Val;
5035 procedure Set_Flag69 (N : Node_Id; Val : Boolean) is
5037 pragma Assert (Nkind (N) in N_Entity);
5040 (Nodes
.Table
(N
+ 2).Nkind
'Unrestricted_Access)).Flag69
:= Val
;
5043 procedure Set_Flag70
(N
: Node_Id
; Val
: Boolean) is
5045 pragma Assert
(Nkind
(N
) in N_Entity
);
5048 (Nodes.Table (N + 2).Nkind'Unrestricted_Access)).Flag70 := Val;
5051 procedure Set_Flag71 (N : Node_Id; Val : Boolean) is
5053 pragma Assert (Nkind (N) in N_Entity);
5056 (Nodes
.Table
(N
+ 2).Nkind
'Unrestricted_Access)).Flag71
:= Val
;
5059 procedure Set_Flag72
(N
: Node_Id
; Val
: Boolean) is
5061 pragma Assert
(Nkind
(N
) in N_Entity
);
5064 (Nodes.Table (N + 2).Nkind'Unrestricted_Access)).Flag72 := Val;
5067 procedure Set_Flag73 (N : Node_Id; Val : Boolean) is
5069 pragma Assert (Nkind (N) in N_Entity);
5072 (Nodes
.Table
(N
+ 2).Field12
'Unrestricted_Access)).Flag73
:= Val
;
5075 procedure Set_Flag74
(N
: Node_Id
; Val
: Boolean) is
5077 pragma Assert
(Nkind
(N
) in N_Entity
);
5080 (Nodes.Table (N + 2).Field12'Unrestricted_Access)).Flag74 := Val;
5083 procedure Set_Flag75 (N : Node_Id; Val : Boolean) is
5085 pragma Assert (Nkind (N) in N_Entity);
5088 (Nodes
.Table
(N
+ 2).Field12
'Unrestricted_Access)).Flag75
:= Val
;
5091 procedure Set_Flag76
(N
: Node_Id
; Val
: Boolean) is
5093 pragma Assert
(Nkind
(N
) in N_Entity
);
5096 (Nodes.Table (N + 2).Field12'Unrestricted_Access)).Flag76 := Val;
5099 procedure Set_Flag77 (N : Node_Id; Val : Boolean) is
5101 pragma Assert (Nkind (N) in N_Entity);
5104 (Nodes
.Table
(N
+ 2).Field12
'Unrestricted_Access)).Flag77
:= Val
;
5107 procedure Set_Flag78
(N
: Node_Id
; Val
: Boolean) is
5109 pragma Assert
(Nkind
(N
) in N_Entity
);
5112 (Nodes.Table (N + 2).Field12'Unrestricted_Access)).Flag78 := Val;
5115 procedure Set_Flag79 (N : Node_Id; Val : Boolean) is
5117 pragma Assert (Nkind (N) in N_Entity);
5120 (Nodes
.Table
(N
+ 2).Field12
'Unrestricted_Access)).Flag79
:= Val
;
5123 procedure Set_Flag80
(N
: Node_Id
; Val
: Boolean) is
5125 pragma Assert
(Nkind
(N
) in N_Entity
);
5128 (Nodes.Table (N + 2).Field12'Unrestricted_Access)).Flag80 := Val;
5131 procedure Set_Flag81 (N : Node_Id; Val : Boolean) is
5133 pragma Assert (Nkind (N) in N_Entity);
5136 (Nodes
.Table
(N
+ 2).Field12
'Unrestricted_Access)).Flag81
:= Val
;
5139 procedure Set_Flag82
(N
: Node_Id
; Val
: Boolean) is
5141 pragma Assert
(Nkind
(N
) in N_Entity
);
5144 (Nodes.Table (N + 2).Field12'Unrestricted_Access)).Flag82 := Val;
5147 procedure Set_Flag83 (N : Node_Id; Val : Boolean) is
5149 pragma Assert (Nkind (N) in N_Entity);
5152 (Nodes
.Table
(N
+ 2).Field12
'Unrestricted_Access)).Flag83
:= Val
;
5155 procedure Set_Flag84
(N
: Node_Id
; Val
: Boolean) is
5157 pragma Assert
(Nkind
(N
) in N_Entity
);
5160 (Nodes.Table (N + 2).Field12'Unrestricted_Access)).Flag84 := Val;
5163 procedure Set_Flag85 (N : Node_Id; Val : Boolean) is
5165 pragma Assert (Nkind (N) in N_Entity);
5168 (Nodes
.Table
(N
+ 2).Field12
'Unrestricted_Access)).Flag85
:= Val
;
5171 procedure Set_Flag86
(N
: Node_Id
; Val
: Boolean) is
5173 pragma Assert
(Nkind
(N
) in N_Entity
);
5176 (Nodes.Table (N + 2).Field12'Unrestricted_Access)).Flag86 := Val;
5179 procedure Set_Flag87 (N : Node_Id; Val : Boolean) is
5181 pragma Assert (Nkind (N) in N_Entity);
5184 (Nodes
.Table
(N
+ 2).Field12
'Unrestricted_Access)).Flag87
:= Val
;
5187 procedure Set_Flag88
(N
: Node_Id
; Val
: Boolean) is
5189 pragma Assert
(Nkind
(N
) in N_Entity
);
5192 (Nodes.Table (N + 2).Field12'Unrestricted_Access)).Flag88 := Val;
5195 procedure Set_Flag89 (N : Node_Id; Val : Boolean) is
5197 pragma Assert (Nkind (N) in N_Entity);
5200 (Nodes
.Table
(N
+ 2).Field12
'Unrestricted_Access)).Flag89
:= Val
;
5203 procedure Set_Flag90
(N
: Node_Id
; Val
: Boolean) is
5205 pragma Assert
(Nkind
(N
) in N_Entity
);
5208 (Nodes.Table (N + 2).Field12'Unrestricted_Access)).Flag90 := Val;
5211 procedure Set_Flag91 (N : Node_Id; Val : Boolean) is
5213 pragma Assert (Nkind (N) in N_Entity);
5216 (Nodes
.Table
(N
+ 2).Field12
'Unrestricted_Access)).Flag91
:= Val
;
5219 procedure Set_Flag92
(N
: Node_Id
; Val
: Boolean) is
5221 pragma Assert
(Nkind
(N
) in N_Entity
);
5224 (Nodes.Table (N + 2).Field12'Unrestricted_Access)).Flag92 := Val;
5227 procedure Set_Flag93 (N : Node_Id; Val : Boolean) is
5229 pragma Assert (Nkind (N) in N_Entity);
5232 (Nodes
.Table
(N
+ 2).Field12
'Unrestricted_Access)).Flag93
:= Val
;
5235 procedure Set_Flag94
(N
: Node_Id
; Val
: Boolean) is
5237 pragma Assert
(Nkind
(N
) in N_Entity
);
5240 (Nodes.Table (N + 2).Field12'Unrestricted_Access)).Flag94 := Val;
5243 procedure Set_Flag95 (N : Node_Id; Val : Boolean) is
5245 pragma Assert (Nkind (N) in N_Entity);
5248 (Nodes
.Table
(N
+ 2).Field12
'Unrestricted_Access)).Flag95
:= Val
;
5251 procedure Set_Flag96
(N
: Node_Id
; Val
: Boolean) is
5253 pragma Assert
(Nkind
(N
) in N_Entity
);
5256 (Nodes.Table (N + 2).Field12'Unrestricted_Access)).Flag96 := Val;
5259 procedure Set_Flag97 (N : Node_Id; Val : Boolean) is
5261 pragma Assert (Nkind (N) in N_Entity);
5264 (Nodes
.Table
(N
+ 3).Field12
'Unrestricted_Access)).Flag97
:= Val
;
5267 procedure Set_Flag98
(N
: Node_Id
; Val
: Boolean) is
5269 pragma Assert
(Nkind
(N
) in N_Entity
);
5272 (Nodes.Table (N + 3).Field12'Unrestricted_Access)).Flag98 := Val;
5275 procedure Set_Flag99 (N : Node_Id; Val : Boolean) is
5277 pragma Assert (Nkind (N) in N_Entity);
5280 (Nodes
.Table
(N
+ 3).Field12
'Unrestricted_Access)).Flag99
:= Val
;
5283 procedure Set_Flag100
(N
: Node_Id
; Val
: Boolean) is
5285 pragma Assert
(Nkind
(N
) in N_Entity
);
5288 (Nodes.Table (N + 3).Field12'Unrestricted_Access)).Flag100 := Val;
5291 procedure Set_Flag101 (N : Node_Id; Val : Boolean) is
5293 pragma Assert (Nkind (N) in N_Entity);
5296 (Nodes
.Table
(N
+ 3).Field12
'Unrestricted_Access)).Flag101
:= Val
;
5299 procedure Set_Flag102
(N
: Node_Id
; Val
: Boolean) is
5301 pragma Assert
(Nkind
(N
) in N_Entity
);
5304 (Nodes.Table (N + 3).Field12'Unrestricted_Access)).Flag102 := Val;
5307 procedure Set_Flag103 (N : Node_Id; Val : Boolean) is
5309 pragma Assert (Nkind (N) in N_Entity);
5312 (Nodes
.Table
(N
+ 3).Field12
'Unrestricted_Access)).Flag103
:= Val
;
5315 procedure Set_Flag104
(N
: Node_Id
; Val
: Boolean) is
5317 pragma Assert
(Nkind
(N
) in N_Entity
);
5320 (Nodes.Table (N + 3).Field12'Unrestricted_Access)).Flag104 := Val;
5323 procedure Set_Flag105 (N : Node_Id; Val : Boolean) is
5325 pragma Assert (Nkind (N) in N_Entity);
5328 (Nodes
.Table
(N
+ 3).Field12
'Unrestricted_Access)).Flag105
:= Val
;
5331 procedure Set_Flag106
(N
: Node_Id
; Val
: Boolean) is
5333 pragma Assert
(Nkind
(N
) in N_Entity
);
5336 (Nodes.Table (N + 3).Field12'Unrestricted_Access)).Flag106 := Val;
5339 procedure Set_Flag107 (N : Node_Id; Val : Boolean) is
5341 pragma Assert (Nkind (N) in N_Entity);
5344 (Nodes
.Table
(N
+ 3).Field12
'Unrestricted_Access)).Flag107
:= Val
;
5347 procedure Set_Flag108
(N
: Node_Id
; Val
: Boolean) is
5349 pragma Assert
(Nkind
(N
) in N_Entity
);
5352 (Nodes.Table (N + 3).Field12'Unrestricted_Access)).Flag108 := Val;
5355 procedure Set_Flag109 (N : Node_Id; Val : Boolean) is
5357 pragma Assert (Nkind (N) in N_Entity);
5360 (Nodes
.Table
(N
+ 3).Field12
'Unrestricted_Access)).Flag109
:= Val
;
5363 procedure Set_Flag110
(N
: Node_Id
; Val
: Boolean) is
5365 pragma Assert
(Nkind
(N
) in N_Entity
);
5368 (Nodes.Table (N + 3).Field12'Unrestricted_Access)).Flag110 := Val;
5371 procedure Set_Flag111 (N : Node_Id; Val : Boolean) is
5373 pragma Assert (Nkind (N) in N_Entity);
5376 (Nodes
.Table
(N
+ 3).Field12
'Unrestricted_Access)).Flag111
:= Val
;
5379 procedure Set_Flag112
(N
: Node_Id
; Val
: Boolean) is
5381 pragma Assert
(Nkind
(N
) in N_Entity
);
5384 (Nodes.Table (N + 3).Field12'Unrestricted_Access)).Flag112 := Val;
5387 procedure Set_Flag113 (N : Node_Id; Val : Boolean) is
5389 pragma Assert (Nkind (N) in N_Entity);
5392 (Nodes
.Table
(N
+ 3).Field12
'Unrestricted_Access)).Flag113
:= Val
;
5395 procedure Set_Flag114
(N
: Node_Id
; Val
: Boolean) is
5397 pragma Assert
(Nkind
(N
) in N_Entity
);
5400 (Nodes.Table (N + 3).Field12'Unrestricted_Access)).Flag114 := Val;
5403 procedure Set_Flag115 (N : Node_Id; Val : Boolean) is
5405 pragma Assert (Nkind (N) in N_Entity);
5408 (Nodes
.Table
(N
+ 3).Field12
'Unrestricted_Access)).Flag115
:= Val
;
5411 procedure Set_Flag116
(N
: Node_Id
; Val
: Boolean) is
5413 pragma Assert
(Nkind
(N
) in N_Entity
);
5416 (Nodes.Table (N + 3).Field12'Unrestricted_Access)).Flag116 := Val;
5419 procedure Set_Flag117 (N : Node_Id; Val : Boolean) is
5421 pragma Assert (Nkind (N) in N_Entity);
5424 (Nodes
.Table
(N
+ 3).Field12
'Unrestricted_Access)).Flag117
:= Val
;
5427 procedure Set_Flag118
(N
: Node_Id
; Val
: Boolean) is
5429 pragma Assert
(Nkind
(N
) in N_Entity
);
5432 (Nodes.Table (N + 3).Field12'Unrestricted_Access)).Flag118 := Val;
5435 procedure Set_Flag119 (N : Node_Id; Val : Boolean) is
5437 pragma Assert (Nkind (N) in N_Entity);
5440 (Nodes
.Table
(N
+ 3).Field12
'Unrestricted_Access)).Flag119
:= Val
;
5443 procedure Set_Flag120
(N
: Node_Id
; Val
: Boolean) is
5445 pragma Assert
(Nkind
(N
) in N_Entity
);
5448 (Nodes.Table (N + 3).Field12'Unrestricted_Access)).Flag120 := Val;
5451 procedure Set_Flag121 (N : Node_Id; Val : Boolean) is
5453 pragma Assert (Nkind (N) in N_Entity);
5456 (Nodes
.Table
(N
+ 3).Field12
'Unrestricted_Access)).Flag121
:= Val
;
5459 procedure Set_Flag122
(N
: Node_Id
; Val
: Boolean) is
5461 pragma Assert
(Nkind
(N
) in N_Entity
);
5464 (Nodes.Table (N + 3).Field12'Unrestricted_Access)).Flag122 := Val;
5467 procedure Set_Flag123 (N : Node_Id; Val : Boolean) is
5469 pragma Assert (Nkind (N) in N_Entity);
5472 (Nodes
.Table
(N
+ 3).Field12
'Unrestricted_Access)).Flag123
:= Val
;
5475 procedure Set_Flag124
(N
: Node_Id
; Val
: Boolean) is
5477 pragma Assert
(Nkind
(N
) in N_Entity
);
5480 (Nodes.Table (N + 3).Field12'Unrestricted_Access)).Flag124 := Val;
5483 procedure Set_Flag125 (N : Node_Id; Val : Boolean) is
5485 pragma Assert (Nkind (N) in N_Entity);
5488 (Nodes
.Table
(N
+ 3).Field12
'Unrestricted_Access)).Flag125
:= Val
;
5491 procedure Set_Flag126
(N
: Node_Id
; Val
: Boolean) is
5493 pragma Assert
(Nkind
(N
) in N_Entity
);
5496 (Nodes.Table (N + 3).Field12'Unrestricted_Access)).Flag126 := Val;
5499 procedure Set_Flag127 (N : Node_Id; Val : Boolean) is
5501 pragma Assert (Nkind (N) in N_Entity);
5504 (Nodes
.Table
(N
+ 3).Field12
'Unrestricted_Access)).Flag127
:= Val
;
5507 procedure Set_Flag128
(N
: Node_Id
; Val
: Boolean) is
5509 pragma Assert
(Nkind
(N
) in N_Entity
);
5512 (Nodes.Table (N + 3).Field12'Unrestricted_Access)).Flag128 := Val;
5515 procedure Set_Flag129 (N : Node_Id; Val : Boolean) is
5517 pragma Assert (Nkind (N) in N_Entity);
5518 Nodes.Table (N + 3).In_List := Val;
5521 procedure Set_Flag130 (N : Node_Id; Val : Boolean) is
5523 pragma Assert (Nkind (N) in N_Entity);
5524 Nodes.Table (N + 3).Unused_1 := Val;
5527 procedure Set_Flag131 (N : Node_Id; Val : Boolean) is
5529 pragma Assert (Nkind (N) in N_Entity);
5530 Nodes.Table (N + 3).Rewrite_Ins := Val;
5533 procedure Set_Flag132 (N : Node_Id; Val : Boolean) is
5535 pragma Assert (Nkind (N) in N_Entity);
5536 Nodes.Table (N + 3).Analyzed := Val;
5539 procedure Set_Flag133 (N : Node_Id; Val : Boolean) is
5541 pragma Assert (Nkind (N) in N_Entity);
5542 Nodes.Table (N + 3).Comes_From_Source := Val;
5545 procedure Set_Flag134 (N : Node_Id; Val : Boolean) is
5547 pragma Assert (Nkind (N) in N_Entity);
5548 Nodes.Table (N + 3).Error_Posted := Val;
5551 procedure Set_Flag135 (N : Node_Id; Val : Boolean) is
5553 pragma Assert (Nkind (N) in N_Entity);
5554 Nodes.Table (N + 3).Flag4 := Val;
5557 procedure Set_Flag136 (N : Node_Id; Val : Boolean) is
5559 pragma Assert (Nkind (N) in N_Entity);
5560 Nodes.Table (N + 3).Flag5 := Val;
5563 procedure Set_Flag137 (N : Node_Id; Val : Boolean) is
5565 pragma Assert (Nkind (N) in N_Entity);
5566 Nodes.Table (N + 3).Flag6 := Val;
5569 procedure Set_Flag138 (N : Node_Id; Val : Boolean) is
5571 pragma Assert (Nkind (N) in N_Entity);
5572 Nodes.Table (N + 3).Flag7 := Val;
5575 procedure Set_Flag139 (N : Node_Id; Val : Boolean) is
5577 pragma Assert (Nkind (N) in N_Entity);
5578 Nodes.Table (N + 3).Flag8 := Val;
5581 procedure Set_Flag140 (N : Node_Id; Val : Boolean) is
5583 pragma Assert (Nkind (N) in N_Entity);
5584 Nodes.Table (N + 3).Flag9 := Val;
5587 procedure Set_Flag141 (N : Node_Id; Val : Boolean) is
5589 pragma Assert (Nkind (N) in N_Entity);
5590 Nodes.Table (N + 3).Flag10 := Val;
5593 procedure Set_Flag142 (N : Node_Id; Val : Boolean) is
5595 pragma Assert (Nkind (N) in N_Entity);
5596 Nodes.Table (N + 3).Flag11 := Val;
5599 procedure Set_Flag143 (N : Node_Id; Val : Boolean) is
5601 pragma Assert (Nkind (N) in N_Entity);
5602 Nodes.Table (N + 3).Flag12 := Val;
5605 procedure Set_Flag144 (N : Node_Id; Val : Boolean) is
5607 pragma Assert (Nkind (N) in N_Entity);
5608 Nodes.Table (N + 3).Flag13 := Val;
5611 procedure Set_Flag145 (N : Node_Id; Val : Boolean) is
5613 pragma Assert (Nkind (N) in N_Entity);
5614 Nodes.Table (N + 3).Flag14 := Val;
5617 procedure Set_Flag146 (N : Node_Id; Val : Boolean) is
5619 pragma Assert (Nkind (N) in N_Entity);
5620 Nodes.Table (N + 3).Flag15 := Val;
5623 procedure Set_Flag147 (N : Node_Id; Val : Boolean) is
5625 pragma Assert (Nkind (N) in N_Entity);
5626 Nodes.Table (N + 3).Flag16 := Val;
5629 procedure Set_Flag148 (N : Node_Id; Val : Boolean) is
5631 pragma Assert (Nkind (N) in N_Entity);
5632 Nodes.Table (N + 3).Flag17 := Val;
5635 procedure Set_Flag149 (N : Node_Id; Val : Boolean) is
5637 pragma Assert (Nkind (N) in N_Entity);
5638 Nodes.Table (N + 3).Flag18 := Val;
5641 procedure Set_Flag150 (N : Node_Id; Val : Boolean) is
5643 pragma Assert (Nkind (N) in N_Entity);
5644 Nodes.Table (N + 3).Pflag1 := Val;
5647 procedure Set_Flag151 (N : Node_Id; Val : Boolean) is
5649 pragma Assert (Nkind (N) in N_Entity);
5650 Nodes.Table (N + 3).Pflag2 := Val;
5653 procedure Set_Flag152 (N : Node_Id; Val : Boolean) is
5655 pragma Assert (Nkind (N) in N_Entity);
5658 (Nodes
.Table
(N
+ 3).Field11
'Unrestricted_Access)).Flag152
:= Val
;
5661 procedure Set_Flag153
(N
: Node_Id
; Val
: Boolean) is
5663 pragma Assert
(Nkind
(N
) in N_Entity
);
5666 (Nodes.Table (N + 3).Field11'Unrestricted_Access)).Flag153 := Val;
5669 procedure Set_Flag154 (N : Node_Id; Val : Boolean) is
5671 pragma Assert (Nkind (N) in N_Entity);
5674 (Nodes
.Table
(N
+ 3).Field11
'Unrestricted_Access)).Flag154
:= Val
;
5677 procedure Set_Flag155
(N
: Node_Id
; Val
: Boolean) is
5679 pragma Assert
(Nkind
(N
) in N_Entity
);
5682 (Nodes.Table (N + 3).Field11'Unrestricted_Access)).Flag155 := Val;
5685 procedure Set_Flag156 (N : Node_Id; Val : Boolean) is
5687 pragma Assert (Nkind (N) in N_Entity);
5690 (Nodes
.Table
(N
+ 3).Field11
'Unrestricted_Access)).Flag156
:= Val
;
5693 procedure Set_Flag157
(N
: Node_Id
; Val
: Boolean) is
5695 pragma Assert
(Nkind
(N
) in N_Entity
);
5698 (Nodes.Table (N + 3).Field11'Unrestricted_Access)).Flag157 := Val;
5701 procedure Set_Flag158 (N : Node_Id; Val : Boolean) is
5703 pragma Assert (Nkind (N) in N_Entity);
5706 (Nodes
.Table
(N
+ 3).Field11
'Unrestricted_Access)).Flag158
:= Val
;
5709 procedure Set_Flag159
(N
: Node_Id
; Val
: Boolean) is
5711 pragma Assert
(Nkind
(N
) in N_Entity
);
5714 (Nodes.Table (N + 3).Field11'Unrestricted_Access)).Flag159 := Val;
5717 procedure Set_Flag160 (N : Node_Id; Val : Boolean) is
5719 pragma Assert (Nkind (N) in N_Entity);
5722 (Nodes
.Table
(N
+ 3).Field11
'Unrestricted_Access)).Flag160
:= Val
;
5725 procedure Set_Flag161
(N
: Node_Id
; Val
: Boolean) is
5727 pragma Assert
(Nkind
(N
) in N_Entity
);
5730 (Nodes.Table (N + 3).Field11'Unrestricted_Access)).Flag161 := Val;
5733 procedure Set_Flag162 (N : Node_Id; Val : Boolean) is
5735 pragma Assert (Nkind (N) in N_Entity);
5738 (Nodes
.Table
(N
+ 3).Field11
'Unrestricted_Access)).Flag162
:= Val
;
5741 procedure Set_Flag163
(N
: Node_Id
; Val
: Boolean) is
5743 pragma Assert
(Nkind
(N
) in N_Entity
);
5746 (Nodes.Table (N + 3).Field11'Unrestricted_Access)).Flag163 := Val;
5749 procedure Set_Flag164 (N : Node_Id; Val : Boolean) is
5751 pragma Assert (Nkind (N) in N_Entity);
5754 (Nodes
.Table
(N
+ 3).Field11
'Unrestricted_Access)).Flag164
:= Val
;
5757 procedure Set_Flag165
(N
: Node_Id
; Val
: Boolean) is
5759 pragma Assert
(Nkind
(N
) in N_Entity
);
5762 (Nodes.Table (N + 3).Field11'Unrestricted_Access)).Flag165 := Val;
5765 procedure Set_Flag166 (N : Node_Id; Val : Boolean) is
5767 pragma Assert (Nkind (N) in N_Entity);
5770 (Nodes
.Table
(N
+ 3).Field11
'Unrestricted_Access)).Flag166
:= Val
;
5773 procedure Set_Flag167
(N
: Node_Id
; Val
: Boolean) is
5775 pragma Assert
(Nkind
(N
) in N_Entity
);
5778 (Nodes.Table (N + 3).Field11'Unrestricted_Access)).Flag167 := Val;
5781 procedure Set_Flag168 (N : Node_Id; Val : Boolean) is
5783 pragma Assert (Nkind (N) in N_Entity);
5786 (Nodes
.Table
(N
+ 3).Field11
'Unrestricted_Access)).Flag168
:= Val
;
5789 procedure Set_Flag169
(N
: Node_Id
; Val
: Boolean) is
5791 pragma Assert
(Nkind
(N
) in N_Entity
);
5794 (Nodes.Table (N + 3).Field11'Unrestricted_Access)).Flag169 := Val;
5797 procedure Set_Flag170 (N : Node_Id; Val : Boolean) is
5799 pragma Assert (Nkind (N) in N_Entity);
5802 (Nodes
.Table
(N
+ 3).Field11
'Unrestricted_Access)).Flag170
:= Val
;
5805 procedure Set_Flag171
(N
: Node_Id
; Val
: Boolean) is
5807 pragma Assert
(Nkind
(N
) in N_Entity
);
5810 (Nodes.Table (N + 3).Field11'Unrestricted_Access)).Flag171 := Val;
5813 procedure Set_Flag172 (N : Node_Id; Val : Boolean) is
5815 pragma Assert (Nkind (N) in N_Entity);
5818 (Nodes
.Table
(N
+ 3).Field11
'Unrestricted_Access)).Flag172
:= Val
;
5821 procedure Set_Flag173
(N
: Node_Id
; Val
: Boolean) is
5823 pragma Assert
(Nkind
(N
) in N_Entity
);
5826 (Nodes.Table (N + 3).Field11'Unrestricted_Access)).Flag173 := Val;
5829 procedure Set_Flag174 (N : Node_Id; Val : Boolean) is
5831 pragma Assert (Nkind (N) in N_Entity);
5834 (Nodes
.Table
(N
+ 3).Field11
'Unrestricted_Access)).Flag174
:= Val
;
5837 procedure Set_Flag175
(N
: Node_Id
; Val
: Boolean) is
5839 pragma Assert
(Nkind
(N
) in N_Entity
);
5842 (Nodes.Table (N + 3).Field11'Unrestricted_Access)).Flag175 := Val;
5845 procedure Set_Flag176 (N : Node_Id; Val : Boolean) is
5847 pragma Assert (Nkind (N) in N_Entity);
5850 (Nodes
.Table
(N
+ 3).Field11
'Unrestricted_Access)).Flag176
:= Val
;
5853 procedure Set_Flag177
(N
: Node_Id
; Val
: Boolean) is
5855 pragma Assert
(Nkind
(N
) in N_Entity
);
5858 (Nodes.Table (N + 3).Field11'Unrestricted_Access)).Flag177 := Val;
5861 procedure Set_Flag178 (N : Node_Id; Val : Boolean) is
5863 pragma Assert (Nkind (N) in N_Entity);
5866 (Nodes
.Table
(N
+ 3).Field11
'Unrestricted_Access)).Flag178
:= Val
;
5869 procedure Set_Flag179
(N
: Node_Id
; Val
: Boolean) is
5871 pragma Assert
(Nkind
(N
) in N_Entity
);
5874 (Nodes.Table (N + 3).Field11'Unrestricted_Access)).Flag179 := Val;
5877 procedure Set_Flag180 (N : Node_Id; Val : Boolean) is
5879 pragma Assert (Nkind (N) in N_Entity);
5882 (Nodes
.Table
(N
+ 3).Field11
'Unrestricted_Access)).Flag180
:= Val
;
5885 procedure Set_Flag181
(N
: Node_Id
; Val
: Boolean) is
5887 pragma Assert
(Nkind
(N
) in N_Entity
);
5890 (Nodes.Table (N + 3).Field11'Unrestricted_Access)).Flag181 := Val;
5893 procedure Set_Flag182 (N : Node_Id; Val : Boolean) is
5895 pragma Assert (Nkind (N) in N_Entity);
5898 (Nodes
.Table
(N
+ 3).Field11
'Unrestricted_Access)).Flag182
:= Val
;
5901 procedure Set_Flag183
(N
: Node_Id
; Val
: Boolean) is
5903 pragma Assert
(Nkind
(N
) in N_Entity
);
5906 (Nodes.Table (N + 3).Field11'Unrestricted_Access)).Flag183 := Val;
5909 procedure Set_Node1_With_Parent (N : Node_Id; Val : Node_Id) is
5911 pragma Assert (N in Nodes.First .. Nodes.Last);
5912 if Val > Error then Set_Parent (Val, N); end if;
5914 end Set_Node1_With_Parent;
5916 procedure Set_Node2_With_Parent (N : Node_Id; Val : Node_Id) is
5918 pragma Assert (N in Nodes.First .. Nodes.Last);
5919 if Val > Error then Set_Parent (Val, N); end if;
5921 end Set_Node2_With_Parent;
5923 procedure Set_Node3_With_Parent (N : Node_Id; Val : Node_Id) is
5925 pragma Assert (N in Nodes.First .. Nodes.Last);
5926 if Val > Error then Set_Parent (Val, N); end if;
5928 end Set_Node3_With_Parent;
5930 procedure Set_Node4_With_Parent (N : Node_Id; Val : Node_Id) is
5932 pragma Assert (N in Nodes.First .. Nodes.Last);
5933 if Val > Error then Set_Parent (Val, N); end if;
5935 end Set_Node4_With_Parent;
5937 procedure Set_Node5_With_Parent (N : Node_Id; Val : Node_Id) is
5939 pragma Assert (N in Nodes.First .. Nodes.Last);
5940 if Val > Error then Set_Parent (Val, N); end if;
5942 end Set_Node5_With_Parent;
5944 procedure Set_List1_With_Parent (N : Node_Id; Val : List_Id) is
5946 pragma Assert (N in Nodes.First .. Nodes.Last);
5947 if Val /= No_List and then Val /= Error_List then
5948 Set_Parent (Val, N);
5951 end Set_List1_With_Parent;
5953 procedure Set_List2_With_Parent (N : Node_Id; Val : List_Id) is
5955 pragma Assert (N in Nodes.First .. Nodes.Last);
5956 if Val /= No_List and then Val /= Error_List then
5957 Set_Parent (Val, N);
5960 end Set_List2_With_Parent;
5962 procedure Set_List3_With_Parent (N : Node_Id; Val : List_Id) is
5964 pragma Assert (N in Nodes.First .. Nodes.Last);
5965 if Val /= No_List and then Val /= Error_List then
5966 Set_Parent (Val, N);
5969 end Set_List3_With_Parent;
5971 procedure Set_List4_With_Parent (N : Node_Id; Val : List_Id) is
5973 pragma Assert (N in Nodes.First .. Nodes.Last);
5974 if Val /= No_List and then Val /= Error_List then
5975 Set_Parent (Val, N);
5978 end Set_List4_With_Parent;
5980 procedure Set_List5_With_Parent (N : Node_Id; Val : List_Id) is
5982 pragma Assert (N in Nodes.First .. Nodes.Last);
5983 if Val /= No_List and then Val /= Error_List then
5984 Set_Parent (Val, N);
5987 end Set_List5_With_Parent;
5989 end Unchecked_Access;