OSDN Git Service

* env.c [__alpha__ && __osf__] (AES_SOURCE): Define.
[pf3gnuchains/gcc-fork.git] / gcc / ada / sinfo.ads
1 ------------------------------------------------------------------------------
2 --                                                                          --
3 --                         GNAT COMPILER COMPONENTS                         --
4 --                                                                          --
5 --                                S I N F O                                 --
6 --                                                                          --
7 --                                 S p e c                                  --
8 --                                                                          --
9 --          Copyright (C) 1992-2009, Free Software Foundation, Inc.         --
10 --                                                                          --
11 -- GNAT is free software;  you can  redistribute it  and/or modify it under --
12 -- terms of the  GNU General Public License as published  by the Free Soft- --
13 -- ware  Foundation;  either version 3,  or (at your option) any later ver- --
14 -- sion.  GNAT is distributed in the hope that it will be useful, but WITH- --
15 -- OUT ANY WARRANTY;  without even the  implied warranty of MERCHANTABILITY --
16 -- or FITNESS FOR A PARTICULAR PURPOSE.                                     --
17 --                                                                          --
18 -- As a special exception under Section 7 of GPL version 3, you are granted --
19 -- additional permissions described in the GCC Runtime Library Exception,   --
20 -- version 3.1, as published by the Free Software Foundation.               --
21 --                                                                          --
22 -- You should have received a copy of the GNU General Public License and    --
23 -- a copy of the GCC Runtime Library Exception along with this program;     --
24 -- see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see    --
25 -- <http://www.gnu.org/licenses/>.                                          --
26 --                                                                          --
27 -- GNAT was originally developed  by the GNAT team at  New York University. --
28 -- Extensive contributions were provided by Ada Core Technologies Inc.      --
29 --                                                                          --
30 ------------------------------------------------------------------------------
31
32 --  This package defines the structure of the abstract syntax tree. The Tree
33 --  package provides a basic tree structure. Sinfo describes how this structure
34 --  is used to represent the syntax of an Ada program.
35
36 --  The grammar in the RM is followed very closely in the tree design, and is
37 --  repeated as part of this source file.
38
39 --  The tree contains not only the full syntactic representation of the
40 --  program, but also the results of semantic analysis. In particular, the
41 --  nodes for defining identifiers, defining character literals and defining
42 --  operator symbols, collectively referred to as entities, represent what
43 --  would normally be regarded as the symbol table information. In addition a
44 --  number of the tree nodes contain semantic information.
45
46 --  WARNING: Several files are automatically generated from this package.
47 --  See below for details.
48
49 with Namet;  use Namet;
50 with Types;  use Types;
51 with Uintp;  use Uintp;
52 with Urealp; use Urealp;
53
54 package Sinfo is
55
56    ---------------------------------
57    -- Making Changes to This File --
58    ---------------------------------
59
60    --  If changes are made to this file, a number of related steps must be
61    --  carried out to ensure consistency. First, if a field access function is
62    --  added, it appears in seven places:
63
64    --    The documentation associated with the node
65    --    The spec of the access function in sinfo.ads
66    --    The body of the access function in sinfo.adb
67    --    The pragma Inline at the end of sinfo.ads for the access function
68    --    The spec of the set procedure in sinfo.ads
69    --    The body of the set procedure in sinfo.adb
70    --    The pragma Inline at the end of sinfo.ads for the set procedure
71
72    --  The field chosen must be consistent in all places, and, for a node that
73    --  is a subexpression, must not overlap any of the standard expression
74    --  fields.
75
76    --  In addition, if any of the standard expression fields is changed, then
77    --  the utility program which creates the Treeprs spec (in file treeprs.ads)
78    --  must be updated appropriately, since it special cases expression fields.
79
80    --  If a new tree node is added, then the following changes are made
81
82    --    Add it to the documentation in the appropriate place
83    --    Add its fields to this documentation section
84    --    Define it in the appropriate classification in Node_Kind
85    --    In the body (sinfo), add entries to the access functions for all
86    --     its fields (except standard expression fields) to include the new
87    --     node in the checks.
88    --    Add an appropriate section to the case statement in sprint.adb
89    --    Add an appropriate section to the case statement in sem.adb
90    --    Add an appropriate section to the case statement in exp_util.adb
91    --     (Insert_Actions procedure)
92    --    For a subexpression, add an appropriate section to the case
93    --     statement in sem_eval.adb
94    --    For a subexpression, add an appropriate section to the case
95    --     statement in sem_res.adb
96
97    --  Finally, four utility programs must be run:
98
99    --    Run CSinfo to check that you have made the changes consistently. It
100    --     checks most of the rules given above, with clear error messages. This
101    --     utility reads sinfo.ads and sinfo.adb and generates a report to
102    --     standard output.
103
104    --    Run XSinfo to create sinfo.h, the corresponding C header. This
105    --     utility reads sinfo.ads and generates sinfo.h. Note that it does
106    --     not need to read sinfo.adb, since the contents of the body are
107    --     algorithmically determinable from the spec.
108
109    --    Run XTreeprs to create treeprs.ads, an updated version of the module
110    --     that is used to drive the tree print routine. This utility reads (but
111    --     does not modify) treeprs.adt, the template that provides the basic
112    --     structure of the file, and then fills in the data from the comments
113    --     in sinfo.ads.
114
115    --    Run XNmake to create nmake.ads and nmake.adb, the package body and
116    --     spec of the Nmake package which contains functions for constructing
117    --     nodes.
118
119    --  All of the above steps except CSinfo are done automatically by the
120    --  build scripts when you do a full bootstrap.
121
122    --  Note: sometime we could write a utility that actually generated the body
123    --  of sinfo from the spec instead of simply checking it, since, as noted
124    --  above, the contents of the body can be determined from the spec.
125
126    --------------------------------
127    -- Implicit Nodes in the Tree --
128    --------------------------------
129
130    --  Generally the structure of the tree very closely follows the grammar as
131    --  defined in the RM. However, certain nodes are omitted to save space and
132    --  simplify semantic processing. Two general classes of such omitted nodes
133    --  are as follows:
134
135    --   If the only possibilities for a non-terminal are one or more other
136    --   non-terminals (i.e. the rule is a "skinny" rule), then usually the
137    --   corresponding node is omitted from the tree, and the target construct
138    --   appears directly. For example, a real type definition is either
139    --   floating point definition or a fixed point definition. No explicit node
140    --   appears for real type definition. Instead either the floating point
141    --   definition or fixed point definition appears directly.
142
143    --   If a non-terminal corresponds to a list of some other non-terminal
144    --   (possibly with separating punctuation), then usually it is omitted from
145    --   the tree, and a list of components appears instead. For example,
146    --   sequence of statements does not appear explicitly in the tree. Instead
147    --   a list of statements appears directly.
148
149    --  Some additional cases of omitted nodes occur and are documented
150    --  individually. In particular, many nodes are omitted in the tree
151    --  generated for an expression.
152
153    -------------------------------------------
154    -- Handling of Defining Identifier Lists --
155    -------------------------------------------
156
157    --  In several declarative forms in the syntax, lists of defining
158    --  identifiers appear (object declarations, component declarations, number
159    --  declarations etc.)
160
161    --  The semantics of such statements are equivalent to a series of identical
162    --  declarations of single defining identifiers (except that conformance
163    --  checks require the same grouping of identifiers in the parameter case).
164
165    --  To simplify semantic processing, the parser breaks down such multiple
166    --  declaration cases into sequences of single declarations, duplicating
167    --  type and initialization information as required. The flags More_Ids and
168    --  Prev_Ids are used to record the original form of the source in the case
169    --  where the original source used a list of names, More_Ids being set on
170    --  all but the last name and Prev_Ids being set on all but the first name.
171    --  These flags are used to reconstruct the original source (e.g. in the
172    --  Sprint package), and also are included in the conformance checks, but
173    --  otherwise have no semantic significance.
174
175    --  Note: the reason that we use More_Ids and Prev_Ids rather than
176    --  First_Name and Last_Name flags is so that the flags are off in the
177    --  normal one identifier case, which minimizes tree print output.
178
179    -----------------------
180    -- Use of Node Lists --
181    -----------------------
182
183    --  With a few exceptions, if a construction of the form {non-terminal}
184    --  appears in the tree, lists are used in the corresponding tree node (see
185    --  package Nlists for handling of node lists). In this case a field of the
186    --  parent node points to a list of nodes for the non-terminal. The field
187    --  name for such fields has a plural name which always ends in "s". For
188    --  example, a case statement has a field Alternatives pointing to list of
189    --  case statement alternative nodes.
190
191    --  Only fields pointing to lists have names ending in "s", so generally the
192    --  structure is strongly typed, fields not ending in s point to single
193    --  nodes, and fields ending in s point to lists.
194
195    --  The following example shows how a traversal of a list is written. We
196    --  suppose here that Stmt points to a N_Case_Statement node which has a
197    --  list field called Alternatives:
198
199    --   Alt := First (Alternatives (Stmt));
200    --   while Present (Alt) loop
201    --      ..
202    --      -- processing for case statement alternative Alt
203    --      ..
204    --      Alt := Next (Alt);
205    --   end loop;
206
207    --  The Present function tests for Empty, which in this case signals the end
208    --  of the list. First returns Empty immediately if the list is empty.
209    --  Present is defined in Atree, First and Next are defined in Nlists.
210
211    --  The exceptions to this rule occur with {DEFINING_IDENTIFIERS} in all
212    --  contexts, which is handled as described in the previous section, and
213    --  with {,library_unit_NAME} in the N_With_Clause mode, which is handled
214    --  using the First_Name and Last_Name flags, as further detailed in the
215    --  description of the N_With_Clause node.
216
217    -------------
218    -- Pragmas --
219    -------------
220
221    --  Pragmas can appear in many different context, but are not included in
222    --  the grammar. Still they must appear in the tree, so they can be properly
223    --  processed.
224
225    --  Two approaches are used. In some cases, an extra field is defined in an
226    --  appropriate node that contains a list of pragmas appearing in the
227    --  expected context. For example pragmas can appear before an
228    --  Accept_Alternative in a Selective_Accept_Statement, and these pragmas
229    --  appear in the Pragmas_Before field of the N_Accept_Alternative node.
230
231    --  The other approach is to simply allow pragmas to appear in syntactic
232    --  lists where the grammar (of course) does not include the possibility.
233    --  For example, the Variants field of an N_Variant_Part node points to a
234    --  list that can contain both N_Pragma and N_Variant nodes.
235
236    --  To make processing easier in the latter case, the Nlists package
237    --  provides a set of routines (First_Non_Pragma, Last_Non_Pragma,
238    --  Next_Non_Pragma, Prev_Non_Pragma) that allow such lists to be handled
239    --  ignoring all pragmas.
240
241    --  In the case of the variants list, we can either write:
242
243    --      Variant := First (Variants (N));
244    --      while Present (Variant) loop
245    --         ...
246    --         Variant := Next (Variant);
247    --      end loop;
248
249    --  or
250
251    --      Variant := First_Non_Pragma (Variants (N));
252    --      while Present (Variant) loop
253    --         ...
254    --         Variant := Next_Non_Pragma (Variant);
255    --      end loop;
256
257    --  In the first form of the loop, Variant can either be an N_Pragma or an
258    --  N_Variant node. In the second form, Variant can only be N_Variant since
259    --  all pragmas are skipped.
260
261    ---------------------
262    -- Optional Fields --
263    ---------------------
264
265    --  Fields which correspond to a section of the syntax enclosed in square
266    --  brackets are generally omitted (and the corresponding field set to Empty
267    --  for a node, or No_List for a list). The documentation of such fields
268    --  notes these cases. One exception to this rule occurs in the case of
269    --  possibly empty statement sequences (such as the sequence of statements
270    --  in an entry call alternative). Such cases appear in the syntax rules as
271    --  [SEQUENCE_OF_STATEMENTS] and the fields corresponding to such optional
272    --  statement sequences always contain an empty list (not No_List) if no
273    --  statements are present.
274
275    --  Note: the utility program that constructs the body and spec of the Nmake
276    --  package relies on the format of the comments to determine if a field
277    --  should have a default value in the corresponding make routine. The rule
278    --  is that if the first line of the description of the field contains the
279    --  string "(set to xxx if", then a default value of xxx is provided for
280    --  this field in the corresponding Make_yyy routine.
281
282    -----------------------------------
283    -- Note on Body/Spec Terminology --
284    -----------------------------------
285
286    --  In informal discussions about Ada, it is customary to refer to package
287    --  and subprogram specs and bodies. However, this is not technically
288    --  correct, what is normally referred to as a spec or specification is in
289    --  fact a package declaration or subprogram declaration. We are careful in
290    --  GNAT to use the correct terminology and in particular, the full word
291    --  specification is never used as an incorrect substitute for declaration.
292    --  The structure and terminology used in the tree also reflects the grammar
293    --  and thus uses declaration and specification in the technically correct
294    --  manner.
295
296    --  However, there are contexts in which the informal terminology is useful.
297    --  We have the word "body" to refer to the Interp_Etype declared by the
298    --  declaration of a unit body, and in some contexts we need similar term to
299    --  refer to the entity declared by the package or subprogram declaration,
300    --  and simply using declaration can be confusing since the body also has a
301    --  declaration.
302
303    --  An example of such a context is the link between the package body and
304    --  its declaration. With_Declaration is confusing, since the package body
305    --  itself is a declaration.
306
307    --  To deal with this problem, we reserve the informal term Spec, i.e. the
308    --  popular abbreviation used in this context, to refer to the entity
309    --  declared by the package or subprogram declaration. So in the above
310    --  example case, the field in the body is called With_Spec.
311
312    --  Another important context for the use of the word Spec is in error
313    --  messages, where a hyper-correct use of declaration would be confusing to
314    --  a typical Ada programmer, and even for an expert programmer can cause
315    --  confusion since the body has a declaration as well.
316
317    --  So, to summarize:
318
319    --     Declaration    always refers to the syntactic entity that is called
320    --                    a declaration. In particular, subprogram declaration
321    --                    and package declaration are used to describe the
322    --                    syntactic entity that includes the semicolon.
323
324    --     Specification  always refers to the syntactic entity that is called
325    --                    a specification. In particular, the terms procedure
326    --                    specification, function specification, package
327    --                    specification, subprogram specification always refer
328    --                    to the syntactic entity that has no semicolon.
329
330    --     Spec           is an informal term, used to refer to the entity
331    --                    that is declared by a task declaration, protected
332    --                    declaration, generic declaration, subprogram
333    --                    declaration or package declaration.
334
335    --  This convention is followed throughout the GNAT documentation
336    --  both internal and external, and in all error message text.
337
338    ------------------------
339    -- Internal Use Nodes --
340    ------------------------
341
342    --  These are Node_Kind settings used in the internal implementation which
343    --  are not logically part of the specification.
344
345    --  N_Unused_At_Start
346    --  Completely unused entry at the start of the enumeration type. This
347    --  is inserted so that no legitimate value is zero, which helps to get
348    --  better debugging behavior, since zero is a likely uninitialized value).
349
350    --  N_Unused_At_End
351    --  Completely unused entry at the end of the enumeration type. This is
352    --  handy so that arrays with Node_Kind as the index type have an extra
353    --  entry at the end (see for example the use of the Pchar_Pos_Array in
354    --  Treepr, where the extra entry provides the limit value when dealing with
355    --  the last used entry in the array).
356
357    -----------------------------------------
358    -- Note on the settings of Sloc fields --
359    -----------------------------------------
360
361    --  The Sloc field of nodes that come from the source is set by the parser.
362    --  For internal nodes, and nodes generated during expansion the Sloc is
363    --  usually set in the call to the constructor for the node. In general the
364    --  Sloc value chosen for an internal node is the Sloc of the source node
365    --  whose processing is responsible for the expansion. For example, the Sloc
366    --  of an inherited primitive operation is the Sloc of the corresponding
367    --  derived type declaration.
368
369    --  For the nodes of a generic instantiation, the Sloc value is encoded to
370    --  represent both the original Sloc in the generic unit, and the Sloc of
371    --  the instantiation itself. See Sinput.ads for details.
372
373    --  Subprogram instances create two callable entities: one is the visible
374    --  subprogram instance, and the other is an anonymous subprogram nested
375    --  within a wrapper package that contains the renamings for the actuals.
376    --  Both of these entities have the Sloc of the defining entity in the
377    --  instantiation node. This simplifies some ASIS queries.
378
379    -----------------------
380    -- Field Definitions --
381    -----------------------
382
383    --  In the following node definitions, all fields, both syntactic and
384    --  semantic, are documented. The one exception is in the case of entities
385    --  (defining identifiers, character literals and operator symbols), where
386    --  the usage of the fields depends on the entity kind. Entity fields are
387    --  fully documented in the separate package Einfo.
388
389    --  In the node definitions, three common sets of fields are abbreviated to
390    --  save both space in the documentation, and also space in the string
391    --  (defined in Tree_Print_Strings) used to print trees. The following
392    --  abbreviations are used:
393
394    --  Note: the utility program that creates the Treeprs spec (in the file
395    --  xtreeprs.adb) knows about the special fields here, so it must be
396    --  modified if any change is made to these fields.
397
398    --    "plus fields for binary operator"
399    --       Chars                    (Name1)      Name_Id for the operator
400    --       Left_Opnd                (Node2)      left operand expression
401    --       Right_Opnd               (Node3)      right operand expression
402    --       Entity                   (Node4-Sem)  defining entity for operator
403    --       Associated_Node          (Node4-Sem)  for generic processing
404    --       Do_Overflow_Check        (Flag17-Sem) set if overflow check needed
405    --       Has_Private_View         (Flag11-Sem) set in generic units.
406
407    --    "plus fields for unary operator"
408    --       Chars                    (Name1)      Name_Id for the operator
409    --       Right_Opnd               (Node3)      right operand expression
410    --       Entity                   (Node4-Sem)  defining entity for operator
411    --       Associated_Node          (Node4-Sem)  for generic processing
412    --       Do_Overflow_Check        (Flag17-Sem) set if overflow check needed
413    --       Has_Private_View         (Flag11-Sem) set in generic units.
414
415    --    "plus fields for expression"
416    --       Paren_Count                           number of parentheses levels
417    --       Etype                    (Node5-Sem)  type of the expression
418    --       Is_Overloaded            (Flag5-Sem)  >1 type interpretation exists
419    --       Is_Static_Expression     (Flag6-Sem)  set for static expression
420    --       Raises_Constraint_Error  (Flag7-Sem)  evaluation raises CE
421    --       Must_Not_Freeze          (Flag8-Sem)  set if must not freeze
422    --       Do_Range_Check           (Flag9-Sem)  set if a range check needed
423    --       Assignment_OK            (Flag15-Sem) set if modification is OK
424    --       Is_Controlling_Actual    (Flag16-Sem) set for controlling argument
425
426    --  Note: see under (EXPRESSION) for further details on the use of
427    --  the Paren_Count field to record the number of parentheses levels.
428
429    --  Node_Kind is the type used in the Nkind field to indicate the node kind.
430    --  The actual definition of this type is given later (the reason for this
431    --  is that we want the descriptions ordered by logical chapter in the RM,
432    --  but the type definition is reordered to facilitate the definition of
433    --  some subtype ranges. The individual descriptions of the nodes show how
434    --  the various fields are used in each node kind, as well as providing
435    --  logical names for the fields. Functions and procedures are provided for
436    --  accessing and setting these fields using these logical names.
437
438    -----------------------
439    -- Gigi Restrictions --
440    -----------------------
441
442    --  The tree passed to Gigi is more restricted than the general tree form.
443    --  For example, as a result of expansion, most of the tasking nodes can
444    --  never appear. For each node to which either a complete or partial
445    --  restriction applies, a note entitled "Gigi restriction" appears which
446    --  documents the restriction.
447
448    --  Note that most of these restrictions apply only to trees generated when
449    --  code is being generated, since they involved expander actions that
450    --  destroy the tree.
451
452    ------------------------
453    -- Common Flag Fields --
454    ------------------------
455
456    --  The following flag fields appear in all nodes
457
458    --  Analyzed (Flag1)
459    --    This flag is used to indicate that a node (and all its children have
460    --    been analyzed. It is used to avoid reanalysis of a node that has
461    --    already been analyzed, both for efficiency and functional correctness
462    --    reasons.
463
464    --  Comes_From_Source (Flag2)
465    --    This flag is on for any nodes built by the scanner or parser from the
466    --    source program, and off for any nodes built by the analyzer or
467    --    expander. It indicates that a node comes from the original source.
468    --    This flag is defined in Atree.
469
470    --  Error_Posted (Flag3)
471    --    This flag is used to avoid multiple error messages being posted on or
472    --    referring to the same node. This flag is set if an error message
473    --    refers to a node or is posted on its source location, and has the
474    --    effect of inhibiting further messages involving this same node.
475
476    --  Has_Dynamic_Length_Check (Flag10-Sem)
477    --    This flag is present on all nodes. It is set to indicate that one of
478    --    the routines in unit Checks has generated a length check action which
479    --    has been inserted at the flagged node. This is used to avoid the
480    --    generation of duplicate checks.
481
482    --  Has_Dynamic_Range_Check (Flag12-Sem)
483    --    This flag is present on all nodes. It is set to indicate that one of
484    --    the routines in unit Checks has generated a range check action which
485    --    has been inserted at the flagged node. This is used to avoid the
486    --    generation of duplicate checks.
487
488    --  Has_Local_Raise (Flag8-Sem)
489    --    Present in exception handler nodes. Set if the handler can be entered
490    --    via a local raise that gets transformed to a goto statement. This will
491    --    always be set if Local_Raise_Statements is non-empty, but can also be
492    --    set as a result of generation of N_Raise_xxx nodes, or flags set in
493    --    nodes requiring generation of back end checks.
494
495    ------------------------------------
496    -- Description of Semantic Fields --
497    ------------------------------------
498
499    --  The meaning of the syntactic fields is generally clear from their names
500    --  without any further description, since the names are chosen to
501    --  correspond very closely to the syntax in the reference manual. This
502    --  section describes the usage of the semantic fields, which are used to
503    --  contain additional information determined during semantic analysis.
504
505    --  ABE_Is_Certain (Flag18-Sem)
506    --    This flag is set in an instantiation node or a call node is determined
507    --    to be sure to raise an ABE. This is used to trigger special handling
508    --    of such cases, particularly in the instantiation case where we avoid
509    --    instantiating the body if this flag is set. This flag is also present
510    --    in an N_Formal_Package_Declaration_Node since formal package
511    --    declarations are treated like instantiations, but it is always set to
512    --    False in this context.
513
514    --  Accept_Handler_Records (List5-Sem)
515    --    This field is present only in an N_Accept_Alternative node. It is used
516    --    to temporarily hold the exception handler records from an accept
517    --    statement in a selective accept. These exception handlers will
518    --    eventually be placed in the Handler_Records list of the procedure
519    --    built for this accept (see Expand_N_Selective_Accept procedure in
520    --    Exp_Ch9 for further details).
521
522    --  Access_Types_To_Process (Elist2-Sem)
523    --    Present in N_Freeze_Entity nodes for Incomplete or private types.
524    --    Contains the list of access types which may require specific treatment
525    --    when the nature of the type completion is completely known. An example
526    --    of such treatment is the generation of the associated_final_chain.
527
528    --  Actions (List1-Sem)
529    --    This field contains a sequence of actions that are associated with the
530    --    node holding the field. See the individual node types for details of
531    --    how this field is used, as well as the description of the specific use
532    --    for a particular node type.
533
534    --  Activation_Chain_Entity (Node3-Sem)
535    --    This is used in tree nodes representing task activators (blocks,
536    --    subprogram bodies, package declarations, and task bodies). It is
537    --    initially Empty, and then gets set to point to the entity for the
538    --    declared Activation_Chain variable when the first task is declared.
539    --    When tasks are declared in the corresponding declarative region this
540    --    entity is located by name (its name is always _Chain) and the declared
541    --    tasks are added to the chain. Note that N_Extended_Return_Statement
542    --    does not have this attribute, although it does have an activation
543    --    chain. This chain is used to store the tasks temporarily, and is not
544    --    used for activating them. On successful completion of the return
545    --    statement, the tasks are moved to the caller's chain, and the caller
546    --    activates them.
547
548    --  Acts_As_Spec (Flag4-Sem)
549    --    A flag set in the N_Subprogram_Body node for a subprogram body which
550    --    is acting as its own spec, except in the case of a library level
551    --    subprogram, in which case the flag is set on the parent compilation
552    --    unit node instead (see further description in spec of Lib package).
553    --    ??? Above note about Lib is dubious since lib.ads does not mention
554    --    Acts_As_Spec at all.
555
556    --  Actual_Designated_Subtype (Node4-Sem)
557    --    Present in N_Free_Statement and N_Explicit_Dereference nodes. If gigi
558    --    needs to known the dynamic constrained subtype of the designated
559    --    object, this attribute is set to that type. This is done for
560    --    N_Free_Statements for access-to-classwide types and access to
561    --    unconstrained packed array types, and for N_Explicit_Dereference when
562    --    the designated type is an unconstrained packed array and the
563    --    dereference is the prefix of a 'Size attribute reference.
564
565    --  Address_Warning_Posted (Flag18-Sem)
566    --    Present in N_Attribute_Definition nodes. Set to indicate that we have
567    --    posted a warning for the address clause regarding size or alignment
568    --    issues. Used to inhibit multiple redundant messages.
569
570    --  Aggregate_Bounds (Node3-Sem)
571    --    Present in array N_Aggregate nodes. If the aggregate contains
572    --    component associations this field points to an N_Range node whose
573    --    bounds give the lowest and highest discrete choice values. If the
574    --    named aggregate contains a dynamic or null choice this field is empty.
575    --    If the aggregate contains positional elements this field points to an
576    --    N_Integer_Literal node giving the number of positional elements. Note
577    --    that if the aggregate contains positional elements and an other choice
578    --    the N_Integer_Literal only accounts for the number of positional
579    --    elements.
580
581    --  All_Others (Flag11-Sem)
582    --    Present in an N_Others_Choice node. This flag is set for an others
583    --    exception where all exceptions are to be caught, even those that are
584    --    not normally handled (in particular the tasking abort signal). This
585    --    is used for translation of the at end handler into a normal exception
586    --    handler.
587
588    --  Assignment_OK (Flag15-Sem)
589    --    This flag is set in a subexpression node for an object, indicating
590    --    that the associated object can be modified, even if this would not
591    --    normally be permissible (either by direct assignment, or by being
592    --    passed as an out or in-out parameter). This is used by the expander
593    --    for a number of purposes, including initialization of constants and
594    --    limited type objects (such as tasks), setting discriminant fields,
595    --    setting tag values, etc. N_Object_Declaration nodes also have this
596    --    flag defined. Here it is used to indicate that an initialization
597    --    expression is valid, even where it would normally not be allowed
598    --    (e.g. where the type involved is limited).
599
600    --  Associated_Node (Node4-Sem)
601    --    Present in nodes that can denote an entity: identifiers, character
602    --    literals, operator symbols, expanded names, operator nodes, and
603    --    attribute reference nodes (all these nodes have an Entity field).
604    --    This field is also present in N_Aggregate, N_Selected_Component, and
605    --    N_Extension_Aggregate nodes. This field is used in generic processing
606    --    to create links between the generic template and the generic copy.
607    --    See Sem_Ch12.Get_Associated_Node for full details. Note that this
608    --    field overlaps Entity, which is fine, since, as explained in Sem_Ch12,
609    --    the normal function of Entity is not required at the point where the
610    --    Associated_Node is set. Note also, that in generic templates, this
611    --    means that the Entity field does not necessarily point to an Entity.
612    --    Since the back end is expected to ignore generic templates, this is
613    --    harmless.
614
615    --  At_End_Proc (Node1)
616    --    This field is present in an N_Handled_Sequence_Of_Statements node.
617    --    It contains an identifier reference for the cleanup procedure to be
618    --    called. See description of this node for further details.
619
620    --  Backwards_OK (Flag6-Sem)
621    --    A flag present in the N_Assignment_Statement node. It is used only
622    --    if the type being assigned is an array type, and is set if analysis
623    --    determines that it is definitely safe to do the copy backwards, i.e.
624    --    starting at the highest addressed element. This is the case if either
625    --    the operands do not overlap, or they may overlap, but if they do,
626    --    then the left operand is at a higher address than the right operand.
627    --
628    --    Note: If neither of the flags Forwards_OK or Backwards_OK is set, it
629    --    means that the front end could not determine that either direction is
630    --    definitely safe, and a runtime check may be required if the backend
631    --    cannot figure it out. If both flags Forwards_OK and Backwards_OK are
632    --    set, it means that the front end can assure no overlap of operands.
633
634    --  Body_To_Inline (Node3-Sem)
635    --    present in subprogram declarations. Denotes analyzed but unexpanded
636    --    body of subprogram, to be used when inlining calls. Present when the
637    --    subprogram has an Inline pragma and inlining is enabled. If the
638    --    declaration is completed by a renaming_as_body, and the renamed en-
639    --    tity is a subprogram, the Body_To_Inline is the name of that entity,
640    --    which is used directly in later calls to the original subprogram.
641
642    --  Body_Required (Flag13-Sem)
643    --    A flag that appears in the N_Compilation_Unit node indicating that
644    --    the corresponding unit requires a body. For the package case, this
645    --    indicates that a completion is required. In Ada 95, if the flag is not
646    --    set for the package case, then a body may not be present. In Ada 83,
647    --    if the flag is not set for the package case, then body is optional.
648    --    For a subprogram declaration, the flag is set except in the case where
649    --    a pragma Import or Interface applies, in which case no body is
650    --    permitted (in Ada 83 or Ada 95).
651
652    --  By_Ref (Flag5-Sem)
653    --    Present in N_Simple_Return_Statement and N_Extended_Return_Statement,
654    --    this flag is set when the returned expression is already allocated on
655    --    the secondary stack and thus the result is passed by reference rather
656    --    than copied another time.
657
658    --  Check_Address_Alignment (Flag11-Sem)
659    --    A flag present in N_Attribute_Definition clause for a 'Address
660    --    attribute definition. This flag is set if a dynamic check should be
661    --    generated at the freeze point for the entity to which this address
662    --    clause applies. The reason that we need this flag is that we want to
663    --    check for range checks being suppressed at the point where the
664    --    attribute definition clause is given, rather than testing this at the
665    --    freeze point.
666
667    --  Coextensions (Elist4-Sem)
668    --    Present in allocators nodes. Points to list of allocators for the
669    --    access discriminants of the allocated object.
670
671    --  Comes_From_Extended_Return_Statement (Flag18-Sem)
672    --    Present in N_Simple_Return_Statement nodes. True if this node was
673    --    constructed as part of the N_Extended_Return_Statement expansion.
674
675    --  Compile_Time_Known_Aggregate (Flag18-Sem)
676    --    Present in N_Aggregate nodes. Set for aggregates which can be fully
677    --    evaluated at compile time without raising constraint error. Such
678    --    aggregates can be passed as is to Gigi without any expansion. See
679    --    Sem_Aggr for the specific conditions under which an aggregate has this
680    --    flag set. See also the flag Static_Processing_OK.
681
682    --  Componentwise_Assignment (Flag14-Sem)
683    --    Present in N_Assignment_Statement nodes. Set for a record assignment
684    --    where all that needs doing is to expand it into component-by-component
685    --    assignments. This is used internally for the case of tagged types with
686    --    rep clauses, where we need to avoid recursion (we don't want to try to
687    --    generate a call to the primitive operation, because this is the case
688    --    where we are compiling the primitive operation). Note that when we are
689    --    expanding component assignments in this case, we never assign the _tag
690    --    field, but we recursively assign components of the parent type.
691
692    --  Condition_Actions (List3-Sem)
693    --    This field appears in else-if nodes and in the iteration scheme node
694    --    for while loops. This field is only used during semantic processing to
695    --    temporarily hold actions inserted into the tree. In the tree passed
696    --    to gigi, the condition actions field is always set to No_List. For
697    --    details on how this field is used, see the routine Insert_Actions in
698    --    package Exp_Util, and also the expansion routines for the relevant
699    --    nodes.
700
701    --  Context_Pending (Flag16-Sem)
702    --    This field appears in Compilation_Unit nodes, to indicate that the
703    --    context of the unit is being compiled. Used to detect circularities
704    --    that are not otherwise detected by the loading mechanism. Such
705    --    circularities can occur in the presence of limited and non-limited
706    --    with_clauses that mention the same units.
707
708    --  Controlling_Argument (Node1-Sem)
709    --    This field is set in procedure and function call nodes if the call
710    --    is a dispatching call (it is Empty for a non-dispatching call). It
711    --    indicates the source of the call's controlling tag. For procedure
712    --    calls, the Controlling_Argument is one of the actuals. For function
713    --    that has a dispatching result, it is an entity in the context of the
714    --    call that can provide a tag, or else it is the tag of the root type
715    --    of the class. It can also specify a tag directly rather than being a
716    --    tagged object. The latter is needed by the implementations of AI-239
717    --    and AI-260.
718
719    --  Conversion_OK (Flag14-Sem)
720    --    A flag set on type conversion nodes to indicate that the conversion
721    --    is to be considered as being valid, even though it is the case that
722    --    the conversion is not valid Ada. This is used for attributes Enum_Rep,
723    --    Fixed_Value and Integer_Value, for internal conversions done for
724    --    fixed-point operations, and for certain conversions for calls to
725    --    initialization procedures. If Conversion_OK is set, then Etype must be
726    --    set (the analyzer assumes that Etype has been set). For the case of
727    --    fixed-point operands, it also indicates that the conversion is to be
728    --    direct conversion of the underlying integer result, with no regard to
729    --    the small operand.
730
731    --  Corresponding_Body (Node5-Sem)
732    --    This field is set in subprogram declarations, package declarations,
733    --    entry declarations of protected types, and in generic units. It
734    --    points to the defining entity for the corresponding body (NOT the
735    --    node for the body itself).
736
737    --  Corresponding_Formal_Spec (Node3-Sem)
738    --    This field is set in subprogram renaming declarations, where it points
739    --    to the defining entity for a formal subprogram in the case where the
740    --    renaming corresponds to a generic formal subprogram association in an
741    --    instantiation. The field is Empty if the renaming does not correspond
742    --    to such a formal association.
743
744    --  Corresponding_Generic_Association (Node5-Sem)
745    --    This field is defined for object declarations and object renaming
746    --    declarations. It is set for the declarations within an instance that
747    --    map generic formals to their actuals. If set, the field points to
748    --    a generic_association which is the original parent of the expression
749    --    or name appearing in the declaration. This simplifies ASIS queries.
750
751    --  Corresponding_Integer_Value (Uint4-Sem)
752    --    This field is set in real literals of fixed-point types (it is not
753    --    used for floating-point types). It contains the integer value used
754    --    to represent the fixed-point value. It is also set on the universal
755    --    real literals used to represent bounds of fixed-point base types
756    --    and their first named subtypes.
757
758    --  Corresponding_Spec (Node5-Sem)
759    --    This field is set in subprogram, package, task, and protected body
760    --    nodes, where it points to the defining entity in the corresponding
761    --    spec. The attribute is also set in N_With_Clause nodes where it points
762    --    to the defining entity for the with'ed spec, and in a subprogram
763    --    renaming declaration when it is a Renaming_As_Body. The field is Empty
764    --    if there is no corresponding spec, as in the case of a subprogram body
765    --    that serves as its own spec.
766
767    --  Corresponding_Stub (Node3-Sem)
768    --    This field is present in an N_Subunit node. It holds the node in
769    --    the parent unit that is the stub declaration for the subunit. It is
770    --    set when analysis of the stub forces loading of the proper body. If
771    --    expansion of the proper body creates new declarative nodes, they are
772    --    inserted at the point of the corresponding_stub.
773
774    --  Dcheck_Function (Node5-Sem)
775    --    This field is present in an N_Variant node, It references the entity
776    --    for the discriminant checking function for the variant.
777
778    --  Debug_Statement (Node3)
779    --    This field is present in an N_Pragma node. It is used only for a Debug
780    --    pragma. The parameter is of the form of an expression, as required by
781    --    the pragma syntax, but is actually a procedure call. To simplify
782    --    semantic processing, the parser creates a copy of the argument
783    --    rearranged into a procedure call statement and places it in the
784    --    Debug_Statement field. Note that this field is considered syntactic
785    --    field, since it is created by the parser.
786
787    --  Default_Expression (Node5-Sem)
788    --    This field is Empty if there is no default expression. If there is a
789    --    simple default expression (one with no side effects), then this field
790    --    simply contains a copy of the Expression field (both point to the tree
791    --    for the default expression). Default_Expression is used for
792    --    conformance checking.
793
794    --  Discr_Check_Funcs_Built (Flag11-Sem)
795    --    This flag is present in N_Full_Type_Declaration nodes. It is set when
796    --    discriminant checking functions are constructed. The purpose is to
797    --    avoid attempting to set these functions more than once.
798
799    --  Do_Accessibility_Check (Flag13-Sem)
800    --    This flag is set on N_Parameter_Specification nodes to indicate
801    --    that an accessibility check is required for the parameter. It is
802    --    not yet decided who takes care of this check (TBD ???).
803
804    --  Do_Discriminant_Check (Flag13-Sem)
805    --    This flag is set on N_Selected_Component nodes to indicate that a
806    --    discriminant check is required using the discriminant check routine
807    --    associated with the selector. The actual check is generated by the
808    --    expander when processing selected components.
809
810    --  Do_Division_Check (Flag13-Sem)
811    --    This flag is set on a division operator (/ mod rem) to indicate
812    --    that a zero divide check is required. The actual check is dealt
813    --    with by the backend (all the front end does is to set the flag).
814
815    --  Do_Length_Check (Flag4-Sem)
816    --    This flag is set in an N_Assignment_Statement, N_Op_And, N_Op_Or,
817    --    N_Op_Xor, or N_Type_Conversion node to indicate that a length check
818    --    is required. It is not determined who deals with this flag (???).
819
820    --  Do_Overflow_Check (Flag17-Sem)
821    --    This flag is set on an operator where an overflow check is required on
822    --    the operation. The actual check is dealt with by the backend (all the
823    --    front end does is to set the flag). The other cases where this flag is
824    --    used is on a Type_Conversion node and for attribute reference nodes.
825    --    For a type conversion, it means that the conversion is from one base
826    --    type to another, and the value may not fit in the target base type.
827    --    See also the description of Do_Range_Check for this case. The only
828    --    attribute references which use this flag are Pred and Succ, where it
829    --    means that the result should be checked for going outside the base
830    --    range. Note that this flag is not set for modular types.
831
832    --  Do_Range_Check (Flag9-Sem)
833    --    This flag is set on an expression which appears in a context where a
834    --    range check is required. The target type is clear from the context.
835    --    The contexts in which this flag can appear are the following:
836
837    --      Right side of an assignment. In this case the target type is
838    --      taken from the left side of the assignment, which is referenced
839    --      by the Name of the N_Assignment_Statement node.
840
841    --      Subscript expressions in an indexed component. In this case the
842    --      target type is determined from the type of the array, which is
843    --      referenced by the Prefix of the N_Indexed_Component node.
844
845    --      Argument expression for a parameter, appearing either directly in
846    --      the Parameter_Associations list of a call or as the Expression of an
847    --      N_Parameter_Association node that appears in this list. In either
848    --      case, the check is against the type of the formal. Note that the
849    --      flag is relevant only in IN and IN OUT parameters, and will be
850    --      ignored for OUT parameters, where no check is required in the call,
851    --      and if a check is required on the return, it is generated explicitly
852    --      with a type conversion.
853
854    --      Initialization expression for the initial value in an object
855    --      declaration. In this case the Do_Range_Check flag is set on
856    --      the initialization expression, and the check is against the
857    --      range of the type of the object being declared.
858
859    --      The expression of a type conversion. In this case the range check is
860    --      against the target type of the conversion. See also the use of
861    --      Do_Overflow_Check on a type conversion. The distinction is that the
862    --      overflow check protects against a value that is outside the range of
863    --      the target base type, whereas a range check checks that the
864    --      resulting value (which is a value of the base type of the target
865    --      type), satisfies the range constraint of the target type.
866
867    --    Note: when a range check is required in contexts other than those
868    --    listed above (e.g. in a return statement), an additional type
869    --    conversion node is introduced to represent the required check.
870
871    --  Do_Storage_Check (Flag17-Sem)
872    --    This flag is set in an N_Allocator node to indicate that a storage
873    --    check is required for the allocation, or in an N_Subprogram_Body node
874    --    to indicate that a stack check is required in the subprogram prolog.
875    --    The N_Allocator case is handled by the routine that expands the call
876    --    to the runtime routine. The N_Subprogram_Body case is handled by the
877    --    backend, and all the semantics does is set the flag.
878
879    --  Do_Tag_Check (Flag13-Sem)
880    --    This flag is set on an N_Assignment_Statement, N_Function_Call,
881    --    N_Procedure_Call_Statement, N_Type_Conversion,
882    --    N_Simple_Return_Statement, or N_Extended_Return_Statement
883    --    node to indicate that the tag check can be suppressed. It is not
884    --    yet decided how this flag is used (TBD ???).
885
886    --  Elaborate_Present (Flag4-Sem)
887    --    This flag is set in the N_With_Clause node to indicate that pragma
888    --    Elaborate pragma appears for the with'ed units.
889
890    --  Elaborate_All_Desirable (Flag9-Sem)
891    --    This flag is set in the N_With_Clause mode to indicate that the static
892    --    elaboration processing has determined that an Elaborate_All pragma is
893    --    desirable for correct elaboration for this unit.
894
895    --  Elaborate_All_Present (Flag14-Sem)
896    --    This flag is set in the N_With_Clause node to indicate that a
897    --    pragma Elaborate_All pragma appears for the with'ed units.
898
899    --  Elaborate_Desirable (Flag11-Sem)
900    --    This flag is set in the N_With_Clause mode to indicate that the static
901    --    elaboration processing has determined that an Elaborate pragma is
902    --    desirable for correct elaboration for this unit.
903
904    --  Elaboration_Boolean (Node2-Sem)
905    --    This field is present in function and procedure specification nodes.
906    --    If set, it points to the entity for a Boolean flag that must be tested
907    --    for certain calls to check for access before elaboration. See body of
908    --    Sem_Elab for further details. This field is Empty if no elaboration
909    --    boolean is required.
910
911    --  Else_Actions (List3-Sem)
912    --    This field is present in conditional expression nodes. During code
913    --    expansion we use the Insert_Actions procedure (in Exp_Util) to insert
914    --    actions at an appropriate place in the tree to get elaborated at the
915    --    right time. For conditional expressions, we have to be sure that the
916    --    actions for the Else branch are only elaborated if the condition is
917    --    False. The Else_Actions field is used as a temporary parking place for
918    --    these actions. The final tree is always rewritten to eliminate the
919    --    need for this field, so in the tree passed to Gigi, this field is
920    --    always set to No_List.
921
922    --  Enclosing_Variant (Node2-Sem)
923    --    This field is present in the N_Variant node and identifies the Node_Id
924    --    corresponding to the immediately enclosing variant when the variant is
925    --    nested, and N_Empty otherwise. Set during semantic processing of the
926    --    variant part of a record type.
927
928    --  Entity (Node4-Sem)
929    --    Appears in all direct names (identifiers, character literals, and
930    --    operator symbols), as well as expanded names, and attributes that
931    --    denote entities, such as 'Class. Points to entity for corresponding
932    --    defining occurrence. Set after name resolution. For identifiers in a
933    --    WITH list, the corresponding defining occurrence is in a separately
934    --    compiled file, and Entity must be set by the library Load procedure.
935    --
936    --    Note: During name resolution, the value in Entity may be temporarily
937    --    incorrect (e.g. during overload resolution, Entity is initially set to
938    --    the first possible correct interpretation, and then later modified if
939    --    necessary to contain the correct value after resolution).
940    --
941    --    Note: This field overlaps Associated_Node, which is used during
942    --    generic processing (see Sem_Ch12 for details). Note also that in
943    --    generic templates, this means that the Entity field does not always
944    --    point to an Entity. Since the back end is expected to ignore generic
945    --    templates, this is harmless.
946    --
947    --    Note: This field also appears in N_Attribute_Definition_Clause nodes.
948    --    It is used only for stream attributes definition clauses. In this
949    --    case, it denotes a (possibly dummy) subprogram entity that is declared
950    --    conceptually at the point of the clause. Thus the visibility of the
951    --    attribute definition clause (in the sense of 8.3(23) as amended by
952    --    AI-195) can be checked by testing the visibility of that subprogram.
953    --
954    --    Note: Normally the Entity field of an identifier points to the entity
955    --    for the corresponding defining identifier, and hence the Chars field
956    --    of an identifier will match the Chars field of the entity. However,
957    --    there is no requirement that these match, and there are obscure cases
958    --    of generated code where they do not match.
959
960    --  Entity_Or_Associated_Node (Node4-Sem)
961    --    A synonym for both Entity and Associated_Node. Used by convention in
962    --    the code when referencing this field in cases where it is not known
963    --    whether the field contains an Entity or an Associated_Node.
964
965    --  Etype (Node5-Sem)
966    --    Appears in all expression nodes, all direct names, and all entities.
967    --    Points to the entity for the related type. Set after type resolution.
968    --    Normally this is the actual subtype of the expression. However, in
969    --    certain contexts such as the right side of an assignment, subscripts,
970    --    arguments to calls, returned value in a function, initial value etc.
971    --    it is the desired target type. In the event that this is different
972    --    from the actual type, the Do_Range_Check flag will be set if a range
973    --    check is required. Note: if the Is_Overloaded flag is set, then Etype
974    --    points to an essentially arbitrary choice from the possible set of
975    --    types.
976
977    --  Exception_Junk (Flag8-Sem)
978    --    This flag is set in a various nodes appearing in a statement sequence
979    --    to indicate that the corresponding node is an artifact of the
980    --    generated code for exception handling, and should be ignored when
981    --    analyzing the control flow of the relevant sequence of statements
982    --    (e.g. to check that it does not end with a bad return statement).
983
984    --  Exception_Label (Node5-Sem)
985    --    Appears in N_Push_xxx_Label nodes. Points to the entity of the label
986    --    to be used for transforming the corresponding exception into a goto,
987    --    or contains Empty, if this exception is not to be transformed. Also
988    --    appears in N_Exception_Handler nodes, where, if set, it indicates
989    --    that there may be a local raise for the handler, so that expansion
990    --    to allow a goto is required (and this field contains the label for
991    --    this goto). See Exp_Ch11.Expand_Local_Exception_Handlers for details.
992
993    --  Expansion_Delayed (Flag11-Sem)
994    --    Set on aggregates and extension aggregates that need a top-down rather
995    --    than bottom-up expansion. Typically aggregate expansion happens bottom
996    --    up. For nested aggregates the expansion is delayed until the enclosing
997    --    aggregate itself is expanded, e.g. in the context of a declaration. To
998    --    delay it we set this flag. This is done to avoid creating a temporary
999    --    for each level of a nested aggregates, and also to prevent the
1000    --    premature generation of constraint checks. This is also a requirement
1001    --    if we want to generate the proper attachment to the internal
1002    --    finalization lists (for record with controlled components). Top down
1003    --    expansion of aggregates is also used for in-place array aggregate
1004    --    assignment or initialization. When the full context is known, the
1005    --    target of the assignment or initialization is used to generate the
1006    --    left-hand side of individual assignment to each sub-component.
1007
1008    --  First_Inlined_Subprogram (Node3-Sem)
1009    --    Present in the N_Compilation_Unit node for the main program. Points
1010    --    to a chain of entities for subprograms that are to be inlined. The
1011    --    Next_Inlined_Subprogram field of these entities is used as a link
1012    --    pointer with Empty marking the end of the list. This field is Empty
1013    --    if there are no inlined subprograms or inlining is not active.
1014
1015    --  First_Named_Actual (Node4-Sem)
1016    --    Present in procedure call statement and function call nodes, and also
1017    --    in Intrinsic nodes. Set during semantic analysis to point to the first
1018    --    named parameter where parameters are ordered by declaration order (as
1019    --    opposed to the actual order in the call which may be different due to
1020    --    named associations). Note: this field points to the explicit actual
1021    --    parameter itself, not the N_Parameter_Association node (its parent).
1022
1023    --  First_Real_Statement (Node2-Sem)
1024    --    Present in N_Handled_Sequence_Of_Statements node. Normally set to
1025    --    Empty. Used only when declarations are moved into the statement part
1026    --    of a construct as a result of wrapping an AT END handler that is
1027    --    required to cover the declarations. In this case, this field is used
1028    --    to remember the location in the statements list of the first real
1029    --    statement, i.e. the statement that used to be first in the statement
1030    --    list before the declarations were prepended.
1031
1032    --  First_Subtype_Link (Node5-Sem)
1033    --    Present in N_Freeze_Entity node for an anonymous base type that is
1034    --    implicitly created by the declaration of a first subtype. It points
1035    --    to the entity for the first subtype.
1036
1037    --  Float_Truncate (Flag11-Sem)
1038    --    A flag present in type conversion nodes. This is used for float to
1039    --    integer conversions where truncation is required rather than rounding.
1040    --    Note that Gigi does not handle type conversions from real to integer
1041    --    with rounding (see Expand_N_Type_Conversion).
1042
1043    --  Forwards_OK (Flag5-Sem)
1044    --    A flag present in the N_Assignment_Statement node. It is used only
1045    --    if the type being assigned is an array type, and is set if analysis
1046    --    determines that it is definitely safe to do the copy forwards, i.e.
1047    --    starting at the lowest addressed element. This is the case if either
1048    --    the operands do not overlap, or they may overlap, but if they do,
1049    --    then the left operand is at a lower address than the right operand.
1050    --
1051    --    Note: If neither of the flags Forwards_OK or Backwards_OK is set, it
1052    --    means that the front end could not determine that either direction is
1053    --    definitely safe, and a runtime check may be required if the backend
1054    --    cannot figure it out. If both flags Forwards_OK and Backwards_OK are
1055    --    set, it means that the front end can assure no overlap of operands.
1056
1057    --  From_At_End (Flag4-Sem)
1058    --    This flag is set on an N_Raise_Statement node if it corresponds to
1059    --    the reraise statement generated as the last statement of an AT END
1060    --    handler when SJLJ exception handling is active. It is used to stop
1061    --    a bogus violation of restriction (No_Exception_Propagation), bogus
1062    --    because if the restriction is set, the reraise is not generated.
1063
1064    --  From_At_Mod (Flag4-Sem)
1065    --    This flag is set on the attribute definition clause node that is
1066    --    generated by a transformation of an at mod phrase in a record
1067    --    representation clause. This is used to give slightly different (Ada 83
1068    --    compatible) semantics to such a clause, namely it is used to specify a
1069    --    minimum acceptable alignment for the base type and all subtypes. In
1070    --    Ada 95 terms, the actual alignment of the base type and all subtypes
1071    --    must be a multiple of the given value, and the representation clause
1072    --    is considered to be type specific instead of subtype specific.
1073
1074    --  From_Default (Flag6-Sem)
1075    --    This flag is set on the subprogram renaming declaration created in an
1076    --    instance for a formal subprogram, when the formal is declared with a
1077    --    box, and there is no explicit actual. If the flag is present, the
1078    --    declaration is treated as an implicit reference to the formal in the
1079    --    ali file.
1080
1081    --  Generic_Parent (Node5-Sem)
1082    --    Generic_Parent is defined on declaration nodes that are instances. The
1083    --    value of Generic_Parent is the generic entity from which the instance
1084    --    is obtained. Generic_Parent is also defined for the renaming
1085    --    declarations and object declarations created for the actuals in an
1086    --    instantiation. The generic parent of such a declaration is the
1087    --    corresponding generic association in the Instantiation node.
1088
1089    --  Generic_Parent_Type (Node4-Sem)
1090    --    Generic_Parent_Type is defined on Subtype_Declaration nodes for the
1091    --    actuals of formal private and derived types. Within the instance, the
1092    --    operations on the actual are those inherited from the parent. For a
1093    --    formal private type, the parent type is the generic type itself. The
1094    --    Generic_Parent_Type is also used in an instance to determine whether a
1095    --    private operation overrides an inherited one.
1096
1097    --  Handler_List_Entry (Node2-Sem)
1098    --    This field is present in N_Object_Declaration nodes. It is set only
1099    --    for the Handler_Record entry generated for an exception in zero cost
1100    --    exception handling mode. It references the corresponding item in the
1101    --    handler list, and is used to delete this entry if the corresponding
1102    --    handler is deleted during optimization. For further details on why
1103    --    this is required, see Exp_Ch11.Remove_Handler_Entries.
1104
1105    --  Has_No_Elaboration_Code (Flag17-Sem)
1106    --    A flag that appears in the N_Compilation_Unit node to indicate whether
1107    --    or not elaboration code is present for this unit. It is initially set
1108    --    true for subprogram specs and bodies and for all generic units and
1109    --    false for non-generic package specs and bodies. Gigi may set the flag
1110    --    in the non-generic package case if it determines that no elaboration
1111    --    code is generated. Note that this flag is not related to the
1112    --    Is_Preelaborated status, there can be preelaborated packages that
1113    --    generate elaboration code, and non-preelaborated packages which do
1114    --    not generate elaboration code.
1115
1116    --  Has_Priority_Pragma (Flag6-Sem)
1117    --    A flag present in N_Subprogram_Body, N_Task_Definition and
1118    --    N_Protected_Definition nodes to flag the presence of either a Priority
1119    --    or Interrupt_Priority pragma in the declaration sequence (public or
1120    --    private in the task and protected cases)
1121
1122    --  Has_Private_View (Flag11-Sem)
1123    --    A flag present in generic nodes that have an entity, to indicate that
1124    --    the node has a private type. Used to exchange private and full
1125    --    declarations if the visibility at instantiation is different from the
1126    --    visibility at generic definition.
1127
1128    --  Has_Relative_Deadline_Pragma (Flag9-Sem)
1129    --    A flag present in N_Subprogram_Body and N_Task_Definition nodes to
1130    --    flag the presence of a pragma Relative_Deadline.
1131
1132    --  Has_Self_Reference (Flag13-Sem)
1133    --    Present in N_Aggregate and N_Extension_Aggregate. Indicates that one
1134    --    of the expressions contains an access attribute reference to the
1135    --    enclosing type. Such a self-reference can only appear in default-
1136    --    initialized aggregate for a record type.
1137
1138    --  Has_Storage_Size_Pragma (Flag5-Sem)
1139    --    A flag present in an N_Task_Definition node to flag the presence of a
1140    --    Storage_Size pragma.
1141
1142    --  Has_Task_Info_Pragma (Flag7-Sem)
1143    --    A flag present in an N_Task_Definition node to flag the presence of a
1144    --    Task_Info pragma. Used to detect duplicate pragmas.
1145
1146    --  Has_Task_Name_Pragma (Flag8-Sem)
1147    --    A flag present in N_Task_Definition nodes to flag the presence of a
1148    --    Task_Name pragma in the declaration sequence for the task.
1149
1150    --  Has_Wide_Character (Flag11-Sem)
1151    --    Present in string literals, set if any wide character (i.e. character
1152    --    code outside the Character range) appears in the string.
1153
1154    --  Hidden_By_Use_Clause (Elist4-Sem)
1155    --     An entity list present in use clauses that appear within
1156    --     instantiations. For the resolution of local entities, entities
1157    --     introduced by these use clauses have priority over global ones, and
1158    --     outer entities must be explicitly hidden/restored on exit.
1159
1160    --  Implicit_With (Flag16-Sem)
1161    --    This flag is set in the N_With_Clause node that is implicitly
1162    --    generated for runtime units that are loaded by the expander, and also
1163    --    for package System, if it is loaded implicitly by a use of the
1164    --    'Address or 'Tag attribute. ???There are other implicit with clauses
1165    --    as well.
1166
1167    --  Includes_Infinities (Flag11-Sem)
1168    --    This flag is present in N_Range nodes. It is set for the range of
1169    --    unconstrained float types defined in Standard, which include not only
1170    --    the given range of values, but also legitimately can include infinite
1171    --    values. This flag is false for any float type for which an explicit
1172    --    range is given by the programmer, even if that range is identical to
1173    --    the range for Float.
1174
1175    --  Instance_Spec (Node5-Sem)
1176    --    This field is present in generic instantiation nodes, and also in
1177    --    formal package declaration nodes (formal package declarations are
1178    --    treated in a manner very similar to package instantiations). It points
1179    --    to the node for the spec of the instance, inserted as part of the
1180    --    semantic processing for instantiations in Sem_Ch12.
1181
1182    --  Is_Accessibility_Actual (Flag12-Sem)
1183    --    Present in N_Parameter_Association nodes. True if the parameter is
1184    --    an extra actual that carries the accessibility level of the actual
1185    --    for an access parameter, in a function that dispatches on result and
1186    --    is called in a dispatching context. Used to prevent a formal/actual
1187    --    mismatch when the call is rewritten as a dispatching call.
1188
1189    --  Is_Asynchronous_Call_Block (Flag7-Sem)
1190    --    A flag set in a Block_Statement node to indicate that it is the
1191    --    expansion of an asynchronous entry call. Such a block needs cleanup
1192    --    handler to assure that the call is cancelled.
1193
1194    --  Is_Component_Left_Opnd  (Flag13-Sem)
1195    --  Is_Component_Right_Opnd (Flag14-Sem)
1196    --    Present in concatenation nodes, to indicate that the corresponding
1197    --    operand is of the component type of the result. Used in resolving
1198    --    concatenation nodes in instances.
1199
1200    --  Is_Controlling_Actual (Flag16-Sem)
1201    --    This flag is set on in an expression that is a controlling argument in
1202    --    a dispatching call. It is off in all other cases. See Sem_Disp for
1203    --    details of its use.
1204
1205    --  Is_Dynamic_Coextension (Flag18-Sem)
1206    --    Present in allocator nodes, to indicate that this is an allocator
1207    --    for an access discriminant of a dynamically allocated object. The
1208    --    coextension must be deallocated and finalized at the same time as
1209    --    the enclosing object.
1210
1211    --  Is_Entry_Barrier_Function (Flag8-Sem)
1212    --    This flag is set in an N_Subprogram_Body node which is the expansion
1213    --    of an entry barrier from a protected entry body. It is used for the
1214    --    circuitry checking for incorrect use of Current_Task.
1215
1216    --  Is_Expanded_Build_In_Place_Call (Flag11-Sem)
1217    --    This flag is set in an N_Function_Call node to indicate that the extra
1218    --    actuals to support a build-in-place style of call have been added to
1219    --    the call.
1220
1221    --  Is_In_Discriminant_Check (Flag11-Sem)
1222    --    This flag is present in a selected component, and is used to indicate
1223    --    that the reference occurs within a discriminant check. The
1224    --    significance is that optimizations based on assuming that the
1225    --    discriminant check has a correct value cannot be performed in this
1226    --    case (or the discriminant check may be optimized away!)
1227
1228    --  Is_Machine_Number (Flag11-Sem)
1229    --    This flag is set in an N_Real_Literal node to indicate that the value
1230    --    is a machine number. This avoids some unnecessary cases of converting
1231    --    real literals to machine numbers.
1232
1233    --  Is_Null_Loop (Flag16-Sem)
1234    --    This flag is set in an N_Loop_Statement node if the corresponding loop
1235    --    can be determined to be null at compile time. This is used to remove
1236    --    the loop entirely at expansion time.
1237
1238    --  Is_Overloaded (Flag5-Sem)
1239    --    A flag present in all expression nodes. Used temporarily during
1240    --    overloading determination. The setting of this flag is not relevant
1241    --    once overloading analysis is complete.
1242
1243    --  Is_Power_Of_2_For_Shift (Flag13-Sem)
1244    --    A flag present only in N_Op_Expon nodes. It is set when the
1245    --    exponentiation is of the form 2 ** N, where the type of N is an
1246    --    unsigned integral subtype whose size does not exceed the size of
1247    --    Standard_Integer (i.e. a type that can be safely converted to
1248    --    Natural), and the exponentiation appears as the right operand of an
1249    --    integer multiplication or an integer division where the dividend is
1250    --    unsigned. It is also required that overflow checking is off for both
1251    --    the exponentiation and the multiply/divide node. If this set of
1252    --    conditions holds, and the flag is set, then the division or
1253    --    multiplication can be (and is) converted to a shift.
1254
1255    --  Is_Protected_Subprogram_Body (Flag7-Sem)
1256    --    A flag set in a Subprogram_Body block to indicate that it is the
1257    --    implementation of a protected subprogram. Such a body needs cleanup
1258    --    handler to make sure that the associated protected object is unlocked
1259    --    when the subprogram completes.
1260
1261    --  Is_Static_Coextension (Flag14-Sem)
1262    --    Present in N_Allocator nodes. Set if the allocator is a coextension
1263    --    of an object allocated on the stack rather than the heap.
1264
1265    --  Is_Static_Expression (Flag6-Sem)
1266    --    Indicates that an expression is a static expression (RM 4.9). See spec
1267    --    of package Sem_Eval for full details on the use of this flag.
1268
1269    --  Is_Subprogram_Descriptor (Flag16-Sem)
1270    --    Present in N_Object_Declaration, and set only for the object
1271    --    declaration generated for a subprogram descriptor in fast exception
1272    --    mode. See Exp_Ch11 for details of use.
1273
1274    --  Is_Task_Allocation_Block (Flag6-Sem)
1275    --    A flag set in a Block_Statement node to indicate that it is the
1276    --    expansion of a task allocator, or the allocator of an object
1277    --    containing tasks. Such a block requires a cleanup handler to call
1278    --    Expunge_Unactivated_Tasks to complete any tasks that have been
1279    --    allocated but not activated when the allocator completes abnormally.
1280
1281    --  Is_Task_Master (Flag5-Sem)
1282    --    A flag set in a Subprogram_Body, Block_Statement or Task_Body node to
1283    --    indicate that the construct is a task master (i.e. has declared tasks
1284    --    or declares an access to a task type).
1285
1286    --  Itype (Node1-Sem)
1287    --    Used in N_Itype_Reference node to reference an itype for which it is
1288    --    important to ensure that it is defined. See description of this node
1289    --    for further details.
1290
1291    --  Kill_Range_Check (Flag11-Sem)
1292    --    Used in an N_Unchecked_Type_Conversion node to indicate that the
1293    --    result should not be subjected to range checks. This is used for the
1294    --    implementation of Normalize_Scalars.
1295
1296    --  Label_Construct (Node2-Sem)
1297    --    Used in an N_Implicit_Label_Declaration node. Refers to an N_Label,
1298    --    N_Block_Statement or N_Loop_Statement node to which the label
1299    --    declaration applies. This is not currently used in the compiler
1300    --    itself, but it is useful in the implementation of ASIS queries.
1301    --    This field is left empty for the special labels generated as part
1302    --    of expanding raise statements with a local exception handler.
1303
1304    --  Library_Unit (Node4-Sem)
1305    --    In a stub node, Library_Unit points to the compilation unit node of
1306    --    the corresponding subunit.
1307    --
1308    --    In a with clause node, Library_Unit points to the spec of the with'ed
1309    --    unit.
1310    --
1311    --    In a compilation unit node, the usage depends on the unit type:
1312    --
1313    --     For a library unit body, Library_Unit points to the compilation unit
1314    --     node of the corresponding spec, unless it's a subprogram body with
1315    --     Acts_As_Spec set, in which case it points to itself.
1316    --
1317    --     For a spec, Library_Unit points to the compilation unit node of the
1318    --     corresponding body, if present. The body will be present if the spec
1319    --     is or contains generics that we needed to instantiate. Similarly, the
1320    --     body will be present if we needed it for inlining purposes. Thus, if
1321    --     we have a spec/body pair, both of which are present, they point to
1322    --     each other via Library_Unit.
1323    --
1324    --     For a subunit, Library_Unit points to the compilation unit node of
1325    --     the parent body.
1326    --
1327    --    Note that this field is not used to hold the parent pointer for child
1328    --    unit (which might in any case need to use it for some other purpose as
1329    --    described above). Instead for a child unit, implicit with's are
1330    --    generated for all parents.
1331
1332    --  Local_Raise_Statements (Elist1)
1333    --    This field is present in exception handler nodes. It is set to
1334    --    No_Elist in the normal case. If there is at least one raise statement
1335    --    which can potentially be handled as a local raise, then this field
1336    --    points to a list of raise nodes, which are calls to a routine to raise
1337    --    an exception. These are raise nodes which can be optimized into gotos
1338    --    if the handler turns out to meet the conditions which permit this
1339    --    transformation. Note that this does NOT include instances of the
1340    --    N_Raise_xxx_Error nodes since the transformation of these nodes is
1341    --    handled by the back end (using the N_Push/N_Pop mechanism).
1342
1343    --  Loop_Actions (List2-Sem)
1344    --    A list present in Component_Association nodes in array aggregates.
1345    --    Used to collect actions that must be executed within the loop because
1346    --    they may need to be evaluated anew each time through.
1347
1348    --  Limited_View_Installed (Flag18-Sem)
1349    --    Present in With_Clauses and in package specifications. If set on
1350    --    with_clause, it indicates that this clause has created the current
1351    --    limited view of the designated package. On a package specification, it
1352    --    indicates that the limited view has already been created because the
1353    --    package is mentioned in a limited_with_clause in the closure of the
1354    --    unit being compiled.
1355
1356    --  Local_Raise_Not_OK (Flag7-Sem)
1357    --    Present in N_Exception_Handler nodes. Set if the handler contains
1358    --    a construct (reraise statement, or call to subprogram in package
1359    --    GNAT.Current_Exception) that makes the handler unsuitable as a target
1360    --    for a local raise (one that could otherwise be converted to a goto).
1361
1362    --  Must_Be_Byte_Aligned (Flag14-Sem)
1363    --    This flag is present in N_Attribute_Reference nodes. It can be set
1364    --    only for the Address and Unrestricted_Access attributes. If set it
1365    --    means that the object for which the address/access is given must be on
1366    --    a byte (more accurately a storage unit) boundary. If necessary, a copy
1367    --    of the object is to be made before taking the address (this copy is in
1368    --    the current scope on the stack frame). This is used for certain cases
1369    --    of code generated by the expander that passes parameters by address.
1370    --
1371    --    The reason the copy is not made by the front end is that the back end
1372    --    has more information about type layout and may be able to (but is not
1373    --    guaranteed to) prevent making unnecessary copies.
1374
1375    --  Must_Not_Freeze (Flag8-Sem)
1376    --    A flag present in all expression nodes. Normally expressions cause
1377    --    freezing as described in the RM. If this flag is set, then this is
1378    --    inhibited. This is used by the analyzer and expander to label nodes
1379    --    that are created by semantic analysis or expansion and which must not
1380    --    cause freezing even though they normally would. This flag is also
1381    --    present in an N_Subtype_Indication node, since we also use these in
1382    --    calls to Freeze_Expression.
1383
1384    --  Next_Entity (Node2-Sem)
1385    --    Present in defining identifiers, defining character literals and
1386    --    defining operator symbols (i.e. in all entities). The entities of a
1387    --    scope are chained, and this field is used as the forward pointer for
1388    --    this list. See Einfo for further details.
1389
1390    --  Next_Implicit_With (Node3-Sem)
1391    --    Present in N_With_Clause. Part of a chain of with_clauses generated
1392    --    in rtsfind to indicate implicit dependencies on predefined units. Used
1393    --    to prevent multiple with_clauses for the same unit in a given context.
1394    --    A postorder traversal of the tree whose nodes are units and whose
1395    --    links are with_clauses defines the order in which Inspector must
1396    --    examine a compiled unit and its full context. This ordering ensures
1397    --    that any subprogram call is examined after the subprogram declartion
1398    --    has been seen.
1399
1400    --  Next_Named_Actual (Node4-Sem)
1401    --    Present in parameter association node. Set during semantic analysis to
1402    --    point to the next named parameter, where parameters are ordered by
1403    --    declaration order (as opposed to the actual order in the call, which
1404    --    may be different due to named associations). Not that this field
1405    --    points to the explicit actual parameter itself, not to the
1406    --    N_Parameter_Association node (its parent).
1407
1408    --  Next_Pragma (Node1-Sem)
1409    --    Present in N_Pragma nodes. Used to create a linked list of pragma
1410    --    nodes. Currently used for two purposes:
1411    --
1412    --      Create a list of linked Check_Policy pragmas. The head of this list
1413    --      is stored in Opt.Check_Policy_List (which has further details).
1414    --
1415    --      Used by processing for Pre/Postcondition pragmas to store a list of
1416    --      pragmas associated with the spec of a subprogram (see Sem_Prag for
1417    --      details).
1418
1419    --  Next_Rep_Item (Node5-Sem)
1420    --    Present in pragma nodes and attribute definition nodes. Used to link
1421    --    representation items that apply to an entity. See description of
1422    --    First_Rep_Item field in Einfo for full details.
1423
1424    --  Next_Use_Clause (Node3-Sem)
1425    --    While use clauses are active during semantic processing, they are
1426    --    chained from the scope stack entry, using Next_Use_Clause as a link
1427    --    pointer, with Empty marking the end of the list. The head pointer is
1428    --    in the scope stack entry (First_Use_Clause). At the end of semantic
1429    --    processing (i.e. when Gigi sees the tree, the contents of this field
1430    --    is undefined and should not be read).
1431
1432    --  No_Ctrl_Actions (Flag7-Sem)
1433    --    Present in N_Assignment_Statement to indicate that no finalize nor
1434    --    adjust should take place on this assignment even though the rhs is
1435    --    controlled. This is used in init procs and aggregate expansions where
1436    --    the generated assignments are more initialisations than real
1437    --    assignments.
1438
1439    --  No_Elaboration_Check (Flag14-Sem)
1440    --    Present in N_Function_Call and N_Procedure_Call_Statement. Indicates
1441    --    that no elaboration check is needed on the call, because it appears in
1442    --    the context of a local Suppress pragma. This is used on calls within
1443    --    task bodies, where the actual elaboration checks are applied after
1444    --    analysis, when the local scope stack is not present.
1445
1446    --  No_Entities_Ref_In_Spec (Flag8-Sem)
1447    --    Present in N_With_Clause nodes. Set if the with clause is on the
1448    --    package or subprogram spec where the main unit is the corresponding
1449    --    body, and no entities of the with'ed unit are referenced by the spec
1450    --    (an entity may still be referenced in the body, so this flag is used
1451    --    to generate the proper message (see Sem_Util.Check_Unused_Withs for
1452    --    full details)
1453
1454    --  No_Initialization (Flag13-Sem)
1455    --    Present in N_Object_Declaration and N_Allocator to indicate that the
1456    --    object must not be initialized (by Initialize or call to an init
1457    --    proc). This is needed for controlled aggregates. When the Object
1458    --    declaration has an expression, this flag means that this expression
1459    --    should not be taken into account (needed for in place initialization
1460    --    with aggregates).
1461
1462    --  No_Truncation (Flag17-Sem)
1463    --    Present in N_Unchecked_Type_Conversion node. This flag has an effect
1464    --    only if the RM_Size of the source is greater than the RM_Size of the
1465    --    target for scalar operands. Normally in such a case we truncate some
1466    --    higher order bits of the source, and then sign/zero extend the result
1467    --    to form the output value. But if this flag is set, then we do not do
1468    --    any truncation, so for example, if an 8 bit input is converted to 5
1469    --    bit result which is in fact stored in 8 bits, then the high order
1470    --    three bits of the target result will be copied from the source. This
1471    --    is used for properly setting out of range values for use by pragmas
1472    --    Initialize_Scalars and Normalize_Scalars.
1473
1474    --  Original_Discriminant (Node2-Sem)
1475    --    Present in identifiers. Used in references to discriminants that
1476    --    appear in generic units. Because the names of the discriminants may be
1477    --    different in an instance, we use this field to recover the position of
1478    --    the discriminant in the original type, and replace it with the
1479    --    discriminant at the same position in the instantiated type.
1480
1481    --  Original_Entity (Node2-Sem)
1482    --    Present in numeric literals. Used to denote the named number that has
1483    --    been constant-folded into the given literal. If literal is from
1484    --    source, or the result of some other constant-folding operation, then
1485    --    Original_Entity is empty. This field is needed to handle properly
1486    --    named numbers in generic units, where the Associated_Node field
1487    --    interferes with the Entity field, making it impossible to preserve the
1488    --    original entity at the point of instantiation (ASIS problem).
1489
1490    --  Others_Discrete_Choices (List1-Sem)
1491    --    When a case statement or variant is analyzed, the semantic checks
1492    --    determine the actual list of choices that correspond to an others
1493    --    choice. This list is materialized for later use by the expander and
1494    --    the Others_Discrete_Choices field of an N_Others_Choice node points to
1495    --    this materialized list of choices, which is in standard format for a
1496    --    list of discrete choices, except that of course it cannot contain an
1497    --    N_Others_Choice entry.
1498
1499    --  Parameter_List_Truncated (Flag17-Sem)
1500    --    Present in N_Function_Call and N_Procedure_Call_Statement nodes. Set
1501    --    (for OpenVMS ports of GNAT only) if the parameter list is truncated as
1502    --    a result of a First_Optional_Parameter specification in an
1503    --    Import_Function, Import_Procedure, or Import_Valued_Procedure pragma.
1504    --    The truncation is done by the expander by removing trailing parameters
1505    --    from the argument list, in accordance with the set of rules allowing
1506    --    such parameter removal. In particular, parameters can be removed
1507    --    working from the end of the parameter list backwards up to and
1508    --    including the entry designated by First_Optional_Parameter in the
1509    --    Import pragma. Parameters can be removed if they are implicit and the
1510    --    default value is a known-at-compile-time value, including the use of
1511    --    the Null_Parameter attribute, or if explicit parameter values are
1512    --    present that match the corresponding defaults.
1513
1514    --  Parent_Spec (Node4-Sem)
1515    --    For a library unit that is a child unit spec (package or subprogram
1516    --    declaration, generic declaration or instantiation, or library level
1517    --    rename, this field points to the compilation unit node for the parent
1518    --    package specification. This field is Empty for library bodies (the
1519    --    parent spec in this case can be found from the corresponding spec).
1520
1521    --  PPC_Enabled (Flag5-Sem)
1522    --    Present in N_Pragma nodes. This flag is relevant only for precondition
1523    --    and postcondition nodes. It is true if the check corresponding to the
1524    --    pragma type is enabled at the point where the pragma appears.
1525
1526    --  Present_Expr (Uint3-Sem)
1527    --    Present in an N_Variant node. This has a meaningful value only after
1528    --    Gigi has back annotated the tree with representation information. At
1529    --    this point, it contains a reference to a gcc expression that depends
1530    --    on the values of one or more discriminants. Give a set of discriminant
1531    --    values, this expression evaluates to False (zero) if variant is not
1532    --    present, and True (non-zero) if it is present. See unit Repinfo for
1533    --    further details on gigi back annotation. This field is used during
1534    --    ASIS processing (data decomposition annex) to determine if a field is
1535    --    present or not.
1536
1537    --  Print_In_Hex (Flag13-Sem)
1538    --    Set on an N_Integer_Literal node to indicate that the value should be
1539    --    printed in hexadecimal in the sprint listing. Has no effect on
1540    --    legality or semantics of program, only on the displayed output. This
1541    --    is used to clarify output from the packed array cases.
1542
1543    --  Procedure_To_Call (Node2-Sem)
1544    --    Present in N_Allocator, N_Free_Statement, N_Simple_Return_Statement,
1545    --    and N_Extended_Return_Statement nodes. References the entity for the
1546    --    declaration of the procedure to be called to accomplish the required
1547    --    operation (i.e. for the Allocate procedure in the case of N_Allocator
1548    --    and N_Simple_Return_Statement and N_Extended_Return_Statement (for
1549    --    allocating the return value), and for the Deallocate procedure in the
1550    --    case of N_Free_Statement.
1551
1552    --  Raises_Constraint_Error (Flag7-Sem)
1553    --    Set on an expression whose evaluation will definitely fail constraint
1554    --    error check. In the case of static expressions, this flag must be set
1555    --    accurately (and if it is set, the expression is typically illegal
1556    --    unless it appears as a non-elaborated branch of a short-circuit form).
1557    --    For a non-static expression, this flag may be set whenever an
1558    --    expression (e.g. an aggregate) is known to raise constraint error. If
1559    --    set, the expression definitely will raise CE if elaborated at runtime.
1560    --    If not set, the expression may or may not raise CE. In other words, on
1561    --    static expressions, the flag is set accurately, on non-static
1562    --    expressions it is set conservatively.
1563
1564    --  Redundant_Use (Flag13-Sem)
1565    --    Present in nodes that can appear as an operand in a use clause or use
1566    --    type clause (identifiers, expanded names, attribute references). Set
1567    --    to indicate that a use is redundant (and therefore need not be undone
1568    --    on scope exit).
1569
1570    --  Renaming_Exception (Node2-Sem)
1571    --    Present in N_Exception_Declaration node. Used to point back to the
1572    --    exception renaming for an exception declared within a subprogram.
1573    --    What happens is that an exception declared in a subprogram is moved
1574    --    to the library level with a unique name, and the original exception
1575    --    becomes a renaming. This link from the library level exception to the
1576    --    renaming declaration allows registering of the proper exception name.
1577
1578    --  Return_Statement_Entity (Node5-Sem)
1579    --    Present in N_Simple_Return_Statement and N_Extended_Return_Statement.
1580    --    Points to an E_Return_Statement representing the return statement.
1581
1582    --  Return_Object_Declarations (List3)
1583    --    Present in N_Extended_Return_Statement.
1584    --    Points to a list initially containing a single
1585    --    N_Object_Declaration representing the return object.
1586    --    We use a list (instead of just a pointer to the object decl)
1587    --    because Analyze wants to insert extra actions on this list.
1588
1589    --  Rounded_Result (Flag18-Sem)
1590    --    Present in N_Type_Conversion, N_Op_Divide and N_Op_Multiply nodes.
1591    --    Used in the fixed-point cases to indicate that the result must be
1592    --    rounded as a result of the use of the 'Round attribute. Also used for
1593    --    integer N_Op_Divide nodes to indicate that the result should be
1594    --    rounded to the nearest integer (breaking ties away from zero), rather
1595    --    than truncated towards zero as usual. These rounded integer operations
1596    --    are the result of expansion of rounded fixed-point divide, conversion
1597    --    and multiplication operations.
1598
1599    --  SCIL_Entity (Node4-Sem)
1600    --    Present in SCIL nodes. Used to reference the tagged type associated
1601    --    with the SCIL node.
1602
1603    --  SCIL_Related_Node (Node1-Sem)
1604    --    Present in SCIL nodes. Used to reference a tree node that requires
1605    --    special processing in the CodePeer backend.
1606
1607    --  SCIL_Controlling_Tag (Node5-Sem)
1608    --    Present in N_SCIL_Dispatching_Call nodes. Used to reference the
1609    --    controlling tag of a dispatching call.
1610
1611    --  SCIL_Target_Prim (Node2-Sem)
1612    --    Present in N_SCIL_Dispatching_Call nodes. Used to reference the tagged
1613    --    type primitive associated with the SCIL node.
1614
1615    --  Scope (Node3-Sem)
1616    --    Present in defining identifiers, defining character literals and
1617    --    defining operator symbols (i.e. in all entities). The entities of a
1618    --    scope all use this field to reference the corresponding scope entity.
1619    --    See Einfo for further details.
1620
1621    --  Shift_Count_OK (Flag4-Sem)
1622    --    A flag present in shift nodes to indicate that the shift count is
1623    --    known to be in range, i.e. is in the range from zero to word length
1624    --    minus one. If this flag is not set, then the shift count may be
1625    --    outside this range, i.e. larger than the word length, and the code
1626    --    must ensure that such shift counts give the appropriate result.
1627
1628    --  Source_Type (Node1-Sem)
1629    --    Used in an N_Validate_Unchecked_Conversion node to point to the
1630    --    source type entity for the unchecked conversion instantiation
1631    --    which gigi must do size validation for.
1632
1633    --  Static_Processing_OK (Flag4-Sem)
1634    --    Present in N_Aggregate nodes. When the Compile_Time_Known_Aggregate
1635    --    flag is set, the full value of the aggregate can be determined at
1636    --    compile time and the aggregate can be passed as is to the back-end.
1637    --    In this event it is irrelevant whether this flag is set or not.
1638    --    However, if the flag Compile_Time_Known_Aggregate is not set but
1639    --    Static_Processing_OK is set, the aggregate can (but need not) be
1640    --    converted into a compile time known aggregate by the expander. See
1641    --    Sem_Aggr for the specific conditions under which an aggregate has its
1642    --    Static_Processing_OK flag set.
1643
1644    --  Storage_Pool (Node1-Sem)
1645    --    Present in N_Allocator, N_Free_Statement, N_Simple_Return_Statement,
1646    --    and N_Extended_Return_Statement nodes. References the entity for the
1647    --    storage pool to be used for the allocate or free call or for the
1648    --    allocation of the returned value from function. Empty indicates that
1649    --    the global default pool is to be used. Note that in the case
1650    --    of a return statement, this field is set only if the function returns
1651    --    value of a type whose size is not known at compile time on the
1652    --    secondary stack.
1653
1654    --  Suppress_Loop_Warnings (Flag17-Sem)
1655    --    Used in N_Loop_Statement node to indicate that warnings within the
1656    --    body of the loop should be suppressed. This is set when the range
1657    --    of a FOR loop is known to be null, or is probably null (loop would
1658    --    only execute if invalid values are present).
1659
1660    --  Target_Type (Node2-Sem)
1661    --    Used in an N_Validate_Unchecked_Conversion node to point to the target
1662    --    type entity for the unchecked conversion instantiation which gigi must
1663    --    do size validation for.
1664
1665    --  Then_Actions (List3-Sem)
1666    --    This field is present in conditional expression nodes. During code
1667    --    expansion we use the Insert_Actions procedure (in Exp_Util) to insert
1668    --    actions at an appropriate place in the tree to get elaborated at the
1669    --    right time. For conditional expressions, we have to be sure that the
1670    --    actions for the Then branch are only elaborated if the condition is
1671    --    True. The Then_Actions field is used as a temporary parking place for
1672    --    these actions. The final tree is always rewritten to eliminate the
1673    --    need for this field, so in the tree passed to Gigi, this field is
1674    --    always set to No_List.
1675
1676    --  Treat_Fixed_As_Integer (Flag14-Sem)
1677    --    This flag appears in operator nodes for divide, multiply, mod and rem
1678    --    on fixed-point operands. It indicates that the operands are to be
1679    --    treated as integer values, ignoring small values. This flag is only
1680    --    set as a result of expansion of fixed-point operations. Typically a
1681    --    fixed-point multiplication in the source generates subsidiary
1682    --    multiplication and division operations that work with the underlying
1683    --    integer values and have this flag set. Note that this flag is not
1684    --    needed on other arithmetic operations (add, neg, subtract etc.) since
1685    --    in these cases it is always the case that fixed is treated as integer.
1686    --    The Etype field MUST be set if this flag is set. The analyzer knows to
1687    --    leave such nodes alone, and whoever makes them must set the correct
1688    --    Etype value.
1689
1690    --  TSS_Elist (Elist3-Sem)
1691    --    Present in N_Freeze_Entity nodes. Holds an element list containing
1692    --    entries for each TSS (type support subprogram) associated with the
1693    --    frozen type. The elements of the list are the entities for the
1694    --    subprograms (see package Exp_TSS for further details). Set to No_Elist
1695    --    if there are no type support subprograms for the type or if the freeze
1696    --    node is not for a type.
1697
1698    --  Unreferenced_In_Spec (Flag7-Sem)
1699    --    Present in N_With_Clause nodes. Set if the with clause is on the
1700    --    package or subprogram spec where the main unit is the corresponding
1701    --    body, and is not referenced by the spec (it may still be referenced by
1702    --    the body, so this flag is used to generate the proper message (see
1703    --    Sem_Util.Check_Unused_Withs for details)
1704
1705    --  Was_Originally_Stub (Flag13-Sem)
1706    --    This flag is set in the node for a proper body that replaces stub.
1707    --    During the analysis procedure, stubs in some situations get rewritten
1708    --    by the corresponding bodies, and we set this flag to remember that
1709    --    this happened. Note that it is not good enough to rely on the use of
1710    --    Original_Node here because of the case of nested instantiations where
1711    --    the substituted node can be copied.
1712
1713    --  Zero_Cost_Handling (Flag5-Sem)
1714    --    This flag is set in all handled sequence of statement and exception
1715    --    handler nodes if exceptions are to be handled using the zero-cost
1716    --    mechanism (see Ada.Exceptions and System.Exceptions in files
1717    --    a-except.ads/adb and s-except.ads for full details). What gigi needs
1718    --    to do for such a handler is simply to put the code in the handler
1719    --    somewhere. The front end has generated all necessary labels.
1720
1721    --------------------------------------------------
1722    -- Note on Use of End_Label and End_Span Fields --
1723    --------------------------------------------------
1724
1725    --  Several constructs have end lines:
1726
1727    --    Loop Statement             end loop [loop_IDENTIFIER];
1728    --    Package Specification      end [[PARENT_UNIT_NAME .] IDENTIFIER]
1729    --    Task Definition            end [task_IDENTIFIER]
1730    --    Protected Definition       end [protected_IDENTIFIER]
1731    --    Protected Body             end [protected_IDENTIFIER]
1732
1733    --    Block Statement            end [block_IDENTIFIER];
1734    --    Subprogram Body            end [DESIGNATOR];
1735    --    Package Body               end [[PARENT_UNIT_NAME .] IDENTIFIER];
1736    --    Task Body                  end [task_IDENTIFIER];
1737    --    Accept Statement           end [entry_IDENTIFIER]];
1738    --    Entry Body                 end [entry_IDENTIFIER];
1739
1740    --    If Statement               end if;
1741    --    Case Statement             end case;
1742
1743    --    Record Definition          end record;
1744    --    Enumeration Definition     );
1745
1746    --  The End_Label and End_Span fields are used to mark the locations of
1747    --  these lines, and also keep track of the label in the case where a label
1748    --  is present.
1749
1750    --  For the first group above, the End_Label field of the corresponding node
1751    --  is used to point to the label identifier. In the case where there is no
1752    --  label in the source, the parser supplies a dummy identifier (with
1753    --  Comes_From_Source set to False), and the Sloc of this dummy identifier
1754    --  marks the location of the token following the END token.
1755
1756    --  For the second group, the use of End_Label is similar, but the End_Label
1757    --  is found in the N_Handled_Sequence_Of_Statements node. This is done
1758    --  simply because in some cases there is no room in the parent node.
1759
1760    --  For the third group, there is never any label, and instead of using
1761    --  End_Label, we use the End_Span field which gives the location of the
1762    --  token following END, relative to the starting Sloc of the construct,
1763    --  i.e. add Sloc (Node) + End_Span (Node) to get the Sloc of the IF or CASE
1764    --  following the End_Label.
1765
1766    --  The record definition case is handled specially, we treat it as though
1767    --  it required an optional label which is never present, and so the parser
1768    --  always builds a dummy identifier with Comes From Source set False. The
1769    --  reason we do this, rather than using End_Span in this case, is that we
1770    --  want to generate a cross-ref entry for the end of a record, since it
1771    --  represents a scope for name declaration purposes.
1772
1773    --  The enumeration definition case is handled in an exactly similar manner,
1774    --  building a dummy identifier to get a cross-reference.
1775
1776    --  Note: the reason we store the difference as a Uint, instead of storing
1777    --  the Source_Ptr value directly, is that Source_Ptr values cannot be
1778    --  distinguished from other types of values, and we count on all general
1779    --  use fields being self describing. To make things easier for clients,
1780    --  note that we provide function End_Location, and procedure
1781    --  Set_End_Location to allow access to the logical value (which is the
1782    --  Source_Ptr value for the end token).
1783
1784    ---------------------
1785    -- Syntactic Nodes --
1786    ---------------------
1787
1788       ---------------------
1789       -- 2.3  Identifier --
1790       ---------------------
1791
1792       --  IDENTIFIER ::= IDENTIFIER_LETTER {[UNDERLINE] LETTER_OR_DIGIT}
1793       --  LETTER_OR_DIGIT ::= IDENTIFIER_LETTER | DIGIT
1794
1795       --  An IDENTIFIER shall not be a reserved word
1796
1797       --  In the Ada grammar identifiers are the bottom level tokens which have
1798       --  very few semantics. Actual program identifiers are direct names. If
1799       --  we were being 100% honest with the grammar, then we would have a node
1800       --  called N_Direct_Name which would point to an identifier. However,
1801       --  that's too many extra nodes, so we just use the N_Identifier node
1802       --  directly as a direct name, and it contains the expression fields and
1803       --  Entity field that correspond to its use as a direct name. In those
1804       --  few cases where identifiers appear in contexts where they are not
1805       --  direct names (pragmas, pragma argument associations, attribute
1806       --  references and attribute definition clauses), the Chars field of the
1807       --  node contains the Name_Id for the identifier name.
1808
1809       --  Note: in GNAT, a reserved word can be treated as an identifier in two
1810       --  cases. First, an incorrect use of a reserved word as an identifier is
1811       --  diagnosed and then treated as a normal identifier. Second, an
1812       --  attribute designator of the form of a reserved word (access, delta,
1813       --  digits, range) is treated as an identifier.
1814
1815       --  Note: The set of letters that is permitted in an identifier depends
1816       --  on the character set in use. See package Csets for full details.
1817
1818       --  N_Identifier
1819       --  Sloc points to identifier
1820       --  Chars (Name1) contains the Name_Id for the identifier
1821       --  Entity (Node4-Sem)
1822       --  Associated_Node (Node4-Sem)
1823       --  Original_Discriminant (Node2-Sem)
1824       --  Redundant_Use (Flag13-Sem)
1825       --  Has_Private_View (Flag11-Sem) (set in generic units)
1826       --  plus fields for expression
1827
1828       --------------------------
1829       -- 2.4  Numeric Literal --
1830       --------------------------
1831
1832       --  NUMERIC_LITERAL ::= DECIMAL_LITERAL | BASED_LITERAL
1833
1834       ----------------------------
1835       -- 2.4.1  Decimal Literal --
1836       ----------------------------
1837
1838       --  DECIMAL_LITERAL ::= NUMERAL [.NUMERAL] [EXPONENT]
1839
1840       --  NUMERAL ::= DIGIT {[UNDERLINE] DIGIT}
1841
1842       --  EXPONENT ::= E [+] NUMERAL | E - NUMERAL
1843
1844       --  Decimal literals appear in the tree as either integer literal nodes
1845       --  or real literal nodes, depending on whether a period is present.
1846
1847       --  Note: literal nodes appear as a result of direct use of literals
1848       --  in the source program, and also as the result of evaluating
1849       --  expressions at compile time. In the latter case, it is possible
1850       --  to construct real literals that have no syntactic representation
1851       --  using the standard literal format. Such literals are listed by
1852       --  Sprint using the notation [numerator / denominator].
1853
1854       --  Note: the value of an integer literal node created by the front end
1855       --  is never outside the range of values of the base type. However, it
1856       --  can be the case that the value is outside the range of the
1857       --  particular subtype. This happens in the case of integer overflows
1858       --  with checks suppressed.
1859
1860       --  N_Integer_Literal
1861       --  Sloc points to literal
1862       --  Original_Entity (Node2-Sem) If not Empty, holds Named_Number that
1863       --  has been constant-folded into its literal value.
1864       --  Intval (Uint3) contains integer value of literal
1865       --  plus fields for expression
1866       --  Print_In_Hex (Flag13-Sem)
1867
1868       --  N_Real_Literal
1869       --  Sloc points to literal
1870       --  Original_Entity (Node2-Sem) If not Empty, holds Named_Number that
1871       --  has been constant-folded into its literal value.
1872       --  Realval (Ureal3) contains real value of literal
1873       --  Corresponding_Integer_Value (Uint4-Sem)
1874       --  Is_Machine_Number (Flag11-Sem)
1875       --  plus fields for expression
1876
1877       --------------------------
1878       -- 2.4.2  Based Literal --
1879       --------------------------
1880
1881       --  BASED_LITERAL ::=
1882       --   BASE # BASED_NUMERAL [.BASED_NUMERAL] # [EXPONENT]
1883
1884       --  BASE ::= NUMERAL
1885
1886       --  BASED_NUMERAL ::=
1887       --    EXTENDED_DIGIT {[UNDERLINE] EXTENDED_DIGIT}
1888
1889       --  EXTENDED_DIGIT ::= DIGIT | A | B | C | D | E | F
1890
1891       --  Based literals appear in the tree as either integer literal nodes
1892       --  or real literal nodes, depending on whether a period is present.
1893
1894       ----------------------------
1895       -- 2.5  Character Literal --
1896       ----------------------------
1897
1898       --  CHARACTER_LITERAL ::= ' GRAPHIC_CHARACTER '
1899
1900       --  N_Character_Literal
1901       --  Sloc points to literal
1902       --  Chars (Name1) contains the Name_Id for the identifier
1903       --  Char_Literal_Value (Uint2) contains the literal value
1904       --  Entity (Node4-Sem)
1905       --  Associated_Node (Node4-Sem)
1906       --  Has_Private_View (Flag11-Sem) set in generic units.
1907       --  plus fields for expression
1908
1909       --  Note: the Entity field will be missing (set to Empty) for character
1910       --  literals whose type is Standard.Wide_Character or Standard.Character
1911       --  or a type derived from one of these two. In this case the character
1912       --  literal stands for its own coding. The reason we take this irregular
1913       --  short cut is to avoid the need to build lots of junk defining
1914       --  character literal nodes.
1915
1916       -------------------------
1917       -- 2.6  String Literal --
1918       -------------------------
1919
1920       --  STRING LITERAL ::= "{STRING_ELEMENT}"
1921
1922       --  A STRING_ELEMENT is either a pair of quotation marks ("), or a
1923       --  single GRAPHIC_CHARACTER other than a quotation mark.
1924       --
1925       --  Is_Folded_In_Parser is True if the parser created this literal by
1926       --  folding a sequence of "&" operators. For example, if the source code
1927       --  says "aaa" & "bbb" & "ccc", and this produces "aaabbbccc", the flag
1928       --  is set. This flag is needed because the parser doesn't know about
1929       --  visibility, so the folded result might be wrong, and semantic
1930       --  analysis needs to check for that.
1931
1932       --  N_String_Literal
1933       --  Sloc points to literal
1934       --  Strval (Str3) contains Id of string value
1935       --  Has_Wide_Character (Flag11-Sem)
1936       --  Is_Folded_In_Parser (Flag4)
1937       --  plus fields for expression
1938
1939       ------------------
1940       -- 2.7  Comment --
1941       ------------------
1942
1943       --  A COMMENT starts with two adjacent hyphens and extends up to the
1944       --  end of the line. A COMMENT may appear on any line of a program.
1945
1946       --  Comments are skipped by the scanner and do not appear in the tree.
1947       --  It is possible to reconstruct the position of comments with respect
1948       --  to the elements of the tree by using the source position (Sloc)
1949       --  pointers that appear in every tree node.
1950
1951       -----------------
1952       -- 2.8  Pragma --
1953       -----------------
1954
1955       --  PRAGMA ::= pragma IDENTIFIER
1956       --    [(PRAGMA_ARGUMENT_ASSOCIATION {, PRAGMA_ARGUMENT_ASSOCIATION})];
1957
1958       --  Note that a pragma may appear in the tree anywhere a declaration
1959       --  or a statement may appear, as well as in some other situations
1960       --  which are explicitly documented.
1961
1962       --  N_Pragma
1963       --  Sloc points to pragma identifier
1964       --  Next_Pragma (Node1-Sem)
1965       --  Pragma_Argument_Associations (List2) (set to No_List if none)
1966       --  Debug_Statement (Node3) (set to Empty if not Debug, Assert)
1967       --  Pragma_Identifier (Node4)
1968       --  Next_Rep_Item (Node5-Sem)
1969       --  PPC_Enabled (Flag5-Sem)
1970
1971       --  Note: we should have a section on what pragmas are passed on to
1972       --  the back end to be processed. This section should note that pragma
1973       --  Psect_Object is always converted to Common_Object, but there are
1974       --  undoubtedly many other similar notes required ???
1975
1976       --  Note: a utility function Pragma_Name may be applied to pragma nodes
1977       --  to conveniently obtain the Chars field of the Pragma_Identifier.
1978
1979       --------------------------------------
1980       -- 2.8  Pragma Argument Association --
1981       --------------------------------------
1982
1983       --  PRAGMA_ARGUMENT_ASSOCIATION ::=
1984       --    [pragma_argument_IDENTIFIER =>] NAME
1985       --  | [pragma_argument_IDENTIFIER =>] EXPRESSION
1986
1987       --  N_Pragma_Argument_Association
1988       --  Sloc points to first token in association
1989       --  Chars (Name1) (set to No_Name if no pragma argument identifier)
1990       --  Expression (Node3)
1991
1992       ------------------------
1993       -- 2.9  Reserved Word --
1994       ------------------------
1995
1996       --  Reserved words are parsed by the scanner, and returned as the
1997       --  corresponding token types (e.g. PACKAGE is returned as Tok_Package)
1998
1999       ----------------------------
2000       -- 3.1  Basic Declaration --
2001       ----------------------------
2002
2003       --  BASIC_DECLARATION ::=
2004       --    TYPE_DECLARATION          | SUBTYPE_DECLARATION
2005       --  | OBJECT_DECLARATION        | NUMBER_DECLARATION
2006       --  | SUBPROGRAM_DECLARATION    | ABSTRACT_SUBPROGRAM_DECLARATION
2007       --  | PACKAGE_DECLARATION       | RENAMING_DECLARATION
2008       --  | EXCEPTION_DECLARATION     | GENERIC_DECLARATION
2009       --  | GENERIC_INSTANTIATION
2010
2011       --  Basic declaration also includes IMPLICIT_LABEL_DECLARATION
2012       --  see further description in section on semantic nodes.
2013
2014       --  Also, in the tree that is constructed, a pragma may appear
2015       --  anywhere that a declaration may appear.
2016
2017       ------------------------------
2018       -- 3.1  Defining Identifier --
2019       ------------------------------
2020
2021       --  DEFINING_IDENTIFIER ::= IDENTIFIER
2022
2023       --  A defining identifier is an entity, which has additional fields
2024       --  depending on the setting of the Ekind field. These additional
2025       --  fields are defined (and access subprograms declared) in package
2026       --  Einfo.
2027
2028       --  Note: N_Defining_Identifier is an extended node whose fields are
2029       --  deliberate layed out to match the layout of fields in an ordinary
2030       --  N_Identifier node allowing for easy alteration of an identifier
2031       --  node into a defining identifier node. For details, see procedure
2032       --  Sinfo.CN.Change_Identifier_To_Defining_Identifier.
2033
2034       --  N_Defining_Identifier
2035       --  Sloc points to identifier
2036       --  Chars (Name1) contains the Name_Id for the identifier
2037       --  Next_Entity (Node2-Sem)
2038       --  Scope (Node3-Sem)
2039       --  Etype (Node5-Sem)
2040
2041       -----------------------------
2042       -- 3.2.1  Type Declaration --
2043       -----------------------------
2044
2045       --  TYPE_DECLARATION ::=
2046       --    FULL_TYPE_DECLARATION
2047       --  | INCOMPLETE_TYPE_DECLARATION
2048       --  | PRIVATE_TYPE_DECLARATION
2049       --  | PRIVATE_EXTENSION_DECLARATION
2050
2051       ----------------------------------
2052       -- 3.2.1  Full Type Declaration --
2053       ----------------------------------
2054
2055       --  FULL_TYPE_DECLARATION ::=
2056       --    type DEFINING_IDENTIFIER [KNOWN_DISCRIMINANT_PART]
2057       --      is TYPE_DEFINITION;
2058       --  | TASK_TYPE_DECLARATION
2059       --  | PROTECTED_TYPE_DECLARATION
2060
2061       --  The full type declaration node is used only for the first case. The
2062       --  second case (concurrent type declaration), is represented directly
2063       --  by a task type declaration or a protected type declaration.
2064
2065       --  N_Full_Type_Declaration
2066       --  Sloc points to TYPE
2067       --  Defining_Identifier (Node1)
2068       --  Discriminant_Specifications (List4) (set to No_List if none)
2069       --  Type_Definition (Node3)
2070       --  Discr_Check_Funcs_Built (Flag11-Sem)
2071
2072       ----------------------------
2073       -- 3.2.1  Type Definition --
2074       ----------------------------
2075
2076       --  TYPE_DEFINITION ::=
2077       --    ENUMERATION_TYPE_DEFINITION  | INTEGER_TYPE_DEFINITION
2078       --  | REAL_TYPE_DEFINITION         | ARRAY_TYPE_DEFINITION
2079       --  | RECORD_TYPE_DEFINITION       | ACCESS_TYPE_DEFINITION
2080       --  | DERIVED_TYPE_DEFINITION      | INTERFACE_TYPE_DEFINITION
2081
2082       --------------------------------
2083       -- 3.2.2  Subtype Declaration --
2084       --------------------------------
2085
2086       --  SUBTYPE_DECLARATION ::=
2087       --    subtype DEFINING_IDENTIFIER is [NULL_EXCLUSION] SUBTYPE_INDICATION;
2088
2089       --  The subtype indication field is set to Empty for subtypes
2090       --  declared in package Standard (Positive, Natural).
2091
2092       --  N_Subtype_Declaration
2093       --  Sloc points to SUBTYPE
2094       --  Defining_Identifier (Node1)
2095       --  Null_Exclusion_Present (Flag11)
2096       --  Subtype_Indication (Node5)
2097       --  Generic_Parent_Type (Node4-Sem) (set for an actual derived type).
2098       --  Exception_Junk (Flag8-Sem)
2099
2100       -------------------------------
2101       -- 3.2.2  Subtype Indication --
2102       -------------------------------
2103
2104       --  SUBTYPE_INDICATION ::= SUBTYPE_MARK [CONSTRAINT]
2105
2106       --  Note: if no constraint is present, the subtype indication appears
2107       --  directly in the tree as a subtype mark. The N_Subtype_Indication
2108       --  node is used only if a constraint is present.
2109
2110       --  Note: [For Ada 2005 (AI-231)]: Because Ada 2005 extends this rule
2111       --  with the null-exclusion part (see AI-231), we had to introduce a new
2112       --  attribute in all the parents of subtype_indication nodes to indicate
2113       --  if the null-exclusion is present.
2114
2115       --  Note: the reason that this node has expression fields is that a
2116       --  subtype indication can appear as an operand of a membership test.
2117
2118       --  N_Subtype_Indication
2119       --  Sloc points to first token of subtype mark
2120       --  Subtype_Mark (Node4)
2121       --  Constraint (Node3)
2122       --  Etype (Node5-Sem)
2123       --  Must_Not_Freeze (Flag8-Sem)
2124
2125       --  Note: Etype is a copy of the Etype field of the Subtype_Mark. The
2126       --  reason for this redundancy is so that in a list of array index types,
2127       --  the Etype can be uniformly accessed to determine the subscript type.
2128       --  This means that no Itype is constructed for the actual subtype that
2129       --  is created by the subtype indication. If such an Itype is required,
2130       --  it is constructed in the context in which the indication appears.
2131
2132       -------------------------
2133       -- 3.2.2  Subtype Mark --
2134       -------------------------
2135
2136       --  SUBTYPE_MARK ::= subtype_NAME
2137
2138       -----------------------
2139       -- 3.2.2  Constraint --
2140       -----------------------
2141
2142       --  CONSTRAINT ::= SCALAR_CONSTRAINT | COMPOSITE_CONSTRAINT
2143
2144       ------------------------------
2145       -- 3.2.2  Scalar Constraint --
2146       ------------------------------
2147
2148       --  SCALAR_CONSTRAINT ::=
2149       --    RANGE_CONSTRAINT | DIGITS_CONSTRAINT | DELTA_CONSTRAINT
2150
2151       ---------------------------------
2152       -- 3.2.2  Composite Constraint --
2153       ---------------------------------
2154
2155       --  COMPOSITE_CONSTRAINT ::=
2156       --    INDEX_CONSTRAINT | DISCRIMINANT_CONSTRAINT
2157
2158       -------------------------------
2159       -- 3.3.1  Object Declaration --
2160       -------------------------------
2161
2162       --  OBJECT_DECLARATION ::=
2163       --    DEFINING_IDENTIFIER_LIST : [aliased] [constant]
2164       --      [NULL_EXCLUSION] SUBTYPE_INDICATION [:= EXPRESSION];
2165       --  | DEFINING_IDENTIFIER_LIST : [aliased] [constant]
2166       --      ACCESS_DEFINITION [:= EXPRESSION];
2167       --  | DEFINING_IDENTIFIER_LIST : [aliased] [constant]
2168       --      ARRAY_TYPE_DEFINITION [:= EXPRESSION];
2169       --  | SINGLE_TASK_DECLARATION
2170       --  | SINGLE_PROTECTED_DECLARATION
2171
2172       --  Note: aliased is not permitted in Ada 83 mode
2173
2174       --  The N_Object_Declaration node is only for the first two cases.
2175       --  Single task declaration is handled by P_Task (9.1)
2176       --  Single protected declaration is handled by P_protected (9.5)
2177
2178       --  Although the syntax allows multiple identifiers in the list, the
2179       --  semantics is as though successive declarations were given with
2180       --  identical type definition and expression components. To simplify
2181       --  semantic processing, the parser represents a multiple declaration
2182       --  case as a sequence of single declarations, using the More_Ids and
2183       --  Prev_Ids flags to preserve the original source form as described
2184       --  in the section on "Handling of Defining Identifier Lists".
2185
2186       --  The flag Has_Init_Expression is set if an initializing expression
2187       --  is present. Normally it is set if and only if Expression contains
2188       --  a non-empty value, but there is an exception to this. When the
2189       --  initializing expression is an aggregate which requires explicit
2190       --  assignments, the Expression field gets set to Empty, but this flag
2191       --  is still set, so we don't forget we had an initializing expression.
2192
2193       --  Note: if a range check is required for the initialization
2194       --  expression then the Do_Range_Check flag is set in the Expression,
2195       --  with the check being done against the type given by the object
2196       --  definition, which is also the Etype of the defining identifier.
2197
2198       --  Note: the contents of the Expression field must be ignored (i.e.
2199       --  treated as though it were Empty) if No_Initialization is set True.
2200
2201       --  Note: the back end places some restrictions on the form of the
2202       --  Expression field. If the object being declared is Atomic, then
2203       --  the Expression may not have the form of an aggregate (since this
2204       --  might cause the back end to generate separate assignments). In this
2205       --  case the front end must generate an extra temporary and initialize
2206       --  this temporary as required (the temporary itself is not atomic).
2207
2208       --  Note: there is not node kind for object definition. Instead, the
2209       --  corresponding field holds a subtype indication, an array type
2210       --  definition, or (Ada 2005, AI-406) an access definition.
2211
2212       --  N_Object_Declaration
2213       --  Sloc points to first identifier
2214       --  Defining_Identifier (Node1)
2215       --  Aliased_Present (Flag4) set if ALIASED appears
2216       --  Constant_Present (Flag17) set if CONSTANT appears
2217       --  Null_Exclusion_Present (Flag11)
2218       --  Object_Definition (Node4) subtype indic./array type def./access def.
2219       --  Expression (Node3) (set to Empty if not present)
2220       --  Handler_List_Entry (Node2-Sem)
2221       --  Corresponding_Generic_Association (Node5-Sem)
2222       --  More_Ids (Flag5) (set to False if no more identifiers in list)
2223       --  Prev_Ids (Flag6) (set to False if no previous identifiers in list)
2224       --  No_Initialization (Flag13-Sem)
2225       --  Assignment_OK (Flag15-Sem)
2226       --  Exception_Junk (Flag8-Sem)
2227       --  Is_Subprogram_Descriptor (Flag16-Sem)
2228       --  Has_Init_Expression (Flag14)
2229
2230       -------------------------------------
2231       -- 3.3.1  Defining Identifier List --
2232       -------------------------------------
2233
2234       --  DEFINING_IDENTIFIER_LIST ::=
2235       --    DEFINING_IDENTIFIER {, DEFINING_IDENTIFIER}
2236
2237       -------------------------------
2238       -- 3.3.2  Number Declaration --
2239       -------------------------------
2240
2241       --  NUMBER_DECLARATION ::=
2242       --    DEFINING_IDENTIFIER_LIST : constant := static_EXPRESSION;
2243
2244       --  Although the syntax allows multiple identifiers in the list, the
2245       --  semantics is as though successive declarations were given with
2246       --  identical expressions. To simplify semantic processing, the parser
2247       --  represents a multiple declaration case as a sequence of single
2248       --  declarations, using the More_Ids and Prev_Ids flags to preserve
2249       --  the original source form as described in the section on "Handling
2250       --  of Defining Identifier Lists".
2251
2252       --  N_Number_Declaration
2253       --  Sloc points to first identifier
2254       --  Defining_Identifier (Node1)
2255       --  Expression (Node3)
2256       --  More_Ids (Flag5) (set to False if no more identifiers in list)
2257       --  Prev_Ids (Flag6) (set to False if no previous identifiers in list)
2258
2259       ----------------------------------
2260       -- 3.4  Derived Type Definition --
2261       ----------------------------------
2262
2263       --  DERIVED_TYPE_DEFINITION ::=
2264       --    [abstract] [limited] new [NULL_EXCLUSION] parent_SUBTYPE_INDICATION
2265       --    [[and INTERFACE_LIST] RECORD_EXTENSION_PART]
2266
2267       --  Note: ABSTRACT, LIMITED and record extension part are not permitted
2268       --  in Ada 83 mode
2269
2270       --  Note: a record extension part is required if ABSTRACT is present
2271
2272       --  N_Derived_Type_Definition
2273       --  Sloc points to NEW
2274       --  Abstract_Present (Flag4)
2275       --  Null_Exclusion_Present (Flag11) (set to False if not present)
2276       --  Subtype_Indication (Node5)
2277       --  Record_Extension_Part (Node3) (set to Empty if not present)
2278       --  Limited_Present (Flag17)
2279       --  Task_Present (Flag5) set in task interfaces
2280       --  Protected_Present (Flag6) set in protected interfaces
2281       --  Synchronized_Present (Flag7) set in interfaces
2282       --  Interface_List (List2) (set to No_List if none)
2283       --  Interface_Present (Flag16) set in abstract interfaces
2284
2285       --  Note: Task_Present, Protected_Present, Synchronized_Present,
2286       --        Interface_List, and Interface_Present are used for abstract
2287       --        interfaces (see comments for INTERFACE_TYPE_DEFINITION).
2288
2289       ---------------------------
2290       -- 3.5  Range Constraint --
2291       ---------------------------
2292
2293       --  RANGE_CONSTRAINT ::= range RANGE
2294
2295       --  N_Range_Constraint
2296       --  Sloc points to RANGE
2297       --  Range_Expression (Node4)
2298
2299       ----------------
2300       -- 3.5  Range --
2301       ----------------
2302
2303       --  RANGE ::=
2304       --    RANGE_ATTRIBUTE_REFERENCE
2305       --  | SIMPLE_EXPRESSION .. SIMPLE_EXPRESSION
2306
2307       --  Note: the case of a range given as a range attribute reference
2308       --  appears directly in the tree as an attribute reference.
2309
2310       --  Note: the field name for a reference to a range is Range_Expression
2311       --  rather than Range, because range is a reserved keyword in Ada!
2312
2313       --  Note: the reason that this node has expression fields is that a
2314       --  range can appear as an operand of a membership test. The Etype
2315       --  field is the type of the range (we do NOT construct an implicit
2316       --  subtype to represent the range exactly).
2317
2318       --  N_Range
2319       --  Sloc points to ..
2320       --  Low_Bound (Node1)
2321       --  High_Bound (Node2)
2322       --  Includes_Infinities (Flag11)
2323       --  plus fields for expression
2324
2325       --  Note: if the range appears in a context, such as a subtype
2326       --  declaration, where range checks are required on one or both of
2327       --  the expression fields, then type conversion nodes are inserted
2328       --  to represent the required checks.
2329
2330       ----------------------------------------
2331       -- 3.5.1  Enumeration Type Definition --
2332       ----------------------------------------
2333
2334       --  ENUMERATION_TYPE_DEFINITION ::=
2335       --    (ENUMERATION_LITERAL_SPECIFICATION
2336       --      {, ENUMERATION_LITERAL_SPECIFICATION})
2337
2338       --  Note: the Literals field in the node described below is null for
2339       --  the case of the standard types CHARACTER and WIDE_CHARACTER, for
2340       --  which special processing handles these types as special cases.
2341
2342       --  N_Enumeration_Type_Definition
2343       --  Sloc points to left parenthesis
2344       --  Literals (List1) (Empty for CHARACTER or WIDE_CHARACTER)
2345       --  End_Label (Node4) (set to Empty if internally generated record)
2346
2347       ----------------------------------------------
2348       -- 3.5.1  Enumeration Literal Specification --
2349       ----------------------------------------------
2350
2351       --  ENUMERATION_LITERAL_SPECIFICATION ::=
2352       --    DEFINING_IDENTIFIER | DEFINING_CHARACTER_LITERAL
2353
2354       ---------------------------------------
2355       -- 3.5.1  Defining Character Literal --
2356       ---------------------------------------
2357
2358       --  DEFINING_CHARACTER_LITERAL ::= CHARACTER_LITERAL
2359
2360       --  A defining character literal is an entity, which has additional
2361       --  fields depending on the setting of the Ekind field. These
2362       --  additional fields are defined (and access subprograms declared)
2363       --  in package Einfo.
2364
2365       --  Note: N_Defining_Character_Literal is an extended node whose fields
2366       --  are deliberate layed out to match the layout of fields in an ordinary
2367       --  N_Character_Literal node allowing for easy alteration of a character
2368       --  literal node into a defining character literal node. For details, see
2369       --  Sinfo.CN.Change_Character_Literal_To_Defining_Character_Literal.
2370
2371       --  N_Defining_Character_Literal
2372       --  Sloc points to literal
2373       --  Chars (Name1) contains the Name_Id for the identifier
2374       --  Next_Entity (Node2-Sem)
2375       --  Scope (Node3-Sem)
2376       --  Etype (Node5-Sem)
2377
2378       ------------------------------------
2379       -- 3.5.4  Integer Type Definition --
2380       ------------------------------------
2381
2382       --  Note: there is an error in this rule in the latest version of the
2383       --  grammar, so we have retained the old rule pending clarification.
2384
2385       --  INTEGER_TYPE_DEFINITION ::=
2386       --    SIGNED_INTEGER_TYPE_DEFINITION
2387       --  | MODULAR_TYPE_DEFINITION
2388
2389       -------------------------------------------
2390       -- 3.5.4  Signed Integer Type Definition --
2391       -------------------------------------------
2392
2393       --  SIGNED_INTEGER_TYPE_DEFINITION ::=
2394       --    range static_SIMPLE_EXPRESSION .. static_SIMPLE_EXPRESSION
2395
2396       --  Note: the Low_Bound and High_Bound fields are set to Empty
2397       --  for integer types defined in package Standard.
2398
2399       --  N_Signed_Integer_Type_Definition
2400       --  Sloc points to RANGE
2401       --  Low_Bound (Node1)
2402       --  High_Bound (Node2)
2403
2404       ------------------------------------
2405       -- 3.5.4  Modular Type Definition --
2406       ------------------------------------
2407
2408       --  MODULAR_TYPE_DEFINITION ::= mod static_EXPRESSION
2409
2410       --  N_Modular_Type_Definition
2411       --  Sloc points to MOD
2412       --  Expression (Node3)
2413
2414       ---------------------------------
2415       -- 3.5.6  Real Type Definition --
2416       ---------------------------------
2417
2418       --  REAL_TYPE_DEFINITION ::=
2419       --    FLOATING_POINT_DEFINITION | FIXED_POINT_DEFINITION
2420
2421       --------------------------------------
2422       -- 3.5.7  Floating Point Definition --
2423       --------------------------------------
2424
2425       --  FLOATING_POINT_DEFINITION ::=
2426       --    digits static_SIMPLE_EXPRESSION [REAL_RANGE_SPECIFICATION]
2427
2428       --  Note: The Digits_Expression and Real_Range_Specifications fields
2429       --  are set to Empty for floating-point types declared in Standard.
2430
2431       --  N_Floating_Point_Definition
2432       --  Sloc points to DIGITS
2433       --  Digits_Expression (Node2)
2434       --  Real_Range_Specification (Node4) (set to Empty if not present)
2435
2436       -------------------------------------
2437       -- 3.5.7  Real Range Specification --
2438       -------------------------------------
2439
2440       --  REAL_RANGE_SPECIFICATION ::=
2441       --    range static_SIMPLE_EXPRESSION .. static_SIMPLE_EXPRESSION
2442
2443       --  N_Real_Range_Specification
2444       --  Sloc points to RANGE
2445       --  Low_Bound (Node1)
2446       --  High_Bound (Node2)
2447
2448       -----------------------------------
2449       -- 3.5.9  Fixed Point Definition --
2450       -----------------------------------
2451
2452       --  FIXED_POINT_DEFINITION ::=
2453       --    ORDINARY_FIXED_POINT_DEFINITION | DECIMAL_FIXED_POINT_DEFINITION
2454
2455       --------------------------------------------
2456       -- 3.5.9  Ordinary Fixed Point Definition --
2457       --------------------------------------------
2458
2459       --  ORDINARY_FIXED_POINT_DEFINITION ::=
2460       --    delta static_EXPRESSION REAL_RANGE_SPECIFICATION
2461
2462       --  Note: In Ada 83, the EXPRESSION must be a SIMPLE_EXPRESSION
2463
2464       --  N_Ordinary_Fixed_Point_Definition
2465       --  Sloc points to DELTA
2466       --  Delta_Expression (Node3)
2467       --  Real_Range_Specification (Node4)
2468
2469       -------------------------------------------
2470       -- 3.5.9  Decimal Fixed Point Definition --
2471       -------------------------------------------
2472
2473       --  DECIMAL_FIXED_POINT_DEFINITION ::=
2474       --    delta static_EXPRESSION
2475       --      digits static_EXPRESSION [REAL_RANGE_SPECIFICATION]
2476
2477       --  Note: decimal types are not permitted in Ada 83 mode
2478
2479       --  N_Decimal_Fixed_Point_Definition
2480       --  Sloc points to DELTA
2481       --  Delta_Expression (Node3)
2482       --  Digits_Expression (Node2)
2483       --  Real_Range_Specification (Node4) (set to Empty if not present)
2484
2485       ------------------------------
2486       -- 3.5.9  Digits Constraint --
2487       ------------------------------
2488
2489       --  DIGITS_CONSTRAINT ::=
2490       --    digits static_EXPRESSION [RANGE_CONSTRAINT]
2491
2492       --  Note: in Ada 83, the EXPRESSION must be a SIMPLE_EXPRESSION
2493       --  Note: in Ada 95, reduced accuracy subtypes are obsolescent
2494
2495       --  N_Digits_Constraint
2496       --  Sloc points to DIGITS
2497       --  Digits_Expression (Node2)
2498       --  Range_Constraint (Node4) (set to Empty if not present)
2499
2500       --------------------------------
2501       -- 3.6  Array Type Definition --
2502       --------------------------------
2503
2504       --  ARRAY_TYPE_DEFINITION ::=
2505       --    UNCONSTRAINED_ARRAY_DEFINITION | CONSTRAINED_ARRAY_DEFINITION
2506
2507       -----------------------------------------
2508       -- 3.6  Unconstrained Array Definition --
2509       -----------------------------------------
2510
2511       --  UNCONSTRAINED_ARRAY_DEFINITION ::=
2512       --    array (INDEX_SUBTYPE_DEFINITION {, INDEX_SUBTYPE_DEFINITION}) of
2513       --      COMPONENT_DEFINITION
2514
2515       --  Note: dimensionality of array is indicated by number of entries in
2516       --  the Subtype_Marks list, which has one entry for each dimension.
2517
2518       --  N_Unconstrained_Array_Definition
2519       --  Sloc points to ARRAY
2520       --  Subtype_Marks (List2)
2521       --  Component_Definition (Node4)
2522
2523       -----------------------------------
2524       -- 3.6  Index Subtype Definition --
2525       -----------------------------------
2526
2527       --  INDEX_SUBTYPE_DEFINITION ::= SUBTYPE_MARK range <>
2528
2529       --  There is no explicit node in the tree for an index subtype
2530       --  definition since the N_Unconstrained_Array_Definition node
2531       --  incorporates the type marks which appear in this context.
2532
2533       ---------------------------------------
2534       -- 3.6  Constrained Array Definition --
2535       ---------------------------------------
2536
2537       --  CONSTRAINED_ARRAY_DEFINITION ::=
2538       --    array (DISCRETE_SUBTYPE_DEFINITION
2539       --      {, DISCRETE_SUBTYPE_DEFINITION})
2540       --        of COMPONENT_DEFINITION
2541
2542       --  Note: dimensionality of array is indicated by number of entries
2543       --  in the Discrete_Subtype_Definitions list, which has one entry
2544       --  for each dimension.
2545
2546       --  N_Constrained_Array_Definition
2547       --  Sloc points to ARRAY
2548       --  Discrete_Subtype_Definitions (List2)
2549       --  Component_Definition (Node4)
2550
2551       --------------------------------------
2552       -- 3.6  Discrete Subtype Definition --
2553       --------------------------------------
2554
2555       --  DISCRETE_SUBTYPE_DEFINITION ::=
2556       --    discrete_SUBTYPE_INDICATION | RANGE
2557
2558       -------------------------------
2559       -- 3.6  Component Definition --
2560       -------------------------------
2561
2562       --  COMPONENT_DEFINITION ::=
2563       --    [aliased] [NULL_EXCLUSION] SUBTYPE_INDICATION | ACCESS_DEFINITION
2564
2565       --  Note: although the syntax does not permit a component definition to
2566       --  be an anonymous array (and the parser will diagnose such an attempt
2567       --  with an appropriate message), it is possible for anonymous arrays
2568       --  to appear as component definitions. The semantics and back end handle
2569       --  this case properly, and the expander in fact generates such cases.
2570       --  Access_Definition is an optional field that gives support to
2571       --  Ada 2005 (AI-230). The parser generates nodes that have either the
2572       --  Subtype_Indication field or else the Access_Definition field.
2573
2574       --  N_Component_Definition
2575       --  Sloc points to ALIASED, ACCESS or to first token of subtype mark
2576       --  Aliased_Present (Flag4)
2577       --  Null_Exclusion_Present (Flag11)
2578       --  Subtype_Indication (Node5) (set to Empty if not present)
2579       --  Access_Definition (Node3) (set to Empty if not present)
2580
2581       -----------------------------
2582       -- 3.6.1  Index Constraint --
2583       -----------------------------
2584
2585       --  INDEX_CONSTRAINT ::= (DISCRETE_RANGE {, DISCRETE_RANGE})
2586
2587       --  It is not in general possible to distinguish between discriminant
2588       --  constraints and index constraints at parse time, since a simple
2589       --  name could be either the subtype mark of a discrete range, or an
2590       --  expression in a discriminant association with no name. Either
2591       --  entry appears simply as the name, and the semantic parse must
2592       --  distinguish between the two cases. Thus we use a common tree
2593       --  node format for both of these constraint types.
2594
2595       --  See Discriminant_Constraint for format of node
2596
2597       ---------------------------
2598       -- 3.6.1  Discrete Range --
2599       ---------------------------
2600
2601       --  DISCRETE_RANGE ::= discrete_SUBTYPE_INDICATION | RANGE
2602
2603       ----------------------------
2604       -- 3.7  Discriminant Part --
2605       ----------------------------
2606
2607       --  DISCRIMINANT_PART ::=
2608       --    UNKNOWN_DISCRIMINANT_PART | KNOWN_DISCRIMINANT_PART
2609
2610       ------------------------------------
2611       -- 3.7  Unknown Discriminant Part --
2612       ------------------------------------
2613
2614       --  UNKNOWN_DISCRIMINANT_PART ::= (<>)
2615
2616       --  Note: unknown discriminant parts are not permitted in Ada 83 mode
2617
2618       --  There is no explicit node in the tree for an unknown discriminant
2619       --  part. Instead the Unknown_Discriminants_Present flag is set in the
2620       --  parent node.
2621
2622       ----------------------------------
2623       -- 3.7  Known Discriminant Part --
2624       ----------------------------------
2625
2626       --  KNOWN_DISCRIMINANT_PART ::=
2627       --    (DISCRIMINANT_SPECIFICATION {; DISCRIMINANT_SPECIFICATION})
2628
2629       -------------------------------------
2630       -- 3.7  Discriminant Specification --
2631       -------------------------------------
2632
2633       --  DISCRIMINANT_SPECIFICATION ::=
2634       --    DEFINING_IDENTIFIER_LIST : [NULL_EXCLUSION] SUBTYPE_MARK
2635       --      [:= DEFAULT_EXPRESSION]
2636       --  | DEFINING_IDENTIFIER_LIST : ACCESS_DEFINITION
2637       --      [:= DEFAULT_EXPRESSION]
2638
2639       --  Although the syntax allows multiple identifiers in the list, the
2640       --  semantics is as though successive specifications were given with
2641       --  identical type definition and expression components. To simplify
2642       --  semantic processing, the parser represents a multiple declaration
2643       --  case as a sequence of single specifications, using the More_Ids and
2644       --  Prev_Ids flags to preserve the original source form as described
2645       --  in the section on "Handling of Defining Identifier Lists".
2646
2647       --  N_Discriminant_Specification
2648       --  Sloc points to first identifier
2649       --  Defining_Identifier (Node1)
2650       --  Null_Exclusion_Present (Flag11)
2651       --  Discriminant_Type (Node5) subtype mark or access parameter definition
2652       --  Expression (Node3) (set to Empty if no default expression)
2653       --  More_Ids (Flag5) (set to False if no more identifiers in list)
2654       --  Prev_Ids (Flag6) (set to False if no previous identifiers in list)
2655
2656       -----------------------------
2657       -- 3.7  Default Expression --
2658       -----------------------------
2659
2660       --  DEFAULT_EXPRESSION ::= EXPRESSION
2661
2662       ------------------------------------
2663       -- 3.7.1  Discriminant Constraint --
2664       ------------------------------------
2665
2666       --  DISCRIMINANT_CONSTRAINT ::=
2667       --    (DISCRIMINANT_ASSOCIATION {, DISCRIMINANT_ASSOCIATION})
2668
2669       --  It is not in general possible to distinguish between discriminant
2670       --  constraints and index constraints at parse time, since a simple
2671       --  name could be either the subtype mark of a discrete range, or an
2672       --  expression in a discriminant association with no name. Either
2673       --  entry appears simply as the name, and the semantic parse must
2674       --  distinguish between the two cases. Thus we use a common tree
2675       --  node format for both of these constraint types.
2676
2677       --  N_Index_Or_Discriminant_Constraint
2678       --  Sloc points to left paren
2679       --  Constraints (List1) points to list of discrete ranges or
2680       --    discriminant associations
2681
2682       -------------------------------------
2683       -- 3.7.1  Discriminant Association --
2684       -------------------------------------
2685
2686       --  DISCRIMINANT_ASSOCIATION ::=
2687       --    [discriminant_SELECTOR_NAME
2688       --      {| discriminant_SELECTOR_NAME} =>] EXPRESSION
2689
2690       --  Note: a discriminant association that has no selector name list
2691       --  appears directly as an expression in the tree.
2692
2693       --  N_Discriminant_Association
2694       --  Sloc points to first token of discriminant association
2695       --  Selector_Names (List1) (always non-empty, since if no selector
2696       --   names are present, this node is not used, see comment above)
2697       --  Expression (Node3)
2698
2699       ---------------------------------
2700       -- 3.8  Record Type Definition --
2701       ---------------------------------
2702
2703       --  RECORD_TYPE_DEFINITION ::=
2704       --    [[abstract] tagged] [limited] RECORD_DEFINITION
2705
2706       --  Note: ABSTRACT, TAGGED, LIMITED are not permitted in Ada 83 mode
2707
2708       --  There is no explicit node in the tree for a record type definition.
2709       --  Instead the flags for Tagged_Present and Limited_Present appear in
2710       --  the N_Record_Definition node for a record definition appearing in
2711       --  the context of a record type definition.
2712
2713       ----------------------------
2714       -- 3.8  Record Definition --
2715       ----------------------------
2716
2717       --  RECORD_DEFINITION ::=
2718       --    record
2719       --      COMPONENT_LIST
2720       --    end record
2721       --  | null record
2722
2723       --  Note: the Abstract_Present, Tagged_Present and Limited_Present
2724       --  flags appear only for a record definition appearing in a record
2725       --  type definition.
2726
2727       --  Note: the NULL RECORD case is not permitted in Ada 83
2728
2729       --  N_Record_Definition
2730       --  Sloc points to RECORD or NULL
2731       --  End_Label (Node4) (set to Empty if internally generated record)
2732       --  Abstract_Present (Flag4)
2733       --  Tagged_Present (Flag15)
2734       --  Limited_Present (Flag17)
2735       --  Component_List (Node1) empty in null record case
2736       --  Null_Present (Flag13) set in null record case
2737       --  Task_Present (Flag5) set in task interfaces
2738       --  Protected_Present (Flag6) set in protected interfaces
2739       --  Synchronized_Present (Flag7) set in interfaces
2740       --  Interface_Present (Flag16) set in abstract interfaces
2741       --  Interface_List (List2) (set to No_List if none)
2742
2743       --  Note: Task_Present, Protected_Present, Synchronized _Present,
2744       --        Interface_List and Interface_Present are used for abstract
2745       --        interfaces (see comments for INTERFACE_TYPE_DEFINITION).
2746
2747       -------------------------
2748       -- 3.8  Component List --
2749       -------------------------
2750
2751       --  COMPONENT_LIST ::=
2752       --    COMPONENT_ITEM {COMPONENT_ITEM}
2753       --  | {COMPONENT_ITEM} VARIANT_PART
2754       --  | null;
2755
2756       --  N_Component_List
2757       --  Sloc points to first token of component list
2758       --  Component_Items (List3)
2759       --  Variant_Part (Node4) (set to Empty if no variant part)
2760       --  Null_Present (Flag13)
2761
2762       -------------------------
2763       -- 3.8  Component Item --
2764       -------------------------
2765
2766       --  COMPONENT_ITEM ::= COMPONENT_DECLARATION | REPRESENTATION_CLAUSE
2767
2768       --  Note: A component item can also be a pragma, and in the tree
2769       --  that is obtained after semantic processing, a component item
2770       --  can be an N_Null node resulting from a non-recognized pragma.
2771
2772       --------------------------------
2773       -- 3.8  Component Declaration --
2774       --------------------------------
2775
2776       --  COMPONENT_DECLARATION ::=
2777       --    DEFINING_IDENTIFIER_LIST : COMPONENT_DEFINITION
2778       --      [:= DEFAULT_EXPRESSION]
2779
2780       --  Note: although the syntax does not permit a component definition to
2781       --  be an anonymous array (and the parser will diagnose such an attempt
2782       --  with an appropriate message), it is possible for anonymous arrays
2783       --  to appear as component definitions. The semantics and back end handle
2784       --  this case properly, and the expander in fact generates such cases.
2785
2786       --  Although the syntax allows multiple identifiers in the list, the
2787       --  semantics is as though successive declarations were given with the
2788       --  same component definition and expression components. To simplify
2789       --  semantic processing, the parser represents a multiple declaration
2790       --  case as a sequence of single declarations, using the More_Ids and
2791       --  Prev_Ids flags to preserve the original source form as described
2792       --  in the section on "Handling of Defining Identifier Lists".
2793
2794       --  N_Component_Declaration
2795       --  Sloc points to first identifier
2796       --  Defining_Identifier (Node1)
2797       --  Component_Definition (Node4)
2798       --  Expression (Node3) (set to Empty if no default expression)
2799       --  More_Ids (Flag5) (set to False if no more identifiers in list)
2800       --  Prev_Ids (Flag6) (set to False if no previous identifiers in list)
2801
2802       -------------------------
2803       -- 3.8.1  Variant Part --
2804       -------------------------
2805
2806       --  VARIANT_PART ::=
2807       --    case discriminant_DIRECT_NAME is
2808       --      VARIANT
2809       --      {VARIANT}
2810       --    end case;
2811
2812       --  Note: the variants list can contain pragmas as well as variants.
2813       --  In a properly formed program there is at least one variant.
2814
2815       --  N_Variant_Part
2816       --  Sloc points to CASE
2817       --  Name (Node2)
2818       --  Variants (List1)
2819
2820       --------------------
2821       -- 3.8.1  Variant --
2822       --------------------
2823
2824       --  VARIANT ::=
2825       --    when DISCRETE_CHOICE_LIST =>
2826       --      COMPONENT_LIST
2827
2828       --  N_Variant
2829       --  Sloc points to WHEN
2830       --  Discrete_Choices (List4)
2831       --  Component_List (Node1)
2832       --  Enclosing_Variant (Node2-Sem)
2833       --  Present_Expr (Uint3-Sem)
2834       --  Dcheck_Function (Node5-Sem)
2835
2836       ---------------------------------
2837       -- 3.8.1  Discrete Choice List --
2838       ---------------------------------
2839
2840       --  DISCRETE_CHOICE_LIST ::= DISCRETE_CHOICE {| DISCRETE_CHOICE}
2841
2842       ----------------------------
2843       -- 3.8.1  Discrete Choice --
2844       ----------------------------
2845
2846       --  DISCRETE_CHOICE ::= EXPRESSION | DISCRETE_RANGE | others
2847
2848       --  Note: in Ada 83 mode, the expression must be a simple expression
2849
2850       --  The only choice that appears explicitly is the OTHERS choice, as
2851       --  defined here. Other cases of discrete choice (expression and
2852       --  discrete range) appear directly. This production is also used
2853       --  for the OTHERS possibility of an exception choice.
2854
2855       --  Note: in accordance with the syntax, the parser does not check that
2856       --  OTHERS appears at the end on its own in a choice list context. This
2857       --  is a semantic check.
2858
2859       --  N_Others_Choice
2860       --  Sloc points to OTHERS
2861       --  Others_Discrete_Choices (List1-Sem)
2862       --  All_Others (Flag11-Sem)
2863
2864       ----------------------------------
2865       -- 3.9.1  Record Extension Part --
2866       ----------------------------------
2867
2868       --  RECORD_EXTENSION_PART ::= with RECORD_DEFINITION
2869
2870       --  Note: record extension parts are not permitted in Ada 83 mode
2871
2872       --------------------------------------
2873       -- 3.9.4  Interface Type Definition --
2874       --------------------------------------
2875
2876       --  INTERFACE_TYPE_DEFINITION ::=
2877       --    [limited | task | protected | synchronized]
2878       --    interface [interface_list]
2879
2880       --  Note: Interfaces are implemented with N_Record_Definition and
2881       --        N_Derived_Type_Definition nodes because most of the support
2882       --        for the analysis of abstract types has been reused to
2883       --        analyze abstract interfaces.
2884
2885       ----------------------------------
2886       -- 3.10  Access Type Definition --
2887       ----------------------------------
2888
2889       --  ACCESS_TYPE_DEFINITION ::=
2890       --    ACCESS_TO_OBJECT_DEFINITION
2891       --  | ACCESS_TO_SUBPROGRAM_DEFINITION
2892
2893       --------------------------
2894       -- 3.10  Null Exclusion --
2895       --------------------------
2896
2897       --  NULL_EXCLUSION ::= not null
2898
2899       ---------------------------------------
2900       -- 3.10  Access To Object Definition --
2901       ---------------------------------------
2902
2903       --  ACCESS_TO_OBJECT_DEFINITION ::=
2904       --    [NULL_EXCLUSION] access [GENERAL_ACCESS_MODIFIER]
2905       --    SUBTYPE_INDICATION
2906
2907       --  N_Access_To_Object_Definition
2908       --  Sloc points to ACCESS
2909       --  All_Present (Flag15)
2910       --  Null_Exclusion_Present (Flag11)
2911       --  Subtype_Indication (Node5)
2912       --  Constant_Present (Flag17)
2913
2914       -----------------------------------
2915       -- 3.10  General Access Modifier --
2916       -----------------------------------
2917
2918       --  GENERAL_ACCESS_MODIFIER ::= all | constant
2919
2920       --  Note: general access modifiers are not permitted in Ada 83 mode
2921
2922       --  There is no explicit node in the tree for general access modifier.
2923       --  Instead the All_Present or Constant_Present flags are set in the
2924       --  parent node.
2925
2926       -------------------------------------------
2927       -- 3.10  Access To Subprogram Definition --
2928       -------------------------------------------
2929
2930       --  ACCESS_TO_SUBPROGRAM_DEFINITION
2931       --    [NULL_EXCLUSION] access [protected] procedure PARAMETER_PROFILE
2932       --  | [NULL_EXCLUSION] access [protected] function
2933       --    PARAMETER_AND_RESULT_PROFILE
2934
2935       --  Note: access to subprograms are not permitted in Ada 83 mode
2936
2937       --  N_Access_Function_Definition
2938       --  Sloc points to ACCESS
2939       --  Null_Exclusion_Present (Flag11)
2940       --  Null_Exclusion_In_Return_Present (Flag14)
2941       --  Protected_Present (Flag6)
2942       --  Parameter_Specifications (List3) (set to No_List if no formal part)
2943       --  Result_Definition (Node4) result subtype (subtype mark or access def)
2944
2945       --  N_Access_Procedure_Definition
2946       --  Sloc points to ACCESS
2947       --  Null_Exclusion_Present (Flag11)
2948       --  Protected_Present (Flag6)
2949       --  Parameter_Specifications (List3) (set to No_List if no formal part)
2950
2951       -----------------------------
2952       -- 3.10  Access Definition --
2953       -----------------------------
2954
2955       --  ACCESS_DEFINITION ::=
2956       --    [NULL_EXCLUSION] access [GENERAL_ACCESS_MODIFIER] SUBTYPE_MARK
2957       --  | ACCESS_TO_SUBPROGRAM_DEFINITION
2958
2959       --  Note: access to subprograms are an Ada 2005 (AI-254) extension
2960
2961       --  N_Access_Definition
2962       --  Sloc points to ACCESS
2963       --  Null_Exclusion_Present (Flag11)
2964       --  All_Present (Flag15)
2965       --  Constant_Present (Flag17)
2966       --  Subtype_Mark (Node4)
2967       --  Access_To_Subprogram_Definition (Node3) (set to Empty if not present)
2968
2969       -----------------------------------------
2970       -- 3.10.1  Incomplete Type Declaration --
2971       -----------------------------------------
2972
2973       --  INCOMPLETE_TYPE_DECLARATION ::=
2974       --    type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
2975
2976       --  N_Incomplete_Type_Declaration
2977       --  Sloc points to TYPE
2978       --  Defining_Identifier (Node1)
2979       --  Discriminant_Specifications (List4) (set to No_List if no
2980       --   discriminant part, or if the discriminant part is an
2981       --   unknown discriminant part)
2982       --  Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
2983       --  Tagged_Present (Flag15)
2984
2985       ----------------------------
2986       -- 3.11  Declarative Part --
2987       ----------------------------
2988
2989       --  DECLARATIVE_PART ::= {DECLARATIVE_ITEM}
2990
2991       --  Note: although the parser enforces the syntactic requirement that
2992       --  a declarative part can contain only declarations, the semantic
2993       --  processing may add statements to the list of actions in a
2994       --  declarative part, so the code generator should be prepared
2995       --  to accept a statement in this position.
2996
2997       ----------------------------
2998       -- 3.11  Declarative Item --
2999       ----------------------------
3000
3001       --  DECLARATIVE_ITEM ::= BASIC_DECLARATIVE_ITEM | BODY
3002
3003       ----------------------------------
3004       -- 3.11  Basic Declarative Item --
3005       ----------------------------------
3006
3007       --  BASIC_DECLARATIVE_ITEM ::=
3008       --    BASIC_DECLARATION | REPRESENTATION_CLAUSE | USE_CLAUSE
3009
3010       ----------------
3011       -- 3.11  Body --
3012       ----------------
3013
3014       --  BODY ::= PROPER_BODY | BODY_STUB
3015
3016       -----------------------
3017       -- 3.11  Proper Body --
3018       -----------------------
3019
3020       --  PROPER_BODY ::=
3021       --    SUBPROGRAM_BODY | PACKAGE_BODY | TASK_BODY | PROTECTED_BODY
3022
3023       ---------------
3024       -- 4.1  Name --
3025       ---------------
3026
3027       --  NAME ::=
3028       --    DIRECT_NAME        | EXPLICIT_DEREFERENCE
3029       --  | INDEXED_COMPONENT  | SLICE
3030       --  | SELECTED_COMPONENT | ATTRIBUTE_REFERENCE
3031       --  | TYPE_CONVERSION    | FUNCTION_CALL
3032       --  | CHARACTER_LITERAL
3033
3034       ----------------------
3035       -- 4.1  Direct Name --
3036       ----------------------
3037
3038       --  DIRECT_NAME ::= IDENTIFIER | OPERATOR_SYMBOL
3039
3040       -----------------
3041       -- 4.1  Prefix --
3042       -----------------
3043
3044       --  PREFIX ::= NAME | IMPLICIT_DEREFERENCE
3045
3046       -------------------------------
3047       -- 4.1  Explicit Dereference --
3048       -------------------------------
3049
3050       --  EXPLICIT_DEREFERENCE ::= NAME . all
3051
3052       --  N_Explicit_Dereference
3053       --  Sloc points to ALL
3054       --  Prefix (Node3)
3055       --  Actual_Designated_Subtype (Node4-Sem)
3056       --  plus fields for expression
3057
3058       -------------------------------
3059       -- 4.1  Implicit Dereference --
3060       -------------------------------
3061
3062       --  IMPLICIT_DEREFERENCE ::= NAME
3063
3064       ------------------------------
3065       -- 4.1.1  Indexed Component --
3066       ------------------------------
3067
3068       --  INDEXED_COMPONENT ::= PREFIX (EXPRESSION {, EXPRESSION})
3069
3070       --  Note: the parser may generate this node in some situations where it
3071       --  should be a function call. The semantic  pass must correct this
3072       --  misidentification (which is inevitable at the parser level).
3073
3074       --  N_Indexed_Component
3075       --  Sloc contains a copy of the Sloc value of the Prefix
3076       --  Prefix (Node3)
3077       --  Expressions (List1)
3078       --  plus fields for expression
3079
3080       --  Note: if any of the subscripts requires a range check, then the
3081       --  Do_Range_Check flag is set on the corresponding expression, with
3082       --  the index type being determined from the type of the Prefix, which
3083       --  references the array being indexed.
3084
3085       --  Note: in a fully analyzed and expanded indexed component node, and
3086       --  hence in any such node that gigi sees, if the prefix is an access
3087       --  type, then an explicit dereference operation has been inserted.
3088
3089       ------------------
3090       -- 4.1.2  Slice --
3091       ------------------
3092
3093       --  SLICE ::= PREFIX (DISCRETE_RANGE)
3094
3095       --  Note: an implicit subtype is created to describe the resulting
3096       --  type, so that the bounds of this type are the bounds of the slice.
3097
3098       --  N_Slice
3099       --  Sloc points to first token of prefix
3100       --  Prefix (Node3)
3101       --  Discrete_Range (Node4)
3102       --  plus fields for expression
3103
3104       -------------------------------
3105       -- 4.1.3  Selected Component --
3106       -------------------------------
3107
3108       --  SELECTED_COMPONENT ::= PREFIX . SELECTOR_NAME
3109
3110       --  Note: selected components that are semantically expanded names get
3111       --  changed during semantic processing into the separate N_Expanded_Name
3112       --  node. See description of this node in the section on semantic nodes.
3113
3114       --  N_Selected_Component
3115       --  Sloc points to period
3116       --  Prefix (Node3)
3117       --  Selector_Name (Node2)
3118       --  Associated_Node (Node4-Sem)
3119       --  Do_Discriminant_Check (Flag13-Sem)
3120       --  Is_In_Discriminant_Check (Flag11-Sem)
3121       --  plus fields for expression
3122
3123       --------------------------
3124       -- 4.1.3  Selector Name --
3125       --------------------------
3126
3127       --  SELECTOR_NAME ::= IDENTIFIER | CHARACTER_LITERAL | OPERATOR_SYMBOL
3128
3129       --------------------------------
3130       -- 4.1.4  Attribute Reference --
3131       --------------------------------
3132
3133       --  ATTRIBUTE_REFERENCE ::= PREFIX ' ATTRIBUTE_DESIGNATOR
3134
3135       --  Note: the syntax is quite ambiguous at this point. Consider:
3136
3137       --    A'Length (X)  X is part of the attribute designator
3138       --    A'Pos (X)     X is an explicit actual parameter of function A'Pos
3139       --    A'Class (X)   X is the expression of a type conversion
3140
3141       --  It would be possible for the parser to distinguish these cases
3142       --  by looking at the attribute identifier. However, that would mean
3143       --  more work in introducing new implementation defined attributes,
3144       --  and also it would mean that special processing for attributes
3145       --  would be scattered around, instead of being centralized in the
3146       --  semantic routine that handles an N_Attribute_Reference node.
3147       --  Consequently, the parser in all the above cases stores the
3148       --  expression (X in these examples) as a single element list in
3149       --  in the Expressions field of the N_Attribute_Reference node.
3150
3151       --  Similarly, for attributes like Max which take two arguments,
3152       --  we store the two arguments as a two element list in the
3153       --  Expressions field. Of course it is clear at parse time that
3154       --  this case is really a function call with an attribute as the
3155       --  prefix, but it turns out to be convenient to handle the two
3156       --  argument case in a similar manner to the one argument case,
3157       --  and indeed in general the parser will accept any number of
3158       --  expressions in this position and store them as a list in the
3159       --  attribute reference node. This allows for future addition of
3160       --  attributes that take more than two arguments.
3161
3162       --  Note: named associates are not permitted in function calls where
3163       --  the function is an attribute (see RM 6.4(3)) so it is legitimate
3164       --  to skip the normal subprogram argument processing.
3165
3166       --  Note: for the attributes whose designators are technically keywords,
3167       --  i.e. digits, access, delta, range, the Attribute_Name field contains
3168       --  the corresponding name, even though no identifier is involved.
3169
3170       --  Note: the generated code may contain stream attributes applied to
3171       --  limited types for which no stream routines exist officially. In such
3172       --  case, the result is to use the stream attribute for the underlying
3173       --  full type, or in the case of a protected type, the components
3174       --  (including any discriminants) are merely streamed in order.
3175
3176       --  See Exp_Attr for a complete description of which attributes are
3177       --  passed onto Gigi, and which are handled entirely by the front end.
3178
3179       --  Gigi restriction: For the Pos attribute, the prefix cannot be
3180       --  a non-standard enumeration type or a nonzero/zero semantics
3181       --  boolean type, so the value is simply the stored representation.
3182
3183       --  Gigi requirement: For the Mechanism_Code attribute, if the prefix
3184       --  references a subprogram that is a renaming, then the front end must
3185       --  rewrite the attribute to refer directly to the renamed entity.
3186
3187       --  Note: In generated code, the Address and Unrestricted_Access
3188       --  attributes can be applied to any expression, and the meaning is
3189       --  to create an object containing the value (the object is in the
3190       --  current stack frame), and pass the address of this value. If the
3191       --  Must_Be_Byte_Aligned flag is set, then the object whose address
3192       --  is taken must be on a byte (storage unit) boundary, and if it is
3193       --  not (or may not be), then the generated code must create a copy
3194       --  that is byte aligned, and pass the address of this copy.
3195
3196       --  N_Attribute_Reference
3197       --  Sloc points to apostrophe
3198       --  Prefix (Node3)
3199       --  Attribute_Name (Name2) identifier name from attribute designator
3200       --  Expressions (List1) (set to No_List if no associated expressions)
3201       --  Entity (Node4-Sem) used if the attribute yields a type
3202       --  Associated_Node (Node4-Sem)
3203       --  Do_Overflow_Check (Flag17-Sem)
3204       --  Redundant_Use (Flag13-Sem)
3205       --  Must_Be_Byte_Aligned (Flag14)
3206       --  plus fields for expression
3207
3208       ---------------------------------
3209       -- 4.1.4  Attribute Designator --
3210       ---------------------------------
3211
3212       --  ATTRIBUTE_DESIGNATOR ::=
3213       --    IDENTIFIER [(static_EXPRESSION)]
3214       --  | access | delta | digits
3215
3216       --  There is no explicit node in the tree for an attribute designator.
3217       --  Instead the Attribute_Name and Expressions fields of the parent
3218       --  node (N_Attribute_Reference node) hold the information.
3219
3220       --  Note: if ACCESS, DELTA or DIGITS appears in an attribute
3221       --  designator, then they are treated as identifiers internally
3222       --  rather than the keywords of the same name.
3223
3224       --------------------------------------
3225       -- 4.1.4  Range Attribute Reference --
3226       --------------------------------------
3227
3228       --  RANGE_ATTRIBUTE_REFERENCE ::= PREFIX ' RANGE_ATTRIBUTE_DESIGNATOR
3229
3230       --  A range attribute reference is represented in the tree using the
3231       --  normal N_Attribute_Reference node.
3232
3233       ---------------------------------------
3234       -- 4.1.4  Range Attribute Designator --
3235       ---------------------------------------
3236
3237       --  RANGE_ATTRIBUTE_DESIGNATOR ::= Range [(static_EXPRESSION)]
3238
3239       --  A range attribute designator is represented in the tree using the
3240       --  normal N_Attribute_Reference node.
3241
3242       --------------------
3243       -- 4.3  Aggregate --
3244       --------------------
3245
3246       --  AGGREGATE ::=
3247       --    RECORD_AGGREGATE | EXTENSION_AGGREGATE | ARRAY_AGGREGATE
3248
3249       -----------------------------
3250       -- 4.3.1  Record Aggregate --
3251       -----------------------------
3252
3253       --  RECORD_AGGREGATE ::= (RECORD_COMPONENT_ASSOCIATION_LIST)
3254
3255       --  N_Aggregate
3256       --  Sloc points to left parenthesis
3257       --  Expressions (List1) (set to No_List if none or null record case)
3258       --  Component_Associations (List2) (set to No_List if none)
3259       --  Null_Record_Present (Flag17)
3260       --  Aggregate_Bounds (Node3-Sem)
3261       --  Associated_Node (Node4-Sem)
3262       --  Static_Processing_OK (Flag4-Sem)
3263       --  Compile_Time_Known_Aggregate (Flag18-Sem)
3264       --  Expansion_Delayed (Flag11-Sem)
3265       --  Has_Self_Reference (Flag13-Sem)
3266       --  plus fields for expression
3267
3268       --  Note: this structure is used for both record and array aggregates
3269       --  since the two cases are not separable by the parser. The parser
3270       --  makes no attempt to enforce consistency here, so it is up to the
3271       --  semantic phase to make sure that the aggregate is consistent (i.e.
3272       --  that it is not a "half-and-half" case that mixes record and array
3273       --  syntax. In particular, for a record aggregate, the expressions
3274       --  field will be set if there are positional associations.
3275
3276       --  Note: N_Aggregate is not used for all aggregates; in particular,
3277       --  there is a separate node kind for extension aggregates.
3278
3279       --  Note: gigi/gcc can handle array aggregates correctly providing that
3280       --  they are entirely positional, and the array subtype involved has a
3281       --  known at compile time length and is not bit packed, or a convention
3282       --  Fortran array with more than one dimension. If these conditions
3283       --  are not met, then the front end must translate the aggregate into
3284       --  an appropriate set of assignments into a temporary.
3285
3286       --  Note: for the record aggregate case, gigi/gcc can handle all cases
3287       --  of record aggregates, including those for packed, and rep-claused
3288       --  records, and also variant records, providing that there are no
3289       --  variable length fields whose size is not known at runtime, and
3290       --  providing that the aggregate is presented in fully named form.
3291
3292       ----------------------------------------------
3293       -- 4.3.1  Record Component Association List --
3294       ----------------------------------------------
3295
3296       --  RECORD_COMPONENT_ASSOCIATION_LIST ::=
3297       --     RECORD_COMPONENT_ASSOCIATION {, RECORD_COMPONENT_ASSOCIATION}
3298       --   | null record
3299
3300       --  There is no explicit node in the tree for a record component
3301       --  association list. Instead the Null_Record_Present flag is set in
3302       --  the parent node for the NULL RECORD case.
3303
3304       ------------------------------------------------------
3305       -- 4.3.1  Record Component Association (also 4.3.3) --
3306       ------------------------------------------------------
3307
3308       --  RECORD_COMPONENT_ASSOCIATION ::=
3309       --    [COMPONENT_CHOICE_LIST =>] EXPRESSION
3310
3311       --  N_Component_Association
3312       --  Sloc points to first selector name
3313       --  Choices (List1)
3314       --  Loop_Actions (List2-Sem)
3315       --  Expression (Node3)
3316       --  Box_Present (Flag15)
3317
3318       --  Note: this structure is used for both record component associations
3319       --  and array component associations, since the two cases aren't always
3320       --  separable by the parser. The choices list may represent either a
3321       --  list of selector names in the record aggregate case, or a list of
3322       --  discrete choices in the array aggregate case or an N_Others_Choice
3323       --  node (which appears as a singleton list). Box_Present gives support
3324       --  to Ada 2005 (AI-287).
3325
3326       ----------------------------------
3327       -- 4.3.1  Component Choice List --
3328       ----------------------------------
3329
3330       --  COMPONENT_CHOICE_LIST ::=
3331       --    component_SELECTOR_NAME {| component_SELECTOR_NAME}
3332       --  | others
3333
3334       --  The entries of a component choice list appear in the Choices list of
3335       --  the associated N_Component_Association, as either selector names, or
3336       --  as an N_Others_Choice node.
3337
3338       --------------------------------
3339       -- 4.3.2  Extension Aggregate --
3340       --------------------------------
3341
3342       --  EXTENSION_AGGREGATE ::=
3343       --    (ANCESTOR_PART with RECORD_COMPONENT_ASSOCIATION_LIST)
3344
3345       --  Note: extension aggregates are not permitted in Ada 83 mode
3346
3347       --  N_Extension_Aggregate
3348       --  Sloc points to left parenthesis
3349       --  Ancestor_Part (Node3)
3350       --  Associated_Node (Node4-Sem)
3351       --  Expressions (List1) (set to No_List if none or null record case)
3352       --  Component_Associations (List2) (set to No_List if none)
3353       --  Null_Record_Present (Flag17)
3354       --  Expansion_Delayed (Flag11-Sem)
3355       --  Has_Self_Reference (Flag13-Sem)
3356       --  plus fields for expression
3357
3358       --------------------------
3359       -- 4.3.2  Ancestor Part --
3360       --------------------------
3361
3362       --  ANCESTOR_PART ::= EXPRESSION | SUBTYPE_MARK
3363
3364       ----------------------------
3365       -- 4.3.3  Array Aggregate --
3366       ----------------------------
3367
3368       --  ARRAY_AGGREGATE ::=
3369       --    POSITIONAL_ARRAY_AGGREGATE | NAMED_ARRAY_AGGREGATE
3370
3371       ---------------------------------------
3372       -- 4.3.3  Positional Array Aggregate --
3373       ---------------------------------------
3374
3375       --  POSITIONAL_ARRAY_AGGREGATE ::=
3376       --    (EXPRESSION, EXPRESSION {, EXPRESSION})
3377       --  | (EXPRESSION {, EXPRESSION}, others => EXPRESSION)
3378
3379       --  See Record_Aggregate (4.3.1) for node structure
3380
3381       ----------------------------------
3382       -- 4.3.3  Named Array Aggregate --
3383       ----------------------------------
3384
3385       --  NAMED_ARRAY_AGGREGATE ::=
3386       --  | (ARRAY_COMPONENT_ASSOCIATION {, ARRAY_COMPONENT_ASSOCIATION})
3387
3388       --  See Record_Aggregate (4.3.1) for node structure
3389
3390       ----------------------------------------
3391       -- 4.3.3  Array Component Association --
3392       ----------------------------------------
3393
3394       --  ARRAY_COMPONENT_ASSOCIATION ::=
3395       --    DISCRETE_CHOICE_LIST => EXPRESSION
3396
3397       --  See Record_Component_Association (4.3.1) for node structure
3398
3399       --------------------------------------------------
3400       -- 4.4  Expression/Relation/Term/Factor/Primary --
3401       --------------------------------------------------
3402
3403       --  EXPRESSION ::=
3404       --    RELATION {and RELATION} | RELATION {and then RELATION}
3405       --  | RELATION {or RELATION}  | RELATION {or else RELATION}
3406       --  | RELATION {xor RELATION}
3407
3408       --  RELATION ::=
3409       --    SIMPLE_EXPRESSION [RELATIONAL_OPERATOR SIMPLE_EXPRESSION]
3410       --  | SIMPLE_EXPRESSION [not] in RANGE
3411       --  | SIMPLE_EXPRESSION [not] in SUBTYPE_MARK
3412
3413       --  SIMPLE_EXPRESSION ::=
3414       --    [UNARY_ADDING_OPERATOR] TERM {BINARY_ADDING_OPERATOR TERM}
3415
3416       --  TERM ::= FACTOR {MULTIPLYING_OPERATOR FACTOR}
3417
3418       --  FACTOR ::= PRIMARY [** PRIMARY] | abs PRIMARY | not PRIMARY
3419
3420       --  No nodes are generated for any of these constructs. Instead, the
3421       --  node for the operator appears directly. When we refer to an
3422       --  expression in this description, we mean any of the possible
3423       --  constituent components of an expression (e.g. identifier is
3424       --  an example of an expression).
3425
3426       ------------------
3427       -- 4.4  Primary --
3428       ------------------
3429
3430       --  PRIMARY ::=
3431       --    NUMERIC_LITERAL  | null
3432       --  | STRING_LITERAL   | AGGREGATE
3433       --  | NAME             | QUALIFIED_EXPRESSION
3434       --  | ALLOCATOR        | (EXPRESSION)
3435
3436       --  Usually there is no explicit node in the tree for primary. Instead
3437       --  the constituent (e.g. AGGREGATE) appears directly. There are two
3438       --  exceptions. First, there is an explicit node for a null primary.
3439
3440       --  N_Null
3441       --  Sloc points to NULL
3442       --  plus fields for expression
3443
3444       --  Second, the case of (EXPRESSION) is handled specially. Ada requires
3445       --  that the parser keep track of which subexpressions are enclosed
3446       --  in parentheses, and how many levels of parentheses are used. This
3447       --  information is required for optimization purposes, and also for
3448       --  some semantic checks (e.g. (((1))) in a procedure spec does not
3449       --  conform with ((((1)))) in the body).
3450
3451       --  The parentheses are recorded by keeping a Paren_Count field in every
3452       --  subexpression node (it is actually present in all nodes, but only
3453       --  used in subexpression nodes). This count records the number of
3454       --  levels of parentheses. If the number of levels in the source exceeds
3455       --  the maximum accommodated by this count, then the count is simply left
3456       --  at the maximum value. This means that there are some pathological
3457       --  cases of failure to detect conformance failures (e.g. an expression
3458       --  with 500 levels of parens will conform with one with 501 levels),
3459       --  but we do not need to lose sleep over this.
3460
3461       --  Historical note: in versions of GNAT prior to 1.75, there was a node
3462       --  type N_Parenthesized_Expression used to accurately record unlimited
3463       --  numbers of levels of parentheses. However, it turned out to be a
3464       --  real nuisance to have to take into account the possible presence of
3465       --  this node during semantic analysis, since basically parentheses have
3466       --  zero relevance to semantic analysis.
3467
3468       --  Note: the level of parentheses always present in things like
3469       --  aggregates does not count, only the parentheses in the primary
3470       --  (EXPRESSION) affect the setting of the Paren_Count field.
3471
3472       --  2nd Note: the contents of the Expression field must be ignored (i.e.
3473       --  treated as though it were Empty) if No_Initialization is set True.
3474
3475       --------------------------------------
3476       -- 4.5  Short Circuit Control Forms --
3477       --------------------------------------
3478
3479       --  EXPRESSION ::=
3480       --    RELATION {and then RELATION} | RELATION {or else RELATION}
3481
3482       --  Gigi restriction: For both these control forms, the operand and
3483       --  result types are always Standard.Boolean. The expander inserts the
3484       --  required conversion operations where needed to ensure this is the
3485       --  case.
3486
3487       --  N_And_Then
3488       --  Sloc points to AND of AND THEN
3489       --  Left_Opnd (Node2)
3490       --  Right_Opnd (Node3)
3491       --  Actions (List1-Sem)
3492       --  plus fields for expression
3493
3494       --  N_Or_Else
3495       --  Sloc points to OR of OR ELSE
3496       --  Left_Opnd (Node2)
3497       --  Right_Opnd (Node3)
3498       --  Actions (List1-Sem)
3499       --  plus fields for expression
3500
3501       --  Note: The Actions field is used to hold actions associated with
3502       --  the right hand operand. These have to be treated specially since
3503       --  they are not unconditionally executed. See Insert_Actions for a
3504       --  more detailed description of how these actions are handled.
3505
3506       ---------------------------
3507       -- 4.5  Membership Tests --
3508       ---------------------------
3509
3510       --  RELATION ::=
3511       --    SIMPLE_EXPRESSION [not] in RANGE
3512       --  | SIMPLE_EXPRESSION [not] in SUBTYPE_MARK
3513
3514       --  Note: although the grammar above allows only a range or a subtype
3515       --  mark, the parser in fact will accept any simple expression in place
3516       --  of a subtype mark. This means that the semantic analyzer must be able
3517       --  to deal with, and diagnose a simple expression other than a name for
3518       --  the right operand. This simplifies error recovery in the parser.
3519
3520       --  If extensions are enabled, the grammar is as follows:
3521
3522       --  RELATION ::=
3523       --    SIMPLE_EXPRESSION [not] in SET_ALTERNATIVE {| SET_ALTERNATIVE}
3524
3525       --  SET_ALTERNATIVE ::= RANGE | SUBTYPE_MARK
3526
3527       --  The Alternatives field below is present only if there is more than
3528       --  one Set_Alternative present, in which case Right_Opnd is set to
3529       --  Empty, and Alternatives contains the list of alternatives. In the
3530       --  tree passed to the back end, Alternatives is always No_List, and
3531       --  Right_Opnd is set (i.e. the expansion circuitry expands out the
3532       --  complex set membership case using simple membership operations).
3533
3534       --  N_In
3535       --  Sloc points to IN
3536       --  Left_Opnd (Node2)
3537       --  Right_Opnd (Node3)
3538       --  Alternatives (List4) (set to No_List if only one set alternative)
3539       --  plus fields for expression
3540
3541       --  N_Not_In
3542       --  Sloc points to NOT of NOT IN
3543       --  Left_Opnd (Node2)
3544       --  Right_Opnd (Node3)
3545       --  Alternatives (List4) (set to No_List if only one set alternative)
3546       --  plus fields for expression
3547
3548       --------------------
3549       -- 4.5  Operators --
3550       --------------------
3551
3552       --  LOGICAL_OPERATOR             ::=  and | or  | xor
3553
3554       --  RELATIONAL_OPERATOR          ::=  =   | /=  | <   | <= | > | >=
3555
3556       --  BINARY_ADDING_OPERATOR       ::=  +   |  -  | &
3557
3558       --  UNARY_ADDING_OPERATOR        ::=  +   |  -
3559
3560       --  MULTIPLYING_OPERATOR         ::=  *   |  /  | mod | rem
3561
3562       --  HIGHEST_PRECEDENCE_OPERATOR  ::=  **  | abs | not
3563
3564       --  Sprint syntax if Treat_Fixed_As_Integer is set:
3565
3566       --     x #* y
3567       --     x #/ y
3568       --     x #mod y
3569       --     x #rem y
3570
3571       --  Gigi restriction: For * / mod rem with fixed-point operands, Gigi
3572       --  will only be given nodes with the Treat_Fixed_As_Integer flag set.
3573       --  All handling of smalls for multiplication and division is handled
3574       --  by the front end (mod and rem result only from expansion). Gigi
3575       --  thus never needs to worry about small values (for other operators
3576       --  operating on fixed-point, e.g. addition, the small value does not
3577       --  have any semantic effect anyway, these are always integer operations.
3578
3579       --  Gigi restriction: For all operators taking Boolean operands, the
3580       --  type is always Standard.Boolean. The expander inserts the required
3581       --  conversion operations where needed to ensure this is the case.
3582
3583       --  N_Op_And
3584       --  Sloc points to AND
3585       --  Do_Length_Check (Flag4-Sem)
3586       --  plus fields for binary operator
3587       --  plus fields for expression
3588
3589       --  N_Op_Or
3590       --  Sloc points to OR
3591       --  Do_Length_Check (Flag4-Sem)
3592       --  plus fields for binary operator
3593       --  plus fields for expression
3594
3595       --  N_Op_Xor
3596       --  Sloc points to XOR
3597       --  Do_Length_Check (Flag4-Sem)
3598       --  plus fields for binary operator
3599       --  plus fields for expression
3600
3601       --  N_Op_Eq
3602       --  Sloc points to =
3603       --  plus fields for binary operator
3604       --  plus fields for expression
3605
3606       --  N_Op_Ne
3607       --  Sloc points to /=
3608       --  plus fields for binary operator
3609       --  plus fields for expression
3610
3611       --  N_Op_Lt
3612       --  Sloc points to <
3613       --  plus fields for binary operator
3614       --  plus fields for expression
3615
3616       --  N_Op_Le
3617       --  Sloc points to <=
3618       --  plus fields for binary operator
3619       --  plus fields for expression
3620
3621       --  N_Op_Gt
3622       --  Sloc points to >
3623       --  plus fields for binary operator
3624       --  plus fields for expression
3625
3626       --  N_Op_Ge
3627       --  Sloc points to >=
3628       --  plus fields for binary operator
3629       --  plus fields for expression
3630
3631       --  N_Op_Add
3632       --  Sloc points to + (binary)
3633       --  plus fields for binary operator
3634       --  plus fields for expression
3635
3636       --  N_Op_Subtract
3637       --  Sloc points to - (binary)
3638       --  plus fields for binary operator
3639       --  plus fields for expression
3640
3641       --  N_Op_Concat
3642       --  Sloc points to &
3643       --  Is_Component_Left_Opnd (Flag13-Sem)
3644       --  Is_Component_Right_Opnd (Flag14-Sem)
3645       --  plus fields for binary operator
3646       --  plus fields for expression
3647
3648       --  N_Op_Multiply
3649       --  Sloc points to *
3650       --  Treat_Fixed_As_Integer (Flag14-Sem)
3651       --  Rounded_Result (Flag18-Sem)
3652       --  plus fields for binary operator
3653       --  plus fields for expression
3654
3655       --  N_Op_Divide
3656       --  Sloc points to /
3657       --  Treat_Fixed_As_Integer (Flag14-Sem)
3658       --  Do_Division_Check (Flag13-Sem)
3659       --  Rounded_Result (Flag18-Sem)
3660       --  plus fields for binary operator
3661       --  plus fields for expression
3662
3663       --  N_Op_Mod
3664       --  Sloc points to MOD
3665       --  Treat_Fixed_As_Integer (Flag14-Sem)
3666       --  Do_Division_Check (Flag13-Sem)
3667       --  plus fields for binary operator
3668       --  plus fields for expression
3669
3670       --  N_Op_Rem
3671       --  Sloc points to REM
3672       --  Treat_Fixed_As_Integer (Flag14-Sem)
3673       --  Do_Division_Check (Flag13-Sem)
3674       --  plus fields for binary operator
3675       --  plus fields for expression
3676
3677       --  N_Op_Expon
3678       --  Is_Power_Of_2_For_Shift (Flag13-Sem)
3679       --  Sloc points to **
3680       --  plus fields for binary operator
3681       --  plus fields for expression
3682
3683       --  N_Op_Plus
3684       --  Sloc points to + (unary)
3685       --  plus fields for unary operator
3686       --  plus fields for expression
3687
3688       --  N_Op_Minus
3689       --  Sloc points to - (unary)
3690       --  plus fields for unary operator
3691       --  plus fields for expression
3692
3693       --  N_Op_Abs
3694       --  Sloc points to ABS
3695       --  plus fields for unary operator
3696       --  plus fields for expression
3697
3698       --  N_Op_Not
3699       --  Sloc points to NOT
3700       --  plus fields for unary operator
3701       --  plus fields for expression
3702
3703       --  See also shift operators in section B.2
3704
3705       --  Note on fixed-point operations passed to Gigi: For adding operators,
3706       --  the semantics is to treat these simply as integer operations, with
3707       --  the small values being ignored (the bounds are already stored in
3708       --  units of small, so that constraint checking works as usual). For the
3709       --  case of multiply/divide/rem/mod operations, Gigi will only see fixed
3710       --  point operands if the Treat_Fixed_As_Integer flag is set and will
3711       --  thus treat these nodes in identical manner, ignoring small values.
3712
3713       --------------------------
3714       -- 4.6  Type Conversion --
3715       --------------------------
3716
3717       --  TYPE_CONVERSION ::=
3718       --    SUBTYPE_MARK (EXPRESSION) | SUBTYPE_MARK (NAME)
3719
3720       --  In the (NAME) case, the name is stored as the expression
3721
3722       --  Note: the parser never generates a type conversion node, since it
3723       --  looks like an indexed component which is generated by preference.
3724       --  The semantic pass must correct this misidentification.
3725
3726       --  Gigi handles conversions that involve no change in the root type,
3727       --  and also all conversions from integer to floating-point types.
3728       --  Conversions from floating-point to integer are only handled in
3729       --  the case where Float_Truncate flag set. Other conversions from
3730       --  floating-point to integer (involving rounding) and all conversions
3731       --  involving fixed-point types are handled by the expander.
3732
3733       --  Sprint syntax if Float_Truncate set: X^(Y)
3734       --  Sprint syntax if Conversion_OK set X?(Y)
3735       --  Sprint syntax if both flags set X?^(Y)
3736
3737       --  Note: If either the operand or result type is fixed-point, Gigi will
3738       --  only see a type conversion node with Conversion_OK set. The front end
3739       --  takes care of all handling of small's for fixed-point conversions.
3740
3741       --  N_Type_Conversion
3742       --  Sloc points to first token of subtype mark
3743       --  Subtype_Mark (Node4)
3744       --  Expression (Node3)
3745       --  Do_Tag_Check (Flag13-Sem)
3746       --  Do_Length_Check (Flag4-Sem)
3747       --  Do_Overflow_Check (Flag17-Sem)
3748       --  Float_Truncate (Flag11-Sem)
3749       --  Rounded_Result (Flag18-Sem)
3750       --  Conversion_OK (Flag14-Sem)
3751       --  plus fields for expression
3752
3753       --  Note: if a range check is required, then the Do_Range_Check flag
3754       --  is set in the Expression with the check being done against the
3755       --  target type range (after the base type conversion, if any).
3756
3757       -------------------------------
3758       -- 4.7  Qualified Expression --
3759       -------------------------------
3760
3761       --  QUALIFIED_EXPRESSION ::=
3762       --    SUBTYPE_MARK ' (EXPRESSION) | SUBTYPE_MARK ' AGGREGATE
3763
3764       --  Note: the parentheses in the (EXPRESSION) case are deemed to enclose
3765       --  the expression, so the Expression field of this node always points
3766       --  to a parenthesized expression in this case (i.e. Paren_Count will
3767       --  always be non-zero for the referenced expression if it is not an
3768       --  aggregate).
3769
3770       --  N_Qualified_Expression
3771       --  Sloc points to apostrophe
3772       --  Subtype_Mark (Node4)
3773       --  Expression (Node3) expression or aggregate
3774       --  plus fields for expression
3775
3776       --------------------
3777       -- 4.8  Allocator --
3778       --------------------
3779
3780       --  ALLOCATOR ::=
3781       --    new [NULL_EXCLUSION] SUBTYPE_INDICATION | new QUALIFIED_EXPRESSION
3782
3783       --  Sprint syntax (when storage pool present)
3784       --    new xxx (storage_pool = pool)
3785
3786       --  N_Allocator
3787       --  Sloc points to NEW
3788       --  Expression (Node3) subtype indication or qualified expression
3789       --  Storage_Pool (Node1-Sem)
3790       --  Procedure_To_Call (Node2-Sem)
3791       --  Coextensions (Elist4-Sem)
3792       --  Null_Exclusion_Present (Flag11)
3793       --  No_Initialization (Flag13-Sem)
3794       --  Is_Static_Coextension (Flag14-Sem)
3795       --  Do_Storage_Check (Flag17-Sem)
3796       --  Is_Dynamic_Coextension (Flag18-Sem)
3797       --  plus fields for expression
3798
3799       --  Note: like all nodes, the N_Allocator has the Comes_From_Source flag.
3800       --  This flag has a special function in conjunction with the restriction
3801       --  No_Implicit_Heap_Allocations, which will be triggered if this flag
3802       --  is not set. This means that if a source allocator is replaced with
3803       --  a constructed allocator, the Comes_From_Source flag should be copied
3804       --  to the newly created allocator.
3805
3806       ---------------------------------
3807       -- 5.1  Sequence Of Statements --
3808       ---------------------------------
3809
3810       --  SEQUENCE_OF_STATEMENTS ::= STATEMENT {STATEMENT}
3811
3812       --  Note: Although the parser will not accept a declaration as a
3813       --  statement, the semantic analyzer may insert declarations (e.g.
3814       --  declarations of implicit types needed for execution of other
3815       --  statements) into a sequence of statements, so the code generator
3816       --  should be prepared to accept a declaration where a statement is
3817       --  expected. Note also that pragmas can appear as statements.
3818
3819       --------------------
3820       -- 5.1  Statement --
3821       --------------------
3822
3823       --  STATEMENT ::=
3824       --    {LABEL} SIMPLE_STATEMENT | {LABEL} COMPOUND_STATEMENT
3825
3826       --  There is no explicit node in the tree for a statement. Instead, the
3827       --  individual statement appears directly. Labels are treated  as a
3828       --  kind of statement, i.e. they are linked into a statement list at
3829       --  the point they appear, so the labeled statement appears following
3830       --  the label or labels in the statement list.
3831
3832       ---------------------------
3833       -- 5.1  Simple Statement --
3834       ---------------------------
3835
3836       --  SIMPLE_STATEMENT ::=        NULL_STATEMENT
3837       --  | ASSIGNMENT_STATEMENT    | EXIT_STATEMENT
3838       --  | GOTO_STATEMENT          | PROCEDURE_CALL_STATEMENT
3839       --  | SIMPLE_RETURN_STATEMENT | ENTRY_CALL_STATEMENT
3840       --  | REQUEUE_STATEMENT       | DELAY_STATEMENT
3841       --  | ABORT_STATEMENT         | RAISE_STATEMENT
3842       --  | CODE_STATEMENT
3843
3844       -----------------------------
3845       -- 5.1  Compound Statement --
3846       -----------------------------
3847
3848       --  COMPOUND_STATEMENT ::=
3849       --    IF_STATEMENT              | CASE_STATEMENT
3850       --  | LOOP_STATEMENT            | BLOCK_STATEMENT
3851       --  | EXTENDED_RETURN_STATEMENT
3852       --  | ACCEPT_STATEMENT          | SELECT_STATEMENT
3853
3854       -------------------------
3855       -- 5.1  Null Statement --
3856       -------------------------
3857
3858       --  NULL_STATEMENT ::= null;
3859
3860       --  N_Null_Statement
3861       --  Sloc points to NULL
3862
3863       ----------------
3864       -- 5.1  Label --
3865       ----------------
3866
3867       --  LABEL ::= <<label_STATEMENT_IDENTIFIER>>
3868
3869       --  Note that the occurrence of a label is not a defining identifier,
3870       --  but rather a referencing occurrence. The defining occurrence is
3871       --  in the implicit label declaration which occurs in the innermost
3872       --  enclosing block.
3873
3874       --  N_Label
3875       --  Sloc points to <<
3876       --  Identifier (Node1) direct name of statement identifier
3877       --  Exception_Junk (Flag8-Sem)
3878
3879       -------------------------------
3880       -- 5.1  Statement Identifier --
3881       -------------------------------
3882
3883       --  STATEMENT_IDENTIFIER ::= DIRECT_NAME
3884
3885       --  The IDENTIFIER of a STATEMENT_IDENTIFIER shall be an identifier
3886       --  (not an OPERATOR_SYMBOL)
3887
3888       -------------------------------
3889       -- 5.2  Assignment Statement --
3890       -------------------------------
3891
3892       --  ASSIGNMENT_STATEMENT ::=
3893       --    variable_NAME := EXPRESSION;
3894
3895       --  N_Assignment_Statement
3896       --  Sloc points to :=
3897       --  Name (Node2)
3898       --  Expression (Node3)
3899       --  Do_Tag_Check (Flag13-Sem)
3900       --  Do_Length_Check (Flag4-Sem)
3901       --  Forwards_OK (Flag5-Sem)
3902       --  Backwards_OK (Flag6-Sem)
3903       --  No_Ctrl_Actions (Flag7-Sem)
3904       --  Componentwise_Assignment (Flag14-Sem)
3905
3906       --  Note: if a range check is required, then the Do_Range_Check flag
3907       --  is set in the Expression (right hand side), with the check being
3908       --  done against the type of the Name (left hand side).
3909
3910       --  Note: the back end places some restrictions on the form of the
3911       --  Expression field. If the object being assigned to is Atomic, then
3912       --  the Expression may not have the form of an aggregate (since this
3913       --  might cause the back end to generate separate assignments). In this
3914       --  case the front end must generate an extra temporary and initialize
3915       --  this temporary as required (the temporary itself is not atomic).
3916
3917       -----------------------
3918       -- 5.3  If Statement --
3919       -----------------------
3920
3921       --  IF_STATEMENT ::=
3922       --    if CONDITION then
3923       --      SEQUENCE_OF_STATEMENTS
3924       --    {elsif CONDITION then
3925       --      SEQUENCE_OF_STATEMENTS}
3926       --    [else
3927       --      SEQUENCE_OF_STATEMENTS]
3928       --    end if;
3929
3930       --  Gigi restriction: This expander ensures that the type of the
3931       --  Condition fields is always Standard.Boolean, even if the type
3932       --  in the source is some non-standard boolean type.
3933
3934       --  N_If_Statement
3935       --  Sloc points to IF
3936       --  Condition (Node1)
3937       --  Then_Statements (List2)
3938       --  Elsif_Parts (List3) (set to No_List if none present)
3939       --  Else_Statements (List4) (set to No_List if no else part present)
3940       --  End_Span (Uint5) (set to No_Uint if expander generated)
3941
3942       --  N_Elsif_Part
3943       --  Sloc points to ELSIF
3944       --  Condition (Node1)
3945       --  Then_Statements (List2)
3946       --  Condition_Actions (List3-Sem)
3947
3948       --------------------
3949       -- 5.3  Condition --
3950       --------------------
3951
3952       --  CONDITION ::= boolean_EXPRESSION
3953
3954       -------------------------
3955       -- 5.4  Case Statement --
3956       -------------------------
3957
3958       --  CASE_STATEMENT ::=
3959       --    case EXPRESSION is
3960       --      CASE_STATEMENT_ALTERNATIVE
3961       --      {CASE_STATEMENT_ALTERNATIVE}
3962       --    end case;
3963
3964       --  Note: the Alternatives can contain pragmas. These only occur at
3965       --  the start of the list, since any pragmas occurring after the first
3966       --  alternative are absorbed into the corresponding statement sequence.
3967
3968       --  N_Case_Statement
3969       --  Sloc points to CASE
3970       --  Expression (Node3)
3971       --  Alternatives (List4)
3972       --  End_Span (Uint5) (set to No_Uint if expander generated)
3973
3974       -------------------------------------
3975       -- 5.4  Case Statement Alternative --
3976       -------------------------------------
3977
3978       --  CASE_STATEMENT_ALTERNATIVE ::=
3979       --    when DISCRETE_CHOICE_LIST =>
3980       --      SEQUENCE_OF_STATEMENTS
3981
3982       --  N_Case_Statement_Alternative
3983       --  Sloc points to WHEN
3984       --  Discrete_Choices (List4)
3985       --  Statements (List3)
3986
3987       -------------------------
3988       -- 5.5  Loop Statement --
3989       -------------------------
3990
3991       --  LOOP_STATEMENT ::=
3992       --    [loop_STATEMENT_IDENTIFIER :]
3993       --      [ITERATION_SCHEME] loop
3994       --        SEQUENCE_OF_STATEMENTS
3995       --      end loop [loop_IDENTIFIER];
3996
3997       --  Note: The occurrence of a loop label is not a defining identifier
3998       --  but rather a referencing occurrence. The defining occurrence is in
3999       --  the implicit label declaration which occurs in the innermost
4000       --  enclosing block.
4001
4002       --  Note: there is always a loop statement identifier present in
4003       --  the tree, even if none was given in the source. In the case where
4004       --  no loop identifier is given in the source, the parser creates
4005       --  a name of the form _Loop_n, where n is a decimal integer (the
4006       --  two underlines ensure that the loop names created in this manner
4007       --  do not conflict with any user defined identifiers), and the flag
4008       --  Has_Created_Identifier is set to True. The only exception to the
4009       --  rule that all loop statement nodes have identifiers occurs for
4010       --  loops constructed by the expander, and the semantic analyzer will
4011       --  create and supply dummy loop identifiers in these cases.
4012
4013       --  N_Loop_Statement
4014       --  Sloc points to LOOP
4015       --  Identifier (Node1) loop identifier (set to Empty if no identifier)
4016       --  Iteration_Scheme (Node2) (set to Empty if no iteration scheme)
4017       --  Statements (List3)
4018       --  End_Label (Node4)
4019       --  Has_Created_Identifier (Flag15)
4020       --  Is_Null_Loop (Flag16)
4021       --  Suppress_Loop_Warnings (Flag17)
4022
4023       --------------------------
4024       -- 5.5 Iteration Scheme --
4025       --------------------------
4026
4027       --  ITERATION_SCHEME ::=
4028       --    while CONDITION | for LOOP_PARAMETER_SPECIFICATION
4029
4030       --  Gigi restriction: This expander ensures that the type of the
4031       --  Condition field is always Standard.Boolean, even if the type
4032       --  in the source is some non-standard boolean type.
4033
4034       --  N_Iteration_Scheme
4035       --  Sloc points to WHILE or FOR
4036       --  Condition (Node1) (set to Empty if FOR case)
4037       --  Condition_Actions (List3-Sem)
4038       --  Loop_Parameter_Specification (Node4) (set to Empty if WHILE case)
4039
4040       ---------------------------------------
4041       -- 5.5  Loop parameter specification --
4042       ---------------------------------------
4043
4044       --  LOOP_PARAMETER_SPECIFICATION ::=
4045       --    DEFINING_IDENTIFIER in [reverse] DISCRETE_SUBTYPE_DEFINITION
4046
4047       --  N_Loop_Parameter_Specification
4048       --  Sloc points to first identifier
4049       --  Defining_Identifier (Node1)
4050       --  Reverse_Present (Flag15)
4051       --  Discrete_Subtype_Definition (Node4)
4052
4053       --------------------------
4054       -- 5.6  Block Statement --
4055       --------------------------
4056
4057       --  BLOCK_STATEMENT ::=
4058       --    [block_STATEMENT_IDENTIFIER:]
4059       --      [declare
4060       --        DECLARATIVE_PART]
4061       --      begin
4062       --        HANDLED_SEQUENCE_OF_STATEMENTS
4063       --      end [block_IDENTIFIER];
4064
4065       --  Note that the occurrence of a block identifier is not a defining
4066       --  identifier, but rather a referencing occurrence. The defining
4067       --  occurrence is an E_Block entity declared by the implicit label
4068       --  declaration which occurs in the innermost enclosing block statement
4069       --  or body; the block identifier denotes that E_Block.
4070
4071       --  For block statements that come from source code, there is always a
4072       --  block statement identifier present in the tree, denoting an
4073       --  E_Block. In the case where no block identifier is given in the
4074       --  source, the parser creates a name of the form B_n, where n is a
4075       --  decimal integer, and the flag Has_Created_Identifier is set to
4076       --  True. Blocks constructed by the expander usually have no identifier,
4077       --  and no corresponding entity.
4078
4079       --  Note: the block statement created for an extended return statement
4080       --  has an entity, and this entity is an E_Return_Statement, rather than
4081       --  the usual E_Block.
4082
4083       --  Note: Exception_Junk is set for the wrapping blocks created during
4084       --  local raise optimization (Exp_Ch11.Expand_Local_Exception_Handlers).
4085
4086       --  N_Block_Statement
4087       --  Sloc points to DECLARE or BEGIN
4088       --  Identifier (Node1) block direct name (set to Empty if not present)
4089       --  Declarations (List2) (set to No_List if no DECLARE part)
4090       --  Handled_Statement_Sequence (Node4)
4091       --  Is_Task_Master (Flag5-Sem)
4092       --  Activation_Chain_Entity (Node3-Sem)
4093       --  Has_Created_Identifier (Flag15)
4094       --  Is_Task_Allocation_Block (Flag6)
4095       --  Is_Asynchronous_Call_Block (Flag7)
4096       --  Exception_Junk (Flag8-Sem)
4097
4098       -------------------------
4099       -- 5.7  Exit Statement --
4100       -------------------------
4101
4102       --  EXIT_STATEMENT ::= exit [loop_NAME] [when CONDITION];
4103
4104       --  Gigi restriction: This expander ensures that the type of the
4105       --  Condition field is always Standard.Boolean, even if the type
4106       --  in the source is some non-standard boolean type.
4107
4108       --  N_Exit_Statement
4109       --  Sloc points to EXIT
4110       --  Name (Node2) (set to Empty if no loop name present)
4111       --  Condition (Node1) (set to Empty if no when part present)
4112
4113       -------------------------
4114       -- 5.9  Goto Statement --
4115       -------------------------
4116
4117       --  GOTO_STATEMENT ::= goto label_NAME;
4118
4119       --  N_Goto_Statement
4120       --  Sloc points to GOTO
4121       --  Name (Node2)
4122       --  Exception_Junk (Flag8-Sem)
4123
4124       ---------------------------------
4125       -- 6.1  Subprogram Declaration --
4126       ---------------------------------
4127
4128       --  SUBPROGRAM_DECLARATION ::= SUBPROGRAM_SPECIFICATION;
4129
4130       --  N_Subprogram_Declaration
4131       --  Sloc points to FUNCTION or PROCEDURE
4132       --  Specification (Node1)
4133       --  Body_To_Inline (Node3-Sem)
4134       --  Corresponding_Body (Node5-Sem)
4135       --  Parent_Spec (Node4-Sem)
4136
4137       ------------------------------------------
4138       -- 6.1  Abstract Subprogram Declaration --
4139       ------------------------------------------
4140
4141       --  ABSTRACT_SUBPROGRAM_DECLARATION ::=
4142       --    SUBPROGRAM_SPECIFICATION is abstract;
4143
4144       --  N_Abstract_Subprogram_Declaration
4145       --  Sloc points to ABSTRACT
4146       --  Specification (Node1)
4147
4148       -----------------------------------
4149       -- 6.1  Subprogram Specification --
4150       -----------------------------------
4151
4152       --  SUBPROGRAM_SPECIFICATION ::=
4153       --    [[not] overriding]
4154       --    procedure DEFINING_PROGRAM_UNIT_NAME PARAMETER_PROFILE
4155       --  | [[not] overriding]
4156       --    function DEFINING_DESIGNATOR PARAMETER_AND_RESULT_PROFILE
4157
4158       --  Note: there are no separate nodes for the profiles, instead the
4159       --  information appears directly in the following nodes.
4160
4161       --  N_Function_Specification
4162       --  Sloc points to FUNCTION
4163       --  Defining_Unit_Name (Node1) (the designator)
4164       --  Elaboration_Boolean (Node2-Sem)
4165       --  Parameter_Specifications (List3) (set to No_List if no formal part)
4166       --  Null_Exclusion_Present (Flag11)
4167       --  Result_Definition (Node4) for result subtype
4168       --  Generic_Parent (Node5-Sem)
4169       --  Must_Override (Flag14) set if overriding indicator present
4170       --  Must_Not_Override (Flag15) set if not_overriding indicator present
4171
4172       --  N_Procedure_Specification
4173       --  Sloc points to PROCEDURE
4174       --  Defining_Unit_Name (Node1)
4175       --  Elaboration_Boolean (Node2-Sem)
4176       --  Parameter_Specifications (List3) (set to No_List if no formal part)
4177       --  Generic_Parent (Node5-Sem)
4178       --  Null_Present (Flag13) set for null procedure case (Ada 2005 feature)
4179       --  Must_Override (Flag14) set if overriding indicator present
4180       --  Must_Not_Override (Flag15) set if not_overriding indicator present
4181
4182       --  Note: overriding indicator is an Ada 2005 feature
4183
4184       ---------------------
4185       -- 6.1  Designator --
4186       ---------------------
4187
4188       --  DESIGNATOR ::=
4189       --    [PARENT_UNIT_NAME .] IDENTIFIER | OPERATOR_SYMBOL
4190
4191       --  Designators that are simply identifiers or operator symbols appear
4192       --  directly in the tree in this form. The following node is used only
4193       --  in the case where the designator has a parent unit name component.
4194
4195       --  N_Designator
4196       --  Sloc points to period
4197       --  Name (Node2) holds the parent unit name. Note that this is always
4198       --   non-Empty, since this node is only used for the case where a
4199       --   parent library unit package name is present.
4200       --  Identifier (Node1)
4201
4202       --  Note that the identifier can also be an operator symbol here
4203
4204       ------------------------------
4205       -- 6.1  Defining Designator --
4206       ------------------------------
4207
4208       --  DEFINING_DESIGNATOR ::=
4209       --    DEFINING_PROGRAM_UNIT_NAME | DEFINING_OPERATOR_SYMBOL
4210
4211       -------------------------------------
4212       -- 6.1  Defining Program Unit Name --
4213       -------------------------------------
4214
4215       --  DEFINING_PROGRAM_UNIT_NAME ::=
4216       --    [PARENT_UNIT_NAME .] DEFINING_IDENTIFIER
4217
4218       --  The parent unit name is present only in the case of a child unit
4219       --  name (permissible only for Ada 95 for a library level unit, i.e.
4220       --  a unit at scope level one). If no such name is present, the defining
4221       --  program unit name is represented simply as the defining identifier.
4222       --  In the child unit case, the following node is used to represent the
4223       --  child unit name.
4224
4225       --  N_Defining_Program_Unit_Name
4226       --  Sloc points to period
4227       --  Name (Node2) holds the parent unit name. Note that this is always
4228       --   non-Empty, since this node is only used for the case where a
4229       --   parent unit name is present.
4230       --  Defining_Identifier (Node1)
4231
4232       --------------------------
4233       -- 6.1  Operator Symbol --
4234       --------------------------
4235
4236       --  OPERATOR_SYMBOL ::= STRING_LITERAL
4237
4238       --  Note: the fields of the N_Operator_Symbol node are laid out to
4239       --  match the corresponding fields of an N_Character_Literal node. This
4240       --  allows easy conversion of the operator symbol node into a character
4241       --  literal node in the case where a string constant of the form of an
4242       --  operator symbol is scanned out as such, but turns out semantically
4243       --  to be a string literal that is not an operator. For details see
4244       --  Sinfo.CN.Change_Operator_Symbol_To_String_Literal.
4245
4246       --  N_Operator_Symbol
4247       --  Sloc points to literal
4248       --  Chars (Name1) contains the Name_Id for the operator symbol
4249       --  Strval (Str3) Id of string value. This is used if the operator
4250       --   symbol turns out to be a normal string after all.
4251       --  Entity (Node4-Sem)
4252       --  Associated_Node (Node4-Sem)
4253       --  Has_Private_View (Flag11-Sem) set in generic units.
4254       --  Etype (Node5-Sem)
4255
4256       --  Note: the Strval field may be set to No_String for generated
4257       --  operator symbols that are known not to be string literals
4258       --  semantically.
4259
4260       -----------------------------------
4261       -- 6.1  Defining Operator Symbol --
4262       -----------------------------------
4263
4264       --  DEFINING_OPERATOR_SYMBOL ::= OPERATOR_SYMBOL
4265
4266       --  A defining operator symbol is an entity, which has additional
4267       --  fields depending on the setting of the Ekind field. These
4268       --  additional fields are defined (and access subprograms declared)
4269       --  in package Einfo.
4270
4271       --  Note: N_Defining_Operator_Symbol is an extended node whose fields
4272       --  are deliberately layed out to match the layout of fields in an
4273       --  ordinary N_Operator_Symbol node allowing for easy alteration of
4274       --  an operator symbol node into a defining operator symbol node.
4275       --  See Sinfo.CN.Change_Operator_Symbol_To_Defining_Operator_Symbol
4276       --  for further details.
4277
4278       --  N_Defining_Operator_Symbol
4279       --  Sloc points to literal
4280       --  Chars (Name1) contains the Name_Id for the operator symbol
4281       --  Next_Entity (Node2-Sem)
4282       --  Scope (Node3-Sem)
4283       --  Etype (Node5-Sem)
4284
4285       ----------------------------
4286       -- 6.1  Parameter Profile --
4287       ----------------------------
4288
4289       --  PARAMETER_PROFILE ::= [FORMAL_PART]
4290
4291       ---------------------------------------
4292       -- 6.1  Parameter and Result Profile --
4293       ---------------------------------------
4294
4295       --  PARAMETER_AND_RESULT_PROFILE ::=
4296       --    [FORMAL_PART] return [NULL_EXCLUSION] SUBTYPE_MARK
4297       --  | [FORMAL_PART] return ACCESS_DEFINITION
4298
4299       --  There is no explicit node in the tree for a parameter and result
4300       --  profile. Instead the information appears directly in the parent.
4301
4302       ----------------------
4303       -- 6.1  Formal part --
4304       ----------------------
4305
4306       --  FORMAL_PART ::=
4307       --    (PARAMETER_SPECIFICATION {; PARAMETER_SPECIFICATION})
4308
4309       ----------------------------------
4310       -- 6.1  Parameter specification --
4311       ----------------------------------
4312
4313       --  PARAMETER_SPECIFICATION ::=
4314       --    DEFINING_IDENTIFIER_LIST : MODE [NULL_EXCLUSION] SUBTYPE_MARK
4315       --      [:= DEFAULT_EXPRESSION]
4316       --  | DEFINING_IDENTIFIER_LIST : ACCESS_DEFINITION
4317       --      [:= DEFAULT_EXPRESSION]
4318
4319       --  Although the syntax allows multiple identifiers in the list, the
4320       --  semantics is as though successive specifications were given with
4321       --  identical type definition and expression components. To simplify
4322       --  semantic processing, the parser represents a multiple declaration
4323       --  case as a sequence of single Specifications, using the More_Ids and
4324       --  Prev_Ids flags to preserve the original source form as described
4325       --  in the section on "Handling of Defining Identifier Lists".
4326
4327       --  N_Parameter_Specification
4328       --  Sloc points to first identifier
4329       --  Defining_Identifier (Node1)
4330       --  In_Present (Flag15)
4331       --  Out_Present (Flag17)
4332       --  Null_Exclusion_Present (Flag11)
4333       --  Parameter_Type (Node2) subtype mark or access definition
4334       --  Expression (Node3) (set to Empty if no default expression present)
4335       --  Do_Accessibility_Check (Flag13-Sem)
4336       --  More_Ids (Flag5) (set to False if no more identifiers in list)
4337       --  Prev_Ids (Flag6) (set to False if no previous identifiers in list)
4338       --  Default_Expression (Node5-Sem)
4339
4340       ---------------
4341       -- 6.1  Mode --
4342       ---------------
4343
4344       --  MODE ::= [in] | in out | out
4345
4346       --  There is no explicit node in the tree for the Mode. Instead the
4347       --  In_Present and Out_Present flags are set in the parent node to
4348       --  record the presence of keywords specifying the mode.
4349
4350       --------------------------
4351       -- 6.3  Subprogram Body --
4352       --------------------------
4353
4354       --  SUBPROGRAM_BODY ::=
4355       --    SUBPROGRAM_SPECIFICATION is
4356       --      DECLARATIVE_PART
4357       --    begin
4358       --      HANDLED_SEQUENCE_OF_STATEMENTS
4359       --    end [DESIGNATOR];
4360
4361       --  N_Subprogram_Body
4362       --  Sloc points to FUNCTION or PROCEDURE
4363       --  Specification (Node1)
4364       --  Declarations (List2)
4365       --  Handled_Statement_Sequence (Node4)
4366       --  Activation_Chain_Entity (Node3-Sem)
4367       --  Corresponding_Spec (Node5-Sem)
4368       --  Acts_As_Spec (Flag4-Sem)
4369       --  Bad_Is_Detected (Flag15) used only by parser
4370       --  Do_Storage_Check (Flag17-Sem)
4371       --  Has_Priority_Pragma (Flag6-Sem)
4372       --  Is_Protected_Subprogram_Body (Flag7-Sem)
4373       --  Is_Entry_Barrier_Function (Flag8-Sem)
4374       --  Is_Task_Master (Flag5-Sem)
4375       --  Was_Originally_Stub (Flag13-Sem)
4376       --  Has_Relative_Deadline_Pragma (Flag9-Sem)
4377
4378       -----------------------------------
4379       -- 6.4  Procedure Call Statement --
4380       -----------------------------------
4381
4382       --  PROCEDURE_CALL_STATEMENT ::=
4383       --    procedure_NAME; | procedure_PREFIX ACTUAL_PARAMETER_PART;
4384
4385       --  Note: the reason that a procedure call has expression fields is
4386       --  that it semantically resembles an expression, e.g. overloading is
4387       --  allowed and a type is concocted for semantic processing purposes.
4388       --  Certain of these fields, such as Parens are not relevant, but it
4389       --  is easier to just supply all of them together!
4390
4391       --  N_Procedure_Call_Statement
4392       --  Sloc points to first token of name or prefix
4393       --  Name (Node2) stores name or prefix
4394       --  Parameter_Associations (List3) (set to No_List if no
4395       --   actual parameter part)
4396       --  First_Named_Actual (Node4-Sem)
4397       --  Controlling_Argument (Node1-Sem) (set to Empty if not dispatching)
4398       --  Do_Tag_Check (Flag13-Sem)
4399       --  No_Elaboration_Check (Flag14-Sem)
4400       --  Parameter_List_Truncated (Flag17-Sem)
4401       --  ABE_Is_Certain (Flag18-Sem)
4402       --  plus fields for expression
4403
4404       --  If any IN parameter requires a range check, then the corresponding
4405       --  argument expression has the Do_Range_Check flag set, and the range
4406       --  check is done against the formal type. Note that this argument
4407       --  expression may appear directly in the Parameter_Associations list,
4408       --  or may be a descendent of an N_Parameter_Association node that
4409       --  appears in this list.
4410
4411       ------------------------
4412       -- 6.4  Function Call --
4413       ------------------------
4414
4415       --  FUNCTION_CALL ::=
4416       --    function_NAME | function_PREFIX ACTUAL_PARAMETER_PART
4417
4418       --  Note: the parser may generate an indexed component node or simply
4419       --  a name node instead of a function call node. The semantic pass must
4420       --  correct this misidentification.
4421
4422       --  N_Function_Call
4423       --  Sloc points to first token of name or prefix
4424       --  Name (Node2) stores name or prefix
4425       --  Parameter_Associations (List3) (set to No_List if no
4426       --   actual parameter part)
4427       --  First_Named_Actual (Node4-Sem)
4428       --  Controlling_Argument (Node1-Sem) (set to Empty if not dispatching)
4429       --  Is_Expanded_Build_In_Place_Call (Flag11-Sem)
4430       --  Do_Tag_Check (Flag13-Sem)
4431       --  No_Elaboration_Check (Flag14-Sem)
4432       --  Parameter_List_Truncated (Flag17-Sem)
4433       --  ABE_Is_Certain (Flag18-Sem)
4434       --  plus fields for expression
4435
4436       --------------------------------
4437       -- 6.4  Actual Parameter Part --
4438       --------------------------------
4439
4440       --  ACTUAL_PARAMETER_PART ::=
4441       --    (PARAMETER_ASSOCIATION {,PARAMETER_ASSOCIATION})
4442
4443       --------------------------------
4444       -- 6.4  Parameter Association --
4445       --------------------------------
4446
4447       --  PARAMETER_ASSOCIATION ::=
4448       --    [formal_parameter_SELECTOR_NAME =>] EXPLICIT_ACTUAL_PARAMETER
4449
4450       --  Note: the N_Parameter_Association node is built only if a formal
4451       --  parameter selector name is present, otherwise the parameter
4452       --  association appears in the tree simply as the node for the
4453       --  explicit actual parameter.
4454
4455       --  N_Parameter_Association
4456       --  Sloc points to formal parameter
4457       --  Selector_Name (Node2) (always non-Empty)
4458       --  Explicit_Actual_Parameter (Node3)
4459       --  Next_Named_Actual (Node4-Sem)
4460       --  Is_Accessibility_Actual (Flag12-Sem)
4461
4462       ---------------------------
4463       -- 6.4  Actual Parameter --
4464       ---------------------------
4465
4466       --  EXPLICIT_ACTUAL_PARAMETER ::= EXPRESSION | variable_NAME
4467
4468       ---------------------------
4469       -- 6.5  Return Statement --
4470       ---------------------------
4471
4472       --  RETURN_STATEMENT ::= return [EXPRESSION]; -- Ada 95
4473
4474       --  In Ada 2005, we have:
4475
4476       --  SIMPLE_RETURN_STATEMENT ::= return [EXPRESSION];
4477
4478       --  EXTENDED_RETURN_STATEMENT ::=
4479       --    return DEFINING_IDENTIFIER : [aliased] RETURN_SUBTYPE_INDICATION
4480       --                                           [:= EXPRESSION] [do
4481       --      HANDLED_SEQUENCE_OF_STATEMENTS
4482       --    end return];
4483
4484       --  RETURN_SUBTYPE_INDICATION ::= SUBTYPE_INDICATION | ACCESS_DEFINITION
4485
4486       --  So in Ada 2005, RETURN_STATEMENT is no longer a nonterminal, but
4487       --  "return statement" is defined in 6.5 to mean a
4488       --  SIMPLE_RETURN_STATEMENT or an EXTENDED_RETURN_STATEMENT.
4489
4490       --  N_Return_Statement
4491       --  Sloc points to RETURN
4492       --  Return_Statement_Entity (Node5-Sem)
4493       --  Expression (Node3) (set to Empty if no expression present)
4494       --  Storage_Pool (Node1-Sem)
4495       --  Procedure_To_Call (Node2-Sem)
4496       --  Do_Tag_Check (Flag13-Sem)
4497       --  By_Ref (Flag5-Sem)
4498       --  Comes_From_Extended_Return_Statement (Flag18-Sem)
4499
4500       --  N_Return_Statement represents a simple_return_statement, and is
4501       --  renamed to be N_Simple_Return_Statement below. Clients should refer
4502       --  to N_Simple_Return_Statement. We retain N_Return_Statement because
4503       --  that's how gigi knows it. See also renaming of Make_Return_Statement
4504       --  as Make_Simple_Return_Statement in Sem_Util.
4505
4506       --  Note: Return_Statement_Entity points to an E_Return_Statement
4507
4508       --  If a range check is required, then Do_Range_Check is set on the
4509       --  Expression. The check is against the return subtype of the function.
4510
4511       --  N_Extended_Return_Statement
4512       --  Sloc points to RETURN
4513       --  Return_Statement_Entity (Node5-Sem)
4514       --  Return_Object_Declarations (List3)
4515       --  Handled_Statement_Sequence (Node4) (set to Empty if not present)
4516       --  Storage_Pool (Node1-Sem)
4517       --  Procedure_To_Call (Node2-Sem)
4518       --  Do_Tag_Check (Flag13-Sem)
4519       --  By_Ref (Flag5-Sem)
4520
4521       --  Note: Return_Statement_Entity points to an E_Return_Statement.
4522       --  Note that Return_Object_Declarations is a list containing the
4523       --  N_Object_Declaration -- see comment on this field above.
4524       --  The declared object will have Is_Return_Object = True.
4525       --  There is no such syntactic category as return_object_declaration
4526       --  in the RM. Return_Object_Declarations represents this portion of
4527       --  the syntax for EXTENDED_RETURN_STATEMENT:
4528       --      DEFINING_IDENTIFIER : [aliased] RETURN_SUBTYPE_INDICATION
4529       --                                      [:= EXPRESSION]
4530
4531       --  There are two entities associated with an extended_return_statement:
4532       --  the Return_Statement_Entity represents the statement itself, and the
4533       --  Defining_Identifier of the Object_Declaration in
4534       --  Return_Object_Declarations represents the object being
4535       --  returned. N_Simple_Return_Statement has only the former.
4536
4537       ------------------------------
4538       -- 7.1  Package Declaration --
4539       ------------------------------
4540
4541       --  PACKAGE_DECLARATION ::= PACKAGE_SPECIFICATION;
4542
4543       --  Note: the activation chain entity for a package spec is used for
4544       --  all tasks declared in the package spec, or in the package body.
4545
4546       --  N_Package_Declaration
4547       --  Sloc points to PACKAGE
4548       --  Specification (Node1)
4549       --  Corresponding_Body (Node5-Sem)
4550       --  Parent_Spec (Node4-Sem)
4551       --  Activation_Chain_Entity (Node3-Sem)
4552
4553       --------------------------------
4554       -- 7.1  Package Specification --
4555       --------------------------------
4556
4557       --  PACKAGE_SPECIFICATION ::=
4558       --    package DEFINING_PROGRAM_UNIT_NAME is
4559       --      {BASIC_DECLARATIVE_ITEM}
4560       --    [private
4561       --      {BASIC_DECLARATIVE_ITEM}]
4562       --    end [[PARENT_UNIT_NAME .] IDENTIFIER]
4563
4564       --  N_Package_Specification
4565       --  Sloc points to PACKAGE
4566       --  Defining_Unit_Name (Node1)
4567       --  Visible_Declarations (List2)
4568       --  Private_Declarations (List3) (set to No_List if no private
4569       --   part present)
4570       --  End_Label (Node4)
4571       --  Generic_Parent (Node5-Sem)
4572       --  Limited_View_Installed (Flag18-Sem)
4573
4574       -----------------------
4575       -- 7.1  Package Body --
4576       -----------------------
4577
4578       --  PACKAGE_BODY ::=
4579       --    package body DEFINING_PROGRAM_UNIT_NAME is
4580       --      DECLARATIVE_PART
4581       --    [begin
4582       --      HANDLED_SEQUENCE_OF_STATEMENTS]
4583       --    end [[PARENT_UNIT_NAME .] IDENTIFIER];
4584
4585       --  N_Package_Body
4586       --  Sloc points to PACKAGE
4587       --  Defining_Unit_Name (Node1)
4588       --  Declarations (List2)
4589       --  Handled_Statement_Sequence (Node4) (set to Empty if no HSS present)
4590       --  Corresponding_Spec (Node5-Sem)
4591       --  Was_Originally_Stub (Flag13-Sem)
4592
4593       --  Note: if a source level package does not contain a handled sequence
4594       --  of statements, then the parser supplies a dummy one with a null
4595       --  sequence of statements. Comes_From_Source will be False in this
4596       --  constructed sequence. The reason we need this is for the End_Label
4597       --  field in the HSS.
4598
4599       -----------------------------------
4600       -- 7.4  Private Type Declaration --
4601       -----------------------------------
4602
4603       --  PRIVATE_TYPE_DECLARATION ::=
4604       --    type DEFINING_IDENTIFIER [DISCRIMINANT_PART]
4605       --      is [[abstract] tagged] [limited] private;
4606
4607       --  Note: TAGGED is not permitted in Ada 83 mode
4608
4609       --  N_Private_Type_Declaration
4610       --  Sloc points to TYPE
4611       --  Defining_Identifier (Node1)
4612       --  Discriminant_Specifications (List4) (set to No_List if no
4613       --   discriminant part)
4614       --  Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
4615       --  Abstract_Present (Flag4)
4616       --  Tagged_Present (Flag15)
4617       --  Limited_Present (Flag17)
4618
4619       ----------------------------------------
4620       -- 7.4  Private Extension Declaration --
4621       ----------------------------------------
4622
4623       --  PRIVATE_EXTENSION_DECLARATION ::=
4624       --    type DEFINING_IDENTIFIER [DISCRIMINANT_PART] is
4625       --      [abstract] [limited | synchronized]
4626       --        new ancestor_SUBTYPE_INDICATION [and INTERFACE_LIST]
4627       --           with private;
4628
4629       --  Note: LIMITED, and private extension declarations are not allowed
4630       --        in Ada 83 mode.
4631
4632       --  N_Private_Extension_Declaration
4633       --  Sloc points to TYPE
4634       --  Defining_Identifier (Node1)
4635       --  Discriminant_Specifications (List4) (set to No_List if no
4636       --   discriminant part)
4637       --  Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
4638       --  Abstract_Present (Flag4)
4639       --  Limited_Present (Flag17)
4640       --  Synchronized_Present (Flag7)
4641       --  Subtype_Indication (Node5)
4642       --  Interface_List (List2) (set to No_List if none)
4643
4644       ---------------------
4645       -- 8.4  Use Clause --
4646       ---------------------
4647
4648       --  USE_CLAUSE ::= USE_PACKAGE_CLAUSE | USE_TYPE_CLAUSE
4649
4650       -----------------------------
4651       -- 8.4  Use Package Clause --
4652       -----------------------------
4653
4654       --  USE_PACKAGE_CLAUSE ::= use package_NAME {, package_NAME};
4655
4656       --  N_Use_Package_Clause
4657       --  Sloc points to USE
4658       --  Names (List2)
4659       --  Next_Use_Clause (Node3-Sem)
4660       --  Hidden_By_Use_Clause (Elist4-Sem)
4661
4662       --------------------------
4663       -- 8.4  Use Type Clause --
4664       --------------------------
4665
4666       --  USE_TYPE_CLAUSE ::= use type SUBTYPE_MARK {, SUBTYPE_MARK};
4667
4668       --  Note: use type clause is not permitted in Ada 83 mode
4669
4670       --  N_Use_Type_Clause
4671       --  Sloc points to USE
4672       --  Subtype_Marks (List2)
4673       --  Next_Use_Clause (Node3-Sem)
4674       --  Hidden_By_Use_Clause (Elist4-Sem)
4675
4676       -------------------------------
4677       -- 8.5  Renaming Declaration --
4678       -------------------------------
4679
4680       --  RENAMING_DECLARATION ::=
4681       --    OBJECT_RENAMING_DECLARATION
4682       --  | EXCEPTION_RENAMING_DECLARATION
4683       --  | PACKAGE_RENAMING_DECLARATION
4684       --  | SUBPROGRAM_RENAMING_DECLARATION
4685       --  | GENERIC_RENAMING_DECLARATION
4686
4687       --------------------------------------
4688       -- 8.5  Object Renaming Declaration --
4689       --------------------------------------
4690
4691       --  OBJECT_RENAMING_DECLARATION ::=
4692       --    DEFINING_IDENTIFIER :
4693       --      [NULL_EXCLUSION] SUBTYPE_MARK renames object_NAME;
4694       --  | DEFINING_IDENTIFIER :
4695       --      ACCESS_DEFINITION renames object_NAME;
4696
4697       --  Note: Access_Definition is an optional field that gives support to
4698       --  Ada 2005 (AI-230). The parser generates nodes that have either the
4699       --  Subtype_Indication field or else the Access_Definition field.
4700
4701       --  N_Object_Renaming_Declaration
4702       --  Sloc points to first identifier
4703       --  Defining_Identifier (Node1)
4704       --  Null_Exclusion_Present (Flag11) (set to False if not present)
4705       --  Subtype_Mark (Node4) (set to Empty if not present)
4706       --  Access_Definition (Node3) (set to Empty if not present)
4707       --  Name (Node2)
4708       --  Corresponding_Generic_Association (Node5-Sem)
4709
4710       -----------------------------------------
4711       -- 8.5  Exception Renaming Declaration --
4712       -----------------------------------------
4713
4714       --  EXCEPTION_RENAMING_DECLARATION ::=
4715       --    DEFINING_IDENTIFIER : exception renames exception_NAME;
4716
4717       --  N_Exception_Renaming_Declaration
4718       --  Sloc points to first identifier
4719       --  Defining_Identifier (Node1)
4720       --  Name (Node2)
4721
4722       ---------------------------------------
4723       -- 8.5  Package Renaming Declaration --
4724       ---------------------------------------
4725
4726       --  PACKAGE_RENAMING_DECLARATION ::=
4727       --    package DEFINING_PROGRAM_UNIT_NAME renames package_NAME;
4728
4729       --  N_Package_Renaming_Declaration
4730       --  Sloc points to PACKAGE
4731       --  Defining_Unit_Name (Node1)
4732       --  Name (Node2)
4733       --  Parent_Spec (Node4-Sem)
4734
4735       ------------------------------------------
4736       -- 8.5  Subprogram Renaming Declaration --
4737       ------------------------------------------
4738
4739       --  SUBPROGRAM_RENAMING_DECLARATION ::=
4740       --    SUBPROGRAM_SPECIFICATION renames callable_entity_NAME;
4741
4742       --  N_Subprogram_Renaming_Declaration
4743       --  Sloc points to RENAMES
4744       --  Specification (Node1)
4745       --  Name (Node2)
4746       --  Parent_Spec (Node4-Sem)
4747       --  Corresponding_Spec (Node5-Sem)
4748       --  Corresponding_Formal_Spec (Node3-Sem)
4749       --  From_Default (Flag6-Sem)
4750
4751       -----------------------------------------
4752       -- 8.5.5  Generic Renaming Declaration --
4753       -----------------------------------------
4754
4755       --  GENERIC_RENAMING_DECLARATION ::=
4756       --    generic package DEFINING_PROGRAM_UNIT_NAME
4757       --      renames generic_package_NAME
4758       --  | generic procedure DEFINING_PROGRAM_UNIT_NAME
4759       --      renames generic_procedure_NAME
4760       --  | generic function DEFINING_PROGRAM_UNIT_NAME
4761       --      renames generic_function_NAME
4762
4763       --  N_Generic_Package_Renaming_Declaration
4764       --  Sloc points to GENERIC
4765       --  Defining_Unit_Name (Node1)
4766       --  Name (Node2)
4767       --  Parent_Spec (Node4-Sem)
4768
4769       --  N_Generic_Procedure_Renaming_Declaration
4770       --  Sloc points to GENERIC
4771       --  Defining_Unit_Name (Node1)
4772       --  Name (Node2)
4773       --  Parent_Spec (Node4-Sem)
4774
4775       --  N_Generic_Function_Renaming_Declaration
4776       --  Sloc points to GENERIC
4777       --  Defining_Unit_Name (Node1)
4778       --  Name (Node2)
4779       --  Parent_Spec (Node4-Sem)
4780
4781       --------------------------------
4782       -- 9.1  Task Type Declaration --
4783       --------------------------------
4784
4785       --  TASK_TYPE_DECLARATION ::=
4786       --    task type DEFINING_IDENTIFIER [KNOWN_DISCRIMINANT_PART]
4787       --      [is [new INTERFACE_LIST with] TASK_DEFINITION];
4788
4789       --  N_Task_Type_Declaration
4790       --  Sloc points to TASK
4791       --  Defining_Identifier (Node1)
4792       --  Discriminant_Specifications (List4) (set to No_List if no
4793       --   discriminant part)
4794       --  Interface_List (List2) (set to No_List if none)
4795       --  Task_Definition (Node3) (set to Empty if not present)
4796       --  Corresponding_Body (Node5-Sem)
4797
4798       ----------------------------------
4799       -- 9.1  Single Task Declaration --
4800       ----------------------------------
4801
4802       --  SINGLE_TASK_DECLARATION ::=
4803       --    task DEFINING_IDENTIFIER
4804       --      [is [new INTERFACE_LIST with] TASK_DEFINITION];
4805
4806       --  N_Single_Task_Declaration
4807       --  Sloc points to TASK
4808       --  Defining_Identifier (Node1)
4809       --  Interface_List (List2) (set to No_List if none)
4810       --  Task_Definition (Node3) (set to Empty if not present)
4811
4812       --------------------------
4813       -- 9.1  Task Definition --
4814       --------------------------
4815
4816       --  TASK_DEFINITION ::=
4817       --      {TASK_ITEM}
4818       --    [private
4819       --      {TASK_ITEM}]
4820       --    end [task_IDENTIFIER]
4821
4822       --  Note: as a result of semantic analysis, the list of task items can
4823       --  include implicit type declarations resulting from entry families.
4824
4825       --  N_Task_Definition
4826       --  Sloc points to first token of task definition
4827       --  Visible_Declarations (List2)
4828       --  Private_Declarations (List3) (set to No_List if no private part)
4829       --  End_Label (Node4)
4830       --  Has_Priority_Pragma (Flag6-Sem)
4831       --  Has_Storage_Size_Pragma (Flag5-Sem)
4832       --  Has_Task_Info_Pragma (Flag7-Sem)
4833       --  Has_Task_Name_Pragma (Flag8-Sem)
4834       --  Has_Relative_Deadline_Pragma (Flag9-Sem)
4835
4836       --------------------
4837       -- 9.1  Task Item --
4838       --------------------
4839
4840       --  TASK_ITEM ::= ENTRY_DECLARATION | REPRESENTATION_CLAUSE
4841
4842       --------------------
4843       -- 9.1  Task Body --
4844       --------------------
4845
4846       --  TASK_BODY ::=
4847       --    task body task_DEFINING_IDENTIFIER is
4848       --      DECLARATIVE_PART
4849       --    begin
4850       --      HANDLED_SEQUENCE_OF_STATEMENTS
4851       --    end [task_IDENTIFIER];
4852
4853       --  Gigi restriction: This node never appears
4854
4855       --  N_Task_Body
4856       --  Sloc points to TASK
4857       --  Defining_Identifier (Node1)
4858       --  Declarations (List2)
4859       --  Handled_Statement_Sequence (Node4)
4860       --  Is_Task_Master (Flag5-Sem)
4861       --  Activation_Chain_Entity (Node3-Sem)
4862       --  Corresponding_Spec (Node5-Sem)
4863       --  Was_Originally_Stub (Flag13-Sem)
4864
4865       -------------------------------------
4866       -- 9.4  Protected Type Declaration --
4867       -------------------------------------
4868
4869       --  PROTECTED_TYPE_DECLARATION ::=
4870       --    protected type DEFINING_IDENTIFIER [KNOWN_DISCRIMINANT_PART]
4871       --      is [new INTERFACE_LIST with] PROTECTED_DEFINITION;
4872
4873       --  Note: protected type declarations are not permitted in Ada 83 mode
4874
4875       --  N_Protected_Type_Declaration
4876       --  Sloc points to PROTECTED
4877       --  Defining_Identifier (Node1)
4878       --  Discriminant_Specifications (List4) (set to No_List if no
4879       --   discriminant part)
4880       --  Interface_List (List2) (set to No_List if none)
4881       --  Protected_Definition (Node3)
4882       --  Corresponding_Body (Node5-Sem)
4883
4884       ---------------------------------------
4885       -- 9.4  Single Protected Declaration --
4886       ---------------------------------------
4887
4888       --  SINGLE_PROTECTED_DECLARATION ::=
4889       --    protected DEFINING_IDENTIFIER
4890       --      is [new INTERFACE_LIST with] PROTECTED_DEFINITION;
4891
4892       --  Note: single protected declarations are not allowed in Ada 83 mode
4893
4894       --  N_Single_Protected_Declaration
4895       --  Sloc points to PROTECTED
4896       --  Defining_Identifier (Node1)
4897       --  Interface_List (List2) (set to No_List if none)
4898       --  Protected_Definition (Node3)
4899
4900       -------------------------------
4901       -- 9.4  Protected Definition --
4902       -------------------------------
4903
4904       --  PROTECTED_DEFINITION ::=
4905       --      {PROTECTED_OPERATION_DECLARATION}
4906       --    [private
4907       --      {PROTECTED_ELEMENT_DECLARATION}]
4908       --    end [protected_IDENTIFIER]
4909
4910       --  N_Protected_Definition
4911       --  Sloc points to first token of protected definition
4912       --  Visible_Declarations (List2)
4913       --  Private_Declarations (List3) (set to No_List if no private part)
4914       --  End_Label (Node4)
4915       --  Has_Priority_Pragma (Flag6-Sem)
4916
4917       ------------------------------------------
4918       -- 9.4  Protected Operation Declaration --
4919       ------------------------------------------
4920
4921       --  PROTECTED_OPERATION_DECLARATION ::=
4922       --    SUBPROGRAM_DECLARATION
4923       --  | ENTRY_DECLARATION
4924       --  | REPRESENTATION_CLAUSE
4925
4926       ----------------------------------------
4927       -- 9.4  Protected Element Declaration --
4928       ----------------------------------------
4929
4930       --  PROTECTED_ELEMENT_DECLARATION ::=
4931       --    PROTECTED_OPERATION_DECLARATION | COMPONENT_DECLARATION
4932
4933       -------------------------
4934       -- 9.4  Protected Body --
4935       -------------------------
4936
4937       --  PROTECTED_BODY ::=
4938       --    protected body DEFINING_IDENTIFIER is
4939       --      {PROTECTED_OPERATION_ITEM}
4940       --    end [protected_IDENTIFIER];
4941
4942       --  Note: protected bodies are not allowed in Ada 83 mode
4943
4944       --  Gigi restriction: This node never appears
4945
4946       --  N_Protected_Body
4947       --  Sloc points to PROTECTED
4948       --  Defining_Identifier (Node1)
4949       --  Declarations (List2) protected operation items (and pragmas)
4950       --  End_Label (Node4)
4951       --  Corresponding_Spec (Node5-Sem)
4952       --  Was_Originally_Stub (Flag13-Sem)
4953
4954       -----------------------------------
4955       -- 9.4  Protected Operation Item --
4956       -----------------------------------
4957
4958       --  PROTECTED_OPERATION_ITEM ::=
4959       --    SUBPROGRAM_DECLARATION
4960       --  | SUBPROGRAM_BODY
4961       --  | ENTRY_BODY
4962       --  | REPRESENTATION_CLAUSE
4963
4964       ------------------------------
4965       -- 9.5.2  Entry Declaration --
4966       ------------------------------
4967
4968       --  ENTRY_DECLARATION ::=
4969       --    [[not] overriding]
4970       --    entry DEFINING_IDENTIFIER
4971       --      [(DISCRETE_SUBTYPE_DEFINITION)] PARAMETER_PROFILE;
4972
4973       --  N_Entry_Declaration
4974       --  Sloc points to ENTRY
4975       --  Defining_Identifier (Node1)
4976       --  Discrete_Subtype_Definition (Node4) (set to Empty if not present)
4977       --  Parameter_Specifications (List3) (set to No_List if no formal part)
4978       --  Corresponding_Body (Node5-Sem)
4979       --  Must_Override (Flag14) set if overriding indicator present
4980       --  Must_Not_Override (Flag15) set if not_overriding indicator present
4981
4982       --  Note: overriding indicator is an Ada 2005 feature
4983
4984       -----------------------------
4985       -- 9.5.2  Accept statement --
4986       -----------------------------
4987
4988       --  ACCEPT_STATEMENT ::=
4989       --    accept entry_DIRECT_NAME
4990       --      [(ENTRY_INDEX)] PARAMETER_PROFILE [do
4991       --        HANDLED_SEQUENCE_OF_STATEMENTS
4992       --    end [entry_IDENTIFIER]];
4993
4994       --  Gigi restriction: This node never appears
4995
4996       --  Note: there are no explicit declarations allowed in an accept
4997       --  statement. However, the implicit declarations for any statement
4998       --  identifiers (labels and block/loop identifiers) are declarations
4999       --  that belong logically to the accept statement, and that is why
5000       --  there is a Declarations field in this node.
5001
5002       --  N_Accept_Statement
5003       --  Sloc points to ACCEPT
5004       --  Entry_Direct_Name (Node1)
5005       --  Entry_Index (Node5) (set to Empty if not present)
5006       --  Parameter_Specifications (List3) (set to No_List if no formal part)
5007       --  Handled_Statement_Sequence (Node4)
5008       --  Declarations (List2) (set to No_List if no declarations)
5009
5010       ------------------------
5011       -- 9.5.2  Entry Index --
5012       ------------------------
5013
5014       --  ENTRY_INDEX ::= EXPRESSION
5015
5016       -----------------------
5017       -- 9.5.2  Entry Body --
5018       -----------------------
5019
5020       --  ENTRY_BODY ::=
5021       --    entry DEFINING_IDENTIFIER ENTRY_BODY_FORMAL_PART ENTRY_BARRIER is
5022       --      DECLARATIVE_PART
5023       --    begin
5024       --      HANDLED_SEQUENCE_OF_STATEMENTS
5025       --    end [entry_IDENTIFIER];
5026
5027       --  ENTRY_BARRIER ::= when CONDITION
5028
5029       --  Note: we store the CONDITION of the ENTRY_BARRIER in the node for
5030       --  the ENTRY_BODY_FORMAL_PART to avoid the N_Entry_Body node getting
5031       --  too full (it would otherwise have too many fields)
5032
5033       --  Gigi restriction: This node never appears
5034
5035       --  N_Entry_Body
5036       --  Sloc points to ENTRY
5037       --  Defining_Identifier (Node1)
5038       --  Entry_Body_Formal_Part (Node5)
5039       --  Declarations (List2)
5040       --  Handled_Statement_Sequence (Node4)
5041       --  Activation_Chain_Entity (Node3-Sem)
5042
5043       -----------------------------------
5044       -- 9.5.2  Entry Body Formal Part --
5045       -----------------------------------
5046
5047       --  ENTRY_BODY_FORMAL_PART ::=
5048       --    [(ENTRY_INDEX_SPECIFICATION)] PARAMETER_PROFILE
5049
5050       --  Note that an entry body formal part node is present even if it is
5051       --  empty. This reflects the grammar, in which it is the components of
5052       --  the entry body formal part that are optional, not the entry body
5053       --  formal part itself. Also this means that the barrier condition
5054       --  always has somewhere to be stored.
5055
5056       --  Gigi restriction: This node never appears
5057
5058       --  N_Entry_Body_Formal_Part
5059       --  Sloc points to first token
5060       --  Entry_Index_Specification (Node4) (set to Empty if not present)
5061       --  Parameter_Specifications (List3) (set to No_List if no formal part)
5062       --  Condition (Node1) from entry barrier of entry body
5063
5064       --------------------------
5065       -- 9.5.2  Entry Barrier --
5066       --------------------------
5067
5068       --  ENTRY_BARRIER ::= when CONDITION
5069
5070       --------------------------------------
5071       -- 9.5.2  Entry Index Specification --
5072       --------------------------------------
5073
5074       --  ENTRY_INDEX_SPECIFICATION ::=
5075       --    for DEFINING_IDENTIFIER in DISCRETE_SUBTYPE_DEFINITION
5076
5077       --  Gigi restriction: This node never appears
5078
5079       --  N_Entry_Index_Specification
5080       --  Sloc points to FOR
5081       --  Defining_Identifier (Node1)
5082       --  Discrete_Subtype_Definition (Node4)
5083
5084       ---------------------------------
5085       -- 9.5.3  Entry Call Statement --
5086       ---------------------------------
5087
5088       --  ENTRY_CALL_STATEMENT ::= entry_NAME [ACTUAL_PARAMETER_PART];
5089
5090       --  The parser may generate a procedure call for this construct. The
5091       --  semantic pass must correct this misidentification where needed.
5092
5093       --  Gigi restriction: This node never appears
5094
5095       --  N_Entry_Call_Statement
5096       --  Sloc points to first token of name
5097       --  Name (Node2)
5098       --  Parameter_Associations (List3) (set to No_List if no
5099       --   actual parameter part)
5100       --  First_Named_Actual (Node4-Sem)
5101
5102       ------------------------------
5103       -- 9.5.4  Requeue Statement --
5104       ------------------------------
5105
5106       --  REQUEUE_STATEMENT ::= requeue entry_NAME [with abort];
5107
5108       --  Note: requeue statements are not permitted in Ada 83 mode
5109
5110       --  Gigi restriction: This node never appears
5111
5112       --  N_Requeue_Statement
5113       --  Sloc points to REQUEUE
5114       --  Name (Node2)
5115       --  Abort_Present (Flag15)
5116
5117       --------------------------
5118       -- 9.6  Delay Statement --
5119       --------------------------
5120
5121       --  DELAY_STATEMENT ::=
5122       --    DELAY_UNTIL_STATEMENT
5123       --  | DELAY_RELATIVE_STATEMENT
5124
5125       --------------------------------
5126       -- 9.6  Delay Until Statement --
5127       --------------------------------
5128
5129       --  DELAY_UNTIL_STATEMENT ::= delay until delay_EXPRESSION;
5130
5131       --  Note: delay until statements are not permitted in Ada 83 mode
5132
5133       --  Gigi restriction: This node never appears
5134
5135       --  N_Delay_Until_Statement
5136       --  Sloc points to DELAY
5137       --  Expression (Node3)
5138
5139       -----------------------------------
5140       -- 9.6  Delay Relative Statement --
5141       -----------------------------------
5142
5143       --  DELAY_RELATIVE_STATEMENT ::= delay delay_EXPRESSION;
5144
5145       --  Gigi restriction: This node never appears
5146
5147       --  N_Delay_Relative_Statement
5148       --  Sloc points to DELAY
5149       --  Expression (Node3)
5150
5151       ---------------------------
5152       -- 9.7  Select Statement --
5153       ---------------------------
5154
5155       --  SELECT_STATEMENT ::=
5156       --    SELECTIVE_ACCEPT
5157       --  | TIMED_ENTRY_CALL
5158       --  | CONDITIONAL_ENTRY_CALL
5159       --  | ASYNCHRONOUS_SELECT
5160
5161       -----------------------------
5162       -- 9.7.1  Selective Accept --
5163       -----------------------------
5164
5165       --  SELECTIVE_ACCEPT ::=
5166       --    select
5167       --      [GUARD]
5168       --        SELECT_ALTERNATIVE
5169       --    {or
5170       --      [GUARD]
5171       --        SELECT_ALTERNATIVE}
5172       --    [else
5173       --      SEQUENCE_OF_STATEMENTS]
5174       --    end select;
5175
5176       --  Gigi restriction: This node never appears
5177
5178       --  Note: the guard expression, if present, appears in the node for
5179       --  the select alternative.
5180
5181       --  N_Selective_Accept
5182       --  Sloc points to SELECT
5183       --  Select_Alternatives (List1)
5184       --  Else_Statements (List4) (set to No_List if no else part)
5185
5186       ------------------
5187       -- 9.7.1  Guard --
5188       ------------------
5189
5190       --  GUARD ::= when CONDITION =>
5191
5192       --  As noted above, the CONDITION that is part of a GUARD is included
5193       --  in the node for the select alternative for convenience.
5194
5195       -------------------------------
5196       -- 9.7.1  Select Alternative --
5197       -------------------------------
5198
5199       --  SELECT_ALTERNATIVE ::=
5200       --    ACCEPT_ALTERNATIVE
5201       --  | DELAY_ALTERNATIVE
5202       --  | TERMINATE_ALTERNATIVE
5203
5204       -------------------------------
5205       -- 9.7.1  Accept Alternative --
5206       -------------------------------
5207
5208       --  ACCEPT_ALTERNATIVE ::=
5209       --    ACCEPT_STATEMENT [SEQUENCE_OF_STATEMENTS]
5210
5211       --  Gigi restriction: This node never appears
5212
5213       --  N_Accept_Alternative
5214       --  Sloc points to ACCEPT
5215       --  Accept_Statement (Node2)
5216       --  Condition (Node1) from the guard (set to Empty if no guard present)
5217       --  Statements (List3) (set to Empty_List if no statements)
5218       --  Pragmas_Before (List4) pragmas before alt (set to No_List if none)
5219       --  Accept_Handler_Records (List5-Sem)
5220
5221       ------------------------------
5222       -- 9.7.1  Delay Alternative --
5223       ------------------------------
5224
5225       --  DELAY_ALTERNATIVE ::=
5226       --    DELAY_STATEMENT [SEQUENCE_OF_STATEMENTS]
5227
5228       --  Gigi restriction: This node never appears
5229
5230       --  N_Delay_Alternative
5231       --  Sloc points to DELAY
5232       --  Delay_Statement (Node2)
5233       --  Condition (Node1) from the guard (set to Empty if no guard present)
5234       --  Statements (List3) (set to Empty_List if no statements)
5235       --  Pragmas_Before (List4) pragmas before alt (set to No_List if none)
5236
5237       ----------------------------------
5238       -- 9.7.1  Terminate Alternative --
5239       ----------------------------------
5240
5241       --  TERMINATE_ALTERNATIVE ::= terminate;
5242
5243       --  Gigi restriction: This node never appears
5244
5245       --  N_Terminate_Alternative
5246       --  Sloc points to TERMINATE
5247       --  Condition (Node1) from the guard (set to Empty if no guard present)
5248       --  Pragmas_Before (List4) pragmas before alt (set to No_List if none)
5249       --  Pragmas_After (List5) pragmas after alt (set to No_List if none)
5250
5251       -----------------------------
5252       -- 9.7.2  Timed Entry Call --
5253       -----------------------------
5254
5255       --  TIMED_ENTRY_CALL ::=
5256       --    select
5257       --      ENTRY_CALL_ALTERNATIVE
5258       --    or
5259       --      DELAY_ALTERNATIVE
5260       --    end select;
5261
5262       --  Gigi restriction: This node never appears
5263
5264       --  N_Timed_Entry_Call
5265       --  Sloc points to SELECT
5266       --  Entry_Call_Alternative (Node1)
5267       --  Delay_Alternative (Node4)
5268
5269       -----------------------------------
5270       -- 9.7.2  Entry Call Alternative --
5271       -----------------------------------
5272
5273       --  ENTRY_CALL_ALTERNATIVE ::=
5274       --    PROCEDURE_OR_ENTRY_CALL [SEQUENCE_OF_STATEMENTS]
5275
5276       --  PROCEDURE_OR_ENTRY_CALL ::=
5277       --    PROCEDURE_CALL_STATEMENT | ENTRY_CALL_STATEMENT
5278
5279       --  Gigi restriction: This node never appears
5280
5281       --  N_Entry_Call_Alternative
5282       --  Sloc points to first token of entry call statement
5283       --  Entry_Call_Statement (Node1)
5284       --  Statements (List3) (set to Empty_List if no statements)
5285       --  Pragmas_Before (List4) pragmas before alt (set to No_List if none)
5286
5287       -----------------------------------
5288       -- 9.7.3  Conditional Entry Call --
5289       -----------------------------------
5290
5291       --  CONDITIONAL_ENTRY_CALL ::=
5292       --    select
5293       --      ENTRY_CALL_ALTERNATIVE
5294       --    else
5295       --      SEQUENCE_OF_STATEMENTS
5296       --    end select;
5297
5298       --  Gigi restriction: This node never appears
5299
5300       --  N_Conditional_Entry_Call
5301       --  Sloc points to SELECT
5302       --  Entry_Call_Alternative (Node1)
5303       --  Else_Statements (List4)
5304
5305       --------------------------------
5306       -- 9.7.4  Asynchronous Select --
5307       --------------------------------
5308
5309       --  ASYNCHRONOUS_SELECT ::=
5310       --    select
5311       --      TRIGGERING_ALTERNATIVE
5312       --    then abort
5313       --      ABORTABLE_PART
5314       --    end select;
5315
5316       --  Note: asynchronous select is not permitted in Ada 83 mode
5317
5318       --  Gigi restriction: This node never appears
5319
5320       --  N_Asynchronous_Select
5321       --  Sloc points to SELECT
5322       --  Triggering_Alternative (Node1)
5323       --  Abortable_Part (Node2)
5324
5325       -----------------------------------
5326       -- 9.7.4  Triggering Alternative --
5327       -----------------------------------
5328
5329       --  TRIGGERING_ALTERNATIVE ::=
5330       --    TRIGGERING_STATEMENT [SEQUENCE_OF_STATEMENTS]
5331
5332       --  Gigi restriction: This node never appears
5333
5334       --  N_Triggering_Alternative
5335       --  Sloc points to first token of triggering statement
5336       --  Triggering_Statement (Node1)
5337       --  Statements (List3) (set to Empty_List if no statements)
5338       --  Pragmas_Before (List4) pragmas before alt (set to No_List if none)
5339
5340       ---------------------------------
5341       -- 9.7.4  Triggering Statement --
5342       ---------------------------------
5343
5344       --  TRIGGERING_STATEMENT ::= PROCEDURE_OR_ENTRY_CALL | DELAY_STATEMENT
5345
5346       ---------------------------
5347       -- 9.7.4  Abortable Part --
5348       ---------------------------
5349
5350       --  ABORTABLE_PART ::= SEQUENCE_OF_STATEMENTS
5351
5352       --  Gigi restriction: This node never appears
5353
5354       --  N_Abortable_Part
5355       --  Sloc points to ABORT
5356       --  Statements (List3)
5357
5358       --------------------------
5359       -- 9.8  Abort Statement --
5360       --------------------------
5361
5362       --  ABORT_STATEMENT ::= abort task_NAME {, task_NAME};
5363
5364       --  Gigi restriction: This node never appears
5365
5366       --  N_Abort_Statement
5367       --  Sloc points to ABORT
5368       --  Names (List2)
5369
5370       -------------------------
5371       -- 10.1.1  Compilation --
5372       -------------------------
5373
5374       --  COMPILATION ::= {COMPILATION_UNIT}
5375
5376       --  There is no explicit node in the tree for a compilation, since in
5377       --  general the compiler is processing only a single compilation unit
5378       --  at a time. It is possible to parse multiple units in syntax check
5379       --  only mode, but the trees are discarded in that case.
5380
5381       ------------------------------
5382       -- 10.1.1  Compilation Unit --
5383       ------------------------------
5384
5385       --  COMPILATION_UNIT ::=
5386       --    CONTEXT_CLAUSE LIBRARY_ITEM
5387       --  | CONTEXT_CLAUSE SUBUNIT
5388
5389       --  The N_Compilation_Unit node itself represents the above syntax.
5390       --  However, there are two additional items not reflected in the above
5391       --  syntax. First we have the global declarations that are added by the
5392       --  code generator. These are outer level declarations (so they cannot
5393       --  be represented as being inside the units). An example is the wrapper
5394       --  subprograms that are created to do ABE checking. As always a list of
5395       --  declarations can contain actions as well (i.e. statements), and such
5396       --  statements are executed as part of the elaboration of the unit. Note
5397       --  that all such declarations are elaborated before the library unit.
5398
5399       --  Similarly, certain actions need to be elaborated at the completion
5400       --  of elaboration of the library unit (notably the statement that sets
5401       --  the Boolean flag indicating that elaboration is complete).
5402
5403       --  The third item not reflected in the syntax is pragmas that appear
5404       --  after the compilation unit. As always pragmas are a problem since
5405       --  they are not part of the formal syntax, but can be stuck into the
5406       --  source following a set of ad hoc rules, and we have to find an ad
5407       --  hoc way of sticking them into the tree. For pragmas that appear
5408       --  before the library unit, we just consider them to be part of the
5409       --  context clause, and pragmas can appear in the Context_Items list
5410       --  of the compilation unit. However, pragmas can also appear after
5411       --  the library item.
5412
5413       --  To deal with all these problems, we create an auxiliary node for
5414       --  a compilation unit, referenced from the N_Compilation_Unit node
5415       --  that contains these three items.
5416
5417       --  N_Compilation_Unit
5418       --  Sloc points to first token of defining unit name
5419       --  Library_Unit (Node4-Sem) corresponding/parent spec/body
5420       --  Context_Items (List1) context items and pragmas preceding unit
5421       --  Private_Present (Flag15) set if library unit has private keyword
5422       --  Unit (Node2) library item or subunit
5423       --  Aux_Decls_Node (Node5) points to the N_Compilation_Unit_Aux node
5424       --  Has_No_Elaboration_Code (Flag17-Sem)
5425       --  Body_Required (Flag13-Sem) set for spec if body is required
5426       --  Acts_As_Spec (Flag4-Sem) flag for subprogram body with no spec
5427       --  Context_Pending (Flag16-Sem)
5428       --  First_Inlined_Subprogram (Node3-Sem)
5429
5430       --  N_Compilation_Unit_Aux
5431       --  Sloc is a copy of the Sloc from the N_Compilation_Unit node
5432       --  Declarations (List2) (set to No_List if no global declarations)
5433       --  Actions (List1) (set to No_List if no actions)
5434       --  Pragmas_After (List5) pragmas after unit (set to No_List if none)
5435       --  Config_Pragmas (List4) config pragmas (set to Empty_List if none)
5436
5437       --------------------------
5438       -- 10.1.1  Library Item --
5439       --------------------------
5440
5441       --  LIBRARY_ITEM ::=
5442       --    [private] LIBRARY_UNIT_DECLARATION
5443       --  | LIBRARY_UNIT_BODY
5444       --  | [private] LIBRARY_UNIT_RENAMING_DECLARATION
5445
5446       --  Note: PRIVATE is not allowed in Ada 83 mode
5447
5448       --  There is no explicit node in the tree for library item, instead
5449       --  the declaration or body, and the flag for private if present,
5450       --  appear in the N_Compilation_Unit node.
5451
5452       --------------------------------------
5453       -- 10.1.1  Library Unit Declaration --
5454       --------------------------------------
5455
5456       --  LIBRARY_UNIT_DECLARATION ::=
5457       --    SUBPROGRAM_DECLARATION | PACKAGE_DECLARATION
5458       --  | GENERIC_DECLARATION    | GENERIC_INSTANTIATION
5459
5460       -----------------------------------------------
5461       -- 10.1.1  Library Unit Renaming Declaration --
5462       -----------------------------------------------
5463
5464       --  LIBRARY_UNIT_RENAMING_DECLARATION ::=
5465       --    PACKAGE_RENAMING_DECLARATION
5466       --  | GENERIC_RENAMING_DECLARATION
5467       --  | SUBPROGRAM_RENAMING_DECLARATION
5468
5469       -------------------------------
5470       -- 10.1.1  Library unit body --
5471       -------------------------------
5472
5473       --  LIBRARY_UNIT_BODY ::= SUBPROGRAM_BODY | PACKAGE_BODY
5474
5475       ------------------------------
5476       -- 10.1.1  Parent Unit Name --
5477       ------------------------------
5478
5479       --  PARENT_UNIT_NAME ::= NAME
5480
5481       ----------------------------
5482       -- 10.1.2  Context clause --
5483       ----------------------------
5484
5485       --  CONTEXT_CLAUSE ::= {CONTEXT_ITEM}
5486
5487       --  The context clause can include pragmas, and any pragmas that appear
5488       --  before the context clause proper (i.e. all configuration pragmas,
5489       --  also appear at the front of this list).
5490
5491       --------------------------
5492       -- 10.1.2  Context_Item --
5493       --------------------------
5494
5495       --  CONTEXT_ITEM ::= WITH_CLAUSE | USE_CLAUSE  | WITH_TYPE_CLAUSE
5496
5497       -------------------------
5498       -- 10.1.2  With clause --
5499       -------------------------
5500
5501       --  WITH_CLAUSE ::=
5502       --    with library_unit_NAME {,library_unit_NAME};
5503
5504       --  A separate With clause is built for each name, so that we have
5505       --  a Corresponding_Spec field for each with'ed spec. The flags
5506       --  First_Name and Last_Name are used to reconstruct the exact
5507       --  source form. When a list of names appears in one with clause,
5508       --  the first name in the list has First_Name set, and the last
5509       --  has Last_Name set. If the with clause has only one name, then
5510       --  both of the flags First_Name and Last_Name are set in this name.
5511
5512       --  Note: in the case of implicit with's that are installed by the
5513       --  Rtsfind routine, Implicit_With is set, and the Sloc is typically
5514       --  set to Standard_Location, but it is incorrect to test the Sloc
5515       --  to find out if a with clause is implicit, test the flag instead.
5516
5517       --  N_With_Clause
5518       --  Sloc points to first token of library unit name
5519       --  Name (Node2)
5520       --  Next_Implicit_With (Node3-Sem)
5521       --  Library_Unit (Node4-Sem)
5522       --  Corresponding_Spec (Node5-Sem)
5523       --  First_Name (Flag5) (set to True if first name or only one name)
5524       --  Last_Name (Flag6) (set to True if last name or only one name)
5525       --  Context_Installed (Flag13-Sem)
5526       --  Elaborate_Present (Flag4-Sem)
5527       --  Elaborate_All_Present (Flag14-Sem)
5528       --  Elaborate_All_Desirable (Flag9-Sem)
5529       --  Elaborate_Desirable (Flag11-Sem)
5530       --  Private_Present (Flag15) set if with_clause has private keyword
5531       --  Implicit_With (Flag16-Sem)
5532       --  Limited_Present (Flag17)  set if LIMITED is present
5533       --  Limited_View_Installed (Flag18-Sem)
5534       --  Unreferenced_In_Spec (Flag7-Sem)
5535       --  No_Entities_Ref_In_Spec (Flag8-Sem)
5536
5537       --  Note: Limited_Present and Limited_View_Installed give support to
5538       --        Ada 2005 (AI-50217).
5539       --  Similarly, Private_Present gives support to AI-50262.
5540
5541       ----------------------
5542       -- With_Type clause --
5543       ----------------------
5544
5545       --  This is a GNAT extension, used to implement mutually recursive
5546       --  types declared in different packages.
5547       --  Note: this is now obsolete. The functionality of this construct
5548       --  is now implemented by the Ada 2005 Limited_with_Clause.
5549
5550       ---------------------
5551       -- 10.2  Body stub --
5552       ---------------------
5553
5554       --  BODY_STUB ::=
5555       --    SUBPROGRAM_BODY_STUB
5556       --  | PACKAGE_BODY_STUB
5557       --  | TASK_BODY_STUB
5558       --  | PROTECTED_BODY_STUB
5559
5560       ----------------------------------
5561       -- 10.1.3  Subprogram Body Stub --
5562       ----------------------------------
5563
5564       --  SUBPROGRAM_BODY_STUB ::=
5565       --    SUBPROGRAM_SPECIFICATION is separate;
5566
5567       --  N_Subprogram_Body_Stub
5568       --  Sloc points to FUNCTION or PROCEDURE
5569       --  Specification (Node1)
5570       --  Library_Unit (Node4-Sem) points to the subunit
5571       --  Corresponding_Body (Node5-Sem)
5572
5573       -------------------------------
5574       -- 10.1.3  Package Body Stub --
5575       -------------------------------
5576
5577       --  PACKAGE_BODY_STUB ::=
5578       --    package body DEFINING_IDENTIFIER is separate;
5579
5580       --  N_Package_Body_Stub
5581       --  Sloc points to PACKAGE
5582       --  Defining_Identifier (Node1)
5583       --  Library_Unit (Node4-Sem) points to the subunit
5584       --  Corresponding_Body (Node5-Sem)
5585
5586       ----------------------------
5587       -- 10.1.3  Task Body Stub --
5588       ----------------------------
5589
5590       --  TASK_BODY_STUB ::=
5591       --    task body DEFINING_IDENTIFIER is separate;
5592
5593       --  N_Task_Body_Stub
5594       --  Sloc points to TASK
5595       --  Defining_Identifier (Node1)
5596       --  Library_Unit (Node4-Sem) points to the subunit
5597       --  Corresponding_Body (Node5-Sem)
5598
5599       ---------------------------------
5600       -- 10.1.3  Protected Body Stub --
5601       ---------------------------------
5602
5603       --  PROTECTED_BODY_STUB ::=
5604       --    protected body DEFINING_IDENTIFIER is separate;
5605
5606       --  Note: protected body stubs are not allowed in Ada 83 mode
5607
5608       --  N_Protected_Body_Stub
5609       --  Sloc points to PROTECTED
5610       --  Defining_Identifier (Node1)
5611       --  Library_Unit (Node4-Sem) points to the subunit
5612       --  Corresponding_Body (Node5-Sem)
5613
5614       ---------------------
5615       -- 10.1.3  Subunit --
5616       ---------------------
5617
5618       --  SUBUNIT ::= separate (PARENT_UNIT_NAME) PROPER_BODY
5619
5620       --  N_Subunit
5621       --  Sloc points to SEPARATE
5622       --  Name (Node2) is the name of the parent unit
5623       --  Proper_Body (Node1) is the subunit body
5624       --  Corresponding_Stub (Node3-Sem) is the stub declaration for the unit.
5625
5626       ---------------------------------
5627       -- 11.1  Exception Declaration --
5628       ---------------------------------
5629
5630       --  EXCEPTION_DECLARATION ::= DEFINING_IDENTIFIER_LIST : exception;
5631
5632       --  For consistency with object declarations etc., the parser converts
5633       --  the case of multiple identifiers being declared to a series of
5634       --  declarations in which the expression is copied, using the More_Ids
5635       --  and Prev_Ids flags to remember the source form as described in the
5636       --  section on "Handling of Defining Identifier Lists".
5637
5638       --  N_Exception_Declaration
5639       --  Sloc points to EXCEPTION
5640       --  Defining_Identifier (Node1)
5641       --  Expression (Node3-Sem)
5642       --  Renaming_Exception (Node2-Sem)
5643       --  More_Ids (Flag5) (set to False if no more identifiers in list)
5644       --  Prev_Ids (Flag6) (set to False if no previous identifiers in list)
5645
5646       ------------------------------------------
5647       -- 11.2  Handled Sequence Of Statements --
5648       ------------------------------------------
5649
5650       --  HANDLED_SEQUENCE_OF_STATEMENTS ::=
5651       --      SEQUENCE_OF_STATEMENTS
5652       --    [exception
5653       --      EXCEPTION_HANDLER
5654       --      {EXCEPTION_HANDLER}]
5655       --    [at end
5656       --      cleanup_procedure_call (param, param, param, ...);]
5657
5658       --  The AT END phrase is a GNAT extension to provide for cleanups. It is
5659       --  used only internally currently, but is considered to be syntactic.
5660       --  At the moment, the only cleanup action allowed is a single call to
5661       --  a parameterless procedure, and the Identifier field of the node is
5662       --  the procedure to be called. Also there is a current restriction
5663       --  that exception handles and a cleanup cannot be present in the same
5664       --  frame, so at least one of Exception_Handlers or the Identifier must
5665       --  be missing.
5666
5667       --  Actually, more accurately, this restriction applies to the original
5668       --  source program. In the expanded tree, if the At_End_Proc field is
5669       --  present, then there will also be an exception handler of the form:
5670
5671       --     when all others =>
5672       --        cleanup;
5673       --        raise;
5674
5675       --  where cleanup is the procedure to be generated. The reason we do
5676       --  this is so that the front end can handle the necessary entries in
5677       --  the exception tables, and other exception handler actions required
5678       --  as part of the normal handling for exception handlers.
5679
5680       --  The AT END cleanup handler protects only the sequence of statements
5681       --  (not the associated declarations of the parent), just like exception
5682       --  handlers. The big difference is that the cleanup procedure is called
5683       --  on either a normal or an abnormal exit from the statement sequence.
5684
5685       --  Note: the list of Exception_Handlers can contain pragmas as well
5686       --  as actual handlers. In practice these pragmas can only occur at
5687       --  the start of the list, since any pragmas occurring later on will
5688       --  be included in the statement list of the corresponding handler.
5689
5690       --  Note: although in the Ada syntax, the sequence of statements in
5691       --  a handled sequence of statements can only contain statements, we
5692       --  allow free mixing of declarations and statements in the resulting
5693       --  expanded tree. This is for example used to deal with the case of
5694       --  a cleanup procedure that must handle declarations as well as the
5695       --  statements of a block.
5696
5697       --  N_Handled_Sequence_Of_Statements
5698       --  Sloc points to first token of first statement
5699       --  Statements (List3)
5700       --  End_Label (Node4) (set to Empty if expander generated)
5701       --  Exception_Handlers (List5) (set to No_List if none present)
5702       --  At_End_Proc (Node1) (set to Empty if no clean up procedure)
5703       --  First_Real_Statement (Node2-Sem)
5704       --  Zero_Cost_Handling (Flag5-Sem)
5705
5706       --  Note: the parent always contains a Declarations field which contains
5707       --  declarations associated with the handled sequence of statements. This
5708       --  is true even in the case of an accept statement (see description of
5709       --  the N_Accept_Statement node).
5710
5711       --  End_Label refers to the containing construct
5712
5713       -----------------------------
5714       -- 11.2  Exception Handler --
5715       -----------------------------
5716
5717       --  EXCEPTION_HANDLER ::=
5718       --    when [CHOICE_PARAMETER_SPECIFICATION :]
5719       --      EXCEPTION_CHOICE {| EXCEPTION_CHOICE} =>
5720       --        SEQUENCE_OF_STATEMENTS
5721
5722       --  Note: choice parameter specification is not allowed in Ada 83 mode
5723
5724       --  N_Exception_Handler
5725       --  Sloc points to WHEN
5726       --  Choice_Parameter (Node2) (set to Empty if not present)
5727       --  Exception_Choices (List4)
5728       --  Statements (List3)
5729       --  Exception_Label (Node5-Sem) (set to Empty of not present)
5730       --  Zero_Cost_Handling (Flag5-Sem)
5731       --  Local_Raise_Statements (Elist1-Sem) (set to No_Elist if not present)
5732       --  Local_Raise_Not_OK (Flag7-Sem)
5733       --  Has_Local_Raise (Flag8-Sem)
5734
5735       ------------------------------------------
5736       -- 11.2  Choice parameter specification --
5737       ------------------------------------------
5738
5739       --  CHOICE_PARAMETER_SPECIFICATION ::= DEFINING_IDENTIFIER
5740
5741       ----------------------------
5742       -- 11.2  Exception Choice --
5743       ----------------------------
5744
5745       --  EXCEPTION_CHOICE ::= exception_NAME | others
5746
5747       --  Except in the case of OTHERS, no explicit node appears in the tree
5748       --  for exception choice. Instead the exception name appears directly.
5749       --  An OTHERS choice is represented by a N_Others_Choice node (see
5750       --  section 3.8.1.
5751
5752       --  Note: for the exception choice created for an at end handler, the
5753       --  exception choice is an N_Others_Choice node with All_Others set.
5754
5755       ---------------------------
5756       -- 11.3  Raise Statement --
5757       ---------------------------
5758
5759       --  RAISE_STATEMENT ::= raise [exception_NAME];
5760
5761       --  In Ada 2005, we have
5762
5763       --  RAISE_STATEMENT ::= raise; | raise exception_NAME [with EXPRESSION];
5764
5765       --  N_Raise_Statement
5766       --  Sloc points to RAISE
5767       --  Name (Node2) (set to Empty if no exception name present)
5768       --  Expression (Node3) (set to Empty if no expression present)
5769       --  From_At_End (Flag4-Sem)
5770
5771       -------------------------------
5772       -- 12.1  Generic Declaration --
5773       -------------------------------
5774
5775       --  GENERIC_DECLARATION ::=
5776       --    GENERIC_SUBPROGRAM_DECLARATION | GENERIC_PACKAGE_DECLARATION
5777
5778       ------------------------------------------
5779       -- 12.1  Generic Subprogram Declaration --
5780       ------------------------------------------
5781
5782       --  GENERIC_SUBPROGRAM_DECLARATION ::=
5783       --    GENERIC_FORMAL_PART SUBPROGRAM_SPECIFICATION;
5784
5785       --  Note: Generic_Formal_Declarations can include pragmas
5786
5787       --  N_Generic_Subprogram_Declaration
5788       --  Sloc points to GENERIC
5789       --  Specification (Node1) subprogram specification
5790       --  Corresponding_Body (Node5-Sem)
5791       --  Generic_Formal_Declarations (List2) from generic formal part
5792       --  Parent_Spec (Node4-Sem)
5793
5794       ---------------------------------------
5795       -- 12.1  Generic Package Declaration --
5796       ---------------------------------------
5797
5798       --  GENERIC_PACKAGE_DECLARATION ::=
5799       --    GENERIC_FORMAL_PART PACKAGE_SPECIFICATION;
5800
5801       --  Note: when we do generics right, the Activation_Chain_Entity entry
5802       --  for this node can be removed (since the expander won't see generic
5803       --  units any more)???.
5804
5805       --  Note: Generic_Formal_Declarations can include pragmas
5806
5807       --  N_Generic_Package_Declaration
5808       --  Sloc points to GENERIC
5809       --  Specification (Node1) package specification
5810       --  Corresponding_Body (Node5-Sem)
5811       --  Generic_Formal_Declarations (List2) from generic formal part
5812       --  Parent_Spec (Node4-Sem)
5813       --  Activation_Chain_Entity (Node3-Sem)
5814
5815       -------------------------------
5816       -- 12.1  Generic Formal Part --
5817       -------------------------------
5818
5819       --  GENERIC_FORMAL_PART ::=
5820       --    generic {GENERIC_FORMAL_PARAMETER_DECLARATION | USE_CLAUSE}
5821
5822       ------------------------------------------------
5823       -- 12.1  Generic Formal Parameter Declaration --
5824       ------------------------------------------------
5825
5826       --  GENERIC_FORMAL_PARAMETER_DECLARATION ::=
5827       --    FORMAL_OBJECT_DECLARATION
5828       --  | FORMAL_TYPE_DECLARATION
5829       --  | FORMAL_SUBPROGRAM_DECLARATION
5830       --  | FORMAL_PACKAGE_DECLARATION
5831
5832       ---------------------------------
5833       -- 12.3  Generic Instantiation --
5834       ---------------------------------
5835
5836       --  GENERIC_INSTANTIATION ::=
5837       --    package DEFINING_PROGRAM_UNIT_NAME is
5838       --      new generic_package_NAME [GENERIC_ACTUAL_PART];
5839       --  | [[not] overriding]
5840       --    procedure DEFINING_PROGRAM_UNIT_NAME is
5841       --      new generic_procedure_NAME [GENERIC_ACTUAL_PART];
5842       --  | [[not] overriding]
5843       --    function DEFINING_DESIGNATOR is
5844       --      new generic_function_NAME [GENERIC_ACTUAL_PART];
5845
5846       --  N_Package_Instantiation
5847       --  Sloc points to PACKAGE
5848       --  Defining_Unit_Name (Node1)
5849       --  Name (Node2)
5850       --  Generic_Associations (List3) (set to No_List if no
5851       --   generic actual part)
5852       --  Parent_Spec (Node4-Sem)
5853       --  Instance_Spec (Node5-Sem)
5854       --  ABE_Is_Certain (Flag18-Sem)
5855
5856       --  N_Procedure_Instantiation
5857       --  Sloc points to PROCEDURE
5858       --  Defining_Unit_Name (Node1)
5859       --  Name (Node2)
5860       --  Parent_Spec (Node4-Sem)
5861       --  Generic_Associations (List3) (set to No_List if no
5862       --   generic actual part)
5863       --  Instance_Spec (Node5-Sem)
5864       --  Must_Override (Flag14) set if overriding indicator present
5865       --  Must_Not_Override (Flag15) set if not_overriding indicator present
5866       --  ABE_Is_Certain (Flag18-Sem)
5867
5868       --  N_Function_Instantiation
5869       --  Sloc points to FUNCTION
5870       --  Defining_Unit_Name (Node1)
5871       --  Name (Node2)
5872       --  Generic_Associations (List3) (set to No_List if no
5873       --   generic actual part)
5874       --  Parent_Spec (Node4-Sem)
5875       --  Instance_Spec (Node5-Sem)
5876       --  Must_Override (Flag14) set if overriding indicator present
5877       --  Must_Not_Override (Flag15) set if not_overriding indicator present
5878       --  ABE_Is_Certain (Flag18-Sem)
5879
5880       --  Note: overriding indicator is an Ada 2005 feature
5881
5882       -------------------------------
5883       -- 12.3  Generic Actual Part --
5884       -------------------------------
5885
5886       --  GENERIC_ACTUAL_PART ::=
5887       --    (GENERIC_ASSOCIATION {, GENERIC_ASSOCIATION})
5888
5889       -------------------------------
5890       -- 12.3  Generic Association --
5891       -------------------------------
5892
5893       --  GENERIC_ASSOCIATION ::=
5894       --    [generic_formal_parameter_SELECTOR_NAME =>]
5895
5896       --  Note: unlike the procedure call case, a generic association node
5897       --  is generated for every association, even if no formal parameter
5898       --  selector name is present. In this case the parser will leave the
5899       --  Selector_Name field set to Empty, to be filled in later by the
5900       --  semantic pass.
5901
5902       --  In Ada 2005, a formal may be associated with a box, if the
5903       --  association is part of the list of actuals for a formal package.
5904       --  If the association is given by  OTHERS => <>, the association is
5905       --  an N_Others_Choice.
5906
5907       --  N_Generic_Association
5908       --  Sloc points to first token of generic association
5909       --  Selector_Name (Node2) (set to Empty if no formal
5910       --   parameter selector name)
5911       --  Explicit_Generic_Actual_Parameter (Node1) (Empty if box present)
5912       --  Box_Present (Flag15) (for formal_package associations with a box)
5913
5914       ---------------------------------------------
5915       -- 12.3  Explicit Generic Actual Parameter --
5916       ---------------------------------------------
5917
5918       --  EXPLICIT_GENERIC_ACTUAL_PARAMETER ::=
5919       --    EXPRESSION      | variable_NAME   | subprogram_NAME
5920       --  | entry_NAME      | SUBTYPE_MARK    | package_instance_NAME
5921
5922       -------------------------------------
5923       -- 12.4  Formal Object Declaration --
5924       -------------------------------------
5925
5926       --  FORMAL_OBJECT_DECLARATION ::=
5927       --    DEFINING_IDENTIFIER_LIST :
5928       --      MODE [NULL_EXCLUSION] SUBTYPE_MARK [:= DEFAULT_EXPRESSION];
5929       --  | DEFINING_IDENTIFIER_LIST :
5930       --      MODE ACCESS_DEFINITION [:= DEFAULT_EXPRESSION];
5931
5932       --  Although the syntax allows multiple identifiers in the list, the
5933       --  semantics is as though successive declarations were given with
5934       --  identical type definition and expression components. To simplify
5935       --  semantic processing, the parser represents a multiple declaration
5936       --  case as a sequence of single declarations, using the More_Ids and
5937       --  Prev_Ids flags to preserve the original source form as described
5938       --  in the section on "Handling of Defining Identifier Lists".
5939
5940       --  N_Formal_Object_Declaration
5941       --  Sloc points to first identifier
5942       --  Defining_Identifier (Node1)
5943       --  In_Present (Flag15)
5944       --  Out_Present (Flag17)
5945       --  Null_Exclusion_Present (Flag11) (set to False if not present)
5946       --  Subtype_Mark (Node4) (set to Empty if not present)
5947       --  Access_Definition (Node3) (set to Empty if not present)
5948       --  Default_Expression (Node5) (set to Empty if no default expression)
5949       --  More_Ids (Flag5) (set to False if no more identifiers in list)
5950       --  Prev_Ids (Flag6) (set to False if no previous identifiers in list)
5951
5952       -----------------------------------
5953       -- 12.5  Formal Type Declaration --
5954       -----------------------------------
5955
5956       --  FORMAL_TYPE_DECLARATION ::=
5957       --    type DEFINING_IDENTIFIER [DISCRIMINANT_PART]
5958       --      is FORMAL_TYPE_DEFINITION;
5959
5960       --  N_Formal_Type_Declaration
5961       --  Sloc points to TYPE
5962       --  Defining_Identifier (Node1)
5963       --  Formal_Type_Definition (Node3)
5964       --  Discriminant_Specifications (List4) (set to No_List if no
5965       --   discriminant part)
5966       --  Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
5967
5968       ----------------------------------
5969       -- 12.5  Formal type definition --
5970       ----------------------------------
5971
5972       --  FORMAL_TYPE_DEFINITION ::=
5973       --    FORMAL_PRIVATE_TYPE_DEFINITION
5974       --  | FORMAL_DERIVED_TYPE_DEFINITION
5975       --  | FORMAL_DISCRETE_TYPE_DEFINITION
5976       --  | FORMAL_SIGNED_INTEGER_TYPE_DEFINITION
5977       --  | FORMAL_MODULAR_TYPE_DEFINITION
5978       --  | FORMAL_FLOATING_POINT_DEFINITION
5979       --  | FORMAL_ORDINARY_FIXED_POINT_DEFINITION
5980       --  | FORMAL_DECIMAL_FIXED_POINT_DEFINITION
5981       --  | FORMAL_ARRAY_TYPE_DEFINITION
5982       --  | FORMAL_ACCESS_TYPE_DEFINITION
5983       --  | FORMAL_INTERFACE_TYPE_DEFINITION
5984
5985       ---------------------------------------------
5986       -- 12.5.1  Formal Private Type Definition --
5987       ---------------------------------------------
5988
5989       --  FORMAL_PRIVATE_TYPE_DEFINITION ::=
5990       --    [[abstract] tagged] [limited] private
5991
5992       --  Note: TAGGED is not allowed in Ada 83 mode
5993
5994       --  N_Formal_Private_Type_Definition
5995       --  Sloc points to PRIVATE
5996       --  Abstract_Present (Flag4)
5997       --  Tagged_Present (Flag15)
5998       --  Limited_Present (Flag17)
5999
6000       --------------------------------------------
6001       -- 12.5.1  Formal Derived Type Definition --
6002       --------------------------------------------
6003
6004       --  FORMAL_DERIVED_TYPE_DEFINITION ::=
6005       --    [abstract] [limited | synchronized]
6006       --       new SUBTYPE_MARK [[and INTERFACE_LIST] with private]
6007       --  Note: this construct is not allowed in Ada 83 mode
6008
6009       --  N_Formal_Derived_Type_Definition
6010       --  Sloc points to NEW
6011       --  Subtype_Mark (Node4)
6012       --  Private_Present (Flag15)
6013       --  Abstract_Present (Flag4)
6014       --  Limited_Present (Flag17)
6015       --  Synchronized_Present (Flag7)
6016       --  Interface_List (List2) (set to No_List if none)
6017
6018       ---------------------------------------------
6019       -- 12.5.2  Formal Discrete Type Definition --
6020       ---------------------------------------------
6021
6022       --  FORMAL_DISCRETE_TYPE_DEFINITION ::= (<>)
6023
6024       --  N_Formal_Discrete_Type_Definition
6025       --  Sloc points to (
6026
6027       ---------------------------------------------------
6028       -- 12.5.2  Formal Signed Integer Type Definition --
6029       ---------------------------------------------------
6030
6031       --  FORMAL_SIGNED_INTEGER_TYPE_DEFINITION ::= range <>
6032
6033       --  N_Formal_Signed_Integer_Type_Definition
6034       --  Sloc points to RANGE
6035
6036       --------------------------------------------
6037       -- 12.5.2  Formal Modular Type Definition --
6038       --------------------------------------------
6039
6040       --  FORMAL_MODULAR_TYPE_DEFINITION ::= mod <>
6041
6042       --  N_Formal_Modular_Type_Definition
6043       --  Sloc points to MOD
6044
6045       ----------------------------------------------
6046       -- 12.5.2  Formal Floating Point Definition --
6047       ----------------------------------------------
6048
6049       --  FORMAL_FLOATING_POINT_DEFINITION ::= digits <>
6050
6051       --  N_Formal_Floating_Point_Definition
6052       --  Sloc points to DIGITS
6053
6054       ----------------------------------------------------
6055       -- 12.5.2  Formal Ordinary Fixed Point Definition --
6056       ----------------------------------------------------
6057
6058       --  FORMAL_ORDINARY_FIXED_POINT_DEFINITION ::= delta <>
6059
6060       --  N_Formal_Ordinary_Fixed_Point_Definition
6061       --  Sloc points to DELTA
6062
6063       ---------------------------------------------------
6064       -- 12.5.2  Formal Decimal Fixed Point Definition --
6065       ---------------------------------------------------
6066
6067       --  FORMAL_DECIMAL_FIXED_POINT_DEFINITION ::= delta <> digits <>
6068
6069       --  Note: formal decimal fixed point definition not allowed in Ada 83
6070
6071       --  N_Formal_Decimal_Fixed_Point_Definition
6072       --  Sloc points to DELTA
6073
6074       ------------------------------------------
6075       -- 12.5.3  Formal Array Type Definition --
6076       ------------------------------------------
6077
6078       --  FORMAL_ARRAY_TYPE_DEFINITION ::= ARRAY_TYPE_DEFINITION
6079
6080       -------------------------------------------
6081       -- 12.5.4  Formal Access Type Definition --
6082       -------------------------------------------
6083
6084       --  FORMAL_ACCESS_TYPE_DEFINITION ::= ACCESS_TYPE_DEFINITION
6085
6086       ----------------------------------------------
6087       -- 12.5.5  Formal Interface Type Definition --
6088       ----------------------------------------------
6089
6090       --  FORMAL_INTERFACE_TYPE_DEFINITION ::= INTERFACE_TYPE_DEFINITION
6091
6092       -----------------------------------------
6093       -- 12.6  Formal Subprogram Declaration --
6094       -----------------------------------------
6095
6096       --  FORMAL_SUBPROGRAM_DECLARATION ::=
6097       --    FORMAL_CONCRETE_SUBPROGRAM_DECLARATION
6098       --  | FORMAL_ABSTRACT_SUBPROGRAM_DECLARATION
6099
6100       --------------------------------------------------
6101       -- 12.6  Formal Concrete Subprogram Declaration --
6102       --------------------------------------------------
6103
6104       --  FORMAL_CONCRETE_SUBPROGRAM_DECLARATION ::=
6105       --    with SUBPROGRAM_SPECIFICATION [is SUBPROGRAM_DEFAULT];
6106
6107       --  N_Formal_Concrete_Subprogram_Declaration
6108       --  Sloc points to WITH
6109       --  Specification (Node1)
6110       --  Default_Name (Node2) (set to Empty if no subprogram default)
6111       --  Box_Present (Flag15)
6112
6113       --  Note: if no subprogram default is present, then Name is set
6114       --  to Empty, and Box_Present is False.
6115
6116       --------------------------------------------------
6117       -- 12.6  Formal Abstract Subprogram Declaration --
6118       --------------------------------------------------
6119
6120       --  FORMAL_ABSTRACT_SUBPROGRAM_DECLARATION ::=
6121       --    with SUBPROGRAM_SPECIFICATION is abstract [SUBPROGRAM_DEFAULT];
6122
6123       --  N_Formal_Abstract_Subprogram_Declaration
6124       --  Sloc points to WITH
6125       --  Specification (Node1)
6126       --  Default_Name (Node2) (set to Empty if no subprogram default)
6127       --  Box_Present (Flag15)
6128
6129       --  Note: if no subprogram default is present, then Name is set
6130       --  to Empty, and Box_Present is False.
6131
6132       ------------------------------
6133       -- 12.6  Subprogram Default --
6134       ------------------------------
6135
6136       --  SUBPROGRAM_DEFAULT ::= DEFAULT_NAME | <>
6137
6138       --  There is no separate node in the tree for a subprogram default.
6139       --  Instead the parent (N_Formal_Concrete_Subprogram_Declaration
6140       --  or N_Formal_Abstract_Subprogram_Declaration) node contains the
6141       --  default name or box indication, as needed.
6142
6143       ------------------------
6144       -- 12.6  Default Name --
6145       ------------------------
6146
6147       --  DEFAULT_NAME ::= NAME
6148
6149       --------------------------------------
6150       -- 12.7  Formal Package Declaration --
6151       --------------------------------------
6152
6153       --  FORMAL_PACKAGE_DECLARATION ::=
6154       --    with package DEFINING_IDENTIFIER
6155       --      is new generic_package_NAME FORMAL_PACKAGE_ACTUAL_PART;
6156
6157       --  Note: formal package declarations not allowed in Ada 83 mode
6158
6159       --  N_Formal_Package_Declaration
6160       --  Sloc points to WITH
6161       --  Defining_Identifier (Node1)
6162       --  Name (Node2)
6163       --  Generic_Associations (List3) (set to No_List if (<>) case or
6164       --   empty generic actual part)
6165       --  Box_Present (Flag15)
6166       --  Instance_Spec (Node5-Sem)
6167       --  ABE_Is_Certain (Flag18-Sem)
6168
6169       --------------------------------------
6170       -- 12.7  Formal Package Actual Part --
6171       --------------------------------------
6172
6173       --  FORMAL_PACKAGE_ACTUAL_PART ::=
6174       --    ([OTHERS] => <>)
6175       --    | [GENERIC_ACTUAL_PART]
6176       --    (FORMAL_PACKAGE_ASSOCIATION {. FORMAL_PACKAGE_ASSOCIATION}
6177
6178       --  FORMAL_PACKAGE_ASSOCIATION ::=
6179       --   GENERIC_ASSOCIATION
6180       --  | GENERIC_FORMAL_PARAMETER_SELECTOR_NAME => <>
6181
6182       --  There is no explicit node in the tree for a formal package actual
6183       --  part. Instead the information appears in the parent node (i.e. the
6184       --  formal package declaration node itself).
6185
6186       --  There is no explicit node for a formal package association. All of
6187       --  them are represented either by a generic association, possibly with
6188       --  Box_Present, or by an N_Others_Choice.
6189
6190       ---------------------------------
6191       -- 13.1  Representation clause --
6192       ---------------------------------
6193
6194       --  REPRESENTATION_CLAUSE ::=
6195       --    ATTRIBUTE_DEFINITION_CLAUSE
6196       --  | ENUMERATION_REPRESENTATION_CLAUSE
6197       --  | RECORD_REPRESENTATION_CLAUSE
6198       --  | AT_CLAUSE
6199
6200       ----------------------
6201       -- 13.1  Local Name --
6202       ----------------------
6203
6204       --  LOCAL_NAME :=
6205       --    DIRECT_NAME
6206       --  | DIRECT_NAME'ATTRIBUTE_DESIGNATOR
6207       --  | library_unit_NAME
6208
6209       --  The construct DIRECT_NAME'ATTRIBUTE_DESIGNATOR appears in the tree
6210       --  as an attribute reference, which has essentially the same form.
6211
6212       ---------------------------------------
6213       -- 13.3  Attribute definition clause --
6214       ---------------------------------------
6215
6216       --  ATTRIBUTE_DEFINITION_CLAUSE ::=
6217       --    for LOCAL_NAME'ATTRIBUTE_DESIGNATOR use EXPRESSION;
6218       --  | for LOCAL_NAME'ATTRIBUTE_DESIGNATOR use NAME;
6219
6220       --  In Ada 83, the expression must be a simple expression and the
6221       --  local name must be a direct name.
6222
6223       --  Note: the only attribute definition clause that is processed by
6224       --  gigi is an address clause. For all other cases, the information
6225       --  is extracted by the front end and either results in setting entity
6226       --  information, e.g. Esize for the Size clause, or in appropriate
6227       --  expansion actions (e.g. in the case of Storage_Size).
6228
6229       --  For an address clause, Gigi constructs the appropriate addressing
6230       --  code. It also ensures that no aliasing optimizations are made
6231       --  for the object for which the address clause appears.
6232
6233       --  Note: for an address clause used to achieve an overlay:
6234
6235       --    A : Integer;
6236       --    B : Integer;
6237       --    for B'Address use A'Address;
6238
6239       --  the above rule means that Gigi will ensure that no optimizations
6240       --  will be made for B that would violate the implementation advice
6241       --  of RM 13.3(19). However, this advice applies only to B and not
6242       --  to A, which seems unfortunate. The GNAT front end will mark the
6243       --  object A as volatile to also prevent unwanted optimization
6244       --  assumptions based on no aliasing being made for B.
6245
6246       --  N_Attribute_Definition_Clause
6247       --  Sloc points to FOR
6248       --  Name (Node2) the local name
6249       --  Chars (Name1) the identifier name from the attribute designator
6250       --  Expression (Node3) the expression or name
6251       --  Entity (Node4-Sem)
6252       --  Next_Rep_Item (Node5-Sem)
6253       --  From_At_Mod (Flag4-Sem)
6254       --  Check_Address_Alignment (Flag11-Sem)
6255       --  Address_Warning_Posted (Flag18-Sem)
6256
6257       ---------------------------------------------
6258       -- 13.4  Enumeration representation clause --
6259       ---------------------------------------------
6260
6261       --  ENUMERATION_REPRESENTATION_CLAUSE ::=
6262       --    for first_subtype_LOCAL_NAME use ENUMERATION_AGGREGATE;
6263
6264       --  In Ada 83, the name must be a direct name
6265
6266       --  N_Enumeration_Representation_Clause
6267       --  Sloc points to FOR
6268       --  Identifier (Node1) direct name
6269       --  Array_Aggregate (Node3)
6270       --  Next_Rep_Item (Node5-Sem)
6271
6272       ---------------------------------
6273       -- 13.4  Enumeration aggregate --
6274       ---------------------------------
6275
6276       --  ENUMERATION_AGGREGATE ::= ARRAY_AGGREGATE
6277
6278       ------------------------------------------
6279       -- 13.5.1  Record representation clause --
6280       ------------------------------------------
6281
6282       --  RECORD_REPRESENTATION_CLAUSE ::=
6283       --    for first_subtype_LOCAL_NAME use
6284       --      record [MOD_CLAUSE]
6285       --        {COMPONENT_CLAUSE}
6286       --      end record;
6287
6288       --  Gigi restriction: Mod_Clause is always Empty (if present it is
6289       --  replaced by a corresponding Alignment attribute definition clause).
6290
6291       --  Note: Component_Clauses can include pragmas
6292
6293       --  N_Record_Representation_Clause
6294       --  Sloc points to FOR
6295       --  Identifier (Node1) direct name
6296       --  Mod_Clause (Node2) (set to Empty if no mod clause present)
6297       --  Component_Clauses (List3)
6298       --  Next_Rep_Item (Node5-Sem)
6299
6300       ------------------------------
6301       -- 13.5.1  Component clause --
6302       ------------------------------
6303
6304       --  COMPONENT_CLAUSE ::=
6305       --    component_LOCAL_NAME at POSITION
6306       --      range FIRST_BIT .. LAST_BIT;
6307
6308       --  N_Component_Clause
6309       --  Sloc points to AT
6310       --  Component_Name (Node1) points to Name or Attribute_Reference
6311       --  Position (Node2)
6312       --  First_Bit (Node3)
6313       --  Last_Bit (Node4)
6314
6315       ----------------------
6316       -- 13.5.1  Position --
6317       ----------------------
6318
6319       --  POSITION ::= static_EXPRESSION
6320
6321       -----------------------
6322       -- 13.5.1  First_Bit --
6323       -----------------------
6324
6325       --  FIRST_BIT ::= static_SIMPLE_EXPRESSION
6326
6327       ----------------------
6328       -- 13.5.1  Last_Bit --
6329       ----------------------
6330
6331       --  LAST_BIT ::= static_SIMPLE_EXPRESSION
6332
6333       --------------------------
6334       -- 13.8  Code statement --
6335       --------------------------
6336
6337       --  CODE_STATEMENT ::= QUALIFIED_EXPRESSION;
6338
6339       --  Note: in GNAT, the qualified expression has the form
6340
6341       --    Asm_Insn'(Asm (...));
6342
6343       --  See package System.Machine_Code in file s-maccod.ads for details on
6344       --  the allowed parameters to Asm. There are two ways this node can
6345       --  arise, as a code statement, in which case the expression is the
6346       --  qualified expression, or as a result of the expansion of an intrinsic
6347       --  call to the Asm or Asm_Input procedure.
6348
6349       --  N_Code_Statement
6350       --  Sloc points to first token of the expression
6351       --  Expression (Node3)
6352
6353       --  Note: package Exp_Code contains an abstract functional interface
6354       --  for use by Gigi in accessing the data from N_Code_Statement nodes.
6355
6356       ------------------------
6357       -- 13.12  Restriction --
6358       ------------------------
6359
6360       --  RESTRICTION ::=
6361       --    restriction_IDENTIFIER
6362       --  | restriction_parameter_IDENTIFIER => EXPRESSION
6363
6364       --  There is no explicit node for restrictions. Instead the restriction
6365       --  appears in normal pragma syntax as a pragma argument association,
6366       --  which has the same syntactic form.
6367
6368       --------------------------
6369       -- B.2  Shift Operators --
6370       --------------------------
6371
6372       --  Calls to the intrinsic shift functions are converted to one of
6373       --  the following shift nodes, which have the form of normal binary
6374       --  operator names. Note that for a given shift operation, one node
6375       --  covers all possible types, as for normal operators.
6376
6377       --  Note: it is perfectly permissible for the expander to generate
6378       --  shift operation nodes directly, in which case they will be analyzed
6379       --  and parsed in the usual manner.
6380
6381       --  Sprint syntax: shift-function-name!(expr, count)
6382
6383       --  Note: the Left_Opnd field holds the first argument (the value to
6384       --  be shifted). The Right_Opnd field holds the second argument (the
6385       --  shift count). The Chars field is the name of the intrinsic function.
6386
6387       --  N_Op_Rotate_Left
6388       --  Sloc points to the function name
6389       --  plus fields for binary operator
6390       --  plus fields for expression
6391       --  Shift_Count_OK (Flag4-Sem)
6392
6393       --  N_Op_Rotate_Right
6394       --  Sloc points to the function name
6395       --  plus fields for binary operator
6396       --  plus fields for expression
6397       --  Shift_Count_OK (Flag4-Sem)
6398
6399       --  N_Op_Shift_Left
6400       --  Sloc points to the function name
6401       --  plus fields for binary operator
6402       --  plus fields for expression
6403       --  Shift_Count_OK (Flag4-Sem)
6404
6405       --  N_Op_Shift_Right_Arithmetic
6406       --  Sloc points to the function name
6407       --  plus fields for binary operator
6408       --  plus fields for expression
6409       --  Shift_Count_OK (Flag4-Sem)
6410
6411       --  N_Op_Shift_Right
6412       --  Sloc points to the function name
6413       --  plus fields for binary operator
6414       --  plus fields for expression
6415       --  Shift_Count_OK (Flag4-Sem)
6416
6417    --------------------------
6418    -- Obsolescent Features --
6419    --------------------------
6420
6421       --  The syntax descriptions and tree nodes for obsolescent features are
6422       --  grouped together, corresponding to their location in appendix I in
6423       --  the RM. However, parsing and semantic analysis for these constructs
6424       --  is located in an appropriate chapter (see individual notes).
6425
6426       ---------------------------
6427       -- J.3  Delta Constraint --
6428       ---------------------------
6429
6430       --  Note: the parse routine for this construct is located in section
6431       --  3.5.9 of Par-Ch3, and semantic analysis is in Sem_Ch3, which is
6432       --  where delta constraint logically belongs.
6433
6434       --  DELTA_CONSTRAINT ::= DELTA static_EXPRESSION [RANGE_CONSTRAINT]
6435
6436       --  N_Delta_Constraint
6437       --  Sloc points to DELTA
6438       --  Delta_Expression (Node3)
6439       --  Range_Constraint (Node4) (set to Empty if not present)
6440
6441       --------------------
6442       -- J.7  At Clause --
6443       --------------------
6444
6445       --  AT_CLAUSE ::= for DIRECT_NAME use at EXPRESSION;
6446
6447       --  Note: the parse routine for this construct is located in Par-Ch13,
6448       --  and the semantic analysis is in Sem_Ch13, where at clause logically
6449       --  belongs if it were not obsolescent.
6450
6451       --  Note: in Ada 83 the expression must be a simple expression
6452
6453       --  Gigi restriction: This node never appears, it is rewritten as an
6454       --  address attribute definition clause.
6455
6456       --  N_At_Clause
6457       --  Sloc points to FOR
6458       --  Identifier (Node1)
6459       --  Expression (Node3)
6460
6461       ---------------------
6462       -- J.8  Mod clause --
6463       ---------------------
6464
6465       --  MOD_CLAUSE ::= at mod static_EXPRESSION;
6466
6467       --  Note: the parse routine for this construct is located in Par-Ch13,
6468       --  and the semantic analysis is in Sem_Ch13, where mod clause logically
6469       --  belongs if it were not obsolescent.
6470
6471       --  Note: in Ada 83, the expression must be a simple expression
6472
6473       --  Gigi restriction: this node never appears. It is replaced
6474       --  by a corresponding Alignment attribute definition clause.
6475
6476       --  Note: pragmas can appear before and after the MOD_CLAUSE since
6477       --  its name has "clause" in it. This is rather strange, but is quite
6478       --  definitely specified. The pragmas before are collected in the
6479       --  Pragmas_Before field of the mod clause node itself, and pragmas
6480       --  after are simply swallowed up in the list of component clauses.
6481
6482       --  N_Mod_Clause
6483       --  Sloc points to AT
6484       --  Expression (Node3)
6485       --  Pragmas_Before (List4) Pragmas before mod clause (No_List if none)
6486
6487    --------------------
6488    -- Semantic Nodes --
6489    --------------------
6490
6491    --  These semantic nodes are used to hold additional semantic information.
6492    --  They are inserted into the tree as a result of semantic processing.
6493    --  Although there are no legitimate source syntax constructions that
6494    --  correspond directly to these nodes, we need a source syntax for the
6495    --  reconstructed tree printed by Sprint, and the node descriptions here
6496    --  show this syntax.
6497
6498    --  Note: Conditional_Expression is in this section for historical reasons.
6499    --  We will move it to its appropriate place when it is officially approved
6500    --  as an extension (and then we will know what the exact grammar and place
6501    --  in the Reference Manual is!)
6502
6503       ----------------------------
6504       -- Conditional Expression --
6505       ----------------------------
6506
6507       --  This node is used to represent an expression corresponding to the
6508       --  C construct (condition ? then-expression : else_expression), where
6509       --  Expressions is a three element list, whose first expression is the
6510       --  condition, and whose second and third expressions are the then and
6511       --  else expressions respectively.
6512
6513       --  Note: the Then_Actions and Else_Actions fields are always set to
6514       --  No_List in the tree passed to Gigi. These fields are used only
6515       --  for temporary processing purposes in the expander.
6516
6517       --  The Ada language does not permit conditional expressions, however
6518       --  this is under discussion as a possible extension by the ARG, and we
6519       --  have implemented a form of this capability in GNAT under control of
6520       --  the -gnatX switch. The syntax is:
6521
6522       --  CONDITIONAL_EXPRESSION ::=
6523       --    if EXPRESSION then EXPRESSION
6524       --                  {elsif EXPRESSION then EXPRESSION}
6525       --                  [else EXPRESSION]
6526
6527       --  And we add the additional constructs
6528
6529       --  PRIMARY ::= ( CONDITIONAL_EXPRESION )
6530       --  PRAGMA_ARGUMENT_ASSOCIATION ::= CONDITIONAL_EXPRESSION
6531
6532       --  Note: if we have (IF x1 THEN x2 ELSIF x3 THEN x4 ELSE x5) then it
6533       --  is represented as (IF x1 THEN x2 ELSE (IF x3 THEN x4 ELSE x5)) and
6534       --  the Is_Elsif flag is set on the inner conditional expression.
6535
6536       --  N_Conditional_Expression
6537       --  Sloc points to IF or ELSIF keyword
6538       --  Expressions (List1)
6539       --  Then_Actions (List2-Sem)
6540       --  Else_Actions (List3-Sem)
6541       --  Is_Elsif (Flag13) (set if comes from ELSIF)
6542       --  plus fields for expression
6543
6544       -------------------
6545       -- Expanded_Name --
6546       -------------------
6547
6548       --  The N_Expanded_Name node is used to represent a selected component
6549       --  name that has been resolved to an expanded name. The semantic phase
6550       --  replaces N_Selected_Component nodes that represent names by the use
6551       --  of this node, leaving the N_Selected_Component node used only when
6552       --  the prefix is a record or protected type.
6553
6554       --  The fields of the N_Expanded_Name node are layed out identically
6555       --  to those of the N_Selected_Component node, allowing conversion of
6556       --  an expanded name node to a selected component node to be done
6557       --  easily, see Sinfo.CN.Change_Selected_Component_To_Expanded_Name.
6558
6559       --  There is no special sprint syntax for an expanded name
6560
6561       --  N_Expanded_Name
6562       --  Sloc points to the period
6563       --  Chars (Name1) copy of Chars field of selector name
6564       --  Prefix (Node3)
6565       --  Selector_Name (Node2)
6566       --  Entity (Node4-Sem)
6567       --  Associated_Node (Node4-Sem)
6568       --  Redundant_Use (Flag13-Sem)
6569       --  Has_Private_View (Flag11-Sem) set in generic units.
6570       --  plus fields for expression
6571
6572       --------------------
6573       -- Free Statement --
6574       --------------------
6575
6576       --  The N_Free_Statement node is generated as a result of a call to an
6577       --  instantiation of Unchecked_Deallocation. The instantiation of this
6578       --  generic is handled specially and generates this node directly.
6579
6580       --  Sprint syntax: free expression
6581
6582       --  N_Free_Statement
6583       --  Sloc is copied from the unchecked deallocation call
6584       --  Expression (Node3) argument to unchecked deallocation call
6585       --  Storage_Pool (Node1-Sem)
6586       --  Procedure_To_Call (Node2-Sem)
6587       --  Actual_Designated_Subtype (Node4-Sem)
6588
6589       --  Note: in the case where a debug source file is generated, the Sloc
6590       --  for this node points to the FREE keyword in the Sprint file output.
6591
6592       -------------------
6593       -- Freeze Entity --
6594       -------------------
6595
6596       --  This node marks the point in a declarative part at which an entity
6597       --  declared therein becomes frozen. The expander places initialization
6598       --  procedures for types at those points. Gigi uses the freezing point
6599       --  to elaborate entities that may depend on previous private types.
6600
6601       --  See the section in Einfo "Delayed Freezing and Elaboration" for
6602       --  a full description of the use of this node.
6603
6604       --  The Entity field points back to the entity for the type (whose
6605       --  Freeze_Node field points back to this freeze node).
6606
6607       --  The Actions field contains a list of declarations and statements
6608       --  generated by the expander which are associated with the freeze
6609       --  node, and are elaborated as though the freeze node were replaced
6610       --  by this sequence of actions.
6611
6612       --  Note: the Sloc field in the freeze node references a construct
6613       --  associated with the freezing point. This is used for posting
6614       --  messages in some error/warning situations, e.g. the case where
6615       --  a primitive operation of a tagged type is declared too late.
6616
6617       --  Sprint syntax: freeze entity-name [
6618       --                   freeze actions
6619       --                 ]
6620
6621       --  N_Freeze_Entity
6622       --  Sloc points near freeze point (see above special note)
6623       --  Entity (Node4-Sem)
6624       --  Access_Types_To_Process (Elist2-Sem) (set to No_Elist if none)
6625       --  TSS_Elist (Elist3-Sem) (set to No_Elist if no associated TSS's)
6626       --  Actions (List1) (set to No_List if no freeze actions)
6627       --  First_Subtype_Link (Node5-Sem) (set to Empty if no link)
6628
6629       --  The Actions field holds actions associated with the freeze. These
6630       --  actions are elaborated at the point where the type is frozen.
6631
6632       --  Note: in the case where a debug source file is generated, the Sloc
6633       --  for this node points to the FREEZE keyword in the Sprint file output.
6634
6635       --------------------------------
6636       -- Implicit Label Declaration --
6637       --------------------------------
6638
6639       --  An implicit label declaration is created for every occurrence of a
6640       --  label on a statement or a label on a block or loop. It is chained
6641       --  in the declarations of the innermost enclosing block as specified
6642       --  in RM section 5.1 (3).
6643
6644       --  The Defining_Identifier is the actual identifier for the statement
6645       --  identifier. Note that the occurrence of the label is a reference, NOT
6646       --  the defining occurrence. The defining occurrence occurs at the head
6647       --  of the innermost enclosing block, and is represented by this node.
6648
6649       --  Note: from the grammar, this might better be called an implicit
6650       --  statement identifier declaration, but the term we choose seems
6651       --  friendlier, since at least informally statement identifiers are
6652       --  called labels in both cases (i.e. when used in labels, and when
6653       --  used as the identifiers of blocks and loops).
6654
6655       --  Note: although this is logically a semantic node, since it does not
6656       --  correspond directly to a source syntax construction, these nodes are
6657       --  actually created by the parser in a post pass done just after parsing
6658       --  is complete, before semantic analysis is started (see Par.Labl).
6659
6660       --  Sprint syntax: labelname : label;
6661
6662       --  N_Implicit_Label_Declaration
6663       --  Sloc points to the << of the label
6664       --  Defining_Identifier (Node1)
6665       --  Label_Construct (Node2-Sem)
6666
6667       --  Note: in the case where a debug source file is generated, the Sloc
6668       --  for this node points to the label name in the generated declaration.
6669
6670       ---------------------
6671       -- Itype_Reference --
6672       ---------------------
6673
6674       --  This node is used to create a reference to an Itype. The only purpose
6675       --  is to make sure the Itype is defined if this is the first reference.
6676
6677       --  A typical use of this node is when an Itype is to be referenced in
6678       --  two branches of an IF statement. In this case it is important that
6679       --  the first use of the Itype not be inside the conditional, since then
6680       --  it might not be defined if the other branch of the IF is taken, in
6681       --  the case where the definition generates elaboration code.
6682
6683       --  The Itype field points to the referenced Itype
6684
6685       --  Sprint syntax: reference itype-name
6686
6687       --  N_Itype_Reference
6688       --  Sloc points to the node generating the reference
6689       --  Itype (Node1-Sem)
6690
6691       --  Note: in the case where a debug source file is generated, the Sloc
6692       --  for this node points to the REFERENCE keyword in the file output.
6693
6694       ---------------------
6695       -- Raise_xxx_Error --
6696       ---------------------
6697
6698       --  One of these nodes is created during semantic analysis to replace
6699       --  a node for an expression that is determined to definitely raise
6700       --  the corresponding exception.
6701
6702       --  The N_Raise_xxx_Error node may also stand alone in place
6703       --  of a declaration or statement, in which case it simply causes
6704       --  the exception to be raised (i.e. it is equivalent to a raise
6705       --  statement that raises the corresponding exception). This use
6706       --  is distinguished by the fact that the Etype in this case is
6707       --  Standard_Void_Type, In the subexpression case, the Etype is the
6708       --  same as the type of the subexpression which it replaces.
6709
6710       --  If Condition is empty, then the raise is unconditional. If the
6711       --  Condition field is non-empty, it is a boolean expression which
6712       --  is first evaluated, and the exception is raised only if the
6713       --  value of the expression is True. In the unconditional case, the
6714       --  creation of this node is usually accompanied by a warning message
6715       --  error. The creation of this node will usually be accompanied by a
6716       --  message (unless it appears within the right operand of a short
6717       --  circuit form whose left argument is static and decisively
6718       --  eliminates elaboration of the raise operation. The condition field
6719       --  can ONLY be present when the node is used as a statement form, it
6720       --  may NOT be present in the case where the node appears within an
6721       --  expression.
6722
6723       --  The exception is generated with a message that contains the
6724       --  file name and line number, and then appended text. The Reason
6725       --  code shows the text to be added. The Reason code is an element
6726       --  of the type Types.RT_Exception_Code, and indicates both the
6727       --  message to be added, and the exception to be raised (which must
6728       --  match the node type). The value is stored by storing a Uint which
6729       --  is the Pos value of the enumeration element in this type.
6730
6731       --  Gigi restriction: This expander ensures that the type of the
6732       --  Condition field is always Standard.Boolean, even if the type
6733       --  in the source is some non-standard boolean type.
6734
6735       --  Sprint syntax: [xxx_error "msg"]
6736       --             or: [xxx_error when condition "msg"]
6737
6738       --  N_Raise_Constraint_Error
6739       --  Sloc references related construct
6740       --  Condition (Node1) (set to Empty if no condition)
6741       --  Reason (Uint3)
6742       --  plus fields for expression
6743
6744       --  N_Raise_Program_Error
6745       --  Sloc references related construct
6746       --  Condition (Node1) (set to Empty if no condition)
6747       --  Reason (Uint3)
6748       --  plus fields for expression
6749
6750       --  N_Raise_Storage_Error
6751       --  Sloc references related construct
6752       --  Condition (Node1) (set to Empty if no condition)
6753       --  Reason (Uint3)
6754       --  plus fields for expression
6755
6756       --  Note: Sloc is copied from the expression generating the exception.
6757       --  In the case where a debug source file is generated, the Sloc for
6758       --  this node points to the left bracket in the Sprint file output.
6759
6760       --  Note: the back end may be required to translate these nodes into
6761       --  appropriate goto statements. See description of N_Push/Pop_xxx_Label.
6762
6763       ---------------------------------------------
6764       -- Optimization of Exception Raise to Goto --
6765       ---------------------------------------------
6766
6767       --  In some cases, the front end will determine that any exception raised
6768       --  by the back end for a certain exception should be transformed into a
6769       --  goto statement.
6770
6771       --  There are three kinds of exceptions raised by the back end (note that
6772       --  for this purpose we consider gigi to be part of the back end in the
6773       --  gcc case):
6774
6775       --     1. Exceptions resulting from N_Raise_xxx_Error nodes
6776       --     2. Exceptions from checks triggered by Do_xxx_Check flags
6777       --     3. Other cases not specifically marked by the front end
6778
6779       --  Normally all such exceptions are translated into calls to the proper
6780       --  Rcheck_xx procedure, where xx encodes both the exception to be raised
6781       --  and the exception message.
6782
6783       --  The front end may determine that for a particular sequence of code,
6784       --  exceptions in any of these three categories for a particular builtin
6785       --  exception should result in a goto, rather than a call to Rcheck_xx.
6786       --  The exact sequence to be generated is:
6787
6788       --      Local_Raise (exception'Identity);
6789       --      goto Label
6790
6791       --  The front end marks such a sequence of code by bracketing it with
6792       --  push and pop nodes:
6793
6794       --       N_Push_xxx_Label (referencing the label)
6795       --       ...
6796       --       (code where transformation is expected for exception xxx)
6797       --       ...
6798       --       N_Pop_xxx_Label
6799
6800       --  The use of push/pop reflects the fact that such regions can properly
6801       --  nest, and one special case is a subregion in which no transformation
6802       --  is allowed. Such a region is marked by a N_Push_xxx_Label node whose
6803       --  Exception_Label field is Empty.
6804
6805       --  N_Push_Constraint_Error_Label
6806       --  Sloc references first statement in region covered
6807       --  Exception_Label (Node5-Sem)
6808
6809       --  N_Push_Program_Error_Label
6810       --  Sloc references first statement in region covered
6811       --  Exception_Label (Node5-Sem)
6812
6813       --  N_Push_Storage_Error_Label
6814       --  Sloc references first statement in region covered
6815       --  Exception_Label (Node5-Sem)
6816
6817       --  N_Pop_Constraint_Error_Label
6818       --  Sloc references last statement in region covered
6819
6820       --  N_Pop_Program_Error_Label
6821       --  Sloc references last statement in region covered
6822
6823       --  N_Pop_Storage_Error_Label
6824       --  Sloc references last statement in region covered
6825
6826       ---------------
6827       -- Reference --
6828       ---------------
6829
6830       --  For a number of purposes, we need to construct references to objects.
6831       --  These references are subsequently treated as normal access values.
6832       --  An example is the construction of the parameter block passed to a
6833       --  task entry. The N_Reference node is provided for this purpose. It is
6834       --  similar in effect to the use of the Unrestricted_Access attribute,
6835       --  and like Unrestricted_Access can be applied to objects which would
6836       --  not be valid prefixes for the Unchecked_Access attribute (e.g.
6837       --  objects which are not aliased, and slices). In addition it can be
6838       --  applied to composite type values as well as objects, including string
6839       --  values and aggregates.
6840
6841       --  Note: we use the Prefix field for this expression so that the
6842       --  resulting node can be treated using common code with the attribute
6843       --  nodes for the 'Access and related attributes. Logically it would make
6844       --  more sense to call it an Expression field, but then we would have to
6845       --  special case the treatment of the N_Reference node.
6846
6847       --  Sprint syntax: prefix'reference
6848
6849       --  N_Reference
6850       --  Sloc is copied from the expression
6851       --  Prefix (Node3)
6852       --  plus fields for expression
6853
6854       --  Note: in the case where a debug source file is generated, the Sloc
6855       --  for this node points to the quote in the Sprint file output.
6856
6857       -----------------
6858       --  SCIL Nodes --
6859       -----------------
6860
6861       --  SCIL nodes are special nodes added to the tree when the CodePeer
6862       --  mode is active. They help the CodePeer backend to locate nodes that
6863       --  require special processing.
6864
6865       --  Major documentation on the general design of the SCIL interface, and
6866       --  in particular detailed description of these nodes is missing and is
6867       --  to be supplied in the future, when the design has finalized ???
6868
6869       --  Meanwhile these nodes should be considered in experimental form, and
6870       --  should be ignored by all code generating back ends. ???
6871
6872       --  N_SCIL_Dispatch_Table_Object_Init
6873       --  Sloc references a declaration node containing a dispatch table
6874       --  SCIL_Related_Node (Node1-Sem)
6875       --  SCIL_Entity (Node4-Sem)
6876
6877       --  N_SCIL_Dispatch_Table_Tag_Init
6878       --  Sloc references a node for a tag initialization
6879       --  SCIL_Related_Node (Node1-Sem)
6880       --  SCIL_Entity (Node4-Sem)
6881
6882       --  N_SCIL_Dispatching_Call
6883       --  Sloc references the node of a dispatching call
6884       --  SCIL_Related_Node (Node1-Sem)
6885       --  SCIL_Target_Prim (Node2-Sem)
6886       --  SCIL_Entity (Node4-Sem)
6887       --  SCIL_Controlling_Tag (Node5-Sem)
6888
6889       --  N_SCIL_Tag_Init
6890       --  Sloc references the node of a tag component initialization
6891       --  SCIL_Related_Node (Node1-Sem)
6892       --  SCIL_Entity (Node4-Sem)
6893
6894       ---------------------
6895       -- Subprogram_Info --
6896       ---------------------
6897
6898       --  This node generates the appropriate Subprogram_Info value for a
6899       --  given procedure. See Ada.Exceptions for further details
6900
6901       --  Sprint syntax: subprog'subprogram_info
6902
6903       --  N_Subprogram_Info
6904       --  Sloc points to the entity for the procedure
6905       --  Identifier (Node1) identifier referencing the procedure
6906       --  Etype (Node5-Sem) type (always set to Ada.Exceptions.Code_Loc
6907
6908       --  Note: in the case where a debug source file is generated, the Sloc
6909       --  for this node points to the quote in the Sprint file output.
6910
6911       --------------------------
6912       -- Unchecked Expression --
6913       --------------------------
6914
6915       --  An unchecked expression is one that must be analyzed and resolved
6916       --  with all checks off, regardless of the current setting of scope
6917       --  suppress flags.
6918
6919       --  Sprint syntax: `(expression)
6920
6921       --  Note: this node is always removed from the tree (and replaced by
6922       --  its constituent expression) on completion of analysis, so it only
6923       --  appears in intermediate trees, and will never be seen by Gigi.
6924
6925       --  N_Unchecked_Expression
6926       --  Sloc is a copy of the Sloc of the expression
6927       --  Expression (Node3)
6928       --  plus fields for expression
6929
6930       --  Note: in the case where a debug source file is generated, the Sloc
6931       --  for this node points to the back quote in the Sprint file output.
6932
6933       -------------------------------
6934       -- Unchecked Type Conversion --
6935       -------------------------------
6936
6937       --  An unchecked type conversion node represents the semantic action
6938       --  corresponding to a call to an instantiation of Unchecked_Conversion.
6939       --  It is generated as a result of actual use of Unchecked_Conversion
6940       --  and also the expander generates unchecked type conversion nodes
6941       --  directly for expansion of complex semantic actions.
6942
6943       --  Note: an unchecked type conversion is a variable as far as the
6944       --  semantics are concerned, which is convenient for the expander.
6945       --  This does not change what Ada source programs are legal, since
6946       --  clearly a function call to an instantiation of Unchecked_Conversion
6947       --  is not a variable in any case.
6948
6949       --  Sprint syntax: subtype-mark!(expression)
6950
6951       --  N_Unchecked_Type_Conversion
6952       --  Sloc points to related node in source
6953       --  Subtype_Mark (Node4)
6954       --  Expression (Node3)
6955       --  Kill_Range_Check (Flag11-Sem)
6956       --  No_Truncation (Flag17-Sem)
6957       --  plus fields for expression
6958
6959       --  Note: in the case where a debug source file is generated, the Sloc
6960       --  for this node points to the exclamation in the Sprint file output.
6961
6962       -----------------------------------
6963       -- Validate_Unchecked_Conversion --
6964       -----------------------------------
6965
6966       --  The front end does most of the validation of unchecked conversion,
6967       --  including checking sizes (this is done after the back end is called
6968       --  to take advantage of back-annotation of calculated sizes).
6969
6970       --  The front end also deals with specific cases that are not allowed
6971       --  e.g. involving unconstrained array types.
6972
6973       --  For the case of the standard gigi backend, this means that all
6974       --  checks are done in the front-end.
6975
6976       --  However, in the case of specialized back-ends, notably the JVM
6977       --  backend for JGNAT, additional requirements and restrictions apply
6978       --  to unchecked conversion, and these are most conveniently performed
6979       --  in the specialized back-end.
6980
6981       --  To accommodate this requirement, for such back ends, the following
6982       --  special node is generated recording an unchecked conversion that
6983       --  needs to be validated. The back end should post an appropriate
6984       --  error message if the unchecked conversion is invalid or warrants
6985       --  a special warning message.
6986
6987       --  Source_Type and Target_Type point to the entities for the two
6988       --  types involved in the unchecked conversion instantiation that
6989       --  is to be validated.
6990
6991       --  Sprint syntax: validate Unchecked_Conversion (source, target);
6992
6993       --  N_Validate_Unchecked_Conversion
6994       --  Sloc points to instantiation (location for warning message)
6995       --  Source_Type (Node1-Sem)
6996       --  Target_Type (Node2-Sem)
6997
6998       --  Note: in the case where a debug source file is generated, the Sloc
6999       --  for this node points to the VALIDATE keyword in the file output.
7000
7001    -----------
7002    -- Empty --
7003    -----------
7004
7005    --  Used as the contents of the Nkind field of the dummy Empty node
7006    --  and in some other situations to indicate an uninitialized value.
7007
7008    --  N_Empty
7009    --  Chars (Name1) is set to No_Name
7010
7011    -----------
7012    -- Error --
7013    -----------
7014
7015    --  Used as the contents of the Nkind field of the dummy Error node.
7016    --  Has an Etype field, which gets set to Any_Type later on, to help
7017    --  error recovery (Error_Posted is also set in the Error node).
7018
7019    --  N_Error
7020    --  Chars (Name1) is set to Error_Name
7021    --  Etype (Node5-Sem)
7022
7023    --------------------------
7024    -- Node Type Definition --
7025    --------------------------
7026
7027    --  The following is the definition of the Node_Kind type. As previously
7028    --  discussed, this is separated off to allow rearrangement of the order
7029    --  to facilitate definition of subtype ranges. The comments show the
7030    --  subtype classes which apply to each set of node kinds. The first
7031    --  entry in the comment characterizes the following list of nodes.
7032
7033    type Node_Kind is (
7034       N_Unused_At_Start,
7035
7036       --  N_Representation_Clause
7037
7038       N_At_Clause,
7039       N_Component_Clause,
7040       N_Enumeration_Representation_Clause,
7041       N_Mod_Clause,
7042       N_Record_Representation_Clause,
7043
7044       --  N_Representation_Clause, N_Has_Chars
7045
7046       N_Attribute_Definition_Clause,
7047
7048       --  N_Has_Chars
7049
7050       N_Empty,
7051       N_Pragma_Argument_Association,
7052
7053       --  N_Has_Etype
7054
7055       N_Error,
7056
7057       --  N_Entity, N_Has_Etype, N_Has_Chars
7058
7059       N_Defining_Character_Literal,
7060       N_Defining_Identifier,
7061       N_Defining_Operator_Symbol,
7062
7063       --  N_Subexpr, N_Has_Etype, N_Has_Chars, N_Has_Entity
7064
7065       N_Expanded_Name,
7066
7067       --  N_Direct_Name, N_Subexpr, N_Has_Etype,
7068       --  N_Has_Chars, N_Has_Entity
7069
7070       N_Identifier,
7071       N_Operator_Symbol,
7072
7073       --  N_Direct_Name, N_Subexpr, N_Has_Etype,
7074       --  N_Has_Chars, N_Has_Entity
7075
7076       N_Character_Literal,
7077
7078       --  N_Binary_Op, N_Op, N_Subexpr,
7079       --  N_Has_Etype, N_Has_Chars, N_Has_Entity
7080
7081       N_Op_Add,
7082       N_Op_Concat,
7083       N_Op_Expon,
7084       N_Op_Subtract,
7085
7086       --  N_Binary_Op, N_Op, N_Subexpr, N_Has_Treat_Fixed_As_Integer
7087       --  N_Has_Etype, N_Has_Chars, N_Has_Entity, N_Multiplying_Operator
7088
7089       N_Op_Divide,
7090       N_Op_Mod,
7091       N_Op_Multiply,
7092       N_Op_Rem,
7093
7094       --  N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype
7095       --  N_Has_Entity, N_Has_Chars, N_Op_Boolean
7096
7097       N_Op_And,
7098
7099       --  N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype
7100       --  N_Has_Entity, N_Has_Chars, N_Op_Boolean, N_Op_Compare
7101
7102       N_Op_Eq,
7103       N_Op_Ge,
7104       N_Op_Gt,
7105       N_Op_Le,
7106       N_Op_Lt,
7107       N_Op_Ne,
7108
7109       --  N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype
7110       --  N_Has_Entity, N_Has_Chars, N_Op_Boolean
7111
7112       N_Op_Or,
7113       N_Op_Xor,
7114
7115       --  N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype,
7116       --  N_Op_Shift, N_Has_Chars, N_Has_Entity
7117
7118       N_Op_Rotate_Left,
7119       N_Op_Rotate_Right,
7120       N_Op_Shift_Left,
7121       N_Op_Shift_Right,
7122       N_Op_Shift_Right_Arithmetic,
7123
7124       --  N_Unary_Op, N_Op, N_Subexpr, N_Has_Etype,
7125       --  N_Has_Chars, N_Has_Entity
7126
7127       N_Op_Abs,
7128       N_Op_Minus,
7129       N_Op_Not,
7130       N_Op_Plus,
7131
7132       --  N_Subexpr, N_Has_Etype, N_Has_Entity
7133
7134       N_Attribute_Reference,
7135
7136       --  N_Subexpr, N_Has_Etype, N_Membership_Test
7137
7138       N_In,
7139       N_Not_In,
7140
7141       --  N_Subexpr, N_Has_Etype, N_Short_Circuit
7142
7143       N_And_Then,
7144       N_Or_Else,
7145
7146       --  N_Subexpr, N_Has_Etype
7147
7148       N_Conditional_Expression,
7149       N_Explicit_Dereference,
7150       N_Function_Call,
7151       N_Indexed_Component,
7152       N_Integer_Literal,
7153       N_Null,
7154       N_Procedure_Call_Statement,
7155       N_Qualified_Expression,
7156
7157       --  N_Raise_xxx_Error, N_Subexpr, N_Has_Etype
7158
7159       N_Raise_Constraint_Error,
7160       N_Raise_Program_Error,
7161       N_Raise_Storage_Error,
7162
7163       --  N_Subexpr, N_Has_Etype
7164
7165       N_Aggregate,
7166       N_Allocator,
7167       N_Extension_Aggregate,
7168       N_Range,
7169       N_Real_Literal,
7170       N_Reference,
7171       N_Selected_Component,
7172       N_Slice,
7173       N_String_Literal,
7174       N_Subprogram_Info,
7175       N_Type_Conversion,
7176       N_Unchecked_Expression,
7177       N_Unchecked_Type_Conversion,
7178
7179       --  N_Has_Etype
7180
7181       N_Subtype_Indication,
7182
7183       --  N_Declaration
7184
7185       N_Component_Declaration,
7186       N_Entry_Declaration,
7187       N_Formal_Object_Declaration,
7188       N_Formal_Type_Declaration,
7189       N_Full_Type_Declaration,
7190       N_Incomplete_Type_Declaration,
7191       N_Loop_Parameter_Specification,
7192       N_Object_Declaration,
7193       N_Protected_Type_Declaration,
7194       N_Private_Extension_Declaration,
7195       N_Private_Type_Declaration,
7196       N_Subtype_Declaration,
7197
7198       --  N_Subprogram_Specification, N_Declaration
7199
7200       N_Function_Specification,
7201       N_Procedure_Specification,
7202
7203       --  N_Access_To_Subprogram_Definition
7204
7205       N_Access_Function_Definition,
7206       N_Access_Procedure_Definition,
7207
7208       --  N_Later_Decl_Item
7209
7210       N_Task_Type_Declaration,
7211
7212       --  N_Body_Stub, N_Later_Decl_Item
7213
7214       N_Package_Body_Stub,
7215       N_Protected_Body_Stub,
7216       N_Subprogram_Body_Stub,
7217       N_Task_Body_Stub,
7218
7219       --  N_Generic_Instantiation, N_Later_Decl_Item
7220       --  N_Subprogram_Instantiation
7221
7222       N_Function_Instantiation,
7223       N_Procedure_Instantiation,
7224
7225       --  N_Generic_Instantiation, N_Later_Decl_Item
7226
7227       N_Package_Instantiation,
7228
7229       --  N_Unit_Body, N_Later_Decl_Item, N_Proper_Body
7230
7231       N_Package_Body,
7232       N_Subprogram_Body,
7233
7234       --  N_Later_Decl_Item, N_Proper_Body
7235
7236       N_Protected_Body,
7237       N_Task_Body,
7238
7239       --  N_Later_Decl_Item
7240
7241       N_Implicit_Label_Declaration,
7242       N_Package_Declaration,
7243       N_Single_Task_Declaration,
7244       N_Subprogram_Declaration,
7245       N_Use_Package_Clause,
7246
7247       --  N_Generic_Declaration, N_Later_Decl_Item
7248
7249       N_Generic_Package_Declaration,
7250       N_Generic_Subprogram_Declaration,
7251
7252       --  N_Array_Type_Definition
7253
7254       N_Constrained_Array_Definition,
7255       N_Unconstrained_Array_Definition,
7256
7257       --  N_Renaming_Declaration
7258
7259       N_Exception_Renaming_Declaration,
7260       N_Object_Renaming_Declaration,
7261       N_Package_Renaming_Declaration,
7262       N_Subprogram_Renaming_Declaration,
7263
7264       --  N_Generic_Renaming_Declaration, N_Renaming_Declaration
7265
7266       N_Generic_Function_Renaming_Declaration,
7267       N_Generic_Package_Renaming_Declaration,
7268       N_Generic_Procedure_Renaming_Declaration,
7269
7270       --  N_Statement_Other_Than_Procedure_Call
7271
7272       N_Abort_Statement,
7273       N_Accept_Statement,
7274       N_Assignment_Statement,
7275       N_Asynchronous_Select,
7276       N_Block_Statement,
7277       N_Case_Statement,
7278       N_Code_Statement,
7279       N_Conditional_Entry_Call,
7280
7281       --  N_Statement_Other_Than_Procedure_Call. N_Delay_Statement
7282
7283       N_Delay_Relative_Statement,
7284       N_Delay_Until_Statement,
7285
7286       --  N_Statement_Other_Than_Procedure_Call
7287
7288       N_Entry_Call_Statement,
7289       N_Free_Statement,
7290       N_Goto_Statement,
7291       N_Loop_Statement,
7292       N_Null_Statement,
7293       N_Raise_Statement,
7294       N_Requeue_Statement,
7295       N_Return_Statement, -- renamed as N_Simple_Return_Statement below
7296       N_Extended_Return_Statement,
7297       N_Selective_Accept,
7298       N_Timed_Entry_Call,
7299
7300       --  N_Statement_Other_Than_Procedure_Call, N_Has_Condition
7301
7302       N_Exit_Statement,
7303       N_If_Statement,
7304
7305       --  N_Has_Condition
7306
7307       N_Accept_Alternative,
7308       N_Delay_Alternative,
7309       N_Elsif_Part,
7310       N_Entry_Body_Formal_Part,
7311       N_Iteration_Scheme,
7312       N_Terminate_Alternative,
7313
7314       --  N_Formal_Subprogram_Declaration
7315
7316       N_Formal_Abstract_Subprogram_Declaration,
7317       N_Formal_Concrete_Subprogram_Declaration,
7318
7319       --  N_Push_xxx_Label, N_Push_Pop_xxx_Label
7320
7321       N_Push_Constraint_Error_Label,
7322       N_Push_Program_Error_Label,
7323       N_Push_Storage_Error_Label,
7324
7325       --  N_Pop_xxx_Label, N_Push_Pop_xxx_Label
7326
7327       N_Pop_Constraint_Error_Label,
7328       N_Pop_Program_Error_Label,
7329       N_Pop_Storage_Error_Label,
7330
7331       --  SCIL nodes
7332
7333       N_SCIL_Dispatch_Table_Object_Init,
7334       N_SCIL_Dispatch_Table_Tag_Init,
7335       N_SCIL_Dispatching_Call,
7336       N_SCIL_Tag_Init,
7337
7338       --  Other nodes (not part of any subtype class)
7339
7340       N_Abortable_Part,
7341       N_Abstract_Subprogram_Declaration,
7342       N_Access_Definition,
7343       N_Access_To_Object_Definition,
7344       N_Case_Statement_Alternative,
7345       N_Compilation_Unit,
7346       N_Compilation_Unit_Aux,
7347       N_Component_Association,
7348       N_Component_Definition,
7349       N_Component_List,
7350       N_Derived_Type_Definition,
7351       N_Decimal_Fixed_Point_Definition,
7352       N_Defining_Program_Unit_Name,
7353       N_Delta_Constraint,
7354       N_Designator,
7355       N_Digits_Constraint,
7356       N_Discriminant_Association,
7357       N_Discriminant_Specification,
7358       N_Enumeration_Type_Definition,
7359       N_Entry_Body,
7360       N_Entry_Call_Alternative,
7361       N_Entry_Index_Specification,
7362       N_Exception_Declaration,
7363       N_Exception_Handler,
7364       N_Floating_Point_Definition,
7365       N_Formal_Decimal_Fixed_Point_Definition,
7366       N_Formal_Derived_Type_Definition,
7367       N_Formal_Discrete_Type_Definition,
7368       N_Formal_Floating_Point_Definition,
7369       N_Formal_Modular_Type_Definition,
7370       N_Formal_Ordinary_Fixed_Point_Definition,
7371       N_Formal_Package_Declaration,
7372       N_Formal_Private_Type_Definition,
7373       N_Formal_Signed_Integer_Type_Definition,
7374       N_Freeze_Entity,
7375       N_Generic_Association,
7376       N_Handled_Sequence_Of_Statements,
7377       N_Index_Or_Discriminant_Constraint,
7378       N_Itype_Reference,
7379       N_Label,
7380       N_Modular_Type_Definition,
7381       N_Number_Declaration,
7382       N_Ordinary_Fixed_Point_Definition,
7383       N_Others_Choice,
7384       N_Package_Specification,
7385       N_Parameter_Association,
7386       N_Parameter_Specification,
7387       N_Pragma,
7388       N_Protected_Definition,
7389       N_Range_Constraint,
7390       N_Real_Range_Specification,
7391       N_Record_Definition,
7392       N_Signed_Integer_Type_Definition,
7393       N_Single_Protected_Declaration,
7394       N_Subunit,
7395       N_Task_Definition,
7396       N_Triggering_Alternative,
7397       N_Use_Type_Clause,
7398       N_Validate_Unchecked_Conversion,
7399       N_Variant,
7400       N_Variant_Part,
7401       N_With_Clause,
7402       N_Unused_At_End);
7403
7404    for Node_Kind'Size use 8;
7405    --  The data structures in Atree assume this!
7406
7407    ----------------------------
7408    -- Node Class Definitions --
7409    ----------------------------
7410
7411    subtype N_Access_To_Subprogram_Definition is Node_Kind range
7412      N_Access_Function_Definition ..
7413      N_Access_Procedure_Definition;
7414
7415    subtype N_Array_Type_Definition is Node_Kind range
7416      N_Constrained_Array_Definition ..
7417      N_Unconstrained_Array_Definition;
7418
7419    subtype N_Binary_Op is Node_Kind range
7420      N_Op_Add ..
7421      N_Op_Shift_Right_Arithmetic;
7422
7423    subtype N_Body_Stub is Node_Kind range
7424      N_Package_Body_Stub ..
7425      N_Task_Body_Stub;
7426
7427    subtype N_Declaration is Node_Kind range
7428      N_Component_Declaration ..
7429      N_Procedure_Specification;
7430    --  Note: this includes all constructs normally thought of as declarations
7431    --  except those which are separately grouped as later declarations.
7432
7433    subtype N_Delay_Statement is Node_Kind range
7434       N_Delay_Relative_Statement ..
7435       N_Delay_Until_Statement;
7436
7437    subtype N_Direct_Name is Node_Kind range
7438      N_Identifier ..
7439      N_Character_Literal;
7440
7441    subtype N_Entity is Node_Kind range
7442      N_Defining_Character_Literal ..
7443      N_Defining_Operator_Symbol;
7444
7445    subtype N_Formal_Subprogram_Declaration is Node_Kind range
7446      N_Formal_Abstract_Subprogram_Declaration ..
7447      N_Formal_Concrete_Subprogram_Declaration;
7448
7449    subtype N_Generic_Declaration is Node_Kind range
7450      N_Generic_Package_Declaration ..
7451      N_Generic_Subprogram_Declaration;
7452
7453    subtype N_Generic_Instantiation is Node_Kind range
7454      N_Function_Instantiation ..
7455      N_Package_Instantiation;
7456
7457    subtype N_Generic_Renaming_Declaration is Node_Kind range
7458      N_Generic_Function_Renaming_Declaration ..
7459      N_Generic_Procedure_Renaming_Declaration;
7460
7461    subtype N_Has_Chars is Node_Kind range
7462      N_Attribute_Definition_Clause ..
7463      N_Op_Plus;
7464
7465    subtype N_Has_Entity is Node_Kind range
7466      N_Expanded_Name ..
7467      N_Attribute_Reference;
7468    --  Nodes that have Entity fields
7469    --  Warning: DOES NOT INCLUDE N_Freeze_Entity!
7470
7471    subtype N_Has_Etype is Node_Kind range
7472      N_Error ..
7473      N_Subtype_Indication;
7474
7475    subtype N_Has_Treat_Fixed_As_Integer is Node_Kind range
7476       N_Op_Divide ..
7477       N_Op_Rem;
7478
7479    subtype N_Multiplying_Operator is Node_Kind range
7480       N_Op_Divide ..
7481       N_Op_Rem;
7482
7483    subtype N_Later_Decl_Item is Node_Kind range
7484      N_Task_Type_Declaration ..
7485      N_Generic_Subprogram_Declaration;
7486    --  Note: this is Ada 83 relevant only (see Ada 83 RM 3.9 (2)) and includes
7487    --  only those items which can appear as later declarative items. This also
7488    --  includes N_Implicit_Label_Declaration which is not specifically in the
7489    --  grammar but may appear as a valid later declarative items. It does NOT
7490    --  include N_Pragma which can also appear among later declarative items.
7491    --  It does however include N_Protected_Body, which is a bit peculiar, but
7492    --  harmless since this cannot appear in Ada 83 mode anyway.
7493
7494    subtype N_Membership_Test is Node_Kind range
7495       N_In ..
7496       N_Not_In;
7497
7498    subtype N_Op is Node_Kind range
7499      N_Op_Add ..
7500      N_Op_Plus;
7501
7502    subtype N_Op_Boolean is Node_Kind range
7503      N_Op_And ..
7504      N_Op_Xor;
7505    --  Binary operators which take operands of a boolean type, and yield
7506    --  a result of a boolean type.
7507
7508    subtype N_Op_Compare is Node_Kind range
7509      N_Op_Eq ..
7510      N_Op_Ne;
7511
7512    subtype N_Op_Shift is Node_Kind range
7513      N_Op_Rotate_Left ..
7514      N_Op_Shift_Right_Arithmetic;
7515
7516    subtype N_Proper_Body is Node_Kind range
7517      N_Package_Body ..
7518      N_Task_Body;
7519
7520    subtype N_Push_xxx_Label is Node_Kind range
7521      N_Push_Constraint_Error_Label ..
7522      N_Push_Storage_Error_Label;
7523
7524    subtype N_Pop_xxx_Label is Node_Kind range
7525      N_Pop_Constraint_Error_Label ..
7526      N_Pop_Storage_Error_Label;
7527
7528    subtype N_Push_Pop_xxx_Label is Node_Kind range
7529      N_Push_Constraint_Error_Label ..
7530      N_Pop_Storage_Error_Label;
7531
7532    subtype N_Raise_xxx_Error is Node_Kind range
7533      N_Raise_Constraint_Error ..
7534      N_Raise_Storage_Error;
7535
7536    subtype N_Renaming_Declaration is Node_Kind range
7537      N_Exception_Renaming_Declaration ..
7538      N_Generic_Procedure_Renaming_Declaration;
7539
7540    subtype N_Representation_Clause is Node_Kind range
7541      N_At_Clause ..
7542      N_Attribute_Definition_Clause;
7543
7544    subtype N_Short_Circuit is Node_Kind range
7545      N_And_Then ..
7546      N_Or_Else;
7547
7548    subtype N_SCIL_Node is Node_Kind range
7549      N_SCIL_Dispatch_Table_Object_Init ..
7550      N_SCIL_Tag_Init;
7551
7552    subtype N_Statement_Other_Than_Procedure_Call is Node_Kind range
7553      N_Abort_Statement ..
7554      N_If_Statement;
7555    --  Note that this includes all statement types except for the cases of the
7556    --  N_Procedure_Call_Statement which is considered to be a subexpression
7557    --  (since overloading is possible, so it needs to go through the normal
7558    --  overloading resolution for expressions).
7559
7560    subtype N_Subprogram_Instantiation is Node_Kind range
7561      N_Function_Instantiation ..
7562      N_Procedure_Instantiation;
7563
7564    subtype N_Has_Condition is Node_Kind range
7565      N_Exit_Statement ..
7566      N_Terminate_Alternative;
7567    --  Nodes with condition fields (does not include N_Raise_xxx_Error)
7568
7569    subtype N_Subexpr is Node_Kind range
7570      N_Expanded_Name ..
7571      N_Unchecked_Type_Conversion;
7572    --  Nodes with expression fields
7573
7574    subtype N_Subprogram_Specification is Node_Kind range
7575      N_Function_Specification ..
7576      N_Procedure_Specification;
7577
7578    subtype N_Unary_Op is Node_Kind range
7579      N_Op_Abs ..
7580      N_Op_Plus;
7581
7582    subtype N_Unit_Body is Node_Kind range
7583      N_Package_Body ..
7584        N_Subprogram_Body;
7585
7586    ---------------------------
7587    -- Node Access Functions --
7588    ---------------------------
7589
7590    --  The following functions return the contents of the indicated field of
7591    --  the node referenced by the argument, which is a Node_Id. They provide
7592    --  logical access to fields in the node which could be accessed using the
7593    --  Atree.Unchecked_Access package, but the idea is always to use these
7594    --  higher level routines which preserve strong typing. In debug mode,
7595    --  these routines check that they are being applied to an appropriate
7596    --  node, as well as checking that the node is in range.
7597
7598    function ABE_Is_Certain
7599      (N : Node_Id) return Boolean;    -- Flag18
7600
7601    function Abort_Present
7602      (N : Node_Id) return Boolean;    -- Flag15
7603
7604    function Abortable_Part
7605      (N : Node_Id) return Node_Id;    -- Node2
7606
7607    function Abstract_Present
7608      (N : Node_Id) return Boolean;    -- Flag4
7609
7610    function Accept_Handler_Records
7611      (N : Node_Id) return List_Id;    -- List5
7612
7613    function Accept_Statement
7614      (N : Node_Id) return Node_Id;    -- Node2
7615
7616    function Access_Definition
7617      (N : Node_Id) return Node_Id;    -- Node3
7618
7619    function Access_To_Subprogram_Definition
7620      (N : Node_Id) return Node_Id;    -- Node3
7621
7622    function Access_Types_To_Process
7623      (N : Node_Id) return Elist_Id;   -- Elist2
7624
7625    function Actions
7626      (N : Node_Id) return List_Id;    -- List1
7627
7628    function Activation_Chain_Entity
7629      (N : Node_Id) return Node_Id;    -- Node3
7630
7631    function Acts_As_Spec
7632      (N : Node_Id) return Boolean;    -- Flag4
7633
7634    function Actual_Designated_Subtype
7635      (N : Node_Id) return Node_Id;    -- Node4
7636
7637    function Address_Warning_Posted
7638      (N : Node_Id) return Boolean;    -- Flag18
7639
7640    function Aggregate_Bounds
7641      (N : Node_Id) return Node_Id;    -- Node3
7642
7643    function Aliased_Present
7644      (N : Node_Id) return Boolean;    -- Flag4
7645
7646    function All_Others
7647      (N : Node_Id) return Boolean;    -- Flag11
7648
7649    function All_Present
7650      (N : Node_Id) return Boolean;    -- Flag15
7651
7652    function Alternatives
7653      (N : Node_Id) return List_Id;    -- List4
7654
7655    function Ancestor_Part
7656      (N : Node_Id) return Node_Id;    -- Node3
7657
7658    function Array_Aggregate
7659      (N : Node_Id) return Node_Id;    -- Node3
7660
7661    function Assignment_OK
7662      (N : Node_Id) return Boolean;    -- Flag15
7663
7664    function Associated_Node
7665      (N : Node_Id) return Node_Id;    -- Node4
7666
7667    function At_End_Proc
7668      (N : Node_Id) return Node_Id;    -- Node1
7669
7670    function Attribute_Name
7671      (N : Node_Id) return Name_Id;    -- Name2
7672
7673    function Aux_Decls_Node
7674      (N : Node_Id) return Node_Id;    -- Node5
7675
7676    function Backwards_OK
7677      (N : Node_Id) return Boolean;    -- Flag6
7678
7679    function Bad_Is_Detected
7680      (N : Node_Id) return Boolean;    -- Flag15
7681
7682    function By_Ref
7683      (N : Node_Id) return Boolean;    -- Flag5
7684
7685    function Body_Required
7686      (N : Node_Id) return Boolean;    -- Flag13
7687
7688    function Body_To_Inline
7689      (N : Node_Id) return Node_Id;    -- Node3
7690
7691    function Box_Present
7692      (N : Node_Id) return Boolean;    -- Flag15
7693
7694    function Char_Literal_Value
7695      (N : Node_Id) return Uint;       -- Uint2
7696
7697    function Chars
7698      (N : Node_Id) return Name_Id;    -- Name1
7699
7700    function Check_Address_Alignment
7701      (N : Node_Id) return Boolean;    -- Flag11
7702
7703    function Choice_Parameter
7704      (N : Node_Id) return Node_Id;    -- Node2
7705
7706    function Choices
7707      (N : Node_Id) return List_Id;    -- List1
7708
7709    function Coextensions
7710       (N : Node_Id) return Elist_Id;  -- Elist4
7711
7712    function Comes_From_Extended_Return_Statement
7713      (N : Node_Id) return Boolean;    -- Flag18
7714
7715    function Compile_Time_Known_Aggregate
7716      (N : Node_Id) return Boolean;    -- Flag18
7717
7718    function Component_Associations
7719      (N : Node_Id) return List_Id;    -- List2
7720
7721    function Component_Clauses
7722      (N : Node_Id) return List_Id;    -- List3
7723
7724    function Component_Definition
7725      (N : Node_Id) return Node_Id;    -- Node4
7726
7727    function Component_Items
7728      (N : Node_Id) return List_Id;    -- List3
7729
7730    function Component_List
7731      (N : Node_Id) return Node_Id;    -- Node1
7732
7733    function Component_Name
7734      (N : Node_Id) return Node_Id;    -- Node1
7735
7736    function Componentwise_Assignment
7737      (N : Node_Id) return Boolean;    -- Flag14
7738
7739    function Condition
7740      (N : Node_Id) return Node_Id;    -- Node1
7741
7742    function Condition_Actions
7743      (N : Node_Id) return List_Id;    -- List3
7744
7745    function Config_Pragmas
7746      (N : Node_Id) return List_Id;    -- List4
7747
7748    function Constant_Present
7749      (N : Node_Id) return Boolean;    -- Flag17
7750
7751    function Constraint
7752      (N : Node_Id) return Node_Id;    -- Node3
7753
7754    function Constraints
7755      (N : Node_Id) return List_Id;    -- List1
7756
7757    function Context_Installed
7758      (N : Node_Id) return Boolean;    -- Flag13
7759
7760    function Context_Pending
7761      (N : Node_Id) return Boolean;    -- Flag16
7762
7763    function Context_Items
7764      (N : Node_Id) return List_Id;    -- List1
7765
7766    function Controlling_Argument
7767      (N : Node_Id) return Node_Id;    -- Node1
7768
7769    function Conversion_OK
7770      (N : Node_Id) return Boolean;    -- Flag14
7771
7772    function Corresponding_Body
7773      (N : Node_Id) return Node_Id;    -- Node5
7774
7775    function Corresponding_Formal_Spec
7776      (N : Node_Id) return Node_Id;    -- Node3
7777
7778    function Corresponding_Generic_Association
7779      (N : Node_Id) return Node_Id;    -- Node5
7780
7781    function Corresponding_Integer_Value
7782      (N : Node_Id) return Uint;       -- Uint4
7783
7784    function Corresponding_Spec
7785      (N : Node_Id) return Node_Id;    -- Node5
7786
7787    function Corresponding_Stub
7788      (N : Node_Id) return Node_Id;    -- Node3
7789
7790    function Dcheck_Function
7791      (N : Node_Id) return Entity_Id;  -- Node5
7792
7793    function Debug_Statement
7794      (N : Node_Id) return Node_Id;    -- Node3
7795
7796    function Declarations
7797      (N : Node_Id) return List_Id;    -- List2
7798
7799    function Default_Expression
7800      (N : Node_Id) return Node_Id;    -- Node5
7801
7802    function Default_Name
7803      (N : Node_Id) return Node_Id;    -- Node2
7804
7805    function Defining_Identifier
7806      (N : Node_Id) return Entity_Id;  -- Node1
7807
7808    function Defining_Unit_Name
7809      (N : Node_Id) return Node_Id;    -- Node1
7810
7811    function Delay_Alternative
7812      (N : Node_Id) return Node_Id;    -- Node4
7813
7814    function Delay_Statement
7815      (N : Node_Id) return Node_Id;    -- Node2
7816
7817    function Delta_Expression
7818      (N : Node_Id) return Node_Id;    -- Node3
7819
7820    function Digits_Expression
7821      (N : Node_Id) return Node_Id;    -- Node2
7822
7823    function Discr_Check_Funcs_Built
7824      (N : Node_Id) return Boolean;    -- Flag11
7825
7826    function Discrete_Choices
7827      (N : Node_Id) return List_Id;    -- List4
7828
7829    function Discrete_Range
7830      (N : Node_Id) return Node_Id;    -- Node4
7831
7832    function Discrete_Subtype_Definition
7833      (N : Node_Id) return Node_Id;    -- Node4
7834
7835    function Discrete_Subtype_Definitions
7836      (N : Node_Id) return List_Id;    -- List2
7837
7838    function Discriminant_Specifications
7839      (N : Node_Id) return List_Id;    -- List4
7840
7841    function Discriminant_Type
7842      (N : Node_Id) return Node_Id;    -- Node5
7843
7844    function Do_Accessibility_Check
7845      (N : Node_Id) return Boolean;    -- Flag13
7846
7847    function Do_Discriminant_Check
7848      (N : Node_Id) return Boolean;    -- Flag13
7849
7850    function Do_Division_Check
7851      (N : Node_Id) return Boolean;    -- Flag13
7852
7853    function Do_Length_Check
7854      (N : Node_Id) return Boolean;    -- Flag4
7855
7856    function Do_Overflow_Check
7857      (N : Node_Id) return Boolean;    -- Flag17
7858
7859    function Do_Range_Check
7860      (N : Node_Id) return Boolean;    -- Flag9
7861
7862    function Do_Storage_Check
7863      (N : Node_Id) return Boolean;    -- Flag17
7864
7865    function Do_Tag_Check
7866      (N : Node_Id) return Boolean;    -- Flag13
7867
7868    function Elaborate_All_Desirable
7869      (N : Node_Id) return Boolean;    -- Flag9
7870
7871    function Elaborate_All_Present
7872      (N : Node_Id) return Boolean;    -- Flag14
7873
7874    function Elaborate_Desirable
7875      (N : Node_Id) return Boolean;    -- Flag11
7876
7877    function Elaborate_Present
7878      (N : Node_Id) return Boolean;    -- Flag4
7879
7880    function Elaboration_Boolean
7881      (N : Node_Id) return Node_Id;    -- Node2
7882
7883    function Else_Actions
7884      (N : Node_Id) return List_Id;    -- List3
7885
7886    function Else_Statements
7887      (N : Node_Id) return List_Id;    -- List4
7888
7889    function Elsif_Parts
7890      (N : Node_Id) return List_Id;    -- List3
7891
7892    function Enclosing_Variant
7893      (N : Node_Id) return Node_Id;    -- Node2
7894
7895    function End_Label
7896      (N : Node_Id) return Node_Id;    -- Node4
7897
7898    function End_Span
7899      (N : Node_Id) return Uint;       -- Uint5
7900
7901    function Entity
7902      (N : Node_Id) return Node_Id;    -- Node4
7903
7904    function Entity_Or_Associated_Node
7905      (N : Node_Id) return Node_Id;    -- Node4
7906
7907    function Entry_Body_Formal_Part
7908      (N : Node_Id) return Node_Id;    -- Node5
7909
7910    function Entry_Call_Alternative
7911      (N : Node_Id) return Node_Id;    -- Node1
7912
7913    function Entry_Call_Statement
7914      (N : Node_Id) return Node_Id;    -- Node1
7915
7916    function Entry_Direct_Name
7917      (N : Node_Id) return Node_Id;    -- Node1
7918
7919    function Entry_Index
7920      (N : Node_Id) return Node_Id;    -- Node5
7921
7922    function Entry_Index_Specification
7923      (N : Node_Id) return Node_Id;    -- Node4
7924
7925    function Etype
7926      (N : Node_Id) return Node_Id;    -- Node5
7927
7928    function Exception_Choices
7929      (N : Node_Id) return List_Id;    -- List4
7930
7931    function Exception_Handlers
7932      (N : Node_Id) return List_Id;    -- List5
7933
7934    function Exception_Junk
7935      (N : Node_Id) return Boolean;    -- Flag8
7936
7937    function Exception_Label
7938      (N : Node_Id) return Node_Id;    -- Node5
7939
7940    function Explicit_Actual_Parameter
7941      (N : Node_Id) return Node_Id;    -- Node3
7942
7943    function Expansion_Delayed
7944      (N : Node_Id) return Boolean;    -- Flag11
7945
7946    function Explicit_Generic_Actual_Parameter
7947      (N : Node_Id) return Node_Id;    -- Node1
7948
7949    function Expression
7950      (N : Node_Id) return Node_Id;    -- Node3
7951
7952    function Expressions
7953      (N : Node_Id) return List_Id;    -- List1
7954
7955    function First_Bit
7956      (N : Node_Id) return Node_Id;    -- Node3
7957
7958    function First_Inlined_Subprogram
7959      (N : Node_Id) return Entity_Id;  -- Node3
7960
7961    function First_Name
7962      (N : Node_Id) return Boolean;    -- Flag5
7963
7964    function First_Named_Actual
7965      (N : Node_Id) return Node_Id;    -- Node4
7966
7967    function First_Real_Statement
7968      (N : Node_Id) return Node_Id;    -- Node2
7969
7970    function First_Subtype_Link
7971      (N : Node_Id) return Entity_Id;  -- Node5
7972
7973    function Float_Truncate
7974      (N : Node_Id) return Boolean;    -- Flag11
7975
7976    function Formal_Type_Definition
7977      (N : Node_Id) return Node_Id;    -- Node3
7978
7979    function Forwards_OK
7980      (N : Node_Id) return Boolean;    -- Flag5
7981
7982    function From_At_End
7983      (N : Node_Id) return Boolean;    -- Flag4
7984
7985    function From_At_Mod
7986      (N : Node_Id) return Boolean;    -- Flag4
7987
7988    function From_Default
7989      (N : Node_Id) return Boolean;    -- Flag6
7990
7991    function Generic_Associations
7992      (N : Node_Id) return List_Id;    -- List3
7993
7994    function Generic_Formal_Declarations
7995      (N : Node_Id) return List_Id;    -- List2
7996
7997    function Generic_Parent
7998      (N : Node_Id) return Node_Id;    -- Node5
7999
8000    function Generic_Parent_Type
8001      (N : Node_Id) return Node_Id;    -- Node4
8002
8003    function Handled_Statement_Sequence
8004      (N : Node_Id) return Node_Id;    -- Node4
8005
8006    function Handler_List_Entry
8007      (N : Node_Id) return Node_Id;    -- Node2
8008
8009    function Has_Created_Identifier
8010      (N : Node_Id) return Boolean;    -- Flag15
8011
8012    function Has_Dynamic_Length_Check
8013      (N : Node_Id) return Boolean;    -- Flag10
8014
8015    function Has_Dynamic_Range_Check
8016      (N : Node_Id) return Boolean;    -- Flag12
8017
8018    function Has_Init_Expression
8019      (N : Node_Id) return Boolean;    -- Flag14
8020
8021    function Has_Local_Raise
8022      (N : Node_Id) return Boolean;    -- Flag8
8023
8024    function Has_No_Elaboration_Code
8025      (N : Node_Id) return Boolean;    -- Flag17
8026
8027    function Has_Priority_Pragma
8028      (N : Node_Id) return Boolean;    -- Flag6
8029
8030    function Has_Private_View
8031      (N : Node_Id) return Boolean;    -- Flag11
8032
8033    function Has_Relative_Deadline_Pragma
8034      (N : Node_Id) return Boolean;    -- Flag9
8035
8036    function Has_Self_Reference
8037      (N : Node_Id) return Boolean;    -- Flag13
8038
8039    function Has_Storage_Size_Pragma
8040      (N : Node_Id) return Boolean;    -- Flag5
8041
8042    function Has_Task_Info_Pragma
8043      (N : Node_Id) return Boolean;    -- Flag7
8044
8045    function Has_Task_Name_Pragma
8046      (N : Node_Id) return Boolean;    -- Flag8
8047
8048    function Has_Wide_Character
8049      (N : Node_Id) return Boolean;    -- Flag11
8050
8051    function Hidden_By_Use_Clause
8052      (N : Node_Id) return Elist_Id;   -- Elist4
8053
8054    function High_Bound
8055      (N : Node_Id) return Node_Id;    -- Node2
8056
8057    function Identifier
8058      (N : Node_Id) return Node_Id;    -- Node1
8059
8060    function Interface_List
8061      (N : Node_Id) return List_Id;    -- List2
8062
8063    function Interface_Present
8064      (N : Node_Id) return Boolean;    -- Flag16
8065
8066    function Implicit_With
8067      (N : Node_Id) return Boolean;    -- Flag16
8068
8069    function In_Present
8070      (N : Node_Id) return Boolean;    -- Flag15
8071
8072    function Includes_Infinities
8073      (N : Node_Id) return Boolean;    -- Flag11
8074
8075    function Instance_Spec
8076      (N : Node_Id) return Node_Id;    -- Node5
8077
8078    function Intval
8079      (N : Node_Id) return Uint;       -- Uint3
8080
8081    function Is_Accessibility_Actual
8082      (N : Node_Id) return Boolean;    -- Flag12
8083
8084    function Is_Asynchronous_Call_Block
8085      (N : Node_Id) return Boolean;    -- Flag7
8086
8087    function Is_Component_Left_Opnd
8088      (N : Node_Id) return Boolean;    -- Flag13
8089
8090    function Is_Component_Right_Opnd
8091      (N : Node_Id) return Boolean;    -- Flag14
8092
8093    function Is_Controlling_Actual
8094      (N : Node_Id) return Boolean;    -- Flag16
8095
8096    function Is_Dynamic_Coextension
8097      (N : Node_Id) return Boolean;    -- Flag18
8098
8099    function Is_Elsif
8100      (N : Node_Id) return Boolean;    -- Flag13
8101
8102    function Is_Entry_Barrier_Function
8103      (N : Node_Id) return Boolean;    -- Flag8
8104
8105    function Is_Expanded_Build_In_Place_Call
8106      (N : Node_Id) return Boolean;    -- Flag11
8107
8108    function Is_Folded_In_Parser
8109      (N : Node_Id) return Boolean;    -- Flag4
8110
8111    function Is_In_Discriminant_Check
8112      (N : Node_Id) return Boolean;    -- Flag11
8113
8114    function Is_Machine_Number
8115      (N : Node_Id) return Boolean;    -- Flag11
8116
8117    function Is_Null_Loop
8118      (N : Node_Id) return Boolean;    -- Flag16
8119
8120    function Is_Overloaded
8121      (N : Node_Id) return Boolean;    -- Flag5
8122
8123    function Is_Power_Of_2_For_Shift
8124      (N : Node_Id) return Boolean;    -- Flag13
8125
8126    function Is_Protected_Subprogram_Body
8127      (N : Node_Id) return Boolean;    -- Flag7
8128
8129    function Is_Static_Coextension
8130      (N : Node_Id) return Boolean;    -- Flag14
8131
8132    function Is_Static_Expression
8133      (N : Node_Id) return Boolean;    -- Flag6
8134
8135    function Is_Subprogram_Descriptor
8136      (N : Node_Id) return Boolean;    -- Flag16
8137
8138    function Is_Task_Allocation_Block
8139      (N : Node_Id) return Boolean;    -- Flag6
8140
8141    function Is_Task_Master
8142      (N : Node_Id) return Boolean;    -- Flag5
8143
8144    function Iteration_Scheme
8145      (N : Node_Id) return Node_Id;    -- Node2
8146
8147    function Itype
8148      (N : Node_Id) return Entity_Id;  -- Node1
8149
8150    function Kill_Range_Check
8151      (N : Node_Id) return Boolean;    -- Flag11
8152
8153    function Label_Construct
8154      (N : Node_Id) return Node_Id;    -- Node2
8155
8156    function Left_Opnd
8157      (N : Node_Id) return Node_Id;    -- Node2
8158
8159    function Last_Bit
8160      (N : Node_Id) return Node_Id;    -- Node4
8161
8162    function Last_Name
8163      (N : Node_Id) return Boolean;    -- Flag6
8164
8165    function Library_Unit
8166      (N : Node_Id) return Node_Id;    -- Node4
8167
8168    function Limited_View_Installed
8169      (N : Node_Id) return Boolean;    -- Flag18
8170
8171    function Limited_Present
8172      (N : Node_Id) return Boolean;    -- Flag17
8173
8174    function Literals
8175      (N : Node_Id) return List_Id;    -- List1
8176
8177    function Local_Raise_Not_OK
8178      (N : Node_Id) return Boolean;    -- Flag7
8179
8180    function Local_Raise_Statements
8181      (N : Node_Id) return Elist_Id;   -- Elist1
8182
8183    function Loop_Actions
8184      (N : Node_Id) return List_Id;    -- List2
8185
8186    function Loop_Parameter_Specification
8187      (N : Node_Id) return Node_Id;    -- Node4
8188
8189    function Low_Bound
8190      (N : Node_Id) return Node_Id;    -- Node1
8191
8192    function Mod_Clause
8193      (N : Node_Id) return Node_Id;    -- Node2
8194
8195    function More_Ids
8196      (N : Node_Id) return Boolean;    -- Flag5
8197
8198    function Must_Be_Byte_Aligned
8199      (N : Node_Id) return Boolean;    -- Flag14
8200
8201    function Must_Not_Freeze
8202      (N : Node_Id) return Boolean;    -- Flag8
8203
8204    function Must_Not_Override
8205      (N : Node_Id) return Boolean;    -- Flag15
8206
8207    function Must_Override
8208      (N : Node_Id) return Boolean;    -- Flag14
8209
8210    function Name
8211      (N : Node_Id) return Node_Id;    -- Node2
8212
8213    function Names
8214      (N : Node_Id) return List_Id;    -- List2
8215
8216    function Next_Entity
8217      (N : Node_Id) return Node_Id;    -- Node2
8218
8219    function Next_Implicit_With
8220      (N : Node_Id) return Node_Id;    -- Node3
8221
8222    function Next_Named_Actual
8223      (N : Node_Id) return Node_Id;    -- Node4
8224
8225    function Next_Pragma
8226      (N : Node_Id) return Node_Id;    -- Node1
8227
8228    function Next_Rep_Item
8229      (N : Node_Id) return Node_Id;    -- Node5
8230
8231    function Next_Use_Clause
8232      (N : Node_Id) return Node_Id;    -- Node3
8233
8234    function No_Ctrl_Actions
8235      (N : Node_Id) return Boolean;    -- Flag7
8236
8237    function No_Elaboration_Check
8238      (N : Node_Id) return Boolean;    -- Flag14
8239
8240    function No_Entities_Ref_In_Spec
8241      (N : Node_Id) return Boolean;    -- Flag8
8242
8243    function No_Initialization
8244      (N : Node_Id) return Boolean;    -- Flag13
8245
8246    function No_Truncation
8247      (N : Node_Id) return Boolean;    -- Flag17
8248
8249    function Null_Present
8250      (N : Node_Id) return Boolean;    -- Flag13
8251
8252    function Null_Exclusion_Present
8253      (N : Node_Id) return Boolean;    -- Flag11
8254
8255    function Null_Exclusion_In_Return_Present
8256      (N : Node_Id) return Boolean;    -- Flag14
8257
8258    function Null_Record_Present
8259      (N : Node_Id) return Boolean;    -- Flag17
8260
8261    function Object_Definition
8262      (N : Node_Id) return Node_Id;    -- Node4
8263
8264    function Original_Discriminant
8265      (N : Node_Id) return Node_Id;    -- Node2
8266
8267    function Original_Entity
8268      (N : Node_Id) return Entity_Id;  -- Node2
8269
8270    function Others_Discrete_Choices
8271      (N : Node_Id) return List_Id;    -- List1
8272
8273    function Out_Present
8274      (N : Node_Id) return Boolean;    -- Flag17
8275
8276    function Parameter_Associations
8277      (N : Node_Id) return List_Id;    -- List3
8278
8279    function Parameter_List_Truncated
8280      (N : Node_Id) return Boolean;    -- Flag17
8281
8282    function Parameter_Specifications
8283      (N : Node_Id) return List_Id;    -- List3
8284
8285    function Parameter_Type
8286      (N : Node_Id) return Node_Id;    -- Node2
8287
8288    function Parent_Spec
8289      (N : Node_Id) return Node_Id;    -- Node4
8290
8291    function PPC_Enabled
8292      (N : Node_Id) return Boolean;    -- Flag5
8293
8294    function Position
8295      (N : Node_Id) return Node_Id;    -- Node2
8296
8297    function Pragma_Argument_Associations
8298      (N : Node_Id) return List_Id;    -- List2
8299
8300    function Pragma_Identifier
8301      (N : Node_Id) return Node_Id;    -- Node4
8302
8303    function Pragmas_After
8304      (N : Node_Id) return List_Id;    -- List5
8305
8306    function Pragmas_Before
8307      (N : Node_Id) return List_Id;    -- List4
8308
8309    function Prefix
8310      (N : Node_Id) return Node_Id;    -- Node3
8311
8312    function Present_Expr
8313      (N : Node_Id) return Uint;       -- Uint3
8314
8315    function Prev_Ids
8316      (N : Node_Id) return Boolean;    -- Flag6
8317
8318    function Print_In_Hex
8319      (N : Node_Id) return Boolean;    -- Flag13
8320
8321    function Private_Declarations
8322      (N : Node_Id) return List_Id;    -- List3
8323
8324    function Private_Present
8325      (N : Node_Id) return Boolean;    -- Flag15
8326
8327    function Procedure_To_Call
8328      (N : Node_Id) return Node_Id;    -- Node2
8329
8330    function Proper_Body
8331      (N : Node_Id) return Node_Id;    -- Node1
8332
8333    function Protected_Definition
8334      (N : Node_Id) return Node_Id;    -- Node3
8335
8336    function Protected_Present
8337      (N : Node_Id) return Boolean;    -- Flag6
8338
8339    function Raises_Constraint_Error
8340      (N : Node_Id) return Boolean;    -- Flag7
8341
8342    function Range_Constraint
8343      (N : Node_Id) return Node_Id;    -- Node4
8344
8345    function Range_Expression
8346      (N : Node_Id) return Node_Id;    -- Node4
8347
8348    function Real_Range_Specification
8349      (N : Node_Id) return Node_Id;    -- Node4
8350
8351    function Realval
8352      (N : Node_Id) return Ureal;      -- Ureal3
8353
8354    function Reason
8355      (N : Node_Id) return Uint;       -- Uint3
8356
8357    function Record_Extension_Part
8358      (N : Node_Id) return Node_Id;    -- Node3
8359
8360    function Redundant_Use
8361      (N : Node_Id) return Boolean;    -- Flag13
8362
8363    function Renaming_Exception
8364      (N : Node_Id) return Node_Id;    -- Node2
8365
8366    function Result_Definition
8367      (N : Node_Id) return Node_Id;    -- Node4
8368
8369    function Return_Object_Declarations
8370      (N : Node_Id) return List_Id;    -- List3
8371
8372    function Return_Statement_Entity
8373      (N : Node_Id) return Node_Id;    -- Node5
8374
8375    function Reverse_Present
8376      (N : Node_Id) return Boolean;    -- Flag15
8377
8378    function Right_Opnd
8379      (N : Node_Id) return Node_Id;    -- Node3
8380
8381    function Rounded_Result
8382      (N : Node_Id) return Boolean;    -- Flag18
8383
8384    function SCIL_Controlling_Tag
8385      (N : Node_Id) return Node_Id;    -- Node5
8386
8387    function SCIL_Entity
8388      (N : Node_Id) return Node_Id;    -- Node4
8389
8390    function SCIL_Related_Node
8391      (N : Node_Id) return Node_Id;    -- Node1
8392
8393    function SCIL_Target_Prim
8394      (N : Node_Id) return Node_Id;    -- Node2
8395
8396    function Scope
8397      (N : Node_Id) return Node_Id;    -- Node3
8398
8399    function Select_Alternatives
8400      (N : Node_Id) return List_Id;    -- List1
8401
8402    function Selector_Name
8403      (N : Node_Id) return Node_Id;    -- Node2
8404
8405    function Selector_Names
8406      (N : Node_Id) return List_Id;    -- List1
8407
8408    function Shift_Count_OK
8409      (N : Node_Id) return Boolean;    -- Flag4
8410
8411    function Source_Type
8412      (N : Node_Id) return Entity_Id;  -- Node1
8413
8414    function Specification
8415      (N : Node_Id) return Node_Id;    -- Node1
8416
8417    function Statements
8418      (N : Node_Id) return List_Id;    -- List3
8419
8420    function Static_Processing_OK
8421      (N : Node_Id) return Boolean;    -- Flag4
8422
8423    function Storage_Pool
8424      (N : Node_Id) return Node_Id;    -- Node1
8425
8426    function Strval
8427      (N : Node_Id) return String_Id;  -- Str3
8428
8429    function Subtype_Indication
8430      (N : Node_Id) return Node_Id;    -- Node5
8431
8432    function Subtype_Mark
8433      (N : Node_Id) return Node_Id;    -- Node4
8434
8435    function Subtype_Marks
8436      (N : Node_Id) return List_Id;    -- List2
8437
8438    function Suppress_Loop_Warnings
8439      (N : Node_Id) return Boolean;    -- Flag17
8440
8441    function Synchronized_Present
8442      (N : Node_Id) return Boolean;    -- Flag7
8443
8444    function Tagged_Present
8445      (N : Node_Id) return Boolean;    -- Flag15
8446
8447    function Target_Type
8448      (N : Node_Id) return Entity_Id;  -- Node2
8449
8450    function Task_Definition
8451      (N : Node_Id) return Node_Id;    -- Node3
8452
8453    function Task_Present
8454      (N : Node_Id) return Boolean;    -- Flag5
8455
8456    function Then_Actions
8457      (N : Node_Id) return List_Id;    -- List2
8458
8459    function Then_Statements
8460      (N : Node_Id) return List_Id;    -- List2
8461
8462    function Treat_Fixed_As_Integer
8463      (N : Node_Id) return Boolean;    -- Flag14
8464
8465    function Triggering_Alternative
8466      (N : Node_Id) return Node_Id;    -- Node1
8467
8468    function Triggering_Statement
8469      (N : Node_Id) return Node_Id;    -- Node1
8470
8471    function TSS_Elist
8472      (N : Node_Id) return Elist_Id;   -- Elist3
8473
8474    function Type_Definition
8475      (N : Node_Id) return Node_Id;    -- Node3
8476
8477    function Unit
8478      (N : Node_Id) return Node_Id;    -- Node2
8479
8480    function Unknown_Discriminants_Present
8481      (N : Node_Id) return Boolean;    -- Flag13
8482
8483    function Unreferenced_In_Spec
8484      (N : Node_Id) return Boolean;    -- Flag7
8485
8486    function Variant_Part
8487      (N : Node_Id) return Node_Id;    -- Node4
8488
8489    function Variants
8490      (N : Node_Id) return List_Id;    -- List1
8491
8492    function Visible_Declarations
8493      (N : Node_Id) return List_Id;    -- List2
8494
8495    function Was_Originally_Stub
8496      (N : Node_Id) return Boolean;    -- Flag13
8497
8498    function Zero_Cost_Handling
8499      (N : Node_Id) return Boolean;    -- Flag5
8500
8501    --  End functions (note used by xsinfo utility program to end processing)
8502
8503    ----------------------------
8504    -- Node Update Procedures --
8505    ----------------------------
8506
8507    --  These are the corresponding node update routines, which again provide
8508    --  a high level logical access with type checking. In addition to setting
8509    --  the indicated field of the node N to the given Val, in the case of
8510    --  tree pointers (List1-4), the parent pointer of the Val node is set to
8511    --  point back to node N. This automates the setting of the parent pointer.
8512
8513    procedure Set_ABE_Is_Certain
8514      (N : Node_Id; Val : Boolean := True);    -- Flag18
8515
8516    procedure Set_Abort_Present
8517      (N : Node_Id; Val : Boolean := True);    -- Flag15
8518
8519    procedure Set_Abortable_Part
8520      (N : Node_Id; Val : Node_Id);            -- Node2
8521
8522    procedure Set_Abstract_Present
8523      (N : Node_Id; Val : Boolean := True);    -- Flag4
8524
8525    procedure Set_Accept_Handler_Records
8526      (N : Node_Id; Val : List_Id);            -- List5
8527
8528    procedure Set_Accept_Statement
8529      (N : Node_Id; Val : Node_Id);            -- Node2
8530
8531    procedure Set_Access_Definition
8532      (N : Node_Id; Val : Node_Id);            -- Node3
8533
8534    procedure Set_Access_To_Subprogram_Definition
8535      (N : Node_Id; Val : Node_Id);            -- Node3
8536
8537    procedure Set_Access_Types_To_Process
8538      (N : Node_Id; Val : Elist_Id);           -- Elist2
8539
8540    procedure Set_Actions
8541      (N : Node_Id; Val : List_Id);            -- List1
8542
8543    procedure Set_Activation_Chain_Entity
8544      (N : Node_Id; Val : Node_Id);            -- Node3
8545
8546    procedure Set_Acts_As_Spec
8547      (N : Node_Id; Val : Boolean := True);    -- Flag4
8548
8549    procedure Set_Actual_Designated_Subtype
8550      (N : Node_Id; Val : Node_Id);            -- Node4
8551
8552    procedure Set_Address_Warning_Posted
8553      (N : Node_Id; Val : Boolean := True);    -- Flag18
8554
8555    procedure Set_Aggregate_Bounds
8556      (N : Node_Id; Val : Node_Id);            -- Node3
8557
8558    procedure Set_Aliased_Present
8559      (N : Node_Id; Val : Boolean := True);    -- Flag4
8560
8561    procedure Set_All_Others
8562      (N : Node_Id; Val : Boolean := True);    -- Flag11
8563
8564    procedure Set_All_Present
8565      (N : Node_Id; Val : Boolean := True);    -- Flag15
8566
8567    procedure Set_Alternatives
8568      (N : Node_Id; Val : List_Id);            -- List4
8569
8570    procedure Set_Ancestor_Part
8571      (N : Node_Id; Val : Node_Id);            -- Node3
8572
8573    procedure Set_Array_Aggregate
8574      (N : Node_Id; Val : Node_Id);            -- Node3
8575
8576    procedure Set_Assignment_OK
8577      (N : Node_Id; Val : Boolean := True);    -- Flag15
8578
8579    procedure Set_Associated_Node
8580      (N : Node_Id; Val : Node_Id);            -- Node4
8581
8582    procedure Set_Attribute_Name
8583      (N : Node_Id; Val : Name_Id);            -- Name2
8584
8585    procedure Set_At_End_Proc
8586      (N : Node_Id; Val : Node_Id);            -- Node1
8587
8588    procedure Set_Aux_Decls_Node
8589      (N : Node_Id; Val : Node_Id);            -- Node5
8590
8591    procedure Set_Backwards_OK
8592      (N : Node_Id; Val : Boolean := True);    -- Flag6
8593
8594    procedure Set_Bad_Is_Detected
8595      (N : Node_Id; Val : Boolean := True);    -- Flag15
8596
8597    procedure Set_Body_Required
8598      (N : Node_Id; Val : Boolean := True);    -- Flag13
8599
8600    procedure Set_Body_To_Inline
8601      (N : Node_Id; Val : Node_Id);            -- Node3
8602
8603    procedure Set_Box_Present
8604      (N : Node_Id; Val : Boolean := True);    -- Flag15
8605
8606    procedure Set_By_Ref
8607      (N : Node_Id; Val : Boolean := True);    -- Flag5
8608
8609    procedure Set_Char_Literal_Value
8610      (N : Node_Id; Val : Uint);               -- Uint2
8611
8612    procedure Set_Chars
8613      (N : Node_Id; Val : Name_Id);            -- Name1
8614
8615    procedure Set_Check_Address_Alignment
8616      (N : Node_Id; Val : Boolean := True);    -- Flag11
8617
8618    procedure Set_Choice_Parameter
8619      (N : Node_Id; Val : Node_Id);            -- Node2
8620
8621    procedure Set_Coextensions
8622      (N : Node_Id; Val : Elist_Id);           -- Elist4
8623
8624    procedure Set_Choices
8625      (N : Node_Id; Val : List_Id);            -- List1
8626
8627    procedure Set_Comes_From_Extended_Return_Statement
8628      (N : Node_Id; Val : Boolean := True);    -- Flag18
8629
8630    procedure Set_Compile_Time_Known_Aggregate
8631      (N : Node_Id; Val : Boolean := True);    -- Flag18
8632
8633    procedure Set_Component_Associations
8634      (N : Node_Id; Val : List_Id);            -- List2
8635
8636    procedure Set_Component_Clauses
8637      (N : Node_Id; Val : List_Id);            -- List3
8638
8639    procedure Set_Component_Definition
8640      (N : Node_Id; Val : Node_Id);            -- Node4
8641
8642    procedure Set_Component_Items
8643      (N : Node_Id; Val : List_Id);            -- List3
8644
8645    procedure Set_Component_List
8646      (N : Node_Id; Val : Node_Id);            -- Node1
8647
8648    procedure Set_Component_Name
8649      (N : Node_Id; Val : Node_Id);            -- Node1
8650
8651    procedure Set_Componentwise_Assignment
8652      (N : Node_Id; Val : Boolean := True);    -- Flag14
8653
8654    procedure Set_Condition
8655      (N : Node_Id; Val : Node_Id);            -- Node1
8656
8657    procedure Set_Condition_Actions
8658      (N : Node_Id; Val : List_Id);            -- List3
8659
8660    procedure Set_Config_Pragmas
8661      (N : Node_Id; Val : List_Id);            -- List4
8662
8663    procedure Set_Constant_Present
8664      (N : Node_Id; Val : Boolean := True);    -- Flag17
8665
8666    procedure Set_Constraint
8667      (N : Node_Id; Val : Node_Id);            -- Node3
8668
8669    procedure Set_Constraints
8670      (N : Node_Id; Val : List_Id);            -- List1
8671
8672    procedure Set_Context_Installed
8673      (N : Node_Id; Val : Boolean := True);    -- Flag13
8674
8675    procedure Set_Context_Items
8676      (N : Node_Id; Val : List_Id);            -- List1
8677
8678    procedure Set_Context_Pending
8679      (N : Node_Id; Val : Boolean := True);    -- Flag16
8680
8681    procedure Set_Controlling_Argument
8682      (N : Node_Id; Val : Node_Id);            -- Node1
8683
8684    procedure Set_Conversion_OK
8685      (N : Node_Id; Val : Boolean := True);    -- Flag14
8686
8687    procedure Set_Corresponding_Body
8688      (N : Node_Id; Val : Node_Id);            -- Node5
8689
8690    procedure Set_Corresponding_Formal_Spec
8691      (N : Node_Id; Val : Node_Id);            -- Node3
8692
8693    procedure Set_Corresponding_Generic_Association
8694      (N : Node_Id; Val : Node_Id);            -- Node5
8695
8696    procedure Set_Corresponding_Integer_Value
8697      (N : Node_Id; Val : Uint);               -- Uint4
8698
8699    procedure Set_Corresponding_Spec
8700      (N : Node_Id; Val : Node_Id);            -- Node5
8701
8702    procedure Set_Corresponding_Stub
8703      (N : Node_Id; Val : Node_Id);            -- Node3
8704
8705    procedure Set_Dcheck_Function
8706      (N : Node_Id; Val : Entity_Id);          -- Node5
8707
8708    procedure Set_Debug_Statement
8709      (N : Node_Id; Val : Node_Id);            -- Node3
8710
8711    procedure Set_Declarations
8712      (N : Node_Id; Val : List_Id);            -- List2
8713
8714    procedure Set_Default_Expression
8715      (N : Node_Id; Val : Node_Id);            -- Node5
8716
8717    procedure Set_Default_Name
8718      (N : Node_Id; Val : Node_Id);            -- Node2
8719
8720    procedure Set_Defining_Identifier
8721      (N : Node_Id; Val : Entity_Id);          -- Node1
8722
8723    procedure Set_Defining_Unit_Name
8724      (N : Node_Id; Val : Node_Id);            -- Node1
8725
8726    procedure Set_Delay_Alternative
8727      (N : Node_Id; Val : Node_Id);            -- Node4
8728
8729    procedure Set_Delay_Statement
8730      (N : Node_Id; Val : Node_Id);            -- Node2
8731
8732    procedure Set_Delta_Expression
8733      (N : Node_Id; Val : Node_Id);            -- Node3
8734
8735    procedure Set_Digits_Expression
8736      (N : Node_Id; Val : Node_Id);            -- Node2
8737
8738    procedure Set_Discr_Check_Funcs_Built
8739      (N : Node_Id; Val : Boolean := True);    -- Flag11
8740
8741    procedure Set_Discrete_Choices
8742      (N : Node_Id; Val : List_Id);            -- List4
8743
8744    procedure Set_Discrete_Range
8745      (N : Node_Id; Val : Node_Id);            -- Node4
8746
8747    procedure Set_Discrete_Subtype_Definition
8748      (N : Node_Id; Val : Node_Id);            -- Node4
8749
8750    procedure Set_Discrete_Subtype_Definitions
8751      (N : Node_Id; Val : List_Id);            -- List2
8752
8753    procedure Set_Discriminant_Specifications
8754      (N : Node_Id; Val : List_Id);            -- List4
8755
8756    procedure Set_Discriminant_Type
8757      (N : Node_Id; Val : Node_Id);            -- Node5
8758
8759    procedure Set_Do_Accessibility_Check
8760      (N : Node_Id; Val : Boolean := True);    -- Flag13
8761
8762    procedure Set_Do_Discriminant_Check
8763      (N : Node_Id; Val : Boolean := True);    -- Flag13
8764
8765    procedure Set_Do_Division_Check
8766      (N : Node_Id; Val : Boolean := True);    -- Flag13
8767
8768    procedure Set_Do_Length_Check
8769      (N : Node_Id; Val : Boolean := True);    -- Flag4
8770
8771    procedure Set_Do_Overflow_Check
8772      (N : Node_Id; Val : Boolean := True);    -- Flag17
8773
8774    procedure Set_Do_Range_Check
8775      (N : Node_Id; Val : Boolean := True);    -- Flag9
8776
8777    procedure Set_Do_Storage_Check
8778      (N : Node_Id; Val : Boolean := True);    -- Flag17
8779
8780    procedure Set_Do_Tag_Check
8781      (N : Node_Id; Val : Boolean := True);    -- Flag13
8782
8783    procedure Set_Elaborate_All_Desirable
8784      (N : Node_Id; Val : Boolean := True);    -- Flag9
8785
8786    procedure Set_Elaborate_All_Present
8787      (N : Node_Id; Val : Boolean := True);    -- Flag14
8788
8789    procedure Set_Elaborate_Desirable
8790      (N : Node_Id; Val : Boolean := True);    -- Flag11
8791
8792    procedure Set_Elaborate_Present
8793      (N : Node_Id; Val : Boolean := True);    -- Flag4
8794
8795    procedure Set_Elaboration_Boolean
8796      (N : Node_Id; Val : Node_Id);            -- Node2
8797
8798    procedure Set_Else_Actions
8799      (N : Node_Id; Val : List_Id);            -- List3
8800
8801    procedure Set_Else_Statements
8802      (N : Node_Id; Val : List_Id);            -- List4
8803
8804    procedure Set_Elsif_Parts
8805      (N : Node_Id; Val : List_Id);            -- List3
8806
8807    procedure Set_Enclosing_Variant
8808      (N : Node_Id; Val : Node_Id);            -- Node2
8809
8810    procedure Set_End_Label
8811      (N : Node_Id; Val : Node_Id);            -- Node4
8812
8813    procedure Set_End_Span
8814      (N : Node_Id; Val : Uint);               -- Uint5
8815
8816    procedure Set_Entity
8817      (N : Node_Id; Val : Node_Id);            -- Node4
8818
8819    procedure Set_Entry_Body_Formal_Part
8820      (N : Node_Id; Val : Node_Id);            -- Node5
8821
8822    procedure Set_Entry_Call_Alternative
8823      (N : Node_Id; Val : Node_Id);            -- Node1
8824
8825    procedure Set_Entry_Call_Statement
8826      (N : Node_Id; Val : Node_Id);            -- Node1
8827
8828    procedure Set_Entry_Direct_Name
8829      (N : Node_Id; Val : Node_Id);            -- Node1
8830
8831    procedure Set_Entry_Index
8832      (N : Node_Id; Val : Node_Id);            -- Node5
8833
8834    procedure Set_Entry_Index_Specification
8835      (N : Node_Id; Val : Node_Id);            -- Node4
8836
8837    procedure Set_Etype
8838      (N : Node_Id; Val : Node_Id);            -- Node5
8839
8840    procedure Set_Exception_Choices
8841      (N : Node_Id; Val : List_Id);            -- List4
8842
8843    procedure Set_Exception_Handlers
8844      (N : Node_Id; Val : List_Id);            -- List5
8845
8846    procedure Set_Exception_Junk
8847      (N : Node_Id; Val : Boolean := True);    -- Flag8
8848
8849    procedure Set_Exception_Label
8850      (N : Node_Id; Val : Node_Id);            -- Node5
8851
8852    procedure Set_Expansion_Delayed
8853      (N : Node_Id; Val : Boolean := True);    -- Flag11
8854
8855    procedure Set_Explicit_Actual_Parameter
8856      (N : Node_Id; Val : Node_Id);            -- Node3
8857
8858    procedure Set_Explicit_Generic_Actual_Parameter
8859      (N : Node_Id; Val : Node_Id);            -- Node1
8860
8861    procedure Set_Expression
8862      (N : Node_Id; Val : Node_Id);            -- Node3
8863
8864    procedure Set_Expressions
8865      (N : Node_Id; Val : List_Id);            -- List1
8866
8867    procedure Set_First_Bit
8868      (N : Node_Id; Val : Node_Id);            -- Node3
8869
8870    procedure Set_First_Inlined_Subprogram
8871      (N : Node_Id; Val : Entity_Id);          -- Node3
8872
8873    procedure Set_First_Name
8874      (N : Node_Id; Val : Boolean := True);    -- Flag5
8875
8876    procedure Set_First_Named_Actual
8877      (N : Node_Id; Val : Node_Id);            -- Node4
8878
8879    procedure Set_First_Real_Statement
8880      (N : Node_Id; Val : Node_Id);            -- Node2
8881
8882    procedure Set_First_Subtype_Link
8883      (N : Node_Id; Val : Entity_Id);          -- Node5
8884
8885    procedure Set_Float_Truncate
8886      (N : Node_Id; Val : Boolean := True);    -- Flag11
8887
8888    procedure Set_Formal_Type_Definition
8889      (N : Node_Id; Val : Node_Id);            -- Node3
8890
8891    procedure Set_Forwards_OK
8892      (N : Node_Id; Val : Boolean := True);    -- Flag5
8893
8894    procedure Set_From_At_Mod
8895      (N : Node_Id; Val : Boolean := True);    -- Flag4
8896
8897    procedure Set_From_At_End
8898      (N : Node_Id; Val : Boolean := True);    -- Flag4
8899
8900    procedure Set_From_Default
8901      (N : Node_Id; Val : Boolean := True);    -- Flag6
8902
8903    procedure Set_Generic_Associations
8904      (N : Node_Id; Val : List_Id);            -- List3
8905
8906    procedure Set_Generic_Formal_Declarations
8907      (N : Node_Id; Val : List_Id);            -- List2
8908
8909    procedure Set_Generic_Parent
8910      (N : Node_Id; Val : Node_Id);            -- Node5
8911
8912    procedure Set_Generic_Parent_Type
8913      (N : Node_Id; Val : Node_Id);            -- Node4
8914
8915    procedure Set_Handled_Statement_Sequence
8916      (N : Node_Id; Val : Node_Id);            -- Node4
8917
8918    procedure Set_Handler_List_Entry
8919      (N : Node_Id; Val : Node_Id);            -- Node2
8920
8921    procedure Set_Has_Created_Identifier
8922      (N : Node_Id; Val : Boolean := True);    -- Flag15
8923
8924    procedure Set_Has_Dynamic_Length_Check
8925      (N : Node_Id; Val : Boolean := True);    -- Flag10
8926
8927    procedure Set_Has_Dynamic_Range_Check
8928      (N : Node_Id; Val : Boolean := True);    -- Flag12
8929
8930    procedure Set_Has_Init_Expression
8931      (N : Node_Id; Val : Boolean := True);    -- Flag14
8932
8933    procedure Set_Has_Local_Raise
8934      (N : Node_Id; Val : Boolean := True);    -- Flag8
8935
8936    procedure Set_Has_No_Elaboration_Code
8937      (N : Node_Id; Val : Boolean := True);    -- Flag17
8938
8939    procedure Set_Has_Priority_Pragma
8940      (N : Node_Id; Val : Boolean := True);    -- Flag6
8941
8942    procedure Set_Has_Private_View
8943      (N : Node_Id; Val : Boolean := True);    -- Flag11
8944
8945    procedure Set_Has_Relative_Deadline_Pragma
8946      (N : Node_Id; Val : Boolean := True);    -- Flag9
8947
8948    procedure Set_Has_Self_Reference
8949      (N : Node_Id; Val : Boolean := True);    -- Flag13
8950
8951    procedure Set_Has_Storage_Size_Pragma
8952      (N : Node_Id; Val : Boolean := True);    -- Flag5
8953
8954    procedure Set_Has_Task_Info_Pragma
8955      (N : Node_Id; Val : Boolean := True);    -- Flag7
8956
8957    procedure Set_Has_Task_Name_Pragma
8958      (N : Node_Id; Val : Boolean := True);    -- Flag8
8959
8960    procedure Set_Has_Wide_Character
8961      (N : Node_Id; Val : Boolean := True);    -- Flag11
8962
8963    procedure Set_Hidden_By_Use_Clause
8964      (N : Node_Id; Val : Elist_Id);           -- Elist4
8965
8966    procedure Set_High_Bound
8967      (N : Node_Id; Val : Node_Id);            -- Node2
8968
8969    procedure Set_Identifier
8970      (N : Node_Id; Val : Node_Id);            -- Node1
8971
8972    procedure Set_Interface_List
8973      (N : Node_Id; Val : List_Id);            -- List2
8974
8975    procedure Set_Interface_Present
8976      (N : Node_Id; Val : Boolean := True);    -- Flag16
8977
8978    procedure Set_Implicit_With
8979      (N : Node_Id; Val : Boolean := True);    -- Flag16
8980
8981    procedure Set_In_Present
8982      (N : Node_Id; Val : Boolean := True);    -- Flag15
8983
8984    procedure Set_Includes_Infinities
8985      (N : Node_Id; Val : Boolean := True);    -- Flag11
8986
8987    procedure Set_Instance_Spec
8988      (N : Node_Id; Val : Node_Id);            -- Node5
8989
8990    procedure Set_Intval
8991      (N : Node_Id; Val : Uint);               -- Uint3
8992
8993    procedure Set_Is_Accessibility_Actual
8994      (N : Node_Id; Val : Boolean := True);    -- Flag12
8995
8996    procedure Set_Is_Asynchronous_Call_Block
8997      (N : Node_Id; Val : Boolean := True);    -- Flag7
8998
8999    procedure Set_Is_Component_Left_Opnd
9000      (N : Node_Id; Val : Boolean := True);    -- Flag13
9001
9002    procedure Set_Is_Component_Right_Opnd
9003      (N : Node_Id; Val : Boolean := True);    -- Flag14
9004
9005    procedure Set_Is_Controlling_Actual
9006      (N : Node_Id; Val : Boolean := True);    -- Flag16
9007
9008    procedure Set_Is_Dynamic_Coextension
9009      (N : Node_Id; Val : Boolean := True);    -- Flag18
9010
9011    procedure Set_Is_Elsif
9012      (N : Node_Id; Val : Boolean := True);    -- Flag13
9013
9014    procedure Set_Is_Entry_Barrier_Function
9015      (N : Node_Id; Val : Boolean := True);    -- Flag8
9016
9017    procedure Set_Is_Expanded_Build_In_Place_Call
9018      (N : Node_Id; Val : Boolean := True);    -- Flag11
9019
9020    procedure Set_Is_Folded_In_Parser
9021      (N : Node_Id; Val : Boolean := True);    -- Flag4
9022
9023    procedure Set_Is_In_Discriminant_Check
9024      (N : Node_Id; Val : Boolean := True);    -- Flag11
9025
9026    procedure Set_Is_Machine_Number
9027      (N : Node_Id; Val : Boolean := True);    -- Flag11
9028
9029    procedure Set_Is_Null_Loop
9030      (N : Node_Id; Val : Boolean := True);    -- Flag16
9031
9032    procedure Set_Is_Overloaded
9033      (N : Node_Id; Val : Boolean := True);    -- Flag5
9034
9035    procedure Set_Is_Power_Of_2_For_Shift
9036      (N : Node_Id; Val : Boolean := True);    -- Flag13
9037
9038    procedure Set_Is_Protected_Subprogram_Body
9039      (N : Node_Id; Val : Boolean := True);    -- Flag7
9040
9041    procedure Set_Is_Static_Coextension
9042      (N : Node_Id; Val : Boolean := True);    -- Flag14
9043
9044    procedure Set_Is_Static_Expression
9045      (N : Node_Id; Val : Boolean := True);    -- Flag6
9046
9047    procedure Set_Is_Subprogram_Descriptor
9048      (N : Node_Id; Val : Boolean := True);    -- Flag16
9049
9050    procedure Set_Is_Task_Allocation_Block
9051      (N : Node_Id; Val : Boolean := True);    -- Flag6
9052
9053    procedure Set_Is_Task_Master
9054      (N : Node_Id; Val : Boolean := True);    -- Flag5
9055
9056    procedure Set_Iteration_Scheme
9057      (N : Node_Id; Val : Node_Id);            -- Node2
9058
9059    procedure Set_Itype
9060      (N : Node_Id; Val : Entity_Id);          -- Node1
9061
9062    procedure Set_Kill_Range_Check
9063      (N : Node_Id; Val : Boolean := True);    -- Flag11
9064
9065    procedure Set_Last_Bit
9066      (N : Node_Id; Val : Node_Id);            -- Node4
9067
9068    procedure Set_Last_Name
9069      (N : Node_Id; Val : Boolean := True);    -- Flag6
9070
9071    procedure Set_Library_Unit
9072      (N : Node_Id; Val : Node_Id);            -- Node4
9073
9074    procedure Set_Label_Construct
9075      (N : Node_Id; Val : Node_Id);            -- Node2
9076
9077    procedure Set_Left_Opnd
9078      (N : Node_Id; Val : Node_Id);            -- Node2
9079
9080    procedure Set_Limited_View_Installed
9081      (N : Node_Id; Val : Boolean := True);    -- Flag18
9082
9083    procedure Set_Limited_Present
9084      (N : Node_Id; Val : Boolean := True);    -- Flag17
9085
9086    procedure Set_Literals
9087      (N : Node_Id; Val : List_Id);            -- List1
9088
9089    procedure Set_Local_Raise_Not_OK
9090      (N : Node_Id; Val : Boolean := True);    -- Flag7
9091
9092    procedure Set_Local_Raise_Statements
9093      (N : Node_Id; Val : Elist_Id);           -- Elist1
9094
9095    procedure Set_Loop_Actions
9096      (N : Node_Id; Val : List_Id);            -- List2
9097
9098    procedure Set_Loop_Parameter_Specification
9099      (N : Node_Id; Val : Node_Id);            -- Node4
9100
9101    procedure Set_Low_Bound
9102      (N : Node_Id; Val : Node_Id);            -- Node1
9103
9104    procedure Set_Mod_Clause
9105      (N : Node_Id; Val : Node_Id);            -- Node2
9106
9107    procedure Set_More_Ids
9108      (N : Node_Id; Val : Boolean := True);    -- Flag5
9109
9110    procedure Set_Must_Be_Byte_Aligned
9111      (N : Node_Id; Val : Boolean := True);    -- Flag14
9112
9113    procedure Set_Must_Not_Freeze
9114      (N : Node_Id; Val : Boolean := True);    -- Flag8
9115
9116    procedure Set_Must_Not_Override
9117      (N : Node_Id; Val : Boolean := True);    -- Flag15
9118
9119    procedure Set_Must_Override
9120      (N : Node_Id; Val : Boolean := True);    -- Flag14
9121
9122    procedure Set_Name
9123      (N : Node_Id; Val : Node_Id);            -- Node2
9124
9125    procedure Set_Names
9126      (N : Node_Id; Val : List_Id);            -- List2
9127
9128    procedure Set_Next_Entity
9129      (N : Node_Id; Val : Node_Id);            -- Node2
9130
9131    procedure Set_Next_Implicit_With
9132      (N : Node_Id; Val : Node_Id);            -- Node3
9133
9134    procedure Set_Next_Named_Actual
9135      (N : Node_Id; Val : Node_Id);            -- Node4
9136
9137    procedure Set_Next_Pragma
9138      (N : Node_Id; Val : Node_Id);            -- Node1
9139
9140    procedure Set_Next_Rep_Item
9141      (N : Node_Id; Val : Node_Id);            -- Node5
9142
9143    procedure Set_Next_Use_Clause
9144      (N : Node_Id; Val : Node_Id);            -- Node3
9145
9146    procedure Set_No_Ctrl_Actions
9147      (N : Node_Id; Val : Boolean := True);    -- Flag7
9148
9149    procedure Set_No_Elaboration_Check
9150      (N : Node_Id; Val : Boolean := True);    -- Flag14
9151
9152    procedure Set_No_Entities_Ref_In_Spec
9153      (N : Node_Id; Val : Boolean := True);    -- Flag8
9154
9155    procedure Set_No_Initialization
9156      (N : Node_Id; Val : Boolean := True);    -- Flag13
9157
9158    procedure Set_No_Truncation
9159      (N : Node_Id; Val : Boolean := True);    -- Flag17
9160
9161    procedure Set_Null_Present
9162      (N : Node_Id; Val : Boolean := True);    -- Flag13
9163
9164    procedure Set_Null_Exclusion_Present
9165      (N : Node_Id; Val : Boolean := True);    -- Flag11
9166
9167    procedure Set_Null_Exclusion_In_Return_Present
9168      (N : Node_Id; Val : Boolean := True);    -- Flag14
9169
9170    procedure Set_Null_Record_Present
9171      (N : Node_Id; Val : Boolean := True);    -- Flag17
9172
9173    procedure Set_Object_Definition
9174      (N : Node_Id; Val : Node_Id);            -- Node4
9175
9176    procedure Set_Original_Discriminant
9177      (N : Node_Id; Val : Node_Id);            -- Node2
9178
9179    procedure Set_Original_Entity
9180      (N : Node_Id; Val : Entity_Id);          -- Node2
9181
9182    procedure Set_Others_Discrete_Choices
9183      (N : Node_Id; Val : List_Id);            -- List1
9184
9185    procedure Set_Out_Present
9186      (N : Node_Id; Val : Boolean := True);    -- Flag17
9187
9188    procedure Set_Parameter_Associations
9189      (N : Node_Id; Val : List_Id);            -- List3
9190
9191    procedure Set_Parameter_List_Truncated
9192      (N : Node_Id; Val : Boolean := True);    -- Flag17
9193
9194    procedure Set_Parameter_Specifications
9195      (N : Node_Id; Val : List_Id);            -- List3
9196
9197    procedure Set_Parameter_Type
9198      (N : Node_Id; Val : Node_Id);            -- Node2
9199
9200    procedure Set_Parent_Spec
9201      (N : Node_Id; Val : Node_Id);            -- Node4
9202
9203    procedure Set_PPC_Enabled
9204      (N : Node_Id; Val : Boolean := True);    -- Flag5
9205
9206    procedure Set_Position
9207      (N : Node_Id; Val : Node_Id);            -- Node2
9208
9209    procedure Set_Pragma_Argument_Associations
9210      (N : Node_Id; Val : List_Id);            -- List2
9211
9212    procedure Set_Pragma_Identifier
9213      (N : Node_Id; Val : Node_Id);            -- Node4
9214
9215    procedure Set_Pragmas_After
9216      (N : Node_Id; Val : List_Id);            -- List5
9217
9218    procedure Set_Pragmas_Before
9219      (N : Node_Id; Val : List_Id);            -- List4
9220
9221    procedure Set_Prefix
9222      (N : Node_Id; Val : Node_Id);            -- Node3
9223
9224    procedure Set_Present_Expr
9225      (N : Node_Id; Val : Uint);               -- Uint3
9226
9227    procedure Set_Prev_Ids
9228      (N : Node_Id; Val : Boolean := True);    -- Flag6
9229
9230    procedure Set_Print_In_Hex
9231      (N : Node_Id; Val : Boolean := True);    -- Flag13
9232
9233    procedure Set_Private_Declarations
9234      (N : Node_Id; Val : List_Id);            -- List3
9235
9236    procedure Set_Private_Present
9237      (N : Node_Id; Val : Boolean := True);    -- Flag15
9238
9239    procedure Set_Procedure_To_Call
9240      (N : Node_Id; Val : Node_Id);            -- Node2
9241
9242    procedure Set_Proper_Body
9243      (N : Node_Id; Val : Node_Id);            -- Node1
9244
9245    procedure Set_Protected_Definition
9246      (N : Node_Id; Val : Node_Id);            -- Node3
9247
9248    procedure Set_Protected_Present
9249      (N : Node_Id; Val : Boolean := True);    -- Flag6
9250
9251    procedure Set_Raises_Constraint_Error
9252      (N : Node_Id; Val : Boolean := True);    -- Flag7
9253
9254    procedure Set_Range_Constraint
9255      (N : Node_Id; Val : Node_Id);            -- Node4
9256
9257    procedure Set_Range_Expression
9258      (N : Node_Id; Val : Node_Id);            -- Node4
9259
9260    procedure Set_Real_Range_Specification
9261      (N : Node_Id; Val : Node_Id);            -- Node4
9262
9263    procedure Set_Realval
9264      (N : Node_Id; Val : Ureal);              -- Ureal3
9265
9266    procedure Set_Reason
9267      (N : Node_Id; Val : Uint);               -- Uint3
9268
9269    procedure Set_Record_Extension_Part
9270      (N : Node_Id; Val : Node_Id);            -- Node3
9271
9272    procedure Set_Redundant_Use
9273      (N : Node_Id; Val : Boolean := True);    -- Flag13
9274
9275    procedure Set_Renaming_Exception
9276      (N : Node_Id; Val : Node_Id);            -- Node2
9277
9278    procedure Set_Result_Definition
9279      (N : Node_Id; Val : Node_Id);            -- Node4
9280
9281    procedure Set_Return_Object_Declarations
9282      (N : Node_Id; Val : List_Id);            -- List3
9283
9284    procedure Set_Return_Statement_Entity
9285      (N : Node_Id; Val : Node_Id);            -- Node5
9286
9287    procedure Set_Reverse_Present
9288      (N : Node_Id; Val : Boolean := True);    -- Flag15
9289
9290    procedure Set_Right_Opnd
9291      (N : Node_Id; Val : Node_Id);            -- Node3
9292
9293    procedure Set_Rounded_Result
9294      (N : Node_Id; Val : Boolean := True);    -- Flag18
9295
9296    procedure Set_SCIL_Controlling_Tag
9297      (N : Node_Id; Val : Node_Id);            -- Node5
9298
9299    procedure Set_SCIL_Entity
9300      (N : Node_Id; Val : Node_Id);            -- Node4
9301
9302    procedure Set_SCIL_Related_Node
9303      (N : Node_Id; Val : Node_Id);            -- Node1
9304
9305    procedure Set_SCIL_Target_Prim
9306      (N : Node_Id; Val : Node_Id);            -- Node2
9307
9308    procedure Set_Scope
9309      (N : Node_Id; Val : Node_Id);            -- Node3
9310
9311    procedure Set_Select_Alternatives
9312      (N : Node_Id; Val : List_Id);            -- List1
9313
9314    procedure Set_Selector_Name
9315      (N : Node_Id; Val : Node_Id);            -- Node2
9316
9317    procedure Set_Selector_Names
9318      (N : Node_Id; Val : List_Id);            -- List1
9319
9320    procedure Set_Shift_Count_OK
9321      (N : Node_Id; Val : Boolean := True);    -- Flag4
9322
9323    procedure Set_Source_Type
9324      (N : Node_Id; Val : Entity_Id);          -- Node1
9325
9326    procedure Set_Specification
9327      (N : Node_Id; Val : Node_Id);            -- Node1
9328
9329    procedure Set_Statements
9330      (N : Node_Id; Val : List_Id);            -- List3
9331
9332    procedure Set_Static_Processing_OK
9333      (N : Node_Id; Val : Boolean);            -- Flag4
9334
9335    procedure Set_Storage_Pool
9336      (N : Node_Id; Val : Node_Id);            -- Node1
9337
9338    procedure Set_Strval
9339      (N : Node_Id; Val : String_Id);          -- Str3
9340
9341    procedure Set_Subtype_Indication
9342      (N : Node_Id; Val : Node_Id);            -- Node5
9343
9344    procedure Set_Subtype_Mark
9345      (N : Node_Id; Val : Node_Id);            -- Node4
9346
9347    procedure Set_Subtype_Marks
9348      (N : Node_Id; Val : List_Id);            -- List2
9349
9350    procedure Set_Suppress_Loop_Warnings
9351      (N : Node_Id; Val : Boolean := True);    -- Flag17
9352
9353    procedure Set_Synchronized_Present
9354      (N : Node_Id; Val : Boolean := True);    -- Flag7
9355
9356    procedure Set_Tagged_Present
9357      (N : Node_Id; Val : Boolean := True);    -- Flag15
9358
9359    procedure Set_Target_Type
9360      (N : Node_Id; Val : Entity_Id);          -- Node2
9361
9362    procedure Set_Task_Definition
9363      (N : Node_Id; Val : Node_Id);            -- Node3
9364
9365    procedure Set_Task_Present
9366      (N : Node_Id; Val : Boolean := True);    -- Flag5
9367
9368    procedure Set_Then_Actions
9369      (N : Node_Id; Val : List_Id);            -- List2
9370
9371    procedure Set_Then_Statements
9372      (N : Node_Id; Val : List_Id);            -- List2
9373
9374    procedure Set_Treat_Fixed_As_Integer
9375      (N : Node_Id; Val : Boolean := True);    -- Flag14
9376
9377    procedure Set_Triggering_Alternative
9378      (N : Node_Id; Val : Node_Id);            -- Node1
9379
9380    procedure Set_Triggering_Statement
9381      (N : Node_Id; Val : Node_Id);            -- Node1
9382
9383    procedure Set_TSS_Elist
9384      (N : Node_Id; Val : Elist_Id);           -- Elist3
9385
9386    procedure Set_Type_Definition
9387      (N : Node_Id; Val : Node_Id);            -- Node3
9388
9389    procedure Set_Unit
9390      (N : Node_Id; Val : Node_Id);            -- Node2
9391
9392    procedure Set_Unknown_Discriminants_Present
9393      (N : Node_Id; Val : Boolean := True);    -- Flag13
9394
9395    procedure Set_Unreferenced_In_Spec
9396      (N : Node_Id; Val : Boolean := True);    -- Flag7
9397
9398    procedure Set_Variant_Part
9399      (N : Node_Id; Val : Node_Id);            -- Node4
9400
9401    procedure Set_Variants
9402      (N : Node_Id; Val : List_Id);            -- List1
9403
9404    procedure Set_Visible_Declarations
9405      (N : Node_Id; Val : List_Id);            -- List2
9406
9407    procedure Set_Was_Originally_Stub
9408      (N : Node_Id; Val : Boolean := True);    -- Flag13
9409
9410    procedure Set_Zero_Cost_Handling
9411      (N : Node_Id; Val : Boolean := True);    -- Flag5
9412
9413    -------------------------
9414    -- Iterator Procedures --
9415    -------------------------
9416
9417    --  The call to Next_xxx (N) is equivalent to N := Next_xxx (N)
9418
9419    procedure Next_Entity       (N : in out Node_Id);
9420    procedure Next_Named_Actual (N : in out Node_Id);
9421    procedure Next_Rep_Item     (N : in out Node_Id);
9422    procedure Next_Use_Clause   (N : in out Node_Id);
9423
9424    --------------------------------------
9425    -- Logical Access to End_Span Field --
9426    --------------------------------------
9427
9428    function End_Location (N : Node_Id) return Source_Ptr;
9429    --  N is an N_If_Statement or N_Case_Statement node, and this
9430    --  function returns the location of the IF token in the END IF
9431    --  sequence by translating the value of the End_Span field.
9432
9433    procedure Set_End_Location (N : Node_Id; S : Source_Ptr);
9434    --  N is an N_If_Statement or N_Case_Statement node. This procedure
9435    --  sets the End_Span field to correspond to the given value S. In
9436    --  other words, End_Span is set to the difference between S and
9437    --  Sloc (N), the starting location.
9438
9439    --------------------------------
9440    -- Node_Kind Membership Tests --
9441    --------------------------------
9442
9443    --  The following functions allow a convenient notation for testing whether
9444    --  a Node_Kind value matches any one of a list of possible values. In each
9445    --  case True is returned if the given T argument is equal to any of the V
9446    --  arguments. Note that there is a similar set of functions defined in
9447    --  Atree where the first argument is a Node_Id whose Nkind field is tested.
9448
9449    function Nkind_In
9450      (T  : Node_Kind;
9451       V1 : Node_Kind;
9452       V2 : Node_Kind) return Boolean;
9453
9454    function Nkind_In
9455      (T  : Node_Kind;
9456       V1 : Node_Kind;
9457       V2 : Node_Kind;
9458       V3 : Node_Kind) return Boolean;
9459
9460    function Nkind_In
9461      (T  : Node_Kind;
9462       V1 : Node_Kind;
9463       V2 : Node_Kind;
9464       V3 : Node_Kind;
9465       V4 : Node_Kind) return Boolean;
9466
9467    function Nkind_In
9468      (T  : Node_Kind;
9469       V1 : Node_Kind;
9470       V2 : Node_Kind;
9471       V3 : Node_Kind;
9472       V4 : Node_Kind;
9473       V5 : Node_Kind) return Boolean;
9474
9475    function Nkind_In
9476      (T  : Node_Kind;
9477       V1 : Node_Kind;
9478       V2 : Node_Kind;
9479       V3 : Node_Kind;
9480       V4 : Node_Kind;
9481       V5 : Node_Kind;
9482       V6 : Node_Kind) return Boolean;
9483
9484    function Nkind_In
9485      (T  : Node_Kind;
9486       V1 : Node_Kind;
9487       V2 : Node_Kind;
9488       V3 : Node_Kind;
9489       V4 : Node_Kind;
9490       V5 : Node_Kind;
9491       V6 : Node_Kind;
9492       V7 : Node_Kind) return Boolean;
9493
9494    function Nkind_In
9495      (T  : Node_Kind;
9496       V1 : Node_Kind;
9497       V2 : Node_Kind;
9498       V3 : Node_Kind;
9499       V4 : Node_Kind;
9500       V5 : Node_Kind;
9501       V6 : Node_Kind;
9502       V7 : Node_Kind;
9503       V8 : Node_Kind) return Boolean;
9504
9505    function Nkind_In
9506      (T  : Node_Kind;
9507       V1 : Node_Kind;
9508       V2 : Node_Kind;
9509       V3 : Node_Kind;
9510       V4 : Node_Kind;
9511       V5 : Node_Kind;
9512       V6 : Node_Kind;
9513       V7 : Node_Kind;
9514       V8 : Node_Kind;
9515       V9 : Node_Kind) return Boolean;
9516
9517    pragma Inline (Nkind_In);
9518    --  Inline all above functions
9519
9520    -----------------------
9521    -- Utility Functions --
9522    -----------------------
9523
9524    function Pragma_Name (N : Node_Id) return Name_Id;
9525    pragma Inline (Pragma_Name);
9526    --  Convenient function to obtain Chars field of Pragma_Identifier
9527
9528    -----------------------------
9529    -- Syntactic Parent Tables --
9530    -----------------------------
9531
9532    --  These tables show for each node, and for each of the five fields,
9533    --  whether the corresponding field is syntactic (True) or semantic (False).
9534    --  Unused entries are also set to False.
9535
9536    subtype Field_Num is Natural range 1 .. 5;
9537
9538    Is_Syntactic_Field : constant array (Node_Kind, Field_Num) of Boolean := (
9539
9540    --  Following entries can be built automatically from the sinfo sources
9541    --  using the makeisf utility (currently this program is in spitbol).
9542
9543      N_Identifier =>
9544        (1 => True,    --  Chars (Name1)
9545         2 => False,   --  Original_Discriminant (Node2-Sem)
9546         3 => False,   --  unused
9547         4 => False,   --  Entity (Node4-Sem)
9548         5 => False),  --  Etype (Node5-Sem)
9549
9550      N_Integer_Literal =>
9551        (1 => False,   --  unused
9552         2 => False,   --  Original_Entity (Node2-Sem)
9553         3 => True,    --  Intval (Uint3)
9554         4 => False,   --  unused
9555         5 => False),  --  Etype (Node5-Sem)
9556
9557      N_Real_Literal =>
9558        (1 => False,   --  unused
9559         2 => False,   --  Original_Entity (Node2-Sem)
9560         3 => True,    --  Realval (Ureal3)
9561         4 => False,   --  Corresponding_Integer_Value (Uint4-Sem)
9562         5 => False),  --  Etype (Node5-Sem)
9563
9564      N_Character_Literal =>
9565        (1 => True,    --  Chars (Name1)
9566         2 => True,    --  Char_Literal_Value (Uint2)
9567         3 => False,   --  unused
9568         4 => False,   --  Entity (Node4-Sem)
9569         5 => False),  --  Etype (Node5-Sem)
9570
9571      N_String_Literal =>
9572        (1 => False,   --  unused
9573         2 => False,   --  unused
9574         3 => True,    --  Strval (Str3)
9575         4 => False,   --  unused
9576         5 => False),  --  Etype (Node5-Sem)
9577
9578      N_Pragma =>
9579        (1 => False,   --  Next_Pragma (Node1-Sem)
9580         2 => True,    --  Pragma_Argument_Associations (List2)
9581         3 => True,    --  Debug_Statement (Node3)
9582         4 => True,    --  Pragma_Identifier (Node4)
9583         5 => False),  --  Next_Rep_Item (Node5-Sem)
9584
9585      N_Pragma_Argument_Association =>
9586        (1 => True,    --  Chars (Name1)
9587         2 => False,   --  unused
9588         3 => True,    --  Expression (Node3)
9589         4 => False,   --  unused
9590         5 => False),  --  unused
9591
9592      N_Defining_Identifier =>
9593        (1 => True,    --  Chars (Name1)
9594         2 => False,   --  Next_Entity (Node2-Sem)
9595         3 => False,   --  Scope (Node3-Sem)
9596         4 => False,   --  unused
9597         5 => False),  --  Etype (Node5-Sem)
9598
9599      N_Full_Type_Declaration =>
9600        (1 => True,    --  Defining_Identifier (Node1)
9601         2 => False,   --  unused
9602         3 => True,    --  Type_Definition (Node3)
9603         4 => True,    --  Discriminant_Specifications (List4)
9604         5 => False),  --  unused
9605
9606      N_Subtype_Declaration =>
9607        (1 => True,    --  Defining_Identifier (Node1)
9608         2 => False,   --  unused
9609         3 => False,   --  unused
9610         4 => False,   --  Generic_Parent_Type (Node4-Sem)
9611         5 => True),   --  Subtype_Indication (Node5)
9612
9613      N_Subtype_Indication =>
9614        (1 => False,   --  unused
9615         2 => False,   --  unused
9616         3 => True,    --  Constraint (Node3)
9617         4 => True,    --  Subtype_Mark (Node4)
9618         5 => False),  --  Etype (Node5-Sem)
9619
9620      N_Object_Declaration =>
9621        (1 => True,    --  Defining_Identifier (Node1)
9622         2 => False,   --  Handler_List_Entry (Node2-Sem)
9623         3 => True,    --  Expression (Node3)
9624         4 => True,    --  Object_Definition (Node4)
9625         5 => False),  --  Corresponding_Generic_Association (Node5-Sem)
9626
9627      N_Number_Declaration =>
9628        (1 => True,    --  Defining_Identifier (Node1)
9629         2 => False,   --  unused
9630         3 => True,    --  Expression (Node3)
9631         4 => False,   --  unused
9632         5 => False),  --  unused
9633
9634      N_Derived_Type_Definition =>
9635        (1 => False,   --  unused
9636         2 => True,    --  Interface_List (List2)
9637         3 => True,    --  Record_Extension_Part (Node3)
9638         4 => False,   --  unused
9639         5 => True),   --  Subtype_Indication (Node5)
9640
9641      N_Range_Constraint =>
9642        (1 => False,   --  unused
9643         2 => False,   --  unused
9644         3 => False,   --  unused
9645         4 => True,    --  Range_Expression (Node4)
9646         5 => False),  --  unused
9647
9648      N_Range =>
9649        (1 => True,    --  Low_Bound (Node1)
9650         2 => True,    --  High_Bound (Node2)
9651         3 => False,   --  unused
9652         4 => False,   --  unused
9653         5 => False),  --  Etype (Node5-Sem)
9654
9655      N_Enumeration_Type_Definition =>
9656        (1 => True,    --  Literals (List1)
9657         2 => False,   --  unused
9658         3 => False,   --  unused
9659         4 => True,    --  End_Label (Node4)
9660         5 => False),  --  unused
9661
9662      N_Defining_Character_Literal =>
9663        (1 => True,    --  Chars (Name1)
9664         2 => False,   --  Next_Entity (Node2-Sem)
9665         3 => False,   --  Scope (Node3-Sem)
9666         4 => False,   --  unused
9667         5 => False),  --  Etype (Node5-Sem)
9668
9669      N_Signed_Integer_Type_Definition =>
9670        (1 => True,    --  Low_Bound (Node1)
9671         2 => True,    --  High_Bound (Node2)
9672         3 => False,   --  unused
9673         4 => False,   --  unused
9674         5 => False),  --  unused
9675
9676      N_Modular_Type_Definition =>
9677        (1 => False,   --  unused
9678         2 => False,   --  unused
9679         3 => True,    --  Expression (Node3)
9680         4 => False,   --  unused
9681         5 => False),  --  unused
9682
9683      N_Floating_Point_Definition =>
9684        (1 => False,   --  unused
9685         2 => True,    --  Digits_Expression (Node2)
9686         3 => False,   --  unused
9687         4 => True,    --  Real_Range_Specification (Node4)
9688         5 => False),  --  unused
9689
9690      N_Real_Range_Specification =>
9691        (1 => True,    --  Low_Bound (Node1)
9692         2 => True,    --  High_Bound (Node2)
9693         3 => False,   --  unused
9694         4 => False,   --  unused
9695         5 => False),  --  unused
9696
9697      N_Ordinary_Fixed_Point_Definition =>
9698        (1 => False,   --  unused
9699         2 => False,   --  unused
9700         3 => True,    --  Delta_Expression (Node3)
9701         4 => True,    --  Real_Range_Specification (Node4)
9702         5 => False),  --  unused
9703
9704      N_Decimal_Fixed_Point_Definition =>
9705        (1 => False,   --  unused
9706         2 => True,    --  Digits_Expression (Node2)
9707         3 => True,    --  Delta_Expression (Node3)
9708         4 => True,    --  Real_Range_Specification (Node4)
9709         5 => False),  --  unused
9710
9711      N_Digits_Constraint =>
9712        (1 => False,   --  unused
9713         2 => True,    --  Digits_Expression (Node2)
9714         3 => False,   --  unused
9715         4 => True,    --  Range_Constraint (Node4)
9716         5 => False),  --  unused
9717
9718      N_Unconstrained_Array_Definition =>
9719        (1 => False,   --  unused
9720         2 => True,    --  Subtype_Marks (List2)
9721         3 => False,   --  unused
9722         4 => True,    --  Component_Definition (Node4)
9723         5 => False),  --  unused
9724
9725      N_Constrained_Array_Definition =>
9726        (1 => False,   --  unused
9727         2 => True,    --  Discrete_Subtype_Definitions (List2)
9728         3 => False,   --  unused
9729         4 => True,    --  Component_Definition (Node4)
9730         5 => False),  --  unused
9731
9732      N_Component_Definition =>
9733        (1 => False,   --  unused
9734         2 => False,   --  unused
9735         3 => True,    --  Access_Definition (Node3)
9736         4 => False,   --  unused
9737         5 => True),   --  Subtype_Indication (Node5)
9738
9739      N_Discriminant_Specification =>
9740        (1 => True,    --  Defining_Identifier (Node1)
9741         2 => False,   --  unused
9742         3 => True,    --  Expression (Node3)
9743         4 => False,   --  unused
9744         5 => True),   --  Discriminant_Type (Node5)
9745
9746      N_Index_Or_Discriminant_Constraint =>
9747        (1 => True,    --  Constraints (List1)
9748         2 => False,   --  unused
9749         3 => False,   --  unused
9750         4 => False,   --  unused
9751         5 => False),  --  unused
9752
9753      N_Discriminant_Association =>
9754        (1 => True,    --  Selector_Names (List1)
9755         2 => False,   --  unused
9756         3 => True,    --  Expression (Node3)
9757         4 => False,   --  unused
9758         5 => False),  --  unused
9759
9760      N_Record_Definition =>
9761        (1 => True,    --  Component_List (Node1)
9762         2 => True,    --  Interface_List (List2)
9763         3 => False,   --  unused
9764         4 => True,    --  End_Label (Node4)
9765         5 => False),  --  unused
9766
9767      N_Component_List =>
9768        (1 => False,   --  unused
9769         2 => False,   --  unused
9770         3 => True,    --  Component_Items (List3)
9771         4 => True,    --  Variant_Part (Node4)
9772         5 => False),  --  unused
9773
9774      N_Component_Declaration =>
9775        (1 => True,    --  Defining_Identifier (Node1)
9776         2 => False,   --  unused
9777         3 => True,    --  Expression (Node3)
9778         4 => True,    --  Component_Definition (Node4)
9779         5 => False),  --  unused
9780
9781      N_Variant_Part =>
9782        (1 => True,    --  Variants (List1)
9783         2 => True,    --  Name (Node2)
9784         3 => False,   --  unused
9785         4 => False,   --  unused
9786         5 => False),  --  unused
9787
9788      N_Variant =>
9789        (1 => True,    --  Component_List (Node1)
9790         2 => False,   --  Enclosing_Variant (Node2-Sem)
9791         3 => False,   --  Present_Expr (Uint3-Sem)
9792         4 => True,    --  Discrete_Choices (List4)
9793         5 => False),  --  Dcheck_Function (Node5-Sem)
9794
9795      N_Others_Choice =>
9796        (1 => False,   --  Others_Discrete_Choices (List1-Sem)
9797         2 => False,   --  unused
9798         3 => False,   --  unused
9799         4 => False,   --  unused
9800         5 => False),  --  unused
9801
9802      N_Access_To_Object_Definition =>
9803        (1 => False,   --  unused
9804         2 => False,   --  unused
9805         3 => False,   --  unused
9806         4 => False,   --  unused
9807         5 => True),   --  Subtype_Indication (Node5)
9808
9809      N_Access_Function_Definition =>
9810        (1 => False,   --  unused
9811         2 => False,   --  unused
9812         3 => True,    --  Parameter_Specifications (List3)
9813         4 => True,    --  Result_Definition (Node4)
9814         5 => False),  --  unused
9815
9816      N_Access_Procedure_Definition =>
9817        (1 => False,   --  unused
9818         2 => False,   --  unused
9819         3 => True,    --  Parameter_Specifications (List3)
9820         4 => False,   --  unused
9821         5 => False),  --  unused
9822
9823      N_Access_Definition =>
9824        (1 => False,   --  unused
9825         2 => False,   --  unused
9826         3 => True,    --  Access_To_Subprogram_Definition (Node3)
9827         4 => True,    --  Subtype_Mark (Node4)
9828         5 => False),  --  unused
9829
9830      N_Incomplete_Type_Declaration =>
9831        (1 => True,    --  Defining_Identifier (Node1)
9832         2 => False,   --  unused
9833         3 => False,   --  unused
9834         4 => True,    --  Discriminant_Specifications (List4)
9835         5 => False),  --  unused
9836
9837      N_Explicit_Dereference =>
9838        (1 => False,   --  unused
9839         2 => False,   --  unused
9840         3 => True,    --  Prefix (Node3)
9841         4 => False,   --  Actual_Designated_Subtype (Node4-Sem)
9842         5 => False),  --  Etype (Node5-Sem)
9843
9844      N_Indexed_Component =>
9845        (1 => True,    --  Expressions (List1)
9846         2 => False,   --  unused
9847         3 => True,    --  Prefix (Node3)
9848         4 => False,   --  unused
9849         5 => False),  --  Etype (Node5-Sem)
9850
9851      N_Slice =>
9852        (1 => False,   --  unused
9853         2 => False,   --  unused
9854         3 => True,    --  Prefix (Node3)
9855         4 => True,    --  Discrete_Range (Node4)
9856         5 => False),  --  Etype (Node5-Sem)
9857
9858      N_Selected_Component =>
9859        (1 => False,   --  unused
9860         2 => True,    --  Selector_Name (Node2)
9861         3 => True,    --  Prefix (Node3)
9862         4 => False,   --  unused
9863         5 => False),  --  Etype (Node5-Sem)
9864
9865      N_Attribute_Reference =>
9866        (1 => True,    --  Expressions (List1)
9867         2 => True,    --  Attribute_Name (Name2)
9868         3 => True,    --  Prefix (Node3)
9869         4 => False,   --  Entity (Node4-Sem)
9870         5 => False),  --  Etype (Node5-Sem)
9871
9872      N_Aggregate =>
9873        (1 => True,    --  Expressions (List1)
9874         2 => True,    --  Component_Associations (List2)
9875         3 => False,   --  Aggregate_Bounds (Node3-Sem)
9876         4 => False,   --  unused
9877         5 => False),  --  Etype (Node5-Sem)
9878
9879      N_Component_Association =>
9880        (1 => True,    --  Choices (List1)
9881         2 => False,   --  Loop_Actions (List2-Sem)
9882         3 => True,    --  Expression (Node3)
9883         4 => False,   --  unused
9884         5 => False),  --  unused
9885
9886      N_Extension_Aggregate =>
9887        (1 => True,    --  Expressions (List1)
9888         2 => True,    --  Component_Associations (List2)
9889         3 => True,    --  Ancestor_Part (Node3)
9890         4 => False,   --  unused
9891         5 => False),  --  Etype (Node5-Sem)
9892
9893      N_Null =>
9894        (1 => False,   --  unused
9895         2 => False,   --  unused
9896         3 => False,   --  unused
9897         4 => False,   --  unused
9898         5 => False),  --  Etype (Node5-Sem)
9899
9900      N_And_Then =>
9901        (1 => False,   --  Actions (List1-Sem)
9902         2 => True,    --  Left_Opnd (Node2)
9903         3 => True,    --  Right_Opnd (Node3)
9904         4 => False,   --  unused
9905         5 => False),  --  Etype (Node5-Sem)
9906
9907      N_Or_Else =>
9908        (1 => False,   --  Actions (List1-Sem)
9909         2 => True,    --  Left_Opnd (Node2)
9910         3 => True,    --  Right_Opnd (Node3)
9911         4 => False,   --  unused
9912         5 => False),  --  Etype (Node5-Sem)
9913
9914      N_In =>
9915        (1 => False,   --  unused
9916         2 => True,    --  Left_Opnd (Node2)
9917         3 => True,    --  Right_Opnd (Node3)
9918         4 => True,    --  Alternatives (List4)
9919         5 => False),  --  Etype (Node5-Sem)
9920
9921      N_Not_In =>
9922        (1 => False,   --  unused
9923         2 => True,    --  Left_Opnd (Node2)
9924         3 => True,    --  Right_Opnd (Node3)
9925         4 => True,    --  Alternatives (List4)
9926         5 => False),  --  Etype (Node5-Sem)
9927
9928      N_Op_And =>
9929        (1 => True,    --  Chars (Name1)
9930         2 => True,    --  Left_Opnd (Node2)
9931         3 => True,    --  Right_Opnd (Node3)
9932         4 => False,   --  Entity (Node4-Sem)
9933         5 => False),  --  Etype (Node5-Sem)
9934
9935      N_Op_Or =>
9936        (1 => True,    --  Chars (Name1)
9937         2 => True,    --  Left_Opnd (Node2)
9938         3 => True,    --  Right_Opnd (Node3)
9939         4 => False,   --  Entity (Node4-Sem)
9940         5 => False),  --  Etype (Node5-Sem)
9941
9942      N_Op_Xor =>
9943        (1 => True,    --  Chars (Name1)
9944         2 => True,    --  Left_Opnd (Node2)
9945         3 => True,    --  Right_Opnd (Node3)
9946         4 => False,   --  Entity (Node4-Sem)
9947         5 => False),  --  Etype (Node5-Sem)
9948
9949      N_Op_Eq =>
9950        (1 => True,    --  Chars (Name1)
9951         2 => True,    --  Left_Opnd (Node2)
9952         3 => True,    --  Right_Opnd (Node3)
9953         4 => False,   --  Entity (Node4-Sem)
9954         5 => False),  --  Etype (Node5-Sem)
9955
9956      N_Op_Ne =>
9957        (1 => True,    --  Chars (Name1)
9958         2 => True,    --  Left_Opnd (Node2)
9959         3 => True,    --  Right_Opnd (Node3)
9960         4 => False,   --  Entity (Node4-Sem)
9961         5 => False),  --  Etype (Node5-Sem)
9962
9963      N_Op_Lt =>
9964        (1 => True,    --  Chars (Name1)
9965         2 => True,    --  Left_Opnd (Node2)
9966         3 => True,    --  Right_Opnd (Node3)
9967         4 => False,   --  Entity (Node4-Sem)
9968         5 => False),  --  Etype (Node5-Sem)
9969
9970      N_Op_Le =>
9971        (1 => True,    --  Chars (Name1)
9972         2 => True,    --  Left_Opnd (Node2)
9973         3 => True,    --  Right_Opnd (Node3)
9974         4 => False,   --  Entity (Node4-Sem)
9975         5 => False),  --  Etype (Node5-Sem)
9976
9977      N_Op_Gt =>
9978        (1 => True,    --  Chars (Name1)
9979         2 => True,    --  Left_Opnd (Node2)
9980         3 => True,    --  Right_Opnd (Node3)
9981         4 => False,   --  Entity (Node4-Sem)
9982         5 => False),  --  Etype (Node5-Sem)
9983
9984      N_Op_Ge =>
9985        (1 => True,    --  Chars (Name1)
9986         2 => True,    --  Left_Opnd (Node2)
9987         3 => True,    --  Right_Opnd (Node3)
9988         4 => False,   --  Entity (Node4-Sem)
9989         5 => False),  --  Etype (Node5-Sem)
9990
9991      N_Op_Add =>
9992        (1 => True,    --  Chars (Name1)
9993         2 => True,    --  Left_Opnd (Node2)
9994         3 => True,    --  Right_Opnd (Node3)
9995         4 => False,   --  Entity (Node4-Sem)
9996         5 => False),  --  Etype (Node5-Sem)
9997
9998      N_Op_Subtract =>
9999        (1 => True,    --  Chars (Name1)
10000         2 => True,    --  Left_Opnd (Node2)
10001         3 => True,    --  Right_Opnd (Node3)
10002         4 => False,   --  Entity (Node4-Sem)
10003         5 => False),  --  Etype (Node5-Sem)
10004
10005      N_Op_Concat =>
10006        (1 => True,    --  Chars (Name1)
10007         2 => True,    --  Left_Opnd (Node2)
10008         3 => True,    --  Right_Opnd (Node3)
10009         4 => False,   --  Entity (Node4-Sem)
10010         5 => False),  --  Etype (Node5-Sem)
10011
10012      N_Op_Multiply =>
10013        (1 => True,    --  Chars (Name1)
10014         2 => True,    --  Left_Opnd (Node2)
10015         3 => True,    --  Right_Opnd (Node3)
10016         4 => False,   --  Entity (Node4-Sem)
10017         5 => False),  --  Etype (Node5-Sem)
10018
10019      N_Op_Divide =>
10020        (1 => True,    --  Chars (Name1)
10021         2 => True,    --  Left_Opnd (Node2)
10022         3 => True,    --  Right_Opnd (Node3)
10023         4 => False,   --  Entity (Node4-Sem)
10024         5 => False),  --  Etype (Node5-Sem)
10025
10026      N_Op_Mod =>
10027        (1 => True,    --  Chars (Name1)
10028         2 => True,    --  Left_Opnd (Node2)
10029         3 => True,    --  Right_Opnd (Node3)
10030         4 => False,   --  Entity (Node4-Sem)
10031         5 => False),  --  Etype (Node5-Sem)
10032
10033      N_Op_Rem =>
10034        (1 => True,    --  Chars (Name1)
10035         2 => True,    --  Left_Opnd (Node2)
10036         3 => True,    --  Right_Opnd (Node3)
10037         4 => False,   --  Entity (Node4-Sem)
10038         5 => False),  --  Etype (Node5-Sem)
10039
10040      N_Op_Expon =>
10041        (1 => True,    --  Chars (Name1)
10042         2 => True,    --  Left_Opnd (Node2)
10043         3 => True,    --  Right_Opnd (Node3)
10044         4 => False,   --  Entity (Node4-Sem)
10045         5 => False),  --  Etype (Node5-Sem)
10046
10047      N_Op_Plus =>
10048        (1 => True,    --  Chars (Name1)
10049         2 => False,   --  unused
10050         3 => True,    --  Right_Opnd (Node3)
10051         4 => False,   --  Entity (Node4-Sem)
10052         5 => False),  --  Etype (Node5-Sem)
10053
10054      N_Op_Minus =>
10055        (1 => True,    --  Chars (Name1)
10056         2 => False,   --  unused
10057         3 => True,    --  Right_Opnd (Node3)
10058         4 => False,   --  Entity (Node4-Sem)
10059         5 => False),  --  Etype (Node5-Sem)
10060
10061      N_Op_Abs =>
10062        (1 => True,    --  Chars (Name1)
10063         2 => False,   --  unused
10064         3 => True,    --  Right_Opnd (Node3)
10065         4 => False,   --  Entity (Node4-Sem)
10066         5 => False),  --  Etype (Node5-Sem)
10067
10068      N_Op_Not =>
10069        (1 => True,    --  Chars (Name1)
10070         2 => False,   --  unused
10071         3 => True,    --  Right_Opnd (Node3)
10072         4 => False,   --  Entity (Node4-Sem)
10073         5 => False),  --  Etype (Node5-Sem)
10074
10075      N_Type_Conversion =>
10076        (1 => False,   --  unused
10077         2 => False,   --  unused
10078         3 => True,    --  Expression (Node3)
10079         4 => True,    --  Subtype_Mark (Node4)
10080         5 => False),  --  Etype (Node5-Sem)
10081
10082      N_Qualified_Expression =>
10083        (1 => False,   --  unused
10084         2 => False,   --  unused
10085         3 => True,    --  Expression (Node3)
10086         4 => True,    --  Subtype_Mark (Node4)
10087         5 => False),  --  Etype (Node5-Sem)
10088
10089      N_Allocator =>
10090        (1 => False,   --  Storage_Pool (Node1-Sem)
10091         2 => False,   --  Procedure_To_Call (Node2-Sem)
10092         3 => True,    --  Expression (Node3)
10093         4 => False,   --  Coextensions (Elist4-Sem)
10094         5 => False),  --  Etype (Node5-Sem)
10095
10096      N_Null_Statement =>
10097        (1 => False,   --  unused
10098         2 => False,   --  unused
10099         3 => False,   --  unused
10100         4 => False,   --  unused
10101         5 => False),  --  unused
10102
10103      N_Label =>
10104        (1 => True,    --  Identifier (Node1)
10105         2 => False,   --  unused
10106         3 => False,   --  unused
10107         4 => False,   --  unused
10108         5 => False),  --  unused
10109
10110      N_Assignment_Statement =>
10111        (1 => False,   --  unused
10112         2 => True,    --  Name (Node2)
10113         3 => True,    --  Expression (Node3)
10114         4 => False,   --  unused
10115         5 => False),  --  unused
10116
10117      N_If_Statement =>
10118        (1 => True,    --  Condition (Node1)
10119         2 => True,    --  Then_Statements (List2)
10120         3 => True,    --  Elsif_Parts (List3)
10121         4 => True,    --  Else_Statements (List4)
10122         5 => True),   --  End_Span (Uint5)
10123
10124      N_Elsif_Part =>
10125        (1 => True,    --  Condition (Node1)
10126         2 => True,    --  Then_Statements (List2)
10127         3 => False,   --  Condition_Actions (List3-Sem)
10128         4 => False,   --  unused
10129         5 => False),  --  unused
10130
10131      N_Case_Statement =>
10132        (1 => False,   --  unused
10133         2 => False,   --  unused
10134         3 => True,    --  Expression (Node3)
10135         4 => True,    --  Alternatives (List4)
10136         5 => True),   --  End_Span (Uint5)
10137
10138      N_Case_Statement_Alternative =>
10139        (1 => False,   --  unused
10140         2 => False,   --  unused
10141         3 => True,    --  Statements (List3)
10142         4 => True,    --  Discrete_Choices (List4)
10143         5 => False),  --  unused
10144
10145      N_Loop_Statement =>
10146        (1 => True,    --  Identifier (Node1)
10147         2 => True,    --  Iteration_Scheme (Node2)
10148         3 => True,    --  Statements (List3)
10149         4 => True,    --  End_Label (Node4)
10150         5 => False),  --  unused
10151
10152      N_Iteration_Scheme =>
10153        (1 => True,    --  Condition (Node1)
10154         2 => False,   --  unused
10155         3 => False,   --  Condition_Actions (List3-Sem)
10156         4 => True,    --  Loop_Parameter_Specification (Node4)
10157         5 => False),  --  unused
10158
10159      N_Loop_Parameter_Specification =>
10160        (1 => True,    --  Defining_Identifier (Node1)
10161         2 => False,   --  unused
10162         3 => False,   --  unused
10163         4 => True,    --  Discrete_Subtype_Definition (Node4)
10164         5 => False),  --  unused
10165
10166      N_Block_Statement =>
10167        (1 => True,    --  Identifier (Node1)
10168         2 => True,    --  Declarations (List2)
10169         3 => False,   --  Activation_Chain_Entity (Node3-Sem)
10170         4 => True,    --  Handled_Statement_Sequence (Node4)
10171         5 => False),  --  unused
10172
10173      N_Exit_Statement =>
10174        (1 => True,    --  Condition (Node1)
10175         2 => True,    --  Name (Node2)
10176         3 => False,   --  unused
10177         4 => False,   --  unused
10178         5 => False),  --  unused
10179
10180      N_Goto_Statement =>
10181        (1 => False,   --  unused
10182         2 => True,    --  Name (Node2)
10183         3 => False,   --  unused
10184         4 => False,   --  unused
10185         5 => False),  --  unused
10186
10187      N_Subprogram_Declaration =>
10188        (1 => True,    --  Specification (Node1)
10189         2 => False,   --  unused
10190         3 => False,   --  Body_To_Inline (Node3-Sem)
10191         4 => False,   --  Parent_Spec (Node4-Sem)
10192         5 => False),  --  Corresponding_Body (Node5-Sem)
10193
10194      N_Abstract_Subprogram_Declaration =>
10195        (1 => True,    --  Specification (Node1)
10196         2 => False,   --  unused
10197         3 => False,   --  unused
10198         4 => False,   --  unused
10199         5 => False),  --  unused
10200
10201      N_Function_Specification =>
10202        (1 => True,    --  Defining_Unit_Name (Node1)
10203         2 => False,   --  Elaboration_Boolean (Node2-Sem)
10204         3 => True,    --  Parameter_Specifications (List3)
10205         4 => True,    --  Result_Definition (Node4)
10206         5 => False),  --  Generic_Parent (Node5-Sem)
10207
10208      N_Procedure_Specification =>
10209        (1 => True,    --  Defining_Unit_Name (Node1)
10210         2 => False,   --  Elaboration_Boolean (Node2-Sem)
10211         3 => True,    --  Parameter_Specifications (List3)
10212         4 => False,   --  unused
10213         5 => False),  --  Generic_Parent (Node5-Sem)
10214
10215      N_Designator =>
10216        (1 => True,    --  Identifier (Node1)
10217         2 => True,    --  Name (Node2)
10218         3 => False,   --  unused
10219         4 => False,   --  unused
10220         5 => False),  --  unused
10221
10222      N_Defining_Program_Unit_Name =>
10223        (1 => True,    --  Defining_Identifier (Node1)
10224         2 => True,    --  Name (Node2)
10225         3 => False,   --  unused
10226         4 => False,   --  unused
10227         5 => False),  --  unused
10228
10229      N_Operator_Symbol =>
10230        (1 => True,    --  Chars (Name1)
10231         2 => False,   --  unused
10232         3 => True,    --  Strval (Str3)
10233         4 => False,   --  Entity (Node4-Sem)
10234         5 => False),  --  Etype (Node5-Sem)
10235
10236      N_Defining_Operator_Symbol =>
10237        (1 => True,    --  Chars (Name1)
10238         2 => False,   --  Next_Entity (Node2-Sem)
10239         3 => False,   --  Scope (Node3-Sem)
10240         4 => False,   --  unused
10241         5 => False),  --  Etype (Node5-Sem)
10242
10243      N_Parameter_Specification =>
10244        (1 => True,    --  Defining_Identifier (Node1)
10245         2 => True,    --  Parameter_Type (Node2)
10246         3 => True,    --  Expression (Node3)
10247         4 => False,   --  unused
10248         5 => False),  --  Default_Expression (Node5-Sem)
10249
10250      N_Subprogram_Body =>
10251        (1 => True,    --  Specification (Node1)
10252         2 => True,    --  Declarations (List2)
10253         3 => False,   --  Activation_Chain_Entity (Node3-Sem)
10254         4 => True,    --  Handled_Statement_Sequence (Node4)
10255         5 => False),  --  Corresponding_Spec (Node5-Sem)
10256
10257      N_Procedure_Call_Statement =>
10258        (1 => False,   --  Controlling_Argument (Node1-Sem)
10259         2 => True,    --  Name (Node2)
10260         3 => True,    --  Parameter_Associations (List3)
10261         4 => False,   --  First_Named_Actual (Node4-Sem)
10262         5 => False),  --  Etype (Node5-Sem)
10263
10264      N_Function_Call =>
10265        (1 => False,   --  Controlling_Argument (Node1-Sem)
10266         2 => True,    --  Name (Node2)
10267         3 => True,    --  Parameter_Associations (List3)
10268         4 => False,   --  First_Named_Actual (Node4-Sem)
10269         5 => False),  --  Etype (Node5-Sem)
10270
10271      N_Parameter_Association =>
10272        (1 => False,   --  unused
10273         2 => True,    --  Selector_Name (Node2)
10274         3 => True,    --  Explicit_Actual_Parameter (Node3)
10275         4 => False,   --  Next_Named_Actual (Node4-Sem)
10276         5 => False),  --  unused
10277
10278      N_Return_Statement =>
10279        (1 => False,   --  Storage_Pool (Node1-Sem)
10280         2 => False,   --  Procedure_To_Call (Node2-Sem)
10281         3 => True,    --  Expression (Node3)
10282         4 => False,   --  unused
10283         5 => False),  --  Return_Statement_Entity (Node5-Sem)
10284
10285      N_Extended_Return_Statement =>
10286        (1 => False,   --  Storage_Pool (Node1-Sem)
10287         2 => False,   --  Procedure_To_Call (Node2-Sem)
10288         3 => True,    --  Return_Object_Declarations (List3)
10289         4 => True,    --  Handled_Statement_Sequence (Node4)
10290         5 => False),  --  Return_Statement_Entity (Node5-Sem)
10291
10292      N_Package_Declaration =>
10293        (1 => True,    --  Specification (Node1)
10294         2 => False,   --  unused
10295         3 => False,   --  Activation_Chain_Entity (Node3-Sem)
10296         4 => False,   --  Parent_Spec (Node4-Sem)
10297         5 => False),  --  Corresponding_Body (Node5-Sem)
10298
10299      N_Package_Specification =>
10300        (1 => True,    --  Defining_Unit_Name (Node1)
10301         2 => True,    --  Visible_Declarations (List2)
10302         3 => True,    --  Private_Declarations (List3)
10303         4 => True,    --  End_Label (Node4)
10304         5 => False),  --  Generic_Parent (Node5-Sem)
10305
10306      N_Package_Body =>
10307        (1 => True,    --  Defining_Unit_Name (Node1)
10308         2 => True,    --  Declarations (List2)
10309         3 => False,   --  unused
10310         4 => True,    --  Handled_Statement_Sequence (Node4)
10311         5 => False),  --  Corresponding_Spec (Node5-Sem)
10312
10313      N_Private_Type_Declaration =>
10314        (1 => True,    --  Defining_Identifier (Node1)
10315         2 => False,   --  unused
10316         3 => False,   --  unused
10317         4 => True,    --  Discriminant_Specifications (List4)
10318         5 => False),  --  unused
10319
10320      N_Private_Extension_Declaration =>
10321        (1 => True,    --  Defining_Identifier (Node1)
10322         2 => True,    --  Interface_List (List2)
10323         3 => False,   --  unused
10324         4 => True,    --  Discriminant_Specifications (List4)
10325         5 => True),   --  Subtype_Indication (Node5)
10326
10327      N_Use_Package_Clause =>
10328        (1 => False,   --  unused
10329         2 => True,    --  Names (List2)
10330         3 => False,   --  Next_Use_Clause (Node3-Sem)
10331         4 => False,   --  Hidden_By_Use_Clause (Elist4-Sem)
10332         5 => False),  --  unused
10333
10334      N_Use_Type_Clause =>
10335        (1 => False,   --  unused
10336         2 => True,    --  Subtype_Marks (List2)
10337         3 => False,   --  Next_Use_Clause (Node3-Sem)
10338         4 => False,   --  Hidden_By_Use_Clause (Elist4-Sem)
10339         5 => False),  --  unused
10340
10341      N_Object_Renaming_Declaration =>
10342        (1 => True,    --  Defining_Identifier (Node1)
10343         2 => True,    --  Name (Node2)
10344         3 => True,    --  Access_Definition (Node3)
10345         4 => True,    --  Subtype_Mark (Node4)
10346         5 => False),  --  Corresponding_Generic_Association (Node5-Sem)
10347
10348      N_Exception_Renaming_Declaration =>
10349        (1 => True,    --  Defining_Identifier (Node1)
10350         2 => True,    --  Name (Node2)
10351         3 => False,   --  unused
10352         4 => False,   --  unused
10353         5 => False),  --  unused
10354
10355      N_Package_Renaming_Declaration =>
10356        (1 => True,    --  Defining_Unit_Name (Node1)
10357         2 => True,    --  Name (Node2)
10358         3 => False,   --  unused
10359         4 => False,   --  Parent_Spec (Node4-Sem)
10360         5 => False),  --  unused
10361
10362      N_Subprogram_Renaming_Declaration =>
10363        (1 => True,    --  Specification (Node1)
10364         2 => True,    --  Name (Node2)
10365         3 => False,   --  Corresponding_Formal_Spec (Node3-Sem)
10366         4 => False,   --  Parent_Spec (Node4-Sem)
10367         5 => False),  --  Corresponding_Spec (Node5-Sem)
10368
10369      N_Generic_Package_Renaming_Declaration =>
10370        (1 => True,    --  Defining_Unit_Name (Node1)
10371         2 => True,    --  Name (Node2)
10372         3 => False,   --  unused
10373         4 => False,   --  Parent_Spec (Node4-Sem)
10374         5 => False),  --  unused
10375
10376      N_Generic_Procedure_Renaming_Declaration =>
10377        (1 => True,    --  Defining_Unit_Name (Node1)
10378         2 => True,    --  Name (Node2)
10379         3 => False,   --  unused
10380         4 => False,   --  Parent_Spec (Node4-Sem)
10381         5 => False),  --  unused
10382
10383      N_Generic_Function_Renaming_Declaration =>
10384        (1 => True,    --  Defining_Unit_Name (Node1)
10385         2 => True,    --  Name (Node2)
10386         3 => False,   --  unused
10387         4 => False,   --  Parent_Spec (Node4-Sem)
10388         5 => False),  --  unused
10389
10390      N_Task_Type_Declaration =>
10391        (1 => True,    --  Defining_Identifier (Node1)
10392         2 => True,    --  Interface_List (List2)
10393         3 => True,    --  Task_Definition (Node3)
10394         4 => True,    --  Discriminant_Specifications (List4)
10395         5 => False),  --  Corresponding_Body (Node5-Sem)
10396
10397      N_Single_Task_Declaration =>
10398        (1 => True,    --  Defining_Identifier (Node1)
10399         2 => True,    --  Interface_List (List2)
10400         3 => True,    --  Task_Definition (Node3)
10401         4 => False,   --  unused
10402         5 => False),  --  unused
10403
10404      N_Task_Definition =>
10405        (1 => False,   --  unused
10406         2 => True,    --  Visible_Declarations (List2)
10407         3 => True,    --  Private_Declarations (List3)
10408         4 => True,    --  End_Label (Node4)
10409         5 => False),  --  unused
10410
10411      N_Task_Body =>
10412        (1 => True,    --  Defining_Identifier (Node1)
10413         2 => True,    --  Declarations (List2)
10414         3 => False,   --  Activation_Chain_Entity (Node3-Sem)
10415         4 => True,    --  Handled_Statement_Sequence (Node4)
10416         5 => False),  --  Corresponding_Spec (Node5-Sem)
10417
10418      N_Protected_Type_Declaration =>
10419        (1 => True,    --  Defining_Identifier (Node1)
10420         2 => True,    --  Interface_List (List2)
10421         3 => True,    --  Protected_Definition (Node3)
10422         4 => True,    --  Discriminant_Specifications (List4)
10423         5 => False),  --  Corresponding_Body (Node5-Sem)
10424
10425      N_Single_Protected_Declaration =>
10426        (1 => True,    --  Defining_Identifier (Node1)
10427         2 => True,    --  Interface_List (List2)
10428         3 => True,    --  Protected_Definition (Node3)
10429         4 => False,   --  unused
10430         5 => False),  --  unused
10431
10432      N_Protected_Definition =>
10433        (1 => False,   --  unused
10434         2 => True,    --  Visible_Declarations (List2)
10435         3 => True,    --  Private_Declarations (List3)
10436         4 => True,    --  End_Label (Node4)
10437         5 => False),  --  unused
10438
10439      N_Protected_Body =>
10440        (1 => True,    --  Defining_Identifier (Node1)
10441         2 => True,    --  Declarations (List2)
10442         3 => False,   --  unused
10443         4 => True,    --  End_Label (Node4)
10444         5 => False),  --  Corresponding_Spec (Node5-Sem)
10445
10446      N_Entry_Declaration =>
10447        (1 => True,    --  Defining_Identifier (Node1)
10448         2 => False,   --  unused
10449         3 => True,    --  Parameter_Specifications (List3)
10450         4 => True,    --  Discrete_Subtype_Definition (Node4)
10451         5 => False),  --  Corresponding_Body (Node5-Sem)
10452
10453      N_Accept_Statement =>
10454        (1 => True,    --  Entry_Direct_Name (Node1)
10455         2 => True,    --  Declarations (List2)
10456         3 => True,    --  Parameter_Specifications (List3)
10457         4 => True,    --  Handled_Statement_Sequence (Node4)
10458         5 => True),   --  Entry_Index (Node5)
10459
10460      N_Entry_Body =>
10461        (1 => True,    --  Defining_Identifier (Node1)
10462         2 => True,    --  Declarations (List2)
10463         3 => False,   --  Activation_Chain_Entity (Node3-Sem)
10464         4 => True,    --  Handled_Statement_Sequence (Node4)
10465         5 => True),   --  Entry_Body_Formal_Part (Node5)
10466
10467      N_Entry_Body_Formal_Part =>
10468        (1 => True,    --  Condition (Node1)
10469         2 => False,   --  unused
10470         3 => True,    --  Parameter_Specifications (List3)
10471         4 => True,    --  Entry_Index_Specification (Node4)
10472         5 => False),  --  unused
10473
10474      N_Entry_Index_Specification =>
10475        (1 => True,    --  Defining_Identifier (Node1)
10476         2 => False,   --  unused
10477         3 => False,   --  unused
10478         4 => True,    --  Discrete_Subtype_Definition (Node4)
10479         5 => False),  --  unused
10480
10481      N_Entry_Call_Statement =>
10482        (1 => False,   --  unused
10483         2 => True,    --  Name (Node2)
10484         3 => True,    --  Parameter_Associations (List3)
10485         4 => False,   --  First_Named_Actual (Node4-Sem)
10486         5 => False),  --  unused
10487
10488      N_Requeue_Statement =>
10489        (1 => False,   --  unused
10490         2 => True,    --  Name (Node2)
10491         3 => False,   --  unused
10492         4 => False,   --  unused
10493         5 => False),  --  unused
10494
10495      N_Delay_Until_Statement =>
10496        (1 => False,   --  unused
10497         2 => False,   --  unused
10498         3 => True,    --  Expression (Node3)
10499         4 => False,   --  unused
10500         5 => False),  --  unused
10501
10502      N_Delay_Relative_Statement =>
10503        (1 => False,   --  unused
10504         2 => False,   --  unused
10505         3 => True,    --  Expression (Node3)
10506         4 => False,   --  unused
10507         5 => False),  --  unused
10508
10509      N_Selective_Accept =>
10510        (1 => True,    --  Select_Alternatives (List1)
10511         2 => False,   --  unused
10512         3 => False,   --  unused
10513         4 => True,    --  Else_Statements (List4)
10514         5 => False),  --  unused
10515
10516      N_Accept_Alternative =>
10517        (1 => True,    --  Condition (Node1)
10518         2 => True,    --  Accept_Statement (Node2)
10519         3 => True,    --  Statements (List3)
10520         4 => True,    --  Pragmas_Before (List4)
10521         5 => False),  --  Accept_Handler_Records (List5-Sem)
10522
10523      N_Delay_Alternative =>
10524        (1 => True,    --  Condition (Node1)
10525         2 => True,    --  Delay_Statement (Node2)
10526         3 => True,    --  Statements (List3)
10527         4 => True,    --  Pragmas_Before (List4)
10528         5 => False),  --  unused
10529
10530      N_Terminate_Alternative =>
10531        (1 => True,    --  Condition (Node1)
10532         2 => False,   --  unused
10533         3 => False,   --  unused
10534         4 => True,    --  Pragmas_Before (List4)
10535         5 => True),   --  Pragmas_After (List5)
10536
10537      N_Timed_Entry_Call =>
10538        (1 => True,    --  Entry_Call_Alternative (Node1)
10539         2 => False,   --  unused
10540         3 => False,   --  unused
10541         4 => True,    --  Delay_Alternative (Node4)
10542         5 => False),  --  unused
10543
10544      N_Entry_Call_Alternative =>
10545        (1 => True,    --  Entry_Call_Statement (Node1)
10546         2 => False,   --  unused
10547         3 => True,    --  Statements (List3)
10548         4 => True,    --  Pragmas_Before (List4)
10549         5 => False),  --  unused
10550
10551      N_Conditional_Entry_Call =>
10552        (1 => True,    --  Entry_Call_Alternative (Node1)
10553         2 => False,   --  unused
10554         3 => False,   --  unused
10555         4 => True,    --  Else_Statements (List4)
10556         5 => False),  --  unused
10557
10558      N_Asynchronous_Select =>
10559        (1 => True,    --  Triggering_Alternative (Node1)
10560         2 => True,    --  Abortable_Part (Node2)
10561         3 => False,   --  unused
10562         4 => False,   --  unused
10563         5 => False),  --  unused
10564
10565      N_Triggering_Alternative =>
10566        (1 => True,    --  Triggering_Statement (Node1)
10567         2 => False,   --  unused
10568         3 => True,    --  Statements (List3)
10569         4 => True,    --  Pragmas_Before (List4)
10570         5 => False),  --  unused
10571
10572      N_Abortable_Part =>
10573        (1 => False,   --  unused
10574         2 => False,   --  unused
10575         3 => True,    --  Statements (List3)
10576         4 => False,   --  unused
10577         5 => False),  --  unused
10578
10579      N_Abort_Statement =>
10580        (1 => False,   --  unused
10581         2 => True,    --  Names (List2)
10582         3 => False,   --  unused
10583         4 => False,   --  unused
10584         5 => False),  --  unused
10585
10586      N_Compilation_Unit =>
10587        (1 => True,    --  Context_Items (List1)
10588         2 => True,    --  Unit (Node2)
10589         3 => False,   --  First_Inlined_Subprogram (Node3-Sem)
10590         4 => False,   --  Library_Unit (Node4-Sem)
10591         5 => True),   --  Aux_Decls_Node (Node5)
10592
10593      N_Compilation_Unit_Aux =>
10594        (1 => True,    --  Actions (List1)
10595         2 => True,    --  Declarations (List2)
10596         3 => False,   --  unused
10597         4 => True,    --  Config_Pragmas (List4)
10598         5 => True),   --  Pragmas_After (List5)
10599
10600      N_With_Clause =>
10601        (1 => False,   --  unused
10602         2 => True,    --  Name (Node2)
10603         3 => False,   --  unused
10604         4 => False,   --  Library_Unit (Node4-Sem)
10605         5 => False),  --  Corresponding_Spec (Node5-Sem)
10606
10607      N_Subprogram_Body_Stub =>
10608        (1 => True,    --  Specification (Node1)
10609         2 => False,   --  unused
10610         3 => False,   --  unused
10611         4 => False,   --  Library_Unit (Node4-Sem)
10612         5 => False),  --  Corresponding_Body (Node5-Sem)
10613
10614      N_Package_Body_Stub =>
10615        (1 => True,    --  Defining_Identifier (Node1)
10616         2 => False,   --  unused
10617         3 => False,   --  unused
10618         4 => False,   --  Library_Unit (Node4-Sem)
10619         5 => False),  --  Corresponding_Body (Node5-Sem)
10620
10621      N_Task_Body_Stub =>
10622        (1 => True,    --  Defining_Identifier (Node1)
10623         2 => False,   --  unused
10624         3 => False,   --  unused
10625         4 => False,   --  Library_Unit (Node4-Sem)
10626         5 => False),  --  Corresponding_Body (Node5-Sem)
10627
10628      N_Protected_Body_Stub =>
10629        (1 => True,    --  Defining_Identifier (Node1)
10630         2 => False,   --  unused
10631         3 => False,   --  unused
10632         4 => False,   --  Library_Unit (Node4-Sem)
10633         5 => False),  --  Corresponding_Body (Node5-Sem)
10634
10635      N_Subunit =>
10636        (1 => True,    --  Proper_Body (Node1)
10637         2 => True,    --  Name (Node2)
10638         3 => False,   --  Corresponding_Stub (Node3-Sem)
10639         4 => False,   --  unused
10640         5 => False),  --  unused
10641
10642      N_Exception_Declaration =>
10643        (1 => True,    --  Defining_Identifier (Node1)
10644         2 => False,   --  unused
10645         3 => False,   --  Expression (Node3-Sem)
10646         4 => False,   --  unused
10647         5 => False),  --  unused
10648
10649      N_Handled_Sequence_Of_Statements =>
10650        (1 => True,    --  At_End_Proc (Node1)
10651         2 => False,   --  First_Real_Statement (Node2-Sem)
10652         3 => True,    --  Statements (List3)
10653         4 => True,    --  End_Label (Node4)
10654         5 => True),   --  Exception_Handlers (List5)
10655
10656      N_Exception_Handler =>
10657        (1 => False,   --  Local_Raise_Statements (Elist1)
10658         2 => True,    --  Choice_Parameter (Node2)
10659         3 => True,    --  Statements (List3)
10660         4 => True,    --  Exception_Choices (List4)
10661         5 => False),  --  Exception_Label (Node5)
10662
10663      N_Raise_Statement =>
10664        (1 => False,   --  unused
10665         2 => True,    --  Name (Node2)
10666         3 => True,    --  Expression (Node3)
10667         4 => False,   --  unused
10668         5 => False),  --  unused
10669
10670      N_Generic_Subprogram_Declaration =>
10671        (1 => True,    --  Specification (Node1)
10672         2 => True,    --  Generic_Formal_Declarations (List2)
10673         3 => False,   --  unused
10674         4 => False,   --  Parent_Spec (Node4-Sem)
10675         5 => False),  --  Corresponding_Body (Node5-Sem)
10676
10677      N_Generic_Package_Declaration =>
10678        (1 => True,    --  Specification (Node1)
10679         2 => True,    --  Generic_Formal_Declarations (List2)
10680         3 => False,   --  Activation_Chain_Entity (Node3-Sem)
10681         4 => False,   --  Parent_Spec (Node4-Sem)
10682         5 => False),  --  Corresponding_Body (Node5-Sem)
10683
10684      N_Package_Instantiation =>
10685        (1 => True,    --  Defining_Unit_Name (Node1)
10686         2 => True,    --  Name (Node2)
10687         3 => True,    --  Generic_Associations (List3)
10688         4 => False,   --  Parent_Spec (Node4-Sem)
10689         5 => False),  --  Instance_Spec (Node5-Sem)
10690
10691      N_Procedure_Instantiation =>
10692        (1 => True,    --  Defining_Unit_Name (Node1)
10693         2 => True,    --  Name (Node2)
10694         3 => True,    --  Generic_Associations (List3)
10695         4 => False,   --  Parent_Spec (Node4-Sem)
10696         5 => False),  --  Instance_Spec (Node5-Sem)
10697
10698      N_Function_Instantiation =>
10699        (1 => True,    --  Defining_Unit_Name (Node1)
10700         2 => True,    --  Name (Node2)
10701         3 => True,    --  Generic_Associations (List3)
10702         4 => False,   --  Parent_Spec (Node4-Sem)
10703         5 => False),  --  Instance_Spec (Node5-Sem)
10704
10705      N_Generic_Association =>
10706        (1 => True,    --  Explicit_Generic_Actual_Parameter (Node1)
10707         2 => True,    --  Selector_Name (Node2)
10708         3 => False,   --  unused
10709         4 => False,   --  unused
10710         5 => False),  --  unused
10711
10712      N_Formal_Object_Declaration =>
10713        (1 => True,    --  Defining_Identifier (Node1)
10714         2 => False,   --  unused
10715         3 => True,    --  Access_Definition (Node3)
10716         4 => True,    --  Subtype_Mark (Node4)
10717         5 => True),   --  Default_Expression (Node5)
10718
10719      N_Formal_Type_Declaration =>
10720        (1 => True,    --  Defining_Identifier (Node1)
10721         2 => False,   --  unused
10722         3 => True,    --  Formal_Type_Definition (Node3)
10723         4 => True,    --  Discriminant_Specifications (List4)
10724         5 => False),  --  unused
10725
10726      N_Formal_Private_Type_Definition =>
10727        (1 => False,   --  unused
10728         2 => False,   --  unused
10729         3 => False,   --  unused
10730         4 => False,   --  unused
10731         5 => False),  --  unused
10732
10733      N_Formal_Derived_Type_Definition =>
10734        (1 => False,   --  unused
10735         2 => True,    --  Interface_List (List2)
10736         3 => False,   --  unused
10737         4 => True,    --  Subtype_Mark (Node4)
10738         5 => False),  --  unused
10739
10740      N_Formal_Discrete_Type_Definition =>
10741        (1 => False,   --  unused
10742         2 => False,   --  unused
10743         3 => False,   --  unused
10744         4 => False,   --  unused
10745         5 => False),  --  unused
10746
10747      N_Formal_Signed_Integer_Type_Definition =>
10748        (1 => False,   --  unused
10749         2 => False,   --  unused
10750         3 => False,   --  unused
10751         4 => False,   --  unused
10752         5 => False),  --  unused
10753
10754      N_Formal_Modular_Type_Definition =>
10755        (1 => False,   --  unused
10756         2 => False,   --  unused
10757         3 => False,   --  unused
10758         4 => False,   --  unused
10759         5 => False),  --  unused
10760
10761      N_Formal_Floating_Point_Definition =>
10762        (1 => False,   --  unused
10763         2 => False,   --  unused
10764         3 => False,   --  unused
10765         4 => False,   --  unused
10766         5 => False),  --  unused
10767
10768      N_Formal_Ordinary_Fixed_Point_Definition =>
10769        (1 => False,   --  unused
10770         2 => False,   --  unused
10771         3 => False,   --  unused
10772         4 => False,   --  unused
10773         5 => False),  --  unused
10774
10775      N_Formal_Decimal_Fixed_Point_Definition =>
10776        (1 => False,   --  unused
10777         2 => False,   --  unused
10778         3 => False,   --  unused
10779         4 => False,   --  unused
10780         5 => False),  --  unused
10781
10782      N_Formal_Concrete_Subprogram_Declaration =>
10783        (1 => True,    --  Specification (Node1)
10784         2 => True,    --  Default_Name (Node2)
10785         3 => False,   --  unused
10786         4 => False,   --  unused
10787         5 => False),  --  unused
10788
10789      N_Formal_Abstract_Subprogram_Declaration =>
10790        (1 => True,    --  Specification (Node1)
10791         2 => True,    --  Default_Name (Node2)
10792         3 => False,   --  unused
10793         4 => False,   --  unused
10794         5 => False),  --  unused
10795
10796      N_Formal_Package_Declaration =>
10797        (1 => True,    --  Defining_Identifier (Node1)
10798         2 => True,    --  Name (Node2)
10799         3 => True,    --  Generic_Associations (List3)
10800         4 => False,   --  unused
10801         5 => False),  --  Instance_Spec (Node5-Sem)
10802
10803      N_Attribute_Definition_Clause =>
10804        (1 => True,    --  Chars (Name1)
10805         2 => True,    --  Name (Node2)
10806         3 => True,    --  Expression (Node3)
10807         4 => False,   --  unused
10808         5 => False),  --  Next_Rep_Item (Node5-Sem)
10809
10810      N_Enumeration_Representation_Clause =>
10811        (1 => True,    --  Identifier (Node1)
10812         2 => False,   --  unused
10813         3 => True,    --  Array_Aggregate (Node3)
10814         4 => False,   --  unused
10815         5 => False),  --  Next_Rep_Item (Node5-Sem)
10816
10817      N_Record_Representation_Clause =>
10818        (1 => True,    --  Identifier (Node1)
10819         2 => True,    --  Mod_Clause (Node2)
10820         3 => True,    --  Component_Clauses (List3)
10821         4 => False,   --  unused
10822         5 => False),  --  Next_Rep_Item (Node5-Sem)
10823
10824      N_Component_Clause =>
10825        (1 => True,    --  Component_Name (Node1)
10826         2 => True,    --  Position (Node2)
10827         3 => True,    --  First_Bit (Node3)
10828         4 => True,    --  Last_Bit (Node4)
10829         5 => False),  --  unused
10830
10831      N_Code_Statement =>
10832        (1 => False,   --  unused
10833         2 => False,   --  unused
10834         3 => True,    --  Expression (Node3)
10835         4 => False,   --  unused
10836         5 => False),  --  unused
10837
10838      N_Op_Rotate_Left =>
10839        (1 => True,    --  Chars (Name1)
10840         2 => True,    --  Left_Opnd (Node2)
10841         3 => True,    --  Right_Opnd (Node3)
10842         4 => False,   --  Entity (Node4-Sem)
10843         5 => False),  --  Etype (Node5-Sem)
10844
10845      N_Op_Rotate_Right =>
10846        (1 => True,    --  Chars (Name1)
10847         2 => True,    --  Left_Opnd (Node2)
10848         3 => True,    --  Right_Opnd (Node3)
10849         4 => False,   --  Entity (Node4-Sem)
10850         5 => False),  --  Etype (Node5-Sem)
10851
10852      N_Op_Shift_Left =>
10853        (1 => True,    --  Chars (Name1)
10854         2 => True,    --  Left_Opnd (Node2)
10855         3 => True,    --  Right_Opnd (Node3)
10856         4 => False,   --  Entity (Node4-Sem)
10857         5 => False),  --  Etype (Node5-Sem)
10858
10859      N_Op_Shift_Right_Arithmetic =>
10860        (1 => True,    --  Chars (Name1)
10861         2 => True,    --  Left_Opnd (Node2)
10862         3 => True,    --  Right_Opnd (Node3)
10863         4 => False,   --  Entity (Node4-Sem)
10864         5 => False),  --  Etype (Node5-Sem)
10865
10866      N_Op_Shift_Right =>
10867        (1 => True,    --  Chars (Name1)
10868         2 => True,    --  Left_Opnd (Node2)
10869         3 => True,    --  Right_Opnd (Node3)
10870         4 => False,   --  Entity (Node4-Sem)
10871         5 => False),  --  Etype (Node5-Sem)
10872
10873      N_Delta_Constraint =>
10874        (1 => False,   --  unused
10875         2 => False,   --  unused
10876         3 => True,    --  Delta_Expression (Node3)
10877         4 => True,    --  Range_Constraint (Node4)
10878         5 => False),  --  unused
10879
10880      N_At_Clause =>
10881        (1 => True,    --  Identifier (Node1)
10882         2 => False,   --  unused
10883         3 => True,    --  Expression (Node3)
10884         4 => False,   --  unused
10885         5 => False),  --  unused
10886
10887      N_Mod_Clause =>
10888        (1 => False,   --  unused
10889         2 => False,   --  unused
10890         3 => True,    --  Expression (Node3)
10891         4 => True,    --  Pragmas_Before (List4)
10892         5 => False),  --  unused
10893
10894      N_Conditional_Expression =>
10895        (1 => True,    --  Expressions (List1)
10896         2 => False,   --  Then_Actions (List2-Sem)
10897         3 => False,   --  Else_Actions (List3-Sem)
10898         4 => False,   --  unused
10899         5 => False),  --  Etype (Node5-Sem)
10900
10901      N_Expanded_Name =>
10902        (1 => True,    --  Chars (Name1)
10903         2 => True,    --  Selector_Name (Node2)
10904         3 => True,    --  Prefix (Node3)
10905         4 => False,   --  Entity (Node4-Sem)
10906         5 => False),  --  Etype (Node5-Sem)
10907
10908      N_Free_Statement =>
10909        (1 => False,   --  Storage_Pool (Node1-Sem)
10910         2 => False,   --  Procedure_To_Call (Node2-Sem)
10911         3 => True,    --  Expression (Node3)
10912         4 => False,   --  Actual_Designated_Subtype (Node4-Sem)
10913         5 => False),  --  unused
10914
10915      N_Freeze_Entity =>
10916        (1 => True,    --  Actions (List1)
10917         2 => False,   --  Access_Types_To_Process (Elist2-Sem)
10918         3 => False,   --  TSS_Elist (Elist3-Sem)
10919         4 => False,   --  Entity (Node4-Sem)
10920         5 => False),  --  First_Subtype_Link (Node5-Sem)
10921
10922      N_Implicit_Label_Declaration =>
10923        (1 => True,    --  Defining_Identifier (Node1)
10924         2 => False,   --  Label_Construct (Node2-Sem)
10925         3 => False,   --  unused
10926         4 => False,   --  unused
10927         5 => False),  --  unused
10928
10929      N_Itype_Reference =>
10930        (1 => False,   --  Itype (Node1-Sem)
10931         2 => False,   --  unused
10932         3 => False,   --  unused
10933         4 => False,   --  unused
10934         5 => False),  --  unused
10935
10936      N_Raise_Constraint_Error =>
10937        (1 => True,    --  Condition (Node1)
10938         2 => False,   --  unused
10939         3 => True,    --  Reason (Uint3)
10940         4 => False,   --  unused
10941         5 => False),  --  Etype (Node5-Sem)
10942
10943      N_Raise_Program_Error =>
10944        (1 => True,    --  Condition (Node1)
10945         2 => False,   --  unused
10946         3 => True,    --  Reason (Uint3)
10947         4 => False,   --  unused
10948         5 => False),  --  Etype (Node5-Sem)
10949
10950      N_Raise_Storage_Error =>
10951        (1 => True,    --  Condition (Node1)
10952         2 => False,   --  unused
10953         3 => True,    --  Reason (Uint3)
10954         4 => False,   --  unused
10955         5 => False),  --  Etype (Node5-Sem)
10956
10957      N_Push_Constraint_Error_Label =>
10958        (1 => False,   --  unused
10959         2 => False,   --  unused
10960         3 => False,   --  unused
10961         4 => False,   --  unused
10962         5 => False),  --  unused
10963
10964      N_Push_Program_Error_Label =>
10965        (1 => False,   --  Exception_Label
10966         2 => False,   --  unused
10967         3 => False,   --  unused
10968         4 => False,   --  unused
10969         5 => False),  --  Exception_Label
10970
10971      N_Push_Storage_Error_Label =>
10972        (1 => False,   --  Exception_Label
10973         2 => False,   --  unused
10974         3 => False,   --  unused
10975         4 => False,   --  unused
10976         5 => False),  --  Exception_Label
10977
10978      N_Pop_Constraint_Error_Label =>
10979        (1 => False,   --  unused
10980         2 => False,   --  unused
10981         3 => False,   --  unused
10982         4 => False,   --  unused
10983         5 => False),  --  unused
10984
10985      N_Pop_Program_Error_Label =>
10986        (1 => False,   --  unused
10987         2 => False,   --  unused
10988         3 => False,   --  unused
10989         4 => False,   --  unused
10990         5 => False),  --  unused
10991
10992      N_Pop_Storage_Error_Label =>
10993        (1 => False,   --  unused
10994         2 => False,   --  unused
10995         3 => False,   --  unused
10996         4 => False,   --  unused
10997         5 => False),  --  unused
10998
10999      N_Reference =>
11000        (1 => False,   --  unused
11001         2 => False,   --  unused
11002         3 => True,    --  Prefix (Node3)
11003         4 => False,   --  unused
11004         5 => False),  --  Etype (Node5-Sem)
11005
11006      N_Subprogram_Info =>
11007        (1 => True,    --  Identifier (Node1)
11008         2 => False,   --  unused
11009         3 => False,   --  unused
11010         4 => False,   --  unused
11011         5 => False),  --  Etype (Node5-Sem)
11012
11013      N_Unchecked_Expression =>
11014        (1 => False,   --  unused
11015         2 => False,   --  unused
11016         3 => True,    --  Expression (Node3)
11017         4 => False,   --  unused
11018         5 => False),  --  Etype (Node5-Sem)
11019
11020      N_Unchecked_Type_Conversion =>
11021        (1 => False,   --  unused
11022         2 => False,   --  unused
11023         3 => True,    --  Expression (Node3)
11024         4 => True,    --  Subtype_Mark (Node4)
11025         5 => False),  --  Etype (Node5-Sem)
11026
11027      N_Validate_Unchecked_Conversion =>
11028        (1 => False,   --  Source_Type (Node1-Sem)
11029         2 => False,   --  Target_Type (Node2-Sem)
11030         3 => False,   --  unused
11031         4 => False,   --  unused
11032         5 => False),  --  unused
11033
11034    --  End of inserted output from makeisf program
11035
11036    --  Entries for SCIL nodes
11037
11038      N_SCIL_Dispatch_Table_Object_Init =>
11039        (1 => False,   --  SCIL_Related_Node (Node1-Sem)
11040         2 => False,   --  unused
11041         3 => False,   --  unused
11042         4 => False,   --  SCIL_Entity (Node4-Sem)
11043         5 => False),  --  unused
11044
11045      N_SCIL_Dispatch_Table_Tag_Init =>
11046        (1 => False,   --  SCIL_Related_Node (Node1-Sem)
11047         2 => False,   --  unused
11048         3 => False,   --  unused
11049         4 => False,   --  SCIL_Entity (Node4-Sem)
11050         5 => False),  --  unused
11051
11052      N_SCIL_Dispatching_Call =>
11053        (1 => False,   --  SCIL_Related_Node (Node1-Sem)
11054         2 => False,   --  SCIL_Target_Prim (Node2-Sem)
11055         3 => False,   --  unused
11056         4 => False,   --  SCIL_Entity (Node4-Sem)
11057         5 => False),  --  SCIL_Controlling_Tag (Node5-Sem)
11058
11059      N_SCIL_Tag_Init =>
11060        (1 => False,   --  SCIL_Related_Node (Node1-Sem)
11061         2 => False,   --  unused
11062         3 => False,   --  unused
11063         4 => False,   --  SCIL_Entity (Node4-Sem)
11064         5 => False),  --  unused
11065
11066    --  Entries for Empty, Error and Unused. Even thought these have a Chars
11067    --  field for debugging purposes, they are not really syntactic fields, so
11068    --  we mark all fields as unused.
11069
11070      N_Empty =>
11071        (1 => False,   --  unused
11072         2 => False,   --  unused
11073         3 => False,   --  unused
11074         4 => False,   --  unused
11075         5 => False),  --  unused
11076
11077      N_Error =>
11078        (1 => False,   --  unused
11079         2 => False,   --  unused
11080         3 => False,   --  unused
11081         4 => False,   --  unused
11082         5 => False),  --  unused
11083
11084      N_Unused_At_Start =>
11085        (1 => False,   --  unused
11086         2 => False,   --  unused
11087         3 => False,   --  unused
11088         4 => False,   --  unused
11089         5 => False),  --  unused
11090
11091      N_Unused_At_End =>
11092        (1 => False,   --  unused
11093         2 => False,   --  unused
11094         3 => False,   --  unused
11095         4 => False,   --  unused
11096         5 => False)); --  unused
11097
11098    --------------------
11099    -- Inline Pragmas --
11100    --------------------
11101
11102    pragma Inline (ABE_Is_Certain);
11103    pragma Inline (Abort_Present);
11104    pragma Inline (Abortable_Part);
11105    pragma Inline (Abstract_Present);
11106    pragma Inline (Accept_Handler_Records);
11107    pragma Inline (Accept_Statement);
11108    pragma Inline (Access_Definition);
11109    pragma Inline (Access_To_Subprogram_Definition);
11110    pragma Inline (Access_Types_To_Process);
11111    pragma Inline (Actions);
11112    pragma Inline (Activation_Chain_Entity);
11113    pragma Inline (Acts_As_Spec);
11114    pragma Inline (Actual_Designated_Subtype);
11115    pragma Inline (Address_Warning_Posted);
11116    pragma Inline (Aggregate_Bounds);
11117    pragma Inline (Aliased_Present);
11118    pragma Inline (All_Others);
11119    pragma Inline (All_Present);
11120    pragma Inline (Alternatives);
11121    pragma Inline (Ancestor_Part);
11122    pragma Inline (Array_Aggregate);
11123    pragma Inline (Assignment_OK);
11124    pragma Inline (Associated_Node);
11125    pragma Inline (At_End_Proc);
11126    pragma Inline (Attribute_Name);
11127    pragma Inline (Aux_Decls_Node);
11128    pragma Inline (Backwards_OK);
11129    pragma Inline (Bad_Is_Detected);
11130    pragma Inline (Body_To_Inline);
11131    pragma Inline (Body_Required);
11132    pragma Inline (By_Ref);
11133    pragma Inline (Box_Present);
11134    pragma Inline (Char_Literal_Value);
11135    pragma Inline (Chars);
11136    pragma Inline (Check_Address_Alignment);
11137    pragma Inline (Choice_Parameter);
11138    pragma Inline (Choices);
11139    pragma Inline (Coextensions);
11140    pragma Inline (Comes_From_Extended_Return_Statement);
11141    pragma Inline (Compile_Time_Known_Aggregate);
11142    pragma Inline (Component_Associations);
11143    pragma Inline (Component_Clauses);
11144    pragma Inline (Component_Definition);
11145    pragma Inline (Component_Items);
11146    pragma Inline (Component_List);
11147    pragma Inline (Component_Name);
11148    pragma Inline (Componentwise_Assignment);
11149    pragma Inline (Condition);
11150    pragma Inline (Condition_Actions);
11151    pragma Inline (Config_Pragmas);
11152    pragma Inline (Constant_Present);
11153    pragma Inline (Constraint);
11154    pragma Inline (Constraints);
11155    pragma Inline (Context_Installed);
11156    pragma Inline (Context_Items);
11157    pragma Inline (Context_Pending);
11158    pragma Inline (Controlling_Argument);
11159    pragma Inline (Conversion_OK);
11160    pragma Inline (Corresponding_Body);
11161    pragma Inline (Corresponding_Formal_Spec);
11162    pragma Inline (Corresponding_Generic_Association);
11163    pragma Inline (Corresponding_Integer_Value);
11164    pragma Inline (Corresponding_Spec);
11165    pragma Inline (Corresponding_Stub);
11166    pragma Inline (Dcheck_Function);
11167    pragma Inline (Debug_Statement);
11168    pragma Inline (Declarations);
11169    pragma Inline (Default_Expression);
11170    pragma Inline (Default_Name);
11171    pragma Inline (Defining_Identifier);
11172    pragma Inline (Defining_Unit_Name);
11173    pragma Inline (Delay_Alternative);
11174    pragma Inline (Delay_Statement);
11175    pragma Inline (Delta_Expression);
11176    pragma Inline (Digits_Expression);
11177    pragma Inline (Discr_Check_Funcs_Built);
11178    pragma Inline (Discrete_Choices);
11179    pragma Inline (Discrete_Range);
11180    pragma Inline (Discrete_Subtype_Definition);
11181    pragma Inline (Discrete_Subtype_Definitions);
11182    pragma Inline (Discriminant_Specifications);
11183    pragma Inline (Discriminant_Type);
11184    pragma Inline (Do_Accessibility_Check);
11185    pragma Inline (Do_Discriminant_Check);
11186    pragma Inline (Do_Length_Check);
11187    pragma Inline (Do_Division_Check);
11188    pragma Inline (Do_Overflow_Check);
11189    pragma Inline (Do_Range_Check);
11190    pragma Inline (Do_Storage_Check);
11191    pragma Inline (Do_Tag_Check);
11192    pragma Inline (Elaborate_Present);
11193    pragma Inline (Elaborate_All_Desirable);
11194    pragma Inline (Elaborate_All_Present);
11195    pragma Inline (Elaborate_Desirable);
11196    pragma Inline (Elaboration_Boolean);
11197    pragma Inline (Else_Actions);
11198    pragma Inline (Else_Statements);
11199    pragma Inline (Elsif_Parts);
11200    pragma Inline (Enclosing_Variant);
11201    pragma Inline (End_Label);
11202    pragma Inline (End_Span);
11203    pragma Inline (Entity);
11204    pragma Inline (Entity_Or_Associated_Node);
11205    pragma Inline (Entry_Body_Formal_Part);
11206    pragma Inline (Entry_Call_Alternative);
11207    pragma Inline (Entry_Call_Statement);
11208    pragma Inline (Entry_Direct_Name);
11209    pragma Inline (Entry_Index);
11210    pragma Inline (Entry_Index_Specification);
11211    pragma Inline (Etype);
11212    pragma Inline (Exception_Choices);
11213    pragma Inline (Exception_Handlers);
11214    pragma Inline (Exception_Junk);
11215    pragma Inline (Exception_Label);
11216    pragma Inline (Expansion_Delayed);
11217    pragma Inline (Explicit_Actual_Parameter);
11218    pragma Inline (Explicit_Generic_Actual_Parameter);
11219    pragma Inline (Expression);
11220    pragma Inline (Expressions);
11221    pragma Inline (First_Bit);
11222    pragma Inline (First_Inlined_Subprogram);
11223    pragma Inline (First_Name);
11224    pragma Inline (First_Named_Actual);
11225    pragma Inline (First_Real_Statement);
11226    pragma Inline (First_Subtype_Link);
11227    pragma Inline (Float_Truncate);
11228    pragma Inline (Formal_Type_Definition);
11229    pragma Inline (Forwards_OK);
11230    pragma Inline (From_At_End);
11231    pragma Inline (From_At_Mod);
11232    pragma Inline (From_Default);
11233    pragma Inline (Generic_Associations);
11234    pragma Inline (Generic_Formal_Declarations);
11235    pragma Inline (Generic_Parent);
11236    pragma Inline (Generic_Parent_Type);
11237    pragma Inline (Handled_Statement_Sequence);
11238    pragma Inline (Handler_List_Entry);
11239    pragma Inline (Has_Created_Identifier);
11240    pragma Inline (Has_Dynamic_Length_Check);
11241    pragma Inline (Has_Dynamic_Range_Check);
11242    pragma Inline (Has_Init_Expression);
11243    pragma Inline (Has_Local_Raise);
11244    pragma Inline (Has_Self_Reference);
11245    pragma Inline (Has_No_Elaboration_Code);
11246    pragma Inline (Has_Priority_Pragma);
11247    pragma Inline (Has_Private_View);
11248    pragma Inline (Has_Relative_Deadline_Pragma);
11249    pragma Inline (Has_Storage_Size_Pragma);
11250    pragma Inline (Has_Task_Info_Pragma);
11251    pragma Inline (Has_Task_Name_Pragma);
11252    pragma Inline (Has_Wide_Character);
11253    pragma Inline (Hidden_By_Use_Clause);
11254    pragma Inline (High_Bound);
11255    pragma Inline (Identifier);
11256    pragma Inline (Implicit_With);
11257    pragma Inline (Interface_List);
11258    pragma Inline (Interface_Present);
11259    pragma Inline (Includes_Infinities);
11260    pragma Inline (In_Present);
11261    pragma Inline (Instance_Spec);
11262    pragma Inline (Intval);
11263    pragma Inline (Is_Accessibility_Actual);
11264    pragma Inline (Is_Asynchronous_Call_Block);
11265    pragma Inline (Is_Component_Left_Opnd);
11266    pragma Inline (Is_Component_Right_Opnd);
11267    pragma Inline (Is_Controlling_Actual);
11268    pragma Inline (Is_Dynamic_Coextension);
11269    pragma Inline (Is_Elsif);
11270    pragma Inline (Is_Entry_Barrier_Function);
11271    pragma Inline (Is_Expanded_Build_In_Place_Call);
11272    pragma Inline (Is_Folded_In_Parser);
11273    pragma Inline (Is_In_Discriminant_Check);
11274    pragma Inline (Is_Machine_Number);
11275    pragma Inline (Is_Null_Loop);
11276    pragma Inline (Is_Overloaded);
11277    pragma Inline (Is_Power_Of_2_For_Shift);
11278    pragma Inline (Is_Protected_Subprogram_Body);
11279    pragma Inline (Is_Static_Coextension);
11280    pragma Inline (Is_Static_Expression);
11281    pragma Inline (Is_Subprogram_Descriptor);
11282    pragma Inline (Is_Task_Allocation_Block);
11283    pragma Inline (Is_Task_Master);
11284    pragma Inline (Iteration_Scheme);
11285    pragma Inline (Itype);
11286    pragma Inline (Kill_Range_Check);
11287    pragma Inline (Last_Bit);
11288    pragma Inline (Last_Name);
11289    pragma Inline (Library_Unit);
11290    pragma Inline (Label_Construct);
11291    pragma Inline (Left_Opnd);
11292    pragma Inline (Limited_View_Installed);
11293    pragma Inline (Limited_Present);
11294    pragma Inline (Literals);
11295    pragma Inline (Local_Raise_Not_OK);
11296    pragma Inline (Local_Raise_Statements);
11297    pragma Inline (Loop_Actions);
11298    pragma Inline (Loop_Parameter_Specification);
11299    pragma Inline (Low_Bound);
11300    pragma Inline (Mod_Clause);
11301    pragma Inline (More_Ids);
11302    pragma Inline (Must_Be_Byte_Aligned);
11303    pragma Inline (Must_Not_Freeze);
11304    pragma Inline (Must_Not_Override);
11305    pragma Inline (Must_Override);
11306    pragma Inline (Name);
11307    pragma Inline (Names);
11308    pragma Inline (Next_Entity);
11309    pragma Inline (Next_Implicit_With);
11310    pragma Inline (Next_Named_Actual);
11311    pragma Inline (Next_Pragma);
11312    pragma Inline (Next_Rep_Item);
11313    pragma Inline (Next_Use_Clause);
11314    pragma Inline (No_Ctrl_Actions);
11315    pragma Inline (No_Elaboration_Check);
11316    pragma Inline (No_Entities_Ref_In_Spec);
11317    pragma Inline (No_Initialization);
11318    pragma Inline (No_Truncation);
11319    pragma Inline (Null_Present);
11320    pragma Inline (Null_Exclusion_Present);
11321    pragma Inline (Null_Exclusion_In_Return_Present);
11322    pragma Inline (Null_Record_Present);
11323    pragma Inline (Object_Definition);
11324    pragma Inline (Original_Discriminant);
11325    pragma Inline (Original_Entity);
11326    pragma Inline (Others_Discrete_Choices);
11327    pragma Inline (Out_Present);
11328    pragma Inline (Parameter_Associations);
11329    pragma Inline (Parameter_Specifications);
11330    pragma Inline (Parameter_List_Truncated);
11331    pragma Inline (Parameter_Type);
11332    pragma Inline (Parent_Spec);
11333    pragma Inline (PPC_Enabled);
11334    pragma Inline (Position);
11335    pragma Inline (Pragma_Argument_Associations);
11336    pragma Inline (Pragma_Identifier);
11337    pragma Inline (Pragmas_After);
11338    pragma Inline (Pragmas_Before);
11339    pragma Inline (Prefix);
11340    pragma Inline (Present_Expr);
11341    pragma Inline (Prev_Ids);
11342    pragma Inline (Print_In_Hex);
11343    pragma Inline (Private_Declarations);
11344    pragma Inline (Private_Present);
11345    pragma Inline (Procedure_To_Call);
11346    pragma Inline (Proper_Body);
11347    pragma Inline (Protected_Definition);
11348    pragma Inline (Protected_Present);
11349    pragma Inline (Raises_Constraint_Error);
11350    pragma Inline (Range_Constraint);
11351    pragma Inline (Range_Expression);
11352    pragma Inline (Real_Range_Specification);
11353    pragma Inline (Realval);
11354    pragma Inline (Reason);
11355    pragma Inline (Record_Extension_Part);
11356    pragma Inline (Redundant_Use);
11357    pragma Inline (Renaming_Exception);
11358    pragma Inline (Result_Definition);
11359    pragma Inline (Return_Object_Declarations);
11360    pragma Inline (Return_Statement_Entity);
11361    pragma Inline (Reverse_Present);
11362    pragma Inline (Right_Opnd);
11363    pragma Inline (Rounded_Result);
11364    pragma Inline (SCIL_Controlling_Tag);
11365    pragma Inline (SCIL_Entity);
11366    pragma Inline (SCIL_Related_Node);
11367    pragma Inline (SCIL_Target_Prim);
11368    pragma Inline (Scope);
11369    pragma Inline (Select_Alternatives);
11370    pragma Inline (Selector_Name);
11371    pragma Inline (Selector_Names);
11372    pragma Inline (Shift_Count_OK);
11373    pragma Inline (Source_Type);
11374    pragma Inline (Specification);
11375    pragma Inline (Statements);
11376    pragma Inline (Static_Processing_OK);
11377    pragma Inline (Storage_Pool);
11378    pragma Inline (Strval);
11379    pragma Inline (Subtype_Indication);
11380    pragma Inline (Subtype_Mark);
11381    pragma Inline (Subtype_Marks);
11382    pragma Inline (Suppress_Loop_Warnings);
11383    pragma Inline (Synchronized_Present);
11384    pragma Inline (Tagged_Present);
11385    pragma Inline (Target_Type);
11386    pragma Inline (Task_Definition);
11387    pragma Inline (Task_Present);
11388    pragma Inline (Then_Actions);
11389    pragma Inline (Then_Statements);
11390    pragma Inline (Triggering_Alternative);
11391    pragma Inline (Triggering_Statement);
11392    pragma Inline (Treat_Fixed_As_Integer);
11393    pragma Inline (TSS_Elist);
11394    pragma Inline (Type_Definition);
11395    pragma Inline (Unit);
11396    pragma Inline (Unknown_Discriminants_Present);
11397    pragma Inline (Unreferenced_In_Spec);
11398    pragma Inline (Variant_Part);
11399    pragma Inline (Variants);
11400    pragma Inline (Visible_Declarations);
11401    pragma Inline (Was_Originally_Stub);
11402    pragma Inline (Zero_Cost_Handling);
11403
11404    pragma Inline (Set_ABE_Is_Certain);
11405    pragma Inline (Set_Abort_Present);
11406    pragma Inline (Set_Abortable_Part);
11407    pragma Inline (Set_Abstract_Present);
11408    pragma Inline (Set_Accept_Handler_Records);
11409    pragma Inline (Set_Accept_Statement);
11410    pragma Inline (Set_Access_Definition);
11411    pragma Inline (Set_Access_To_Subprogram_Definition);
11412    pragma Inline (Set_Access_Types_To_Process);
11413    pragma Inline (Set_Actions);
11414    pragma Inline (Set_Activation_Chain_Entity);
11415    pragma Inline (Set_Acts_As_Spec);
11416    pragma Inline (Set_Actual_Designated_Subtype);
11417    pragma Inline (Set_Address_Warning_Posted);
11418    pragma Inline (Set_Aggregate_Bounds);
11419    pragma Inline (Set_Aliased_Present);
11420    pragma Inline (Set_All_Others);
11421    pragma Inline (Set_All_Present);
11422    pragma Inline (Set_Alternatives);
11423    pragma Inline (Set_Ancestor_Part);
11424    pragma Inline (Set_Array_Aggregate);
11425    pragma Inline (Set_Assignment_OK);
11426    pragma Inline (Set_Associated_Node);
11427    pragma Inline (Set_At_End_Proc);
11428    pragma Inline (Set_Attribute_Name);
11429    pragma Inline (Set_Aux_Decls_Node);
11430    pragma Inline (Set_Backwards_OK);
11431    pragma Inline (Set_Bad_Is_Detected);
11432    pragma Inline (Set_Body_To_Inline);
11433    pragma Inline (Set_Body_Required);
11434    pragma Inline (Set_By_Ref);
11435    pragma Inline (Set_Box_Present);
11436    pragma Inline (Set_Char_Literal_Value);
11437    pragma Inline (Set_Chars);
11438    pragma Inline (Set_Check_Address_Alignment);
11439    pragma Inline (Set_Choice_Parameter);
11440    pragma Inline (Set_Choices);
11441    pragma Inline (Set_Coextensions);
11442    pragma Inline (Set_Comes_From_Extended_Return_Statement);
11443    pragma Inline (Set_Compile_Time_Known_Aggregate);
11444    pragma Inline (Set_Component_Associations);
11445    pragma Inline (Set_Component_Clauses);
11446    pragma Inline (Set_Component_Definition);
11447    pragma Inline (Set_Component_Items);
11448    pragma Inline (Set_Component_List);
11449    pragma Inline (Set_Component_Name);
11450    pragma Inline (Set_Componentwise_Assignment);
11451    pragma Inline (Set_Condition);
11452    pragma Inline (Set_Condition_Actions);
11453    pragma Inline (Set_Config_Pragmas);
11454    pragma Inline (Set_Constant_Present);
11455    pragma Inline (Set_Constraint);
11456    pragma Inline (Set_Constraints);
11457    pragma Inline (Set_Context_Installed);
11458    pragma Inline (Set_Context_Items);
11459    pragma Inline (Set_Context_Pending);
11460    pragma Inline (Set_Controlling_Argument);
11461    pragma Inline (Set_Conversion_OK);
11462    pragma Inline (Set_Corresponding_Body);
11463    pragma Inline (Set_Corresponding_Formal_Spec);
11464    pragma Inline (Set_Corresponding_Generic_Association);
11465    pragma Inline (Set_Corresponding_Integer_Value);
11466    pragma Inline (Set_Corresponding_Spec);
11467    pragma Inline (Set_Corresponding_Stub);
11468    pragma Inline (Set_Dcheck_Function);
11469    pragma Inline (Set_Debug_Statement);
11470    pragma Inline (Set_Declarations);
11471    pragma Inline (Set_Default_Expression);
11472    pragma Inline (Set_Default_Name);
11473    pragma Inline (Set_Defining_Identifier);
11474    pragma Inline (Set_Defining_Unit_Name);
11475    pragma Inline (Set_Delay_Alternative);
11476    pragma Inline (Set_Delay_Statement);
11477    pragma Inline (Set_Delta_Expression);
11478    pragma Inline (Set_Digits_Expression);
11479    pragma Inline (Set_Discr_Check_Funcs_Built);
11480    pragma Inline (Set_Discrete_Choices);
11481    pragma Inline (Set_Discrete_Range);
11482    pragma Inline (Set_Discrete_Subtype_Definition);
11483    pragma Inline (Set_Discrete_Subtype_Definitions);
11484    pragma Inline (Set_Discriminant_Specifications);
11485    pragma Inline (Set_Discriminant_Type);
11486    pragma Inline (Set_Do_Accessibility_Check);
11487    pragma Inline (Set_Do_Discriminant_Check);
11488    pragma Inline (Set_Do_Length_Check);
11489    pragma Inline (Set_Do_Division_Check);
11490    pragma Inline (Set_Do_Overflow_Check);
11491    pragma Inline (Set_Do_Range_Check);
11492    pragma Inline (Set_Do_Storage_Check);
11493    pragma Inline (Set_Do_Tag_Check);
11494    pragma Inline (Set_Elaborate_Present);
11495    pragma Inline (Set_Elaborate_All_Desirable);
11496    pragma Inline (Set_Elaborate_All_Present);
11497    pragma Inline (Set_Elaborate_Desirable);
11498    pragma Inline (Set_Elaboration_Boolean);
11499    pragma Inline (Set_Else_Actions);
11500    pragma Inline (Set_Else_Statements);
11501    pragma Inline (Set_Elsif_Parts);
11502    pragma Inline (Set_Enclosing_Variant);
11503    pragma Inline (Set_End_Label);
11504    pragma Inline (Set_End_Span);
11505    pragma Inline (Set_Entity);
11506    pragma Inline (Set_Entry_Body_Formal_Part);
11507    pragma Inline (Set_Entry_Call_Alternative);
11508    pragma Inline (Set_Entry_Call_Statement);
11509    pragma Inline (Set_Entry_Direct_Name);
11510    pragma Inline (Set_Entry_Index);
11511    pragma Inline (Set_Entry_Index_Specification);
11512    pragma Inline (Set_Etype);
11513    pragma Inline (Set_Exception_Choices);
11514    pragma Inline (Set_Exception_Handlers);
11515    pragma Inline (Set_Exception_Junk);
11516    pragma Inline (Set_Exception_Label);
11517    pragma Inline (Set_Expansion_Delayed);
11518    pragma Inline (Set_Explicit_Actual_Parameter);
11519    pragma Inline (Set_Explicit_Generic_Actual_Parameter);
11520    pragma Inline (Set_Expression);
11521    pragma Inline (Set_Expressions);
11522    pragma Inline (Set_First_Bit);
11523    pragma Inline (Set_First_Inlined_Subprogram);
11524    pragma Inline (Set_First_Name);
11525    pragma Inline (Set_First_Named_Actual);
11526    pragma Inline (Set_First_Real_Statement);
11527    pragma Inline (Set_First_Subtype_Link);
11528    pragma Inline (Set_Float_Truncate);
11529    pragma Inline (Set_Formal_Type_Definition);
11530    pragma Inline (Set_Forwards_OK);
11531    pragma Inline (Set_From_At_End);
11532    pragma Inline (Set_From_At_Mod);
11533    pragma Inline (Set_From_Default);
11534    pragma Inline (Set_Generic_Associations);
11535    pragma Inline (Set_Generic_Formal_Declarations);
11536    pragma Inline (Set_Generic_Parent);
11537    pragma Inline (Set_Generic_Parent_Type);
11538    pragma Inline (Set_Handled_Statement_Sequence);
11539    pragma Inline (Set_Handler_List_Entry);
11540    pragma Inline (Set_Has_Created_Identifier);
11541    pragma Inline (Set_Has_Dynamic_Length_Check);
11542    pragma Inline (Set_Has_Init_Expression);
11543    pragma Inline (Set_Has_Local_Raise);
11544    pragma Inline (Set_Has_Dynamic_Range_Check);
11545    pragma Inline (Set_Has_No_Elaboration_Code);
11546    pragma Inline (Set_Has_Priority_Pragma);
11547    pragma Inline (Set_Has_Private_View);
11548    pragma Inline (Set_Has_Relative_Deadline_Pragma);
11549    pragma Inline (Set_Has_Storage_Size_Pragma);
11550    pragma Inline (Set_Has_Task_Info_Pragma);
11551    pragma Inline (Set_Has_Task_Name_Pragma);
11552    pragma Inline (Set_Has_Wide_Character);
11553    pragma Inline (Set_Hidden_By_Use_Clause);
11554    pragma Inline (Set_High_Bound);
11555    pragma Inline (Set_Identifier);
11556    pragma Inline (Set_Implicit_With);
11557    pragma Inline (Set_Includes_Infinities);
11558    pragma Inline (Set_Interface_List);
11559    pragma Inline (Set_Interface_Present);
11560    pragma Inline (Set_In_Present);
11561    pragma Inline (Set_Instance_Spec);
11562    pragma Inline (Set_Intval);
11563    pragma Inline (Set_Is_Accessibility_Actual);
11564    pragma Inline (Set_Is_Asynchronous_Call_Block);
11565    pragma Inline (Set_Is_Component_Left_Opnd);
11566    pragma Inline (Set_Is_Component_Right_Opnd);
11567    pragma Inline (Set_Is_Controlling_Actual);
11568    pragma Inline (Set_Is_Dynamic_Coextension);
11569    pragma Inline (Set_Is_Elsif);
11570    pragma Inline (Set_Is_Entry_Barrier_Function);
11571    pragma Inline (Set_Is_Expanded_Build_In_Place_Call);
11572    pragma Inline (Set_Is_Folded_In_Parser);
11573    pragma Inline (Set_Is_In_Discriminant_Check);
11574    pragma Inline (Set_Is_Machine_Number);
11575    pragma Inline (Set_Is_Null_Loop);
11576    pragma Inline (Set_Is_Overloaded);
11577    pragma Inline (Set_Is_Power_Of_2_For_Shift);
11578    pragma Inline (Set_Is_Protected_Subprogram_Body);
11579    pragma Inline (Set_Has_Self_Reference);
11580    pragma Inline (Set_Is_Static_Coextension);
11581    pragma Inline (Set_Is_Static_Expression);
11582    pragma Inline (Set_Is_Subprogram_Descriptor);
11583    pragma Inline (Set_Is_Task_Allocation_Block);
11584    pragma Inline (Set_Is_Task_Master);
11585    pragma Inline (Set_Iteration_Scheme);
11586    pragma Inline (Set_Itype);
11587    pragma Inline (Set_Kill_Range_Check);
11588    pragma Inline (Set_Last_Bit);
11589    pragma Inline (Set_Last_Name);
11590    pragma Inline (Set_Library_Unit);
11591    pragma Inline (Set_Label_Construct);
11592    pragma Inline (Set_Left_Opnd);
11593    pragma Inline (Set_Limited_View_Installed);
11594    pragma Inline (Set_Limited_Present);
11595    pragma Inline (Set_Literals);
11596    pragma Inline (Set_Local_Raise_Not_OK);
11597    pragma Inline (Set_Local_Raise_Statements);
11598    pragma Inline (Set_Loop_Actions);
11599    pragma Inline (Set_Loop_Parameter_Specification);
11600    pragma Inline (Set_Low_Bound);
11601    pragma Inline (Set_Mod_Clause);
11602    pragma Inline (Set_More_Ids);
11603    pragma Inline (Set_Must_Be_Byte_Aligned);
11604    pragma Inline (Set_Must_Not_Freeze);
11605    pragma Inline (Set_Must_Not_Override);
11606    pragma Inline (Set_Must_Override);
11607    pragma Inline (Set_Name);
11608    pragma Inline (Set_Names);
11609    pragma Inline (Set_Next_Entity);
11610    pragma Inline (Set_Next_Implicit_With);
11611    pragma Inline (Set_Next_Named_Actual);
11612    pragma Inline (Set_Next_Pragma);
11613    pragma Inline (Set_Next_Rep_Item);
11614    pragma Inline (Set_Next_Use_Clause);
11615    pragma Inline (Set_No_Ctrl_Actions);
11616    pragma Inline (Set_No_Elaboration_Check);
11617    pragma Inline (Set_No_Entities_Ref_In_Spec);
11618    pragma Inline (Set_No_Initialization);
11619    pragma Inline (Set_No_Truncation);
11620    pragma Inline (Set_Null_Present);
11621    pragma Inline (Set_Null_Exclusion_Present);
11622    pragma Inline (Set_Null_Exclusion_In_Return_Present);
11623    pragma Inline (Set_Null_Record_Present);
11624    pragma Inline (Set_Object_Definition);
11625    pragma Inline (Set_Original_Discriminant);
11626    pragma Inline (Set_Original_Entity);
11627    pragma Inline (Set_Others_Discrete_Choices);
11628    pragma Inline (Set_Out_Present);
11629    pragma Inline (Set_Parameter_Associations);
11630    pragma Inline (Set_Parameter_Specifications);
11631    pragma Inline (Set_Parameter_List_Truncated);
11632    pragma Inline (Set_Parameter_Type);
11633    pragma Inline (Set_Parent_Spec);
11634    pragma Inline (Set_PPC_Enabled);
11635    pragma Inline (Set_Position);
11636    pragma Inline (Set_Pragma_Argument_Associations);
11637    pragma Inline (Set_Pragma_Identifier);
11638    pragma Inline (Set_Pragmas_After);
11639    pragma Inline (Set_Pragmas_Before);
11640    pragma Inline (Set_Prefix);
11641    pragma Inline (Set_Present_Expr);
11642    pragma Inline (Set_Prev_Ids);
11643    pragma Inline (Set_Print_In_Hex);
11644    pragma Inline (Set_Private_Declarations);
11645    pragma Inline (Set_Private_Present);
11646    pragma Inline (Set_Procedure_To_Call);
11647    pragma Inline (Set_Proper_Body);
11648    pragma Inline (Set_Protected_Definition);
11649    pragma Inline (Set_Protected_Present);
11650    pragma Inline (Set_Raises_Constraint_Error);
11651    pragma Inline (Set_Range_Constraint);
11652    pragma Inline (Set_Range_Expression);
11653    pragma Inline (Set_Real_Range_Specification);
11654    pragma Inline (Set_Realval);
11655    pragma Inline (Set_Reason);
11656    pragma Inline (Set_Record_Extension_Part);
11657    pragma Inline (Set_Redundant_Use);
11658    pragma Inline (Set_Renaming_Exception);
11659    pragma Inline (Set_Result_Definition);
11660    pragma Inline (Set_Return_Object_Declarations);
11661    pragma Inline (Set_Reverse_Present);
11662    pragma Inline (Set_Right_Opnd);
11663    pragma Inline (Set_Rounded_Result);
11664    pragma Inline (Set_SCIL_Controlling_Tag);
11665    pragma Inline (Set_SCIL_Entity);
11666    pragma Inline (Set_SCIL_Related_Node);
11667    pragma Inline (Set_SCIL_Target_Prim);
11668    pragma Inline (Set_Scope);
11669    pragma Inline (Set_Select_Alternatives);
11670    pragma Inline (Set_Selector_Name);
11671    pragma Inline (Set_Selector_Names);
11672    pragma Inline (Set_Shift_Count_OK);
11673    pragma Inline (Set_Source_Type);
11674    pragma Inline (Set_Specification);
11675    pragma Inline (Set_Statements);
11676    pragma Inline (Set_Static_Processing_OK);
11677    pragma Inline (Set_Storage_Pool);
11678    pragma Inline (Set_Strval);
11679    pragma Inline (Set_Subtype_Indication);
11680    pragma Inline (Set_Subtype_Mark);
11681    pragma Inline (Set_Subtype_Marks);
11682    pragma Inline (Set_Suppress_Loop_Warnings);
11683    pragma Inline (Set_Synchronized_Present);
11684    pragma Inline (Set_Tagged_Present);
11685    pragma Inline (Set_Target_Type);
11686    pragma Inline (Set_Task_Definition);
11687    pragma Inline (Set_Task_Present);
11688    pragma Inline (Set_Then_Actions);
11689    pragma Inline (Set_Then_Statements);
11690    pragma Inline (Set_Triggering_Alternative);
11691    pragma Inline (Set_Triggering_Statement);
11692    pragma Inline (Set_Treat_Fixed_As_Integer);
11693    pragma Inline (Set_TSS_Elist);
11694    pragma Inline (Set_Type_Definition);
11695    pragma Inline (Set_Unit);
11696    pragma Inline (Set_Unknown_Discriminants_Present);
11697    pragma Inline (Set_Unreferenced_In_Spec);
11698    pragma Inline (Set_Variant_Part);
11699    pragma Inline (Set_Variants);
11700    pragma Inline (Set_Visible_Declarations);
11701    pragma Inline (Set_Was_Originally_Stub);
11702    pragma Inline (Set_Zero_Cost_Handling);
11703
11704    N_Simple_Return_Statement : constant Node_Kind := N_Return_Statement;
11705    --  Rename N_Return_Statement to be N_Simple_Return_Statement. Clients
11706    --  should refer to N_Simple_Return_Statement.
11707
11708 end Sinfo;