[multiple changes]
[platform/upstream/gcc.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-2014, 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 these places:
63
64    --    In sinfo.ads:
65    --      The documentation associated with the field (if semantic)
66    --      The documentation associated with the node
67    --      The spec of the access function
68    --      The spec of the set procedure
69    --      The entries in Is_Syntactic_Field
70    --      The pragma Inline for the access function
71    --      The pragma Inline for the set procedure
72    --    In sinfo.adb:
73    --      The body of the access function
74    --      The body of the set procedure
75
76    --  The field chosen must be consistent in all places, and, for a node that
77    --  is a subexpression, must not overlap any of the standard expression
78    --  fields.
79
80    --  In addition, if any of the standard expression fields is changed, then
81    --  the utility program which creates the Treeprs spec (in file treeprs.ads)
82    --  must be updated appropriately, since it special cases expression fields.
83
84    --  If a new tree node is added, then the following changes are made:
85
86    --    Add it to the documentation in the appropriate place
87    --    Add its fields to this documentation section
88    --    Define it in the appropriate classification in Node_Kind
89    --    Add an entry in Is_Syntactic_Field
90    --    In the body (sinfo), add entries to the access functions for all
91    --     its fields (except standard expression fields) to include the new
92    --     node in the checks.
93    --    Add an appropriate section to the case statement in sprint.adb
94    --    Add an appropriate section to the case statement in sem.adb
95    --    Add an appropriate section to the case statement in exp_util.adb
96    --     (Insert_Actions procedure)
97    --    For a subexpression, add an appropriate section to the case
98    --     statement in sem_eval.adb
99    --    For a subexpression, add an appropriate section to the case
100    --     statement in sem_res.adb
101
102    --  All back ends must be made aware of the new node kind.
103
104    --  Finally, four utility programs must be run:
105
106    --    (Optional.) Run CSinfo to check that you have made the changes
107    --     consistently. It checks most of the rules given above. This utility
108    --     reads sinfo.ads and sinfo.adb and generates a report to standard
109    --     output. This step is optional because XSinfo runs CSinfo.
110
111    --    Run XSinfo to create sinfo.h, the corresponding C header. This
112    --     utility reads sinfo.ads and generates sinfo.h. Note that it does
113    --     not need to read sinfo.adb, since the contents of the body are
114    --     algorithmically determinable from the spec.
115
116    --    Run XTreeprs to create treeprs.ads, an updated version of the module
117    --     that is used to drive the tree print routine. This utility reads (but
118    --     does not modify) treeprs.adt, the template that provides the basic
119    --     structure of the file, and then fills in the data from the comments
120    --     in sinfo.ads.
121
122    --    Run XNmake to create nmake.ads and nmake.adb, the package body and
123    --     spec of the Nmake package which contains functions for constructing
124    --     nodes.
125
126    --  The above steps are done automatically by the build scripts when you do
127    --  a full bootstrap.
128
129    --  Note: sometime we could write a utility that actually generated the body
130    --  of sinfo from the spec instead of simply checking it, since, as noted
131    --  above, the contents of the body can be determined from the spec.
132
133    --------------------------------
134    -- Implicit Nodes in the Tree --
135    --------------------------------
136
137    --  Generally the structure of the tree very closely follows the grammar as
138    --  defined in the RM. However, certain nodes are omitted to save space and
139    --  simplify semantic processing. Two general classes of such omitted nodes
140    --  are as follows:
141
142    --   If the only possibilities for a non-terminal are one or more other
143    --   non-terminals (i.e. the rule is a "skinny" rule), then usually the
144    --   corresponding node is omitted from the tree, and the target construct
145    --   appears directly. For example, a real type definition is either
146    --   floating point definition or a fixed point definition. No explicit node
147    --   appears for real type definition. Instead either the floating point
148    --   definition or fixed point definition appears directly.
149
150    --   If a non-terminal corresponds to a list of some other non-terminal
151    --   (possibly with separating punctuation), then usually it is omitted from
152    --   the tree, and a list of components appears instead. For example,
153    --   sequence of statements does not appear explicitly in the tree. Instead
154    --   a list of statements appears directly.
155
156    --  Some additional cases of omitted nodes occur and are documented
157    --  individually. In particular, many nodes are omitted in the tree
158    --  generated for an expression.
159
160    -------------------------------------------
161    -- Handling of Defining Identifier Lists --
162    -------------------------------------------
163
164    --  In several declarative forms in the syntax, lists of defining
165    --  identifiers appear (object declarations, component declarations, number
166    --  declarations etc.)
167
168    --  The semantics of such statements are equivalent to a series of identical
169    --  declarations of single defining identifiers (except that conformance
170    --  checks require the same grouping of identifiers in the parameter case).
171
172    --  To simplify semantic processing, the parser breaks down such multiple
173    --  declaration cases into sequences of single declarations, duplicating
174    --  type and initialization information as required. The flags More_Ids and
175    --  Prev_Ids are used to record the original form of the source in the case
176    --  where the original source used a list of names, More_Ids being set on
177    --  all but the last name and Prev_Ids being set on all but the first name.
178    --  These flags are used to reconstruct the original source (e.g. in the
179    --  Sprint package), and also are included in the conformance checks, but
180    --  otherwise have no semantic significance.
181
182    --  Note: the reason that we use More_Ids and Prev_Ids rather than
183    --  First_Name and Last_Name flags is so that the flags are off in the
184    --  normal one identifier case, which minimizes tree print output.
185
186    -----------------------
187    -- Use of Node Lists --
188    -----------------------
189
190    --  With a few exceptions, if a construction of the form {non-terminal}
191    --  appears in the tree, lists are used in the corresponding tree node (see
192    --  package Nlists for handling of node lists). In this case a field of the
193    --  parent node points to a list of nodes for the non-terminal. The field
194    --  name for such fields has a plural name which always ends in "s". For
195    --  example, a case statement has a field Alternatives pointing to list of
196    --  case statement alternative nodes.
197
198    --  Only fields pointing to lists have names ending in "s", so generally the
199    --  structure is strongly typed, fields not ending in s point to single
200    --  nodes, and fields ending in s point to lists.
201
202    --  The following example shows how a traversal of a list is written. We
203    --  suppose here that Stmt points to a N_Case_Statement node which has a
204    --  list field called Alternatives:
205
206    --   Alt := First (Alternatives (Stmt));
207    --   while Present (Alt) loop
208    --      ..
209    --      -- processing for case statement alternative Alt
210    --      ..
211    --      Alt := Next (Alt);
212    --   end loop;
213
214    --  The Present function tests for Empty, which in this case signals the end
215    --  of the list. First returns Empty immediately if the list is empty.
216    --  Present is defined in Atree, First and Next are defined in Nlists.
217
218    --  The exceptions to this rule occur with {DEFINING_IDENTIFIERS} in all
219    --  contexts, which is handled as described in the previous section, and
220    --  with {,library_unit_NAME} in the N_With_Clause mode, which is handled
221    --  using the First_Name and Last_Name flags, as further detailed in the
222    --  description of the N_With_Clause node.
223
224    -------------
225    -- Pragmas --
226    -------------
227
228    --  Pragmas can appear in many different context, but are not included in
229    --  the grammar. Still they must appear in the tree, so they can be properly
230    --  processed.
231
232    --  Two approaches are used. In some cases, an extra field is defined in an
233    --  appropriate node that contains a list of pragmas appearing in the
234    --  expected context. For example pragmas can appear before an
235    --  Accept_Alternative in a Selective_Accept_Statement, and these pragmas
236    --  appear in the Pragmas_Before field of the N_Accept_Alternative node.
237
238    --  The other approach is to simply allow pragmas to appear in syntactic
239    --  lists where the grammar (of course) does not include the possibility.
240    --  For example, the Variants field of an N_Variant_Part node points to a
241    --  list that can contain both N_Pragma and N_Variant nodes.
242
243    --  To make processing easier in the latter case, the Nlists package
244    --  provides a set of routines (First_Non_Pragma, Last_Non_Pragma,
245    --  Next_Non_Pragma, Prev_Non_Pragma) that allow such lists to be handled
246    --  ignoring all pragmas.
247
248    --  In the case of the variants list, we can either write:
249
250    --      Variant := First (Variants (N));
251    --      while Present (Variant) loop
252    --         ...
253    --         Variant := Next (Variant);
254    --      end loop;
255
256    --  or
257
258    --      Variant := First_Non_Pragma (Variants (N));
259    --      while Present (Variant) loop
260    --         ...
261    --         Variant := Next_Non_Pragma (Variant);
262    --      end loop;
263
264    --  In the first form of the loop, Variant can either be an N_Pragma or an
265    --  N_Variant node. In the second form, Variant can only be N_Variant since
266    --  all pragmas are skipped.
267
268    ---------------------
269    -- Optional Fields --
270    ---------------------
271
272    --  Fields which correspond to a section of the syntax enclosed in square
273    --  brackets are generally omitted (and the corresponding field set to Empty
274    --  for a node, or No_List for a list). The documentation of such fields
275    --  notes these cases. One exception to this rule occurs in the case of
276    --  possibly empty statement sequences (such as the sequence of statements
277    --  in an entry call alternative). Such cases appear in the syntax rules as
278    --  [SEQUENCE_OF_STATEMENTS] and the fields corresponding to such optional
279    --  statement sequences always contain an empty list (not No_List) if no
280    --  statements are present.
281
282    --  Note: the utility program that constructs the body and spec of the Nmake
283    --  package relies on the format of the comments to determine if a field
284    --  should have a default value in the corresponding make routine. The rule
285    --  is that if the first line of the description of the field contains the
286    --  string "(set to xxx if", then a default value of xxx is provided for
287    --  this field in the corresponding Make_yyy routine.
288
289    -----------------------------------
290    -- Note on Body/Spec Terminology --
291    -----------------------------------
292
293    --  In informal discussions about Ada, it is customary to refer to package
294    --  and subprogram specs and bodies. However, this is not technically
295    --  correct, what is normally referred to as a spec or specification is in
296    --  fact a package declaration or subprogram declaration. We are careful in
297    --  GNAT to use the correct terminology and in particular, the full word
298    --  specification is never used as an incorrect substitute for declaration.
299    --  The structure and terminology used in the tree also reflects the grammar
300    --  and thus uses declaration and specification in the technically correct
301    --  manner.
302
303    --  However, there are contexts in which the informal terminology is useful.
304    --  We have the word "body" to refer to the Interp_Etype declared by the
305    --  declaration of a unit body, and in some contexts we need similar term to
306    --  refer to the entity declared by the package or subprogram declaration,
307    --  and simply using declaration can be confusing since the body also has a
308    --  declaration.
309
310    --  An example of such a context is the link between the package body and
311    --  its declaration. With_Declaration is confusing, since the package body
312    --  itself is a declaration.
313
314    --  To deal with this problem, we reserve the informal term Spec, i.e. the
315    --  popular abbreviation used in this context, to refer to the entity
316    --  declared by the package or subprogram declaration. So in the above
317    --  example case, the field in the body is called With_Spec.
318
319    --  Another important context for the use of the word Spec is in error
320    --  messages, where a hyper-correct use of declaration would be confusing to
321    --  a typical Ada programmer, and even for an expert programmer can cause
322    --  confusion since the body has a declaration as well.
323
324    --  So, to summarize:
325
326    --     Declaration    always refers to the syntactic entity that is called
327    --                    a declaration. In particular, subprogram declaration
328    --                    and package declaration are used to describe the
329    --                    syntactic entity that includes the semicolon.
330
331    --     Specification  always refers to the syntactic entity that is called
332    --                    a specification. In particular, the terms procedure
333    --                    specification, function specification, package
334    --                    specification, subprogram specification always refer
335    --                    to the syntactic entity that has no semicolon.
336
337    --     Spec           is an informal term, used to refer to the entity
338    --                    that is declared by a task declaration, protected
339    --                    declaration, generic declaration, subprogram
340    --                    declaration or package declaration.
341
342    --  This convention is followed throughout the GNAT documentation
343    --  both internal and external, and in all error message text.
344
345    ------------------------
346    -- Internal Use Nodes --
347    ------------------------
348
349    --  These are Node_Kind settings used in the internal implementation which
350    --  are not logically part of the specification.
351
352    --  N_Unused_At_Start
353    --  Completely unused entry at the start of the enumeration type. This
354    --  is inserted so that no legitimate value is zero, which helps to get
355    --  better debugging behavior, since zero is a likely uninitialized value).
356
357    --  N_Unused_At_End
358    --  Completely unused entry at the end of the enumeration type. This is
359    --  handy so that arrays with Node_Kind as the index type have an extra
360    --  entry at the end (see for example the use of the Pchar_Pos_Array in
361    --  Treepr, where the extra entry provides the limit value when dealing with
362    --  the last used entry in the array).
363
364    -----------------------------------------
365    -- Note on the settings of Sloc fields --
366    -----------------------------------------
367
368    --  The Sloc field of nodes that come from the source is set by the parser.
369    --  For internal nodes, and nodes generated during expansion the Sloc is
370    --  usually set in the call to the constructor for the node. In general the
371    --  Sloc value chosen for an internal node is the Sloc of the source node
372    --  whose processing is responsible for the expansion. For example, the Sloc
373    --  of an inherited primitive operation is the Sloc of the corresponding
374    --  derived type declaration.
375
376    --  For the nodes of a generic instantiation, the Sloc value is encoded to
377    --  represent both the original Sloc in the generic unit, and the Sloc of
378    --  the instantiation itself. See Sinput.ads for details.
379
380    --  Subprogram instances create two callable entities: one is the visible
381    --  subprogram instance, and the other is an anonymous subprogram nested
382    --  within a wrapper package that contains the renamings for the actuals.
383    --  Both of these entities have the Sloc of the defining entity in the
384    --  instantiation node. This simplifies some ASIS queries.
385
386    -----------------------
387    -- Field Definitions --
388    -----------------------
389
390    --  In the following node definitions, all fields, both syntactic and
391    --  semantic, are documented. The one exception is in the case of entities
392    --  (defining identifiers, character literals and operator symbols), where
393    --  the usage of the fields depends on the entity kind. Entity fields are
394    --  fully documented in the separate package Einfo.
395
396    --  In the node definitions, three common sets of fields are abbreviated to
397    --  save both space in the documentation, and also space in the string
398    --  (defined in Tree_Print_Strings) used to print trees. The following
399    --  abbreviations are used:
400
401    --  Note: the utility program that creates the Treeprs spec (in the file
402    --  xtreeprs.adb) knows about the special fields here, so it must be
403    --  modified if any change is made to these fields.
404
405    --    "plus fields for binary operator"
406    --       Chars                    (Name1)      Name_Id for the operator
407    --       Left_Opnd                (Node2)      left operand expression
408    --       Right_Opnd               (Node3)      right operand expression
409    --       Entity                   (Node4-Sem)  defining entity for operator
410    --       Associated_Node          (Node4-Sem)  for generic processing
411    --       Do_Overflow_Check        (Flag17-Sem) set if overflow check needed
412    --       Has_Private_View         (Flag11-Sem) set in generic units.
413
414    --    "plus fields for unary operator"
415    --       Chars                    (Name1)      Name_Id for the operator
416    --       Right_Opnd               (Node3)      right operand expression
417    --       Entity                   (Node4-Sem)  defining entity for operator
418    --       Associated_Node          (Node4-Sem)  for generic processing
419    --       Do_Overflow_Check        (Flag17-Sem) set if overflow check needed
420    --       Has_Private_View         (Flag11-Sem) set in generic units.
421
422    --    "plus fields for expression"
423    --       Paren_Count                           number of parentheses levels
424    --       Etype                    (Node5-Sem)  type of the expression
425    --       Is_Overloaded            (Flag5-Sem)  >1 type interpretation exists
426    --       Is_Static_Expression     (Flag6-Sem)  set for static expression
427    --       Raises_Constraint_Error  (Flag7-Sem)  evaluation raises CE
428    --       Must_Not_Freeze          (Flag8-Sem)  set if must not freeze
429    --       Do_Range_Check           (Flag9-Sem)  set if a range check needed
430    --       Has_Dynamic_Length_Check (Flag10-Sem) set if length check inserted
431    --       Has_Dynamic_Range_Check  (Flag12-Sem) set if range check inserted
432    --       Assignment_OK            (Flag15-Sem) set if modification is OK
433    --       Is_Controlling_Actual    (Flag16-Sem) set for controlling argument
434
435    --  Note: see under (EXPRESSION) for further details on the use of
436    --  the Paren_Count field to record the number of parentheses levels.
437
438    --  Node_Kind is the type used in the Nkind field to indicate the node kind.
439    --  The actual definition of this type is given later (the reason for this
440    --  is that we want the descriptions ordered by logical chapter in the RM,
441    --  but the type definition is reordered to facilitate the definition of
442    --  some subtype ranges. The individual descriptions of the nodes show how
443    --  the various fields are used in each node kind, as well as providing
444    --  logical names for the fields. Functions and procedures are provided for
445    --  accessing and setting these fields using these logical names.
446
447    -----------------------
448    -- Gigi Restrictions --
449    -----------------------
450
451    --  The tree passed to Gigi is more restricted than the general tree form.
452    --  For example, as a result of expansion, most of the tasking nodes can
453    --  never appear. For each node to which either a complete or partial
454    --  restriction applies, a note entitled "Gigi restriction" appears which
455    --  documents the restriction.
456
457    --  Note that most of these restrictions apply only to trees generated when
458    --  code is being generated, since they involved expander actions that
459    --  destroy the tree.
460
461    ---------------
462    -- ASIS Mode --
463    ---------------
464
465    --  When a file is compiled in ASIS mode (-gnatct), expansion is skipped,
466    --  and the analysis must generate a tree in a form that meets all ASIS
467    --  requirements.
468
469    --  ASIS must be able to recover the original tree that corresponds to the
470    --  source. It relies heavily on Original_Node for this purpose, which as
471    --  described in Atree, records the history when a node is rewritten. ASIS
472    --  uses Original_Node to recover the original node before the Rewrite.
473
474    --  At least in ASIS mode (not really important in non-ASIS mode), when
475    --  N1 is rewritten as N2:
476
477    --    The subtree rooted by the original node N1 should be fully decorated,
478    --    i.e. all semantic fields noted in sinfo.ads should be set properly
479    --    and any referenced entities should be complete (with exceptions for
480    --    representation information, noted below).
481
482    --    For all the direct descendants of N1 (original node) their Parent
483    --    links should point not to N1, but to N2 (rewriting node).
484
485    --    The Parent links of rewritten nodes (N1 in this example) are set in
486    --    some cases (to point to the rewritten parent), but in other cases
487    --    they are set to Empty. This needs sorting out ??? It would be much
488    --    cleaner if they could always be set in the original node ???
489
490    --  There are a few cases when ASIS has to use not the original, but the
491    --  rewritten tree structures. This happens when because of some important
492    --  technical reasons it is impossible or very hard to have the original
493    --  structure properly decorated by semantic information, and the rewritten
494    --  structure fully reproduces the original source. Below is the (incomplete
495    --  for the moment) list of such exceptions:
496    --
497    --  * generic specifications and generic bodies;
498    --  * function calls that use prefixed notation (Operand.Operation [(...)]);
499
500    --  Representation Information
501
502    --    For the purposes of the data description annex, the representation
503    --    information for source declared entities must be complete in the
504    --    ASIS tree.
505
506    --    This requires that the front end call the back end (gigi/gcc) in
507    --    a special "back annotate only" mode to obtain information on layout
508    --    from the back end.
509
510    --    For the purposes of this special "back annotate only" mode, the
511    --    requirements that would normally need to be met to generate code
512    --    are relaxed as follows:
513
514    --      Anonymous types need not have full representation information (e.g.
515    --      sizes need not be set for types where the front end would normally
516    --      set the sizes), since anonymous types can be ignored in this mode.
517
518    --      In this mode, gigi will see at least fragments of a fully annotated
519    --      unexpanded tree. This means that it will encounter nodes it does
520    --      not normally handle (such as stubs, task bodies etc). It should
521    --      simply ignore these nodes, since they are not relevant to the task
522    --      of back annotating representation information.
523
524    --------------------
525    -- GNATprove Mode --
526    --------------------
527
528    --  When a file is compiled in GNATprove mode (-gnatd.F), a very light
529    --  expansion is performed and the analysis must generate a tree in a
530    --  form that meets additional requirements.
531
532    --  This light expansion does two transformations of the tree that cannot
533    --  be postponed till after semantic analysis:
534
535    --    1. Replace object renamings by renamed object. This requires the
536    --       introduction of temporaries at the point of the renaming, which
537    --       must be properly analyzed.
538
539    --    2. Fully qualify entity names. This is needed to generate suitable
540    --       local effects and call-graphs in ALI files, with the completely
541    --       qualified names (in particular the suffix to distinguish homonyms).
542
543    --  The tree after this light expansion should be fully analyzed
544    --  semantically, which sometimes requires the insertion of semantic
545    --  pre-analysis, for example for subprogram contracts and pragma
546    --  check/assert. In particular, all expression must have their proper type,
547    --  and semantic links should be set between tree nodes (partial to full
548    --  view, etc.) Some kinds of nodes should be either absent, or can be
549    --  ignored by the formal verification backend:
550
551    --      N_Object_Renaming_Declaration: can be ignored safely
552    --      N_Expression_Function:         absent (rewritten)
553    --      N_Expression_With_Actions:     absent (not generated)
554
555    --  SPARK cross-references are generated from the regular cross-references
556    --  (used for browsing and code understanding) and additional references
557    --  collected during semantic analysis, in particular on all dereferences.
558    --  These SPARK cross-references are output in a separate section of ALI
559    --  files, as described in spark_xrefs.adb. They are the basis for the
560    --  computation of data dependences in GNATprove. This implies that all
561    --  cross-references should be generated in this mode, even those that would
562    --  not make sense from a user point-of-view, and that cross-references that
563    --  do not lead to data dependences for subprograms can be safely ignored.
564
565    --  In addition pragma Debug statements are removed from the tree (rewritten
566    --  to NULL stmt), since they should be ignored in formal verification.
567
568    --  An error is also issued for missing subunits, similar to the warning
569    --  issued when generating code, to avoid formal verification of a partial
570    --  unit.
571
572    -----------------------
573    -- Check Flag Fields --
574    -----------------------
575
576    --  The following flag fields appear in expression nodes:
577
578    --    Do_Division_Check
579    --    Do_Overflow_Check
580    --    Do_Range_Check
581
582    --  These three flags are always set by the front end during semantic
583    --  analysis, on expression nodes that may trigger the corresponding
584    --  check. The front end then inserts or not the check during expansion. In
585    --  particular, these flags should also be correctly set in ASIS mode and
586    --  GNATprove mode.
587
588    --  Note: the expander always takes care of the Do_Range check case,
589    --  so this flag will never be set in the expanded tree passed to the
590    --  back end code generator.
591
592    --  Note that this accounts for all nodes that trigger the corresponding
593    --  checks, except for range checks on subtype_indications, which may be
594    --  required to check that a range_constraint is compatible with the given
595    --  subtype (RM 3.2.2(11)).
596
597    --  The following flag fields appear in various nodes:
598
599    --    Do_Accessibility_Check
600    --    Do_Discriminant_Check
601    --    Do_Length_Check
602    --    Do_Storage_Check
603    --    Do_Tag_Check
604
605    --  These flags are used in some specific cases by the front end, either
606    --  during semantic analysis or during expansion, and cannot be expected
607    --  to be set on all nodes that trigger the corresponding check.
608
609    ------------------------
610    -- Common Flag Fields --
611    ------------------------
612
613    --  The following flag fields appear in all nodes:
614
615    --  Analyzed
616    --    This flag is used to indicate that a node (and all its children have
617    --    been analyzed. It is used to avoid reanalysis of a node that has
618    --    already been analyzed, both for efficiency and functional correctness
619    --    reasons.
620
621    --  Comes_From_Source
622    --    This flag is set if the node comes directly from an explicit construct
623    --    in the source. It is normally on for any nodes built by the scanner or
624    --    parser from the source program, with the exception that in a few cases
625    --    the parser adds nodes to normalize the representation (in particular
626    --    a null statement is added to a package body if there is no begin/end
627    --    initialization section.
628    --
629    --    Most nodes inserted by the analyzer or expander are not considered
630    --    as coming from source, so the flag is off for such nodes. In a few
631    --    cases, the expander constructs nodes closely equivalent to nodes
632    --    from the source program (e.g. the allocator built for build-in-place
633    --    case), and the Comes_From_Source flag is deliberately set.
634
635    --  Error_Posted
636    --    This flag is used to avoid multiple error messages being posted on or
637    --    referring to the same node. This flag is set if an error message
638    --    refers to a node or is posted on its source location, and has the
639    --    effect of inhibiting further messages involving this same node.
640
641    -----------------------
642    -- Modify_Tree_For_C --
643    -----------------------
644
645    --  If the flag Opt.Modify_Tree_For_C is set True, then the tree is modified
646    --  in ways that help match the semantics better with C, easing the task of
647    --  interfacing to C code generators (other than GCC, where the work is done
648    --  in gigi, and there is no point in changing that), and also making life
649    --  easier for Cprint in generating C source code.
650
651    --  The current modifications implemented are as follows:
652
653    --    N_Op_Rotate_Left, N_Op_Rotate_Right, N_Shift_Right_Arithmetic nodes
654    --    are eliminated from the tree (since these operations do not exist in
655    --    C), and the operations are rewritten in terms of logical shifts and
656    --    other logical operations that do exist in C. See Exp_Ch4 expansion
657    --    routines for these operators for details of the transformations made.
658
659    --    The right operand of N_Op_Shift_Right and N_Op_Shift_Left is always
660    --    less than the word size (since other values are not well-defined in
661    --    C). This is done using an explicit test if necessary.
662
663    --    Min and Max attributes are expanded into equivalent if expressions,
664    --    dealing properly with side effect issues.
665
666    --    Mod for signed integer types is expanded into equivalent expressions
667    --    using Rem (which is % in C) and other C-available operators.
668
669    --    The Actions list of an Expression_With_Actions node does not contain
670    --    any declarations,(so that DO X, .. Y IN Z becomes (X, .. Y, Z) in C).
671
672    ------------------------------------
673    -- Description of Semantic Fields --
674    ------------------------------------
675
676    --  The meaning of the syntactic fields is generally clear from their names
677    --  without any further description, since the names are chosen to
678    --  correspond very closely to the syntax in the reference manual. This
679    --  section describes the usage of the semantic fields, which are used to
680    --  contain additional information determined during semantic analysis.
681
682    --  ABE_Is_Certain (Flag18-Sem)
683    --    This flag is set in an instantiation node or a call node is determined
684    --    to be sure to raise an ABE. This is used to trigger special handling
685    --    of such cases, particularly in the instantiation case where we avoid
686    --    instantiating the body if this flag is set. This flag is also present
687    --    in an N_Formal_Package_Declaration_Node since formal package
688    --    declarations are treated like instantiations, but it is always set to
689    --    False in this context.
690
691    --  Accept_Handler_Records (List5-Sem)
692    --    This field is present only in an N_Accept_Alternative node. It is used
693    --    to temporarily hold the exception handler records from an accept
694    --    statement in a selective accept. These exception handlers will
695    --    eventually be placed in the Handler_Records list of the procedure
696    --    built for this accept (see Expand_N_Selective_Accept procedure in
697    --    Exp_Ch9 for further details).
698
699    --  Access_Types_To_Process (Elist2-Sem)
700    --    Present in N_Freeze_Entity nodes for Incomplete or private types.
701    --    Contains the list of access types which may require specific treatment
702    --    when the nature of the type completion is completely known. An example
703    --    of such treatment is the generation of the associated_final_chain.
704
705    --  Actions (List1-Sem)
706    --    This field contains a sequence of actions that are associated with the
707    --    node holding the field. See the individual node types for details of
708    --    how this field is used, as well as the description of the specific use
709    --    for a particular node type.
710
711    --  Activation_Chain_Entity (Node3-Sem)
712    --    This is used in tree nodes representing task activators (blocks,
713    --    subprogram bodies, package declarations, and task bodies). It is
714    --    initially Empty, and then gets set to point to the entity for the
715    --    declared Activation_Chain variable when the first task is declared.
716    --    When tasks are declared in the corresponding declarative region this
717    --    entity is located by name (its name is always _Chain) and the declared
718    --    tasks are added to the chain. Note that N_Extended_Return_Statement
719    --    does not have this attribute, although it does have an activation
720    --    chain. This chain is used to store the tasks temporarily, and is not
721    --    used for activating them. On successful completion of the return
722    --    statement, the tasks are moved to the caller's chain, and the caller
723    --    activates them.
724
725    --  Acts_As_Spec (Flag4-Sem)
726    --    A flag set in the N_Subprogram_Body node for a subprogram body which
727    --    is acting as its own spec, except in the case of a library level
728    --    subprogram, in which case the flag is set on the parent compilation
729    --    unit node instead.
730
731    --  Actual_Designated_Subtype (Node4-Sem)
732    --    Present in N_Free_Statement and N_Explicit_Dereference nodes. If gigi
733    --    needs to known the dynamic constrained subtype of the designated
734    --    object, this attribute is set to that type. This is done for
735    --    N_Free_Statements for access-to-classwide types and access to
736    --    unconstrained packed array types, and for N_Explicit_Dereference when
737    --    the designated type is an unconstrained packed array and the
738    --    dereference is the prefix of a 'Size attribute reference.
739
740    --  Address_Warning_Posted (Flag18-Sem)
741    --    Present in N_Attribute_Definition nodes. Set to indicate that we have
742    --    posted a warning for the address clause regarding size or alignment
743    --    issues. Used to inhibit multiple redundant messages.
744
745    --  Aggregate_Bounds (Node3-Sem)
746    --    Present in array N_Aggregate nodes. If the bounds of the aggregate are
747    --    known at compile time, this field points to an N_Range node with those
748    --    bounds. Otherwise Empty.
749
750    --  All_Others (Flag11-Sem)
751    --    Present in an N_Others_Choice node. This flag is set for an others
752    --    exception where all exceptions are to be caught, even those that are
753    --    not normally handled (in particular the tasking abort signal). This
754    --    is used for translation of the at end handler into a normal exception
755    --    handler.
756
757    --  Aspect_Rep_Item (Node2-Sem)
758    --    Present in N_Aspect_Specification nodes. Points to the corresponding
759    --    pragma/attribute definition node used to process the aspect.
760
761    --  Assignment_OK (Flag15-Sem)
762    --    This flag is set in a subexpression node for an object, indicating
763    --    that the associated object can be modified, even if this would not
764    --    normally be permissible (either by direct assignment, or by being
765    --    passed as an out or in-out parameter). This is used by the expander
766    --    for a number of purposes, including initialization of constants and
767    --    limited type objects (such as tasks), setting discriminant fields,
768    --    setting tag values, etc. N_Object_Declaration nodes also have this
769    --    flag defined. Here it is used to indicate that an initialization
770    --    expression is valid, even where it would normally not be allowed
771    --    (e.g. where the type involved is limited).
772
773    --  Associated_Node (Node4-Sem)
774    --    Present in nodes that can denote an entity: identifiers, character
775    --    literals, operator symbols, expanded names, operator nodes, and
776    --    attribute reference nodes (all these nodes have an Entity field).
777    --    This field is also present in N_Aggregate, N_Selected_Component, and
778    --    N_Extension_Aggregate nodes. This field is used in generic processing
779    --    to create links between the generic template and the generic copy.
780    --    See Sem_Ch12.Get_Associated_Node for full details. Note that this
781    --    field overlaps Entity, which is fine, since, as explained in Sem_Ch12,
782    --    the normal function of Entity is not required at the point where the
783    --    Associated_Node is set. Note also, that in generic templates, this
784    --    means that the Entity field does not necessarily point to an Entity.
785    --    Since the back end is expected to ignore generic templates, this is
786    --    harmless.
787
788    --  Atomic_Sync_Required (Flag14-Sem)
789    --    This flag is set on a node for which atomic synchronization is
790    --    required for the corresponding reference or modification.
791
792    --  At_End_Proc (Node1)
793    --    This field is present in an N_Handled_Sequence_Of_Statements node.
794    --    It contains an identifier reference for the cleanup procedure to be
795    --    called. See description of this node for further details.
796
797    --  Backwards_OK (Flag6-Sem)
798    --    A flag present in the N_Assignment_Statement node. It is used only
799    --    if the type being assigned is an array type, and is set if analysis
800    --    determines that it is definitely safe to do the copy backwards, i.e.
801    --    starting at the highest addressed element. This is the case if either
802    --    the operands do not overlap, or they may overlap, but if they do,
803    --    then the left operand is at a higher address than the right operand.
804    --
805    --    Note: If neither of the flags Forwards_OK or Backwards_OK is set, it
806    --    means that the front end could not determine that either direction is
807    --    definitely safe, and a runtime check may be required if the backend
808    --    cannot figure it out. If both flags Forwards_OK and Backwards_OK are
809    --    set, it means that the front end can assure no overlap of operands.
810
811    --  Body_To_Inline (Node3-Sem)
812    --    present in subprogram declarations. Denotes analyzed but unexpanded
813    --    body of subprogram, to be used when inlining calls. Present when the
814    --    subprogram has an Inline pragma and inlining is enabled. If the
815    --    declaration is completed by a renaming_as_body, and the renamed en-
816    --    tity is a subprogram, the Body_To_Inline is the name of that entity,
817    --    which is used directly in later calls to the original subprogram.
818
819    --  Body_Required (Flag13-Sem)
820    --    A flag that appears in the N_Compilation_Unit node indicating that
821    --    the corresponding unit requires a body. For the package case, this
822    --    indicates that a completion is required. In Ada 95, if the flag is not
823    --    set for the package case, then a body may not be present. In Ada 83,
824    --    if the flag is not set for the package case, then body is optional.
825    --    For a subprogram declaration, the flag is set except in the case where
826    --    a pragma Import or Interface applies, in which case no body is
827    --    permitted (in Ada 83 or Ada 95).
828
829    --  By_Ref (Flag5-Sem)
830    --    Present in N_Simple_Return_Statement and N_Extended_Return_Statement,
831    --    this flag is set when the returned expression is already allocated on
832    --    the secondary stack and thus the result is passed by reference rather
833    --    than copied another time.
834
835    --  Check_Address_Alignment (Flag11-Sem)
836    --    A flag present in N_Attribute_Definition clause for a 'Address
837    --    attribute definition. This flag is set if a dynamic check should be
838    --    generated at the freeze point for the entity to which this address
839    --    clause applies. The reason that we need this flag is that we want to
840    --    check for range checks being suppressed at the point where the
841    --    attribute definition clause is given, rather than testing this at the
842    --    freeze point.
843
844    --  Comes_From_Extended_Return_Statement (Flag18-Sem)
845    --    Present in N_Simple_Return_Statement nodes. True if this node was
846    --    constructed as part of the N_Extended_Return_Statement expansion.
847
848    --  Compile_Time_Known_Aggregate (Flag18-Sem)
849    --    Present in N_Aggregate nodes. Set for aggregates which can be fully
850    --    evaluated at compile time without raising constraint error. Such
851    --    aggregates can be passed as is the back end without any expansion.
852    --    See Exp_Aggr for specific conditions under which this flag gets set.
853
854    --  Componentwise_Assignment (Flag14-Sem)
855    --    Present in N_Assignment_Statement nodes. Set for a record assignment
856    --    where all that needs doing is to expand it into component-by-component
857    --    assignments. This is used internally for the case of tagged types with
858    --    rep clauses, where we need to avoid recursion (we don't want to try to
859    --    generate a call to the primitive operation, because this is the case
860    --    where we are compiling the primitive operation). Note that when we are
861    --    expanding component assignments in this case, we never assign the _tag
862    --    field, but we recursively assign components of the parent type.
863
864    --  Condition_Actions (List3-Sem)
865    --    This field appears in else-if nodes and in the iteration scheme node
866    --    for while loops. This field is only used during semantic processing to
867    --    temporarily hold actions inserted into the tree. In the tree passed
868    --    to gigi, the condition actions field is always set to No_List. For
869    --    details on how this field is used, see the routine Insert_Actions in
870    --    package Exp_Util, and also the expansion routines for the relevant
871    --    nodes.
872
873    --  Context_Pending (Flag16-Sem)
874    --    This field appears in Compilation_Unit nodes, to indicate that the
875    --    context of the unit is being compiled. Used to detect circularities
876    --    that are not otherwise detected by the loading mechanism. Such
877    --    circularities can occur in the presence of limited and non-limited
878    --    with_clauses that mention the same units.
879
880    --  Controlling_Argument (Node1-Sem)
881    --    This field is set in procedure and function call nodes if the call
882    --    is a dispatching call (it is Empty for a non-dispatching call). It
883    --    indicates the source of the call's controlling tag. For procedure
884    --    calls, the Controlling_Argument is one of the actuals. For function
885    --    that has a dispatching result, it is an entity in the context of the
886    --    call that can provide a tag, or else it is the tag of the root type
887    --    of the class. It can also specify a tag directly rather than being a
888    --    tagged object. The latter is needed by the implementations of AI-239
889    --    and AI-260.
890
891    --  Conversion_OK (Flag14-Sem)
892    --    A flag set on type conversion nodes to indicate that the conversion
893    --    is to be considered as being valid, even though it is the case that
894    --    the conversion is not valid Ada. This is used for attributes Enum_Rep,
895    --    Fixed_Value and Integer_Value, for internal conversions done for
896    --    fixed-point operations, and for certain conversions for calls to
897    --    initialization procedures. If Conversion_OK is set, then Etype must be
898    --    set (the analyzer assumes that Etype has been set). For the case of
899    --    fixed-point operands, it also indicates that the conversion is to be
900    --    direct conversion of the underlying integer result, with no regard to
901    --    the small operand.
902
903    --  Convert_To_Return_False (Flag13-Sem)
904    --    Present in N_Raise_Expression nodes that appear in the body of the
905    --    special predicateM function used to test a predicate in the context
906    --    of a membership test, where raise expression results in returning a
907    --    value of False rather than raising an exception.
908
909    --  Corresponding_Aspect (Node3-Sem)
910    --    Present in N_Pragma node. Used to point back to the source aspect from
911    --    the corresponding pragma. This field is Empty for source pragmas.
912
913    --  Corresponding_Body (Node5-Sem)
914    --    This field is set in subprogram declarations, package declarations,
915    --    entry declarations of protected types, and in generic units. It points
916    --    to the defining entity for the corresponding body (NOT the node for
917    --    the body itself).
918
919    --  Corresponding_Formal_Spec (Node3-Sem)
920    --    This field is set in subprogram renaming declarations, where it points
921    --    to the defining entity for a formal subprogram in the case where the
922    --    renaming corresponds to a generic formal subprogram association in an
923    --    instantiation. The field is Empty if the renaming does not correspond
924    --    to such a formal association.
925
926    --  Corresponding_Generic_Association (Node5-Sem)
927    --    This field is defined for object declarations and object renaming
928    --    declarations. It is set for the declarations within an instance that
929    --    map generic formals to their actuals. If set, the field points to
930    --    a generic_association which is the original parent of the expression
931    --    or name appearing in the declaration. This simplifies ASIS queries.
932
933    --  Corresponding_Integer_Value (Uint4-Sem)
934    --    This field is set in real literals of fixed-point types (it is not
935    --    used for floating-point types). It contains the integer value used
936    --    to represent the fixed-point value. It is also set on the universal
937    --    real literals used to represent bounds of fixed-point base types
938    --    and their first named subtypes.
939
940    --  Corresponding_Spec (Node5-Sem)
941    --    This field is set in subprogram, package, task, and protected body
942    --    nodes, where it points to the defining entity in the corresponding
943    --    spec. The attribute is also set in N_With_Clause nodes where it points
944    --    to the defining entity for the with'ed spec, and in a subprogram
945    --    renaming declaration when it is a Renaming_As_Body. The field is Empty
946    --    if there is no corresponding spec, as in the case of a subprogram body
947    --    that serves as its own spec.
948    --
949    --    In Ada 2012, Corresponding_Spec is set on expression functions that
950    --    complete a subprogram declaration.
951
952    --  Corresponding_Spec_Of_Stub (Node2-Sem)
953    --    This field is present in subprogram, package, task and protected body
954    --    stubs where it points to the corresponding spec of the stub. Due to
955    --    clashes in the structure of nodes, we cannot use Corresponding_Spec.
956
957    --  Corresponding_Stub (Node3-Sem)
958    --    This field is present in an N_Subunit node. It holds the node in
959    --    the parent unit that is the stub declaration for the subunit. It is
960    --    set when analysis of the stub forces loading of the proper body. If
961    --    expansion of the proper body creates new declarative nodes, they are
962    --    inserted at the point of the corresponding_stub.
963
964    --  Dcheck_Function (Node5-Sem)
965    --    This field is present in an N_Variant node, It references the entity
966    --    for the discriminant checking function for the variant.
967
968    --  Default_Expression (Node5-Sem)
969    --    This field is Empty if there is no default expression. If there is a
970    --    simple default expression (one with no side effects), then this field
971    --    simply contains a copy of the Expression field (both point to the tree
972    --    for the default expression). Default_Expression is used for
973    --    conformance checking.
974
975    --  Default_Storage_Pool (Node3-Sem)
976    --    This field is present in N_Compilation_Unit_Aux nodes. It is set to a
977    --    copy of Opt.Default_Pool at the end of the compilation unit. See
978    --    package Opt for details. This is used for inheriting the
979    --    Default_Storage_Pool in child units.
980
981    --  Discr_Check_Funcs_Built (Flag11-Sem)
982    --    This flag is present in N_Full_Type_Declaration nodes. It is set when
983    --    discriminant checking functions are constructed. The purpose is to
984    --    avoid attempting to set these functions more than once.
985
986    --  Do_Accessibility_Check (Flag13-Sem)
987    --    This flag is set on N_Parameter_Specification nodes to indicate
988    --    that an accessibility check is required for the parameter. It is
989    --    not yet decided who takes care of this check (TBD ???).
990
991    --  Do_Discriminant_Check (Flag1-Sem)
992    --    This flag is set on N_Selected_Component nodes to indicate that a
993    --    discriminant check is required using the discriminant check routine
994    --    associated with the selector. The actual check is generated by the
995    --    expander when processing selected components. In the case of
996    --    Unchecked_Union, the flag is also set, but no discriminant check
997    --    routine is associated with the selector, and the expander does not
998    --    generate a check. This flag is also present in assignment statements
999    --    (and set if the assignment requires a discriminant check), and in type
1000    --    conversion nodes (and set if the conversion requires a check).
1001
1002    --  Do_Division_Check (Flag13-Sem)
1003    --    This flag is set on a division operator (/ mod rem) to indicate
1004    --    that a zero divide check is required. The actual check is dealt
1005    --    with by the backend (all the front end does is to set the flag).
1006
1007    --  Do_Length_Check (Flag4-Sem)
1008    --    This flag is set in an N_Assignment_Statement, N_Op_And, N_Op_Or,
1009    --    N_Op_Xor, or N_Type_Conversion node to indicate that a length check
1010    --    is required. It is not determined who deals with this flag (???).
1011
1012    --  Do_Overflow_Check (Flag17-Sem)
1013    --    This flag is set on an operator where an overflow check is required on
1014    --    the operation. The actual check is dealt with by the backend (all the
1015    --    front end does is to set the flag). The other cases where this flag is
1016    --    used is on a Type_Conversion node and for attribute reference nodes.
1017    --    For a type conversion, it means that the conversion is from one base
1018    --    type to another, and the value may not fit in the target base type.
1019    --    See also the description of Do_Range_Check for this case. The only
1020    --    attribute references which use this flag are Pred and Succ, where it
1021    --    means that the result should be checked for going outside the base
1022    --    range. Note that this flag is not set for modular types. This flag is
1023    --    also set on if and case expression nodes if we are operating in either
1024    --    MINIMIZED or ELIMINATED overflow checking mode (to make sure that we
1025    --    properly process overflow checking for dependent expressions).
1026
1027    --  Do_Range_Check (Flag9-Sem)
1028    --    This flag is set on an expression which appears in a context where a
1029    --    range check is required. The target type is clear from the context.
1030    --    The contexts in which this flag can appear are the following:
1031
1032    --      Right side of an assignment. In this case the target type is
1033    --      taken from the left side of the assignment, which is referenced
1034    --      by the Name of the N_Assignment_Statement node.
1035
1036    --      Subscript expressions in an indexed component. In this case the
1037    --      target type is determined from the type of the array, which is
1038    --      referenced by the Prefix of the N_Indexed_Component node.
1039
1040    --      Argument expression for a parameter, appearing either directly in
1041    --      the Parameter_Associations list of a call or as the Expression of an
1042    --      N_Parameter_Association node that appears in this list. In either
1043    --      case, the check is against the type of the formal. Note that the
1044    --      flag is relevant only in IN and IN OUT parameters, and will be
1045    --      ignored for OUT parameters, where no check is required in the call,
1046    --      and if a check is required on the return, it is generated explicitly
1047    --      with a type conversion.
1048
1049    --      Initialization expression for the initial value in an object
1050    --      declaration. In this case the Do_Range_Check flag is set on
1051    --      the initialization expression, and the check is against the
1052    --      range of the type of the object being declared.
1053
1054    --      The expression of a type conversion. In this case the range check is
1055    --      against the target type of the conversion. See also the use of
1056    --      Do_Overflow_Check on a type conversion. The distinction is that the
1057    --      overflow check protects against a value that is outside the range of
1058    --      the target base type, whereas a range check checks that the
1059    --      resulting value (which is a value of the base type of the target
1060    --      type), satisfies the range constraint of the target type.
1061
1062    --    Note: when a range check is required in contexts other than those
1063    --    listed above (e.g. in a return statement), an additional type
1064    --    conversion node is introduced to represent the required check.
1065
1066    --    A special case arises for the arguments of the Pred/Succ attributes.
1067    --    Here the range check needed is against First + 1 ..  Last (Pred) or
1068    --    First .. Last - 1 (Succ) of the corresponding base type. Essentially
1069    --    these checks are what would be performed within the implicit body of
1070    --    the functions that correspond to these attributes. In these cases,
1071    --    the Do_Range check flag is set on the argument to the attribute
1072    --    function, and the back end must special case the appropriate range
1073    --    to check against.
1074
1075    --  Do_Storage_Check (Flag17-Sem)
1076    --    This flag is set in an N_Allocator node to indicate that a storage
1077    --    check is required for the allocation, or in an N_Subprogram_Body node
1078    --    to indicate that a stack check is required in the subprogram prolog.
1079    --    The N_Allocator case is handled by the routine that expands the call
1080    --    to the runtime routine. The N_Subprogram_Body case is handled by the
1081    --    backend, and all the semantics does is set the flag.
1082
1083    --  Do_Tag_Check (Flag13-Sem)
1084    --    This flag is set on an N_Assignment_Statement, N_Function_Call,
1085    --    N_Procedure_Call_Statement, N_Type_Conversion,
1086    --    N_Simple_Return_Statement, or N_Extended_Return_Statement
1087    --    node to indicate that the tag check can be suppressed. It is not
1088    --    yet decided how this flag is used (TBD ???).
1089
1090    --  Elaborate_Present (Flag4-Sem)
1091    --    This flag is set in the N_With_Clause node to indicate that pragma
1092    --    Elaborate pragma appears for the with'ed units.
1093
1094    --  Elaborate_All_Desirable (Flag9-Sem)
1095    --    This flag is set in the N_With_Clause mode to indicate that the static
1096    --    elaboration processing has determined that an Elaborate_All pragma is
1097    --    desirable for correct elaboration for this unit.
1098
1099    --  Elaborate_All_Present (Flag14-Sem)
1100    --    This flag is set in the N_With_Clause node to indicate that a
1101    --    pragma Elaborate_All pragma appears for the with'ed units.
1102
1103    --  Elaborate_Desirable (Flag11-Sem)
1104    --    This flag is set in the N_With_Clause mode to indicate that the static
1105    --    elaboration processing has determined that an Elaborate pragma is
1106    --    desirable for correct elaboration for this unit.
1107
1108    --  Elaboration_Boolean (Node2-Sem)
1109    --    This field is present in function and procedure specification nodes.
1110    --    If set, it points to the entity for a Boolean flag that must be tested
1111    --    for certain calls to check for access before elaboration. See body of
1112    --    Sem_Elab for further details. This field is Empty if no elaboration
1113    --    boolean is required.
1114
1115    --  Else_Actions (List3-Sem)
1116    --    This field is present in if expression nodes. During code
1117    --    expansion we use the Insert_Actions procedure (in Exp_Util) to insert
1118    --    actions at an appropriate place in the tree to get elaborated at the
1119    --    right time. For if expressions, we have to be sure that the actions
1120    --    for the Else branch are only elaborated if the condition is False.
1121    --    The Else_Actions field is used as a temporary parking place for
1122    --    these actions. The final tree is always rewritten to eliminate the
1123    --    need for this field, so in the tree passed to Gigi, this field is
1124    --    always set to No_List.
1125
1126    --  Enclosing_Variant (Node2-Sem)
1127    --    This field is present in the N_Variant node and identifies the Node_Id
1128    --    corresponding to the immediately enclosing variant when the variant is
1129    --    nested, and N_Empty otherwise. Set during semantic processing of the
1130    --    variant part of a record type.
1131
1132    --  Entity (Node4-Sem)
1133    --    Appears in all direct names (identifiers, character literals, and
1134    --    operator symbols), as well as expanded names, and attributes that
1135    --    denote entities, such as 'Class. Points to entity for corresponding
1136    --    defining occurrence. Set after name resolution. For identifiers in a
1137    --    WITH list, the corresponding defining occurrence is in a separately
1138    --    compiled file, and Entity must be set by the library Load procedure.
1139    --
1140    --    Note: During name resolution, the value in Entity may be temporarily
1141    --    incorrect (e.g. during overload resolution, Entity is initially set to
1142    --    the first possible correct interpretation, and then later modified if
1143    --    necessary to contain the correct value after resolution).
1144    --
1145    --    Note: This field overlaps Associated_Node, which is used during
1146    --    generic processing (see Sem_Ch12 for details). Note also that in
1147    --    generic templates, this means that the Entity field does not always
1148    --    point to an Entity. Since the back end is expected to ignore generic
1149    --    templates, this is harmless.
1150    --
1151    --    Note: This field also appears in N_Attribute_Definition_Clause nodes.
1152    --    It is used only for stream attributes definition clauses. In this
1153    --    case, it denotes a (possibly dummy) subprogram entity that is declared
1154    --    conceptually at the point of the clause. Thus the visibility of the
1155    --    attribute definition clause (in the sense of 8.3(23) as amended by
1156    --    AI-195) can be checked by testing the visibility of that subprogram.
1157    --
1158    --    Note: Normally the Entity field of an identifier points to the entity
1159    --    for the corresponding defining identifier, and hence the Chars field
1160    --    of an identifier will match the Chars field of the entity. However,
1161    --    there is no requirement that these match, and there are obscure cases
1162    --    of generated code where they do not match.
1163
1164    --    Note: Ada 2012 aspect specifications require additional links between
1165    --    identifiers and various attributes. These attributes can be of
1166    --    arbitrary types, and the entity field of identifiers that denote
1167    --    aspects must be used to store arbitrary expressions for later semantic
1168    --    checks. See section on aspect specifications for details.
1169
1170    --  Entity_Or_Associated_Node (Node4-Sem)
1171    --    A synonym for both Entity and Associated_Node. Used by convention in
1172    --    the code when referencing this field in cases where it is not known
1173    --    whether the field contains an Entity or an Associated_Node.
1174
1175    --  Etype (Node5-Sem)
1176    --    Appears in all expression nodes, all direct names, and all entities.
1177    --    Points to the entity for the related type. Set after type resolution.
1178    --    Normally this is the actual subtype of the expression. However, in
1179    --    certain contexts such as the right side of an assignment, subscripts,
1180    --    arguments to calls, returned value in a function, initial value etc.
1181    --    it is the desired target type. In the event that this is different
1182    --    from the actual type, the Do_Range_Check flag will be set if a range
1183    --    check is required. Note: if the Is_Overloaded flag is set, then Etype
1184    --    points to an essentially arbitrary choice from the possible set of
1185    --    types.
1186
1187    --  Exception_Junk (Flag8-Sem)
1188    --    This flag is set in a various nodes appearing in a statement sequence
1189    --    to indicate that the corresponding node is an artifact of the
1190    --    generated code for exception handling, and should be ignored when
1191    --    analyzing the control flow of the relevant sequence of statements
1192    --    (e.g. to check that it does not end with a bad return statement).
1193
1194    --  Exception_Label (Node5-Sem)
1195    --    Appears in N_Push_xxx_Label nodes. Points to the entity of the label
1196    --    to be used for transforming the corresponding exception into a goto,
1197    --    or contains Empty, if this exception is not to be transformed. Also
1198    --    appears in N_Exception_Handler nodes, where, if set, it indicates
1199    --    that there may be a local raise for the handler, so that expansion
1200    --    to allow a goto is required (and this field contains the label for
1201    --    this goto). See Exp_Ch11.Expand_Local_Exception_Handlers for details.
1202
1203    --  Expansion_Delayed (Flag11-Sem)
1204    --    Set on aggregates and extension aggregates that need a top-down rather
1205    --    than bottom-up expansion. Typically aggregate expansion happens bottom
1206    --    up. For nested aggregates the expansion is delayed until the enclosing
1207    --    aggregate itself is expanded, e.g. in the context of a declaration. To
1208    --    delay it we set this flag. This is done to avoid creating a temporary
1209    --    for each level of a nested aggregates, and also to prevent the
1210    --    premature generation of constraint checks. This is also a requirement
1211    --    if we want to generate the proper attachment to the internal
1212    --    finalization lists (for record with controlled components). Top down
1213    --    expansion of aggregates is also used for in-place array aggregate
1214    --    assignment or initialization. When the full context is known, the
1215    --    target of the assignment or initialization is used to generate the
1216    --    left-hand side of individual assignment to each sub-component.
1217
1218    --  First_Inlined_Subprogram (Node3-Sem)
1219    --    Present in the N_Compilation_Unit node for the main program. Points
1220    --    to a chain of entities for subprograms that are to be inlined. The
1221    --    Next_Inlined_Subprogram field of these entities is used as a link
1222    --    pointer with Empty marking the end of the list. This field is Empty
1223    --    if there are no inlined subprograms or inlining is not active.
1224
1225    --  First_Named_Actual (Node4-Sem)
1226    --    Present in procedure call statement and function call nodes, and also
1227    --    in Intrinsic nodes. Set during semantic analysis to point to the first
1228    --    named parameter where parameters are ordered by declaration order (as
1229    --    opposed to the actual order in the call which may be different due to
1230    --    named associations). Note: this field points to the explicit actual
1231    --    parameter itself, not the N_Parameter_Association node (its parent).
1232
1233    --  First_Real_Statement (Node2-Sem)
1234    --    Present in N_Handled_Sequence_Of_Statements node. Normally set to
1235    --    Empty. Used only when declarations are moved into the statement part
1236    --    of a construct as a result of wrapping an AT END handler that is
1237    --    required to cover the declarations. In this case, this field is used
1238    --    to remember the location in the statements list of the first real
1239    --    statement, i.e. the statement that used to be first in the statement
1240    --    list before the declarations were prepended.
1241
1242    --  First_Subtype_Link (Node5-Sem)
1243    --    Present in N_Freeze_Entity node for an anonymous base type that is
1244    --    implicitly created by the declaration of a first subtype. It points
1245    --    to the entity for the first subtype.
1246
1247    --  Float_Truncate (Flag11-Sem)
1248    --    A flag present in type conversion nodes. This is used for float to
1249    --    integer conversions where truncation is required rather than rounding.
1250    --    Note that Gigi does not handle type conversions from real to integer
1251    --    with rounding (see Expand_N_Type_Conversion).
1252
1253    --  Forwards_OK (Flag5-Sem)
1254    --    A flag present in the N_Assignment_Statement node. It is used only
1255    --    if the type being assigned is an array type, and is set if analysis
1256    --    determines that it is definitely safe to do the copy forwards, i.e.
1257    --    starting at the lowest addressed element. This is the case if either
1258    --    the operands do not overlap, or they may overlap, but if they do,
1259    --    then the left operand is at a lower address than the right operand.
1260    --
1261    --    Note: If neither of the flags Forwards_OK or Backwards_OK is set, it
1262    --    means that the front end could not determine that either direction is
1263    --    definitely safe, and a runtime check may be required if the backend
1264    --    cannot figure it out. If both flags Forwards_OK and Backwards_OK are
1265    --    set, it means that the front end can assure no overlap of operands.
1266
1267    --  From_Aspect_Specification (Flag13-Sem)
1268    --    Processing of aspect specifications typically results in insertion in
1269    --    the tree of corresponding pragma or attribute definition clause nodes.
1270    --    These generated nodes have the From_Aspect_Specification flag set to
1271    --    indicate that they came from aspect specifications originally.
1272
1273    --  From_At_End (Flag4-Sem)
1274    --    This flag is set on an N_Raise_Statement node if it corresponds to
1275    --    the reraise statement generated as the last statement of an AT END
1276    --    handler when SJLJ exception handling is active. It is used to stop
1277    --    a bogus violation of restriction (No_Exception_Propagation), bogus
1278    --    because if the restriction is set, the reraise is not generated.
1279
1280    --  From_At_Mod (Flag4-Sem)
1281    --    This flag is set on the attribute definition clause node that is
1282    --    generated by a transformation of an at mod phrase in a record
1283    --    representation clause. This is used to give slightly different (Ada 83
1284    --    compatible) semantics to such a clause, namely it is used to specify a
1285    --    minimum acceptable alignment for the base type and all subtypes. In
1286    --    Ada 95 terms, the actual alignment of the base type and all subtypes
1287    --    must be a multiple of the given value, and the representation clause
1288    --    is considered to be type specific instead of subtype specific.
1289
1290    --  From_Default (Flag6-Sem)
1291    --    This flag is set on the subprogram renaming declaration created in an
1292    --    instance for a formal subprogram, when the formal is declared with a
1293    --    box, and there is no explicit actual. If the flag is present, the
1294    --    declaration is treated as an implicit reference to the formal in the
1295    --    ali file.
1296
1297    --  Generalized_Indexing (Node4-Sem)
1298    --    Present in N_Indexed_Component nodes. Set for Indexed_Component nodes
1299    --    that are Ada 2012 container indexing operations. The value of the
1300    --    attribute is a function call (possibly dereferenced) that corresponds
1301    --    to the proper expansion of the source indexing operation. Before
1302    --    expansion, the source node is rewritten as the resolved generalized
1303    --    indexing. In ASIS mode, the expansion does not take place, so that
1304    --    the source is preserved and properly annotated with types.
1305
1306    --  Generic_Parent (Node5-Sem)
1307    --    Generic_Parent is defined on declaration nodes that are instances. The
1308    --    value of Generic_Parent is the generic entity from which the instance
1309    --    is obtained. Generic_Parent is also defined for the renaming
1310    --    declarations and object declarations created for the actuals in an
1311    --    instantiation. The generic parent of such a declaration is the
1312    --    corresponding generic association in the Instantiation node.
1313
1314    --  Generic_Parent_Type (Node4-Sem)
1315    --    Generic_Parent_Type is defined on Subtype_Declaration nodes for the
1316    --    actuals of formal private and derived types. Within the instance, the
1317    --    operations on the actual are those inherited from the parent. For a
1318    --    formal private type, the parent type is the generic type itself. The
1319    --    Generic_Parent_Type is also used in an instance to determine whether a
1320    --    private operation overrides an inherited one.
1321
1322    --  Handler_List_Entry (Node2-Sem)
1323    --    This field is present in N_Object_Declaration nodes. It is set only
1324    --    for the Handler_Record entry generated for an exception in zero cost
1325    --    exception handling mode. It references the corresponding item in the
1326    --    handler list, and is used to delete this entry if the corresponding
1327    --    handler is deleted during optimization. For further details on why
1328    --    this is required, see Exp_Ch11.Remove_Handler_Entries.
1329
1330    --  Has_Dereference_Action (Flag13-Sem)
1331    --    This flag is present in N_Explicit_Dereference nodes. It is set to
1332    --    indicate that the expansion has aready produced a call to primitive
1333    --    Dereference of a System.Checked_Pools.Checked_Pool implementation.
1334    --    Such dereference actions are produced for debugging purposes.
1335
1336    --  Has_Dynamic_Length_Check (Flag10-Sem)
1337    --    This flag is present in all expression nodes. It is set to indicate
1338    --    that one of the routines in unit Checks has generated a length check
1339    --    action which has been inserted at the flagged node. This is used to
1340    --    avoid the generation of duplicate checks.
1341
1342    --  Has_Dynamic_Range_Check (Flag12-Sem)
1343    --    This flag is present in N_Subtype_Declaration nodes and on all
1344    --    expression nodes. It is set to indicate that one of the routines in
1345    --    unit Checks has generated a range check action which has been inserted
1346    --    at the flagged node. This is used to avoid the generation of duplicate
1347    --    checks. Why does this occur on N_Subtype_Declaration nodes, what does
1348    --    it mean in that context???
1349
1350    --  Has_Local_Raise (Flag8-Sem)
1351    --    Present in exception handler nodes. Set if the handler can be entered
1352    --    via a local raise that gets transformed to a goto statement. This will
1353    --    always be set if Local_Raise_Statements is non-empty, but can also be
1354    --    set as a result of generation of N_Raise_xxx nodes, or flags set in
1355    --    nodes requiring generation of back end checks.
1356
1357    --  Has_No_Elaboration_Code (Flag17-Sem)
1358    --    A flag that appears in the N_Compilation_Unit node to indicate whether
1359    --    or not elaboration code is present for this unit. It is initially set
1360    --    true for subprogram specs and bodies and for all generic units and
1361    --    false for non-generic package specs and bodies. Gigi may set the flag
1362    --    in the non-generic package case if it determines that no elaboration
1363    --    code is generated. Note that this flag is not related to the
1364    --    Is_Preelaborated status, there can be preelaborated packages that
1365    --    generate elaboration code, and non-preelaborated packages which do
1366    --    not generate elaboration code.
1367
1368    --  Has_Pragma_Suppress_All (Flag14-Sem)
1369    --    This flag is set in an N_Compilation_Unit node if the Suppress_All
1370    --    pragma appears anywhere in the unit. This accommodates the rather
1371    --    strange placement rules of other compilers (DEC permits it at the
1372    --    end of a unit, and Rational allows it as a program unit pragma). We
1373    --    allow it anywhere at all, and consider it equivalent to a pragma
1374    --    Suppress (All_Checks) appearing at the start of the configuration
1375    --    pragmas for the unit.
1376
1377    --  Has_Private_View (Flag11-Sem)
1378    --    A flag present in generic nodes that have an entity, to indicate that
1379    --    the node has a private type. Used to exchange private and full
1380    --    declarations if the visibility at instantiation is different from the
1381    --    visibility at generic definition.
1382
1383    --  Has_Relative_Deadline_Pragma (Flag9-Sem)
1384    --    A flag present in N_Subprogram_Body and N_Task_Definition nodes to
1385    --    flag the presence of a pragma Relative_Deadline.
1386
1387    --  Has_Self_Reference (Flag13-Sem)
1388    --    Present in N_Aggregate and N_Extension_Aggregate. Indicates that one
1389    --    of the expressions contains an access attribute reference to the
1390    --    enclosing type. Such a self-reference can only appear in default-
1391    --    initialized aggregate for a record type.
1392
1393    --  Has_SP_Choice (Flag15-Sem)
1394    --    Present in all nodes containing a Discrete_Choices field (N_Variant,
1395    --    N_Case_Expression_Alternative, N_Case_Statement_Alternative). Set to
1396    --    True if the Discrete_Choices list has at least one occurrence of a
1397    --    statically predicated subtype.
1398
1399    --  Has_Storage_Size_Pragma (Flag5-Sem)
1400    --    A flag present in an N_Task_Definition node to flag the presence of a
1401    --    Storage_Size pragma.
1402
1403    --  Has_Wide_Character (Flag11-Sem)
1404    --    Present in string literals, set if any wide character (i.e. character
1405    --    code outside the Character range but within Wide_Character range)
1406    --    appears in the string. Used to implement pragma preference rules.
1407
1408    --  Has_Wide_Wide_Character (Flag13-Sem)
1409    --    Present in string literals, set if any wide character (i.e. character
1410    --    code outside the Wide_Character range) appears in the string. Used to
1411    --    implement pragma preference rules.
1412
1413    --  Header_Size_Added (Flag11-Sem)
1414    --    Present in N_Attribute_Reference nodes, set only for attribute
1415    --    Max_Size_In_Storage_Elements. The flag indicates that the size of the
1416    --    hidden list header used by the runtime finalization support has been
1417    --    added to the size of the prefix. The flag also prevents the infinite
1418    --    expansion of the same attribute in the said context.
1419
1420    --  Hidden_By_Use_Clause (Elist4-Sem)
1421    --     An entity list present in use clauses that appear within
1422    --     instantiations. For the resolution of local entities, entities
1423    --     introduced by these use clauses have priority over global ones, and
1424    --     outer entities must be explicitly hidden/restored on exit.
1425
1426    --  Implicit_With (Flag16-Sem)
1427    --    This flag is set in the N_With_Clause node that is implicitly
1428    --    generated for runtime units that are loaded by the expander, and also
1429    --    for package System, if it is loaded implicitly by a use of the
1430    --    'Address or 'Tag attribute. ???There are other implicit with clauses
1431    --    as well.
1432
1433    --  Implicit_With_From_Instantiation (Flag12-Sem)
1434    --     Set in N_With_Clause nodes from generic instantiations.
1435
1436    --  Import_Interface_Present (Flag16-Sem)
1437    --     This flag is set in an Interface or Import pragma if a matching
1438    --     pragma of the other kind is also present. This is used to avoid
1439    --     generating some unwanted error messages.
1440
1441    --  Includes_Infinities (Flag11-Sem)
1442    --    This flag is present in N_Range nodes. It is set for the range of
1443    --    unconstrained float types defined in Standard, which include not only
1444    --    the given range of values, but also legitimately can include infinite
1445    --    values. This flag is false for any float type for which an explicit
1446    --    range is given by the programmer, even if that range is identical to
1447    --    the range for Float.
1448
1449    --  Inherited_Discriminant (Flag13-Sem)
1450    --    This flag is present in N_Component_Association nodes. It indicates
1451    --    that a given component association in an extension aggregate is the
1452    --    value obtained from a constraint on an ancestor. Used to prevent
1453    --    double expansion when the aggregate has expansion delayed.
1454
1455    --  Instance_Spec (Node5-Sem)
1456    --    This field is present in generic instantiation nodes, and also in
1457    --    formal package declaration nodes (formal package declarations are
1458    --    treated in a manner very similar to package instantiations). It points
1459    --    to the node for the spec of the instance, inserted as part of the
1460    --    semantic processing for instantiations in Sem_Ch12.
1461
1462    --  Is_Accessibility_Actual (Flag13-Sem)
1463    --    Present in N_Parameter_Association nodes. True if the parameter is
1464    --    an extra actual that carries the accessibility level of the actual
1465    --    for an access parameter, in a function that dispatches on result and
1466    --    is called in a dispatching context. Used to prevent a formal/actual
1467    --    mismatch when the call is rewritten as a dispatching call.
1468
1469    --  Is_Asynchronous_Call_Block (Flag7-Sem)
1470    --    A flag set in a Block_Statement node to indicate that it is the
1471    --    expansion of an asynchronous entry call. Such a block needs cleanup
1472    --    handler to assure that the call is cancelled.
1473
1474    --  Is_Boolean_Aspect (Flag16-Sem)
1475    --    Present in N_Aspect_Specification node. Set if the aspect is for a
1476    --    boolean aspect (i.e. Aspect_Id is in Boolean_Aspect subtype).
1477
1478    --  Is_Checked (Flag11-Sem)
1479    --    Present in N_Aspect_Specification and N_Pragma nodes. Set for an
1480    --    assertion aspect or pragma, or check pragma for an assertion, that
1481    --    is to be checked at run time. If either Is_Checked or Is_Ignored
1482    --    is set (they cannot both be set), then this means that the status of
1483    --    the pragma has been checked at the appropriate point and should not
1484    --    be further modified (in some cases these flags are copied when a
1485    --    pragma is rewritten).
1486
1487    --  Is_Component_Left_Opnd  (Flag13-Sem)
1488    --  Is_Component_Right_Opnd (Flag14-Sem)
1489    --    Present in concatenation nodes, to indicate that the corresponding
1490    --    operand is of the component type of the result. Used in resolving
1491    --    concatenation nodes in instances.
1492
1493    --  Is_Delayed_Aspect (Flag14-Sem)
1494    --    Present in N_Pragma and N_Attribute_Definition_Clause nodes which
1495    --    come from aspect specifications, where the evaluation of the aspect
1496    --    must be delayed to the freeze point. This flag is also set True in
1497    --    the corresponding N_Aspect_Specification node.
1498
1499    --  Is_Controlling_Actual (Flag16-Sem)
1500    --    This flag is set on in an expression that is a controlling argument in
1501    --    a dispatching call. It is off in all other cases. See Sem_Disp for
1502    --    details of its use.
1503
1504    --  Is_Disabled (Flag15-Sem)
1505    --    A flag set in an N_Aspect_Specification or N_Pragma node if there was
1506    --    a Check_Policy or Assertion_Policy (or in the case of a Debug_Pragma)
1507    --    a Debug_Policy pragma that resulted in totally disabling the flagged
1508    --    aspect or policy as a result of using the GNAT-defined policy DISABLE.
1509    --    If this flag is set, the aspect or policy is not analyzed for semantic
1510    --    correctness, so any expressions etc will not be marked as analyzed.
1511
1512    --  Is_Dynamic_Coextension (Flag18-Sem)
1513    --    Present in allocator nodes, to indicate that this is an allocator
1514    --    for an access discriminant of a dynamically allocated object. The
1515    --    coextension must be deallocated and finalized at the same time as
1516    --    the enclosing object.
1517
1518    --  Is_Entry_Barrier_Function (Flag8-Sem)
1519    --    This flag is set in an N_Subprogram_Body node which is the expansion
1520    --    of an entry barrier from a protected entry body. It is used for the
1521    --    circuitry checking for incorrect use of Current_Task.
1522
1523    --  Is_Expanded_Build_In_Place_Call (Flag11-Sem)
1524    --    This flag is set in an N_Function_Call node to indicate that the extra
1525    --    actuals to support a build-in-place style of call have been added to
1526    --    the call.
1527
1528    --  Is_Finalization_Wrapper (Flag9-Sem);
1529    --    This flag is present in N_Block_Statement nodes. It is set when the
1530    --    block acts as a wrapper of a handled construct which has controlled
1531    --    objects. The wrapper prevents interference between exception handlers
1532    --    and At_End handlers.
1533
1534    --  Is_Ignored (Flag9-Sem)
1535    --    A flag set in an N_Aspect_Specification or N_Pragma node if there was
1536    --    a Check_Policy or Assertion_Policy (or in the case of a Debug_Pragma)
1537    --    a Debug_Policy pragma that specified a policy of IGNORE, DISABLE, or
1538    --    OFF, for the pragma/aspect. If there was a Policy pragma specifying
1539    --    a Policy of ON or CHECK, then this flag is reset. If no Policy pragma
1540    --    gives a policy for the aspect or pragma, then there are two cases. For
1541    --    an assertion aspect or pragma (one of the assertion kinds allowed in
1542    --    an Assertion_Policy pragma), then Is_Ignored is set if assertions are
1543    --    ignored because of the absence of a -gnata switch. For any other
1544    --    aspects or pragmas, the flag is off. If this flag is set, the
1545    --    aspect/pragma is fully analyzed and checked for other syntactic
1546    --    and semantic errors, but it does not have any semantic effect.
1547
1548    --  Is_In_Discriminant_Check (Flag11-Sem)
1549    --    This flag is present in a selected component, and is used to indicate
1550    --    that the reference occurs within a discriminant check. The
1551    --    significance is that optimizations based on assuming that the
1552    --    discriminant check has a correct value cannot be performed in this
1553    --    case (or the discriminant check may be optimized away).
1554
1555    --  Is_Machine_Number (Flag11-Sem)
1556    --    This flag is set in an N_Real_Literal node to indicate that the value
1557    --    is a machine number. This avoids some unnecessary cases of converting
1558    --    real literals to machine numbers.
1559
1560    --  Is_Null_Loop (Flag16-Sem)
1561    --    This flag is set in an N_Loop_Statement node if the corresponding loop
1562    --    can be determined to be null at compile time. This is used to remove
1563    --    the loop entirely at expansion time.
1564
1565    --  Is_Overloaded (Flag5-Sem)
1566    --    A flag present in all expression nodes. Used temporarily during
1567    --    overloading determination. The setting of this flag is not relevant
1568    --    once overloading analysis is complete.
1569
1570    --  Is_Power_Of_2_For_Shift (Flag13-Sem)
1571    --    A flag present only in N_Op_Expon nodes. It is set when the
1572    --    exponentiation is of the form 2 ** N, where the type of N is an
1573    --    unsigned integral subtype whose size does not exceed the size of
1574    --    Standard_Integer (i.e. a type that can be safely converted to
1575    --    Natural), and the exponentiation appears as the right operand of an
1576    --    integer multiplication or an integer division where the dividend is
1577    --    unsigned. It is also required that overflow checking is off for both
1578    --    the exponentiation and the multiply/divide node. If this set of
1579    --    conditions holds, and the flag is set, then the division or
1580    --    multiplication can be (and is) converted to a shift.
1581
1582    --  Is_Prefixed_Call (Flag17-Sem)
1583    --    This flag is set in a selected component within a generic unit, if
1584    --    it resolves to a prefixed call to a primitive operation. The flag
1585    --    is used to prevent accidental overloadings in an instance, when a
1586    --    primitive operation and a private record component may be homographs.
1587
1588    --  Is_Protected_Subprogram_Body (Flag7-Sem)
1589    --    A flag set in a Subprogram_Body block to indicate that it is the
1590    --    implementation of a protected subprogram. Such a body needs cleanup
1591    --    handler to make sure that the associated protected object is unlocked
1592    --    when the subprogram completes.
1593
1594    --  Is_Static_Coextension (Flag14-Sem)
1595    --    Present in N_Allocator nodes. Set if the allocator is a coextension
1596    --    of an object allocated on the stack rather than the heap.
1597
1598    --  Is_Static_Expression (Flag6-Sem)
1599    --    Indicates that an expression is a static expression (RM 4.9). See spec
1600    --    of package Sem_Eval for full details on the use of this flag.
1601
1602    --  Is_Subprogram_Descriptor (Flag16-Sem)
1603    --    Present in N_Object_Declaration, and set only for the object
1604    --    declaration generated for a subprogram descriptor in fast exception
1605    --    mode. See Exp_Ch11 for details of use.
1606
1607    --  Is_Task_Allocation_Block (Flag6-Sem)
1608    --    A flag set in a Block_Statement node to indicate that it is the
1609    --    expansion of a task allocator, or the allocator of an object
1610    --    containing tasks. Such a block requires a cleanup handler to call
1611    --    Expunge_Unactivated_Tasks to complete any tasks that have been
1612    --    allocated but not activated when the allocator completes abnormally.
1613
1614    --  Is_Task_Master (Flag5-Sem)
1615    --    A flag set in a Subprogram_Body, Block_Statement or Task_Body node to
1616    --    indicate that the construct is a task master (i.e. has declared tasks
1617    --    or declares an access to a task type).
1618
1619    --  Itype (Node1-Sem)
1620    --    Used in N_Itype_Reference node to reference an itype for which it is
1621    --    important to ensure that it is defined. See description of this node
1622    --    for further details.
1623
1624    --  Kill_Range_Check (Flag11-Sem)
1625    --    Used in an N_Unchecked_Type_Conversion node to indicate that the
1626    --    result should not be subjected to range checks. This is used for the
1627    --    implementation of Normalize_Scalars.
1628
1629    --  Label_Construct (Node2-Sem)
1630    --    Used in an N_Implicit_Label_Declaration node. Refers to an N_Label,
1631    --    N_Block_Statement or N_Loop_Statement node to which the label
1632    --    declaration applies. This attribute is used both in the compiler and
1633    --    in the implementation of ASIS queries. The field is left empty for the
1634    --    special labels generated as part of expanding raise statements with a
1635    --    local exception handler.
1636
1637    --  Library_Unit (Node4-Sem)
1638    --    In a stub node, Library_Unit points to the compilation unit node of
1639    --    the corresponding subunit.
1640    --
1641    --    In a with clause node, Library_Unit points to the spec of the with'ed
1642    --    unit.
1643    --
1644    --    In a compilation unit node, the usage depends on the unit type:
1645    --
1646    --     For a library unit body, Library_Unit points to the compilation unit
1647    --     node of the corresponding spec, unless it's a subprogram body with
1648    --     Acts_As_Spec set, in which case it points to itself.
1649    --
1650    --     For a spec, Library_Unit points to the compilation unit node of the
1651    --     corresponding body, if present. The body will be present if the spec
1652    --     is or contains generics that we needed to instantiate. Similarly, the
1653    --     body will be present if we needed it for inlining purposes. Thus, if
1654    --     we have a spec/body pair, both of which are present, they point to
1655    --     each other via Library_Unit.
1656    --
1657    --     For a subunit, Library_Unit points to the compilation unit node of
1658    --     the parent body.
1659    --
1660    --    Note that this field is not used to hold the parent pointer for child
1661    --    unit (which might in any case need to use it for some other purpose as
1662    --    described above). Instead for a child unit, implicit with's are
1663    --    generated for all parents.
1664
1665    --  Local_Raise_Statements (Elist1)
1666    --    This field is present in exception handler nodes. It is set to
1667    --    No_Elist in the normal case. If there is at least one raise statement
1668    --    which can potentially be handled as a local raise, then this field
1669    --    points to a list of raise nodes, which are calls to a routine to raise
1670    --    an exception. These are raise nodes which can be optimized into gotos
1671    --    if the handler turns out to meet the conditions which permit this
1672    --    transformation. Note that this does NOT include instances of the
1673    --    N_Raise_xxx_Error nodes since the transformation of these nodes is
1674    --    handled by the back end (using the N_Push/N_Pop mechanism).
1675
1676    --  Loop_Actions (List2-Sem)
1677    --    A list present in Component_Association nodes in array aggregates.
1678    --    Used to collect actions that must be executed within the loop because
1679    --    they may need to be evaluated anew each time through.
1680
1681    --  Limited_View_Installed (Flag18-Sem)
1682    --    Present in With_Clauses and in package specifications. If set on
1683    --    with_clause, it indicates that this clause has created the current
1684    --    limited view of the designated package. On a package specification, it
1685    --    indicates that the limited view has already been created because the
1686    --    package is mentioned in a limited_with_clause in the closure of the
1687    --    unit being compiled.
1688
1689    --  Local_Raise_Not_OK (Flag7-Sem)
1690    --    Present in N_Exception_Handler nodes. Set if the handler contains
1691    --    a construct (reraise statement, or call to subprogram in package
1692    --    GNAT.Current_Exception) that makes the handler unsuitable as a target
1693    --    for a local raise (one that could otherwise be converted to a goto).
1694
1695    --  Must_Be_Byte_Aligned (Flag14-Sem)
1696    --    This flag is present in N_Attribute_Reference nodes. It can be set
1697    --    only for the Address and Unrestricted_Access attributes. If set it
1698    --    means that the object for which the address/access is given must be on
1699    --    a byte (more accurately a storage unit) boundary. If necessary, a copy
1700    --    of the object is to be made before taking the address (this copy is in
1701    --    the current scope on the stack frame). This is used for certain cases
1702    --    of code generated by the expander that passes parameters by address.
1703    --
1704    --    The reason the copy is not made by the front end is that the back end
1705    --    has more information about type layout and may be able to (but is not
1706    --    guaranteed to) prevent making unnecessary copies.
1707
1708    --  Must_Not_Freeze (Flag8-Sem)
1709    --    A flag present in all expression nodes. Normally expressions cause
1710    --    freezing as described in the RM. If this flag is set, then this is
1711    --    inhibited. This is used by the analyzer and expander to label nodes
1712    --    that are created by semantic analysis or expansion and which must not
1713    --    cause freezing even though they normally would. This flag is also
1714    --    present in an N_Subtype_Indication node, since we also use these in
1715    --    calls to Freeze_Expression.
1716
1717    --  Next_Entity (Node2-Sem)
1718    --    Present in defining identifiers, defining character literals and
1719    --    defining operator symbols (i.e. in all entities). The entities of a
1720    --    scope are chained, and this field is used as the forward pointer for
1721    --    this list. See Einfo for further details.
1722
1723    --  Next_Exit_Statement (Node3-Sem)
1724    --    Present in N_Exit_Statement nodes. The exit statements for a loop are
1725    --    chained (in reverse order of appearance) from the First_Exit_Statement
1726    --    field of the E_Loop entity for the loop. Next_Exit_Statement points to
1727    --    the next entry on this chain (Empty = end of list).
1728
1729    --  Next_Implicit_With (Node3-Sem)
1730    --    Present in N_With_Clause. Part of a chain of with_clauses generated
1731    --    in rtsfind to indicate implicit dependencies on predefined units. Used
1732    --    to prevent multiple with_clauses for the same unit in a given context.
1733    --    A postorder traversal of the tree whose nodes are units and whose
1734    --    links are with_clauses defines the order in which CodePeer must
1735    --    examine a compiled unit and its full context. This ordering ensures
1736    --    that any subprogram call is examined after the subprogram declaration
1737    --    has been seen.
1738
1739    --  Next_Named_Actual (Node4-Sem)
1740    --    Present in parameter association nodes. Set during semantic analysis
1741    --    to point to the next named parameter, where parameters are ordered by
1742    --    declaration order (as opposed to the actual order in the call, which
1743    --    may be different due to named associations). Not that this field
1744    --    points to the explicit actual parameter itself, not to the
1745    --    N_Parameter_Association node (its parent).
1746
1747    --  Next_Pragma (Node1-Sem)
1748    --    Present in N_Pragma nodes. Used to create a linked list of pragma
1749    --    nodes. Currently used for two purposes:
1750    --
1751    --      Create a list of linked Check_Policy pragmas. The head of this list
1752    --      is stored in Opt.Check_Policy_List (which has further details).
1753    --
1754    --      Used by processing for Pre/Postcondition pragmas to store a list of
1755    --      pragmas associated with the spec of a subprogram (see Sem_Prag for
1756    --      details).
1757    --
1758    --      Used by processing for pragma SPARK_Mode to store multiple pragmas
1759    --      the apply to the same construct. These are visible/private mode for
1760    --      a package spec and declarative/statement mode for package body.
1761
1762    --  Next_Rep_Item (Node5-Sem)
1763    --    Present in pragma nodes, attribute definition nodes, enumeration rep
1764    --    clauses, record rep clauses, aspect specification nodes. Used to link
1765    --    representation items that apply to an entity. See full description of
1766    --    First_Rep_Item field in Einfo for further details.
1767
1768    --  Next_Use_Clause (Node3-Sem)
1769    --    While use clauses are active during semantic processing, they are
1770    --    chained from the scope stack entry, using Next_Use_Clause as a link
1771    --    pointer, with Empty marking the end of the list. The head pointer is
1772    --    in the scope stack entry (First_Use_Clause). At the end of semantic
1773    --    processing (i.e. when Gigi sees the tree, the contents of this field
1774    --    is undefined and should not be read).
1775
1776    --  No_Ctrl_Actions (Flag7-Sem)
1777    --    Present in N_Assignment_Statement to indicate that no Finalize nor
1778    --    Adjust should take place on this assignment even though the RHS is
1779    --    controlled. Also indicates that the primitive _assign should not be
1780    --    used for a tagged assignment. This is used in init procs and aggregate
1781    --    expansions where the generated assignments are initializations, not
1782    --    real assignments.
1783
1784    --  No_Elaboration_Check (Flag14-Sem)
1785    --    Present in N_Function_Call and N_Procedure_Call_Statement. Indicates
1786    --    that no elaboration check is needed on the call, because it appears in
1787    --    the context of a local Suppress pragma. This is used on calls within
1788    --    task bodies, where the actual elaboration checks are applied after
1789    --    analysis, when the local scope stack is not present.
1790
1791    --  No_Entities_Ref_In_Spec (Flag8-Sem)
1792    --    Present in N_With_Clause nodes. Set if the with clause is on the
1793    --    package or subprogram spec where the main unit is the corresponding
1794    --    body, and no entities of the with'ed unit are referenced by the spec
1795    --    (an entity may still be referenced in the body, so this flag is used
1796    --    to generate the proper message (see Sem_Util.Check_Unused_Withs for
1797    --    full details)
1798
1799    --  No_Initialization (Flag13-Sem)
1800    --    Present in N_Object_Declaration and N_Allocator to indicate that the
1801    --    object must not be initialized (by Initialize or call to an init
1802    --    proc). This is needed for controlled aggregates. When the Object
1803    --    declaration has an expression, this flag means that this expression
1804    --    should not be taken into account (needed for in place initialization
1805    --    with aggregates, and for object with an address clause, which are
1806    --    initialized with an assignment at freeze time).
1807
1808    --  No_Minimize_Eliminate (Flag17-Sem)
1809    --    This flag is present in membership operator nodes (N_In/N_Not_In).
1810    --    It is used to indicate that processing for extended overflow checking
1811    --    modes is not required (this is used to prevent infinite recursion).
1812
1813    --  No_Truncation (Flag17-Sem)
1814    --    Present in N_Unchecked_Type_Conversion node. This flag has an effect
1815    --    only if the RM_Size of the source is greater than the RM_Size of the
1816    --    target for scalar operands. Normally in such a case we truncate some
1817    --    higher order bits of the source, and then sign/zero extend the result
1818    --    to form the output value. But if this flag is set, then we do not do
1819    --    any truncation, so for example, if an 8 bit input is converted to 5
1820    --    bit result which is in fact stored in 8 bits, then the high order
1821    --    three bits of the target result will be copied from the source. This
1822    --    is used for properly setting out of range values for use by pragmas
1823    --    Initialize_Scalars and Normalize_Scalars.
1824
1825    --  Non_Aliased_Prefix (Flag18-Sem)
1826    --    Present in N_Attribute_Reference nodes. Set only for the case of an
1827    --    Unrestricted_Access reference whose prefix is non-aliased, which is
1828    --    the case that is permitted for Unrestricted_Access except when the
1829    --    expected type is a thin pointer to unconstrained array. This flag is
1830    --    to assist in detecting this illegal use of Unrestricted_Access.
1831
1832    --  Original_Discriminant (Node2-Sem)
1833    --    Present in identifiers. Used in references to discriminants that
1834    --    appear in generic units. Because the names of the discriminants may be
1835    --    different in an instance, we use this field to recover the position of
1836    --    the discriminant in the original type, and replace it with the
1837    --    discriminant at the same position in the instantiated type.
1838
1839    --  Original_Entity (Node2-Sem)
1840    --    Present in numeric literals. Used to denote the named number that has
1841    --    been constant-folded into the given literal. If literal is from
1842    --    source, or the result of some other constant-folding operation, then
1843    --    Original_Entity is empty. This field is needed to handle properly
1844    --    named numbers in generic units, where the Associated_Node field
1845    --    interferes with the Entity field, making it impossible to preserve the
1846    --    original entity at the point of instantiation (ASIS problem).
1847
1848    --  Others_Discrete_Choices (List1-Sem)
1849    --    When a case statement or variant is analyzed, the semantic checks
1850    --    determine the actual list of choices that correspond to an others
1851    --    choice. This list is materialized for later use by the expander and
1852    --    the Others_Discrete_Choices field of an N_Others_Choice node points to
1853    --    this materialized list of choices, which is in standard format for a
1854    --    list of discrete choices, except that of course it cannot contain an
1855    --    N_Others_Choice entry.
1856
1857    --  Parameter_List_Truncated (Flag17-Sem)
1858    --    Present in N_Function_Call and N_Procedure_Call_Statement nodes. Set
1859    --    (for OpenVMS ports of GNAT only) if the parameter list is truncated as
1860    --    a result of a First_Optional_Parameter specification in an
1861    --    Import_Function, Import_Procedure, or Import_Valued_Procedure pragma.
1862    --    The truncation is done by the expander by removing trailing parameters
1863    --    from the argument list, in accordance with the set of rules allowing
1864    --    such parameter removal. In particular, parameters can be removed
1865    --    working from the end of the parameter list backwards up to and
1866    --    including the entry designated by First_Optional_Parameter in the
1867    --    Import pragma. Parameters can be removed if they are implicit and the
1868    --    default value is a known-at-compile-time value, including the use of
1869    --    the Null_Parameter attribute, or if explicit parameter values are
1870    --    present that match the corresponding defaults.
1871
1872    --  Parent_Spec (Node4-Sem)
1873    --    For a library unit that is a child unit spec (package or subprogram
1874    --    declaration, generic declaration or instantiation, or library level
1875    --    rename, this field points to the compilation unit node for the parent
1876    --    package specification. This field is Empty for library bodies (the
1877    --    parent spec in this case can be found from the corresponding spec).
1878
1879    --  Premature_Use (Node5-Sem)
1880    --    Present in N_Incomplete_Type_Declaration node. Used for improved
1881    --    error diagnostics: if there is a premature usage of an incomplete
1882    --    type, a subsequently generated error message indicates the position
1883    --    of its full declaration.
1884
1885    --  Present_Expr (Uint3-Sem)
1886    --    Present in an N_Variant node. This has a meaningful value only after
1887    --    Gigi has back annotated the tree with representation information. At
1888    --    this point, it contains a reference to a gcc expression that depends
1889    --    on the values of one or more discriminants. Give a set of discriminant
1890    --    values, this expression evaluates to False (zero) if variant is not
1891    --    present, and True (non-zero) if it is present. See unit Repinfo for
1892    --    further details on gigi back annotation. This field is used during
1893    --    ASIS processing (data decomposition annex) to determine if a field is
1894    --    present or not.
1895
1896    --  Print_In_Hex (Flag13-Sem)
1897    --    Set on an N_Integer_Literal node to indicate that the value should be
1898    --    printed in hexadecimal in the sprint listing. Has no effect on
1899    --    legality or semantics of program, only on the displayed output. This
1900    --    is used to clarify output from the packed array cases.
1901
1902    --  Procedure_To_Call (Node2-Sem)
1903    --    Present in N_Allocator, N_Free_Statement, N_Simple_Return_Statement,
1904    --    and N_Extended_Return_Statement nodes. References the entity for the
1905    --    declaration of the procedure to be called to accomplish the required
1906    --    operation (i.e. for the Allocate procedure in the case of N_Allocator
1907    --    and N_Simple_Return_Statement and N_Extended_Return_Statement (for
1908    --    allocating the return value), and for the Deallocate procedure in the
1909    --    case of N_Free_Statement.
1910
1911    --  Raises_Constraint_Error (Flag7-Sem)
1912    --    Set on an expression whose evaluation will definitely fail constraint
1913    --    error check. In the case of static expressions, this flag must be set
1914    --    accurately (and if it is set, the expression is typically illegal
1915    --    unless it appears as a non-elaborated branch of a short-circuit form).
1916    --    For a non-static expression, this flag may be set whenever an
1917    --    expression (e.g. an aggregate) is known to raise constraint error. If
1918    --    set, the expression definitely will raise CE if elaborated at runtime.
1919    --    If not set, the expression may or may not raise CE. In other words, on
1920    --    static expressions, the flag is set accurately, on non-static
1921    --    expressions it is set conservatively.
1922
1923    --  Redundant_Use (Flag13-Sem)
1924    --    Present in nodes that can appear as an operand in a use clause or use
1925    --    type clause (identifiers, expanded names, attribute references). Set
1926    --    to indicate that a use is redundant (and therefore need not be undone
1927    --    on scope exit).
1928
1929    --  Renaming_Exception (Node2-Sem)
1930    --    Present in N_Exception_Declaration node. Used to point back to the
1931    --    exception renaming for an exception declared within a subprogram.
1932    --    What happens is that an exception declared in a subprogram is moved
1933    --    to the library level with a unique name, and the original exception
1934    --    becomes a renaming. This link from the library level exception to the
1935    --    renaming declaration allows registering of the proper exception name.
1936
1937    --  Return_Statement_Entity (Node5-Sem)
1938    --    Present in N_Simple_Return_Statement and N_Extended_Return_Statement.
1939    --    Points to an E_Return_Statement representing the return statement.
1940
1941    --  Return_Object_Declarations (List3)
1942    --    Present in N_Extended_Return_Statement. Points to a list initially
1943    --    containing a single N_Object_Declaration representing the return
1944    --    object. We use a list (instead of just a pointer to the object decl)
1945    --    because Analyze wants to insert extra actions on this list.
1946
1947    --  Rounded_Result (Flag18-Sem)
1948    --    Present in N_Type_Conversion, N_Op_Divide and N_Op_Multiply nodes.
1949    --    Used in the fixed-point cases to indicate that the result must be
1950    --    rounded as a result of the use of the 'Round attribute. Also used for
1951    --    integer N_Op_Divide nodes to indicate that the result should be
1952    --    rounded to the nearest integer (breaking ties away from zero), rather
1953    --    than truncated towards zero as usual. These rounded integer operations
1954    --    are the result of expansion of rounded fixed-point divide, conversion
1955    --    and multiplication operations.
1956
1957    --  SCIL_Entity (Node4-Sem)
1958    --    Present in SCIL nodes. Used to reference the tagged type associated
1959    --    with the SCIL node.
1960
1961    --  SCIL_Controlling_Tag (Node5-Sem)
1962    --    Present in N_SCIL_Dispatching_Call nodes. Used to reference the
1963    --    controlling tag of a dispatching call.
1964
1965    --  SCIL_Tag_Value (Node5-Sem)
1966    --    Present in N_SCIL_Membership_Test nodes. Used to reference the tag
1967    --    value that is being tested.
1968
1969    --  SCIL_Target_Prim (Node2-Sem)
1970    --    Present in N_SCIL_Dispatching_Call nodes. Used to reference the tagged
1971    --    type primitive associated with the SCIL node.
1972
1973    --  Scope (Node3-Sem)
1974    --    Present in defining identifiers, defining character literals and
1975    --    defining operator symbols (i.e. in all entities). The entities of a
1976    --    scope all use this field to reference the corresponding scope entity.
1977    --    See Einfo for further details.
1978
1979    --  Shift_Count_OK (Flag4-Sem)
1980    --    A flag present in shift nodes to indicate that the shift count is
1981    --    known to be in range, i.e. is in the range from zero to word length
1982    --    minus one. If this flag is not set, then the shift count may be
1983    --    outside this range, i.e. larger than the word length, and the code
1984    --    must ensure that such shift counts give the appropriate result.
1985
1986    --  Source_Type (Node1-Sem)
1987    --    Used in an N_Validate_Unchecked_Conversion node to point to the
1988    --    source type entity for the unchecked conversion instantiation
1989    --    which gigi must do size validation for.
1990
1991    --  Split_PPC (Flag17)
1992    --    When a Pre or Post aspect specification is processed, it is broken
1993    --    into AND THEN sections. The left most section has Split_PPC set to
1994    --    False, indicating that it is the original specification (e.g. for
1995    --    posting errors). For other sections, Split_PPC is set to True.
1996    --    This flag is set in both the N_Aspect_Specification node itself,
1997    --    and in the pragma which is generated from this node.
1998
1999    --  Storage_Pool (Node1-Sem)
2000    --    Present in N_Allocator, N_Free_Statement, N_Simple_Return_Statement,
2001    --    and N_Extended_Return_Statement nodes. References the entity for the
2002    --    storage pool to be used for the allocate or free call or for the
2003    --    allocation of the returned value from function. Empty indicates that
2004    --    the global default pool is to be used. Note that in the case
2005    --    of a return statement, this field is set only if the function returns
2006    --    value of a type whose size is not known at compile time on the
2007    --    secondary stack.
2008
2009    --  Suppress_Assignment_Checks (Flag18-Sem)
2010    --    Used in generated N_Assignment_Statement nodes to suppress predicate
2011    --    and range checks in cases where the generated code knows that the
2012    --    value being assigned is in range and satisfies any predicate. Also
2013    --    can be set in N_Object_Declaration nodes, to similarly suppress any
2014    --    checks on the initializing value.
2015
2016    --  Suppress_Loop_Warnings (Flag17-Sem)
2017    --    Used in N_Loop_Statement node to indicate that warnings within the
2018    --    body of the loop should be suppressed. This is set when the range
2019    --    of a FOR loop is known to be null, or is probably null (loop would
2020    --    only execute if invalid values are present).
2021
2022    --  Target_Type (Node2-Sem)
2023    --    Used in an N_Validate_Unchecked_Conversion node to point to the target
2024    --    type entity for the unchecked conversion instantiation which gigi must
2025    --    do size validation for.
2026
2027    --  Then_Actions (List3-Sem)
2028    --    This field is present in if expression nodes. During code expansion
2029    --    we use the Insert_Actions procedure (in Exp_Util) to insert actions
2030    --    at an appropriate place in the tree to get elaborated at the right
2031    --    time. For if expressions, we have to be sure that the actions for
2032    --    for the Then branch are only elaborated if the condition is True.
2033    --    The Then_Actions field is used as a temporary parking place for
2034    --    these actions. The final tree is always rewritten to eliminate the
2035    --    need for this field, so in the tree passed to Gigi, this field is
2036    --    always set to No_List.
2037
2038    --  Treat_Fixed_As_Integer (Flag14-Sem)
2039    --    This flag appears in operator nodes for divide, multiply, mod and rem
2040    --    on fixed-point operands. It indicates that the operands are to be
2041    --    treated as integer values, ignoring small values. This flag is only
2042    --    set as a result of expansion of fixed-point operations. Typically a
2043    --    fixed-point multiplication in the source generates subsidiary
2044    --    multiplication and division operations that work with the underlying
2045    --    integer values and have this flag set. Note that this flag is not
2046    --    needed on other arithmetic operations (add, neg, subtract etc.) since
2047    --    in these cases it is always the case that fixed is treated as integer.
2048    --    The Etype field MUST be set if this flag is set. The analyzer knows to
2049    --    leave such nodes alone, and whoever makes them must set the correct
2050    --    Etype value.
2051
2052    --  TSS_Elist (Elist3-Sem)
2053    --    Present in N_Freeze_Entity nodes. Holds an element list containing
2054    --    entries for each TSS (type support subprogram) associated with the
2055    --    frozen type. The elements of the list are the entities for the
2056    --    subprograms (see package Exp_TSS for further details). Set to No_Elist
2057    --    if there are no type support subprograms for the type or if the freeze
2058    --    node is not for a type.
2059
2060    --  Unreferenced_In_Spec (Flag7-Sem)
2061    --    Present in N_With_Clause nodes. Set if the with clause is on the
2062    --    package or subprogram spec where the main unit is the corresponding
2063    --    body, and is not referenced by the spec (it may still be referenced by
2064    --    the body, so this flag is used to generate the proper message (see
2065    --    Sem_Util.Check_Unused_Withs for details)
2066
2067    --  Uninitialized_Variable (Node3-Sem)
2068    --    Present in N_Formal_Private_Type_Definition and in N_Private_
2069    --    Extension_Declarations. Indicates that a variable in a generic unit
2070    --    whose type is a formal private or derived type is read without being
2071    --    initialized. Used to warn if the corresponding actual type is not
2072    --    a fully initialized type.
2073
2074    --  Used_Operations (Elist5-Sem)
2075    --    Present in N_Use_Type_Clause nodes. Holds the list of operations that
2076    --    are made potentially use-visible by the clause. Simplifies processing
2077    --    on exit from the scope of the use_type_clause, in particular in the
2078    --    case of Use_All_Type, when those operations several scopes.
2079
2080    --  Was_Originally_Stub (Flag13-Sem)
2081    --    This flag is set in the node for a proper body that replaces stub.
2082    --    During the analysis procedure, stubs in some situations get rewritten
2083    --    by the corresponding bodies, and we set this flag to remember that
2084    --    this happened. Note that it is not good enough to rely on the use of
2085    --    Original_Node here because of the case of nested instantiations where
2086    --    the substituted node can be copied.
2087
2088    --  Withed_Body (Node1-Sem)
2089    --    Present in N_With_Clause nodes. Set if the unit in whose context
2090    --    the with_clause appears instantiates a generic contained in the
2091    --    library unit of the with_clause and as a result loads its body.
2092    --    Used for a more precise unit traversal for CodePeer.
2093
2094    --------------------------------------------------
2095    -- Note on Use of End_Label and End_Span Fields --
2096    --------------------------------------------------
2097
2098    --  Several constructs have end lines:
2099
2100    --    Loop Statement             end loop [loop_IDENTIFIER];
2101    --    Package Specification      end [[PARENT_UNIT_NAME .] IDENTIFIER]
2102    --    Task Definition            end [task_IDENTIFIER]
2103    --    Protected Definition       end [protected_IDENTIFIER]
2104    --    Protected Body             end [protected_IDENTIFIER]
2105
2106    --    Block Statement            end [block_IDENTIFIER];
2107    --    Subprogram Body            end [DESIGNATOR];
2108    --    Package Body               end [[PARENT_UNIT_NAME .] IDENTIFIER];
2109    --    Task Body                  end [task_IDENTIFIER];
2110    --    Accept Statement           end [entry_IDENTIFIER]];
2111    --    Entry Body                 end [entry_IDENTIFIER];
2112
2113    --    If Statement               end if;
2114    --    Case Statement             end case;
2115
2116    --    Record Definition          end record;
2117    --    Enumeration Definition     );
2118
2119    --  The End_Label and End_Span fields are used to mark the locations of
2120    --  these lines, and also keep track of the label in the case where a label
2121    --  is present.
2122
2123    --  For the first group above, the End_Label field of the corresponding node
2124    --  is used to point to the label identifier. In the case where there is no
2125    --  label in the source, the parser supplies a dummy identifier (with
2126    --  Comes_From_Source set to False), and the Sloc of this dummy identifier
2127    --  marks the location of the token following the END token.
2128
2129    --  For the second group, the use of End_Label is similar, but the End_Label
2130    --  is found in the N_Handled_Sequence_Of_Statements node. This is done
2131    --  simply because in some cases there is no room in the parent node.
2132
2133    --  For the third group, there is never any label, and instead of using
2134    --  End_Label, we use the End_Span field which gives the location of the
2135    --  token following END, relative to the starting Sloc of the construct,
2136    --  i.e. add Sloc (Node) + End_Span (Node) to get the Sloc of the IF or CASE
2137    --  following the End_Label.
2138
2139    --  The record definition case is handled specially, we treat it as though
2140    --  it required an optional label which is never present, and so the parser
2141    --  always builds a dummy identifier with Comes From Source set False. The
2142    --  reason we do this, rather than using End_Span in this case, is that we
2143    --  want to generate a cross-ref entry for the end of a record, since it
2144    --  represents a scope for name declaration purposes.
2145
2146    --  The enumeration definition case is handled in an exactly similar manner,
2147    --  building a dummy identifier to get a cross-reference.
2148
2149    --  Note: the reason we store the difference as a Uint, instead of storing
2150    --  the Source_Ptr value directly, is that Source_Ptr values cannot be
2151    --  distinguished from other types of values, and we count on all general
2152    --  use fields being self describing. To make things easier for clients,
2153    --  note that we provide function End_Location, and procedure
2154    --  Set_End_Location to allow access to the logical value (which is the
2155    --  Source_Ptr value for the end token).
2156
2157    ---------------------
2158    -- Syntactic Nodes --
2159    ---------------------
2160
2161       ---------------------
2162       -- 2.3  Identifier --
2163       ---------------------
2164
2165       --  IDENTIFIER ::= IDENTIFIER_LETTER {[UNDERLINE] LETTER_OR_DIGIT}
2166       --  LETTER_OR_DIGIT ::= IDENTIFIER_LETTER | DIGIT
2167
2168       --  An IDENTIFIER shall not be a reserved word
2169
2170       --  In the Ada grammar identifiers are the bottom level tokens which have
2171       --  very few semantics. Actual program identifiers are direct names. If
2172       --  we were being 100% honest with the grammar, then we would have a node
2173       --  called N_Direct_Name which would point to an identifier. However,
2174       --  that's too many extra nodes, so we just use the N_Identifier node
2175       --  directly as a direct name, and it contains the expression fields and
2176       --  Entity field that correspond to its use as a direct name. In those
2177       --  few cases where identifiers appear in contexts where they are not
2178       --  direct names (pragmas, pragma argument associations, attribute
2179       --  references and attribute definition clauses), the Chars field of the
2180       --  node contains the Name_Id for the identifier name.
2181
2182       --  Note: in GNAT, a reserved word can be treated as an identifier in two
2183       --  cases. First, an incorrect use of a reserved word as an identifier is
2184       --  diagnosed and then treated as a normal identifier. Second, an
2185       --  attribute designator of the form of a reserved word (access, delta,
2186       --  digits, range) is treated as an identifier.
2187
2188       --  Note: The set of letters that is permitted in an identifier depends
2189       --  on the character set in use. See package Csets for full details.
2190
2191       --  N_Identifier
2192       --  Sloc points to identifier
2193       --  Chars (Name1) contains the Name_Id for the identifier
2194       --  Entity (Node4-Sem)
2195       --  Associated_Node (Node4-Sem)
2196       --  Original_Discriminant (Node2-Sem)
2197       --  Redundant_Use (Flag13-Sem)
2198       --  Atomic_Sync_Required (Flag14-Sem)
2199       --  Has_Private_View (Flag11-Sem) (set in generic units)
2200       --  plus fields for expression
2201
2202       --------------------------
2203       -- 2.4  Numeric Literal --
2204       --------------------------
2205
2206       --  NUMERIC_LITERAL ::= DECIMAL_LITERAL | BASED_LITERAL
2207
2208       ----------------------------
2209       -- 2.4.1  Decimal Literal --
2210       ----------------------------
2211
2212       --  DECIMAL_LITERAL ::= NUMERAL [.NUMERAL] [EXPONENT]
2213
2214       --  NUMERAL ::= DIGIT {[UNDERLINE] DIGIT}
2215
2216       --  EXPONENT ::= E [+] NUMERAL | E - NUMERAL
2217
2218       --  Decimal literals appear in the tree as either integer literal nodes
2219       --  or real literal nodes, depending on whether a period is present.
2220
2221       --  Note: literal nodes appear as a result of direct use of literals
2222       --  in the source program, and also as the result of evaluating
2223       --  expressions at compile time. In the latter case, it is possible
2224       --  to construct real literals that have no syntactic representation
2225       --  using the standard literal format. Such literals are listed by
2226       --  Sprint using the notation [numerator / denominator].
2227
2228       --  Note: the value of an integer literal node created by the front end
2229       --  is never outside the range of values of the base type. However, it
2230       --  can be the case that the created value is outside the range of the
2231       --  particular subtype. This happens in the case of integer overflows
2232       --  with checks suppressed.
2233
2234       --  N_Integer_Literal
2235       --  Sloc points to literal
2236       --  Original_Entity (Node2-Sem) If not Empty, holds Named_Number that
2237       --  has been constant-folded into its literal value.
2238       --  Intval (Uint3) contains integer value of literal
2239       --  plus fields for expression
2240       --  Print_In_Hex (Flag13-Sem)
2241
2242       --  N_Real_Literal
2243       --  Sloc points to literal
2244       --  Original_Entity (Node2-Sem) If not Empty, holds Named_Number that
2245       --  has been constant-folded into its literal value.
2246       --  Realval (Ureal3) contains real value of literal
2247       --  Corresponding_Integer_Value (Uint4-Sem)
2248       --  Is_Machine_Number (Flag11-Sem)
2249       --  plus fields for expression
2250
2251       --------------------------
2252       -- 2.4.2  Based Literal --
2253       --------------------------
2254
2255       --  BASED_LITERAL ::=
2256       --   BASE # BASED_NUMERAL [.BASED_NUMERAL] # [EXPONENT]
2257
2258       --  BASE ::= NUMERAL
2259
2260       --  BASED_NUMERAL ::=
2261       --    EXTENDED_DIGIT {[UNDERLINE] EXTENDED_DIGIT}
2262
2263       --  EXTENDED_DIGIT ::= DIGIT | A | B | C | D | E | F
2264
2265       --  Based literals appear in the tree as either integer literal nodes
2266       --  or real literal nodes, depending on whether a period is present.
2267
2268       ----------------------------
2269       -- 2.5  Character Literal --
2270       ----------------------------
2271
2272       --  CHARACTER_LITERAL ::= ' GRAPHIC_CHARACTER '
2273
2274       --  N_Character_Literal
2275       --  Sloc points to literal
2276       --  Chars (Name1) contains the Name_Id for the identifier
2277       --  Char_Literal_Value (Uint2) contains the literal value
2278       --  Entity (Node4-Sem)
2279       --  Associated_Node (Node4-Sem)
2280       --  Has_Private_View (Flag11-Sem) set in generic units.
2281       --  plus fields for expression
2282
2283       --  Note: the Entity field will be missing (set to Empty) for character
2284       --  literals whose type is Standard.Wide_Character or Standard.Character
2285       --  or a type derived from one of these two. In this case the character
2286       --  literal stands for its own coding. The reason we take this irregular
2287       --  short cut is to avoid the need to build lots of junk defining
2288       --  character literal nodes.
2289
2290       -------------------------
2291       -- 2.6  String Literal --
2292       -------------------------
2293
2294       --  STRING LITERAL ::= "{STRING_ELEMENT}"
2295
2296       --  A STRING_ELEMENT is either a pair of quotation marks ("), or a
2297       --  single GRAPHIC_CHARACTER other than a quotation mark.
2298       --
2299       --  Is_Folded_In_Parser is True if the parser created this literal by
2300       --  folding a sequence of "&" operators. For example, if the source code
2301       --  says "aaa" & "bbb" & "ccc", and this produces "aaabbbccc", the flag
2302       --  is set. This flag is needed because the parser doesn't know about
2303       --  visibility, so the folded result might be wrong, and semantic
2304       --  analysis needs to check for that.
2305
2306       --  N_String_Literal
2307       --  Sloc points to literal
2308       --  Strval (Str3) contains Id of string value
2309       --  Has_Wide_Character (Flag11-Sem)
2310       --  Has_Wide_Wide_Character (Flag13-Sem)
2311       --  Is_Folded_In_Parser (Flag4)
2312       --  plus fields for expression
2313
2314       ------------------
2315       -- 2.7  Comment --
2316       ------------------
2317
2318       --  A COMMENT starts with two adjacent hyphens and extends up to the
2319       --  end of the line. A COMMENT may appear on any line of a program.
2320
2321       --  Comments are skipped by the scanner and do not appear in the tree.
2322       --  It is possible to reconstruct the position of comments with respect
2323       --  to the elements of the tree by using the source position (Sloc)
2324       --  pointers that appear in every tree node.
2325
2326       -----------------
2327       -- 2.8  Pragma --
2328       -----------------
2329
2330       --  PRAGMA ::= pragma IDENTIFIER
2331       --    [(PRAGMA_ARGUMENT_ASSOCIATION {, PRAGMA_ARGUMENT_ASSOCIATION})];
2332
2333       --  Note that a pragma may appear in the tree anywhere a declaration
2334       --  or a statement may appear, as well as in some other situations
2335       --  which are explicitly documented.
2336
2337       --  N_Pragma
2338       --  Sloc points to PRAGMA
2339       --  Next_Pragma (Node1-Sem)
2340       --  Pragma_Argument_Associations (List2) (set to No_List if none)
2341       --  Corresponding_Aspect (Node3-Sem) (set to Empty if not present)
2342       --  Pragma_Identifier (Node4)
2343       --  Next_Rep_Item (Node5-Sem)
2344       --  Class_Present (Flag6) set if from Aspect with 'Class
2345       --  From_Aspect_Specification (Flag13-Sem)
2346       --  Is_Delayed_Aspect (Flag14-Sem)
2347       --  Is_Disabled (Flag15-Sem)
2348       --  Is_Ignored (Flag9-Sem)
2349       --  Is_Checked (Flag11-Sem)
2350       --  Import_Interface_Present (Flag16-Sem)
2351       --  Split_PPC (Flag17) set if corresponding aspect had Split_PPC set
2352
2353       --  Note: we should have a section on what pragmas are passed on to
2354       --  the back end to be processed. This section should note that pragma
2355       --  Psect_Object is always converted to Common_Object, but there are
2356       --  undoubtedly many other similar notes required ???
2357
2358       --  Note: a utility function Pragma_Name may be applied to pragma nodes
2359       --  to conveniently obtain the Chars field of the Pragma_Identifier.
2360
2361       --  Note: if From_Aspect_Specification is set, then Sloc points to the
2362       --  aspect name, as does the Pragma_Identifier. In this case if the
2363       --  pragma has a local name argument (such as pragma Inline), it is
2364       --  resolved to point to the specific entity affected by the pragma.
2365
2366       --------------------------------------
2367       -- 2.8  Pragma Argument Association --
2368       --------------------------------------
2369
2370       --  PRAGMA_ARGUMENT_ASSOCIATION ::=
2371       --    [pragma_argument_IDENTIFIER =>] NAME
2372       --  | [pragma_argument_IDENTIFIER =>] EXPRESSION
2373
2374       --  In Ada 2012, there are two more possibilities:
2375
2376       --  PRAGMA_ARGUMENT_ASSOCIATION ::=
2377       --    [pragma_argument_ASPECT_MARK =>] NAME
2378       --  | [pragma_argument_ASPECT_MARK =>] EXPRESSION
2379
2380       --  where the interesting allowed cases (which do not fit the syntax of
2381       --  the first alternative above) are
2382
2383       --  ASPECT_MARK => Pre'Class |
2384       --                 Post'Class |
2385       --                 Type_Invariant'Class |
2386       --                 Invariant'Class
2387
2388       --  We allow this special usage in all Ada modes, but it would be a
2389       --  pain to allow these aspects to pervade the pragma syntax, and the
2390       --  representation of pragma nodes internally. So what we do is to
2391       --  replace these ASPECT_MARK forms with identifiers whose name is one
2392       --  of the special internal names _Pre, _Post or _Type_Invariant.
2393
2394       --  We do a similar replacement of these Aspect_Mark forms in the
2395       --  Expression of a pragma argument association for the cases of
2396       --  the first arguments of any Check pragmas and Check_Policy pragmas
2397
2398       --  N_Pragma_Argument_Association
2399       --  Sloc points to first token in association
2400       --  Chars (Name1) (set to No_Name if no pragma argument identifier)
2401       --  Expression (Node3)
2402
2403       ------------------------
2404       -- 2.9  Reserved Word --
2405       ------------------------
2406
2407       --  Reserved words are parsed by the scanner, and returned as the
2408       --  corresponding token types (e.g. PACKAGE is returned as Tok_Package)
2409
2410       ----------------------------
2411       -- 3.1  Basic Declaration --
2412       ----------------------------
2413
2414       --  BASIC_DECLARATION ::=
2415       --    TYPE_DECLARATION          | SUBTYPE_DECLARATION
2416       --  | OBJECT_DECLARATION        | NUMBER_DECLARATION
2417       --  | SUBPROGRAM_DECLARATION    | ABSTRACT_SUBPROGRAM_DECLARATION
2418       --  | PACKAGE_DECLARATION       | RENAMING_DECLARATION
2419       --  | EXCEPTION_DECLARATION     | GENERIC_DECLARATION
2420       --  | GENERIC_INSTANTIATION
2421
2422       --  Basic declaration also includes IMPLICIT_LABEL_DECLARATION
2423       --  see further description in section on semantic nodes.
2424
2425       --  Also, in the tree that is constructed, a pragma may appear
2426       --  anywhere that a declaration may appear.
2427
2428       ------------------------------
2429       -- 3.1  Defining Identifier --
2430       ------------------------------
2431
2432       --  DEFINING_IDENTIFIER ::= IDENTIFIER
2433
2434       --  A defining identifier is an entity, which has additional fields
2435       --  depending on the setting of the Ekind field. These additional
2436       --  fields are defined (and access subprograms declared) in package
2437       --  Einfo.
2438
2439       --  Note: N_Defining_Identifier is an extended node whose fields are
2440       --  deliberate layed out to match the layout of fields in an ordinary
2441       --  N_Identifier node allowing for easy alteration of an identifier
2442       --  node into a defining identifier node. For details, see procedure
2443       --  Sinfo.CN.Change_Identifier_To_Defining_Identifier.
2444
2445       --  N_Defining_Identifier
2446       --  Sloc points to identifier
2447       --  Chars (Name1) contains the Name_Id for the identifier
2448       --  Next_Entity (Node2-Sem)
2449       --  Scope (Node3-Sem)
2450       --  Etype (Node5-Sem)
2451
2452       -----------------------------
2453       -- 3.2.1  Type Declaration --
2454       -----------------------------
2455
2456       --  TYPE_DECLARATION ::=
2457       --    FULL_TYPE_DECLARATION
2458       --  | INCOMPLETE_TYPE_DECLARATION
2459       --  | PRIVATE_TYPE_DECLARATION
2460       --  | PRIVATE_EXTENSION_DECLARATION
2461
2462       ----------------------------------
2463       -- 3.2.1  Full Type Declaration --
2464       ----------------------------------
2465
2466       --  FULL_TYPE_DECLARATION ::=
2467       --    type DEFINING_IDENTIFIER [KNOWN_DISCRIMINANT_PART]
2468       --      is TYPE_DEFINITION
2469       --        [ASPECT_SPECIFICATIONS];
2470       --  | TASK_TYPE_DECLARATION
2471       --  | PROTECTED_TYPE_DECLARATION
2472
2473       --  The full type declaration node is used only for the first case. The
2474       --  second case (concurrent type declaration), is represented directly
2475       --  by a task type declaration or a protected type declaration.
2476
2477       --  N_Full_Type_Declaration
2478       --  Sloc points to TYPE
2479       --  Defining_Identifier (Node1)
2480       --  Discriminant_Specifications (List4) (set to No_List if none)
2481       --  Type_Definition (Node3)
2482       --  Discr_Check_Funcs_Built (Flag11-Sem)
2483
2484       ----------------------------
2485       -- 3.2.1  Type Definition --
2486       ----------------------------
2487
2488       --  TYPE_DEFINITION ::=
2489       --    ENUMERATION_TYPE_DEFINITION  | INTEGER_TYPE_DEFINITION
2490       --  | REAL_TYPE_DEFINITION         | ARRAY_TYPE_DEFINITION
2491       --  | RECORD_TYPE_DEFINITION       | ACCESS_TYPE_DEFINITION
2492       --  | DERIVED_TYPE_DEFINITION      | INTERFACE_TYPE_DEFINITION
2493
2494       --------------------------------
2495       -- 3.2.2  Subtype Declaration --
2496       --------------------------------
2497
2498       --  SUBTYPE_DECLARATION ::=
2499       --    subtype DEFINING_IDENTIFIER is [NULL_EXCLUSION] SUBTYPE_INDICATION
2500       --      [ASPECT_SPECIFICATIONS];
2501
2502       --  The subtype indication field is set to Empty for subtypes
2503       --  declared in package Standard (Positive, Natural).
2504
2505       --  N_Subtype_Declaration
2506       --  Sloc points to SUBTYPE
2507       --  Defining_Identifier (Node1)
2508       --  Null_Exclusion_Present (Flag11)
2509       --  Subtype_Indication (Node5)
2510       --  Generic_Parent_Type (Node4-Sem) (set for an actual derived type).
2511       --  Exception_Junk (Flag8-Sem)
2512       --  Has_Dynamic_Range_Check (Flag12-Sem)
2513
2514       -------------------------------
2515       -- 3.2.2  Subtype Indication --
2516       -------------------------------
2517
2518       --  SUBTYPE_INDICATION ::= SUBTYPE_MARK [CONSTRAINT]
2519
2520       --  Note: if no constraint is present, the subtype indication appears
2521       --  directly in the tree as a subtype mark. The N_Subtype_Indication
2522       --  node is used only if a constraint is present.
2523
2524       --  Note: [For Ada 2005 (AI-231)]: Because Ada 2005 extends this rule
2525       --  with the null-exclusion part (see AI-231), we had to introduce a new
2526       --  attribute in all the parents of subtype_indication nodes to indicate
2527       --  if the null-exclusion is present.
2528
2529       --  Note: the reason that this node has expression fields is that a
2530       --  subtype indication can appear as an operand of a membership test.
2531
2532       --  N_Subtype_Indication
2533       --  Sloc points to first token of subtype mark
2534       --  Subtype_Mark (Node4)
2535       --  Constraint (Node3)
2536       --  Etype (Node5-Sem)
2537       --  Must_Not_Freeze (Flag8-Sem)
2538
2539       --  Note: Depending on context, the Etype is either the entity of the
2540       --  Subtype_Mark field, or it is an itype constructed to reify the
2541       --  subtype indication. In particular, such itypes are created for a
2542       --  subtype indication that appears in an array type declaration. This
2543       --  simplifies constraint checking in indexed components.
2544
2545       --  For subtype indications that appear in scalar type and subtype
2546       --  declarations, the Etype is the entity of the subtype mark.
2547
2548       -------------------------
2549       -- 3.2.2  Subtype Mark --
2550       -------------------------
2551
2552       --  SUBTYPE_MARK ::= subtype_NAME
2553
2554       -----------------------
2555       -- 3.2.2  Constraint --
2556       -----------------------
2557
2558       --  CONSTRAINT ::= SCALAR_CONSTRAINT | COMPOSITE_CONSTRAINT
2559
2560       ------------------------------
2561       -- 3.2.2  Scalar Constraint --
2562       ------------------------------
2563
2564       --  SCALAR_CONSTRAINT ::=
2565       --    RANGE_CONSTRAINT | DIGITS_CONSTRAINT | DELTA_CONSTRAINT
2566
2567       ---------------------------------
2568       -- 3.2.2  Composite Constraint --
2569       ---------------------------------
2570
2571       --  COMPOSITE_CONSTRAINT ::=
2572       --    INDEX_CONSTRAINT | DISCRIMINANT_CONSTRAINT
2573
2574       -------------------------------
2575       -- 3.3.1  Object Declaration --
2576       -------------------------------
2577
2578       --  OBJECT_DECLARATION ::=
2579       --    DEFINING_IDENTIFIER_LIST : [aliased] [constant]
2580       --      [NULL_EXCLUSION] SUBTYPE_INDICATION [:= EXPRESSION]
2581       --        [ASPECT_SPECIFICATIONS];
2582       --  | DEFINING_IDENTIFIER_LIST : [aliased] [constant]
2583       --      ACCESS_DEFINITION [:= EXPRESSION]
2584       --        [ASPECT_SPECIFICATIONS];
2585       --  | DEFINING_IDENTIFIER_LIST : [aliased] [constant]
2586       --      ARRAY_TYPE_DEFINITION [:= EXPRESSION]
2587       --        [ASPECT_SPECIFICATIONS];
2588       --  | SINGLE_TASK_DECLARATION
2589       --  | SINGLE_PROTECTED_DECLARATION
2590
2591       --  Note: aliased is not permitted in Ada 83 mode
2592
2593       --  The N_Object_Declaration node is only for the first two cases.
2594       --  Single task declaration is handled by P_Task (9.1)
2595       --  Single protected declaration is handled by P_protected (9.5)
2596
2597       --  Although the syntax allows multiple identifiers in the list, the
2598       --  semantics is as though successive declarations were given with
2599       --  identical type definition and expression components. To simplify
2600       --  semantic processing, the parser represents a multiple declaration
2601       --  case as a sequence of single declarations, using the More_Ids and
2602       --  Prev_Ids flags to preserve the original source form as described
2603       --  in the section on "Handling of Defining Identifier Lists".
2604
2605       --  The flag Has_Init_Expression is set if an initializing expression
2606       --  is present. Normally it is set if and only if Expression contains
2607       --  a non-empty value, but there is an exception to this. When the
2608       --  initializing expression is an aggregate which requires explicit
2609       --  assignments, the Expression field gets set to Empty, but this flag
2610       --  is still set, so we don't forget we had an initializing expression.
2611
2612       --  Note: if a range check is required for the initialization
2613       --  expression then the Do_Range_Check flag is set in the Expression,
2614       --  with the check being done against the type given by the object
2615       --  definition, which is also the Etype of the defining identifier.
2616
2617       --  Note: the contents of the Expression field must be ignored (i.e.
2618       --  treated as though it were Empty) if No_Initialization is set True.
2619
2620       --  Note: the back end places some restrictions on the form of the
2621       --  Expression field. If the object being declared is Atomic, then
2622       --  the Expression may not have the form of an aggregate (since this
2623       --  might cause the back end to generate separate assignments). In this
2624       --  case the front end must generate an extra temporary and initialize
2625       --  this temporary as required (the temporary itself is not atomic).
2626
2627       --  Note: there is not node kind for object definition. Instead, the
2628       --  corresponding field holds a subtype indication, an array type
2629       --  definition, or (Ada 2005, AI-406) an access definition.
2630
2631       --  N_Object_Declaration
2632       --  Sloc points to first identifier
2633       --  Defining_Identifier (Node1)
2634       --  Aliased_Present (Flag4)
2635       --  Constant_Present (Flag17) set if CONSTANT appears
2636       --  Null_Exclusion_Present (Flag11)
2637       --  Object_Definition (Node4) subtype indic./array type def./access def.
2638       --  Expression (Node3) (set to Empty if not present)
2639       --  Handler_List_Entry (Node2-Sem)
2640       --  Corresponding_Generic_Association (Node5-Sem)
2641       --  More_Ids (Flag5) (set to False if no more identifiers in list)
2642       --  Prev_Ids (Flag6) (set to False if no previous identifiers in list)
2643       --  No_Initialization (Flag13-Sem)
2644       --  Assignment_OK (Flag15-Sem)
2645       --  Exception_Junk (Flag8-Sem)
2646       --  Is_Subprogram_Descriptor (Flag16-Sem)
2647       --  Has_Init_Expression (Flag14)
2648       --  Suppress_Assignment_Checks (Flag18-Sem)
2649
2650       -------------------------------------
2651       -- 3.3.1  Defining Identifier List --
2652       -------------------------------------
2653
2654       --  DEFINING_IDENTIFIER_LIST ::=
2655       --    DEFINING_IDENTIFIER {, DEFINING_IDENTIFIER}
2656
2657       -------------------------------
2658       -- 3.3.2  Number Declaration --
2659       -------------------------------
2660
2661       --  NUMBER_DECLARATION ::=
2662       --    DEFINING_IDENTIFIER_LIST : constant := static_EXPRESSION;
2663
2664       --  Although the syntax allows multiple identifiers in the list, the
2665       --  semantics is as though successive declarations were given with
2666       --  identical expressions. To simplify semantic processing, the parser
2667       --  represents a multiple declaration case as a sequence of single
2668       --  declarations, using the More_Ids and Prev_Ids flags to preserve
2669       --  the original source form as described in the section on "Handling
2670       --  of Defining Identifier Lists".
2671
2672       --  N_Number_Declaration
2673       --  Sloc points to first identifier
2674       --  Defining_Identifier (Node1)
2675       --  Expression (Node3)
2676       --  More_Ids (Flag5) (set to False if no more identifiers in list)
2677       --  Prev_Ids (Flag6) (set to False if no previous identifiers in list)
2678
2679       ----------------------------------
2680       -- 3.4  Derived Type Definition --
2681       ----------------------------------
2682
2683       --  DERIVED_TYPE_DEFINITION ::=
2684       --    [abstract] [limited] new [NULL_EXCLUSION] parent_SUBTYPE_INDICATION
2685       --    [[and INTERFACE_LIST] RECORD_EXTENSION_PART]
2686
2687       --  Note: ABSTRACT, LIMITED and record extension part are not permitted
2688       --  in Ada 83 mode
2689
2690       --  Note: a record extension part is required if ABSTRACT is present
2691
2692       --  N_Derived_Type_Definition
2693       --  Sloc points to NEW
2694       --  Abstract_Present (Flag4)
2695       --  Null_Exclusion_Present (Flag11) (set to False if not present)
2696       --  Subtype_Indication (Node5)
2697       --  Record_Extension_Part (Node3) (set to Empty if not present)
2698       --  Limited_Present (Flag17)
2699       --  Task_Present (Flag5) set in task interfaces
2700       --  Protected_Present (Flag6) set in protected interfaces
2701       --  Synchronized_Present (Flag7) set in interfaces
2702       --  Interface_List (List2) (set to No_List if none)
2703       --  Interface_Present (Flag16) set in abstract interfaces
2704
2705       --  Note: Task_Present, Protected_Present, Synchronized_Present,
2706       --        Interface_List, and Interface_Present are used for abstract
2707       --        interfaces (see comments for INTERFACE_TYPE_DEFINITION).
2708
2709       ---------------------------
2710       -- 3.5  Range Constraint --
2711       ---------------------------
2712
2713       --  RANGE_CONSTRAINT ::= range RANGE
2714
2715       --  N_Range_Constraint
2716       --  Sloc points to RANGE
2717       --  Range_Expression (Node4)
2718
2719       ----------------
2720       -- 3.5  Range --
2721       ----------------
2722
2723       --  RANGE ::=
2724       --    RANGE_ATTRIBUTE_REFERENCE
2725       --  | SIMPLE_EXPRESSION .. SIMPLE_EXPRESSION
2726
2727       --  Note: the case of a range given as a range attribute reference
2728       --  appears directly in the tree as an attribute reference.
2729
2730       --  Note: the field name for a reference to a range is Range_Expression
2731       --  rather than Range, because range is a reserved keyword in Ada.
2732
2733       --  Note: the reason that this node has expression fields is that a
2734       --  range can appear as an operand of a membership test. The Etype
2735       --  field is the type of the range (we do NOT construct an implicit
2736       --  subtype to represent the range exactly).
2737
2738       --  N_Range
2739       --  Sloc points to ..
2740       --  Low_Bound (Node1)
2741       --  High_Bound (Node2)
2742       --  Includes_Infinities (Flag11)
2743       --  plus fields for expression
2744
2745       --  Note: if the range appears in a context, such as a subtype
2746       --  declaration, where range checks are required on one or both of
2747       --  the expression fields, then type conversion nodes are inserted
2748       --  to represent the required checks.
2749
2750       ----------------------------------------
2751       -- 3.5.1  Enumeration Type Definition --
2752       ----------------------------------------
2753
2754       --  ENUMERATION_TYPE_DEFINITION ::=
2755       --    (ENUMERATION_LITERAL_SPECIFICATION
2756       --      {, ENUMERATION_LITERAL_SPECIFICATION})
2757
2758       --  Note: the Literals field in the node described below is null for
2759       --  the case of the standard types CHARACTER and WIDE_CHARACTER, for
2760       --  which special processing handles these types as special cases.
2761
2762       --  N_Enumeration_Type_Definition
2763       --  Sloc points to left parenthesis
2764       --  Literals (List1) (Empty for CHARACTER or WIDE_CHARACTER)
2765       --  End_Label (Node4) (set to Empty if internally generated record)
2766
2767       ----------------------------------------------
2768       -- 3.5.1  Enumeration Literal Specification --
2769       ----------------------------------------------
2770
2771       --  ENUMERATION_LITERAL_SPECIFICATION ::=
2772       --    DEFINING_IDENTIFIER | DEFINING_CHARACTER_LITERAL
2773
2774       ---------------------------------------
2775       -- 3.5.1  Defining Character Literal --
2776       ---------------------------------------
2777
2778       --  DEFINING_CHARACTER_LITERAL ::= CHARACTER_LITERAL
2779
2780       --  A defining character literal is an entity, which has additional
2781       --  fields depending on the setting of the Ekind field. These
2782       --  additional fields are defined (and access subprograms declared)
2783       --  in package Einfo.
2784
2785       --  Note: N_Defining_Character_Literal is an extended node whose fields
2786       --  are deliberate layed out to match the layout of fields in an ordinary
2787       --  N_Character_Literal node allowing for easy alteration of a character
2788       --  literal node into a defining character literal node. For details, see
2789       --  Sinfo.CN.Change_Character_Literal_To_Defining_Character_Literal.
2790
2791       --  N_Defining_Character_Literal
2792       --  Sloc points to literal
2793       --  Chars (Name1) contains the Name_Id for the identifier
2794       --  Next_Entity (Node2-Sem)
2795       --  Scope (Node3-Sem)
2796       --  Etype (Node5-Sem)
2797
2798       ------------------------------------
2799       -- 3.5.4  Integer Type Definition --
2800       ------------------------------------
2801
2802       --  Note: there is an error in this rule in the latest version of the
2803       --  grammar, so we have retained the old rule pending clarification.
2804
2805       --  INTEGER_TYPE_DEFINITION ::=
2806       --    SIGNED_INTEGER_TYPE_DEFINITION
2807       --  | MODULAR_TYPE_DEFINITION
2808
2809       -------------------------------------------
2810       -- 3.5.4  Signed Integer Type Definition --
2811       -------------------------------------------
2812
2813       --  SIGNED_INTEGER_TYPE_DEFINITION ::=
2814       --    range static_SIMPLE_EXPRESSION .. static_SIMPLE_EXPRESSION
2815
2816       --  Note: the Low_Bound and High_Bound fields are set to Empty
2817       --  for integer types defined in package Standard.
2818
2819       --  N_Signed_Integer_Type_Definition
2820       --  Sloc points to RANGE
2821       --  Low_Bound (Node1)
2822       --  High_Bound (Node2)
2823
2824       ------------------------------------
2825       -- 3.5.4  Modular Type Definition --
2826       ------------------------------------
2827
2828       --  MODULAR_TYPE_DEFINITION ::= mod static_EXPRESSION
2829
2830       --  N_Modular_Type_Definition
2831       --  Sloc points to MOD
2832       --  Expression (Node3)
2833
2834       ---------------------------------
2835       -- 3.5.6  Real Type Definition --
2836       ---------------------------------
2837
2838       --  REAL_TYPE_DEFINITION ::=
2839       --    FLOATING_POINT_DEFINITION | FIXED_POINT_DEFINITION
2840
2841       --------------------------------------
2842       -- 3.5.7  Floating Point Definition --
2843       --------------------------------------
2844
2845       --  FLOATING_POINT_DEFINITION ::=
2846       --    digits static_SIMPLE_EXPRESSION [REAL_RANGE_SPECIFICATION]
2847
2848       --  Note: The Digits_Expression and Real_Range_Specifications fields
2849       --  are set to Empty for floating-point types declared in Standard.
2850
2851       --  N_Floating_Point_Definition
2852       --  Sloc points to DIGITS
2853       --  Digits_Expression (Node2)
2854       --  Real_Range_Specification (Node4) (set to Empty if not present)
2855
2856       -------------------------------------
2857       -- 3.5.7  Real Range Specification --
2858       -------------------------------------
2859
2860       --  REAL_RANGE_SPECIFICATION ::=
2861       --    range static_SIMPLE_EXPRESSION .. static_SIMPLE_EXPRESSION
2862
2863       --  N_Real_Range_Specification
2864       --  Sloc points to RANGE
2865       --  Low_Bound (Node1)
2866       --  High_Bound (Node2)
2867
2868       -----------------------------------
2869       -- 3.5.9  Fixed Point Definition --
2870       -----------------------------------
2871
2872       --  FIXED_POINT_DEFINITION ::=
2873       --    ORDINARY_FIXED_POINT_DEFINITION | DECIMAL_FIXED_POINT_DEFINITION
2874
2875       --------------------------------------------
2876       -- 3.5.9  Ordinary Fixed Point Definition --
2877       --------------------------------------------
2878
2879       --  ORDINARY_FIXED_POINT_DEFINITION ::=
2880       --    delta static_EXPRESSION REAL_RANGE_SPECIFICATION
2881
2882       --  Note: In Ada 83, the EXPRESSION must be a SIMPLE_EXPRESSION
2883
2884       --  N_Ordinary_Fixed_Point_Definition
2885       --  Sloc points to DELTA
2886       --  Delta_Expression (Node3)
2887       --  Real_Range_Specification (Node4)
2888
2889       -------------------------------------------
2890       -- 3.5.9  Decimal Fixed Point Definition --
2891       -------------------------------------------
2892
2893       --  DECIMAL_FIXED_POINT_DEFINITION ::=
2894       --    delta static_EXPRESSION
2895       --      digits static_EXPRESSION [REAL_RANGE_SPECIFICATION]
2896
2897       --  Note: decimal types are not permitted in Ada 83 mode
2898
2899       --  N_Decimal_Fixed_Point_Definition
2900       --  Sloc points to DELTA
2901       --  Delta_Expression (Node3)
2902       --  Digits_Expression (Node2)
2903       --  Real_Range_Specification (Node4) (set to Empty if not present)
2904
2905       ------------------------------
2906       -- 3.5.9  Digits Constraint --
2907       ------------------------------
2908
2909       --  DIGITS_CONSTRAINT ::=
2910       --    digits static_EXPRESSION [RANGE_CONSTRAINT]
2911
2912       --  Note: in Ada 83, the EXPRESSION must be a SIMPLE_EXPRESSION
2913       --  Note: in Ada 95, reduced accuracy subtypes are obsolescent
2914
2915       --  N_Digits_Constraint
2916       --  Sloc points to DIGITS
2917       --  Digits_Expression (Node2)
2918       --  Range_Constraint (Node4) (set to Empty if not present)
2919
2920       --------------------------------
2921       -- 3.6  Array Type Definition --
2922       --------------------------------
2923
2924       --  ARRAY_TYPE_DEFINITION ::=
2925       --    UNCONSTRAINED_ARRAY_DEFINITION | CONSTRAINED_ARRAY_DEFINITION
2926
2927       -----------------------------------------
2928       -- 3.6  Unconstrained Array Definition --
2929       -----------------------------------------
2930
2931       --  UNCONSTRAINED_ARRAY_DEFINITION ::=
2932       --    array (INDEX_SUBTYPE_DEFINITION {, INDEX_SUBTYPE_DEFINITION}) of
2933       --      COMPONENT_DEFINITION
2934
2935       --  Note: dimensionality of array is indicated by number of entries in
2936       --  the Subtype_Marks list, which has one entry for each dimension.
2937
2938       --  N_Unconstrained_Array_Definition
2939       --  Sloc points to ARRAY
2940       --  Subtype_Marks (List2)
2941       --  Component_Definition (Node4)
2942
2943       -----------------------------------
2944       -- 3.6  Index Subtype Definition --
2945       -----------------------------------
2946
2947       --  INDEX_SUBTYPE_DEFINITION ::= SUBTYPE_MARK range <>
2948
2949       --  There is no explicit node in the tree for an index subtype
2950       --  definition since the N_Unconstrained_Array_Definition node
2951       --  incorporates the type marks which appear in this context.
2952
2953       ---------------------------------------
2954       -- 3.6  Constrained Array Definition --
2955       ---------------------------------------
2956
2957       --  CONSTRAINED_ARRAY_DEFINITION ::=
2958       --    array (DISCRETE_SUBTYPE_DEFINITION
2959       --      {, DISCRETE_SUBTYPE_DEFINITION})
2960       --        of COMPONENT_DEFINITION
2961
2962       --  Note: dimensionality of array is indicated by number of entries
2963       --  in the Discrete_Subtype_Definitions list, which has one entry
2964       --  for each dimension.
2965
2966       --  N_Constrained_Array_Definition
2967       --  Sloc points to ARRAY
2968       --  Discrete_Subtype_Definitions (List2)
2969       --  Component_Definition (Node4)
2970
2971       --  Note: although the language allows the full syntax for discrete
2972       --  subtype definitions (i.e. a discrete subtype indication or a range),
2973       --  in the generated tree, we always rewrite these as N_Range nodes.
2974
2975       --------------------------------------
2976       -- 3.6  Discrete Subtype Definition --
2977       --------------------------------------
2978
2979       --  DISCRETE_SUBTYPE_DEFINITION ::=
2980       --    discrete_SUBTYPE_INDICATION | RANGE
2981
2982       -------------------------------
2983       -- 3.6  Component Definition --
2984       -------------------------------
2985
2986       --  COMPONENT_DEFINITION ::=
2987       --    [aliased] [NULL_EXCLUSION] SUBTYPE_INDICATION | ACCESS_DEFINITION
2988
2989       --  Note: although the syntax does not permit a component definition to
2990       --  be an anonymous array (and the parser will diagnose such an attempt
2991       --  with an appropriate message), it is possible for anonymous arrays
2992       --  to appear as component definitions. The semantics and back end handle
2993       --  this case properly, and the expander in fact generates such cases.
2994       --  Access_Definition is an optional field that gives support to
2995       --  Ada 2005 (AI-230). The parser generates nodes that have either the
2996       --  Subtype_Indication field or else the Access_Definition field.
2997
2998       --  N_Component_Definition
2999       --  Sloc points to ALIASED, ACCESS or to first token of subtype mark
3000       --  Aliased_Present (Flag4)
3001       --  Null_Exclusion_Present (Flag11)
3002       --  Subtype_Indication (Node5) (set to Empty if not present)
3003       --  Access_Definition (Node3) (set to Empty if not present)
3004
3005       -----------------------------
3006       -- 3.6.1  Index Constraint --
3007       -----------------------------
3008
3009       --  INDEX_CONSTRAINT ::= (DISCRETE_RANGE {, DISCRETE_RANGE})
3010
3011       --  It is not in general possible to distinguish between discriminant
3012       --  constraints and index constraints at parse time, since a simple
3013       --  name could be either the subtype mark of a discrete range, or an
3014       --  expression in a discriminant association with no name. Either
3015       --  entry appears simply as the name, and the semantic parse must
3016       --  distinguish between the two cases. Thus we use a common tree
3017       --  node format for both of these constraint types.
3018
3019       --  See Discriminant_Constraint for format of node
3020
3021       ---------------------------
3022       -- 3.6.1  Discrete Range --
3023       ---------------------------
3024
3025       --  DISCRETE_RANGE ::= discrete_SUBTYPE_INDICATION | RANGE
3026
3027       ----------------------------
3028       -- 3.7  Discriminant Part --
3029       ----------------------------
3030
3031       --  DISCRIMINANT_PART ::=
3032       --    UNKNOWN_DISCRIMINANT_PART | KNOWN_DISCRIMINANT_PART
3033
3034       ------------------------------------
3035       -- 3.7  Unknown Discriminant Part --
3036       ------------------------------------
3037
3038       --  UNKNOWN_DISCRIMINANT_PART ::= (<>)
3039
3040       --  Note: unknown discriminant parts are not permitted in Ada 83 mode
3041
3042       --  There is no explicit node in the tree for an unknown discriminant
3043       --  part. Instead the Unknown_Discriminants_Present flag is set in the
3044       --  parent node.
3045
3046       ----------------------------------
3047       -- 3.7  Known Discriminant Part --
3048       ----------------------------------
3049
3050       --  KNOWN_DISCRIMINANT_PART ::=
3051       --    (DISCRIMINANT_SPECIFICATION {; DISCRIMINANT_SPECIFICATION})
3052
3053       -------------------------------------
3054       -- 3.7  Discriminant Specification --
3055       -------------------------------------
3056
3057       --  DISCRIMINANT_SPECIFICATION ::=
3058       --    DEFINING_IDENTIFIER_LIST : [NULL_EXCLUSION] SUBTYPE_MARK
3059       --      [:= DEFAULT_EXPRESSION]
3060       --  | DEFINING_IDENTIFIER_LIST : ACCESS_DEFINITION
3061       --      [:= DEFAULT_EXPRESSION]
3062
3063       --  Although the syntax allows multiple identifiers in the list, the
3064       --  semantics is as though successive specifications were given with
3065       --  identical type definition and expression components. To simplify
3066       --  semantic processing, the parser represents a multiple declaration
3067       --  case as a sequence of single specifications, using the More_Ids and
3068       --  Prev_Ids flags to preserve the original source form as described
3069       --  in the section on "Handling of Defining Identifier Lists".
3070
3071       --  N_Discriminant_Specification
3072       --  Sloc points to first identifier
3073       --  Defining_Identifier (Node1)
3074       --  Null_Exclusion_Present (Flag11)
3075       --  Discriminant_Type (Node5) subtype mark or access parameter definition
3076       --  Expression (Node3) (set to Empty if no default expression)
3077       --  More_Ids (Flag5) (set to False if no more identifiers in list)
3078       --  Prev_Ids (Flag6) (set to False if no previous identifiers in list)
3079
3080       -----------------------------
3081       -- 3.7  Default Expression --
3082       -----------------------------
3083
3084       --  DEFAULT_EXPRESSION ::= EXPRESSION
3085
3086       ------------------------------------
3087       -- 3.7.1  Discriminant Constraint --
3088       ------------------------------------
3089
3090       --  DISCRIMINANT_CONSTRAINT ::=
3091       --    (DISCRIMINANT_ASSOCIATION {, DISCRIMINANT_ASSOCIATION})
3092
3093       --  It is not in general possible to distinguish between discriminant
3094       --  constraints and index constraints at parse time, since a simple
3095       --  name could be either the subtype mark of a discrete range, or an
3096       --  expression in a discriminant association with no name. Either
3097       --  entry appears simply as the name, and the semantic parse must
3098       --  distinguish between the two cases. Thus we use a common tree
3099       --  node format for both of these constraint types.
3100
3101       --  N_Index_Or_Discriminant_Constraint
3102       --  Sloc points to left paren
3103       --  Constraints (List1) points to list of discrete ranges or
3104       --    discriminant associations
3105
3106       -------------------------------------
3107       -- 3.7.1  Discriminant Association --
3108       -------------------------------------
3109
3110       --  DISCRIMINANT_ASSOCIATION ::=
3111       --    [discriminant_SELECTOR_NAME
3112       --      {| discriminant_SELECTOR_NAME} =>] EXPRESSION
3113
3114       --  Note: a discriminant association that has no selector name list
3115       --  appears directly as an expression in the tree.
3116
3117       --  N_Discriminant_Association
3118       --  Sloc points to first token of discriminant association
3119       --  Selector_Names (List1) (always non-empty, since if no selector
3120       --   names are present, this node is not used, see comment above)
3121       --  Expression (Node3)
3122
3123       ---------------------------------
3124       -- 3.8  Record Type Definition --
3125       ---------------------------------
3126
3127       --  RECORD_TYPE_DEFINITION ::=
3128       --    [[abstract] tagged] [limited] RECORD_DEFINITION
3129
3130       --  Note: ABSTRACT, TAGGED, LIMITED are not permitted in Ada 83 mode
3131
3132       --  There is no explicit node in the tree for a record type definition.
3133       --  Instead the flags for Tagged_Present and Limited_Present appear in
3134       --  the N_Record_Definition node for a record definition appearing in
3135       --  the context of a record type definition.
3136
3137       ----------------------------
3138       -- 3.8  Record Definition --
3139       ----------------------------
3140
3141       --  RECORD_DEFINITION ::=
3142       --    record
3143       --      COMPONENT_LIST
3144       --    end record
3145       --  | null record
3146
3147       --  Note: the Abstract_Present, Tagged_Present and Limited_Present
3148       --  flags appear only for a record definition appearing in a record
3149       --  type definition.
3150
3151       --  Note: the NULL RECORD case is not permitted in Ada 83
3152
3153       --  N_Record_Definition
3154       --  Sloc points to RECORD or NULL
3155       --  End_Label (Node4) (set to Empty if internally generated record)
3156       --  Abstract_Present (Flag4)
3157       --  Tagged_Present (Flag15)
3158       --  Limited_Present (Flag17)
3159       --  Component_List (Node1) empty in null record case
3160       --  Null_Present (Flag13) set in null record case
3161       --  Task_Present (Flag5) set in task interfaces
3162       --  Protected_Present (Flag6) set in protected interfaces
3163       --  Synchronized_Present (Flag7) set in interfaces
3164       --  Interface_Present (Flag16) set in abstract interfaces
3165       --  Interface_List (List2) (set to No_List if none)
3166
3167       --  Note: Task_Present, Protected_Present, Synchronized _Present,
3168       --        Interface_List and Interface_Present are used for abstract
3169       --        interfaces (see comments for INTERFACE_TYPE_DEFINITION).
3170
3171       -------------------------
3172       -- 3.8  Component List --
3173       -------------------------
3174
3175       --  COMPONENT_LIST ::=
3176       --    COMPONENT_ITEM {COMPONENT_ITEM}
3177       --  | {COMPONENT_ITEM} VARIANT_PART
3178       --  | null;
3179
3180       --  N_Component_List
3181       --  Sloc points to first token of component list
3182       --  Component_Items (List3)
3183       --  Variant_Part (Node4) (set to Empty if no variant part)
3184       --  Null_Present (Flag13)
3185
3186       -------------------------
3187       -- 3.8  Component Item --
3188       -------------------------
3189
3190       --  COMPONENT_ITEM ::= COMPONENT_DECLARATION | REPRESENTATION_CLAUSE
3191
3192       --  Note: A component item can also be a pragma, and in the tree
3193       --  that is obtained after semantic processing, a component item
3194       --  can be an N_Null node resulting from a non-recognized pragma.
3195
3196       --------------------------------
3197       -- 3.8  Component Declaration --
3198       --------------------------------
3199
3200       --  COMPONENT_DECLARATION ::=
3201       --    DEFINING_IDENTIFIER_LIST : COMPONENT_DEFINITION
3202       --      [:= DEFAULT_EXPRESSION]
3203       --        [ASPECT_SPECIFICATIONS];
3204
3205       --  Note: although the syntax does not permit a component definition to
3206       --  be an anonymous array (and the parser will diagnose such an attempt
3207       --  with an appropriate message), it is possible for anonymous arrays
3208       --  to appear as component definitions. The semantics and back end handle
3209       --  this case properly, and the expander in fact generates such cases.
3210
3211       --  Although the syntax allows multiple identifiers in the list, the
3212       --  semantics is as though successive declarations were given with the
3213       --  same component definition and expression components. To simplify
3214       --  semantic processing, the parser represents a multiple declaration
3215       --  case as a sequence of single declarations, using the More_Ids and
3216       --  Prev_Ids flags to preserve the original source form as described
3217       --  in the section on "Handling of Defining Identifier Lists".
3218
3219       --  N_Component_Declaration
3220       --  Sloc points to first identifier
3221       --  Defining_Identifier (Node1)
3222       --  Component_Definition (Node4)
3223       --  Expression (Node3) (set to Empty if no default expression)
3224       --  More_Ids (Flag5) (set to False if no more identifiers in list)
3225       --  Prev_Ids (Flag6) (set to False if no previous identifiers in list)
3226
3227       -------------------------
3228       -- 3.8.1  Variant Part --
3229       -------------------------
3230
3231       --  VARIANT_PART ::=
3232       --    case discriminant_DIRECT_NAME is
3233       --      VARIANT {VARIANT}
3234       --    end case;
3235
3236       --  Note: the variants list can contain pragmas as well as variants.
3237       --  In a properly formed program there is at least one variant.
3238
3239       --  N_Variant_Part
3240       --  Sloc points to CASE
3241       --  Name (Node2)
3242       --  Variants (List1)
3243
3244       --------------------
3245       -- 3.8.1  Variant --
3246       --------------------
3247
3248       --  VARIANT ::=
3249       --    when DISCRETE_CHOICE_LIST =>
3250       --      COMPONENT_LIST
3251
3252       --  N_Variant
3253       --  Sloc points to WHEN
3254       --  Discrete_Choices (List4)
3255       --  Component_List (Node1)
3256       --  Enclosing_Variant (Node2-Sem)
3257       --  Present_Expr (Uint3-Sem)
3258       --  Dcheck_Function (Node5-Sem)
3259       --  Has_SP_Choice (Flag15-Sem)
3260
3261       --  Note: in the list of Discrete_Choices, the tree passed to the back
3262       --  end does not have choice entries corresponding to names of statically
3263       --  predicated subtypes. Such entries are always expanded out to the list
3264       --  of equivalent values or ranges. The ASIS tree generated in -gnatct
3265       --  mode also has this expansion, but done with a proper Rewrite call on
3266       --  the N_Variant node so that ASIS can properly retrieve the original.
3267
3268       ---------------------------------
3269       -- 3.8.1  Discrete Choice List --
3270       ---------------------------------
3271
3272       --  DISCRETE_CHOICE_LIST ::= DISCRETE_CHOICE {| DISCRETE_CHOICE}
3273
3274       ----------------------------
3275       -- 3.8.1  Discrete Choice --
3276       ----------------------------
3277
3278       --  DISCRETE_CHOICE ::= EXPRESSION | DISCRETE_RANGE | others
3279
3280       --  Note: in Ada 83 mode, the expression must be a simple expression
3281
3282       --  The only choice that appears explicitly is the OTHERS choice, as
3283       --  defined here. Other cases of discrete choice (expression and
3284       --  discrete range) appear directly. This production is also used
3285       --  for the OTHERS possibility of an exception choice.
3286
3287       --  Note: in accordance with the syntax, the parser does not check that
3288       --  OTHERS appears at the end on its own in a choice list context. This
3289       --  is a semantic check.
3290
3291       --  N_Others_Choice
3292       --  Sloc points to OTHERS
3293       --  Others_Discrete_Choices (List1-Sem)
3294       --  All_Others (Flag11-Sem)
3295
3296       ----------------------------------
3297       -- 3.9.1  Record Extension Part --
3298       ----------------------------------
3299
3300       --  RECORD_EXTENSION_PART ::= with RECORD_DEFINITION
3301
3302       --  Note: record extension parts are not permitted in Ada 83 mode
3303
3304       --------------------------------------
3305       -- 3.9.4  Interface Type Definition --
3306       --------------------------------------
3307
3308       --  INTERFACE_TYPE_DEFINITION ::=
3309       --    [limited | task | protected | synchronized]
3310       --    interface [interface_list]
3311
3312       --  Note: Interfaces are implemented with N_Record_Definition and
3313       --        N_Derived_Type_Definition nodes because most of the support
3314       --        for the analysis of abstract types has been reused to
3315       --        analyze abstract interfaces.
3316
3317       ----------------------------------
3318       -- 3.10  Access Type Definition --
3319       ----------------------------------
3320
3321       --  ACCESS_TYPE_DEFINITION ::=
3322       --    ACCESS_TO_OBJECT_DEFINITION
3323       --  | ACCESS_TO_SUBPROGRAM_DEFINITION
3324
3325       --------------------------
3326       -- 3.10  Null Exclusion --
3327       --------------------------
3328
3329       --  NULL_EXCLUSION ::= not null
3330
3331       ---------------------------------------
3332       -- 3.10  Access To Object Definition --
3333       ---------------------------------------
3334
3335       --  ACCESS_TO_OBJECT_DEFINITION ::=
3336       --    [NULL_EXCLUSION] access [GENERAL_ACCESS_MODIFIER]
3337       --    SUBTYPE_INDICATION
3338
3339       --  N_Access_To_Object_Definition
3340       --  Sloc points to ACCESS
3341       --  All_Present (Flag15)
3342       --  Null_Exclusion_Present (Flag11)
3343       --  Subtype_Indication (Node5)
3344       --  Constant_Present (Flag17)
3345
3346       -----------------------------------
3347       -- 3.10  General Access Modifier --
3348       -----------------------------------
3349
3350       --  GENERAL_ACCESS_MODIFIER ::= all | constant
3351
3352       --  Note: general access modifiers are not permitted in Ada 83 mode
3353
3354       --  There is no explicit node in the tree for general access modifier.
3355       --  Instead the All_Present or Constant_Present flags are set in the
3356       --  parent node.
3357
3358       -------------------------------------------
3359       -- 3.10  Access To Subprogram Definition --
3360       -------------------------------------------
3361
3362       --  ACCESS_TO_SUBPROGRAM_DEFINITION
3363       --    [NULL_EXCLUSION] access [protected] procedure PARAMETER_PROFILE
3364       --  | [NULL_EXCLUSION] access [protected] function
3365       --    PARAMETER_AND_RESULT_PROFILE
3366
3367       --  Note: access to subprograms are not permitted in Ada 83 mode
3368
3369       --  N_Access_Function_Definition
3370       --  Sloc points to ACCESS
3371       --  Null_Exclusion_Present (Flag11)
3372       --  Null_Exclusion_In_Return_Present (Flag14)
3373       --  Protected_Present (Flag6)
3374       --  Parameter_Specifications (List3) (set to No_List if no formal part)
3375       --  Result_Definition (Node4) result subtype (subtype mark or access def)
3376
3377       --  N_Access_Procedure_Definition
3378       --  Sloc points to ACCESS
3379       --  Null_Exclusion_Present (Flag11)
3380       --  Protected_Present (Flag6)
3381       --  Parameter_Specifications (List3) (set to No_List if no formal part)
3382
3383       -----------------------------
3384       -- 3.10  Access Definition --
3385       -----------------------------
3386
3387       --  ACCESS_DEFINITION ::=
3388       --    [NULL_EXCLUSION] access [GENERAL_ACCESS_MODIFIER] SUBTYPE_MARK
3389       --  | ACCESS_TO_SUBPROGRAM_DEFINITION
3390
3391       --  Note: access to subprograms are an Ada 2005 (AI-254) extension
3392
3393       --  N_Access_Definition
3394       --  Sloc points to ACCESS
3395       --  Null_Exclusion_Present (Flag11)
3396       --  All_Present (Flag15)
3397       --  Constant_Present (Flag17)
3398       --  Subtype_Mark (Node4)
3399       --  Access_To_Subprogram_Definition (Node3) (set to Empty if not present)
3400
3401       -----------------------------------------
3402       -- 3.10.1  Incomplete Type Declaration --
3403       -----------------------------------------
3404
3405       --  INCOMPLETE_TYPE_DECLARATION ::=
3406       --    type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
3407
3408       --  N_Incomplete_Type_Declaration
3409       --  Sloc points to TYPE
3410       --  Defining_Identifier (Node1)
3411       --  Discriminant_Specifications (List4) (set to No_List if no
3412       --   discriminant part, or if the discriminant part is an
3413       --   unknown discriminant part)
3414       --  Premature_Use (Node5-Sem) used for improved diagnostics.
3415       --  Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
3416       --  Tagged_Present (Flag15)
3417
3418       ----------------------------
3419       -- 3.11  Declarative Part --
3420       ----------------------------
3421
3422       --  DECLARATIVE_PART ::= {DECLARATIVE_ITEM}
3423
3424       --  Note: although the parser enforces the syntactic requirement that
3425       --  a declarative part can contain only declarations, the semantic
3426       --  processing may add statements to the list of actions in a
3427       --  declarative part, so the code generator should be prepared
3428       --  to accept a statement in this position.
3429
3430       ----------------------------
3431       -- 3.11  Declarative Item --
3432       ----------------------------
3433
3434       --  DECLARATIVE_ITEM ::= BASIC_DECLARATIVE_ITEM | BODY
3435
3436       ----------------------------------
3437       -- 3.11  Basic Declarative Item --
3438       ----------------------------------
3439
3440       --  BASIC_DECLARATIVE_ITEM ::=
3441       --    BASIC_DECLARATION | REPRESENTATION_CLAUSE | USE_CLAUSE
3442
3443       ----------------
3444       -- 3.11  Body --
3445       ----------------
3446
3447       --  BODY ::= PROPER_BODY | BODY_STUB
3448
3449       -----------------------
3450       -- 3.11  Proper Body --
3451       -----------------------
3452
3453       --  PROPER_BODY ::=
3454       --    SUBPROGRAM_BODY | PACKAGE_BODY | TASK_BODY | PROTECTED_BODY
3455
3456       ---------------
3457       -- 4.1  Name --
3458       ---------------
3459
3460       --  NAME ::=
3461       --    DIRECT_NAME        | EXPLICIT_DEREFERENCE
3462       --  | INDEXED_COMPONENT  | SLICE
3463       --  | SELECTED_COMPONENT | ATTRIBUTE_REFERENCE
3464       --  | TYPE_CONVERSION    | FUNCTION_CALL
3465       --  | CHARACTER_LITERAL
3466
3467       ----------------------
3468       -- 4.1  Direct Name --
3469       ----------------------
3470
3471       --  DIRECT_NAME ::= IDENTIFIER | OPERATOR_SYMBOL
3472
3473       -----------------
3474       -- 4.1  Prefix --
3475       -----------------
3476
3477       --  PREFIX ::= NAME | IMPLICIT_DEREFERENCE
3478
3479       -------------------------------
3480       -- 4.1  Explicit Dereference --
3481       -------------------------------
3482
3483       --  EXPLICIT_DEREFERENCE ::= NAME . all
3484
3485       --  N_Explicit_Dereference
3486       --  Sloc points to ALL
3487       --  Prefix (Node3)
3488       --  Actual_Designated_Subtype (Node4-Sem)
3489       --  Atomic_Sync_Required (Flag14-Sem)
3490       --  Has_Dereference_Action (Flag13-Sem)
3491       --  plus fields for expression
3492
3493       -------------------------------
3494       -- 4.1  Implicit Dereference --
3495       -------------------------------
3496
3497       --  IMPLICIT_DEREFERENCE ::= NAME
3498
3499       ------------------------------
3500       -- 4.1.1  Indexed Component --
3501       ------------------------------
3502
3503       --  INDEXED_COMPONENT ::= PREFIX (EXPRESSION {, EXPRESSION})
3504
3505       --  Note: the parser may generate this node in some situations where it
3506       --  should be a function call. The semantic  pass must correct this
3507       --  misidentification (which is inevitable at the parser level).
3508
3509       --  N_Indexed_Component
3510       --  Sloc contains a copy of the Sloc value of the Prefix
3511       --  Prefix (Node3)
3512       --  Expressions (List1)
3513       --  Generalized_Indexing (Node4-Sem)
3514       --  Atomic_Sync_Required (Flag14-Sem)
3515       --  plus fields for expression
3516
3517       --  Note: if any of the subscripts requires a range check, then the
3518       --  Do_Range_Check flag is set on the corresponding expression, with
3519       --  the index type being determined from the type of the Prefix, which
3520       --  references the array being indexed.
3521
3522       --  Note: in a fully analyzed and expanded indexed component node, and
3523       --  hence in any such node that gigi sees, if the prefix is an access
3524       --  type, then an explicit dereference operation has been inserted.
3525
3526       ------------------
3527       -- 4.1.2  Slice --
3528       ------------------
3529
3530       --  SLICE ::= PREFIX (DISCRETE_RANGE)
3531
3532       --  Note: an implicit subtype is created to describe the resulting
3533       --  type, so that the bounds of this type are the bounds of the slice.
3534
3535       --  N_Slice
3536       --  Sloc points to first token of prefix
3537       --  Prefix (Node3)
3538       --  Discrete_Range (Node4)
3539       --  plus fields for expression
3540
3541       -------------------------------
3542       -- 4.1.3  Selected Component --
3543       -------------------------------
3544
3545       --  SELECTED_COMPONENT ::= PREFIX . SELECTOR_NAME
3546
3547       --  Note: selected components that are semantically expanded names get
3548       --  changed during semantic processing into the separate N_Expanded_Name
3549       --  node. See description of this node in the section on semantic nodes.
3550
3551       --  N_Selected_Component
3552       --  Sloc points to period
3553       --  Prefix (Node3)
3554       --  Selector_Name (Node2)
3555       --  Associated_Node (Node4-Sem)
3556       --  Do_Discriminant_Check (Flag1-Sem)
3557       --  Is_In_Discriminant_Check (Flag11-Sem)
3558       --  Is_Prefixed_Call (Flag17-Sem)
3559       --  Atomic_Sync_Required (Flag14-Sem)
3560       --  plus fields for expression
3561
3562       --------------------------
3563       -- 4.1.3  Selector Name --
3564       --------------------------
3565
3566       --  SELECTOR_NAME ::= IDENTIFIER | CHARACTER_LITERAL | OPERATOR_SYMBOL
3567
3568       --------------------------------
3569       -- 4.1.4  Attribute Reference --
3570       --------------------------------
3571
3572       --  ATTRIBUTE_REFERENCE ::= PREFIX ' ATTRIBUTE_DESIGNATOR
3573
3574       --  Note: the syntax is quite ambiguous at this point. Consider:
3575
3576       --    A'Length (X)  X is part of the attribute designator
3577       --    A'Pos (X)     X is an explicit actual parameter of function A'Pos
3578       --    A'Class (X)   X is the expression of a type conversion
3579
3580       --  It would be possible for the parser to distinguish these cases
3581       --  by looking at the attribute identifier. However, that would mean
3582       --  more work in introducing new implementation defined attributes,
3583       --  and also it would mean that special processing for attributes
3584       --  would be scattered around, instead of being centralized in the
3585       --  semantic routine that handles an N_Attribute_Reference node.
3586       --  Consequently, the parser in all the above cases stores the
3587       --  expression (X in these examples) as a single element list in
3588       --  in the Expressions field of the N_Attribute_Reference node.
3589
3590       --  Similarly, for attributes like Max which take two arguments,
3591       --  we store the two arguments as a two element list in the
3592       --  Expressions field. Of course it is clear at parse time that
3593       --  this case is really a function call with an attribute as the
3594       --  prefix, but it turns out to be convenient to handle the two
3595       --  argument case in a similar manner to the one argument case,
3596       --  and indeed in general the parser will accept any number of
3597       --  expressions in this position and store them as a list in the
3598       --  attribute reference node. This allows for future addition of
3599       --  attributes that take more than two arguments.
3600
3601       --  Note: named associates are not permitted in function calls where
3602       --  the function is an attribute (see RM 6.4(3)) so it is legitimate
3603       --  to skip the normal subprogram argument processing.
3604
3605       --  Note: for the attributes whose designators are technically keywords,
3606       --  i.e. digits, access, delta, range, the Attribute_Name field contains
3607       --  the corresponding name, even though no identifier is involved.
3608
3609       --  Note: the generated code may contain stream attributes applied to
3610       --  limited types for which no stream routines exist officially. In such
3611       --  case, the result is to use the stream attribute for the underlying
3612       --  full type, or in the case of a protected type, the components
3613       --  (including any discriminants) are merely streamed in order.
3614
3615       --  See Exp_Attr for a complete description of which attributes are
3616       --  passed onto Gigi, and which are handled entirely by the front end.
3617
3618       --  Gigi restriction: For the Pos attribute, the prefix cannot be
3619       --  a non-standard enumeration type or a nonzero/zero semantics
3620       --  boolean type, so the value is simply the stored representation.
3621
3622       --  Gigi requirement: For the Mechanism_Code attribute, if the prefix
3623       --  references a subprogram that is a renaming, then the front end must
3624       --  rewrite the attribute to refer directly to the renamed entity.
3625
3626       --  Note: In generated code, the Address and Unrestricted_Access
3627       --  attributes can be applied to any expression, and the meaning is
3628       --  to create an object containing the value (the object is in the
3629       --  current stack frame), and pass the address of this value. If the
3630       --  Must_Be_Byte_Aligned flag is set, then the object whose address
3631       --  is taken must be on a byte (storage unit) boundary, and if it is
3632       --  not (or may not be), then the generated code must create a copy
3633       --  that is byte aligned, and pass the address of this copy.
3634
3635       --  N_Attribute_Reference
3636       --  Sloc points to apostrophe
3637       --  Prefix (Node3)
3638       --  Attribute_Name (Name2) identifier name from attribute designator
3639       --  Expressions (List1) (set to No_List if no associated expressions)
3640       --  Entity (Node4-Sem) used if the attribute yields a type
3641       --  Associated_Node (Node4-Sem)
3642       --  Do_Overflow_Check (Flag17-Sem)
3643       --  Header_Size_Added (Flag11-Sem)
3644       --  Must_Be_Byte_Aligned (Flag14-Sem)
3645       --  Non_Aliased_Prefix (Flag18-Sem)
3646       --  Redundant_Use (Flag13-Sem)
3647
3648       --  plus fields for expression
3649
3650       --  Note: in Modify_Tree_For_C mode, Max and Min attributes are expanded
3651       --  into equivalent if expressions, properly taking care of side effects.
3652
3653       ---------------------------------
3654       -- 4.1.4  Attribute Designator --
3655       ---------------------------------
3656
3657       --  ATTRIBUTE_DESIGNATOR ::=
3658       --    IDENTIFIER [(static_EXPRESSION)]
3659       --  | access | delta | digits
3660
3661       --  There is no explicit node in the tree for an attribute designator.
3662       --  Instead the Attribute_Name and Expressions fields of the parent
3663       --  node (N_Attribute_Reference node) hold the information.
3664
3665       --  Note: if ACCESS, DELTA or DIGITS appears in an attribute
3666       --  designator, then they are treated as identifiers internally
3667       --  rather than the keywords of the same name.
3668
3669       --------------------------------------
3670       -- 4.1.4  Range Attribute Reference --
3671       --------------------------------------
3672
3673       --  RANGE_ATTRIBUTE_REFERENCE ::= PREFIX ' RANGE_ATTRIBUTE_DESIGNATOR
3674
3675       --  A range attribute reference is represented in the tree using the
3676       --  normal N_Attribute_Reference node.
3677
3678       ---------------------------------------
3679       -- 4.1.4  Range Attribute Designator --
3680       ---------------------------------------
3681
3682       --  RANGE_ATTRIBUTE_DESIGNATOR ::= Range [(static_EXPRESSION)]
3683
3684       --  A range attribute designator is represented in the tree using the
3685       --  normal N_Attribute_Reference node.
3686
3687       --------------------
3688       -- 4.3  Aggregate --
3689       --------------------
3690
3691       --  AGGREGATE ::=
3692       --    RECORD_AGGREGATE | EXTENSION_AGGREGATE | ARRAY_AGGREGATE
3693
3694       -----------------------------
3695       -- 4.3.1  Record Aggregate --
3696       -----------------------------
3697
3698       --  RECORD_AGGREGATE ::= (RECORD_COMPONENT_ASSOCIATION_LIST)
3699
3700       --  N_Aggregate
3701       --  Sloc points to left parenthesis
3702       --  Expressions (List1) (set to No_List if none or null record case)
3703       --  Component_Associations (List2) (set to No_List if none)
3704       --  Null_Record_Present (Flag17)
3705       --  Aggregate_Bounds (Node3-Sem)
3706       --  Associated_Node (Node4-Sem)
3707       --  Compile_Time_Known_Aggregate (Flag18-Sem)
3708       --  Expansion_Delayed (Flag11-Sem)
3709       --  Has_Self_Reference (Flag13-Sem)
3710       --  plus fields for expression
3711
3712       --  Note: this structure is used for both record and array aggregates
3713       --  since the two cases are not separable by the parser. The parser
3714       --  makes no attempt to enforce consistency here, so it is up to the
3715       --  semantic phase to make sure that the aggregate is consistent (i.e.
3716       --  that it is not a "half-and-half" case that mixes record and array
3717       --  syntax. In particular, for a record aggregate, the expressions
3718       --  field will be set if there are positional associations.
3719
3720       --  Note: N_Aggregate is not used for all aggregates; in particular,
3721       --  there is a separate node kind for extension aggregates.
3722
3723       --  Note: gigi/gcc can handle array aggregates correctly providing that
3724       --  they are entirely positional, and the array subtype involved has a
3725       --  known at compile time length and is not bit packed, or a convention
3726       --  Fortran array with more than one dimension. If these conditions
3727       --  are not met, then the front end must translate the aggregate into
3728       --  an appropriate set of assignments into a temporary.
3729
3730       --  Note: for the record aggregate case, gigi/gcc can handle all cases of
3731       --  record aggregates, including those for packed, and rep-claused
3732       --  records, and also variant records, providing that there are no
3733       --  variable length fields whose size is not known at compile time, and
3734       --  providing that the aggregate is presented in fully named form.
3735
3736       ----------------------------------------------
3737       -- 4.3.1  Record Component Association List --
3738       ----------------------------------------------
3739
3740       --  RECORD_COMPONENT_ASSOCIATION_LIST ::=
3741       --     RECORD_COMPONENT_ASSOCIATION {, RECORD_COMPONENT_ASSOCIATION}
3742       --   | null record
3743
3744       --  There is no explicit node in the tree for a record component
3745       --  association list. Instead the Null_Record_Present flag is set in
3746       --  the parent node for the NULL RECORD case.
3747
3748       ------------------------------------------------------
3749       -- 4.3.1  Record Component Association (also 4.3.3) --
3750       ------------------------------------------------------
3751
3752       --  RECORD_COMPONENT_ASSOCIATION ::=
3753       --    [COMPONENT_CHOICE_LIST =>] EXPRESSION
3754
3755       --  N_Component_Association
3756       --  Sloc points to first selector name
3757       --  Choices (List1)
3758       --  Loop_Actions (List2-Sem)
3759       --  Expression (Node3) (empty if Box_Present)
3760       --  Box_Present (Flag15)
3761       --  Inherited_Discriminant (Flag13)
3762
3763       --  Note: this structure is used for both record component associations
3764       --  and array component associations, since the two cases aren't always
3765       --  separable by the parser. The choices list may represent either a
3766       --  list of selector names in the record aggregate case, or a list of
3767       --  discrete choices in the array aggregate case or an N_Others_Choice
3768       --  node (which appears as a singleton list). Box_Present gives support
3769       --  to Ada 2005 (AI-287).
3770
3771       ----------------------------------
3772       -- 4.3.1  Component Choice List --
3773       ----------------------------------
3774
3775       --  COMPONENT_CHOICE_LIST ::=
3776       --    component_SELECTOR_NAME {| component_SELECTOR_NAME}
3777       --  | others
3778
3779       --  The entries of a component choice list appear in the Choices list of
3780       --  the associated N_Component_Association, as either selector names, or
3781       --  as an N_Others_Choice node.
3782
3783       --------------------------------
3784       -- 4.3.2  Extension Aggregate --
3785       --------------------------------
3786
3787       --  EXTENSION_AGGREGATE ::=
3788       --    (ANCESTOR_PART with RECORD_COMPONENT_ASSOCIATION_LIST)
3789
3790       --  Note: extension aggregates are not permitted in Ada 83 mode
3791
3792       --  N_Extension_Aggregate
3793       --  Sloc points to left parenthesis
3794       --  Ancestor_Part (Node3)
3795       --  Associated_Node (Node4-Sem)
3796       --  Expressions (List1) (set to No_List if none or null record case)
3797       --  Component_Associations (List2) (set to No_List if none)
3798       --  Null_Record_Present (Flag17)
3799       --  Expansion_Delayed (Flag11-Sem)
3800       --  Has_Self_Reference (Flag13-Sem)
3801       --  plus fields for expression
3802
3803       --------------------------
3804       -- 4.3.2  Ancestor Part --
3805       --------------------------
3806
3807       --  ANCESTOR_PART ::= EXPRESSION | SUBTYPE_MARK
3808
3809       ----------------------------
3810       -- 4.3.3  Array Aggregate --
3811       ----------------------------
3812
3813       --  ARRAY_AGGREGATE ::=
3814       --    POSITIONAL_ARRAY_AGGREGATE | NAMED_ARRAY_AGGREGATE
3815
3816       ---------------------------------------
3817       -- 4.3.3  Positional Array Aggregate --
3818       ---------------------------------------
3819
3820       --  POSITIONAL_ARRAY_AGGREGATE ::=
3821       --    (EXPRESSION, EXPRESSION {, EXPRESSION})
3822       --  | (EXPRESSION {, EXPRESSION}, others => EXPRESSION)
3823
3824       --  See Record_Aggregate (4.3.1) for node structure
3825
3826       ----------------------------------
3827       -- 4.3.3  Named Array Aggregate --
3828       ----------------------------------
3829
3830       --  NAMED_ARRAY_AGGREGATE ::=
3831       --  | (ARRAY_COMPONENT_ASSOCIATION {, ARRAY_COMPONENT_ASSOCIATION})
3832
3833       --  See Record_Aggregate (4.3.1) for node structure
3834
3835       ----------------------------------------
3836       -- 4.3.3  Array Component Association --
3837       ----------------------------------------
3838
3839       --  ARRAY_COMPONENT_ASSOCIATION ::=
3840       --    DISCRETE_CHOICE_LIST => EXPRESSION
3841
3842       --  See Record_Component_Association (4.3.1) for node structure
3843
3844       --------------------------------------------------
3845       -- 4.4  Expression/Relation/Term/Factor/Primary --
3846       --------------------------------------------------
3847
3848       --  EXPRESSION ::=
3849       --    RELATION {LOGICAL_OPERATOR RELATION}
3850
3851       --  CHOICE_EXPRESSION ::=
3852       --    CHOICE_RELATION {LOGICAL_OPERATOR CHOICE_RELATION}
3853
3854       --  CHOICE_RELATION ::=
3855       --    SIMPLE_EXPRESSION [RELATIONAL_OPERATOR SIMPLE_EXPRESSION]
3856
3857       --  RELATION ::=
3858       --    SIMPLE_EXPRESSION [not] in MEMBERSHIP_CHOICE_LIST
3859       --  | RAISE_EXPRESSION
3860
3861       --  MEMBERSHIP_CHOICE_LIST ::=
3862       --    MEMBERSHIP_CHOICE {'|' MEMBERSHIP CHOICE}
3863
3864       --  MEMBERSHIP_CHOICE ::=
3865       --    CHOICE_EXPRESSION | RANGE | SUBTYPE_MARK
3866
3867       --  LOGICAL_OPERATOR ::= and | and then | or | or else | xor
3868
3869       --  SIMPLE_EXPRESSION ::=
3870       --    [UNARY_ADDING_OPERATOR] TERM {BINARY_ADDING_OPERATOR TERM}
3871
3872       --  TERM ::= FACTOR {MULTIPLYING_OPERATOR FACTOR}
3873
3874       --  FACTOR ::= PRIMARY [** PRIMARY] | abs PRIMARY | not PRIMARY
3875
3876       --  No nodes are generated for any of these constructs. Instead, the
3877       --  node for the operator appears directly. When we refer to an
3878       --  expression in this description, we mean any of the possible
3879       --  constituent components of an expression (e.g. identifier is
3880       --  an example of an expression).
3881
3882       --  Note: the above syntax is that Ada 2012 syntax which restricts
3883       --  choice relations to simple expressions to avoid ambiguities in
3884       --  some contexts with set membership notation. It has been decided
3885       --  that in retrospect, the Ada 95 change allowing general expressions
3886       --  in this context was a mistake, so we have reverted to the above
3887       --  syntax in Ada 95 and Ada 2005 modes (the restriction to simple
3888       --  expressions was there in Ada 83 from the start).
3889
3890       ------------------
3891       -- 4.4  Primary --
3892       ------------------
3893
3894       --  PRIMARY ::=
3895       --    NUMERIC_LITERAL  | null
3896       --  | STRING_LITERAL   | AGGREGATE
3897       --  | NAME             | QUALIFIED_EXPRESSION
3898       --  | ALLOCATOR        | (EXPRESSION)
3899
3900       --  Usually there is no explicit node in the tree for primary. Instead
3901       --  the constituent (e.g. AGGREGATE) appears directly. There are two
3902       --  exceptions. First, there is an explicit node for a null primary.
3903
3904       --  N_Null
3905       --  Sloc points to NULL
3906       --  plus fields for expression
3907
3908       --  Second, the case of (EXPRESSION) is handled specially. Ada requires
3909       --  that the parser keep track of which subexpressions are enclosed
3910       --  in parentheses, and how many levels of parentheses are used. This
3911       --  information is required for optimization purposes, and also for
3912       --  some semantic checks (e.g. (((1))) in a procedure spec does not
3913       --  conform with ((((1)))) in the body).
3914
3915       --  The parentheses are recorded by keeping a Paren_Count field in every
3916       --  subexpression node (it is actually present in all nodes, but only
3917       --  used in subexpression nodes). This count records the number of
3918       --  levels of parentheses. If the number of levels in the source exceeds
3919       --  the maximum accommodated by this count, then the count is simply left
3920       --  at the maximum value. This means that there are some pathological
3921       --  cases of failure to detect conformance failures (e.g. an expression
3922       --  with 500 levels of parens will conform with one with 501 levels),
3923       --  but we do not need to lose sleep over this.
3924
3925       --  Historical note: in versions of GNAT prior to 1.75, there was a node
3926       --  type N_Parenthesized_Expression used to accurately record unlimited
3927       --  numbers of levels of parentheses. However, it turned out to be a
3928       --  real nuisance to have to take into account the possible presence of
3929       --  this node during semantic analysis, since basically parentheses have
3930       --  zero relevance to semantic analysis.
3931
3932       --  Note: the level of parentheses always present in things like
3933       --  aggregates does not count, only the parentheses in the primary
3934       --  (EXPRESSION) affect the setting of the Paren_Count field.
3935
3936       --  2nd Note: the contents of the Expression field must be ignored (i.e.
3937       --  treated as though it were Empty) if No_Initialization is set True.
3938
3939       --------------------------------------
3940       -- 4.5  Short Circuit Control Forms --
3941       --------------------------------------
3942
3943       --  EXPRESSION ::=
3944       --    RELATION {and then RELATION} | RELATION {or else RELATION}
3945
3946       --  Gigi restriction: For both these control forms, the operand and
3947       --  result types are always Standard.Boolean. The expander inserts the
3948       --  required conversion operations where needed to ensure this is the
3949       --  case.
3950
3951       --  N_And_Then
3952       --  Sloc points to AND of AND THEN
3953       --  Left_Opnd (Node2)
3954       --  Right_Opnd (Node3)
3955       --  Actions (List1-Sem)
3956       --  plus fields for expression
3957
3958       --  N_Or_Else
3959       --  Sloc points to OR of OR ELSE
3960       --  Left_Opnd (Node2)
3961       --  Right_Opnd (Node3)
3962       --  Actions (List1-Sem)
3963       --  plus fields for expression
3964
3965       --  Note: The Actions field is used to hold actions associated with
3966       --  the right hand operand. These have to be treated specially since
3967       --  they are not unconditionally executed. See Insert_Actions for a
3968       --  more detailed description of how these actions are handled.
3969
3970       ---------------------------
3971       -- 4.5  Membership Tests --
3972       ---------------------------
3973
3974       --  RELATION ::=
3975       --    SIMPLE_EXPRESSION [not] in MEMBERSHIP_CHOICE_LIST
3976
3977       --  MEMBERSHIP_CHOICE_LIST ::=
3978       --    MEMBERSHIP_CHOICE {'|' MEMBERSHIP CHOICE}
3979
3980       --  MEMBERSHIP_CHOICE ::=
3981       --    CHOICE_EXPRESSION | RANGE | SUBTYPE_MARK
3982
3983       --  Note: although the grammar above allows only a range or a subtype
3984       --  mark, the parser in fact will accept any simple expression in place
3985       --  of a subtype mark. This means that the semantic analyzer must be able
3986       --  to deal with, and diagnose a simple expression other than a name for
3987       --  the right operand. This simplifies error recovery in the parser.
3988
3989       --  The Alternatives field below is present only if there is more
3990       --  than one Membership_Choice present (which is legitimate only in
3991       --  Ada 2012 mode) in which case Right_Opnd is Empty, and Alternatives
3992       --  contains the list of choices. In the tree passed to the back end,
3993       --  Alternatives is always No_List, and Right_Opnd is set (i.e. the
3994       --  expansion circuitry expands out the complex set membership case
3995       --  using simple membership operations).
3996
3997       --  Should we rename Alternatives here to Membership_Choices ???
3998
3999       --  N_In
4000       --  Sloc points to IN
4001       --  Left_Opnd (Node2)
4002       --  Right_Opnd (Node3)
4003       --  Alternatives (List4) (set to No_List if only one set alternative)
4004       --  No_Minimize_Eliminate (Flag17)
4005       --  plus fields for expression
4006
4007       --  N_Not_In
4008       --  Sloc points to NOT of NOT IN
4009       --  Left_Opnd (Node2)
4010       --  Right_Opnd (Node3)
4011       --  Alternatives (List4) (set to No_List if only one set alternative)
4012       --  No_Minimize_Eliminate (Flag17)
4013       --  plus fields for expression
4014
4015       --------------------
4016       -- 4.5  Operators --
4017       --------------------
4018
4019       --  LOGICAL_OPERATOR             ::=  and | or  | xor
4020
4021       --  RELATIONAL_OPERATOR          ::=  =   | /=  | <   | <= | > | >=
4022
4023       --  BINARY_ADDING_OPERATOR       ::=  +   |  -  | &
4024
4025       --  UNARY_ADDING_OPERATOR        ::=  +   |  -
4026
4027       --  MULTIPLYING_OPERATOR         ::=  *   |  /  | mod | rem
4028
4029       --  HIGHEST_PRECEDENCE_OPERATOR  ::=  **  | abs | not
4030
4031       --  Sprint syntax if Treat_Fixed_As_Integer is set:
4032
4033       --     x #* y
4034       --     x #/ y
4035       --     x #mod y
4036       --     x #rem y
4037
4038       --  Gigi restriction: For * / mod rem with fixed-point operands, Gigi
4039       --  will only be given nodes with the Treat_Fixed_As_Integer flag set.
4040       --  All handling of smalls for multiplication and division is handled
4041       --  by the front end (mod and rem result only from expansion). Gigi
4042       --  thus never needs to worry about small values (for other operators
4043       --  operating on fixed-point, e.g. addition, the small value does not
4044       --  have any semantic effect anyway, these are always integer operations.
4045
4046       --  Gigi restriction: For all operators taking Boolean operands, the
4047       --  type is always Standard.Boolean. The expander inserts the required
4048       --  conversion operations where needed to ensure this is the case.
4049
4050       --  N_Op_And
4051       --  Sloc points to AND
4052       --  Do_Length_Check (Flag4-Sem)
4053       --  plus fields for binary operator
4054       --  plus fields for expression
4055
4056       --  N_Op_Or
4057       --  Sloc points to OR
4058       --  Do_Length_Check (Flag4-Sem)
4059       --  plus fields for binary operator
4060       --  plus fields for expression
4061
4062       --  N_Op_Xor
4063       --  Sloc points to XOR
4064       --  Do_Length_Check (Flag4-Sem)
4065       --  plus fields for binary operator
4066       --  plus fields for expression
4067
4068       --  N_Op_Eq
4069       --  Sloc points to =
4070       --  plus fields for binary operator
4071       --  plus fields for expression
4072
4073       --  N_Op_Ne
4074       --  Sloc points to /=
4075       --  plus fields for binary operator
4076       --  plus fields for expression
4077
4078       --  N_Op_Lt
4079       --  Sloc points to <
4080       --  plus fields for binary operator
4081       --  plus fields for expression
4082
4083       --  N_Op_Le
4084       --  Sloc points to <=
4085       --  plus fields for binary operator
4086       --  plus fields for expression
4087
4088       --  N_Op_Gt
4089       --  Sloc points to >
4090       --  plus fields for binary operator
4091       --  plus fields for expression
4092
4093       --  N_Op_Ge
4094       --  Sloc points to >=
4095       --  plus fields for binary operator
4096       --  plus fields for expression
4097
4098       --  N_Op_Add
4099       --  Sloc points to + (binary)
4100       --  plus fields for binary operator
4101       --  plus fields for expression
4102
4103       --  N_Op_Subtract
4104       --  Sloc points to - (binary)
4105       --  plus fields for binary operator
4106       --  plus fields for expression
4107
4108       --  N_Op_Concat
4109       --  Sloc points to &
4110       --  Is_Component_Left_Opnd (Flag13-Sem)
4111       --  Is_Component_Right_Opnd (Flag14-Sem)
4112       --  plus fields for binary operator
4113       --  plus fields for expression
4114
4115       --  N_Op_Multiply
4116       --  Sloc points to *
4117       --  Treat_Fixed_As_Integer (Flag14-Sem)
4118       --  Rounded_Result (Flag18-Sem)
4119       --  plus fields for binary operator
4120       --  plus fields for expression
4121
4122       --  N_Op_Divide
4123       --  Sloc points to /
4124       --  Treat_Fixed_As_Integer (Flag14-Sem)
4125       --  Do_Division_Check (Flag13-Sem)
4126       --  Rounded_Result (Flag18-Sem)
4127       --  plus fields for binary operator
4128       --  plus fields for expression
4129
4130       --  N_Op_Mod
4131       --  Sloc points to MOD
4132       --  Treat_Fixed_As_Integer (Flag14-Sem)
4133       --  Do_Division_Check (Flag13-Sem)
4134       --  plus fields for binary operator
4135       --  plus fields for expression
4136
4137       --  N_Op_Rem
4138       --  Sloc points to REM
4139       --  Treat_Fixed_As_Integer (Flag14-Sem)
4140       --  Do_Division_Check (Flag13-Sem)
4141       --  plus fields for binary operator
4142       --  plus fields for expression
4143
4144       --  N_Op_Expon
4145       --  Is_Power_Of_2_For_Shift (Flag13-Sem)
4146       --  Sloc points to **
4147       --  plus fields for binary operator
4148       --  plus fields for expression
4149
4150       --  N_Op_Plus
4151       --  Sloc points to + (unary)
4152       --  plus fields for unary operator
4153       --  plus fields for expression
4154
4155       --  N_Op_Minus
4156       --  Sloc points to - (unary)
4157       --  plus fields for unary operator
4158       --  plus fields for expression
4159
4160       --  N_Op_Abs
4161       --  Sloc points to ABS
4162       --  plus fields for unary operator
4163       --  plus fields for expression
4164
4165       --  N_Op_Not
4166       --  Sloc points to NOT
4167       --  plus fields for unary operator
4168       --  plus fields for expression
4169
4170       --  See also shift operators in section B.2
4171
4172       --  Note on fixed-point operations passed to Gigi: For adding operators,
4173       --  the semantics is to treat these simply as integer operations, with
4174       --  the small values being ignored (the bounds are already stored in
4175       --  units of small, so that constraint checking works as usual). For the
4176       --  case of multiply/divide/rem/mod operations, Gigi will only see fixed
4177       --  point operands if the Treat_Fixed_As_Integer flag is set and will
4178       --  thus treat these nodes in identical manner, ignoring small values.
4179
4180       --  Note on overflow handling: When the overflow checking mode is set to
4181       --  MINIMIZED or ELIMINATED, nodes for signed arithmetic operations may
4182       --  be modified to use a larger type for the operands and result. In
4183       --  the case where the computed range exceeds that of Long_Long_Integer,
4184       --  and we are running in ELIMINATED mode, the operator node will be
4185       --  changed to be a call to the appropriate routine in System.Bignums.
4186
4187       --  Note: In Modify_Tree_For_C mode, we do not generate an N_Op_Mod node
4188       --  for signed integer types (since there is no equivalent operator in
4189       --  C). Instead we rewrite such an operation in terms of REM (which is
4190       --  % in C) and other C-available operators.
4191
4192       ------------------------------------
4193       -- 4.5.7  Conditional Expressions --
4194       ------------------------------------
4195
4196       --  CONDITIONAL_EXPRESSION ::= IF_EXPRESSION | CASE_EXPRESSION
4197
4198       --------------------------
4199       -- 4.5.7  If Expression --
4200       ----------------------------
4201
4202       --  IF_EXPRESSION ::=
4203       --    if CONDITION then DEPENDENT_EXPRESSION
4204       --                {elsif CONDITION then DEPENDENT_EXPRESSION}
4205       --                [else DEPENDENT_EXPRESSION]
4206
4207       --  DEPENDENT_EXPRESSION ::= EXPRESSION
4208
4209       --  Note: if we have (IF x1 THEN x2 ELSIF x3 THEN x4 ELSE x5) then it
4210       --  is represented as (IF x1 THEN x2 ELSE (IF x3 THEN x4 ELSE x5)) and
4211       --  the Is_Elsif flag is set on the inner if expression.
4212
4213       --  N_If_Expression
4214       --  Sloc points to IF or ELSIF keyword
4215       --  Expressions (List1)
4216       --  Then_Actions (List2-Sem)
4217       --  Else_Actions (List3-Sem)
4218       --  Is_Elsif (Flag13) (set if comes from ELSIF)
4219       --  Do_Overflow_Check (Flag17-Sem)
4220       --  plus fields for expression
4221
4222       --  Expressions here is a three-element list, whose first element is the
4223       --  condition, the second element is the dependent expression after THEN
4224       --  and the third element is the dependent expression after the ELSE
4225       --  (explicitly set to True if missing).
4226
4227       --  Note: the Then_Actions and Else_Actions fields are always set to
4228       --  No_List in the tree passed to Gigi. These fields are used only
4229       --  for temporary processing purposes in the expander.
4230
4231       ----------------------------
4232       -- 4.5.7  Case Expression --
4233       ----------------------------
4234
4235       --  CASE_EXPRESSION ::=
4236       --    case SELECTING_EXPRESSION is
4237       --      CASE_EXPRESSION_ALTERNATIVE
4238       --      {CASE_EXPRESSION_ALTERNATIVE}
4239
4240       --  Note that the Alternatives cannot include pragmas (this contrasts
4241       --  with the situation of case statements where pragmas are allowed).
4242
4243       --  N_Case_Expression
4244       --  Sloc points to CASE
4245       --  Expression (Node3) (the selecting expression)
4246       --  Alternatives (List4) (the case expression alternatives)
4247       --  Do_Overflow_Check (Flag17-Sem)
4248
4249       ----------------------------------------
4250       -- 4.5.7  Case Expression Alternative --
4251       ----------------------------------------
4252
4253       --  CASE_EXPRESSION_ALTERNATIVE ::=
4254       --    when DISCRETE_CHOICE_LIST =>
4255       --      DEPENDENT_EXPRESSION
4256
4257       --  N_Case_Expression_Alternative
4258       --  Sloc points to WHEN
4259       --  Actions (List1)
4260       --  Discrete_Choices (List4)
4261       --  Expression (Node3)
4262       --  Has_SP_Choice (Flag15-Sem)
4263
4264       --  Note: The Actions field temporarily holds any actions associated with
4265       --  evaluation of the Expression. During expansion of the case expression
4266       --  these actions are wrapped into an N_Expressions_With_Actions node
4267       --  replacing the original expression.
4268
4269       --  Note: this node never appears in the tree passed to the back end,
4270       --  since the expander converts case expressions into case statements.
4271
4272       ---------------------------------
4273       -- 4.5.9 Quantified Expression --
4274       ---------------------------------
4275
4276       --  QUANTIFIED_EXPRESSION ::=
4277       --    for QUANTIFIER LOOP_PARAMETER_SPECIFICATION => PREDICATE
4278       --  | for QUANTIFIER ITERATOR_SPECIFICATION => PREDICATE
4279       --
4280       --  QUANTIFIER ::= all | some
4281
4282       --  At most one of (Iterator_Specification, Loop_Parameter_Specification)
4283       --  is present at a time, in which case the other one is empty.
4284
4285       --  N_Quantified_Expression
4286       --  Sloc points to FOR
4287       --  Iterator_Specification (Node2)
4288       --  Loop_Parameter_Specification (Node4)
4289       --  Condition (Node1)
4290       --  All_Present (Flag15)
4291
4292       --------------------------
4293       -- 4.6  Type Conversion --
4294       --------------------------
4295
4296       --  TYPE_CONVERSION ::=
4297       --    SUBTYPE_MARK (EXPRESSION) | SUBTYPE_MARK (NAME)
4298
4299       --  In the (NAME) case, the name is stored as the expression
4300
4301       --  Note: the parser never generates a type conversion node, since it
4302       --  looks like an indexed component which is generated by preference.
4303       --  The semantic pass must correct this misidentification.
4304
4305       --  Gigi handles conversions that involve no change in the root type,
4306       --  and also all conversions from integer to floating-point types.
4307       --  Conversions from floating-point to integer are only handled in
4308       --  the case where Float_Truncate flag set. Other conversions from
4309       --  floating-point to integer (involving rounding) and all conversions
4310       --  involving fixed-point types are handled by the expander.
4311
4312       --  Sprint syntax if Float_Truncate set: X^(Y)
4313       --  Sprint syntax if Conversion_OK set X?(Y)
4314       --  Sprint syntax if both flags set X?^(Y)
4315
4316       --  Note: If either the operand or result type is fixed-point, Gigi will
4317       --  only see a type conversion node with Conversion_OK set. The front end
4318       --  takes care of all handling of small's for fixed-point conversions.
4319
4320       --  N_Type_Conversion
4321       --  Sloc points to first token of subtype mark
4322       --  Subtype_Mark (Node4)
4323       --  Expression (Node3)
4324       --  Do_Discriminant_Check (Flag1-Sem)
4325       --  Do_Length_Check (Flag4-Sem)
4326       --  Float_Truncate (Flag11-Sem)
4327       --  Do_Tag_Check (Flag13-Sem)
4328       --  Conversion_OK (Flag14-Sem)
4329       --  Do_Overflow_Check (Flag17-Sem)
4330       --  Rounded_Result (Flag18-Sem)
4331       --  plus fields for expression
4332
4333       --  Note: if a range check is required, then the Do_Range_Check flag
4334       --  is set in the Expression with the check being done against the
4335       --  target type range (after the base type conversion, if any).
4336
4337       -------------------------------
4338       -- 4.7  Qualified Expression --
4339       -------------------------------
4340
4341       --  QUALIFIED_EXPRESSION ::=
4342       --    SUBTYPE_MARK ' (EXPRESSION) | SUBTYPE_MARK ' AGGREGATE
4343
4344       --  Note: the parentheses in the (EXPRESSION) case are deemed to enclose
4345       --  the expression, so the Expression field of this node always points
4346       --  to a parenthesized expression in this case (i.e. Paren_Count will
4347       --  always be non-zero for the referenced expression if it is not an
4348       --  aggregate).
4349
4350       --  N_Qualified_Expression
4351       --  Sloc points to apostrophe
4352       --  Subtype_Mark (Node4)
4353       --  Expression (Node3) expression or aggregate
4354       --  plus fields for expression
4355
4356       --------------------
4357       -- 4.8  Allocator --
4358       --------------------
4359
4360       --  ALLOCATOR ::=
4361       --      new [SUBPOOL_SPECIFICATION] SUBTYPE_INDICATION
4362       --    | new [SUBPOOL_SPECIFICATION] QUALIFIED_EXPRESSION
4363       --
4364       --  SUBPOOL_SPECIFICATION ::= (subpool_handle_NAME)
4365
4366       --  Sprint syntax (when storage pool present)
4367       --    new xxx (storage_pool = pool)
4368       --  or
4369       --    new (subpool) xxx (storage_pool = pool)
4370
4371       --  N_Allocator
4372       --  Sloc points to NEW
4373       --  Expression (Node3) subtype indication or qualified expression
4374       --  Subpool_Handle_Name (Node4) (set to Empty if not present)
4375       --  Storage_Pool (Node1-Sem)
4376       --  Procedure_To_Call (Node2-Sem)
4377       --  Null_Exclusion_Present (Flag11)
4378       --  No_Initialization (Flag13-Sem)
4379       --  Is_Static_Coextension (Flag14-Sem)
4380       --  Do_Storage_Check (Flag17-Sem)
4381       --  Is_Dynamic_Coextension (Flag18-Sem)
4382       --  plus fields for expression
4383
4384       --  Note: like all nodes, the N_Allocator has the Comes_From_Source flag.
4385       --  This flag has a special function in conjunction with the restriction
4386       --  No_Implicit_Heap_Allocations, which will be triggered if this flag
4387       --  is not set. This means that if a source allocator is replaced with
4388       --  a constructed allocator, the Comes_From_Source flag should be copied
4389       --  to the newly created allocator.
4390
4391       ---------------------------------
4392       -- 5.1  Sequence Of Statements --
4393       ---------------------------------
4394
4395       --  SEQUENCE_OF_STATEMENTS ::= STATEMENT {STATEMENT}
4396
4397       --  Note: Although the parser will not accept a declaration as a
4398       --  statement, the semantic analyzer may insert declarations (e.g.
4399       --  declarations of implicit types needed for execution of other
4400       --  statements) into a sequence of statements, so the code generator
4401       --  should be prepared to accept a declaration where a statement is
4402       --  expected. Note also that pragmas can appear as statements.
4403
4404       --------------------
4405       -- 5.1  Statement --
4406       --------------------
4407
4408       --  STATEMENT ::=
4409       --    {LABEL} SIMPLE_STATEMENT | {LABEL} COMPOUND_STATEMENT
4410
4411       --  There is no explicit node in the tree for a statement. Instead, the
4412       --  individual statement appears directly. Labels are treated  as a
4413       --  kind of statement, i.e. they are linked into a statement list at
4414       --  the point they appear, so the labeled statement appears following
4415       --  the label or labels in the statement list.
4416
4417       ---------------------------
4418       -- 5.1  Simple Statement --
4419       ---------------------------
4420
4421       --  SIMPLE_STATEMENT ::=        NULL_STATEMENT
4422       --  | ASSIGNMENT_STATEMENT    | EXIT_STATEMENT
4423       --  | GOTO_STATEMENT          | PROCEDURE_CALL_STATEMENT
4424       --  | SIMPLE_RETURN_STATEMENT | ENTRY_CALL_STATEMENT
4425       --  | REQUEUE_STATEMENT       | DELAY_STATEMENT
4426       --  | ABORT_STATEMENT         | RAISE_STATEMENT
4427       --  | CODE_STATEMENT
4428
4429       -----------------------------
4430       -- 5.1  Compound Statement --
4431       -----------------------------
4432
4433       --  COMPOUND_STATEMENT ::=
4434       --    IF_STATEMENT              | CASE_STATEMENT
4435       --  | LOOP_STATEMENT            | BLOCK_STATEMENT
4436       --  | EXTENDED_RETURN_STATEMENT
4437       --  | ACCEPT_STATEMENT          | SELECT_STATEMENT
4438
4439       -------------------------
4440       -- 5.1  Null Statement --
4441       -------------------------
4442
4443       --  NULL_STATEMENT ::= null;
4444
4445       --  N_Null_Statement
4446       --  Sloc points to NULL
4447
4448       ----------------
4449       -- 5.1  Label --
4450       ----------------
4451
4452       --  LABEL ::= <<label_STATEMENT_IDENTIFIER>>
4453
4454       --  Note that the occurrence of a label is not a defining identifier,
4455       --  but rather a referencing occurrence. The defining occurrence is
4456       --  in the implicit label declaration which occurs in the innermost
4457       --  enclosing block.
4458
4459       --  N_Label
4460       --  Sloc points to <<
4461       --  Identifier (Node1) direct name of statement identifier
4462       --  Exception_Junk (Flag8-Sem)
4463
4464       --  Note: Before Ada 2012, a label is always followed by a statement,
4465       --  and this is true in the tree even in Ada 2012 mode (the parser
4466       --  inserts a null statement marked with Comes_From_Source False).
4467
4468       -------------------------------
4469       -- 5.1  Statement Identifier --
4470       -------------------------------
4471
4472       --  STATEMENT_IDENTIFIER ::= DIRECT_NAME
4473
4474       --  The IDENTIFIER of a STATEMENT_IDENTIFIER shall be an identifier
4475       --  (not an OPERATOR_SYMBOL)
4476
4477       -------------------------------
4478       -- 5.2  Assignment Statement --
4479       -------------------------------
4480
4481       --  ASSIGNMENT_STATEMENT ::=
4482       --    variable_NAME := EXPRESSION;
4483
4484       --  N_Assignment_Statement
4485       --  Sloc points to :=
4486       --  Name (Node2)
4487       --  Expression (Node3)
4488       --  Do_Discriminant_Check (Flag1-Sem)
4489       --  Do_Tag_Check (Flag13-Sem)
4490       --  Do_Length_Check (Flag4-Sem)
4491       --  Forwards_OK (Flag5-Sem)
4492       --  Backwards_OK (Flag6-Sem)
4493       --  No_Ctrl_Actions (Flag7-Sem)
4494       --  Componentwise_Assignment (Flag14-Sem)
4495       --  Suppress_Assignment_Checks (Flag18-Sem)
4496
4497       --  Note: if a range check is required, then the Do_Range_Check flag
4498       --  is set in the Expression (right hand side), with the check being
4499       --  done against the type of the Name (left hand side).
4500
4501       --  Note: the back end places some restrictions on the form of the
4502       --  Expression field. If the object being assigned to is Atomic, then
4503       --  the Expression may not have the form of an aggregate (since this
4504       --  might cause the back end to generate separate assignments). In this
4505       --  case the front end must generate an extra temporary and initialize
4506       --  this temporary as required (the temporary itself is not atomic).
4507
4508       -----------------------
4509       -- 5.3  If Statement --
4510       -----------------------
4511
4512       --  IF_STATEMENT ::=
4513       --    if CONDITION then
4514       --      SEQUENCE_OF_STATEMENTS
4515       --    {elsif CONDITION then
4516       --      SEQUENCE_OF_STATEMENTS}
4517       --    [else
4518       --      SEQUENCE_OF_STATEMENTS]
4519       --    end if;
4520
4521       --  Gigi restriction: This expander ensures that the type of the
4522       --  Condition fields is always Standard.Boolean, even if the type
4523       --  in the source is some non-standard boolean type.
4524
4525       --  N_If_Statement
4526       --  Sloc points to IF
4527       --  Condition (Node1)
4528       --  Then_Statements (List2)
4529       --  Elsif_Parts (List3) (set to No_List if none present)
4530       --  Else_Statements (List4) (set to No_List if no else part present)
4531       --  End_Span (Uint5) (set to Uint_0 if expander generated)
4532
4533       --  N_Elsif_Part
4534       --  Sloc points to ELSIF
4535       --  Condition (Node1)
4536       --  Then_Statements (List2)
4537       --  Condition_Actions (List3-Sem)
4538
4539       --------------------
4540       -- 5.3  Condition --
4541       --------------------
4542
4543       --  CONDITION ::= boolean_EXPRESSION
4544
4545       -------------------------
4546       -- 5.4  Case Statement --
4547       -------------------------
4548
4549       --  CASE_STATEMENT ::=
4550       --    case EXPRESSION is
4551       --      CASE_STATEMENT_ALTERNATIVE
4552       --      {CASE_STATEMENT_ALTERNATIVE}
4553       --    end case;
4554
4555       --  Note: the Alternatives can contain pragmas. These only occur at
4556       --  the start of the list, since any pragmas occurring after the first
4557       --  alternative are absorbed into the corresponding statement sequence.
4558
4559       --  N_Case_Statement
4560       --  Sloc points to CASE
4561       --  Expression (Node3)
4562       --  Alternatives (List4)
4563       --  End_Span (Uint5) (set to Uint_0 if expander generated)
4564
4565       --  Note: Before Ada 2012, a pragma in a statement sequence is always
4566       --  followed by a statement, and this is true in the tree even in Ada
4567       --  2012 mode (the parser inserts a null statement marked with the flag
4568       --  Comes_From_Source False).
4569
4570       -------------------------------------
4571       -- 5.4  Case Statement Alternative --
4572       -------------------------------------
4573
4574       --  CASE_STATEMENT_ALTERNATIVE ::=
4575       --    when DISCRETE_CHOICE_LIST =>
4576       --      SEQUENCE_OF_STATEMENTS
4577
4578       --  N_Case_Statement_Alternative
4579       --  Sloc points to WHEN
4580       --  Discrete_Choices (List4)
4581       --  Statements (List3)
4582       --  Has_SP_Choice (Flag15-Sem)
4583
4584       --  Note: in the list of Discrete_Choices, the tree passed to the back
4585       --  end does not have choice entries corresponding to names of statically
4586       --  predicated subtypes. Such entries are always expanded out to the list
4587       --  of equivalent values or ranges. The ASIS tree generated in -gnatct
4588       --  mode does not have this expansion, and has the original choices.
4589
4590       -------------------------
4591       -- 5.5  Loop Statement --
4592       -------------------------
4593
4594       --  LOOP_STATEMENT ::=
4595       --    [loop_STATEMENT_IDENTIFIER :]
4596       --      [ITERATION_SCHEME] loop
4597       --        SEQUENCE_OF_STATEMENTS
4598       --      end loop [loop_IDENTIFIER];
4599
4600       --  Note: The occurrence of a loop label is not a defining identifier
4601       --  but rather a referencing occurrence. The defining occurrence is in
4602       --  the implicit label declaration which occurs in the innermost
4603       --  enclosing block.
4604
4605       --  Note: there is always a loop statement identifier present in the
4606       --  tree, even if none was given in the source. In the case where no loop
4607       --  identifier is given in the source, the parser creates a name of the
4608       --  form _Loop_n, where n is a decimal integer (the two underlines ensure
4609       --  that the loop names created in this manner do not conflict with any
4610       --  user defined identifiers), and the flag Has_Created_Identifier is set
4611       --  to True. The only exception to the rule that all loop statement nodes
4612       --  have identifiers occurs for loops constructed by the expander, and
4613       --  the semantic analyzer will create and supply dummy loop identifiers
4614       --  in these cases.
4615
4616       --  N_Loop_Statement
4617       --  Sloc points to LOOP
4618       --  Identifier (Node1) loop identifier (set to Empty if no identifier)
4619       --  Iteration_Scheme (Node2) (set to Empty if no iteration scheme)
4620       --  Statements (List3)
4621       --  End_Label (Node4)
4622       --  Has_Created_Identifier (Flag15)
4623       --  Is_Null_Loop (Flag16)
4624       --  Suppress_Loop_Warnings (Flag17)
4625
4626       --  Note: the parser fills in the Identifier field if there is an
4627       --  explicit loop identifier. Otherwise the parser leaves this field
4628       --  set to Empty, and then the semantic processing for a loop statement
4629       --  creates an identifier, setting the Has_Created_Identifier flag to
4630       --  True. So after semantic analysis, the Identifier is always set,
4631       --  referencing an identifier whose entity has an Ekind of E_Loop.
4632
4633       ---------------------------
4634       -- 5.5  Iteration Scheme --
4635       ---------------------------
4636
4637       --  ITERATION_SCHEME ::=
4638       --    while CONDITION
4639       --  | for LOOP_PARAMETER_SPECIFICATION
4640       --  | for ITERATOR_SPECIFICATION
4641
4642       --  At most one of (Iterator_Specification, Loop_Parameter_Specification)
4643       --  is present at a time, in which case the other one is empty. Both are
4644       --  empty in the case of a WHILE loop.
4645
4646       --  Gigi restriction: The expander ensures that the type of the Condition
4647       --  field is always Standard.Boolean, even if the type in the source is
4648       --  some non-standard boolean type.
4649
4650       --  N_Iteration_Scheme
4651       --  Sloc points to WHILE or FOR
4652       --  Condition (Node1) (set to Empty if FOR case)
4653       --  Condition_Actions (List3-Sem)
4654       --  Iterator_Specification (Node2) (set to Empty if WHILE case)
4655       --  Loop_Parameter_Specification (Node4) (set to Empty if WHILE case)
4656
4657       ---------------------------------------
4658       -- 5.5  Loop Parameter Specification --
4659       ---------------------------------------
4660
4661       --  LOOP_PARAMETER_SPECIFICATION ::=
4662       --    DEFINING_IDENTIFIER in [reverse] DISCRETE_SUBTYPE_DEFINITION
4663
4664       --  N_Loop_Parameter_Specification
4665       --  Sloc points to first identifier
4666       --  Defining_Identifier (Node1)
4667       --  Reverse_Present (Flag15)
4668       --  Discrete_Subtype_Definition (Node4)
4669
4670       -----------------------------------
4671       -- 5.5.1  Iterator Specification --
4672       -----------------------------------
4673
4674       --  ITERATOR_SPECIFICATION ::=
4675       --    DEFINING_IDENTIFIER in [reverse] NAME
4676       --  | DEFINING_IDENTIFIER [: SUBTYPE_INDICATION] of [reverse] NAME
4677
4678       --  N_Iterator_Specification
4679       --  Sloc points to defining identifier
4680       --  Defining_Identifier (Node1)
4681       --  Name (Node2)
4682       --  Reverse_Present (Flag15)
4683       --  Of_Present (Flag16)
4684       --  Subtype_Indication (Node5)
4685
4686       --  Note: The Of_Present flag distinguishes the two forms
4687
4688       --------------------------
4689       -- 5.6  Block Statement --
4690       --------------------------
4691
4692       --  BLOCK_STATEMENT ::=
4693       --    [block_STATEMENT_IDENTIFIER:]
4694       --      [declare
4695       --        DECLARATIVE_PART]
4696       --      begin
4697       --        HANDLED_SEQUENCE_OF_STATEMENTS
4698       --      end [block_IDENTIFIER];
4699
4700       --  Note that the occurrence of a block identifier is not a defining
4701       --  identifier, but rather a referencing occurrence. The defining
4702       --  occurrence is an E_Block entity declared by the implicit label
4703       --  declaration which occurs in the innermost enclosing block statement
4704       --  or body; the block identifier denotes that E_Block.
4705
4706       --  For block statements that come from source code, there is always a
4707       --  block statement identifier present in the tree, denoting an E_Block.
4708       --  In the case where no block identifier is given in the source,
4709       --  the parser creates a name of the form B_n, where n is a decimal
4710       --  integer, and the flag Has_Created_Identifier is set to True. Blocks
4711       --  constructed by the expander usually have no identifier, and no
4712       --  corresponding entity.
4713
4714       --  Note: the block statement created for an extended return statement
4715       --  has an entity, and this entity is an E_Return_Statement, rather than
4716       --  the usual E_Block.
4717
4718       --  Note: Exception_Junk is set for the wrapping blocks created during
4719       --  local raise optimization (Exp_Ch11.Expand_Local_Exception_Handlers).
4720
4721       --  Note: from a control flow viewpoint, a block statement defines an
4722       --  extended basic block, i.e. the entry of the block dominates every
4723       --  statement in the sequence. When generating new statements with
4724       --  exception handlers in the expander at the end of a sequence that
4725       --  comes from source code, it can be necessary to wrap them all in a
4726       --  block statement in order to expose the implicit control flow to
4727       --  gigi and thus prevent it from issuing bogus control flow warnings.
4728
4729       --  N_Block_Statement
4730       --  Sloc points to DECLARE or BEGIN
4731       --  Identifier (Node1) block direct name (set to Empty if not present)
4732       --  Declarations (List2) (set to No_List if no DECLARE part)
4733       --  Handled_Statement_Sequence (Node4)
4734       --  Is_Task_Master (Flag5-Sem)
4735       --  Activation_Chain_Entity (Node3-Sem)
4736       --  Has_Created_Identifier (Flag15)
4737       --  Is_Task_Allocation_Block (Flag6)
4738       --  Is_Asynchronous_Call_Block (Flag7)
4739       --  Exception_Junk (Flag8-Sem)
4740       --  Is_Finalization_Wrapper (Flag9-Sem)
4741
4742       -------------------------
4743       -- 5.7  Exit Statement --
4744       -------------------------
4745
4746       --  EXIT_STATEMENT ::= exit [loop_NAME] [when CONDITION];
4747
4748       --  Gigi restriction: The expander ensures that the type of the Condition
4749       --  field is always Standard.Boolean, even if the type in the source is
4750       --  some non-standard boolean type.
4751
4752       --  N_Exit_Statement
4753       --  Sloc points to EXIT
4754       --  Name (Node2) (set to Empty if no loop name present)
4755       --  Condition (Node1) (set to Empty if no WHEN part present)
4756       --  Next_Exit_Statement (Node3-Sem): Next exit on chain
4757
4758       -------------------------
4759       -- 5.9  Goto Statement --
4760       -------------------------
4761
4762       --  GOTO_STATEMENT ::= goto label_NAME;
4763
4764       --  N_Goto_Statement
4765       --  Sloc points to GOTO
4766       --  Name (Node2)
4767       --  Exception_Junk (Flag8-Sem)
4768
4769       ---------------------------------
4770       -- 6.1  Subprogram Declaration --
4771       ---------------------------------
4772
4773       --  SUBPROGRAM_DECLARATION ::=
4774       --    SUBPROGRAM_SPECIFICATION
4775       --      [ASPECT_SPECIFICATIONS];
4776
4777       --  N_Subprogram_Declaration
4778       --  Sloc points to FUNCTION or PROCEDURE
4779       --  Specification (Node1)
4780       --  Body_To_Inline (Node3-Sem)
4781       --  Corresponding_Body (Node5-Sem)
4782       --  Parent_Spec (Node4-Sem)
4783
4784       ------------------------------------------
4785       -- 6.1  Abstract Subprogram Declaration --
4786       ------------------------------------------
4787
4788       --  ABSTRACT_SUBPROGRAM_DECLARATION ::=
4789       --    SUBPROGRAM_SPECIFICATION is abstract
4790       --      [ASPECT_SPECIFICATIONS];
4791
4792       --  N_Abstract_Subprogram_Declaration
4793       --  Sloc points to ABSTRACT
4794       --  Specification (Node1)
4795
4796       -----------------------------------
4797       -- 6.1  Subprogram Specification --
4798       -----------------------------------
4799
4800       --  SUBPROGRAM_SPECIFICATION ::=
4801       --    [[not] overriding]
4802       --    procedure DEFINING_PROGRAM_UNIT_NAME PARAMETER_PROFILE
4803       --  | [[not] overriding]
4804       --    function DEFINING_DESIGNATOR PARAMETER_AND_RESULT_PROFILE
4805
4806       --  Note: there are no separate nodes for the profiles, instead the
4807       --  information appears directly in the following nodes.
4808
4809       --  N_Function_Specification
4810       --  Sloc points to FUNCTION
4811       --  Defining_Unit_Name (Node1) (the designator)
4812       --  Elaboration_Boolean (Node2-Sem)
4813       --  Parameter_Specifications (List3) (set to No_List if no formal part)
4814       --  Null_Exclusion_Present (Flag11)
4815       --  Result_Definition (Node4) for result subtype
4816       --  Generic_Parent (Node5-Sem)
4817       --  Must_Override (Flag14) set if overriding indicator present
4818       --  Must_Not_Override (Flag15) set if not_overriding indicator present
4819
4820       --  N_Procedure_Specification
4821       --  Sloc points to PROCEDURE
4822       --  Defining_Unit_Name (Node1)
4823       --  Elaboration_Boolean (Node2-Sem)
4824       --  Parameter_Specifications (List3) (set to No_List if no formal part)
4825       --  Generic_Parent (Node5-Sem)
4826       --  Null_Present (Flag13) set for null procedure case (Ada 2005 feature)
4827       --  Must_Override (Flag14) set if overriding indicator present
4828       --  Must_Not_Override (Flag15) set if not_overriding indicator present
4829
4830       --  Note: overriding indicator is an Ada 2005 feature
4831
4832       ---------------------
4833       -- 6.1  Designator --
4834       ---------------------
4835
4836       --  DESIGNATOR ::=
4837       --    [PARENT_UNIT_NAME .] IDENTIFIER | OPERATOR_SYMBOL
4838
4839       --  Designators that are simply identifiers or operator symbols appear
4840       --  directly in the tree in this form. The following node is used only
4841       --  in the case where the designator has a parent unit name component.
4842
4843       --  N_Designator
4844       --  Sloc points to period
4845       --  Name (Node2) holds the parent unit name
4846       --  Identifier (Node1)
4847
4848       --  Note: Name is always non-Empty, since this node is only used for the
4849       --  case where a parent library unit package name is present.
4850
4851       --  Note that the identifier can also be an operator symbol here
4852
4853       ------------------------------
4854       -- 6.1  Defining Designator --
4855       ------------------------------
4856
4857       --  DEFINING_DESIGNATOR ::=
4858       --    DEFINING_PROGRAM_UNIT_NAME | DEFINING_OPERATOR_SYMBOL
4859
4860       -------------------------------------
4861       -- 6.1  Defining Program Unit Name --
4862       -------------------------------------
4863
4864       --  DEFINING_PROGRAM_UNIT_NAME ::=
4865       --    [PARENT_UNIT_NAME .] DEFINING_IDENTIFIER
4866
4867       --  The parent unit name is present only in the case of a child unit name
4868       --  (permissible only for Ada 95 for a library level unit, i.e. a unit
4869       --  at scope level one). If no such name is present, the defining program
4870       --  unit name is represented simply as the defining identifier. In the
4871       --  child unit case, the following node is used to represent the child
4872       --  unit name.
4873
4874       --  N_Defining_Program_Unit_Name
4875       --  Sloc points to period
4876       --  Name (Node2) holds the parent unit name
4877       --  Defining_Identifier (Node1)
4878
4879       --  Note: Name is always non-Empty, since this node is only used for the
4880       --  case where a parent unit name is present.
4881
4882       --------------------------
4883       -- 6.1  Operator Symbol --
4884       --------------------------
4885
4886       --  OPERATOR_SYMBOL ::= STRING_LITERAL
4887
4888       --  Note: the fields of the N_Operator_Symbol node are laid out to match
4889       --  the corresponding fields of an N_Character_Literal node. This allows
4890       --  easy conversion of the operator symbol node into a character literal
4891       --  node in the case where a string constant of the form of an operator
4892       --  symbol is scanned out as such, but turns out semantically to be a
4893       --  string literal that is not an operator. For details see Sinfo.CN.
4894       --  Change_Operator_Symbol_To_String_Literal.
4895
4896       --  N_Operator_Symbol
4897       --  Sloc points to literal
4898       --  Chars (Name1) contains the Name_Id for the operator symbol
4899       --  Strval (Str3) Id of string value. This is used if the operator
4900       --   symbol turns out to be a normal string after all.
4901       --  Entity (Node4-Sem)
4902       --  Associated_Node (Node4-Sem)
4903       --  Has_Private_View (Flag11-Sem) set in generic units.
4904       --  Etype (Node5-Sem)
4905
4906       --  Note: the Strval field may be set to No_String for generated
4907       --  operator symbols that are known not to be string literals
4908       --  semantically.
4909
4910       -----------------------------------
4911       -- 6.1  Defining Operator Symbol --
4912       -----------------------------------
4913
4914       --  DEFINING_OPERATOR_SYMBOL ::= OPERATOR_SYMBOL
4915
4916       --  A defining operator symbol is an entity, which has additional
4917       --  fields depending on the setting of the Ekind field. These
4918       --  additional fields are defined (and access subprograms declared)
4919       --  in package Einfo.
4920
4921       --  Note: N_Defining_Operator_Symbol is an extended node whose fields
4922       --  are deliberately layed out to match the layout of fields in an
4923       --  ordinary N_Operator_Symbol node allowing for easy alteration of
4924       --  an operator symbol node into a defining operator symbol node.
4925       --  See Sinfo.CN.Change_Operator_Symbol_To_Defining_Operator_Symbol
4926       --  for further details.
4927
4928       --  N_Defining_Operator_Symbol
4929       --  Sloc points to literal
4930       --  Chars (Name1) contains the Name_Id for the operator symbol
4931       --  Next_Entity (Node2-Sem)
4932       --  Scope (Node3-Sem)
4933       --  Etype (Node5-Sem)
4934
4935       ----------------------------
4936       -- 6.1  Parameter Profile --
4937       ----------------------------
4938
4939       --  PARAMETER_PROFILE ::= [FORMAL_PART]
4940
4941       ---------------------------------------
4942       -- 6.1  Parameter and Result Profile --
4943       ---------------------------------------
4944
4945       --  PARAMETER_AND_RESULT_PROFILE ::=
4946       --    [FORMAL_PART] return [NULL_EXCLUSION] SUBTYPE_MARK
4947       --  | [FORMAL_PART] return ACCESS_DEFINITION
4948
4949       --  There is no explicit node in the tree for a parameter and result
4950       --  profile. Instead the information appears directly in the parent.
4951
4952       ----------------------
4953       -- 6.1  Formal Part --
4954       ----------------------
4955
4956       --  FORMAL_PART ::=
4957       --    (PARAMETER_SPECIFICATION {; PARAMETER_SPECIFICATION})
4958
4959       ----------------------------------
4960       -- 6.1  Parameter Specification --
4961       ----------------------------------
4962
4963       --  PARAMETER_SPECIFICATION ::=
4964       --    DEFINING_IDENTIFIER_LIST : [ALIASED] MODE [NULL_EXCLUSION]
4965       --      SUBTYPE_MARK [:= DEFAULT_EXPRESSION]
4966       --  | DEFINING_IDENTIFIER_LIST : ACCESS_DEFINITION
4967       --      [:= DEFAULT_EXPRESSION]
4968
4969       --  Although the syntax allows multiple identifiers in the list, the
4970       --  semantics is as though successive specifications were given with
4971       --  identical type definition and expression components. To simplify
4972       --  semantic processing, the parser represents a multiple declaration
4973       --  case as a sequence of single Specifications, using the More_Ids and
4974       --  Prev_Ids flags to preserve the original source form as described
4975       --  in the section on "Handling of Defining Identifier Lists".
4976
4977       --  ALIASED can only be present in Ada 2012 mode
4978
4979       --  N_Parameter_Specification
4980       --  Sloc points to first identifier
4981       --  Defining_Identifier (Node1)
4982       --  Aliased_Present (Flag4)
4983       --  In_Present (Flag15)
4984       --  Out_Present (Flag17)
4985       --  Null_Exclusion_Present (Flag11)
4986       --  Parameter_Type (Node2) subtype mark or access definition
4987       --  Expression (Node3) (set to Empty if no default expression present)
4988       --  Do_Accessibility_Check (Flag13-Sem)
4989       --  More_Ids (Flag5) (set to False if no more identifiers in list)
4990       --  Prev_Ids (Flag6) (set to False if no previous identifiers in list)
4991       --  Default_Expression (Node5-Sem)
4992
4993       ---------------
4994       -- 6.1  Mode --
4995       ---------------
4996
4997       --  MODE ::= [in] | in out | out
4998
4999       --  There is no explicit node in the tree for the Mode. Instead the
5000       --  In_Present and Out_Present flags are set in the parent node to
5001       --  record the presence of keywords specifying the mode.
5002
5003       --------------------------
5004       -- 6.3  Subprogram Body --
5005       --------------------------
5006
5007       --  SUBPROGRAM_BODY ::=
5008       --    SUBPROGRAM_SPECIFICATION [ASPECT_SPECIFICATIONS] is
5009       --      DECLARATIVE_PART
5010       --    begin
5011       --      HANDLED_SEQUENCE_OF_STATEMENTS
5012       --    end [DESIGNATOR];
5013
5014       --  N_Subprogram_Body
5015       --  Sloc points to FUNCTION or PROCEDURE
5016       --  Specification (Node1)
5017       --  Declarations (List2)
5018       --  Handled_Statement_Sequence (Node4)
5019       --  Activation_Chain_Entity (Node3-Sem)
5020       --  Corresponding_Spec (Node5-Sem)
5021       --  Acts_As_Spec (Flag4-Sem)
5022       --  Bad_Is_Detected (Flag15) used only by parser
5023       --  Do_Storage_Check (Flag17-Sem)
5024       --  Is_Protected_Subprogram_Body (Flag7-Sem)
5025       --  Is_Entry_Barrier_Function (Flag8-Sem)
5026       --  Is_Task_Master (Flag5-Sem)
5027       --  Was_Originally_Stub (Flag13-Sem)
5028       --  Has_Relative_Deadline_Pragma (Flag9-Sem)
5029
5030       -------------------------
5031       -- Expression Function --
5032       -------------------------
5033
5034       --  This is an Ada 2012 extension, we put it here for now, to be labeled
5035       --  and put in its proper section when we know exactly where that is.
5036
5037       --  EXPRESSION_FUNCTION ::=
5038       --    FUNCTION SPECIFICATION IS (EXPRESSION)
5039       --      [ASPECT_SPECIFICATIONS];
5040
5041       --  N_Expression_Function
5042       --  Sloc points to FUNCTION
5043       --  Specification (Node1)
5044       --  Expression (Node3)
5045       --  Corresponding_Spec (Node5-Sem)
5046
5047       -----------------------------------
5048       -- 6.4  Procedure Call Statement --
5049       -----------------------------------
5050
5051       --  PROCEDURE_CALL_STATEMENT ::=
5052       --    procedure_NAME; | procedure_PREFIX ACTUAL_PARAMETER_PART;
5053
5054       --  Note: the reason that a procedure call has expression fields is that
5055       --  it semantically resembles an expression, e.g. overloading is allowed
5056       --  and a type is concocted for semantic processing purposes. Certain of
5057       --  these fields, such as Parens are not relevant, but it is easier to
5058       --  just supply all of them together.
5059
5060       --  N_Procedure_Call_Statement
5061       --  Sloc points to first token of name or prefix
5062       --  Name (Node2) stores name or prefix
5063       --  Parameter_Associations (List3) (set to No_List if no
5064       --   actual parameter part)
5065       --  First_Named_Actual (Node4-Sem)
5066       --  Controlling_Argument (Node1-Sem) (set to Empty if not dispatching)
5067       --  Do_Tag_Check (Flag13-Sem)
5068       --  No_Elaboration_Check (Flag14-Sem)
5069       --  Parameter_List_Truncated (Flag17-Sem)
5070       --  ABE_Is_Certain (Flag18-Sem)
5071       --  plus fields for expression
5072
5073       --  If any IN parameter requires a range check, then the corresponding
5074       --  argument expression has the Do_Range_Check flag set, and the range
5075       --  check is done against the formal type. Note that this argument
5076       --  expression may appear directly in the Parameter_Associations list,
5077       --  or may be a descendent of an N_Parameter_Association node that
5078       --  appears in this list.
5079
5080       ------------------------
5081       -- 6.4  Function Call --
5082       ------------------------
5083
5084       --  FUNCTION_CALL ::=
5085       --    function_NAME | function_PREFIX ACTUAL_PARAMETER_PART
5086
5087       --  Note: the parser may generate an indexed component node or simply
5088       --  a name node instead of a function call node. The semantic pass must
5089       --  correct this misidentification.
5090
5091       --  N_Function_Call
5092       --  Sloc points to first token of name or prefix
5093       --  Name (Node2) stores name or prefix
5094       --  Parameter_Associations (List3) (set to No_List if no
5095       --   actual parameter part)
5096       --  First_Named_Actual (Node4-Sem)
5097       --  Controlling_Argument (Node1-Sem) (set to Empty if not dispatching)
5098       --  Is_Expanded_Build_In_Place_Call (Flag11-Sem)
5099       --  Do_Tag_Check (Flag13-Sem)
5100       --  No_Elaboration_Check (Flag14-Sem)
5101       --  Parameter_List_Truncated (Flag17-Sem)
5102       --  ABE_Is_Certain (Flag18-Sem)
5103       --  plus fields for expression
5104
5105       --------------------------------
5106       -- 6.4  Actual Parameter Part --
5107       --------------------------------
5108
5109       --  ACTUAL_PARAMETER_PART ::=
5110       --    (PARAMETER_ASSOCIATION {,PARAMETER_ASSOCIATION})
5111
5112       --------------------------------
5113       -- 6.4  Parameter Association --
5114       --------------------------------
5115
5116       --  PARAMETER_ASSOCIATION ::=
5117       --    [formal_parameter_SELECTOR_NAME =>] EXPLICIT_ACTUAL_PARAMETER
5118
5119       --  Note: the N_Parameter_Association node is built only if a formal
5120       --  parameter selector name is present, otherwise the parameter
5121       --  association appears in the tree simply as the node for the
5122       --  explicit actual parameter.
5123
5124       --  N_Parameter_Association
5125       --  Sloc points to formal parameter
5126       --  Selector_Name (Node2) (always non-Empty)
5127       --  Explicit_Actual_Parameter (Node3)
5128       --  Next_Named_Actual (Node4-Sem)
5129       --  Is_Accessibility_Actual (Flag13-Sem)
5130
5131       ---------------------------
5132       -- 6.4  Actual Parameter --
5133       ---------------------------
5134
5135       --  EXPLICIT_ACTUAL_PARAMETER ::= EXPRESSION | variable_NAME
5136
5137       ---------------------------
5138       -- 6.5  Return Statement --
5139       ---------------------------
5140
5141       --  SIMPLE_RETURN_STATEMENT ::= return [EXPRESSION];
5142
5143       --  EXTENDED_RETURN_STATEMENT ::=
5144       --    return DEFINING_IDENTIFIER : [aliased] RETURN_SUBTYPE_INDICATION
5145       --                                           [:= EXPRESSION] [do
5146       --      HANDLED_SEQUENCE_OF_STATEMENTS
5147       --    end return];
5148
5149       --  RETURN_SUBTYPE_INDICATION ::= SUBTYPE_INDICATION | ACCESS_DEFINITION
5150
5151       --  The term "return statement" is defined in 6.5 to mean either a
5152       --  SIMPLE_RETURN_STATEMENT or an EXTENDED_RETURN_STATEMENT. We avoid
5153       --  the use of this term, since it used to mean someting else in earlier
5154       --  versions of Ada.
5155
5156       --  N_Simple_Return_Statement
5157       --  Sloc points to RETURN
5158       --  Return_Statement_Entity (Node5-Sem)
5159       --  Expression (Node3) (set to Empty if no expression present)
5160       --  Storage_Pool (Node1-Sem)
5161       --  Procedure_To_Call (Node2-Sem)
5162       --  Do_Tag_Check (Flag13-Sem)
5163       --  By_Ref (Flag5-Sem)
5164       --  Comes_From_Extended_Return_Statement (Flag18-Sem)
5165
5166       --  Note: Return_Statement_Entity points to an E_Return_Statement
5167
5168       --  If a range check is required, then Do_Range_Check is set on the
5169       --  Expression. The check is against the return subtype of the function.
5170
5171       --  N_Extended_Return_Statement
5172       --  Sloc points to RETURN
5173       --  Return_Statement_Entity (Node5-Sem)
5174       --  Return_Object_Declarations (List3)
5175       --  Handled_Statement_Sequence (Node4) (set to Empty if not present)
5176       --  Storage_Pool (Node1-Sem)
5177       --  Procedure_To_Call (Node2-Sem)
5178       --  Do_Tag_Check (Flag13-Sem)
5179       --  By_Ref (Flag5-Sem)
5180
5181       --  Note: Return_Statement_Entity points to an E_Return_Statement.
5182
5183       --  Note that Return_Object_Declarations is a list containing the
5184       --  N_Object_Declaration -- see comment on this field above.
5185
5186       --  The declared object will have Is_Return_Object = True.
5187
5188       --  There is no such syntactic category as return_object_declaration
5189       --  in the RM. Return_Object_Declarations represents this portion of
5190       --  the syntax for EXTENDED_RETURN_STATEMENT:
5191       --      DEFINING_IDENTIFIER : [aliased] RETURN_SUBTYPE_INDICATION
5192       --                                      [:= EXPRESSION]
5193
5194       --  There are two entities associated with an extended_return_statement:
5195       --  the Return_Statement_Entity represents the statement itself,
5196       --  and the Defining_Identifier of the Object_Declaration in
5197       --  Return_Object_Declarations represents the object being
5198       --  returned. N_Simple_Return_Statement has only the former.
5199
5200       ------------------------------
5201       -- 7.1  Package Declaration --
5202       ------------------------------
5203
5204       --  PACKAGE_DECLARATION ::=
5205       --    PACKAGE_SPECIFICATION;
5206
5207       --  Note: the activation chain entity for a package spec is used for
5208       --  all tasks declared in the package spec, or in the package body.
5209
5210       --  N_Package_Declaration
5211       --  Sloc points to PACKAGE
5212       --  Specification (Node1)
5213       --  Corresponding_Body (Node5-Sem)
5214       --  Parent_Spec (Node4-Sem)
5215       --  Activation_Chain_Entity (Node3-Sem)
5216
5217       --------------------------------
5218       -- 7.1  Package Specification --
5219       --------------------------------
5220
5221       --  PACKAGE_SPECIFICATION ::=
5222       --    package DEFINING_PROGRAM_UNIT_NAME
5223       --      [ASPECT_SPECIFICATIONS]
5224       --    is
5225       --      {BASIC_DECLARATIVE_ITEM}
5226       --    [private
5227       --      {BASIC_DECLARATIVE_ITEM}]
5228       --    end [[PARENT_UNIT_NAME .] IDENTIFIER]
5229
5230       --  N_Package_Specification
5231       --  Sloc points to PACKAGE
5232       --  Defining_Unit_Name (Node1)
5233       --  Visible_Declarations (List2)
5234       --  Private_Declarations (List3) (set to No_List if no private
5235       --   part present)
5236       --  End_Label (Node4)
5237       --  Generic_Parent (Node5-Sem)
5238       --  Limited_View_Installed (Flag18-Sem)
5239
5240       -----------------------
5241       -- 7.1  Package Body --
5242       -----------------------
5243
5244       --  PACKAGE_BODY ::=
5245       --    package body DEFINING_PROGRAM_UNIT_NAME
5246       --      [ASPECT_SPECIFICATIONS]
5247       --    is
5248       --      DECLARATIVE_PART
5249       --    [begin
5250       --      HANDLED_SEQUENCE_OF_STATEMENTS]
5251       --    end [[PARENT_UNIT_NAME .] IDENTIFIER];
5252
5253       --  N_Package_Body
5254       --  Sloc points to PACKAGE
5255       --  Defining_Unit_Name (Node1)
5256       --  Declarations (List2)
5257       --  Handled_Statement_Sequence (Node4) (set to Empty if no HSS present)
5258       --  Corresponding_Spec (Node5-Sem)
5259       --  Was_Originally_Stub (Flag13-Sem)
5260
5261       --  Note: if a source level package does not contain a handled sequence
5262       --  of statements, then the parser supplies a dummy one with a null
5263       --  sequence of statements. Comes_From_Source will be False in this
5264       --  constructed sequence. The reason we need this is for the End_Label
5265       --  field in the HSS.
5266
5267       -----------------------------------
5268       -- 7.4  Private Type Declaration --
5269       -----------------------------------
5270
5271       --  PRIVATE_TYPE_DECLARATION ::=
5272       --    type DEFINING_IDENTIFIER [DISCRIMINANT_PART]
5273       --      is [[abstract] tagged] [limited] private
5274       --        [ASPECT_SPECIFICATIONS];
5275
5276       --  Note: TAGGED is not permitted in Ada 83 mode
5277
5278       --  N_Private_Type_Declaration
5279       --  Sloc points to TYPE
5280       --  Defining_Identifier (Node1)
5281       --  Discriminant_Specifications (List4) (set to No_List if no
5282       --   discriminant part)
5283       --  Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
5284       --  Abstract_Present (Flag4)
5285       --  Tagged_Present (Flag15)
5286       --  Limited_Present (Flag17)
5287
5288       ----------------------------------------
5289       -- 7.4  Private Extension Declaration --
5290       ----------------------------------------
5291
5292       --  PRIVATE_EXTENSION_DECLARATION ::=
5293       --    type DEFINING_IDENTIFIER [DISCRIMINANT_PART] is
5294       --      [abstract] [limited | synchronized]
5295       --        new ancestor_SUBTYPE_INDICATION [and INTERFACE_LIST]
5296       --           with private [ASPECT_SPECIFICATIONS];
5297
5298       --  Note: LIMITED, and private extension declarations are not allowed
5299       --        in Ada 83 mode.
5300
5301       --  N_Private_Extension_Declaration
5302       --  Sloc points to TYPE
5303       --  Defining_Identifier (Node1)
5304       --  Uninitialized_Variable (Node3-Sem)
5305       --  Discriminant_Specifications (List4) (set to No_List if no
5306       --   discriminant part)
5307       --  Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
5308       --  Abstract_Present (Flag4)
5309       --  Limited_Present (Flag17)
5310       --  Synchronized_Present (Flag7)
5311       --  Subtype_Indication (Node5)
5312       --  Interface_List (List2) (set to No_List if none)
5313
5314       ---------------------
5315       -- 8.4  Use Clause --
5316       ---------------------
5317
5318       --  USE_CLAUSE ::= USE_PACKAGE_CLAUSE | USE_TYPE_CLAUSE
5319
5320       -----------------------------
5321       -- 8.4  Use Package Clause --
5322       -----------------------------
5323
5324       --  USE_PACKAGE_CLAUSE ::= use package_NAME {, package_NAME};
5325
5326       --  N_Use_Package_Clause
5327       --  Sloc points to USE
5328       --  Names (List2)
5329       --  Next_Use_Clause (Node3-Sem)
5330       --  Hidden_By_Use_Clause (Elist4-Sem)
5331
5332       --------------------------
5333       -- 8.4  Use Type Clause --
5334       --------------------------
5335
5336       --  USE_TYPE_CLAUSE ::= use [ALL] type SUBTYPE_MARK {, SUBTYPE_MARK};
5337
5338       --  Note: use type clause is not permitted in Ada 83 mode
5339
5340       --  Note: the ALL keyword can appear only in Ada 2012 mode
5341
5342       --  N_Use_Type_Clause
5343       --  Sloc points to USE
5344       --  Subtype_Marks (List2)
5345       --  Next_Use_Clause (Node3-Sem)
5346       --  Hidden_By_Use_Clause (Elist4-Sem)
5347       --  Used_Operations (Elist5-Sem)
5348       --  All_Present (Flag15)
5349
5350       -------------------------------
5351       -- 8.5  Renaming Declaration --
5352       -------------------------------
5353
5354       --  RENAMING_DECLARATION ::=
5355       --    OBJECT_RENAMING_DECLARATION
5356       --  | EXCEPTION_RENAMING_DECLARATION
5357       --  | PACKAGE_RENAMING_DECLARATION
5358       --  | SUBPROGRAM_RENAMING_DECLARATION
5359       --  | GENERIC_RENAMING_DECLARATION
5360
5361       --------------------------------------
5362       -- 8.5  Object Renaming Declaration --
5363       --------------------------------------
5364
5365       --  OBJECT_RENAMING_DECLARATION ::=
5366       --    DEFINING_IDENTIFIER :
5367       --      [NULL_EXCLUSION] SUBTYPE_MARK renames object_NAME
5368       --        [ASPECT_SPECIFICATIONS];
5369       --  | DEFINING_IDENTIFIER :
5370       --      ACCESS_DEFINITION renames object_NAME
5371       --        [ASPECT_SPECIFICATIONS];
5372
5373       --  Note: Access_Definition is an optional field that gives support to
5374       --  Ada 2005 (AI-230). The parser generates nodes that have either the
5375       --  Subtype_Indication field or else the Access_Definition field.
5376
5377       --  N_Object_Renaming_Declaration
5378       --  Sloc points to first identifier
5379       --  Defining_Identifier (Node1)
5380       --  Null_Exclusion_Present (Flag11) (set to False if not present)
5381       --  Subtype_Mark (Node4) (set to Empty if not present)
5382       --  Access_Definition (Node3) (set to Empty if not present)
5383       --  Name (Node2)
5384       --  Corresponding_Generic_Association (Node5-Sem)
5385
5386       -----------------------------------------
5387       -- 8.5  Exception Renaming Declaration --
5388       -----------------------------------------
5389
5390       --  EXCEPTION_RENAMING_DECLARATION ::=
5391       --    DEFINING_IDENTIFIER : exception renames exception_NAME
5392       --      [ASPECT_SPECIFICATIONS];
5393
5394       --  N_Exception_Renaming_Declaration
5395       --  Sloc points to first identifier
5396       --  Defining_Identifier (Node1)
5397       --  Name (Node2)
5398
5399       ---------------------------------------
5400       -- 8.5  Package Renaming Declaration --
5401       ---------------------------------------
5402
5403       --  PACKAGE_RENAMING_DECLARATION ::=
5404       --    package DEFINING_PROGRAM_UNIT_NAME renames package_NAME
5405       --      [ASPECT_SPECIFICATIONS];
5406
5407       --  N_Package_Renaming_Declaration
5408       --  Sloc points to PACKAGE
5409       --  Defining_Unit_Name (Node1)
5410       --  Name (Node2)
5411       --  Parent_Spec (Node4-Sem)
5412
5413       ------------------------------------------
5414       -- 8.5  Subprogram Renaming Declaration --
5415       ------------------------------------------
5416
5417       --  SUBPROGRAM_RENAMING_DECLARATION ::=
5418       --    SUBPROGRAM_SPECIFICATION renames callable_entity_NAME
5419       --      [ASPECT_SPECIFICATIONS];
5420
5421       --  N_Subprogram_Renaming_Declaration
5422       --  Sloc points to RENAMES
5423       --  Specification (Node1)
5424       --  Name (Node2)
5425       --  Parent_Spec (Node4-Sem)
5426       --  Corresponding_Spec (Node5-Sem)
5427       --  Corresponding_Formal_Spec (Node3-Sem)
5428       --  From_Default (Flag6-Sem)
5429
5430       -----------------------------------------
5431       -- 8.5.5  Generic Renaming Declaration --
5432       -----------------------------------------
5433
5434       --  GENERIC_RENAMING_DECLARATION ::=
5435       --    generic package DEFINING_PROGRAM_UNIT_NAME
5436       --      renames generic_package_NAME
5437       --        [ASPECT_SPECIFICATIONS];
5438       --  | generic procedure DEFINING_PROGRAM_UNIT_NAME
5439       --      renames generic_procedure_NAME
5440       --        [ASPECT_SPECIFICATIONS];
5441       --  | generic function DEFINING_PROGRAM_UNIT_NAME
5442       --      renames generic_function_NAME
5443       --        [ASPECT_SPECIFICATIONS];
5444
5445       --  N_Generic_Package_Renaming_Declaration
5446       --  Sloc points to GENERIC
5447       --  Defining_Unit_Name (Node1)
5448       --  Name (Node2)
5449       --  Parent_Spec (Node4-Sem)
5450
5451       --  N_Generic_Procedure_Renaming_Declaration
5452       --  Sloc points to GENERIC
5453       --  Defining_Unit_Name (Node1)
5454       --  Name (Node2)
5455       --  Parent_Spec (Node4-Sem)
5456
5457       --  N_Generic_Function_Renaming_Declaration
5458       --  Sloc points to GENERIC
5459       --  Defining_Unit_Name (Node1)
5460       --  Name (Node2)
5461       --  Parent_Spec (Node4-Sem)
5462
5463       --------------------------------
5464       -- 9.1  Task Type Declaration --
5465       --------------------------------
5466
5467       --  TASK_TYPE_DECLARATION ::=
5468       --    task type DEFINING_IDENTIFIER [KNOWN_DISCRIMINANT_PART]
5469       --      [ASPECT_SPECIFICATIONS]
5470       --    [is [new INTERFACE_LIST with] TASK_DEFINITION];
5471
5472       --  N_Task_Type_Declaration
5473       --  Sloc points to TASK
5474       --  Defining_Identifier (Node1)
5475       --  Discriminant_Specifications (List4) (set to No_List if no
5476       --   discriminant part)
5477       --  Interface_List (List2) (set to No_List if none)
5478       --  Task_Definition (Node3) (set to Empty if not present)
5479       --  Corresponding_Body (Node5-Sem)
5480
5481       ----------------------------------
5482       -- 9.1  Single Task Declaration --
5483       ----------------------------------
5484
5485       --  SINGLE_TASK_DECLARATION ::=
5486       --    task DEFINING_IDENTIFIER
5487       --      [ASPECT_SPECIFICATIONS]
5488       --    [is [new INTERFACE_LIST with] TASK_DEFINITION];
5489
5490       --  N_Single_Task_Declaration
5491       --  Sloc points to TASK
5492       --  Defining_Identifier (Node1)
5493       --  Interface_List (List2) (set to No_List if none)
5494       --  Task_Definition (Node3) (set to Empty if not present)
5495
5496       --------------------------
5497       -- 9.1  Task Definition --
5498       --------------------------
5499
5500       --  TASK_DEFINITION ::=
5501       --      {TASK_ITEM}
5502       --    [private
5503       --      {TASK_ITEM}]
5504       --    end [task_IDENTIFIER]
5505
5506       --  Note: as a result of semantic analysis, the list of task items can
5507       --  include implicit type declarations resulting from entry families.
5508
5509       --  N_Task_Definition
5510       --  Sloc points to first token of task definition
5511       --  Visible_Declarations (List2)
5512       --  Private_Declarations (List3) (set to No_List if no private part)
5513       --  End_Label (Node4)
5514       --  Has_Storage_Size_Pragma (Flag5-Sem)
5515       --  Has_Relative_Deadline_Pragma (Flag9-Sem)
5516
5517       --------------------
5518       -- 9.1  Task Item --
5519       --------------------
5520
5521       --  TASK_ITEM ::= ENTRY_DECLARATION | REPRESENTATION_CLAUSE
5522
5523       --------------------
5524       -- 9.1  Task Body --
5525       --------------------
5526
5527       --  TASK_BODY ::=
5528       --    task body task_DEFINING_IDENTIFIER
5529       --      [ASPECT_SPECIFICATIONS]
5530       --    is
5531       --      DECLARATIVE_PART
5532       --    begin
5533       --      HANDLED_SEQUENCE_OF_STATEMENTS
5534       --    end [task_IDENTIFIER];
5535
5536       --  Gigi restriction: This node never appears
5537
5538       --  N_Task_Body
5539       --  Sloc points to TASK
5540       --  Defining_Identifier (Node1)
5541       --  Declarations (List2)
5542       --  Handled_Statement_Sequence (Node4)
5543       --  Is_Task_Master (Flag5-Sem)
5544       --  Activation_Chain_Entity (Node3-Sem)
5545       --  Corresponding_Spec (Node5-Sem)
5546       --  Was_Originally_Stub (Flag13-Sem)
5547
5548       -------------------------------------
5549       -- 9.4  Protected Type Declaration --
5550       -------------------------------------
5551
5552       --  PROTECTED_TYPE_DECLARATION ::=
5553       --    protected type DEFINING_IDENTIFIER [KNOWN_DISCRIMINANT_PART]
5554       --      [ASPECT_SPECIFICATIONS]
5555       --    is [new INTERFACE_LIST with] PROTECTED_DEFINITION;
5556
5557       --  Note: protected type declarations are not permitted in Ada 83 mode
5558
5559       --  N_Protected_Type_Declaration
5560       --  Sloc points to PROTECTED
5561       --  Defining_Identifier (Node1)
5562       --  Discriminant_Specifications (List4) (set to No_List if no
5563       --   discriminant part)
5564       --  Interface_List (List2) (set to No_List if none)
5565       --  Protected_Definition (Node3)
5566       --  Corresponding_Body (Node5-Sem)
5567
5568       ---------------------------------------
5569       -- 9.4  Single Protected Declaration --
5570       ---------------------------------------
5571
5572       --  SINGLE_PROTECTED_DECLARATION ::=
5573       --    protected DEFINING_IDENTIFIER
5574       --      [ASPECT_SPECIFICATIONS]
5575       --    is [new INTERFACE_LIST with] PROTECTED_DEFINITION;
5576
5577       --  Note: single protected declarations are not allowed in Ada 83 mode
5578
5579       --  N_Single_Protected_Declaration
5580       --  Sloc points to PROTECTED
5581       --  Defining_Identifier (Node1)
5582       --  Interface_List (List2) (set to No_List if none)
5583       --  Protected_Definition (Node3)
5584
5585       -------------------------------
5586       -- 9.4  Protected Definition --
5587       -------------------------------
5588
5589       --  PROTECTED_DEFINITION ::=
5590       --      {PROTECTED_OPERATION_DECLARATION}
5591       --    [private
5592       --      {PROTECTED_ELEMENT_DECLARATION}]
5593       --    end [protected_IDENTIFIER]
5594
5595       --  N_Protected_Definition
5596       --  Sloc points to first token of protected definition
5597       --  Visible_Declarations (List2)
5598       --  Private_Declarations (List3) (set to No_List if no private part)
5599       --  End_Label (Node4)
5600
5601       ------------------------------------------
5602       -- 9.4  Protected Operation Declaration --
5603       ------------------------------------------
5604
5605       --  PROTECTED_OPERATION_DECLARATION ::=
5606       --    SUBPROGRAM_DECLARATION
5607       --  | ENTRY_DECLARATION
5608       --  | REPRESENTATION_CLAUSE
5609
5610       ----------------------------------------
5611       -- 9.4  Protected Element Declaration --
5612       ----------------------------------------
5613
5614       --  PROTECTED_ELEMENT_DECLARATION ::=
5615       --    PROTECTED_OPERATION_DECLARATION | COMPONENT_DECLARATION
5616
5617       -------------------------
5618       -- 9.4  Protected Body --
5619       -------------------------
5620
5621       --  PROTECTED_BODY ::=
5622       --    protected body DEFINING_IDENTIFIER
5623       --      [ASPECT_SPECIFICATIONS];
5624       --    is
5625       --      {PROTECTED_OPERATION_ITEM}
5626       --    end [protected_IDENTIFIER];
5627
5628       --  Note: protected bodies are not allowed in Ada 83 mode
5629
5630       --  Gigi restriction: This node never appears
5631
5632       --  N_Protected_Body
5633       --  Sloc points to PROTECTED
5634       --  Defining_Identifier (Node1)
5635       --  Declarations (List2) protected operation items (and pragmas)
5636       --  End_Label (Node4)
5637       --  Corresponding_Spec (Node5-Sem)
5638       --  Was_Originally_Stub (Flag13-Sem)
5639
5640       -----------------------------------
5641       -- 9.4  Protected Operation Item --
5642       -----------------------------------
5643
5644       --  PROTECTED_OPERATION_ITEM ::=
5645       --    SUBPROGRAM_DECLARATION
5646       --  | SUBPROGRAM_BODY
5647       --  | ENTRY_BODY
5648       --  | REPRESENTATION_CLAUSE
5649
5650       ------------------------------
5651       -- 9.5.2  Entry Declaration --
5652       ------------------------------
5653
5654       --  ENTRY_DECLARATION ::=
5655       --    [[not] overriding]
5656       --    entry DEFINING_IDENTIFIER
5657       --      [(DISCRETE_SUBTYPE_DEFINITION)] PARAMETER_PROFILE
5658       --        [ASPECT_SPECIFICATIONS];
5659
5660       --  N_Entry_Declaration
5661       --  Sloc points to ENTRY
5662       --  Defining_Identifier (Node1)
5663       --  Discrete_Subtype_Definition (Node4) (set to Empty if not present)
5664       --  Parameter_Specifications (List3) (set to No_List if no formal part)
5665       --  Corresponding_Body (Node5-Sem)
5666       --  Must_Override (Flag14) set if overriding indicator present
5667       --  Must_Not_Override (Flag15) set if not_overriding indicator present
5668
5669       --  Note: overriding indicator is an Ada 2005 feature
5670
5671       -----------------------------
5672       -- 9.5.2  Accept statement --
5673       -----------------------------
5674
5675       --  ACCEPT_STATEMENT ::=
5676       --    accept entry_DIRECT_NAME
5677       --      [(ENTRY_INDEX)] PARAMETER_PROFILE [do
5678       --        HANDLED_SEQUENCE_OF_STATEMENTS
5679       --    end [entry_IDENTIFIER]];
5680
5681       --  Gigi restriction: This node never appears
5682
5683       --  Note: there are no explicit declarations allowed in an accept
5684       --  statement. However, the implicit declarations for any statement
5685       --  identifiers (labels and block/loop identifiers) are declarations
5686       --  that belong logically to the accept statement, and that is why
5687       --  there is a Declarations field in this node.
5688
5689       --  N_Accept_Statement
5690       --  Sloc points to ACCEPT
5691       --  Entry_Direct_Name (Node1)
5692       --  Entry_Index (Node5) (set to Empty if not present)
5693       --  Parameter_Specifications (List3) (set to No_List if no formal part)
5694       --  Handled_Statement_Sequence (Node4)
5695       --  Declarations (List2) (set to No_List if no declarations)
5696
5697       ------------------------
5698       -- 9.5.2  Entry Index --
5699       ------------------------
5700
5701       --  ENTRY_INDEX ::= EXPRESSION
5702
5703       -----------------------
5704       -- 9.5.2  Entry Body --
5705       -----------------------
5706
5707       --  ENTRY_BODY ::=
5708       --    entry DEFINING_IDENTIFIER ENTRY_BODY_FORMAL_PART ENTRY_BARRIER is
5709       --      DECLARATIVE_PART
5710       --    begin
5711       --      HANDLED_SEQUENCE_OF_STATEMENTS
5712       --    end [entry_IDENTIFIER];
5713
5714       --  ENTRY_BARRIER ::= when CONDITION
5715
5716       --  Note: we store the CONDITION of the ENTRY_BARRIER in the node for
5717       --  the ENTRY_BODY_FORMAL_PART to avoid the N_Entry_Body node getting
5718       --  too full (it would otherwise have too many fields)
5719
5720       --  Gigi restriction: This node never appears
5721
5722       --  N_Entry_Body
5723       --  Sloc points to ENTRY
5724       --  Defining_Identifier (Node1)
5725       --  Entry_Body_Formal_Part (Node5)
5726       --  Declarations (List2)
5727       --  Handled_Statement_Sequence (Node4)
5728       --  Activation_Chain_Entity (Node3-Sem)
5729
5730       -----------------------------------
5731       -- 9.5.2  Entry Body Formal Part --
5732       -----------------------------------
5733
5734       --  ENTRY_BODY_FORMAL_PART ::=
5735       --    [(ENTRY_INDEX_SPECIFICATION)] PARAMETER_PROFILE
5736
5737       --  Note that an entry body formal part node is present even if it is
5738       --  empty. This reflects the grammar, in which it is the components of
5739       --  the entry body formal part that are optional, not the entry body
5740       --  formal part itself. Also this means that the barrier condition
5741       --  always has somewhere to be stored.
5742
5743       --  Gigi restriction: This node never appears
5744
5745       --  N_Entry_Body_Formal_Part
5746       --  Sloc points to first token
5747       --  Entry_Index_Specification (Node4) (set to Empty if not present)
5748       --  Parameter_Specifications (List3) (set to No_List if no formal part)
5749       --  Condition (Node1) from entry barrier of entry body
5750
5751       --------------------------
5752       -- 9.5.2  Entry Barrier --
5753       --------------------------
5754
5755       --  ENTRY_BARRIER ::= when CONDITION
5756
5757       --------------------------------------
5758       -- 9.5.2  Entry Index Specification --
5759       --------------------------------------
5760
5761       --  ENTRY_INDEX_SPECIFICATION ::=
5762       --    for DEFINING_IDENTIFIER in DISCRETE_SUBTYPE_DEFINITION
5763
5764       --  Gigi restriction: This node never appears
5765
5766       --  N_Entry_Index_Specification
5767       --  Sloc points to FOR
5768       --  Defining_Identifier (Node1)
5769       --  Discrete_Subtype_Definition (Node4)
5770
5771       ---------------------------------
5772       -- 9.5.3  Entry Call Statement --
5773       ---------------------------------
5774
5775       --  ENTRY_CALL_STATEMENT ::= entry_NAME [ACTUAL_PARAMETER_PART];
5776
5777       --  The parser may generate a procedure call for this construct. The
5778       --  semantic pass must correct this misidentification where needed.
5779
5780       --  Gigi restriction: This node never appears
5781
5782       --  N_Entry_Call_Statement
5783       --  Sloc points to first token of name
5784       --  Name (Node2)
5785       --  Parameter_Associations (List3) (set to No_List if no
5786       --   actual parameter part)
5787       --  First_Named_Actual (Node4-Sem)
5788
5789       ------------------------------
5790       -- 9.5.4  Requeue Statement --
5791       ------------------------------
5792
5793       --  REQUEUE_STATEMENT ::= requeue entry_NAME [with abort];
5794
5795       --  Note: requeue statements are not permitted in Ada 83 mode
5796
5797       --  Gigi restriction: This node never appears
5798
5799       --  N_Requeue_Statement
5800       --  Sloc points to REQUEUE
5801       --  Name (Node2)
5802       --  Abort_Present (Flag15)
5803
5804       --------------------------
5805       -- 9.6  Delay Statement --
5806       --------------------------
5807
5808       --  DELAY_STATEMENT ::=
5809       --    DELAY_UNTIL_STATEMENT
5810       --  | DELAY_RELATIVE_STATEMENT
5811
5812       --------------------------------
5813       -- 9.6  Delay Until Statement --
5814       --------------------------------
5815
5816       --  DELAY_UNTIL_STATEMENT ::= delay until delay_EXPRESSION;
5817
5818       --  Note: delay until statements are not permitted in Ada 83 mode
5819
5820       --  Gigi restriction: This node never appears
5821
5822       --  N_Delay_Until_Statement
5823       --  Sloc points to DELAY
5824       --  Expression (Node3)
5825
5826       -----------------------------------
5827       -- 9.6  Delay Relative Statement --
5828       -----------------------------------
5829
5830       --  DELAY_RELATIVE_STATEMENT ::= delay delay_EXPRESSION;
5831
5832       --  Gigi restriction: This node never appears
5833
5834       --  N_Delay_Relative_Statement
5835       --  Sloc points to DELAY
5836       --  Expression (Node3)
5837
5838       ---------------------------
5839       -- 9.7  Select Statement --
5840       ---------------------------
5841
5842       --  SELECT_STATEMENT ::=
5843       --    SELECTIVE_ACCEPT
5844       --  | TIMED_ENTRY_CALL
5845       --  | CONDITIONAL_ENTRY_CALL
5846       --  | ASYNCHRONOUS_SELECT
5847
5848       -----------------------------
5849       -- 9.7.1  Selective Accept --
5850       -----------------------------
5851
5852       --  SELECTIVE_ACCEPT ::=
5853       --    select
5854       --      [GUARD]
5855       --        SELECT_ALTERNATIVE
5856       --    {or
5857       --      [GUARD]
5858       --        SELECT_ALTERNATIVE}
5859       --    [else
5860       --      SEQUENCE_OF_STATEMENTS]
5861       --    end select;
5862
5863       --  Gigi restriction: This node never appears
5864
5865       --  Note: the guard expression, if present, appears in the node for
5866       --  the select alternative.
5867
5868       --  N_Selective_Accept
5869       --  Sloc points to SELECT
5870       --  Select_Alternatives (List1)
5871       --  Else_Statements (List4) (set to No_List if no else part)
5872
5873       ------------------
5874       -- 9.7.1  Guard --
5875       ------------------
5876
5877       --  GUARD ::= when CONDITION =>
5878
5879       --  As noted above, the CONDITION that is part of a GUARD is included
5880       --  in the node for the select alternative for convenience.
5881
5882       -------------------------------
5883       -- 9.7.1  Select Alternative --
5884       -------------------------------
5885
5886       --  SELECT_ALTERNATIVE ::=
5887       --    ACCEPT_ALTERNATIVE
5888       --  | DELAY_ALTERNATIVE
5889       --  | TERMINATE_ALTERNATIVE
5890
5891       -------------------------------
5892       -- 9.7.1  Accept Alternative --
5893       -------------------------------
5894
5895       --  ACCEPT_ALTERNATIVE ::=
5896       --    ACCEPT_STATEMENT [SEQUENCE_OF_STATEMENTS]
5897
5898       --  Gigi restriction: This node never appears
5899
5900       --  N_Accept_Alternative
5901       --  Sloc points to ACCEPT
5902       --  Accept_Statement (Node2)
5903       --  Condition (Node1) from the guard (set to Empty if no guard present)
5904       --  Statements (List3) (set to Empty_List if no statements)
5905       --  Pragmas_Before (List4) pragmas before alt (set to No_List if none)
5906       --  Accept_Handler_Records (List5-Sem)
5907
5908       ------------------------------
5909       -- 9.7.1  Delay Alternative --
5910       ------------------------------
5911
5912       --  DELAY_ALTERNATIVE ::=
5913       --    DELAY_STATEMENT [SEQUENCE_OF_STATEMENTS]
5914
5915       --  Gigi restriction: This node never appears
5916
5917       --  N_Delay_Alternative
5918       --  Sloc points to DELAY
5919       --  Delay_Statement (Node2)
5920       --  Condition (Node1) from the guard (set to Empty if no guard present)
5921       --  Statements (List3) (set to Empty_List if no statements)
5922       --  Pragmas_Before (List4) pragmas before alt (set to No_List if none)
5923
5924       ----------------------------------
5925       -- 9.7.1  Terminate Alternative --
5926       ----------------------------------
5927
5928       --  TERMINATE_ALTERNATIVE ::= terminate;
5929
5930       --  Gigi restriction: This node never appears
5931
5932       --  N_Terminate_Alternative
5933       --  Sloc points to TERMINATE
5934       --  Condition (Node1) from the guard (set to Empty if no guard present)
5935       --  Pragmas_Before (List4) pragmas before alt (set to No_List if none)
5936       --  Pragmas_After (List5) pragmas after alt (set to No_List if none)
5937
5938       -----------------------------
5939       -- 9.7.2  Timed Entry Call --
5940       -----------------------------
5941
5942       --  TIMED_ENTRY_CALL ::=
5943       --    select
5944       --      ENTRY_CALL_ALTERNATIVE
5945       --    or
5946       --      DELAY_ALTERNATIVE
5947       --    end select;
5948
5949       --  Gigi restriction: This node never appears
5950
5951       --  N_Timed_Entry_Call
5952       --  Sloc points to SELECT
5953       --  Entry_Call_Alternative (Node1)
5954       --  Delay_Alternative (Node4)
5955
5956       -----------------------------------
5957       -- 9.7.2  Entry Call Alternative --
5958       -----------------------------------
5959
5960       --  ENTRY_CALL_ALTERNATIVE ::=
5961       --    PROCEDURE_OR_ENTRY_CALL [SEQUENCE_OF_STATEMENTS]
5962
5963       --  PROCEDURE_OR_ENTRY_CALL ::=
5964       --    PROCEDURE_CALL_STATEMENT | ENTRY_CALL_STATEMENT
5965
5966       --  Gigi restriction: This node never appears
5967
5968       --  N_Entry_Call_Alternative
5969       --  Sloc points to first token of entry call statement
5970       --  Entry_Call_Statement (Node1)
5971       --  Statements (List3) (set to Empty_List if no statements)
5972       --  Pragmas_Before (List4) pragmas before alt (set to No_List if none)
5973
5974       -----------------------------------
5975       -- 9.7.3  Conditional Entry Call --
5976       -----------------------------------
5977
5978       --  CONDITIONAL_ENTRY_CALL ::=
5979       --    select
5980       --      ENTRY_CALL_ALTERNATIVE
5981       --    else
5982       --      SEQUENCE_OF_STATEMENTS
5983       --    end select;
5984
5985       --  Gigi restriction: This node never appears
5986
5987       --  N_Conditional_Entry_Call
5988       --  Sloc points to SELECT
5989       --  Entry_Call_Alternative (Node1)
5990       --  Else_Statements (List4)
5991
5992       --------------------------------
5993       -- 9.7.4  Asynchronous Select --
5994       --------------------------------
5995
5996       --  ASYNCHRONOUS_SELECT ::=
5997       --    select
5998       --      TRIGGERING_ALTERNATIVE
5999       --    then abort
6000       --      ABORTABLE_PART
6001       --    end select;
6002
6003       --  Note: asynchronous select is not permitted in Ada 83 mode
6004
6005       --  Gigi restriction: This node never appears
6006
6007       --  N_Asynchronous_Select
6008       --  Sloc points to SELECT
6009       --  Triggering_Alternative (Node1)
6010       --  Abortable_Part (Node2)
6011
6012       -----------------------------------
6013       -- 9.7.4  Triggering Alternative --
6014       -----------------------------------
6015
6016       --  TRIGGERING_ALTERNATIVE ::=
6017       --    TRIGGERING_STATEMENT [SEQUENCE_OF_STATEMENTS]
6018
6019       --  Gigi restriction: This node never appears
6020
6021       --  N_Triggering_Alternative
6022       --  Sloc points to first token of triggering statement
6023       --  Triggering_Statement (Node1)
6024       --  Statements (List3) (set to Empty_List if no statements)
6025       --  Pragmas_Before (List4) pragmas before alt (set to No_List if none)
6026
6027       ---------------------------------
6028       -- 9.7.4  Triggering Statement --
6029       ---------------------------------
6030
6031       --  TRIGGERING_STATEMENT ::= PROCEDURE_OR_ENTRY_CALL | DELAY_STATEMENT
6032
6033       ---------------------------
6034       -- 9.7.4  Abortable Part --
6035       ---------------------------
6036
6037       --  ABORTABLE_PART ::= SEQUENCE_OF_STATEMENTS
6038
6039       --  Gigi restriction: This node never appears
6040
6041       --  N_Abortable_Part
6042       --  Sloc points to ABORT
6043       --  Statements (List3)
6044
6045       --------------------------
6046       -- 9.8  Abort Statement --
6047       --------------------------
6048
6049       --  ABORT_STATEMENT ::= abort task_NAME {, task_NAME};
6050
6051       --  Gigi restriction: This node never appears
6052
6053       --  N_Abort_Statement
6054       --  Sloc points to ABORT
6055       --  Names (List2)
6056
6057       -------------------------
6058       -- 10.1.1  Compilation --
6059       -------------------------
6060
6061       --  COMPILATION ::= {COMPILATION_UNIT}
6062
6063       --  There is no explicit node in the tree for a compilation, since in
6064       --  general the compiler is processing only a single compilation unit
6065       --  at a time. It is possible to parse multiple units in syntax check
6066       --  only mode, but the trees are discarded in that case.
6067
6068       ------------------------------
6069       -- 10.1.1  Compilation Unit --
6070       ------------------------------
6071
6072       --  COMPILATION_UNIT ::=
6073       --    CONTEXT_CLAUSE LIBRARY_ITEM
6074       --  | CONTEXT_CLAUSE SUBUNIT
6075
6076       --  The N_Compilation_Unit node itself represents the above syntax.
6077       --  However, there are two additional items not reflected in the above
6078       --  syntax. First we have the global declarations that are added by the
6079       --  code generator. These are outer level declarations (so they cannot
6080       --  be represented as being inside the units). An example is the wrapper
6081       --  subprograms that are created to do ABE checking. As always a list of
6082       --  declarations can contain actions as well (i.e. statements), and such
6083       --  statements are executed as part of the elaboration of the unit. Note
6084       --  that all such declarations are elaborated before the library unit.
6085
6086       --  Similarly, certain actions need to be elaborated at the completion
6087       --  of elaboration of the library unit (notably the statement that sets
6088       --  the Boolean flag indicating that elaboration is complete).
6089
6090       --  The third item not reflected in the syntax is pragmas that appear
6091       --  after the compilation unit. As always pragmas are a problem since
6092       --  they are not part of the formal syntax, but can be stuck into the
6093       --  source following a set of ad hoc rules, and we have to find an ad
6094       --  hoc way of sticking them into the tree. For pragmas that appear
6095       --  before the library unit, we just consider them to be part of the
6096       --  context clause, and pragmas can appear in the Context_Items list
6097       --  of the compilation unit. However, pragmas can also appear after
6098       --  the library item.
6099
6100       --  To deal with all these problems, we create an auxiliary node for
6101       --  a compilation unit, referenced from the N_Compilation_Unit node,
6102       --  that contains these items.
6103
6104       --  N_Compilation_Unit
6105       --  Sloc points to first token of defining unit name
6106       --  Library_Unit (Node4-Sem) corresponding/parent spec/body
6107       --  Context_Items (List1) context items and pragmas preceding unit
6108       --  Private_Present (Flag15) set if library unit has private keyword
6109       --  Unit (Node2) library item or subunit
6110       --  Aux_Decls_Node (Node5) points to the N_Compilation_Unit_Aux node
6111       --  Has_No_Elaboration_Code (Flag17-Sem)
6112       --  Body_Required (Flag13-Sem) set for spec if body is required
6113       --  Acts_As_Spec (Flag4-Sem) flag for subprogram body with no spec
6114       --  Context_Pending (Flag16-Sem)
6115       --  First_Inlined_Subprogram (Node3-Sem)
6116       --  Has_Pragma_Suppress_All (Flag14-Sem)
6117
6118       --  N_Compilation_Unit_Aux
6119       --  Sloc is a copy of the Sloc from the N_Compilation_Unit node
6120       --  Declarations (List2) (set to No_List if no global declarations)
6121       --  Actions (List1) (set to No_List if no actions)
6122       --  Pragmas_After (List5) pragmas after unit (set to No_List if none)
6123       --  Config_Pragmas (List4) config pragmas (set to Empty_List if none)
6124       --  Default_Storage_Pool (Node3-Sem)
6125
6126       --------------------------
6127       -- 10.1.1  Library Item --
6128       --------------------------
6129
6130       --  LIBRARY_ITEM ::=
6131       --    [private] LIBRARY_UNIT_DECLARATION
6132       --  | LIBRARY_UNIT_BODY
6133       --  | [private] LIBRARY_UNIT_RENAMING_DECLARATION
6134
6135       --  Note: PRIVATE is not allowed in Ada 83 mode
6136
6137       --  There is no explicit node in the tree for library item, instead
6138       --  the declaration or body, and the flag for private if present,
6139       --  appear in the N_Compilation_Unit node.
6140
6141       --------------------------------------
6142       -- 10.1.1  Library Unit Declaration --
6143       --------------------------------------
6144
6145       --  LIBRARY_UNIT_DECLARATION ::=
6146       --    SUBPROGRAM_DECLARATION | PACKAGE_DECLARATION
6147       --  | GENERIC_DECLARATION    | GENERIC_INSTANTIATION
6148
6149       -----------------------------------------------
6150       -- 10.1.1  Library Unit Renaming Declaration --
6151       -----------------------------------------------
6152
6153       --  LIBRARY_UNIT_RENAMING_DECLARATION ::=
6154       --    PACKAGE_RENAMING_DECLARATION
6155       --  | GENERIC_RENAMING_DECLARATION
6156       --  | SUBPROGRAM_RENAMING_DECLARATION
6157
6158       -------------------------------
6159       -- 10.1.1  Library unit body --
6160       -------------------------------
6161
6162       --  LIBRARY_UNIT_BODY ::= SUBPROGRAM_BODY | PACKAGE_BODY
6163
6164       ------------------------------
6165       -- 10.1.1  Parent Unit Name --
6166       ------------------------------
6167
6168       --  PARENT_UNIT_NAME ::= NAME
6169
6170       ----------------------------
6171       -- 10.1.2  Context clause --
6172       ----------------------------
6173
6174       --  CONTEXT_CLAUSE ::= {CONTEXT_ITEM}
6175
6176       --  The context clause can include pragmas, and any pragmas that appear
6177       --  before the context clause proper (i.e. all configuration pragmas,
6178       --  also appear at the front of this list).
6179
6180       --------------------------
6181       -- 10.1.2  Context_Item --
6182       --------------------------
6183
6184       --  CONTEXT_ITEM ::= WITH_CLAUSE | USE_CLAUSE  | WITH_TYPE_CLAUSE
6185
6186       -------------------------
6187       -- 10.1.2  With clause --
6188       -------------------------
6189
6190       --  WITH_CLAUSE ::=
6191       --    with library_unit_NAME {,library_unit_NAME};
6192
6193       --  A separate With clause is built for each name, so that we have
6194       --  a Corresponding_Spec field for each with'ed spec. The flags
6195       --  First_Name and Last_Name are used to reconstruct the exact
6196       --  source form. When a list of names appears in one with clause,
6197       --  the first name in the list has First_Name set, and the last
6198       --  has Last_Name set. If the with clause has only one name, then
6199       --  both of the flags First_Name and Last_Name are set in this name.
6200
6201       --  Note: in the case of implicit with's that are installed by the
6202       --  Rtsfind routine, Implicit_With is set, and the Sloc is typically
6203       --  set to Standard_Location, but it is incorrect to test the Sloc
6204       --  to find out if a with clause is implicit, test the flag instead.
6205
6206       --  N_With_Clause
6207       --  Sloc points to first token of library unit name
6208       --  Withed_Body (Node1-Sem)
6209       --  Name (Node2)
6210       --  Next_Implicit_With (Node3-Sem)
6211       --  Library_Unit (Node4-Sem)
6212       --  Corresponding_Spec (Node5-Sem)
6213       --  First_Name (Flag5) (set to True if first name or only one name)
6214       --  Last_Name (Flag6) (set to True if last name or only one name)
6215       --  Context_Installed (Flag13-Sem)
6216       --  Elaborate_Present (Flag4-Sem)
6217       --  Elaborate_All_Present (Flag14-Sem)
6218       --  Elaborate_All_Desirable (Flag9-Sem)
6219       --  Elaborate_Desirable (Flag11-Sem)
6220       --  Private_Present (Flag15) set if with_clause has private keyword
6221       --  Implicit_With (Flag16-Sem)
6222       --  Implicit_With_From_Instantiation (Flag12-Sem)
6223       --  Limited_Present (Flag17) set if LIMITED is present
6224       --  Limited_View_Installed (Flag18-Sem)
6225       --  Unreferenced_In_Spec (Flag7-Sem)
6226       --  No_Entities_Ref_In_Spec (Flag8-Sem)
6227
6228       --  Note: Limited_Present and Limited_View_Installed are used to support
6229       --  the implementation of Ada 2005 (AI-50217).
6230
6231       --  Similarly, Private_Present is used to support the implementation of
6232       --  Ada 2005 (AI-50262).
6233
6234       ----------------------
6235       -- With_Type clause --
6236       ----------------------
6237
6238       --  This is a GNAT extension, used to implement mutually recursive
6239       --  types declared in different packages.
6240
6241       --  Note: this is now obsolete. The functionality of this construct
6242       --  is now implemented by the Ada 2005 limited_with_clause.
6243
6244       ---------------------
6245       -- 10.2  Body stub --
6246       ---------------------
6247
6248       --  BODY_STUB ::=
6249       --    SUBPROGRAM_BODY_STUB
6250       --  | PACKAGE_BODY_STUB
6251       --  | TASK_BODY_STUB
6252       --  | PROTECTED_BODY_STUB
6253
6254       ----------------------------------
6255       -- 10.1.3  Subprogram Body Stub --
6256       ----------------------------------
6257
6258       --  SUBPROGRAM_BODY_STUB ::=
6259       --    SUBPROGRAM_SPECIFICATION is separate
6260       --      [ASPECT_SPECIFICATION];
6261
6262       --  N_Subprogram_Body_Stub
6263       --  Sloc points to FUNCTION or PROCEDURE
6264       --  Specification (Node1)
6265       --  Corresponding_Spec_Of_Stub (Node2-Sem)
6266       --  Library_Unit (Node4-Sem) points to the subunit
6267       --  Corresponding_Body (Node5-Sem)
6268
6269       -------------------------------
6270       -- 10.1.3  Package Body Stub --
6271       -------------------------------
6272
6273       --  PACKAGE_BODY_STUB ::=
6274       --    package body DEFINING_IDENTIFIER is separate
6275       --      [ASPECT_SPECIFICATION];
6276
6277       --  N_Package_Body_Stub
6278       --  Sloc points to PACKAGE
6279       --  Defining_Identifier (Node1)
6280       --  Corresponding_Spec_Of_Stub (Node2-Sem)
6281       --  Library_Unit (Node4-Sem) points to the subunit
6282       --  Corresponding_Body (Node5-Sem)
6283
6284       ----------------------------
6285       -- 10.1.3  Task Body Stub --
6286       ----------------------------
6287
6288       --  TASK_BODY_STUB ::=
6289       --    task body DEFINING_IDENTIFIER is separate
6290       --      [ASPECT_SPECIFICATION];
6291
6292       --  N_Task_Body_Stub
6293       --  Sloc points to TASK
6294       --  Defining_Identifier (Node1)
6295       --  Corresponding_Spec_Of_Stub (Node2-Sem)
6296       --  Library_Unit (Node4-Sem) points to the subunit
6297       --  Corresponding_Body (Node5-Sem)
6298
6299       ---------------------------------
6300       -- 10.1.3  Protected Body Stub --
6301       ---------------------------------
6302
6303       --  PROTECTED_BODY_STUB ::=
6304       --    protected body DEFINING_IDENTIFIER is separate
6305       --      [ASPECT_SPECIFICATION];
6306
6307       --  Note: protected body stubs are not allowed in Ada 83 mode
6308
6309       --  N_Protected_Body_Stub
6310       --  Sloc points to PROTECTED
6311       --  Defining_Identifier (Node1)
6312       --  Corresponding_Spec_Of_Stub (Node2-Sem)
6313       --  Library_Unit (Node4-Sem) points to the subunit
6314       --  Corresponding_Body (Node5-Sem)
6315
6316       ---------------------
6317       -- 10.1.3  Subunit --
6318       ---------------------
6319
6320       --  SUBUNIT ::= separate (PARENT_UNIT_NAME) PROPER_BODY
6321
6322       --  N_Subunit
6323       --  Sloc points to SEPARATE
6324       --  Name (Node2) is the name of the parent unit
6325       --  Proper_Body (Node1) is the subunit body
6326       --  Corresponding_Stub (Node3-Sem) is the stub declaration for the unit.
6327
6328       ---------------------------------
6329       -- 11.1  Exception Declaration --
6330       ---------------------------------
6331
6332       --  EXCEPTION_DECLARATION ::= DEFINING_IDENTIFIER_LIST : exception
6333       --    [ASPECT_SPECIFICATIONS];
6334
6335       --  For consistency with object declarations etc., the parser converts
6336       --  the case of multiple identifiers being declared to a series of
6337       --  declarations in which the expression is copied, using the More_Ids
6338       --  and Prev_Ids flags to remember the source form as described in the
6339       --  section on "Handling of Defining Identifier Lists".
6340
6341       --  N_Exception_Declaration
6342       --  Sloc points to EXCEPTION
6343       --  Defining_Identifier (Node1)
6344       --  Expression (Node3-Sem)
6345       --  Renaming_Exception (Node2-Sem)
6346       --  More_Ids (Flag5) (set to False if no more identifiers in list)
6347       --  Prev_Ids (Flag6) (set to False if no previous identifiers in list)
6348
6349       ------------------------------------------
6350       -- 11.2  Handled Sequence Of Statements --
6351       ------------------------------------------
6352
6353       --  HANDLED_SEQUENCE_OF_STATEMENTS ::=
6354       --      SEQUENCE_OF_STATEMENTS
6355       --    [exception
6356       --      EXCEPTION_HANDLER
6357       --      {EXCEPTION_HANDLER}]
6358       --    [at end
6359       --      cleanup_procedure_call (param, param, param, ...);]
6360
6361       --  The AT END phrase is a GNAT extension to provide for cleanups. It is
6362       --  used only internally currently, but is considered to be syntactic.
6363       --  At the moment, the only cleanup action allowed is a single call to
6364       --  a parameterless procedure, and the Identifier field of the node is
6365       --  the procedure to be called. The cleanup action occurs whenever the
6366       --  sequence of statements is left for any reason. The possible reasons
6367       --  are:
6368       --      1. reaching the end of the sequence
6369       --      2. exit, return, or goto
6370       --      3. exception or abort
6371       --  For some back ends, such as gcc with ZCX, "at end" is implemented
6372       --  entirely in the back end. In this case, a handled sequence of
6373       --  statements with an "at end" cannot also have exception handlers.
6374       --  For other back ends, such as gcc with SJLJ and .NET, the
6375       --  implementation is split between the front end and back end; the front
6376       --  end implements 3, and the back end implements 1 and 2. In this case,
6377       --  if there is an "at end", the front end inserts the appropriate
6378       --  exception handler, and this handler takes precedence over "at end"
6379       --  in case of exception.
6380
6381       --  The inserted exception handler is of the form:
6382
6383       --     when all others =>
6384       --        cleanup;
6385       --        raise;
6386
6387       --  where cleanup is the procedure to be called. The reason we do this is
6388       --  so that the front end can handle the necessary entries in the
6389       --  exception tables, and other exception handler actions required as
6390       --  part of the normal handling for exception handlers.
6391
6392       --  The AT END cleanup handler protects only the sequence of statements
6393       --  (not the associated declarations of the parent), just like exception
6394       --  handlers. The big difference is that the cleanup procedure is called
6395       --  on either a normal or an abnormal exit from the statement sequence.
6396
6397       --  Note: the list of Exception_Handlers can contain pragmas as well
6398       --  as actual handlers. In practice these pragmas can only occur at
6399       --  the start of the list, since any pragmas occurring later on will
6400       --  be included in the statement list of the corresponding handler.
6401
6402       --  Note: although in the Ada syntax, the sequence of statements in
6403       --  a handled sequence of statements can only contain statements, we
6404       --  allow free mixing of declarations and statements in the resulting
6405       --  expanded tree. This is for example used to deal with the case of
6406       --  a cleanup procedure that must handle declarations as well as the
6407       --  statements of a block.
6408
6409       --  N_Handled_Sequence_Of_Statements
6410       --  Sloc points to first token of first statement
6411       --  Statements (List3)
6412       --  End_Label (Node4) (set to Empty if expander generated)
6413       --  Exception_Handlers (List5) (set to No_List if none present)
6414       --  At_End_Proc (Node1) (set to Empty if no clean up procedure)
6415       --  First_Real_Statement (Node2-Sem)
6416
6417       --  Note: the parent always contains a Declarations field which contains
6418       --  declarations associated with the handled sequence of statements. This
6419       --  is true even in the case of an accept statement (see description of
6420       --  the N_Accept_Statement node).
6421
6422       --  End_Label refers to the containing construct
6423
6424       -----------------------------
6425       -- 11.2  Exception Handler --
6426       -----------------------------
6427
6428       --  EXCEPTION_HANDLER ::=
6429       --    when [CHOICE_PARAMETER_SPECIFICATION :]
6430       --      EXCEPTION_CHOICE {| EXCEPTION_CHOICE} =>
6431       --        SEQUENCE_OF_STATEMENTS
6432
6433       --  Note: choice parameter specification is not allowed in Ada 83 mode
6434
6435       --  N_Exception_Handler
6436       --  Sloc points to WHEN
6437       --  Choice_Parameter (Node2) (set to Empty if not present)
6438       --  Exception_Choices (List4)
6439       --  Statements (List3)
6440       --  Exception_Label (Node5-Sem) (set to Empty of not present)
6441       --  Local_Raise_Statements (Elist1-Sem) (set to No_Elist if not present)
6442       --  Local_Raise_Not_OK (Flag7-Sem)
6443       --  Has_Local_Raise (Flag8-Sem)
6444
6445       ------------------------------------------
6446       -- 11.2  Choice parameter specification --
6447       ------------------------------------------
6448
6449       --  CHOICE_PARAMETER_SPECIFICATION ::= DEFINING_IDENTIFIER
6450
6451       ----------------------------
6452       -- 11.2  Exception Choice --
6453       ----------------------------
6454
6455       --  EXCEPTION_CHOICE ::= exception_NAME | others
6456
6457       --  Except in the case of OTHERS, no explicit node appears in the tree
6458       --  for exception choice. Instead the exception name appears directly.
6459       --  An OTHERS choice is represented by a N_Others_Choice node (see
6460       --  section 3.8.1.
6461
6462       --  Note: for the exception choice created for an at end handler, the
6463       --  exception choice is an N_Others_Choice node with All_Others set.
6464
6465       ---------------------------
6466       -- 11.3  Raise Statement --
6467       ---------------------------
6468
6469       --  RAISE_STATEMENT ::= raise [exception_NAME];
6470
6471       --  In Ada 2005, we have
6472
6473       --  RAISE_STATEMENT ::=
6474       --    raise; | raise exception_NAME [with string_EXPRESSION];
6475
6476       --  N_Raise_Statement
6477       --  Sloc points to RAISE
6478       --  Name (Node2) (set to Empty if no exception name present)
6479       --  Expression (Node3) (set to Empty if no expression present)
6480       --  From_At_End (Flag4-Sem)
6481
6482       ----------------------------
6483       -- 11.3  Raise Expression --
6484       ----------------------------
6485
6486       --  RAISE_EXPRESSION ::= raise exception_NAME [with string_EXPRESSION]
6487
6488       --  N_Raise_Expression
6489       --  Sloc points to RAISE
6490       --  Name (Node2) (always present)
6491       --  Expression (Node3) (set to Empty if no expression present)
6492       --  Convert_To_Return_False (Flag13-Sem)
6493       --  plus fields for expression
6494
6495       -------------------------------
6496       -- 12.1  Generic Declaration --
6497       -------------------------------
6498
6499       --  GENERIC_DECLARATION ::=
6500       --    GENERIC_SUBPROGRAM_DECLARATION | GENERIC_PACKAGE_DECLARATION
6501
6502       ------------------------------------------
6503       -- 12.1  Generic Subprogram Declaration --
6504       ------------------------------------------
6505
6506       --  GENERIC_SUBPROGRAM_DECLARATION ::=
6507       --    GENERIC_FORMAL_PART SUBPROGRAM_SPECIFICATION
6508       --      [ASPECT_SPECIFICATIONS];
6509
6510       --  Note: Generic_Formal_Declarations can include pragmas
6511
6512       --  N_Generic_Subprogram_Declaration
6513       --  Sloc points to GENERIC
6514       --  Specification (Node1) subprogram specification
6515       --  Corresponding_Body (Node5-Sem)
6516       --  Generic_Formal_Declarations (List2) from generic formal part
6517       --  Parent_Spec (Node4-Sem)
6518
6519       ---------------------------------------
6520       -- 12.1  Generic Package Declaration --
6521       ---------------------------------------
6522
6523       --  GENERIC_PACKAGE_DECLARATION ::=
6524       --    GENERIC_FORMAL_PART PACKAGE_SPECIFICATION
6525       --      [ASPECT_SPECIFICATIONS];
6526
6527       --  Note: when we do generics right, the Activation_Chain_Entity entry
6528       --  for this node can be removed (since the expander won't see generic
6529       --  units any more)???.
6530
6531       --  Note: Generic_Formal_Declarations can include pragmas
6532
6533       --  N_Generic_Package_Declaration
6534       --  Sloc points to GENERIC
6535       --  Specification (Node1) package specification
6536       --  Corresponding_Body (Node5-Sem)
6537       --  Generic_Formal_Declarations (List2) from generic formal part
6538       --  Parent_Spec (Node4-Sem)
6539       --  Activation_Chain_Entity (Node3-Sem)
6540
6541       -------------------------------
6542       -- 12.1  Generic Formal Part --
6543       -------------------------------
6544
6545       --  GENERIC_FORMAL_PART ::=
6546       --    generic {GENERIC_FORMAL_PARAMETER_DECLARATION | USE_CLAUSE}
6547
6548       ------------------------------------------------
6549       -- 12.1  Generic Formal Parameter Declaration --
6550       ------------------------------------------------
6551
6552       --  GENERIC_FORMAL_PARAMETER_DECLARATION ::=
6553       --    FORMAL_OBJECT_DECLARATION
6554       --  | FORMAL_TYPE_DECLARATION
6555       --  | FORMAL_SUBPROGRAM_DECLARATION
6556       --  | FORMAL_PACKAGE_DECLARATION
6557
6558       ---------------------------------
6559       -- 12.3  Generic Instantiation --
6560       ---------------------------------
6561
6562       --  GENERIC_INSTANTIATION ::=
6563       --    package DEFINING_PROGRAM_UNIT_NAME is
6564       --      new generic_package_NAME [GENERIC_ACTUAL_PART]
6565       --        [ASPECT_SPECIFICATIONS];
6566       --  | [[not] overriding]
6567       --    procedure DEFINING_PROGRAM_UNIT_NAME is
6568       --      new generic_procedure_NAME [GENERIC_ACTUAL_PART]
6569       --        [ASPECT_SPECIFICATIONS];
6570       --  | [[not] overriding]
6571       --    function DEFINING_DESIGNATOR is
6572       --      new generic_function_NAME [GENERIC_ACTUAL_PART]
6573       --        [ASPECT_SPECIFICATIONS];
6574
6575       --  N_Package_Instantiation
6576       --  Sloc points to PACKAGE
6577       --  Defining_Unit_Name (Node1)
6578       --  Name (Node2)
6579       --  Generic_Associations (List3) (set to No_List if no
6580       --   generic actual part)
6581       --  Parent_Spec (Node4-Sem)
6582       --  Instance_Spec (Node5-Sem)
6583       --  ABE_Is_Certain (Flag18-Sem)
6584
6585       --  N_Procedure_Instantiation
6586       --  Sloc points to PROCEDURE
6587       --  Defining_Unit_Name (Node1)
6588       --  Name (Node2)
6589       --  Parent_Spec (Node4-Sem)
6590       --  Generic_Associations (List3) (set to No_List if no
6591       --   generic actual part)
6592       --  Instance_Spec (Node5-Sem)
6593       --  Must_Override (Flag14) set if overriding indicator present
6594       --  Must_Not_Override (Flag15) set if not_overriding indicator present
6595       --  ABE_Is_Certain (Flag18-Sem)
6596
6597       --  N_Function_Instantiation
6598       --  Sloc points to FUNCTION
6599       --  Defining_Unit_Name (Node1)
6600       --  Name (Node2)
6601       --  Generic_Associations (List3) (set to No_List if no
6602       --   generic actual part)
6603       --  Parent_Spec (Node4-Sem)
6604       --  Instance_Spec (Node5-Sem)
6605       --  Must_Override (Flag14) set if overriding indicator present
6606       --  Must_Not_Override (Flag15) set if not_overriding indicator present
6607       --  ABE_Is_Certain (Flag18-Sem)
6608
6609       --  Note: overriding indicator is an Ada 2005 feature
6610
6611       -------------------------------
6612       -- 12.3  Generic Actual Part --
6613       -------------------------------
6614
6615       --  GENERIC_ACTUAL_PART ::=
6616       --    (GENERIC_ASSOCIATION {, GENERIC_ASSOCIATION})
6617
6618       -------------------------------
6619       -- 12.3  Generic Association --
6620       -------------------------------
6621
6622       --  GENERIC_ASSOCIATION ::=
6623       --    [generic_formal_parameter_SELECTOR_NAME =>]
6624
6625       --  Note: unlike the procedure call case, a generic association node
6626       --  is generated for every association, even if no formal parameter
6627       --  selector name is present. In this case the parser will leave the
6628       --  Selector_Name field set to Empty, to be filled in later by the
6629       --  semantic pass.
6630
6631       --  In Ada 2005, a formal may be associated with a box, if the
6632       --  association is part of the list of actuals for a formal package.
6633       --  If the association is given by  OTHERS => <>, the association is
6634       --  an N_Others_Choice.
6635
6636       --  N_Generic_Association
6637       --  Sloc points to first token of generic association
6638       --  Selector_Name (Node2) (set to Empty if no formal
6639       --   parameter selector name)
6640       --  Explicit_Generic_Actual_Parameter (Node1) (Empty if box present)
6641       --  Box_Present (Flag15) (for formal_package associations with a box)
6642
6643       ---------------------------------------------
6644       -- 12.3  Explicit Generic Actual Parameter --
6645       ---------------------------------------------
6646
6647       --  EXPLICIT_GENERIC_ACTUAL_PARAMETER ::=
6648       --    EXPRESSION      | variable_NAME   | subprogram_NAME
6649       --  | entry_NAME      | SUBTYPE_MARK    | package_instance_NAME
6650
6651       -------------------------------------
6652       -- 12.4  Formal Object Declaration --
6653       -------------------------------------
6654
6655       --  FORMAL_OBJECT_DECLARATION ::=
6656       --    DEFINING_IDENTIFIER_LIST :
6657       --      MODE [NULL_EXCLUSION] SUBTYPE_MARK [:= DEFAULT_EXPRESSION]
6658       --        [ASPECT_SPECIFICATIONS];
6659       --  | DEFINING_IDENTIFIER_LIST :
6660       --      MODE ACCESS_DEFINITION [:= DEFAULT_EXPRESSION]
6661       --        [ASPECT_SPECIFICATIONS];
6662
6663       --  Although the syntax allows multiple identifiers in the list, the
6664       --  semantics is as though successive declarations were given with
6665       --  identical type definition and expression components. To simplify
6666       --  semantic processing, the parser represents a multiple declaration
6667       --  case as a sequence of single declarations, using the More_Ids and
6668       --  Prev_Ids flags to preserve the original source form as described
6669       --  in the section on "Handling of Defining Identifier Lists".
6670
6671       --  N_Formal_Object_Declaration
6672       --  Sloc points to first identifier
6673       --  Defining_Identifier (Node1)
6674       --  In_Present (Flag15)
6675       --  Out_Present (Flag17)
6676       --  Null_Exclusion_Present (Flag11) (set to False if not present)
6677       --  Subtype_Mark (Node4) (set to Empty if not present)
6678       --  Access_Definition (Node3) (set to Empty if not present)
6679       --  Default_Expression (Node5) (set to Empty if no default expression)
6680       --  More_Ids (Flag5) (set to False if no more identifiers in list)
6681       --  Prev_Ids (Flag6) (set to False if no previous identifiers in list)
6682
6683       -----------------------------------
6684       -- 12.5  Formal Type Declaration --
6685       -----------------------------------
6686
6687       --  FORMAL_TYPE_DECLARATION ::=
6688       --    type DEFINING_IDENTIFIER [DISCRIMINANT_PART]
6689       --      is FORMAL_TYPE_DEFINITION
6690       --        [ASPECT_SPECIFICATIONS];
6691       --  | type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [is tagged]
6692
6693       --  N_Formal_Type_Declaration
6694       --  Sloc points to TYPE
6695       --  Defining_Identifier (Node1)
6696       --  Formal_Type_Definition (Node3)
6697       --  Discriminant_Specifications (List4) (set to No_List if no
6698       --   discriminant part)
6699       --  Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
6700
6701       ----------------------------------
6702       -- 12.5  Formal type definition --
6703       ----------------------------------
6704
6705       --  FORMAL_TYPE_DEFINITION ::=
6706       --    FORMAL_PRIVATE_TYPE_DEFINITION
6707       --  | FORMAL_DERIVED_TYPE_DEFINITION
6708       --  | FORMAL_DISCRETE_TYPE_DEFINITION
6709       --  | FORMAL_SIGNED_INTEGER_TYPE_DEFINITION
6710       --  | FORMAL_MODULAR_TYPE_DEFINITION
6711       --  | FORMAL_FLOATING_POINT_DEFINITION
6712       --  | FORMAL_ORDINARY_FIXED_POINT_DEFINITION
6713       --  | FORMAL_DECIMAL_FIXED_POINT_DEFINITION
6714       --  | FORMAL_ARRAY_TYPE_DEFINITION
6715       --  | FORMAL_ACCESS_TYPE_DEFINITION
6716       --  | FORMAL_INTERFACE_TYPE_DEFINITION
6717       --  | FORMAL_INCOMPLETE_TYPE_DEFINITION
6718
6719       --  The Ada 2012 syntax introduces two new non-terminals:
6720       --  Formal_{Complete,Incomplete}_Type_Declaration just to introduce
6721       --  the latter category. Here we introduce an incomplete type definition
6722       --  in order to preserve as much as possible the existing structure.
6723
6724       ---------------------------------------------
6725       -- 12.5.1  Formal Private Type Definition --
6726       ---------------------------------------------
6727
6728       --  FORMAL_PRIVATE_TYPE_DEFINITION ::=
6729       --    [[abstract] tagged] [limited] private
6730
6731       --  Note: TAGGED is not allowed in Ada 83 mode
6732
6733       --  N_Formal_Private_Type_Definition
6734       --  Sloc points to PRIVATE
6735       --  Uninitialized_Variable (Node3-Sem)
6736       --  Abstract_Present (Flag4)
6737       --  Tagged_Present (Flag15)
6738       --  Limited_Present (Flag17)
6739
6740       --------------------------------------------
6741       -- 12.5.1  Formal Derived Type Definition --
6742       --------------------------------------------
6743
6744       --  FORMAL_DERIVED_TYPE_DEFINITION ::=
6745       --    [abstract] [limited | synchronized]
6746       --       new SUBTYPE_MARK [[and INTERFACE_LIST] with private]
6747       --  Note: this construct is not allowed in Ada 83 mode
6748
6749       --  N_Formal_Derived_Type_Definition
6750       --  Sloc points to NEW
6751       --  Subtype_Mark (Node4)
6752       --  Private_Present (Flag15)
6753       --  Abstract_Present (Flag4)
6754       --  Limited_Present (Flag17)
6755       --  Synchronized_Present (Flag7)
6756       --  Interface_List (List2) (set to No_List if none)
6757
6758       -----------------------------------------------
6759       -- 12.5.1  Formal Incomplete Type Definition --
6760       -----------------------------------------------
6761
6762       --  FORMAL_INCOMPLETE_TYPE_DEFINITION ::= [tagged]
6763
6764       --  N_Formal_Incomplete_Type_Definition
6765       --  Sloc points to identifier of parent
6766       --  Tagged_Present (Flag15)
6767
6768       ---------------------------------------------
6769       -- 12.5.2  Formal Discrete Type Definition --
6770       ---------------------------------------------
6771
6772       --  FORMAL_DISCRETE_TYPE_DEFINITION ::= (<>)
6773
6774       --  N_Formal_Discrete_Type_Definition
6775       --  Sloc points to (
6776
6777       ---------------------------------------------------
6778       -- 12.5.2  Formal Signed Integer Type Definition --
6779       ---------------------------------------------------
6780
6781       --  FORMAL_SIGNED_INTEGER_TYPE_DEFINITION ::= range <>
6782
6783       --  N_Formal_Signed_Integer_Type_Definition
6784       --  Sloc points to RANGE
6785
6786       --------------------------------------------
6787       -- 12.5.2  Formal Modular Type Definition --
6788       --------------------------------------------
6789
6790       --  FORMAL_MODULAR_TYPE_DEFINITION ::= mod <>
6791
6792       --  N_Formal_Modular_Type_Definition
6793       --  Sloc points to MOD
6794
6795       ----------------------------------------------
6796       -- 12.5.2  Formal Floating Point Definition --
6797       ----------------------------------------------
6798
6799       --  FORMAL_FLOATING_POINT_DEFINITION ::= digits <>
6800
6801       --  N_Formal_Floating_Point_Definition
6802       --  Sloc points to DIGITS
6803
6804       ----------------------------------------------------
6805       -- 12.5.2  Formal Ordinary Fixed Point Definition --
6806       ----------------------------------------------------
6807
6808       --  FORMAL_ORDINARY_FIXED_POINT_DEFINITION ::= delta <>
6809
6810       --  N_Formal_Ordinary_Fixed_Point_Definition
6811       --  Sloc points to DELTA
6812
6813       ---------------------------------------------------
6814       -- 12.5.2  Formal Decimal Fixed Point Definition --
6815       ---------------------------------------------------
6816
6817       --  FORMAL_DECIMAL_FIXED_POINT_DEFINITION ::= delta <> digits <>
6818
6819       --  Note: formal decimal fixed point definition not allowed in Ada 83
6820
6821       --  N_Formal_Decimal_Fixed_Point_Definition
6822       --  Sloc points to DELTA
6823
6824       ------------------------------------------
6825       -- 12.5.3  Formal Array Type Definition --
6826       ------------------------------------------
6827
6828       --  FORMAL_ARRAY_TYPE_DEFINITION ::= ARRAY_TYPE_DEFINITION
6829
6830       -------------------------------------------
6831       -- 12.5.4  Formal Access Type Definition --
6832       -------------------------------------------
6833
6834       --  FORMAL_ACCESS_TYPE_DEFINITION ::= ACCESS_TYPE_DEFINITION
6835
6836       ----------------------------------------------
6837       -- 12.5.5  Formal Interface Type Definition --
6838       ----------------------------------------------
6839
6840       --  FORMAL_INTERFACE_TYPE_DEFINITION ::= INTERFACE_TYPE_DEFINITION
6841
6842       -----------------------------------------
6843       -- 12.6  Formal Subprogram Declaration --
6844       -----------------------------------------
6845
6846       --  FORMAL_SUBPROGRAM_DECLARATION ::=
6847       --    FORMAL_CONCRETE_SUBPROGRAM_DECLARATION
6848       --  | FORMAL_ABSTRACT_SUBPROGRAM_DECLARATION
6849
6850       --------------------------------------------------
6851       -- 12.6  Formal Concrete Subprogram Declaration --
6852       --------------------------------------------------
6853
6854       --  FORMAL_CONCRETE_SUBPROGRAM_DECLARATION ::=
6855       --    with SUBPROGRAM_SPECIFICATION [is SUBPROGRAM_DEFAULT]
6856       --      [ASPECT_SPECIFICATIONS];
6857
6858       --  N_Formal_Concrete_Subprogram_Declaration
6859       --  Sloc points to WITH
6860       --  Specification (Node1)
6861       --  Default_Name (Node2) (set to Empty if no subprogram default)
6862       --  Box_Present (Flag15)
6863
6864       --  Note: if no subprogram default is present, then Name is set
6865       --  to Empty, and Box_Present is False.
6866
6867       --------------------------------------------------
6868       -- 12.6  Formal Abstract Subprogram Declaration --
6869       --------------------------------------------------
6870
6871       --  FORMAL_ABSTRACT_SUBPROGRAM_DECLARATION ::=
6872       --    with SUBPROGRAM_SPECIFICATION is abstract [SUBPROGRAM_DEFAULT]
6873       --      [ASPECT_SPECIFICATIONS];
6874
6875       --  N_Formal_Abstract_Subprogram_Declaration
6876       --  Sloc points to WITH
6877       --  Specification (Node1)
6878       --  Default_Name (Node2) (set to Empty if no subprogram default)
6879       --  Box_Present (Flag15)
6880
6881       --  Note: if no subprogram default is present, then Name is set
6882       --  to Empty, and Box_Present is False.
6883
6884       ------------------------------
6885       -- 12.6  Subprogram Default --
6886       ------------------------------
6887
6888       --  SUBPROGRAM_DEFAULT ::= DEFAULT_NAME | <>
6889
6890       --  There is no separate node in the tree for a subprogram default.
6891       --  Instead the parent (N_Formal_Concrete_Subprogram_Declaration
6892       --  or N_Formal_Abstract_Subprogram_Declaration) node contains the
6893       --  default name or box indication, as needed.
6894
6895       ------------------------
6896       -- 12.6  Default Name --
6897       ------------------------
6898
6899       --  DEFAULT_NAME ::= NAME
6900
6901       --------------------------------------
6902       -- 12.7  Formal Package Declaration --
6903       --------------------------------------
6904
6905       --  FORMAL_PACKAGE_DECLARATION ::=
6906       --    with package DEFINING_IDENTIFIER
6907       --      is new generic_package_NAME FORMAL_PACKAGE_ACTUAL_PART
6908       --        [ASPECT_SPECIFICATIONS];
6909
6910       --  Note: formal package declarations not allowed in Ada 83 mode
6911
6912       --  N_Formal_Package_Declaration
6913       --  Sloc points to WITH
6914       --  Defining_Identifier (Node1)
6915       --  Name (Node2)
6916       --  Generic_Associations (List3) (set to No_List if (<>) case or
6917       --   empty generic actual part)
6918       --  Box_Present (Flag15)
6919       --  Instance_Spec (Node5-Sem)
6920       --  ABE_Is_Certain (Flag18-Sem)
6921
6922       --------------------------------------
6923       -- 12.7  Formal Package Actual Part --
6924       --------------------------------------
6925
6926       --  FORMAL_PACKAGE_ACTUAL_PART ::=
6927       --    ([OTHERS] => <>)
6928       --    | [GENERIC_ACTUAL_PART]
6929       --    (FORMAL_PACKAGE_ASSOCIATION {. FORMAL_PACKAGE_ASSOCIATION}
6930
6931       --  FORMAL_PACKAGE_ASSOCIATION ::=
6932       --   GENERIC_ASSOCIATION
6933       --  | GENERIC_FORMAL_PARAMETER_SELECTOR_NAME => <>
6934
6935       --  There is no explicit node in the tree for a formal package actual
6936       --  part. Instead the information appears in the parent node (i.e. the
6937       --  formal package declaration node itself).
6938
6939       --  There is no explicit node for a formal package association. All of
6940       --  them are represented either by a generic association, possibly with
6941       --  Box_Present, or by an N_Others_Choice.
6942
6943       ---------------------------------
6944       -- 13.1  Representation clause --
6945       ---------------------------------
6946
6947       --  REPRESENTATION_CLAUSE ::=
6948       --    ATTRIBUTE_DEFINITION_CLAUSE
6949       --  | ENUMERATION_REPRESENTATION_CLAUSE
6950       --  | RECORD_REPRESENTATION_CLAUSE
6951       --  | AT_CLAUSE
6952
6953       ----------------------
6954       -- 13.1  Local Name --
6955       ----------------------
6956
6957       --  LOCAL_NAME :=
6958       --    DIRECT_NAME
6959       --  | DIRECT_NAME'ATTRIBUTE_DESIGNATOR
6960       --  | library_unit_NAME
6961
6962       --  The construct DIRECT_NAME'ATTRIBUTE_DESIGNATOR appears in the tree
6963       --  as an attribute reference, which has essentially the same form.
6964
6965       ---------------------------------------
6966       -- 13.3  Attribute definition clause --
6967       ---------------------------------------
6968
6969       --  ATTRIBUTE_DEFINITION_CLAUSE ::=
6970       --    for LOCAL_NAME'ATTRIBUTE_DESIGNATOR use EXPRESSION;
6971       --  | for LOCAL_NAME'ATTRIBUTE_DESIGNATOR use NAME;
6972
6973       --  In Ada 83, the expression must be a simple expression and the
6974       --  local name must be a direct name.
6975
6976       --  Note: the only attribute definition clause that is processed by
6977       --  gigi is an address clause. For all other cases, the information
6978       --  is extracted by the front end and either results in setting entity
6979       --  information, e.g. Esize for the Size clause, or in appropriate
6980       --  expansion actions (e.g. in the case of Storage_Size).
6981
6982       --  For an address clause, Gigi constructs the appropriate addressing
6983       --  code. It also ensures that no aliasing optimizations are made
6984       --  for the object for which the address clause appears.
6985
6986       --  Note: for an address clause used to achieve an overlay:
6987
6988       --    A : Integer;
6989       --    B : Integer;
6990       --    for B'Address use A'Address;
6991
6992       --  the above rule means that Gigi will ensure that no optimizations
6993       --  will be made for B that would violate the implementation advice
6994       --  of RM 13.3(19). However, this advice applies only to B and not
6995       --  to A, which seems unfortunate. The GNAT front end will mark the
6996       --  object A as volatile to also prevent unwanted optimization
6997       --  assumptions based on no aliasing being made for B.
6998
6999       --  N_Attribute_Definition_Clause
7000       --  Sloc points to FOR
7001       --  Name (Node2) the local name
7002       --  Chars (Name1) the identifier name from the attribute designator
7003       --  Expression (Node3) the expression or name
7004       --  Entity (Node4-Sem)
7005       --  Next_Rep_Item (Node5-Sem)
7006       --  From_At_Mod (Flag4-Sem)
7007       --  Check_Address_Alignment (Flag11-Sem)
7008       --  From_Aspect_Specification (Flag13-Sem)
7009       --  Is_Delayed_Aspect (Flag14-Sem)
7010       --  Address_Warning_Posted (Flag18-Sem)
7011
7012       --  Note: if From_Aspect_Specification is set, then Sloc points to the
7013       --  aspect name, and Entity is resolved already to reference the entity
7014       --  to which the aspect applies.
7015
7016       -----------------------------------
7017       -- 13.3.1  Aspect Specifications --
7018       -----------------------------------
7019
7020       --  We modify the RM grammar here, the RM grammar is:
7021
7022       --     ASPECT_SPECIFICATION ::=
7023       --       with ASPECT_MARK [=> ASPECT_DEFINITION] {,
7024       --            ASPECT_MARK [=> ASPECT_DEFINITION] }
7025
7026       --     ASPECT_MARK ::= aspect_IDENTIFIER['Class]
7027
7028       --     ASPECT_DEFINITION ::= NAME | EXPRESSION
7029
7030       --  That's inconvenient, since there is no non-terminal name for a single
7031       --  entry in the list of aspects. So we use this grammar instead:
7032
7033       --     ASPECT_SPECIFICATIONS ::=
7034       --       with ASPECT_SPECIFICATION {, ASPECT_SPECIFICATION}
7035
7036       --     ASPECT_SPECIFICATION =>
7037       --       ASPECT_MARK [=> ASPECT_DEFINITION]
7038
7039       --     ASPECT_MARK ::= aspect_IDENTIFIER['Class]
7040
7041       --     ASPECT_DEFINITION ::= NAME | EXPRESSION
7042
7043       --  See separate package Aspects for details on the incorporation of
7044       --  these nodes into the tree, and how aspect specifications for a given
7045       --  declaration node are associated with that node.
7046
7047       --  N_Aspect_Specification
7048       --  Sloc points to aspect identifier
7049       --  Identifier (Node1) aspect identifier
7050       --  Aspect_Rep_Item (Node2-Sem)
7051       --  Expression (Node3) Aspect_Definition (set to Empty if none)
7052       --  Entity (Node4-Sem) entity to which the aspect applies
7053       --  Class_Present (Flag6) Set if 'Class present
7054       --  Next_Rep_Item (Node5-Sem)
7055       --  Split_PPC (Flag17) Set if split pre/post attribute
7056       --  Is_Boolean_Aspect (Flag16-Sem)
7057       --  Is_Checked (Flag11-Sem)
7058       --  Is_Delayed_Aspect (Flag14-Sem)
7059       --  Is_Disabled (Flag15-Sem)
7060       --  Is_Ignored (Flag9-Sem)
7061
7062       --  Note: Aspect_Specification is an Ada 2012 feature
7063
7064       --  Note: The Identifier serves to identify the aspect involved (it
7065       --  is the aspect whose name corresponds to the Chars field). This
7066       --  means that the other fields of this identifier are unused, and
7067       --  in particular we use the Entity field of this identifier to save
7068       --  a copy of the expression for visibility analysis, see spec of
7069       --  Sem_Ch13 for full details of this usage.
7070
7071       --  In the case of aspects of the form xxx'Class, the aspect identifier
7072       --  is for xxx, and Class_Present is set to True.
7073
7074       --  Note: When a Pre or Post aspect specification is processed, it is
7075       --  broken into AND THEN sections. The left most section has Split_PPC
7076       --  set to False, indicating that it is the original specification (e.g.
7077       --  for posting errors). For the other sections, Split_PPC is set True.
7078
7079       ---------------------------------------------
7080       -- 13.4  Enumeration representation clause --
7081       ---------------------------------------------
7082
7083       --  ENUMERATION_REPRESENTATION_CLAUSE ::=
7084       --    for first_subtype_LOCAL_NAME use ENUMERATION_AGGREGATE;
7085
7086       --  In Ada 83, the name must be a direct name
7087
7088       --  N_Enumeration_Representation_Clause
7089       --  Sloc points to FOR
7090       --  Identifier (Node1) direct name
7091       --  Array_Aggregate (Node3)
7092       --  Next_Rep_Item (Node5-Sem)
7093
7094       ---------------------------------
7095       -- 13.4  Enumeration aggregate --
7096       ---------------------------------
7097
7098       --  ENUMERATION_AGGREGATE ::= ARRAY_AGGREGATE
7099
7100       ------------------------------------------
7101       -- 13.5.1  Record representation clause --
7102       ------------------------------------------
7103
7104       --  RECORD_REPRESENTATION_CLAUSE ::=
7105       --    for first_subtype_LOCAL_NAME use
7106       --      record [MOD_CLAUSE]
7107       --        {COMPONENT_CLAUSE}
7108       --      end record;
7109
7110       --  Gigi restriction: Mod_Clause is always Empty (if present it is
7111       --  replaced by a corresponding Alignment attribute definition clause).
7112
7113       --  Note: Component_Clauses can include pragmas
7114
7115       --  N_Record_Representation_Clause
7116       --  Sloc points to FOR
7117       --  Identifier (Node1) direct name
7118       --  Mod_Clause (Node2) (set to Empty if no mod clause present)
7119       --  Component_Clauses (List3)
7120       --  Next_Rep_Item (Node5-Sem)
7121
7122       ------------------------------
7123       -- 13.5.1  Component clause --
7124       ------------------------------
7125
7126       --  COMPONENT_CLAUSE ::=
7127       --    component_LOCAL_NAME at POSITION
7128       --      range FIRST_BIT .. LAST_BIT;
7129
7130       --  N_Component_Clause
7131       --  Sloc points to AT
7132       --  Component_Name (Node1) points to Name or Attribute_Reference
7133       --  Position (Node2)
7134       --  First_Bit (Node3)
7135       --  Last_Bit (Node4)
7136
7137       ----------------------
7138       -- 13.5.1  Position --
7139       ----------------------
7140
7141       --  POSITION ::= static_EXPRESSION
7142
7143       -----------------------
7144       -- 13.5.1  First_Bit --
7145       -----------------------
7146
7147       --  FIRST_BIT ::= static_SIMPLE_EXPRESSION
7148
7149       ----------------------
7150       -- 13.5.1  Last_Bit --
7151       ----------------------
7152
7153       --  LAST_BIT ::= static_SIMPLE_EXPRESSION
7154
7155       --------------------------
7156       -- 13.8  Code statement --
7157       --------------------------
7158
7159       --  CODE_STATEMENT ::= QUALIFIED_EXPRESSION;
7160
7161       --  Note: in GNAT, the qualified expression has the form
7162
7163       --    Asm_Insn'(Asm (...));
7164
7165       --  See package System.Machine_Code in file s-maccod.ads for details on
7166       --  the allowed parameters to Asm. There are two ways this node can
7167       --  arise, as a code statement, in which case the expression is the
7168       --  qualified expression, or as a result of the expansion of an intrinsic
7169       --  call to the Asm or Asm_Input procedure.
7170
7171       --  N_Code_Statement
7172       --  Sloc points to first token of the expression
7173       --  Expression (Node3)
7174
7175       --  Note: package Exp_Code contains an abstract functional interface
7176       --  for use by Gigi in accessing the data from N_Code_Statement nodes.
7177
7178       ------------------------
7179       -- 13.12  Restriction --
7180       ------------------------
7181
7182       --  RESTRICTION ::=
7183       --    restriction_IDENTIFIER
7184       --  | restriction_parameter_IDENTIFIER => EXPRESSION
7185
7186       --  There is no explicit node for restrictions. Instead the restriction
7187       --  appears in normal pragma syntax as a pragma argument association,
7188       --  which has the same syntactic form.
7189
7190       --------------------------
7191       -- B.2  Shift Operators --
7192       --------------------------
7193
7194       --  Calls to the intrinsic shift functions are converted to one of
7195       --  the following shift nodes, which have the form of normal binary
7196       --  operator names. Note that for a given shift operation, one node
7197       --  covers all possible types, as for normal operators.
7198
7199       --  Note: it is perfectly permissible for the expander to generate
7200       --  shift operation nodes directly, in which case they will be analyzed
7201       --  and parsed in the usual manner.
7202
7203       --  Sprint syntax: shift-function-name!(expr, count)
7204
7205       --  Note: the Left_Opnd field holds the first argument (the value to
7206       --  be shifted). The Right_Opnd field holds the second argument (the
7207       --  shift count). The Chars field is the name of the intrinsic function.
7208
7209       --  N_Op_Rotate_Left
7210       --  Sloc points to the function name
7211       --  plus fields for binary operator
7212       --  plus fields for expression
7213       --  Shift_Count_OK (Flag4-Sem)
7214
7215       --  N_Op_Rotate_Right
7216       --  Sloc points to the function name
7217       --  plus fields for binary operator
7218       --  plus fields for expression
7219       --  Shift_Count_OK (Flag4-Sem)
7220
7221       --  N_Op_Shift_Left
7222       --  Sloc points to the function name
7223       --  plus fields for binary operator
7224       --  plus fields for expression
7225       --  Shift_Count_OK (Flag4-Sem)
7226
7227       --  N_Op_Shift_Right_Arithmetic
7228       --  Sloc points to the function name
7229       --  plus fields for binary operator
7230       --  plus fields for expression
7231       --  Shift_Count_OK (Flag4-Sem)
7232
7233       --  N_Op_Shift_Right
7234       --  Sloc points to the function name
7235       --  plus fields for binary operator
7236       --  plus fields for expression
7237       --  Shift_Count_OK (Flag4-Sem)
7238
7239       --  Note: N_Op_Rotate_Left, N_Op_Rotate_Right, N_Shift_Right_Arithmetic
7240       --  never appear in the expanded tree if Modify_Tree_For_C mode is set.
7241
7242       --  Note: For N_Op_Shift_Left and N_Op_Shift_Right, the right operand is
7243       --  always less than the word size if Modify_Tree_For_C mode is set.
7244
7245    --------------------------
7246    -- Obsolescent Features --
7247    --------------------------
7248
7249       --  The syntax descriptions and tree nodes for obsolescent features are
7250       --  grouped together, corresponding to their location in appendix I in
7251       --  the RM. However, parsing and semantic analysis for these constructs
7252       --  is located in an appropriate chapter (see individual notes).
7253
7254       ---------------------------
7255       -- J.3  Delta Constraint --
7256       ---------------------------
7257
7258       --  Note: the parse routine for this construct is located in section
7259       --  3.5.9 of Par-Ch3, and semantic analysis is in Sem_Ch3, which is
7260       --  where delta constraint logically belongs.
7261
7262       --  DELTA_CONSTRAINT ::= DELTA static_EXPRESSION [RANGE_CONSTRAINT]
7263
7264       --  N_Delta_Constraint
7265       --  Sloc points to DELTA
7266       --  Delta_Expression (Node3)
7267       --  Range_Constraint (Node4) (set to Empty if not present)
7268
7269       --------------------
7270       -- J.7  At Clause --
7271       --------------------
7272
7273       --  AT_CLAUSE ::= for DIRECT_NAME use at EXPRESSION;
7274
7275       --  Note: the parse routine for this construct is located in Par-Ch13,
7276       --  and the semantic analysis is in Sem_Ch13, where at clause logically
7277       --  belongs if it were not obsolescent.
7278
7279       --  Note: in Ada 83 the expression must be a simple expression
7280
7281       --  Gigi restriction: This node never appears, it is rewritten as an
7282       --  address attribute definition clause.
7283
7284       --  N_At_Clause
7285       --  Sloc points to FOR
7286       --  Identifier (Node1)
7287       --  Expression (Node3)
7288
7289       ---------------------
7290       -- J.8  Mod clause --
7291       ---------------------
7292
7293       --  MOD_CLAUSE ::= at mod static_EXPRESSION;
7294
7295       --  Note: the parse routine for this construct is located in Par-Ch13,
7296       --  and the semantic analysis is in Sem_Ch13, where mod clause logically
7297       --  belongs if it were not obsolescent.
7298
7299       --  Note: in Ada 83, the expression must be a simple expression
7300
7301       --  Gigi restriction: this node never appears. It is replaced
7302       --  by a corresponding Alignment attribute definition clause.
7303
7304       --  Note: pragmas can appear before and after the MOD_CLAUSE since
7305       --  its name has "clause" in it. This is rather strange, but is quite
7306       --  definitely specified. The pragmas before are collected in the
7307       --  Pragmas_Before field of the mod clause node itself, and pragmas
7308       --  after are simply swallowed up in the list of component clauses.
7309
7310       --  N_Mod_Clause
7311       --  Sloc points to AT
7312       --  Expression (Node3)
7313       --  Pragmas_Before (List4) Pragmas before mod clause (No_List if none)
7314
7315    --------------------
7316    -- Semantic Nodes --
7317    --------------------
7318
7319    --  These semantic nodes are used to hold additional semantic information.
7320    --  They are inserted into the tree as a result of semantic processing.
7321    --  Although there are no legitimate source syntax constructions that
7322    --  correspond directly to these nodes, we need a source syntax for the
7323    --  reconstructed tree printed by Sprint, and the node descriptions here
7324    --  show this syntax.
7325
7326       ------------------------
7327       -- Compound Statement --
7328       ------------------------
7329
7330       --  This node is created by the analyzer/expander to handle some
7331       --  expansion cases where a sequence of actions needs to be captured
7332       --  within a single node (which acts as a container and allows the
7333       --  entire list of actions to be moved around as a whole) appearing
7334       --  in a sequence of statements.
7335
7336       --  This is the statement counterpart to the expression node
7337       --  N_Expression_With_Actions.
7338
7339       --  The required semantics is that the set of actions is executed in
7340       --  the order in which it appears, as though they appeared by themselves
7341       --  in the enclosing list of declarations of statements. Unlike what
7342       --  happens when using an N_Block_Statement, no new scope is introduced.
7343
7344       --  Note: for the time being, this is used only as a transient
7345       --  representation during expansion, and all compound statement nodes
7346       --  must be exploded back to their constituent statements before handing
7347       --  the tree to the back end.
7348
7349       --  Sprint syntax:  do
7350       --                    action;
7351       --                    action;
7352       --                    ...
7353       --                    action;
7354       --                  end;
7355
7356       --  N_Compound_Statement
7357       --  Actions (List1)
7358
7359       --------------
7360       -- Contract --
7361       --------------
7362
7363       --  This node is used to hold the various parts of an entry, subprogram
7364       --  [body] or package [body] contract, in particular:
7365       --     Abstract states declared by a package declaration
7366       --     Contract cases that apply to a subprogram
7367       --     Dependency relations of inputs and output of a subprogram
7368       --     Global annotations classifying data as input or output
7369       --     Initialization sequences for a package declaration
7370       --     Pre- and postconditions that apply to a subprogram
7371
7372       --  The node appears in an entry and [generic] subprogram [body] entity.
7373
7374       --  Sprint syntax:  <none> as the node should not appear in the tree, but
7375       --                  only attached to an entry or [generic] subprogram
7376       --                  entity.
7377
7378       --  N_Contract
7379       --  Sloc points to the subprogram's name
7380       --  Pre_Post_Conditions (Node1) (set to Empty if none)
7381       --  Contract_Test_Cases (Node2) (set to Empty if none)
7382       --  Classifications (Node3) (set to Empty if none)
7383
7384       --  Pre_Post_Conditions contains a collection of pragmas that correspond
7385       --  to pre- and postconditions associated with an entry or a subprogram
7386       --  [body or stub]. The pragmas can either come from source or be the
7387       --  byproduct of aspect expansion. Currently the following pragmas appear
7388       --  in this list:
7389       --    Post
7390       --    Postcondition
7391       --    Pre
7392       --    Precondition
7393       --    Refined_Post
7394       --  The ordering in the list is in LIFO fashion.
7395
7396       --  Note that there might be multiple preconditions or postconditions
7397       --  in this list, either because they come from separate pragmas in the
7398       --  source, or because a Pre (resp. Post) aspect specification has been
7399       --  broken into AND THEN sections. See Split_PPC for details.
7400
7401       --  Contract_Test_Cases contains a collection of pragmas that correspond
7402       --  to aspects/pragmas Contract_Cases and Test_Case. The ordering in the
7403       --  list is in LIFO fashion.
7404
7405       --  Classifications contains pragmas that either declare, categorize or
7406       --  establish dependencies between subprogram or package inputs and
7407       --  outputs. Currently the following pragmas appear in this list:
7408       --    Abstract_States
7409       --    Async_Readers
7410       --    Async_Writers
7411       --    Depends
7412       --    Effective_Reads
7413       --    Effective_Writes
7414       --    Global
7415       --    Initial_Condition
7416       --    Initializes
7417       --    Part_Of
7418       --    Refined_Depends
7419       --    Refined_Global
7420       --    Refined_States
7421       --  The ordering is in LIFO fashion.
7422
7423       -------------------
7424       -- Expanded Name --
7425       -------------------
7426
7427       --  The N_Expanded_Name node is used to represent a selected component
7428       --  name that has been resolved to an expanded name. The semantic phase
7429       --  replaces N_Selected_Component nodes that represent names by the use
7430       --  of this node, leaving the N_Selected_Component node used only when
7431       --  the prefix is a record or protected type.
7432
7433       --  The fields of the N_Expanded_Name node are layed out identically
7434       --  to those of the N_Selected_Component node, allowing conversion of
7435       --  an expanded name node to a selected component node to be done
7436       --  easily, see Sinfo.CN.Change_Selected_Component_To_Expanded_Name.
7437
7438       --  There is no special sprint syntax for an expanded name
7439
7440       --  N_Expanded_Name
7441       --  Sloc points to the period
7442       --  Chars (Name1) copy of Chars field of selector name
7443       --  Prefix (Node3)
7444       --  Selector_Name (Node2)
7445       --  Entity (Node4-Sem)
7446       --  Associated_Node (Node4-Sem)
7447       --  Has_Private_View (Flag11-Sem) set in generic units.
7448       --  Redundant_Use (Flag13-Sem)
7449       --  Atomic_Sync_Required (Flag14-Sem)
7450       --  plus fields for expression
7451
7452       -----------------------------
7453       -- Expression With Actions --
7454       -----------------------------
7455
7456       --  This node is created by the analyzer/expander to handle some
7457       --  expansion cases, notably short circuit forms where there are
7458       --  actions associated with the right-hand side operand.
7459
7460       --  The N_Expression_With_Actions node represents an expression with
7461       --  an associated set of actions (which are executable statements and
7462       --  declarations, as might occur in a handled statement sequence).
7463
7464       --  The required semantics is that the set of actions is executed in
7465       --  the order in which it appears just before the expression is
7466       --  evaluated (and these actions must only be executed if the value
7467       --  of the expression is evaluated). The node is considered to be
7468       --  a subexpression, whose value is the value of the Expression after
7469       --  executing all the actions.
7470
7471       --  If the actions contain declarations, then these declarations may
7472       --  be referenced within the expression. However note that there is
7473       --  no proper scope associated with the expression-with-action, so the
7474       --  back-end will elaborate them in the context of the enclosing scope.
7475
7476       --  Sprint syntax:  do
7477       --                    action;
7478       --                    action;
7479       --                    ...
7480       --                    action;
7481       --                  in expression end
7482
7483       --  N_Expression_With_Actions
7484       --  Actions (List1)
7485       --  Expression (Node3)
7486       --  plus fields for expression
7487
7488       --  Note: In the final generated tree presented to the code generator,
7489       --  the actions list is always non-null, since there is no point in this
7490       --  node if the actions are Empty. During semantic analysis there are
7491       --  cases where it is convenient to temporarily generate an empty actions
7492       --  list. This arises in cases where we create such an empty actions
7493       --  list, and it may or may not end up being a place where additional
7494       --  actions are inserted. The expander removes such empty cases after
7495       --  the expression of the node is fully analyzed and expanded, at which
7496       --  point it is safe to remove it, since no more actions can be inserted.
7497
7498       --  Note: In Modify_Tree_For_C, we never generate any declarations in
7499       --  the action list, which can contain only non-declarative statements.
7500
7501       --------------------
7502       -- Free Statement --
7503       --------------------
7504
7505       --  The N_Free_Statement node is generated as a result of a call to an
7506       --  instantiation of Unchecked_Deallocation. The instantiation of this
7507       --  generic is handled specially and generates this node directly.
7508
7509       --  Sprint syntax: free expression
7510
7511       --  N_Free_Statement
7512       --  Sloc is copied from the unchecked deallocation call
7513       --  Expression (Node3) argument to unchecked deallocation call
7514       --  Storage_Pool (Node1-Sem)
7515       --  Procedure_To_Call (Node2-Sem)
7516       --  Actual_Designated_Subtype (Node4-Sem)
7517
7518       --  Note: in the case where a debug source file is generated, the Sloc
7519       --  for this node points to the FREE keyword in the Sprint file output.
7520
7521       -------------------
7522       -- Freeze Entity --
7523       -------------------
7524
7525       --  This node marks the point in a declarative part at which an entity
7526       --  declared therein becomes frozen. The expander places initialization
7527       --  procedures for types at those points. Gigi uses the freezing point
7528       --  to elaborate entities that may depend on previous private types.
7529
7530       --  See the section in Einfo "Delayed Freezing and Elaboration" for
7531       --  a full description of the use of this node.
7532
7533       --  The Entity field points back to the entity for the type (whose
7534       --  Freeze_Node field points back to this freeze node).
7535
7536       --  The Actions field contains a list of declarations and statements
7537       --  generated by the expander which are associated with the freeze
7538       --  node, and are elaborated as though the freeze node were replaced
7539       --  by this sequence of actions.
7540
7541       --  Note: the Sloc field in the freeze node references a construct
7542       --  associated with the freezing point. This is used for posting
7543       --  messages in some error/warning situations, e.g. the case where
7544       --  a primitive operation of a tagged type is declared too late.
7545
7546       --  Sprint syntax: freeze entity-name [
7547       --                   freeze actions
7548       --                 ]
7549
7550       --  N_Freeze_Entity
7551       --  Sloc points near freeze point (see above special note)
7552       --  Entity (Node4-Sem)
7553       --  Access_Types_To_Process (Elist2-Sem) (set to No_Elist if none)
7554       --  TSS_Elist (Elist3-Sem) (set to No_Elist if no associated TSS's)
7555       --  Actions (List1) (set to No_List if no freeze actions)
7556       --  First_Subtype_Link (Node5-Sem) (set to Empty if no link)
7557
7558       --  The Actions field holds actions associated with the freeze. These
7559       --  actions are elaborated at the point where the type is frozen.
7560
7561       --  Note: in the case where a debug source file is generated, the Sloc
7562       --  for this node points to the FREEZE keyword in the Sprint file output.
7563
7564       ---------------------------
7565       -- Freeze Generic Entity --
7566       ---------------------------
7567
7568       --  The freeze point of an entity indicates the point at which the
7569       --  information needed to generate code for the entity is complete.
7570       --  The freeze node for an entity triggers expander activities, such as
7571       --  build initialization procedures, and backend activities, such as
7572       --  completing the elaboration of packages.
7573
7574       --  For entities declared within a generic unit, for which no code is
7575       --  generated, the freeze point is not equally meaningful. However, in
7576       --  Ada 2012 several semantic checks on declarations must be delayed to
7577       --  the freeze point, and we need to include such a mark in the tree to
7578       --  trigger these checks. The Freeze_Generic_Entity node plays no other
7579       --  role, and is ignored by the expander and the back-end.
7580
7581       --  Sprint syntax: freeze_generic entity-name
7582
7583       --  N_Freeze_Generic_Entity
7584       --  Sloc points near freeze point
7585       --  Entity (Node4-Sem)
7586
7587       --------------------------------
7588       -- Implicit Label Declaration --
7589       --------------------------------
7590
7591       --  An implicit label declaration is created for every occurrence of a
7592       --  label on a statement or a label on a block or loop. It is chained
7593       --  in the declarations of the innermost enclosing block as specified
7594       --  in RM section 5.1 (3).
7595
7596       --  The Defining_Identifier is the actual identifier for the statement
7597       --  identifier. Note that the occurrence of the label is a reference, NOT
7598       --  the defining occurrence. The defining occurrence occurs at the head
7599       --  of the innermost enclosing block, and is represented by this node.
7600
7601       --  Note: from the grammar, this might better be called an implicit
7602       --  statement identifier declaration, but the term we choose seems
7603       --  friendlier, since at least informally statement identifiers are
7604       --  called labels in both cases (i.e. when used in labels, and when
7605       --  used as the identifiers of blocks and loops).
7606
7607       --  Note: although this is logically a semantic node, since it does not
7608       --  correspond directly to a source syntax construction, these nodes are
7609       --  actually created by the parser in a post pass done just after parsing
7610       --  is complete, before semantic analysis is started (see Par.Labl).
7611
7612       --  Sprint syntax: labelname : label;
7613
7614       --  N_Implicit_Label_Declaration
7615       --  Sloc points to the << token for a statement identifier, or to the
7616       --    LOOP, DECLARE, or BEGIN token for a loop or block identifier
7617       --  Defining_Identifier (Node1)
7618       --  Label_Construct (Node2-Sem)
7619
7620       --  Note: in the case where a debug source file is generated, the Sloc
7621       --  for this node points to the label name in the generated declaration.
7622
7623       ---------------------
7624       -- Itype Reference --
7625       ---------------------
7626
7627       --  This node is used to create a reference to an Itype. The only purpose
7628       --  is to make sure the Itype is defined if this is the first reference.
7629
7630       --  A typical use of this node is when an Itype is to be referenced in
7631       --  two branches of an IF statement. In this case it is important that
7632       --  the first use of the Itype not be inside the conditional, since then
7633       --  it might not be defined if the other branch of the IF is taken, in
7634       --  the case where the definition generates elaboration code.
7635
7636       --  The Itype field points to the referenced Itype
7637
7638       --  Sprint syntax: reference itype-name
7639
7640       --  N_Itype_Reference
7641       --  Sloc points to the node generating the reference
7642       --  Itype (Node1-Sem)
7643
7644       --  Note: in the case where a debug source file is generated, the Sloc
7645       --  for this node points to the REFERENCE keyword in the file output.
7646
7647       ---------------------
7648       -- Raise xxx Error --
7649       ---------------------
7650
7651       --  One of these nodes is created during semantic analysis to replace
7652       --  a node for an expression that is determined to definitely raise
7653       --  the corresponding exception.
7654
7655       --  The N_Raise_xxx_Error node may also stand alone in place
7656       --  of a declaration or statement, in which case it simply causes
7657       --  the exception to be raised (i.e. it is equivalent to a raise
7658       --  statement that raises the corresponding exception). This use
7659       --  is distinguished by the fact that the Etype in this case is
7660       --  Standard_Void_Type; in the subexpression case, the Etype is the
7661       --  same as the type of the subexpression which it replaces.
7662
7663       --  If Condition is empty, then the raise is unconditional. If the
7664       --  Condition field is non-empty, it is a boolean expression which
7665       --  is first evaluated, and the exception is raised only if the
7666       --  value of the expression is True. In the unconditional case, the
7667       --  creation of this node is usually accompanied by a warning message
7668       --  error. The creation of this node will usually be accompanied by a
7669       --  message (unless it appears within the right operand of a short
7670       --  circuit form whose left argument is static and decisively
7671       --  eliminates elaboration of the raise operation. The condition field
7672       --  can ONLY be present when the node is used as a statement form, it
7673       --  may NOT be present in the case where the node appears within an
7674       --  expression.
7675
7676       --  The exception is generated with a message that contains the
7677       --  file name and line number, and then appended text. The Reason
7678       --  code shows the text to be added. The Reason code is an element
7679       --  of the type Types.RT_Exception_Code, and indicates both the
7680       --  message to be added, and the exception to be raised (which must
7681       --  match the node type). The value is stored by storing a Uint which
7682       --  is the Pos value of the enumeration element in this type.
7683
7684       --  Gigi restriction: This expander ensures that the type of the
7685       --  Condition field is always Standard.Boolean, even if the type
7686       --  in the source is some non-standard boolean type.
7687
7688       --  Sprint syntax: [xxx_error "msg"]
7689       --             or: [xxx_error when condition "msg"]
7690
7691       --  N_Raise_Constraint_Error
7692       --  Sloc references related construct
7693       --  Condition (Node1) (set to Empty if no condition)
7694       --  Reason (Uint3)
7695       --  plus fields for expression
7696
7697       --  N_Raise_Program_Error
7698       --  Sloc references related construct
7699       --  Condition (Node1) (set to Empty if no condition)
7700       --  Reason (Uint3)
7701       --  plus fields for expression
7702
7703       --  N_Raise_Storage_Error
7704       --  Sloc references related construct
7705       --  Condition (Node1) (set to Empty if no condition)
7706       --  Reason (Uint3)
7707       --  plus fields for expression
7708
7709       --  Note: Sloc is copied from the expression generating the exception.
7710       --  In the case where a debug source file is generated, the Sloc for
7711       --  this node points to the left bracket in the Sprint file output.
7712
7713       --  Note: the back end may be required to translate these nodes into
7714       --  appropriate goto statements. See description of N_Push/Pop_xxx_Label.
7715
7716       ---------------------------------------------
7717       -- Optimization of Exception Raise to Goto --
7718       ---------------------------------------------
7719
7720       --  In some cases, the front end will determine that any exception raised
7721       --  by the back end for a certain exception should be transformed into a
7722       --  goto statement.
7723
7724       --  There are three kinds of exceptions raised by the back end (note that
7725       --  for this purpose we consider gigi to be part of the back end in the
7726       --  gcc case):
7727
7728       --     1. Exceptions resulting from N_Raise_xxx_Error nodes
7729       --     2. Exceptions from checks triggered by Do_xxx_Check flags
7730       --     3. Other cases not specifically marked by the front end
7731
7732       --  Normally all such exceptions are translated into calls to the proper
7733       --  Rcheck_xx procedure, where xx encodes both the exception to be raised
7734       --  and the exception message.
7735
7736       --  The front end may determine that for a particular sequence of code,
7737       --  exceptions in any of these three categories for a particular builtin
7738       --  exception should result in a goto, rather than a call to Rcheck_xx.
7739       --  The exact sequence to be generated is:
7740
7741       --      Local_Raise (exception'Identity);
7742       --      goto Label
7743
7744       --  The front end marks such a sequence of code by bracketing it with
7745       --  push and pop nodes:
7746
7747       --       N_Push_xxx_Label (referencing the label)
7748       --       ...
7749       --       (code where transformation is expected for exception xxx)
7750       --       ...
7751       --       N_Pop_xxx_Label
7752
7753       --  The use of push/pop reflects the fact that such regions can properly
7754       --  nest, and one special case is a subregion in which no transformation
7755       --  is allowed. Such a region is marked by a N_Push_xxx_Label node whose
7756       --  Exception_Label field is Empty.
7757
7758       --  N_Push_Constraint_Error_Label
7759       --  Sloc references first statement in region covered
7760       --  Exception_Label (Node5-Sem)
7761
7762       --  N_Push_Program_Error_Label
7763       --  Sloc references first statement in region covered
7764       --  Exception_Label (Node5-Sem)
7765
7766       --  N_Push_Storage_Error_Label
7767       --  Sloc references first statement in region covered
7768       --  Exception_Label (Node5-Sem)
7769
7770       --  N_Pop_Constraint_Error_Label
7771       --  Sloc references last statement in region covered
7772
7773       --  N_Pop_Program_Error_Label
7774       --  Sloc references last statement in region covered
7775
7776       --  N_Pop_Storage_Error_Label
7777       --  Sloc references last statement in region covered
7778
7779       ---------------
7780       -- Reference --
7781       ---------------
7782
7783       --  For a number of purposes, we need to construct references to objects.
7784       --  These references are subsequently treated as normal access values.
7785       --  An example is the construction of the parameter block passed to a
7786       --  task entry. The N_Reference node is provided for this purpose. It is
7787       --  similar in effect to the use of the Unrestricted_Access attribute,
7788       --  and like Unrestricted_Access can be applied to objects which would
7789       --  not be valid prefixes for the Unchecked_Access attribute (e.g.
7790       --  objects which are not aliased, and slices). In addition it can be
7791       --  applied to composite type values as well as objects, including string
7792       --  values and aggregates.
7793
7794       --  Note: we use the Prefix field for this expression so that the
7795       --  resulting node can be treated using common code with the attribute
7796       --  nodes for the 'Access and related attributes. Logically it would make
7797       --  more sense to call it an Expression field, but then we would have to
7798       --  special case the treatment of the N_Reference node.
7799
7800       --  Note: evaluating a N_Reference node is guaranteed to yield a non-null
7801       --  value at run time. Therefore, it is valid to set Is_Known_Non_Null on
7802       --  a temporary initialized to a N_Reference node in order to eliminate
7803       --  superfluous access checks.
7804
7805       --  Sprint syntax: prefix'reference
7806
7807       --  N_Reference
7808       --  Sloc is copied from the expression
7809       --  Prefix (Node3)
7810       --  plus fields for expression
7811
7812       --  Note: in the case where a debug source file is generated, the Sloc
7813       --  for this node points to the quote in the Sprint file output.
7814
7815       -----------------
7816       --  SCIL Nodes --
7817       -----------------
7818
7819       --  SCIL nodes are special nodes added to the tree when the CodePeer
7820       --  mode is active. They help the CodePeer backend to locate nodes that
7821       --  require special processing. They are only generated if SCIL
7822       --  generation is enabled. A standard tree-walk will not encounter
7823       --  these nodes even if they are present; these nodes are only
7824       --  accessible via the function SCIL_LL.Get_SCIL_Node.
7825
7826       --  N_SCIL_Dispatch_Table_Tag_Init
7827       --  Sloc references a node for a tag initialization
7828       --  SCIL_Entity (Node4-Sem)
7829       --
7830       --  An N_SCIL_Dispatch_Table_Tag_Init node may be associated (via
7831       --  Get_SCIL_Node) with the N_Object_Declaration node corresponding to
7832       --  the declaration of the dispatch table for a tagged type.
7833
7834       --  N_SCIL_Dispatching_Call
7835       --  Sloc references the node of a dispatching call
7836       --  SCIL_Target_Prim (Node2-Sem)
7837       --  SCIL_Entity (Node4-Sem)
7838       --  SCIL_Controlling_Tag (Node5-Sem)
7839       --
7840       --  An N_Scil_Dispatching call node may be associated (via Get_SCIL_Node)
7841       --  with the N_Procedure_Call or N_Function_Call node (or a rewriting
7842       --  thereof) corresponding to a dispatching call.
7843
7844       --  N_SCIL_Membership_Test
7845       --  Sloc references the node of a membership test
7846       --  SCIL_Tag_Value (Node5-Sem)
7847       --  SCIL_Entity (Node4-Sem)
7848       --
7849       --  An N_Scil_Membership_Test node may be associated (via Get_SCIL_Node)
7850       --  with the N_In node (or a rewriting thereof) corresponding to a
7851       --  classwide membership test.
7852
7853       --------------------------
7854       -- Unchecked Expression --
7855       --------------------------
7856
7857       --  An unchecked expression is one that must be analyzed and resolved
7858       --  with all checks off, regardless of the current setting of scope
7859       --  suppress flags.
7860
7861       --  Sprint syntax: `(expression)
7862
7863       --  Note: this node is always removed from the tree (and replaced by
7864       --  its constituent expression) on completion of analysis, so it only
7865       --  appears in intermediate trees, and will never be seen by Gigi.
7866
7867       --  N_Unchecked_Expression
7868       --  Sloc is a copy of the Sloc of the expression
7869       --  Expression (Node3)
7870       --  plus fields for expression
7871
7872       --  Note: in the case where a debug source file is generated, the Sloc
7873       --  for this node points to the back quote in the Sprint file output.
7874
7875       -------------------------------
7876       -- Unchecked Type Conversion --
7877       -------------------------------
7878
7879       --  An unchecked type conversion node represents the semantic action
7880       --  corresponding to a call to an instantiation of Unchecked_Conversion.
7881       --  It is generated as a result of actual use of Unchecked_Conversion
7882       --  and also the expander generates unchecked type conversion nodes
7883       --  directly for expansion of complex semantic actions.
7884
7885       --  Note: an unchecked type conversion is a variable as far as the
7886       --  semantics are concerned, which is convenient for the expander.
7887       --  This does not change what Ada source programs are legal, since
7888       --  clearly a function call to an instantiation of Unchecked_Conversion
7889       --  is not a variable in any case.
7890
7891       --  Sprint syntax: subtype-mark!(expression)
7892
7893       --  N_Unchecked_Type_Conversion
7894       --  Sloc points to related node in source
7895       --  Subtype_Mark (Node4)
7896       --  Expression (Node3)
7897       --  Kill_Range_Check (Flag11-Sem)
7898       --  No_Truncation (Flag17-Sem)
7899       --  plus fields for expression
7900
7901       --  Note: in the case where a debug source file is generated, the Sloc
7902       --  for this node points to the exclamation in the Sprint file output.
7903
7904       -----------------------------------
7905       -- Validate_Unchecked_Conversion --
7906       -----------------------------------
7907
7908       --  The front end does most of the validation of unchecked conversion,
7909       --  including checking sizes (this is done after the back end is called
7910       --  to take advantage of back-annotation of calculated sizes).
7911
7912       --  The front end also deals with specific cases that are not allowed
7913       --  e.g. involving unconstrained array types.
7914
7915       --  For the case of the standard gigi backend, this means that all
7916       --  checks are done in the front end.
7917
7918       --  However, in the case of specialized back-ends, notably the JVM
7919       --  backend for JGNAT, additional requirements and restrictions apply
7920       --  to unchecked conversion, and these are most conveniently performed
7921       --  in the specialized back-end.
7922
7923       --  To accommodate this requirement, for such back ends, the following
7924       --  special node is generated recording an unchecked conversion that
7925       --  needs to be validated. The back end should post an appropriate
7926       --  error message if the unchecked conversion is invalid or warrants
7927       --  a special warning message.
7928
7929       --  Source_Type and Target_Type point to the entities for the two
7930       --  types involved in the unchecked conversion instantiation that
7931       --  is to be validated.
7932
7933       --  Sprint syntax: validate Unchecked_Conversion (source, target);
7934
7935       --  N_Validate_Unchecked_Conversion
7936       --  Sloc points to instantiation (location for warning message)
7937       --  Source_Type (Node1-Sem)
7938       --  Target_Type (Node2-Sem)
7939
7940       --  Note: in the case where a debug source file is generated, the Sloc
7941       --  for this node points to the VALIDATE keyword in the file output.
7942
7943    -----------
7944    -- Empty --
7945    -----------
7946
7947    --  Used as the contents of the Nkind field of the dummy Empty node
7948    --  and in some other situations to indicate an uninitialized value.
7949
7950    --  N_Empty
7951    --  Chars (Name1) is set to No_Name
7952
7953    -----------
7954    -- Error --
7955    -----------
7956
7957    --  Used as the contents of the Nkind field of the dummy Error node.
7958    --  Has an Etype field, which gets set to Any_Type later on, to help
7959    --  error recovery (Error_Posted is also set in the Error node).
7960
7961    --  N_Error
7962    --  Chars (Name1) is set to Error_Name
7963    --  Etype (Node5-Sem)
7964
7965    --------------------------
7966    -- Node Type Definition --
7967    --------------------------
7968
7969    --  The following is the definition of the Node_Kind type. As previously
7970    --  discussed, this is separated off to allow rearrangement of the order to
7971    --  facilitate definition of subtype ranges. The comments show the subtype
7972    --  classes which apply to each set of node kinds. The first entry in the
7973    --  comment characterizes the following list of nodes.
7974
7975    type Node_Kind is (
7976       N_Unused_At_Start,
7977
7978       --  N_Representation_Clause
7979
7980       N_At_Clause,
7981       N_Component_Clause,
7982       N_Enumeration_Representation_Clause,
7983       N_Mod_Clause,
7984       N_Record_Representation_Clause,
7985
7986       --  N_Representation_Clause, N_Has_Chars
7987
7988       N_Attribute_Definition_Clause,
7989
7990       --  N_Has_Chars
7991
7992       N_Empty,
7993       N_Pragma_Argument_Association,
7994
7995       --  N_Has_Etype, N_Has_Chars
7996
7997       --  Note: of course N_Error does not really have Etype or Chars fields,
7998       --  and any attempt to access these fields in N_Error will cause an
7999       --  error, but historically this always has been positioned so that an
8000       --  "in N_Has_Chars" or "in N_Has_Etype" test yields true for N_Error.
8001       --  Most likely this makes coding easier somewhere but still seems
8002       --  undesirable. To be investigated some time ???
8003
8004       N_Error,
8005
8006       --  N_Entity, N_Has_Etype, N_Has_Chars
8007
8008       N_Defining_Character_Literal,
8009       N_Defining_Identifier,
8010       N_Defining_Operator_Symbol,
8011
8012       --  N_Subexpr, N_Has_Etype, N_Has_Chars, N_Has_Entity
8013
8014       N_Expanded_Name,
8015
8016       --  N_Direct_Name, N_Subexpr, N_Has_Etype,
8017       --  N_Has_Chars, N_Has_Entity
8018
8019       N_Identifier,
8020       N_Operator_Symbol,
8021
8022       --  N_Direct_Name, N_Subexpr, N_Has_Etype,
8023       --  N_Has_Chars, N_Has_Entity
8024
8025       N_Character_Literal,
8026
8027       --  N_Binary_Op, N_Op, N_Subexpr,
8028       --  N_Has_Etype, N_Has_Chars, N_Has_Entity
8029
8030       N_Op_Add,
8031       N_Op_Concat,
8032       N_Op_Expon,
8033       N_Op_Subtract,
8034
8035       --  N_Binary_Op, N_Op, N_Subexpr, N_Has_Treat_Fixed_As_Integer
8036       --  N_Has_Etype, N_Has_Chars, N_Has_Entity, N_Multiplying_Operator
8037
8038       N_Op_Divide,
8039       N_Op_Mod,
8040       N_Op_Multiply,
8041       N_Op_Rem,
8042
8043       --  N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype
8044       --  N_Has_Entity, N_Has_Chars, N_Op_Boolean
8045
8046       N_Op_And,
8047
8048       --  N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype
8049       --  N_Has_Entity, N_Has_Chars, N_Op_Boolean, N_Op_Compare
8050
8051       N_Op_Eq,
8052       N_Op_Ge,
8053       N_Op_Gt,
8054       N_Op_Le,
8055       N_Op_Lt,
8056       N_Op_Ne,
8057
8058       --  N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype
8059       --  N_Has_Entity, N_Has_Chars, N_Op_Boolean
8060
8061       N_Op_Or,
8062       N_Op_Xor,
8063
8064       --  N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype,
8065       --  N_Op_Shift, N_Has_Chars, N_Has_Entity
8066
8067       N_Op_Rotate_Left,
8068       N_Op_Rotate_Right,
8069       N_Op_Shift_Left,
8070       N_Op_Shift_Right,
8071       N_Op_Shift_Right_Arithmetic,
8072
8073       --  N_Unary_Op, N_Op, N_Subexpr, N_Has_Etype,
8074       --  N_Has_Chars, N_Has_Entity
8075
8076       N_Op_Abs,
8077       N_Op_Minus,
8078       N_Op_Not,
8079       N_Op_Plus,
8080
8081       --  N_Subexpr, N_Has_Etype, N_Has_Entity
8082
8083       N_Attribute_Reference,
8084
8085       --  N_Subexpr, N_Has_Etype, N_Membership_Test
8086
8087       N_In,
8088       N_Not_In,
8089
8090       --  N_Subexpr, N_Has_Etype, N_Short_Circuit
8091
8092       N_And_Then,
8093       N_Or_Else,
8094
8095       --  N_Subexpr, N_Has_Etype, N_Subprogram_Call
8096
8097       N_Function_Call,
8098       N_Procedure_Call_Statement,
8099
8100       --  N_Subexpr, N_Has_Etype, N_Raise_xxx_Error
8101
8102       N_Raise_Constraint_Error,
8103       N_Raise_Program_Error,
8104       N_Raise_Storage_Error,
8105
8106       --  N_Subexpr, N_Has_Etype, N_Numeric_Or_String_Literal
8107
8108       N_Integer_Literal,
8109       N_Real_Literal,
8110       N_String_Literal,
8111
8112       --  N_Subexpr, N_Has_Etype
8113
8114       N_Explicit_Dereference,
8115       N_Expression_With_Actions,
8116       N_If_Expression,
8117       N_Indexed_Component,
8118       N_Null,
8119       N_Qualified_Expression,
8120       N_Quantified_Expression,
8121       N_Aggregate,
8122       N_Allocator,
8123       N_Case_Expression,
8124       N_Extension_Aggregate,
8125       N_Raise_Expression,
8126       N_Range,
8127       N_Reference,
8128       N_Selected_Component,
8129       N_Slice,
8130       N_Type_Conversion,
8131       N_Unchecked_Expression,
8132       N_Unchecked_Type_Conversion,
8133
8134       --  N_Has_Etype
8135
8136       N_Subtype_Indication,
8137
8138       --  N_Declaration
8139
8140       N_Component_Declaration,
8141       N_Entry_Declaration,
8142       N_Expression_Function,
8143       N_Formal_Object_Declaration,
8144       N_Formal_Type_Declaration,
8145       N_Full_Type_Declaration,
8146       N_Incomplete_Type_Declaration,
8147       N_Iterator_Specification,
8148       N_Loop_Parameter_Specification,
8149       N_Object_Declaration,
8150       N_Protected_Type_Declaration,
8151       N_Private_Extension_Declaration,
8152       N_Private_Type_Declaration,
8153       N_Subtype_Declaration,
8154
8155       --  N_Subprogram_Specification, N_Declaration
8156
8157       N_Function_Specification,
8158       N_Procedure_Specification,
8159
8160       --  N_Access_To_Subprogram_Definition
8161
8162       N_Access_Function_Definition,
8163       N_Access_Procedure_Definition,
8164
8165       --  N_Later_Decl_Item
8166
8167       N_Task_Type_Declaration,
8168
8169       --  N_Body_Stub, N_Later_Decl_Item
8170
8171       N_Package_Body_Stub,
8172       N_Protected_Body_Stub,
8173       N_Subprogram_Body_Stub,
8174       N_Task_Body_Stub,
8175
8176       --  N_Generic_Instantiation, N_Later_Decl_Item
8177       --  N_Subprogram_Instantiation
8178
8179       N_Function_Instantiation,
8180       N_Procedure_Instantiation,
8181
8182       --  N_Generic_Instantiation, N_Later_Decl_Item
8183
8184       N_Package_Instantiation,
8185
8186       --  N_Unit_Body, N_Later_Decl_Item, N_Proper_Body
8187
8188       N_Package_Body,
8189       N_Subprogram_Body,
8190
8191       --  N_Later_Decl_Item, N_Proper_Body
8192
8193       N_Protected_Body,
8194       N_Task_Body,
8195
8196       --  N_Later_Decl_Item
8197
8198       N_Implicit_Label_Declaration,
8199       N_Package_Declaration,
8200       N_Single_Task_Declaration,
8201       N_Subprogram_Declaration,
8202       N_Use_Package_Clause,
8203
8204       --  N_Generic_Declaration, N_Later_Decl_Item
8205
8206       N_Generic_Package_Declaration,
8207       N_Generic_Subprogram_Declaration,
8208
8209       --  N_Array_Type_Definition
8210
8211       N_Constrained_Array_Definition,
8212       N_Unconstrained_Array_Definition,
8213
8214       --  N_Renaming_Declaration
8215
8216       N_Exception_Renaming_Declaration,
8217       N_Object_Renaming_Declaration,
8218       N_Package_Renaming_Declaration,
8219       N_Subprogram_Renaming_Declaration,
8220
8221       --  N_Generic_Renaming_Declaration, N_Renaming_Declaration
8222
8223       N_Generic_Function_Renaming_Declaration,
8224       N_Generic_Package_Renaming_Declaration,
8225       N_Generic_Procedure_Renaming_Declaration,
8226
8227       --  N_Statement_Other_Than_Procedure_Call
8228
8229       N_Abort_Statement,
8230       N_Accept_Statement,
8231       N_Assignment_Statement,
8232       N_Asynchronous_Select,
8233       N_Block_Statement,
8234       N_Case_Statement,
8235       N_Code_Statement,
8236       N_Compound_Statement,
8237       N_Conditional_Entry_Call,
8238
8239       --  N_Statement_Other_Than_Procedure_Call, N_Delay_Statement
8240
8241       N_Delay_Relative_Statement,
8242       N_Delay_Until_Statement,
8243
8244       --  N_Statement_Other_Than_Procedure_Call
8245
8246       N_Entry_Call_Statement,
8247       N_Free_Statement,
8248       N_Goto_Statement,
8249       N_Loop_Statement,
8250       N_Null_Statement,
8251       N_Raise_Statement,
8252       N_Requeue_Statement,
8253       N_Simple_Return_Statement,
8254       N_Extended_Return_Statement,
8255       N_Selective_Accept,
8256       N_Timed_Entry_Call,
8257
8258       --  N_Statement_Other_Than_Procedure_Call, N_Has_Condition
8259
8260       N_Exit_Statement,
8261       N_If_Statement,
8262
8263       --  N_Has_Condition
8264
8265       N_Accept_Alternative,
8266       N_Delay_Alternative,
8267       N_Elsif_Part,
8268       N_Entry_Body_Formal_Part,
8269       N_Iteration_Scheme,
8270       N_Terminate_Alternative,
8271
8272       --  N_Formal_Subprogram_Declaration
8273
8274       N_Formal_Abstract_Subprogram_Declaration,
8275       N_Formal_Concrete_Subprogram_Declaration,
8276
8277       --  N_Push_xxx_Label, N_Push_Pop_xxx_Label
8278
8279       N_Push_Constraint_Error_Label,
8280       N_Push_Program_Error_Label,
8281       N_Push_Storage_Error_Label,
8282
8283       --  N_Pop_xxx_Label, N_Push_Pop_xxx_Label
8284
8285       N_Pop_Constraint_Error_Label,
8286       N_Pop_Program_Error_Label,
8287       N_Pop_Storage_Error_Label,
8288
8289       --  SCIL nodes
8290
8291       N_SCIL_Dispatch_Table_Tag_Init,
8292       N_SCIL_Dispatching_Call,
8293       N_SCIL_Membership_Test,
8294
8295       --  Other nodes (not part of any subtype class)
8296
8297       N_Abortable_Part,
8298       N_Abstract_Subprogram_Declaration,
8299       N_Access_Definition,
8300       N_Access_To_Object_Definition,
8301       N_Aspect_Specification,
8302       N_Case_Expression_Alternative,
8303       N_Case_Statement_Alternative,
8304       N_Compilation_Unit,
8305       N_Compilation_Unit_Aux,
8306       N_Component_Association,
8307       N_Component_Definition,
8308       N_Component_List,
8309       N_Contract,
8310       N_Derived_Type_Definition,
8311       N_Decimal_Fixed_Point_Definition,
8312       N_Defining_Program_Unit_Name,
8313       N_Delta_Constraint,
8314       N_Designator,
8315       N_Digits_Constraint,
8316       N_Discriminant_Association,
8317       N_Discriminant_Specification,
8318       N_Enumeration_Type_Definition,
8319       N_Entry_Body,
8320       N_Entry_Call_Alternative,
8321       N_Entry_Index_Specification,
8322       N_Exception_Declaration,
8323       N_Exception_Handler,
8324       N_Floating_Point_Definition,
8325       N_Formal_Decimal_Fixed_Point_Definition,
8326       N_Formal_Derived_Type_Definition,
8327       N_Formal_Discrete_Type_Definition,
8328       N_Formal_Floating_Point_Definition,
8329       N_Formal_Modular_Type_Definition,
8330       N_Formal_Ordinary_Fixed_Point_Definition,
8331       N_Formal_Package_Declaration,
8332       N_Formal_Private_Type_Definition,
8333       N_Formal_Incomplete_Type_Definition,
8334       N_Formal_Signed_Integer_Type_Definition,
8335       N_Freeze_Entity,
8336       N_Freeze_Generic_Entity,
8337       N_Generic_Association,
8338       N_Handled_Sequence_Of_Statements,
8339       N_Index_Or_Discriminant_Constraint,
8340       N_Itype_Reference,
8341       N_Label,
8342       N_Modular_Type_Definition,
8343       N_Number_Declaration,
8344       N_Ordinary_Fixed_Point_Definition,
8345       N_Others_Choice,
8346       N_Package_Specification,
8347       N_Parameter_Association,
8348       N_Parameter_Specification,
8349       N_Pragma,
8350       N_Protected_Definition,
8351       N_Range_Constraint,
8352       N_Real_Range_Specification,
8353       N_Record_Definition,
8354       N_Signed_Integer_Type_Definition,
8355       N_Single_Protected_Declaration,
8356       N_Subunit,
8357       N_Task_Definition,
8358       N_Triggering_Alternative,
8359       N_Use_Type_Clause,
8360       N_Validate_Unchecked_Conversion,
8361       N_Variant,
8362       N_Variant_Part,
8363       N_With_Clause,
8364       N_Unused_At_End);
8365
8366    for Node_Kind'Size use 8;
8367    --  The data structures in Atree assume this
8368
8369    ----------------------------
8370    -- Node Class Definitions --
8371    ----------------------------
8372
8373    subtype N_Access_To_Subprogram_Definition is Node_Kind range
8374      N_Access_Function_Definition ..
8375      N_Access_Procedure_Definition;
8376
8377    subtype N_Array_Type_Definition is Node_Kind range
8378      N_Constrained_Array_Definition ..
8379      N_Unconstrained_Array_Definition;
8380
8381    subtype N_Binary_Op is Node_Kind range
8382      N_Op_Add ..
8383      N_Op_Shift_Right_Arithmetic;
8384
8385    subtype N_Body_Stub is Node_Kind range
8386      N_Package_Body_Stub ..
8387      N_Task_Body_Stub;
8388
8389    subtype N_Declaration is Node_Kind range
8390      N_Component_Declaration ..
8391      N_Procedure_Specification;
8392    --  Note: this includes all constructs normally thought of as declarations
8393    --  except those which are separately grouped as later declarations.
8394
8395    subtype N_Delay_Statement is Node_Kind range
8396       N_Delay_Relative_Statement ..
8397       N_Delay_Until_Statement;
8398
8399    subtype N_Direct_Name is Node_Kind range
8400      N_Identifier ..
8401      N_Character_Literal;
8402
8403    subtype N_Entity is Node_Kind range
8404      N_Defining_Character_Literal ..
8405      N_Defining_Operator_Symbol;
8406
8407    subtype N_Formal_Subprogram_Declaration is Node_Kind range
8408      N_Formal_Abstract_Subprogram_Declaration ..
8409      N_Formal_Concrete_Subprogram_Declaration;
8410
8411    subtype N_Generic_Declaration is Node_Kind range
8412      N_Generic_Package_Declaration ..
8413      N_Generic_Subprogram_Declaration;
8414
8415    subtype N_Generic_Instantiation is Node_Kind range
8416      N_Function_Instantiation ..
8417      N_Package_Instantiation;
8418
8419    subtype N_Generic_Renaming_Declaration is Node_Kind range
8420      N_Generic_Function_Renaming_Declaration ..
8421      N_Generic_Procedure_Renaming_Declaration;
8422
8423    subtype N_Has_Chars is Node_Kind range
8424      N_Attribute_Definition_Clause ..
8425      N_Op_Plus;
8426
8427    subtype N_Has_Entity is Node_Kind range
8428      N_Expanded_Name ..
8429      N_Attribute_Reference;
8430    --  Nodes that have Entity fields
8431    --  Warning: DOES NOT INCLUDE N_Freeze_Entity, N_Freeze_Generic_Entity,
8432    --  N_Aspect_Specification, or N_Attribute_Definition_Clause.
8433
8434    subtype N_Has_Etype is Node_Kind range
8435      N_Error ..
8436      N_Subtype_Indication;
8437
8438    subtype N_Has_Treat_Fixed_As_Integer is Node_Kind range
8439       N_Op_Divide ..
8440       N_Op_Rem;
8441
8442    subtype N_Multiplying_Operator is Node_Kind range
8443       N_Op_Divide ..
8444       N_Op_Rem;
8445
8446    subtype N_Later_Decl_Item is Node_Kind range
8447      N_Task_Type_Declaration ..
8448      N_Generic_Subprogram_Declaration;
8449    --  Note: this is Ada 83 relevant only (see Ada 83 RM 3.9 (2)) and includes
8450    --  only those items which can appear as later declarative items. This also
8451    --  includes N_Implicit_Label_Declaration which is not specifically in the
8452    --  grammar but may appear as a valid later declarative items. It does NOT
8453    --  include N_Pragma which can also appear among later declarative items.
8454    --  It does however include N_Protected_Body, which is a bit peculiar, but
8455    --  harmless since this cannot appear in Ada 83 mode anyway.
8456
8457    subtype N_Membership_Test is Node_Kind range
8458       N_In ..
8459       N_Not_In;
8460
8461    subtype N_Numeric_Or_String_Literal is Node_Kind range
8462       N_Integer_Literal ..
8463       N_String_Literal;
8464
8465    subtype N_Op is Node_Kind range
8466      N_Op_Add ..
8467      N_Op_Plus;
8468
8469    subtype N_Op_Boolean is Node_Kind range
8470      N_Op_And ..
8471      N_Op_Xor;
8472    --  Binary operators which take operands of a boolean type, and yield
8473    --  a result of a boolean type.
8474
8475    subtype N_Op_Compare is Node_Kind range
8476      N_Op_Eq ..
8477      N_Op_Ne;
8478
8479    subtype N_Op_Shift is Node_Kind range
8480      N_Op_Rotate_Left ..
8481      N_Op_Shift_Right_Arithmetic;
8482
8483    subtype N_Proper_Body is Node_Kind range
8484      N_Package_Body ..
8485      N_Task_Body;
8486
8487    subtype N_Push_xxx_Label is Node_Kind range
8488      N_Push_Constraint_Error_Label ..
8489      N_Push_Storage_Error_Label;
8490
8491    subtype N_Pop_xxx_Label is Node_Kind range
8492      N_Pop_Constraint_Error_Label ..
8493      N_Pop_Storage_Error_Label;
8494
8495    subtype N_Push_Pop_xxx_Label is Node_Kind range
8496      N_Push_Constraint_Error_Label ..
8497      N_Pop_Storage_Error_Label;
8498
8499    subtype N_Raise_xxx_Error is Node_Kind range
8500      N_Raise_Constraint_Error ..
8501      N_Raise_Storage_Error;
8502
8503    subtype N_Renaming_Declaration is Node_Kind range
8504      N_Exception_Renaming_Declaration ..
8505      N_Generic_Procedure_Renaming_Declaration;
8506
8507    subtype N_Representation_Clause is Node_Kind range
8508      N_At_Clause ..
8509      N_Attribute_Definition_Clause;
8510
8511    subtype N_Short_Circuit is Node_Kind range
8512      N_And_Then ..
8513      N_Or_Else;
8514
8515    subtype N_SCIL_Node is Node_Kind range
8516      N_SCIL_Dispatch_Table_Tag_Init ..
8517      N_SCIL_Membership_Test;
8518
8519    subtype N_Statement_Other_Than_Procedure_Call is Node_Kind range
8520      N_Abort_Statement ..
8521      N_If_Statement;
8522    --  Note that this includes all statement types except for the cases of the
8523    --  N_Procedure_Call_Statement which is considered to be a subexpression
8524    --  (since overloading is possible, so it needs to go through the normal
8525    --  overloading resolution for expressions).
8526
8527    subtype N_Subprogram_Call is Node_Kind range
8528       N_Function_Call ..
8529       N_Procedure_Call_Statement;
8530
8531    subtype N_Subprogram_Instantiation is Node_Kind range
8532      N_Function_Instantiation ..
8533      N_Procedure_Instantiation;
8534
8535    subtype N_Has_Condition is Node_Kind range
8536      N_Exit_Statement ..
8537      N_Terminate_Alternative;
8538    --  Nodes with condition fields (does not include N_Raise_xxx_Error)
8539
8540    subtype N_Subexpr is Node_Kind range
8541      N_Expanded_Name ..
8542      N_Unchecked_Type_Conversion;
8543    --  Nodes with expression fields
8544
8545    subtype N_Subprogram_Specification is Node_Kind range
8546      N_Function_Specification ..
8547      N_Procedure_Specification;
8548
8549    subtype N_Unary_Op is Node_Kind range
8550      N_Op_Abs ..
8551      N_Op_Plus;
8552
8553    subtype N_Unit_Body is Node_Kind range
8554      N_Package_Body ..
8555        N_Subprogram_Body;
8556
8557    ---------------------------
8558    -- Node Access Functions --
8559    ---------------------------
8560
8561    --  The following functions return the contents of the indicated field of
8562    --  the node referenced by the argument, which is a Node_Id. They provide
8563    --  logical access to fields in the node which could be accessed using the
8564    --  Atree.Unchecked_Access package, but the idea is always to use these
8565    --  higher level routines which preserve strong typing. In debug mode,
8566    --  these routines check that they are being applied to an appropriate
8567    --  node, as well as checking that the node is in range.
8568
8569    function ABE_Is_Certain
8570      (N : Node_Id) return Boolean;    -- Flag18
8571
8572    function Abort_Present
8573      (N : Node_Id) return Boolean;    -- Flag15
8574
8575    function Abortable_Part
8576      (N : Node_Id) return Node_Id;    -- Node2
8577
8578    function Abstract_Present
8579      (N : Node_Id) return Boolean;    -- Flag4
8580
8581    function Accept_Handler_Records
8582      (N : Node_Id) return List_Id;    -- List5
8583
8584    function Accept_Statement
8585      (N : Node_Id) return Node_Id;    -- Node2
8586
8587    function Access_Definition
8588      (N : Node_Id) return Node_Id;    -- Node3
8589
8590    function Access_To_Subprogram_Definition
8591      (N : Node_Id) return Node_Id;    -- Node3
8592
8593    function Access_Types_To_Process
8594      (N : Node_Id) return Elist_Id;   -- Elist2
8595
8596    function Actions
8597      (N : Node_Id) return List_Id;    -- List1
8598
8599    function Activation_Chain_Entity
8600      (N : Node_Id) return Node_Id;    -- Node3
8601
8602    function Acts_As_Spec
8603      (N : Node_Id) return Boolean;    -- Flag4
8604
8605    function Actual_Designated_Subtype
8606      (N : Node_Id) return Node_Id;    -- Node4
8607
8608    function Address_Warning_Posted
8609      (N : Node_Id) return Boolean;    -- Flag18
8610
8611    function Aggregate_Bounds
8612      (N : Node_Id) return Node_Id;    -- Node3
8613
8614    function Aliased_Present
8615      (N : Node_Id) return Boolean;    -- Flag4
8616
8617    function All_Others
8618      (N : Node_Id) return Boolean;    -- Flag11
8619
8620    function All_Present
8621      (N : Node_Id) return Boolean;    -- Flag15
8622
8623    function Alternatives
8624      (N : Node_Id) return List_Id;    -- List4
8625
8626    function Ancestor_Part
8627      (N : Node_Id) return Node_Id;    -- Node3
8628
8629    function Atomic_Sync_Required
8630      (N : Node_Id) return Boolean;    -- Flag14
8631
8632    function Array_Aggregate
8633      (N : Node_Id) return Node_Id;    -- Node3
8634
8635    function Aspect_Rep_Item
8636      (N : Node_Id) return Node_Id;    -- Node2
8637
8638    function Assignment_OK
8639      (N : Node_Id) return Boolean;    -- Flag15
8640
8641    function Associated_Node
8642      (N : Node_Id) return Node_Id;    -- Node4
8643
8644    function At_End_Proc
8645      (N : Node_Id) return Node_Id;    -- Node1
8646
8647    function Attribute_Name
8648      (N : Node_Id) return Name_Id;    -- Name2
8649
8650    function Aux_Decls_Node
8651      (N : Node_Id) return Node_Id;    -- Node5
8652
8653    function Backwards_OK
8654      (N : Node_Id) return Boolean;    -- Flag6
8655
8656    function Bad_Is_Detected
8657      (N : Node_Id) return Boolean;    -- Flag15
8658
8659    function By_Ref
8660      (N : Node_Id) return Boolean;    -- Flag5
8661
8662    function Body_Required
8663      (N : Node_Id) return Boolean;    -- Flag13
8664
8665    function Body_To_Inline
8666      (N : Node_Id) return Node_Id;    -- Node3
8667
8668    function Box_Present
8669      (N : Node_Id) return Boolean;    -- Flag15
8670
8671    function Char_Literal_Value
8672      (N : Node_Id) return Uint;       -- Uint2
8673
8674    function Chars
8675      (N : Node_Id) return Name_Id;    -- Name1
8676
8677    function Check_Address_Alignment
8678      (N : Node_Id) return Boolean;    -- Flag11
8679
8680    function Choice_Parameter
8681      (N : Node_Id) return Node_Id;    -- Node2
8682
8683    function Choices
8684      (N : Node_Id) return List_Id;    -- List1
8685
8686    function Class_Present
8687      (N : Node_Id) return Boolean;    -- Flag6
8688
8689    function Classifications
8690      (N : Node_Id) return Node_Id;    -- Node3
8691
8692    function Comes_From_Extended_Return_Statement
8693      (N : Node_Id) return Boolean;    -- Flag18
8694
8695    function Compile_Time_Known_Aggregate
8696      (N : Node_Id) return Boolean;    -- Flag18
8697
8698    function Component_Associations
8699      (N : Node_Id) return List_Id;    -- List2
8700
8701    function Component_Clauses
8702      (N : Node_Id) return List_Id;    -- List3
8703
8704    function Component_Definition
8705      (N : Node_Id) return Node_Id;    -- Node4
8706
8707    function Component_Items
8708      (N : Node_Id) return List_Id;    -- List3
8709
8710    function Component_List
8711      (N : Node_Id) return Node_Id;    -- Node1
8712
8713    function Component_Name
8714      (N : Node_Id) return Node_Id;    -- Node1
8715
8716    function Componentwise_Assignment
8717      (N : Node_Id) return Boolean;    -- Flag14
8718
8719    function Condition
8720      (N : Node_Id) return Node_Id;    -- Node1
8721
8722    function Condition_Actions
8723      (N : Node_Id) return List_Id;    -- List3
8724
8725    function Config_Pragmas
8726      (N : Node_Id) return List_Id;    -- List4
8727
8728    function Constant_Present
8729      (N : Node_Id) return Boolean;    -- Flag17
8730
8731    function Constraint
8732      (N : Node_Id) return Node_Id;    -- Node3
8733
8734    function Constraints
8735      (N : Node_Id) return List_Id;    -- List1
8736
8737    function Context_Installed
8738      (N : Node_Id) return Boolean;    -- Flag13
8739
8740    function Context_Pending
8741      (N : Node_Id) return Boolean;    -- Flag16
8742
8743    function Context_Items
8744      (N : Node_Id) return List_Id;    -- List1
8745
8746    function Contract_Test_Cases
8747      (N : Node_Id) return Node_Id;    -- Node2
8748
8749    function Controlling_Argument
8750      (N : Node_Id) return Node_Id;    -- Node1
8751
8752    function Conversion_OK
8753      (N : Node_Id) return Boolean;    -- Flag14
8754
8755    function Convert_To_Return_False
8756      (N : Node_Id) return Boolean;    -- Flag13
8757
8758    function Corresponding_Aspect
8759      (N : Node_Id) return Node_Id;    -- Node3
8760
8761    function Corresponding_Body
8762      (N : Node_Id) return Node_Id;    -- Node5
8763
8764    function Corresponding_Formal_Spec
8765      (N : Node_Id) return Node_Id;    -- Node3
8766
8767    function Corresponding_Generic_Association
8768      (N : Node_Id) return Node_Id;    -- Node5
8769
8770    function Corresponding_Integer_Value
8771      (N : Node_Id) return Uint;       -- Uint4
8772
8773    function Corresponding_Spec
8774      (N : Node_Id) return Node_Id;    -- Node5
8775
8776    function Corresponding_Spec_Of_Stub
8777      (N : Node_Id) return Node_Id;    -- Node2
8778
8779    function Corresponding_Stub
8780      (N : Node_Id) return Node_Id;    -- Node3
8781
8782    function Dcheck_Function
8783      (N : Node_Id) return Entity_Id;  -- Node5
8784
8785    function Declarations
8786      (N : Node_Id) return List_Id;    -- List2
8787
8788    function Default_Expression
8789      (N : Node_Id) return Node_Id;    -- Node5
8790
8791    function Default_Storage_Pool
8792      (N : Node_Id) return Node_Id;    -- Node3
8793
8794    function Default_Name
8795      (N : Node_Id) return Node_Id;    -- Node2
8796
8797    function Defining_Identifier
8798      (N : Node_Id) return Entity_Id;  -- Node1
8799
8800    function Defining_Unit_Name
8801      (N : Node_Id) return Node_Id;    -- Node1
8802
8803    function Delay_Alternative
8804      (N : Node_Id) return Node_Id;    -- Node4
8805
8806    function Delay_Statement
8807      (N : Node_Id) return Node_Id;    -- Node2
8808
8809    function Delta_Expression
8810      (N : Node_Id) return Node_Id;    -- Node3
8811
8812    function Digits_Expression
8813      (N : Node_Id) return Node_Id;    -- Node2
8814
8815    function Discr_Check_Funcs_Built
8816      (N : Node_Id) return Boolean;    -- Flag11
8817
8818    function Discrete_Choices
8819      (N : Node_Id) return List_Id;    -- List4
8820
8821    function Discrete_Range
8822      (N : Node_Id) return Node_Id;    -- Node4
8823
8824    function Discrete_Subtype_Definition
8825      (N : Node_Id) return Node_Id;    -- Node4
8826
8827    function Discrete_Subtype_Definitions
8828      (N : Node_Id) return List_Id;    -- List2
8829
8830    function Discriminant_Specifications
8831      (N : Node_Id) return List_Id;    -- List4
8832
8833    function Discriminant_Type
8834      (N : Node_Id) return Node_Id;    -- Node5
8835
8836    function Do_Accessibility_Check
8837      (N : Node_Id) return Boolean;    -- Flag13
8838
8839    function Do_Discriminant_Check
8840      (N : Node_Id) return Boolean;    -- Flag1
8841
8842    function Do_Division_Check
8843      (N : Node_Id) return Boolean;    -- Flag13
8844
8845    function Do_Length_Check
8846      (N : Node_Id) return Boolean;    -- Flag4
8847
8848    function Do_Overflow_Check
8849      (N : Node_Id) return Boolean;    -- Flag17
8850
8851    function Do_Range_Check
8852      (N : Node_Id) return Boolean;    -- Flag9
8853
8854    function Do_Storage_Check
8855      (N : Node_Id) return Boolean;    -- Flag17
8856
8857    function Do_Tag_Check
8858      (N : Node_Id) return Boolean;    -- Flag13
8859
8860    function Elaborate_All_Desirable
8861      (N : Node_Id) return Boolean;    -- Flag9
8862
8863    function Elaborate_All_Present
8864      (N : Node_Id) return Boolean;    -- Flag14
8865
8866    function Elaborate_Desirable
8867      (N : Node_Id) return Boolean;    -- Flag11
8868
8869    function Elaborate_Present
8870      (N : Node_Id) return Boolean;    -- Flag4
8871
8872    function Elaboration_Boolean
8873      (N : Node_Id) return Node_Id;    -- Node2
8874
8875    function Else_Actions
8876      (N : Node_Id) return List_Id;    -- List3
8877
8878    function Else_Statements
8879      (N : Node_Id) return List_Id;    -- List4
8880
8881    function Elsif_Parts
8882      (N : Node_Id) return List_Id;    -- List3
8883
8884    function Enclosing_Variant
8885      (N : Node_Id) return Node_Id;    -- Node2
8886
8887    function End_Label
8888      (N : Node_Id) return Node_Id;    -- Node4
8889
8890    function End_Span
8891      (N : Node_Id) return Uint;       -- Uint5
8892
8893    function Entity
8894      (N : Node_Id) return Node_Id;    -- Node4
8895
8896    function Entity_Or_Associated_Node
8897      (N : Node_Id) return Node_Id;    -- Node4
8898
8899    function Entry_Body_Formal_Part
8900      (N : Node_Id) return Node_Id;    -- Node5
8901
8902    function Entry_Call_Alternative
8903      (N : Node_Id) return Node_Id;    -- Node1
8904
8905    function Entry_Call_Statement
8906      (N : Node_Id) return Node_Id;    -- Node1
8907
8908    function Entry_Direct_Name
8909      (N : Node_Id) return Node_Id;    -- Node1
8910
8911    function Entry_Index
8912      (N : Node_Id) return Node_Id;    -- Node5
8913
8914    function Entry_Index_Specification
8915      (N : Node_Id) return Node_Id;    -- Node4
8916
8917    function Etype
8918      (N : Node_Id) return Node_Id;    -- Node5
8919
8920    function Exception_Choices
8921      (N : Node_Id) return List_Id;    -- List4
8922
8923    function Exception_Handlers
8924      (N : Node_Id) return List_Id;    -- List5
8925
8926    function Exception_Junk
8927      (N : Node_Id) return Boolean;    -- Flag8
8928
8929    function Exception_Label
8930      (N : Node_Id) return Node_Id;    -- Node5
8931
8932    function Explicit_Actual_Parameter
8933      (N : Node_Id) return Node_Id;    -- Node3
8934
8935    function Expansion_Delayed
8936      (N : Node_Id) return Boolean;    -- Flag11
8937
8938    function Explicit_Generic_Actual_Parameter
8939      (N : Node_Id) return Node_Id;    -- Node1
8940
8941    function Expression
8942      (N : Node_Id) return Node_Id;    -- Node3
8943
8944    function Expressions
8945      (N : Node_Id) return List_Id;    -- List1
8946
8947    function First_Bit
8948      (N : Node_Id) return Node_Id;    -- Node3
8949
8950    function First_Inlined_Subprogram
8951      (N : Node_Id) return Entity_Id;  -- Node3
8952
8953    function First_Name
8954      (N : Node_Id) return Boolean;    -- Flag5
8955
8956    function First_Named_Actual
8957      (N : Node_Id) return Node_Id;    -- Node4
8958
8959    function First_Real_Statement
8960      (N : Node_Id) return Node_Id;    -- Node2
8961
8962    function First_Subtype_Link
8963      (N : Node_Id) return Entity_Id;  -- Node5
8964
8965    function Float_Truncate
8966      (N : Node_Id) return Boolean;    -- Flag11
8967
8968    function Formal_Type_Definition
8969      (N : Node_Id) return Node_Id;    -- Node3
8970
8971    function Forwards_OK
8972      (N : Node_Id) return Boolean;    -- Flag5
8973
8974    function From_Aspect_Specification
8975      (N : Node_Id) return Boolean;    -- Flag13
8976
8977    function From_At_End
8978      (N : Node_Id) return Boolean;    -- Flag4
8979
8980    function From_At_Mod
8981      (N : Node_Id) return Boolean;    -- Flag4
8982
8983    function From_Default
8984      (N : Node_Id) return Boolean;    -- Flag6
8985
8986    function Generalized_Indexing
8987      (N : Node_Id) return Node_Id;    -- Node4
8988    function Generic_Associations
8989      (N : Node_Id) return List_Id;    -- List3
8990
8991    function Generic_Formal_Declarations
8992      (N : Node_Id) return List_Id;    -- List2
8993
8994    function Generic_Parent
8995      (N : Node_Id) return Node_Id;    -- Node5
8996
8997    function Generic_Parent_Type
8998      (N : Node_Id) return Node_Id;    -- Node4
8999
9000    function Handled_Statement_Sequence
9001      (N : Node_Id) return Node_Id;    -- Node4
9002
9003    function Handler_List_Entry
9004      (N : Node_Id) return Node_Id;    -- Node2
9005
9006    function Has_Created_Identifier
9007      (N : Node_Id) return Boolean;    -- Flag15
9008
9009    function Has_Dereference_Action
9010      (N : Node_Id) return Boolean;    -- Flag13
9011
9012    function Has_Dynamic_Length_Check
9013      (N : Node_Id) return Boolean;    -- Flag10
9014
9015    function Has_Dynamic_Range_Check
9016      (N : Node_Id) return Boolean;    -- Flag12
9017
9018    function Has_Init_Expression
9019      (N : Node_Id) return Boolean;    -- Flag14
9020
9021    function Has_Local_Raise
9022      (N : Node_Id) return Boolean;    -- Flag8
9023
9024    function Has_No_Elaboration_Code
9025      (N : Node_Id) return Boolean;    -- Flag17
9026
9027    function Has_Pragma_Suppress_All
9028      (N : Node_Id) return Boolean;    -- Flag14
9029
9030    function Has_Private_View
9031      (N : Node_Id) return Boolean;    -- Flag11
9032
9033    function Has_Relative_Deadline_Pragma
9034      (N : Node_Id) return Boolean;    -- Flag9
9035
9036    function Has_Self_Reference
9037      (N : Node_Id) return Boolean;    -- Flag13
9038
9039    function Has_SP_Choice
9040      (N : Node_Id) return Boolean;    -- Flag15
9041
9042    function Has_Storage_Size_Pragma
9043      (N : Node_Id) return Boolean;    -- Flag5
9044
9045    function Has_Wide_Character
9046      (N : Node_Id) return Boolean;    -- Flag11
9047
9048    function Has_Wide_Wide_Character
9049      (N : Node_Id) return Boolean;    -- Flag13
9050
9051    function Header_Size_Added
9052      (N : Node_Id) return Boolean;    -- Flag11
9053
9054    function Hidden_By_Use_Clause
9055      (N : Node_Id) return Elist_Id;   -- Elist4
9056
9057    function High_Bound
9058      (N : Node_Id) return Node_Id;    -- Node2
9059
9060    function Identifier
9061      (N : Node_Id) return Node_Id;    -- Node1
9062
9063    function Interface_List
9064      (N : Node_Id) return List_Id;    -- List2
9065
9066    function Interface_Present
9067      (N : Node_Id) return Boolean;    -- Flag16
9068
9069    function Implicit_With
9070      (N : Node_Id) return Boolean;    -- Flag16
9071
9072    function Implicit_With_From_Instantiation
9073      (N : Node_Id) return Boolean;    -- Flag12
9074
9075    function Import_Interface_Present
9076      (N : Node_Id) return Boolean;    -- Flag16
9077
9078    function In_Present
9079      (N : Node_Id) return Boolean;    -- Flag15
9080
9081    function Includes_Infinities
9082      (N : Node_Id) return Boolean;    -- Flag11
9083
9084    function Inherited_Discriminant
9085      (N : Node_Id) return Boolean;    -- Flag13
9086
9087    function Instance_Spec
9088      (N : Node_Id) return Node_Id;    -- Node5
9089
9090    function Intval
9091      (N : Node_Id) return Uint;       -- Uint3
9092
9093    function Is_Accessibility_Actual
9094      (N : Node_Id) return Boolean;    -- Flag13
9095
9096    function Is_Asynchronous_Call_Block
9097      (N : Node_Id) return Boolean;    -- Flag7
9098
9099    function Is_Boolean_Aspect
9100      (N : Node_Id) return Boolean;    -- Flag16
9101
9102    function Is_Checked
9103      (N : Node_Id) return Boolean;    -- Flag11
9104
9105    function Is_Component_Left_Opnd
9106      (N : Node_Id) return Boolean;    -- Flag13
9107
9108    function Is_Component_Right_Opnd
9109      (N : Node_Id) return Boolean;    -- Flag14
9110
9111    function Is_Controlling_Actual
9112      (N : Node_Id) return Boolean;    -- Flag16
9113
9114    function Is_Delayed_Aspect
9115      (N : Node_Id) return Boolean;    -- Flag14
9116
9117    function Is_Disabled
9118      (N : Node_Id) return Boolean;    -- Flag15
9119
9120    function Is_Dynamic_Coextension
9121      (N : Node_Id) return Boolean;    -- Flag18
9122
9123    function Is_Elsif
9124      (N : Node_Id) return Boolean;    -- Flag13
9125
9126    function Is_Entry_Barrier_Function
9127      (N : Node_Id) return Boolean;    -- Flag8
9128
9129    function Is_Expanded_Build_In_Place_Call
9130      (N : Node_Id) return Boolean;    -- Flag11
9131
9132    function Is_Finalization_Wrapper
9133      (N : Node_Id) return Boolean;    -- Flag9
9134
9135    function Is_Folded_In_Parser
9136      (N : Node_Id) return Boolean;    -- Flag4
9137
9138    function Is_Ignored
9139      (N : Node_Id) return Boolean;    -- Flag9
9140
9141    function Is_In_Discriminant_Check
9142      (N : Node_Id) return Boolean;    -- Flag11
9143
9144    function Is_Machine_Number
9145      (N : Node_Id) return Boolean;    -- Flag11
9146
9147    function Is_Null_Loop
9148      (N : Node_Id) return Boolean;    -- Flag16
9149
9150    function Is_Overloaded
9151      (N : Node_Id) return Boolean;    -- Flag5
9152
9153    function Is_Power_Of_2_For_Shift
9154      (N : Node_Id) return Boolean;    -- Flag13
9155
9156    function Is_Prefixed_Call
9157      (N : Node_Id) return Boolean;    -- Flag17
9158
9159    function Is_Protected_Subprogram_Body
9160      (N : Node_Id) return Boolean;    -- Flag7
9161
9162    function Is_Static_Coextension
9163      (N : Node_Id) return Boolean;    -- Flag14
9164
9165    function Is_Static_Expression
9166      (N : Node_Id) return Boolean;    -- Flag6
9167
9168    function Is_Subprogram_Descriptor
9169      (N : Node_Id) return Boolean;    -- Flag16
9170
9171    function Is_Task_Allocation_Block
9172      (N : Node_Id) return Boolean;    -- Flag6
9173
9174    function Is_Task_Master
9175      (N : Node_Id) return Boolean;    -- Flag5
9176
9177    function Iteration_Scheme
9178      (N : Node_Id) return Node_Id;    -- Node2
9179
9180    function Iterator_Specification
9181      (N : Node_Id) return Node_Id;    -- Node2
9182
9183    function Itype
9184      (N : Node_Id) return Entity_Id;  -- Node1
9185
9186    function Kill_Range_Check
9187      (N : Node_Id) return Boolean;    -- Flag11
9188
9189    function Label_Construct
9190      (N : Node_Id) return Node_Id;    -- Node2
9191
9192    function Left_Opnd
9193      (N : Node_Id) return Node_Id;    -- Node2
9194
9195    function Last_Bit
9196      (N : Node_Id) return Node_Id;    -- Node4
9197
9198    function Last_Name
9199      (N : Node_Id) return Boolean;    -- Flag6
9200
9201    function Library_Unit
9202      (N : Node_Id) return Node_Id;    -- Node4
9203
9204    function Limited_View_Installed
9205      (N : Node_Id) return Boolean;    -- Flag18
9206
9207    function Limited_Present
9208      (N : Node_Id) return Boolean;    -- Flag17
9209
9210    function Literals
9211      (N : Node_Id) return List_Id;    -- List1
9212
9213    function Local_Raise_Not_OK
9214      (N : Node_Id) return Boolean;    -- Flag7
9215
9216    function Local_Raise_Statements
9217      (N : Node_Id) return Elist_Id;   -- Elist1
9218
9219    function Loop_Actions
9220      (N : Node_Id) return List_Id;    -- List2
9221
9222    function Loop_Parameter_Specification
9223      (N : Node_Id) return Node_Id;    -- Node4
9224
9225    function Low_Bound
9226      (N : Node_Id) return Node_Id;    -- Node1
9227
9228    function Mod_Clause
9229      (N : Node_Id) return Node_Id;    -- Node2
9230
9231    function More_Ids
9232      (N : Node_Id) return Boolean;    -- Flag5
9233
9234    function Must_Be_Byte_Aligned
9235      (N : Node_Id) return Boolean;    -- Flag14
9236
9237    function Must_Not_Freeze
9238      (N : Node_Id) return Boolean;    -- Flag8
9239
9240    function Must_Not_Override
9241      (N : Node_Id) return Boolean;    -- Flag15
9242
9243    function Must_Override
9244      (N : Node_Id) return Boolean;    -- Flag14
9245
9246    function Name
9247      (N : Node_Id) return Node_Id;    -- Node2
9248
9249    function Names
9250      (N : Node_Id) return List_Id;    -- List2
9251
9252    function Next_Entity
9253      (N : Node_Id) return Node_Id;    -- Node2
9254
9255    function Next_Exit_Statement
9256      (N : Node_Id) return Node_Id;    -- Node3
9257
9258    function Next_Implicit_With
9259      (N : Node_Id) return Node_Id;    -- Node3
9260
9261    function Next_Named_Actual
9262      (N : Node_Id) return Node_Id;    -- Node4
9263
9264    function Next_Pragma
9265      (N : Node_Id) return Node_Id;    -- Node1
9266
9267    function Next_Rep_Item
9268      (N : Node_Id) return Node_Id;    -- Node5
9269
9270    function Next_Use_Clause
9271      (N : Node_Id) return Node_Id;    -- Node3
9272
9273    function No_Ctrl_Actions
9274      (N : Node_Id) return Boolean;    -- Flag7
9275
9276    function No_Elaboration_Check
9277      (N : Node_Id) return Boolean;    -- Flag14
9278
9279    function No_Entities_Ref_In_Spec
9280      (N : Node_Id) return Boolean;    -- Flag8
9281
9282    function No_Initialization
9283      (N : Node_Id) return Boolean;    -- Flag13
9284
9285    function No_Minimize_Eliminate
9286      (N : Node_Id) return Boolean;    -- Flag17
9287
9288    function No_Truncation
9289      (N : Node_Id) return Boolean;    -- Flag17
9290
9291    function Non_Aliased_Prefix
9292      (N : Node_Id) return Boolean;    -- Flag18
9293
9294    function Null_Present
9295      (N : Node_Id) return Boolean;    -- Flag13
9296
9297    function Null_Exclusion_Present
9298      (N : Node_Id) return Boolean;    -- Flag11
9299
9300    function Null_Exclusion_In_Return_Present
9301      (N : Node_Id) return Boolean;    -- Flag14
9302
9303    function Null_Record_Present
9304      (N : Node_Id) return Boolean;    -- Flag17
9305
9306    function Object_Definition
9307      (N : Node_Id) return Node_Id;    -- Node4
9308
9309    function Of_Present
9310      (N : Node_Id) return Boolean;    -- Flag16
9311
9312    function Original_Discriminant
9313      (N : Node_Id) return Node_Id;    -- Node2
9314
9315    function Original_Entity
9316      (N : Node_Id) return Entity_Id;  -- Node2
9317
9318    function Others_Discrete_Choices
9319      (N : Node_Id) return List_Id;    -- List1
9320
9321    function Out_Present
9322      (N : Node_Id) return Boolean;    -- Flag17
9323
9324    function Parameter_Associations
9325      (N : Node_Id) return List_Id;    -- List3
9326
9327    function Parameter_List_Truncated
9328      (N : Node_Id) return Boolean;    -- Flag17
9329
9330    function Parameter_Specifications
9331      (N : Node_Id) return List_Id;    -- List3
9332
9333    function Parameter_Type
9334      (N : Node_Id) return Node_Id;    -- Node2
9335
9336    function Parent_Spec
9337      (N : Node_Id) return Node_Id;    -- Node4
9338
9339    function Position
9340      (N : Node_Id) return Node_Id;    -- Node2
9341
9342    function Pragma_Argument_Associations
9343      (N : Node_Id) return List_Id;    -- List2
9344
9345    function Pragma_Identifier
9346      (N : Node_Id) return Node_Id;    -- Node4
9347
9348    function Pragmas_After
9349      (N : Node_Id) return List_Id;    -- List5
9350
9351    function Pragmas_Before
9352      (N : Node_Id) return List_Id;    -- List4
9353
9354    function Pre_Post_Conditions
9355      (N : Node_Id) return Node_Id;    -- Node1
9356
9357    function Prefix
9358      (N : Node_Id) return Node_Id;    -- Node3
9359
9360    function Premature_Use
9361      (N : Node_Id) return Node_Id;    -- Node5
9362
9363    function Present_Expr
9364      (N : Node_Id) return Uint;       -- Uint3
9365
9366    function Prev_Ids
9367      (N : Node_Id) return Boolean;    -- Flag6
9368
9369    function Print_In_Hex
9370      (N : Node_Id) return Boolean;    -- Flag13
9371
9372    function Private_Declarations
9373      (N : Node_Id) return List_Id;    -- List3
9374
9375    function Private_Present
9376      (N : Node_Id) return Boolean;    -- Flag15
9377
9378    function Procedure_To_Call
9379      (N : Node_Id) return Node_Id;    -- Node2
9380
9381    function Proper_Body
9382      (N : Node_Id) return Node_Id;    -- Node1
9383
9384    function Protected_Definition
9385      (N : Node_Id) return Node_Id;    -- Node3
9386
9387    function Protected_Present
9388      (N : Node_Id) return Boolean;    -- Flag6
9389
9390    function Raises_Constraint_Error
9391      (N : Node_Id) return Boolean;    -- Flag7
9392
9393    function Range_Constraint
9394      (N : Node_Id) return Node_Id;    -- Node4
9395
9396    function Range_Expression
9397      (N : Node_Id) return Node_Id;    -- Node4
9398
9399    function Real_Range_Specification
9400      (N : Node_Id) return Node_Id;    -- Node4
9401
9402    function Realval
9403      (N : Node_Id) return Ureal;      -- Ureal3
9404
9405    function Reason
9406      (N : Node_Id) return Uint;       -- Uint3
9407
9408    function Record_Extension_Part
9409      (N : Node_Id) return Node_Id;    -- Node3
9410
9411    function Redundant_Use
9412      (N : Node_Id) return Boolean;    -- Flag13
9413
9414    function Renaming_Exception
9415      (N : Node_Id) return Node_Id;    -- Node2
9416
9417    function Result_Definition
9418      (N : Node_Id) return Node_Id;    -- Node4
9419
9420    function Return_Object_Declarations
9421      (N : Node_Id) return List_Id;    -- List3
9422
9423    function Return_Statement_Entity
9424      (N : Node_Id) return Node_Id;    -- Node5
9425
9426    function Reverse_Present
9427      (N : Node_Id) return Boolean;    -- Flag15
9428
9429    function Right_Opnd
9430      (N : Node_Id) return Node_Id;    -- Node3
9431
9432    function Rounded_Result
9433      (N : Node_Id) return Boolean;    -- Flag18
9434
9435    function SCIL_Controlling_Tag
9436      (N : Node_Id) return Node_Id;    -- Node5
9437
9438    function SCIL_Entity
9439      (N : Node_Id) return Node_Id;    -- Node4
9440
9441    function SCIL_Tag_Value
9442      (N : Node_Id) return Node_Id;    -- Node5
9443
9444    function SCIL_Target_Prim
9445      (N : Node_Id) return Node_Id;    -- Node2
9446
9447    function Scope
9448      (N : Node_Id) return Node_Id;    -- Node3
9449
9450    function Select_Alternatives
9451      (N : Node_Id) return List_Id;    -- List1
9452
9453    function Selector_Name
9454      (N : Node_Id) return Node_Id;    -- Node2
9455
9456    function Selector_Names
9457      (N : Node_Id) return List_Id;    -- List1
9458
9459    function Shift_Count_OK
9460      (N : Node_Id) return Boolean;    -- Flag4
9461
9462    function Source_Type
9463      (N : Node_Id) return Entity_Id;  -- Node1
9464
9465    function Specification
9466      (N : Node_Id) return Node_Id;    -- Node1
9467
9468    function Split_PPC
9469      (N : Node_Id) return Boolean;    -- Flag17
9470
9471    function Statements
9472      (N : Node_Id) return List_Id;    -- List3
9473
9474    function Storage_Pool
9475      (N : Node_Id) return Node_Id;    -- Node1
9476
9477    function Subpool_Handle_Name
9478      (N : Node_Id) return Node_Id;    -- Node4
9479
9480    function Strval
9481      (N : Node_Id) return String_Id;  -- Str3
9482
9483    function Subtype_Indication
9484      (N : Node_Id) return Node_Id;    -- Node5
9485
9486    function Subtype_Mark
9487      (N : Node_Id) return Node_Id;    -- Node4
9488
9489    function Subtype_Marks
9490      (N : Node_Id) return List_Id;    -- List2
9491
9492    function Suppress_Assignment_Checks
9493      (N : Node_Id) return Boolean;    -- Flag18
9494
9495    function Suppress_Loop_Warnings
9496      (N : Node_Id) return Boolean;    -- Flag17
9497
9498    function Synchronized_Present
9499      (N : Node_Id) return Boolean;    -- Flag7
9500
9501    function Tagged_Present
9502      (N : Node_Id) return Boolean;    -- Flag15
9503
9504    function Target_Type
9505      (N : Node_Id) return Entity_Id;  -- Node2
9506
9507    function Task_Definition
9508      (N : Node_Id) return Node_Id;    -- Node3
9509
9510    function Task_Present
9511      (N : Node_Id) return Boolean;    -- Flag5
9512
9513    function Then_Actions
9514      (N : Node_Id) return List_Id;    -- List2
9515
9516    function Then_Statements
9517      (N : Node_Id) return List_Id;    -- List2
9518
9519    function Treat_Fixed_As_Integer
9520      (N : Node_Id) return Boolean;    -- Flag14
9521
9522    function Triggering_Alternative
9523      (N : Node_Id) return Node_Id;    -- Node1
9524
9525    function Triggering_Statement
9526      (N : Node_Id) return Node_Id;    -- Node1
9527
9528    function TSS_Elist
9529      (N : Node_Id) return Elist_Id;   -- Elist3
9530
9531    function Type_Definition
9532      (N : Node_Id) return Node_Id;    -- Node3
9533
9534    function Unit
9535      (N : Node_Id) return Node_Id;    -- Node2
9536
9537    function Unknown_Discriminants_Present
9538      (N : Node_Id) return Boolean;    -- Flag13
9539
9540    function Unreferenced_In_Spec
9541      (N : Node_Id) return Boolean;    -- Flag7
9542
9543    function Variant_Part
9544      (N : Node_Id) return Node_Id;    -- Node4
9545
9546    function Variants
9547      (N : Node_Id) return List_Id;    -- List1
9548
9549    function Visible_Declarations
9550      (N : Node_Id) return List_Id;    -- List2
9551
9552    function Uninitialized_Variable
9553      (N : Node_Id) return Node_Id;    -- Node3
9554
9555    function Used_Operations
9556      (N : Node_Id) return Elist_Id;   -- Elist5
9557
9558    function Was_Originally_Stub
9559      (N : Node_Id) return Boolean;    -- Flag13
9560
9561    function Withed_Body
9562      (N : Node_Id) return Node_Id;    -- Node1
9563
9564    --  End functions (note used by xsinfo utility program to end processing)
9565
9566    ----------------------------
9567    -- Node Update Procedures --
9568    ----------------------------
9569
9570    --  These are the corresponding node update routines, which again provide
9571    --  a high level logical access with type checking. In addition to setting
9572    --  the indicated field of the node N to the given Val, in the case of
9573    --  tree pointers (List1-4), the parent pointer of the Val node is set to
9574    --  point back to node N. This automates the setting of the parent pointer.
9575
9576    procedure Set_ABE_Is_Certain
9577      (N : Node_Id; Val : Boolean := True);    -- Flag18
9578
9579    procedure Set_Abort_Present
9580      (N : Node_Id; Val : Boolean := True);    -- Flag15
9581
9582    procedure Set_Abortable_Part
9583      (N : Node_Id; Val : Node_Id);            -- Node2
9584
9585    procedure Set_Abstract_Present
9586      (N : Node_Id; Val : Boolean := True);    -- Flag4
9587
9588    procedure Set_Accept_Handler_Records
9589      (N : Node_Id; Val : List_Id);            -- List5
9590
9591    procedure Set_Accept_Statement
9592      (N : Node_Id; Val : Node_Id);            -- Node2
9593
9594    procedure Set_Access_Definition
9595      (N : Node_Id; Val : Node_Id);            -- Node3
9596
9597    procedure Set_Access_To_Subprogram_Definition
9598      (N : Node_Id; Val : Node_Id);            -- Node3
9599
9600    procedure Set_Access_Types_To_Process
9601      (N : Node_Id; Val : Elist_Id);           -- Elist2
9602
9603    procedure Set_Actions
9604      (N : Node_Id; Val : List_Id);            -- List1
9605
9606    procedure Set_Activation_Chain_Entity
9607      (N : Node_Id; Val : Node_Id);            -- Node3
9608
9609    procedure Set_Acts_As_Spec
9610      (N : Node_Id; Val : Boolean := True);    -- Flag4
9611
9612    procedure Set_Actual_Designated_Subtype
9613      (N : Node_Id; Val : Node_Id);            -- Node4
9614
9615    procedure Set_Address_Warning_Posted
9616      (N : Node_Id; Val : Boolean := True);    -- Flag18
9617
9618    procedure Set_Aggregate_Bounds
9619      (N : Node_Id; Val : Node_Id);            -- Node3
9620
9621    procedure Set_Aliased_Present
9622      (N : Node_Id; Val : Boolean := True);    -- Flag4
9623
9624    procedure Set_All_Others
9625      (N : Node_Id; Val : Boolean := True);    -- Flag11
9626
9627    procedure Set_All_Present
9628      (N : Node_Id; Val : Boolean := True);    -- Flag15
9629
9630    procedure Set_Alternatives
9631      (N : Node_Id; Val : List_Id);            -- List4
9632
9633    procedure Set_Ancestor_Part
9634      (N : Node_Id; Val : Node_Id);            -- Node3
9635
9636    procedure Set_Atomic_Sync_Required
9637      (N : Node_Id; Val : Boolean := True);    -- Flag14
9638
9639    procedure Set_Array_Aggregate
9640      (N : Node_Id; Val : Node_Id);            -- Node3
9641
9642    procedure Set_Aspect_Rep_Item
9643      (N : Node_Id; Val : Node_Id);            -- Node2
9644
9645    procedure Set_Assignment_OK
9646      (N : Node_Id; Val : Boolean := True);    -- Flag15
9647
9648    procedure Set_Associated_Node
9649      (N : Node_Id; Val : Node_Id);            -- Node4
9650
9651    procedure Set_Attribute_Name
9652      (N : Node_Id; Val : Name_Id);            -- Name2
9653
9654    procedure Set_At_End_Proc
9655      (N : Node_Id; Val : Node_Id);            -- Node1
9656
9657    procedure Set_Aux_Decls_Node
9658      (N : Node_Id; Val : Node_Id);            -- Node5
9659
9660    procedure Set_Backwards_OK
9661      (N : Node_Id; Val : Boolean := True);    -- Flag6
9662
9663    procedure Set_Bad_Is_Detected
9664      (N : Node_Id; Val : Boolean := True);    -- Flag15
9665
9666    procedure Set_Body_Required
9667      (N : Node_Id; Val : Boolean := True);    -- Flag13
9668
9669    procedure Set_Body_To_Inline
9670      (N : Node_Id; Val : Node_Id);            -- Node3
9671
9672    procedure Set_Box_Present
9673      (N : Node_Id; Val : Boolean := True);    -- Flag15
9674
9675    procedure Set_By_Ref
9676      (N : Node_Id; Val : Boolean := True);    -- Flag5
9677
9678    procedure Set_Char_Literal_Value
9679      (N : Node_Id; Val : Uint);               -- Uint2
9680
9681    procedure Set_Chars
9682      (N : Node_Id; Val : Name_Id);            -- Name1
9683
9684    procedure Set_Check_Address_Alignment
9685      (N : Node_Id; Val : Boolean := True);    -- Flag11
9686
9687    procedure Set_Choice_Parameter
9688      (N : Node_Id; Val : Node_Id);            -- Node2
9689
9690    procedure Set_Choices
9691      (N : Node_Id; Val : List_Id);            -- List1
9692
9693    procedure Set_Class_Present
9694      (N : Node_Id; Val : Boolean := True);    -- Flag6
9695
9696    procedure Set_Classifications
9697      (N : Node_Id; Val : Node_Id);            -- Node3
9698
9699    procedure Set_Comes_From_Extended_Return_Statement
9700      (N : Node_Id; Val : Boolean := True);    -- Flag18
9701
9702    procedure Set_Compile_Time_Known_Aggregate
9703      (N : Node_Id; Val : Boolean := True);    -- Flag18
9704
9705    procedure Set_Component_Associations
9706      (N : Node_Id; Val : List_Id);            -- List2
9707
9708    procedure Set_Component_Clauses
9709      (N : Node_Id; Val : List_Id);            -- List3
9710
9711    procedure Set_Component_Definition
9712      (N : Node_Id; Val : Node_Id);            -- Node4
9713
9714    procedure Set_Component_Items
9715      (N : Node_Id; Val : List_Id);            -- List3
9716
9717    procedure Set_Component_List
9718      (N : Node_Id; Val : Node_Id);            -- Node1
9719
9720    procedure Set_Component_Name
9721      (N : Node_Id; Val : Node_Id);            -- Node1
9722
9723    procedure Set_Componentwise_Assignment
9724      (N : Node_Id; Val : Boolean := True);    -- Flag14
9725
9726    procedure Set_Condition
9727      (N : Node_Id; Val : Node_Id);            -- Node1
9728
9729    procedure Set_Condition_Actions
9730      (N : Node_Id; Val : List_Id);            -- List3
9731
9732    procedure Set_Config_Pragmas
9733      (N : Node_Id; Val : List_Id);            -- List4
9734
9735    procedure Set_Constant_Present
9736      (N : Node_Id; Val : Boolean := True);    -- Flag17
9737
9738    procedure Set_Constraint
9739      (N : Node_Id; Val : Node_Id);            -- Node3
9740
9741    procedure Set_Constraints
9742      (N : Node_Id; Val : List_Id);            -- List1
9743
9744    procedure Set_Context_Installed
9745      (N : Node_Id; Val : Boolean := True);    -- Flag13
9746
9747    procedure Set_Context_Items
9748      (N : Node_Id; Val : List_Id);            -- List1
9749
9750    procedure Set_Context_Pending
9751      (N : Node_Id; Val : Boolean := True);    -- Flag16
9752
9753    procedure Set_Contract_Test_Cases
9754      (N : Node_Id; Val : Node_Id);            -- Node2
9755
9756    procedure Set_Controlling_Argument
9757      (N : Node_Id; Val : Node_Id);            -- Node1
9758
9759    procedure Set_Conversion_OK
9760      (N : Node_Id; Val : Boolean := True);    -- Flag14
9761
9762    procedure Set_Convert_To_Return_False
9763      (N : Node_Id; Val : Boolean := True);    -- Flag13
9764
9765    procedure Set_Corresponding_Aspect
9766      (N : Node_Id; Val : Node_Id);            -- Node3
9767
9768    procedure Set_Corresponding_Body
9769      (N : Node_Id; Val : Node_Id);            -- Node5
9770
9771    procedure Set_Corresponding_Formal_Spec
9772      (N : Node_Id; Val : Node_Id);            -- Node3
9773
9774    procedure Set_Corresponding_Generic_Association
9775      (N : Node_Id; Val : Node_Id);            -- Node5
9776
9777    procedure Set_Corresponding_Integer_Value
9778      (N : Node_Id; Val : Uint);               -- Uint4
9779
9780    procedure Set_Corresponding_Spec
9781      (N : Node_Id; Val : Node_Id);            -- Node5
9782
9783    procedure Set_Corresponding_Spec_Of_Stub
9784      (N : Node_Id; Val : Node_Id);            -- Node2
9785
9786    procedure Set_Corresponding_Stub
9787      (N : Node_Id; Val : Node_Id);            -- Node3
9788
9789    procedure Set_Dcheck_Function
9790      (N : Node_Id; Val : Entity_Id);          -- Node5
9791
9792    procedure Set_Declarations
9793      (N : Node_Id; Val : List_Id);            -- List2
9794
9795    procedure Set_Default_Expression
9796      (N : Node_Id; Val : Node_Id);            -- Node5
9797
9798    procedure Set_Default_Storage_Pool
9799      (N : Node_Id; Val : Node_Id);            -- Node3
9800
9801    procedure Set_Default_Name
9802      (N : Node_Id; Val : Node_Id);            -- Node2
9803
9804    procedure Set_Defining_Identifier
9805      (N : Node_Id; Val : Entity_Id);          -- Node1
9806
9807    procedure Set_Defining_Unit_Name
9808      (N : Node_Id; Val : Node_Id);            -- Node1
9809
9810    procedure Set_Delay_Alternative
9811      (N : Node_Id; Val : Node_Id);            -- Node4
9812
9813    procedure Set_Delay_Statement
9814      (N : Node_Id; Val : Node_Id);            -- Node2
9815
9816    procedure Set_Delta_Expression
9817      (N : Node_Id; Val : Node_Id);            -- Node3
9818
9819    procedure Set_Digits_Expression
9820      (N : Node_Id; Val : Node_Id);            -- Node2
9821
9822    procedure Set_Discr_Check_Funcs_Built
9823      (N : Node_Id; Val : Boolean := True);    -- Flag11
9824
9825    procedure Set_Discrete_Choices
9826      (N : Node_Id; Val : List_Id);            -- List4
9827
9828    procedure Set_Discrete_Range
9829      (N : Node_Id; Val : Node_Id);            -- Node4
9830
9831    procedure Set_Discrete_Subtype_Definition
9832      (N : Node_Id; Val : Node_Id);            -- Node4
9833
9834    procedure Set_Discrete_Subtype_Definitions
9835      (N : Node_Id; Val : List_Id);            -- List2
9836
9837    procedure Set_Discriminant_Specifications
9838      (N : Node_Id; Val : List_Id);            -- List4
9839
9840    procedure Set_Discriminant_Type
9841      (N : Node_Id; Val : Node_Id);            -- Node5
9842
9843    procedure Set_Do_Accessibility_Check
9844      (N : Node_Id; Val : Boolean := True);    -- Flag13
9845
9846    procedure Set_Do_Discriminant_Check
9847      (N : Node_Id; Val : Boolean := True);    -- Flag1
9848
9849    procedure Set_Do_Division_Check
9850      (N : Node_Id; Val : Boolean := True);    -- Flag13
9851
9852    procedure Set_Do_Length_Check
9853      (N : Node_Id; Val : Boolean := True);    -- Flag4
9854
9855    procedure Set_Do_Overflow_Check
9856      (N : Node_Id; Val : Boolean := True);    -- Flag17
9857
9858    procedure Set_Do_Range_Check
9859      (N : Node_Id; Val : Boolean := True);    -- Flag9
9860
9861    procedure Set_Do_Storage_Check
9862      (N : Node_Id; Val : Boolean := True);    -- Flag17
9863
9864    procedure Set_Do_Tag_Check
9865      (N : Node_Id; Val : Boolean := True);    -- Flag13
9866
9867    procedure Set_Elaborate_All_Desirable
9868      (N : Node_Id; Val : Boolean := True);    -- Flag9
9869
9870    procedure Set_Elaborate_All_Present
9871      (N : Node_Id; Val : Boolean := True);    -- Flag14
9872
9873    procedure Set_Elaborate_Desirable
9874      (N : Node_Id; Val : Boolean := True);    -- Flag11
9875
9876    procedure Set_Elaborate_Present
9877      (N : Node_Id; Val : Boolean := True);    -- Flag4
9878
9879    procedure Set_Elaboration_Boolean
9880      (N : Node_Id; Val : Node_Id);            -- Node2
9881
9882    procedure Set_Else_Actions
9883      (N : Node_Id; Val : List_Id);            -- List3
9884
9885    procedure Set_Else_Statements
9886      (N : Node_Id; Val : List_Id);            -- List4
9887
9888    procedure Set_Elsif_Parts
9889      (N : Node_Id; Val : List_Id);            -- List3
9890
9891    procedure Set_Enclosing_Variant
9892      (N : Node_Id; Val : Node_Id);            -- Node2
9893
9894    procedure Set_End_Label
9895      (N : Node_Id; Val : Node_Id);            -- Node4
9896
9897    procedure Set_End_Span
9898      (N : Node_Id; Val : Uint);               -- Uint5
9899
9900    procedure Set_Entity
9901      (N : Node_Id; Val : Node_Id);            -- Node4
9902
9903    procedure Set_Entry_Body_Formal_Part
9904      (N : Node_Id; Val : Node_Id);            -- Node5
9905
9906    procedure Set_Entry_Call_Alternative
9907      (N : Node_Id; Val : Node_Id);            -- Node1
9908
9909    procedure Set_Entry_Call_Statement
9910      (N : Node_Id; Val : Node_Id);            -- Node1
9911
9912    procedure Set_Entry_Direct_Name
9913      (N : Node_Id; Val : Node_Id);            -- Node1
9914
9915    procedure Set_Entry_Index
9916      (N : Node_Id; Val : Node_Id);            -- Node5
9917
9918    procedure Set_Entry_Index_Specification
9919      (N : Node_Id; Val : Node_Id);            -- Node4
9920
9921    procedure Set_Etype
9922      (N : Node_Id; Val : Node_Id);            -- Node5
9923
9924    procedure Set_Exception_Choices
9925      (N : Node_Id; Val : List_Id);            -- List4
9926
9927    procedure Set_Exception_Handlers
9928      (N : Node_Id; Val : List_Id);            -- List5
9929
9930    procedure Set_Exception_Junk
9931      (N : Node_Id; Val : Boolean := True);    -- Flag8
9932
9933    procedure Set_Exception_Label
9934      (N : Node_Id; Val : Node_Id);            -- Node5
9935
9936    procedure Set_Expansion_Delayed
9937      (N : Node_Id; Val : Boolean := True);    -- Flag11
9938
9939    procedure Set_Explicit_Actual_Parameter
9940      (N : Node_Id; Val : Node_Id);            -- Node3
9941
9942    procedure Set_Explicit_Generic_Actual_Parameter
9943      (N : Node_Id; Val : Node_Id);            -- Node1
9944
9945    procedure Set_Expression
9946      (N : Node_Id; Val : Node_Id);            -- Node3
9947
9948    procedure Set_Expressions
9949      (N : Node_Id; Val : List_Id);            -- List1
9950
9951    procedure Set_First_Bit
9952      (N : Node_Id; Val : Node_Id);            -- Node3
9953
9954    procedure Set_First_Inlined_Subprogram
9955      (N : Node_Id; Val : Entity_Id);          -- Node3
9956
9957    procedure Set_First_Name
9958      (N : Node_Id; Val : Boolean := True);    -- Flag5
9959
9960    procedure Set_First_Named_Actual
9961      (N : Node_Id; Val : Node_Id);            -- Node4
9962
9963    procedure Set_First_Real_Statement
9964      (N : Node_Id; Val : Node_Id);            -- Node2
9965
9966    procedure Set_First_Subtype_Link
9967      (N : Node_Id; Val : Entity_Id);          -- Node5
9968
9969    procedure Set_Float_Truncate
9970      (N : Node_Id; Val : Boolean := True);    -- Flag11
9971
9972    procedure Set_Formal_Type_Definition
9973      (N : Node_Id; Val : Node_Id);            -- Node3
9974
9975    procedure Set_Forwards_OK
9976      (N : Node_Id; Val : Boolean := True);    -- Flag5
9977
9978    procedure Set_From_At_Mod
9979      (N : Node_Id; Val : Boolean := True);    -- Flag4
9980
9981    procedure Set_From_Aspect_Specification
9982      (N : Node_Id; Val : Boolean := True);    -- Flag13
9983
9984    procedure Set_From_At_End
9985      (N : Node_Id; Val : Boolean := True);    -- Flag4
9986
9987    procedure Set_From_Default
9988      (N : Node_Id; Val : Boolean := True);    -- Flag6
9989
9990    procedure Set_Generalized_Indexing
9991      (N : Node_Id; Val : Node_Id);            -- Node4
9992
9993    procedure Set_Generic_Associations
9994      (N : Node_Id; Val : List_Id);            -- List3
9995
9996    procedure Set_Generic_Formal_Declarations
9997      (N : Node_Id; Val : List_Id);            -- List2
9998
9999    procedure Set_Generic_Parent
10000      (N : Node_Id; Val : Node_Id);            -- Node5
10001
10002    procedure Set_Generic_Parent_Type
10003      (N : Node_Id; Val : Node_Id);            -- Node4
10004
10005    procedure Set_Handled_Statement_Sequence
10006      (N : Node_Id; Val : Node_Id);            -- Node4
10007
10008    procedure Set_Handler_List_Entry
10009      (N : Node_Id; Val : Node_Id);            -- Node2
10010
10011    procedure Set_Has_Created_Identifier
10012      (N : Node_Id; Val : Boolean := True);    -- Flag15
10013
10014    procedure Set_Has_Dereference_Action
10015      (N : Node_Id; Val : Boolean := True);    -- Flag13
10016
10017    procedure Set_Has_Dynamic_Length_Check
10018      (N : Node_Id; Val : Boolean := True);    -- Flag10
10019
10020    procedure Set_Has_Dynamic_Range_Check
10021      (N : Node_Id; Val : Boolean := True);    -- Flag12
10022
10023    procedure Set_Has_Init_Expression
10024      (N : Node_Id; Val : Boolean := True);    -- Flag14
10025
10026    procedure Set_Has_Local_Raise
10027      (N : Node_Id; Val : Boolean := True);    -- Flag8
10028
10029    procedure Set_Has_No_Elaboration_Code
10030      (N : Node_Id; Val : Boolean := True);    -- Flag17
10031
10032    procedure Set_Has_Pragma_Suppress_All
10033      (N : Node_Id; Val : Boolean := True);    -- Flag14
10034
10035    procedure Set_Has_Private_View
10036      (N : Node_Id; Val : Boolean := True);    -- Flag11
10037
10038    procedure Set_Has_Relative_Deadline_Pragma
10039      (N : Node_Id; Val : Boolean := True);    -- Flag9
10040
10041    procedure Set_Has_Self_Reference
10042      (N : Node_Id; Val : Boolean := True);    -- Flag13
10043
10044    procedure Set_Has_SP_Choice
10045      (N : Node_Id; Val : Boolean := True);    -- Flag15
10046
10047    procedure Set_Has_Storage_Size_Pragma
10048      (N : Node_Id; Val : Boolean := True);    -- Flag5
10049
10050    procedure Set_Has_Wide_Character
10051      (N : Node_Id; Val : Boolean := True);    -- Flag11
10052
10053    procedure Set_Has_Wide_Wide_Character
10054      (N : Node_Id; Val : Boolean := True);    -- Flag13
10055
10056    procedure Set_Header_Size_Added
10057      (N : Node_Id; Val : Boolean := True);    -- Flag11
10058
10059    procedure Set_Hidden_By_Use_Clause
10060      (N : Node_Id; Val : Elist_Id);           -- Elist4
10061
10062    procedure Set_High_Bound
10063      (N : Node_Id; Val : Node_Id);            -- Node2
10064
10065    procedure Set_Identifier
10066      (N : Node_Id; Val : Node_Id);            -- Node1
10067
10068    procedure Set_Interface_List
10069      (N : Node_Id; Val : List_Id);            -- List2
10070
10071    procedure Set_Interface_Present
10072      (N : Node_Id; Val : Boolean := True);    -- Flag16
10073
10074    procedure Set_Implicit_With
10075      (N : Node_Id; Val : Boolean := True);    -- Flag16
10076
10077    procedure Set_Implicit_With_From_Instantiation
10078      (N : Node_Id; Val : Boolean := True);    -- Flag12
10079
10080    procedure Set_Import_Interface_Present
10081      (N : Node_Id; Val : Boolean := True);    -- Flag16
10082
10083    procedure Set_In_Present
10084      (N : Node_Id; Val : Boolean := True);    -- Flag15
10085
10086    procedure Set_Includes_Infinities
10087      (N : Node_Id; Val : Boolean := True);    -- Flag11
10088
10089    procedure Set_Inherited_Discriminant
10090      (N : Node_Id; Val : Boolean := True);    -- Flag13
10091
10092    procedure Set_Instance_Spec
10093      (N : Node_Id; Val : Node_Id);            -- Node5
10094
10095    procedure Set_Intval
10096      (N : Node_Id; Val : Uint);               -- Uint3
10097
10098    procedure Set_Is_Accessibility_Actual
10099      (N : Node_Id; Val : Boolean := True);    -- Flag13
10100
10101    procedure Set_Is_Asynchronous_Call_Block
10102      (N : Node_Id; Val : Boolean := True);    -- Flag7
10103
10104    procedure Set_Is_Boolean_Aspect
10105      (N : Node_Id; Val : Boolean := True);    -- Flag16
10106
10107    procedure Set_Is_Checked
10108      (N : Node_Id; Val : Boolean := True);    -- Flag11
10109
10110    procedure Set_Is_Component_Left_Opnd
10111      (N : Node_Id; Val : Boolean := True);    -- Flag13
10112
10113    procedure Set_Is_Component_Right_Opnd
10114      (N : Node_Id; Val : Boolean := True);    -- Flag14
10115
10116    procedure Set_Is_Controlling_Actual
10117      (N : Node_Id; Val : Boolean := True);    -- Flag16
10118
10119    procedure Set_Is_Delayed_Aspect
10120      (N : Node_Id; Val : Boolean := True);    -- Flag14
10121
10122    procedure Set_Is_Disabled
10123      (N : Node_Id; Val : Boolean := True);    -- Flag15
10124
10125    procedure Set_Is_Ignored
10126      (N : Node_Id; Val : Boolean := True);    -- Flag9
10127
10128    procedure Set_Is_Dynamic_Coextension
10129      (N : Node_Id; Val : Boolean := True);    -- Flag18
10130
10131    procedure Set_Is_Elsif
10132      (N : Node_Id; Val : Boolean := True);    -- Flag13
10133
10134    procedure Set_Is_Entry_Barrier_Function
10135      (N : Node_Id; Val : Boolean := True);    -- Flag8
10136
10137    procedure Set_Is_Expanded_Build_In_Place_Call
10138      (N : Node_Id; Val : Boolean := True);    -- Flag11
10139
10140    procedure Set_Is_Finalization_Wrapper
10141      (N : Node_Id; Val : Boolean := True);    -- Flag9
10142
10143    procedure Set_Is_Folded_In_Parser
10144      (N : Node_Id; Val : Boolean := True);    -- Flag4
10145
10146    procedure Set_Is_In_Discriminant_Check
10147      (N : Node_Id; Val : Boolean := True);    -- Flag11
10148
10149    procedure Set_Is_Machine_Number
10150      (N : Node_Id; Val : Boolean := True);    -- Flag11
10151
10152    procedure Set_Is_Null_Loop
10153      (N : Node_Id; Val : Boolean := True);    -- Flag16
10154
10155    procedure Set_Is_Overloaded
10156      (N : Node_Id; Val : Boolean := True);    -- Flag5
10157
10158    procedure Set_Is_Power_Of_2_For_Shift
10159      (N : Node_Id; Val : Boolean := True);    -- Flag13
10160
10161    procedure Set_Is_Prefixed_Call
10162      (N : Node_Id; Val : Boolean := True);    -- Flag17
10163
10164    procedure Set_Is_Protected_Subprogram_Body
10165      (N : Node_Id; Val : Boolean := True);    -- Flag7
10166
10167    procedure Set_Is_Static_Coextension
10168      (N : Node_Id; Val : Boolean := True);    -- Flag14
10169
10170    procedure Set_Is_Static_Expression
10171      (N : Node_Id; Val : Boolean := True);    -- Flag6
10172
10173    procedure Set_Is_Subprogram_Descriptor
10174      (N : Node_Id; Val : Boolean := True);    -- Flag16
10175
10176    procedure Set_Is_Task_Allocation_Block
10177      (N : Node_Id; Val : Boolean := True);    -- Flag6
10178
10179    procedure Set_Is_Task_Master
10180      (N : Node_Id; Val : Boolean := True);    -- Flag5
10181
10182    procedure Set_Iteration_Scheme
10183      (N : Node_Id; Val : Node_Id);            -- Node2
10184
10185    procedure Set_Iterator_Specification
10186      (N : Node_Id; Val : Node_Id);            -- Node2
10187
10188    procedure Set_Itype
10189      (N : Node_Id; Val : Entity_Id);          -- Node1
10190
10191    procedure Set_Kill_Range_Check
10192      (N : Node_Id; Val : Boolean := True);    -- Flag11
10193
10194    procedure Set_Last_Bit
10195      (N : Node_Id; Val : Node_Id);            -- Node4
10196
10197    procedure Set_Last_Name
10198      (N : Node_Id; Val : Boolean := True);    -- Flag6
10199
10200    procedure Set_Library_Unit
10201      (N : Node_Id; Val : Node_Id);            -- Node4
10202
10203    procedure Set_Label_Construct
10204      (N : Node_Id; Val : Node_Id);            -- Node2
10205
10206    procedure Set_Left_Opnd
10207      (N : Node_Id; Val : Node_Id);            -- Node2
10208
10209    procedure Set_Limited_View_Installed
10210      (N : Node_Id; Val : Boolean := True);    -- Flag18
10211
10212    procedure Set_Limited_Present
10213      (N : Node_Id; Val : Boolean := True);    -- Flag17
10214
10215    procedure Set_Literals
10216      (N : Node_Id; Val : List_Id);            -- List1
10217
10218    procedure Set_Local_Raise_Not_OK
10219      (N : Node_Id; Val : Boolean := True);    -- Flag7
10220
10221    procedure Set_Local_Raise_Statements
10222      (N : Node_Id; Val : Elist_Id);           -- Elist1
10223
10224    procedure Set_Loop_Actions
10225      (N : Node_Id; Val : List_Id);            -- List2
10226
10227    procedure Set_Loop_Parameter_Specification
10228      (N : Node_Id; Val : Node_Id);            -- Node4
10229
10230    procedure Set_Low_Bound
10231      (N : Node_Id; Val : Node_Id);            -- Node1
10232
10233    procedure Set_Mod_Clause
10234      (N : Node_Id; Val : Node_Id);            -- Node2
10235
10236    procedure Set_More_Ids
10237      (N : Node_Id; Val : Boolean := True);    -- Flag5
10238
10239    procedure Set_Must_Be_Byte_Aligned
10240      (N : Node_Id; Val : Boolean := True);    -- Flag14
10241
10242    procedure Set_Must_Not_Freeze
10243      (N : Node_Id; Val : Boolean := True);    -- Flag8
10244
10245    procedure Set_Must_Not_Override
10246      (N : Node_Id; Val : Boolean := True);    -- Flag15
10247
10248    procedure Set_Must_Override
10249      (N : Node_Id; Val : Boolean := True);    -- Flag14
10250
10251    procedure Set_Name
10252      (N : Node_Id; Val : Node_Id);            -- Node2
10253
10254    procedure Set_Names
10255      (N : Node_Id; Val : List_Id);            -- List2
10256
10257    procedure Set_Next_Entity
10258      (N : Node_Id; Val : Node_Id);            -- Node2
10259
10260    procedure Set_Next_Exit_Statement
10261      (N : Node_Id; Val : Node_Id);            -- Node3
10262
10263    procedure Set_Next_Implicit_With
10264      (N : Node_Id; Val : Node_Id);            -- Node3
10265
10266    procedure Set_Next_Named_Actual
10267      (N : Node_Id; Val : Node_Id);            -- Node4
10268
10269    procedure Set_Next_Pragma
10270      (N : Node_Id; Val : Node_Id);            -- Node1
10271
10272    procedure Set_Next_Rep_Item
10273      (N : Node_Id; Val : Node_Id);            -- Node5
10274
10275    procedure Set_Next_Use_Clause
10276      (N : Node_Id; Val : Node_Id);            -- Node3
10277
10278    procedure Set_No_Ctrl_Actions
10279      (N : Node_Id; Val : Boolean := True);    -- Flag7
10280
10281    procedure Set_No_Elaboration_Check
10282      (N : Node_Id; Val : Boolean := True);    -- Flag14
10283
10284    procedure Set_No_Entities_Ref_In_Spec
10285      (N : Node_Id; Val : Boolean := True);    -- Flag8
10286
10287    procedure Set_No_Initialization
10288      (N : Node_Id; Val : Boolean := True);    -- Flag13
10289
10290    procedure Set_No_Minimize_Eliminate
10291      (N : Node_Id; Val : Boolean := True);    -- Flag17
10292
10293    procedure Set_No_Truncation
10294      (N : Node_Id; Val : Boolean := True);    -- Flag17
10295
10296    procedure Set_Non_Aliased_Prefix
10297      (N : Node_Id; Val : Boolean := True);    -- Flag18
10298
10299    procedure Set_Null_Present
10300      (N : Node_Id; Val : Boolean := True);    -- Flag13
10301
10302    procedure Set_Null_Exclusion_Present
10303      (N : Node_Id; Val : Boolean := True);    -- Flag11
10304
10305    procedure Set_Null_Exclusion_In_Return_Present
10306      (N : Node_Id; Val : Boolean := True);    -- Flag14
10307
10308    procedure Set_Null_Record_Present
10309      (N : Node_Id; Val : Boolean := True);    -- Flag17
10310
10311    procedure Set_Object_Definition
10312      (N : Node_Id; Val : Node_Id);            -- Node4
10313
10314    procedure Set_Of_Present
10315      (N : Node_Id; Val : Boolean := True);   -- Flag16
10316
10317    procedure Set_Original_Discriminant
10318      (N : Node_Id; Val : Node_Id);            -- Node2
10319
10320    procedure Set_Original_Entity
10321      (N : Node_Id; Val : Entity_Id);          -- Node2
10322
10323    procedure Set_Others_Discrete_Choices
10324      (N : Node_Id; Val : List_Id);            -- List1
10325
10326    procedure Set_Out_Present
10327      (N : Node_Id; Val : Boolean := True);    -- Flag17
10328
10329    procedure Set_Parameter_Associations
10330      (N : Node_Id; Val : List_Id);            -- List3
10331
10332    procedure Set_Parameter_List_Truncated
10333      (N : Node_Id; Val : Boolean := True);    -- Flag17
10334
10335    procedure Set_Parameter_Specifications
10336      (N : Node_Id; Val : List_Id);            -- List3
10337
10338    procedure Set_Parameter_Type
10339      (N : Node_Id; Val : Node_Id);            -- Node2
10340
10341    procedure Set_Parent_Spec
10342      (N : Node_Id; Val : Node_Id);            -- Node4
10343
10344    procedure Set_Position
10345      (N : Node_Id; Val : Node_Id);            -- Node2
10346
10347    procedure Set_Pragma_Argument_Associations
10348      (N : Node_Id; Val : List_Id);            -- List2
10349
10350    procedure Set_Pragma_Identifier
10351      (N : Node_Id; Val : Node_Id);            -- Node4
10352
10353    procedure Set_Pragmas_After
10354      (N : Node_Id; Val : List_Id);            -- List5
10355
10356    procedure Set_Pragmas_Before
10357      (N : Node_Id; Val : List_Id);            -- List4
10358
10359    procedure Set_Pre_Post_Conditions
10360      (N : Node_Id; Val : Node_Id);            -- Node1
10361
10362    procedure Set_Prefix
10363      (N : Node_Id; Val : Node_Id);            -- Node3
10364
10365    procedure Set_Premature_Use
10366      (N : Node_Id; Val : Node_Id);            -- Node5
10367
10368    procedure Set_Present_Expr
10369      (N : Node_Id; Val : Uint);               -- Uint3
10370
10371    procedure Set_Prev_Ids
10372      (N : Node_Id; Val : Boolean := True);    -- Flag6
10373
10374    procedure Set_Print_In_Hex
10375      (N : Node_Id; Val : Boolean := True);    -- Flag13
10376
10377    procedure Set_Private_Declarations
10378      (N : Node_Id; Val : List_Id);            -- List3
10379
10380    procedure Set_Private_Present
10381      (N : Node_Id; Val : Boolean := True);    -- Flag15
10382
10383    procedure Set_Procedure_To_Call
10384      (N : Node_Id; Val : Node_Id);            -- Node2
10385
10386    procedure Set_Proper_Body
10387      (N : Node_Id; Val : Node_Id);            -- Node1
10388
10389    procedure Set_Protected_Definition
10390      (N : Node_Id; Val : Node_Id);            -- Node3
10391
10392    procedure Set_Protected_Present
10393      (N : Node_Id; Val : Boolean := True);    -- Flag6
10394
10395    procedure Set_Raises_Constraint_Error
10396      (N : Node_Id; Val : Boolean := True);    -- Flag7
10397
10398    procedure Set_Range_Constraint
10399      (N : Node_Id; Val : Node_Id);            -- Node4
10400
10401    procedure Set_Range_Expression
10402      (N : Node_Id; Val : Node_Id);            -- Node4
10403
10404    procedure Set_Real_Range_Specification
10405      (N : Node_Id; Val : Node_Id);            -- Node4
10406
10407    procedure Set_Realval
10408      (N : Node_Id; Val : Ureal);              -- Ureal3
10409
10410    procedure Set_Reason
10411      (N : Node_Id; Val : Uint);               -- Uint3
10412
10413    procedure Set_Record_Extension_Part
10414      (N : Node_Id; Val : Node_Id);            -- Node3
10415
10416    procedure Set_Redundant_Use
10417      (N : Node_Id; Val : Boolean := True);    -- Flag13
10418
10419    procedure Set_Renaming_Exception
10420      (N : Node_Id; Val : Node_Id);            -- Node2
10421
10422    procedure Set_Result_Definition
10423      (N : Node_Id; Val : Node_Id);            -- Node4
10424
10425    procedure Set_Return_Object_Declarations
10426      (N : Node_Id; Val : List_Id);            -- List3
10427
10428    procedure Set_Return_Statement_Entity
10429      (N : Node_Id; Val : Node_Id);            -- Node5
10430
10431    procedure Set_Reverse_Present
10432      (N : Node_Id; Val : Boolean := True);    -- Flag15
10433
10434    procedure Set_Right_Opnd
10435      (N : Node_Id; Val : Node_Id);            -- Node3
10436
10437    procedure Set_Rounded_Result
10438      (N : Node_Id; Val : Boolean := True);    -- Flag18
10439
10440    procedure Set_SCIL_Controlling_Tag
10441      (N : Node_Id; Val : Node_Id);            -- Node5
10442
10443    procedure Set_SCIL_Entity
10444      (N : Node_Id; Val : Node_Id);            -- Node4
10445
10446    procedure Set_SCIL_Tag_Value
10447      (N : Node_Id; Val : Node_Id);            -- Node5
10448
10449    procedure Set_SCIL_Target_Prim
10450      (N : Node_Id; Val : Node_Id);            -- Node2
10451
10452    procedure Set_Scope
10453      (N : Node_Id; Val : Node_Id);            -- Node3
10454
10455    procedure Set_Select_Alternatives
10456      (N : Node_Id; Val : List_Id);            -- List1
10457
10458    procedure Set_Selector_Name
10459      (N : Node_Id; Val : Node_Id);            -- Node2
10460
10461    procedure Set_Selector_Names
10462      (N : Node_Id; Val : List_Id);            -- List1
10463
10464    procedure Set_Shift_Count_OK
10465      (N : Node_Id; Val : Boolean := True);    -- Flag4
10466
10467    procedure Set_Source_Type
10468      (N : Node_Id; Val : Entity_Id);          -- Node1
10469
10470    procedure Set_Specification
10471      (N : Node_Id; Val : Node_Id);            -- Node1
10472
10473    procedure Set_Split_PPC
10474      (N : Node_Id; Val : Boolean);            -- Flag17
10475
10476    procedure Set_Statements
10477      (N : Node_Id; Val : List_Id);            -- List3
10478
10479    procedure Set_Storage_Pool
10480      (N : Node_Id; Val : Node_Id);            -- Node1
10481
10482    procedure Set_Subpool_Handle_Name
10483      (N : Node_Id; Val : Node_Id);            -- Node4
10484
10485    procedure Set_Strval
10486      (N : Node_Id; Val : String_Id);          -- Str3
10487
10488    procedure Set_Subtype_Indication
10489      (N : Node_Id; Val : Node_Id);            -- Node5
10490
10491    procedure Set_Subtype_Mark
10492      (N : Node_Id; Val : Node_Id);            -- Node4
10493
10494    procedure Set_Subtype_Marks
10495      (N : Node_Id; Val : List_Id);            -- List2
10496
10497    procedure Set_Suppress_Assignment_Checks
10498      (N : Node_Id; Val : Boolean := True);    -- Flag18
10499
10500    procedure Set_Suppress_Loop_Warnings
10501      (N : Node_Id; Val : Boolean := True);    -- Flag17
10502
10503    procedure Set_Synchronized_Present
10504      (N : Node_Id; Val : Boolean := True);    -- Flag7
10505
10506    procedure Set_Tagged_Present
10507      (N : Node_Id; Val : Boolean := True);    -- Flag15
10508
10509    procedure Set_Target_Type
10510      (N : Node_Id; Val : Entity_Id);          -- Node2
10511
10512    procedure Set_Task_Definition
10513      (N : Node_Id; Val : Node_Id);            -- Node3
10514
10515    procedure Set_Task_Present
10516      (N : Node_Id; Val : Boolean := True);    -- Flag5
10517
10518    procedure Set_Then_Actions
10519      (N : Node_Id; Val : List_Id);            -- List2
10520
10521    procedure Set_Then_Statements
10522      (N : Node_Id; Val : List_Id);            -- List2
10523
10524    procedure Set_Treat_Fixed_As_Integer
10525      (N : Node_Id; Val : Boolean := True);    -- Flag14
10526
10527    procedure Set_Triggering_Alternative
10528      (N : Node_Id; Val : Node_Id);            -- Node1
10529
10530    procedure Set_Triggering_Statement
10531      (N : Node_Id; Val : Node_Id);            -- Node1
10532
10533    procedure Set_TSS_Elist
10534      (N : Node_Id; Val : Elist_Id);           -- Elist3
10535
10536    procedure Set_Type_Definition
10537      (N : Node_Id; Val : Node_Id);            -- Node3
10538
10539    procedure Set_Unit
10540      (N : Node_Id; Val : Node_Id);            -- Node2
10541
10542    procedure Set_Unknown_Discriminants_Present
10543      (N : Node_Id; Val : Boolean := True);    -- Flag13
10544
10545    procedure Set_Unreferenced_In_Spec
10546      (N : Node_Id; Val : Boolean := True);    -- Flag7
10547
10548    procedure Set_Variant_Part
10549      (N : Node_Id; Val : Node_Id);            -- Node4
10550
10551    procedure Set_Variants
10552      (N : Node_Id; Val : List_Id);            -- List1
10553
10554    procedure Set_Visible_Declarations
10555      (N : Node_Id; Val : List_Id);            -- List2
10556
10557    procedure Set_Uninitialized_Variable
10558      (N : Node_Id; Val : Node_Id);            -- Node3
10559
10560    procedure Set_Used_Operations
10561      (N : Node_Id; Val : Elist_Id);           -- Elist5
10562
10563    procedure Set_Was_Originally_Stub
10564      (N : Node_Id; Val : Boolean := True);    -- Flag13
10565
10566    procedure Set_Withed_Body
10567      (N : Node_Id; Val : Node_Id);            -- Node1
10568
10569    -------------------------
10570    -- Iterator Procedures --
10571    -------------------------
10572
10573    --  The call to Next_xxx (N) is equivalent to N := Next_xxx (N)
10574
10575    procedure Next_Entity       (N : in out Node_Id);
10576    procedure Next_Named_Actual (N : in out Node_Id);
10577    procedure Next_Rep_Item     (N : in out Node_Id);
10578    procedure Next_Use_Clause   (N : in out Node_Id);
10579
10580    -------------------------------------------
10581    -- Miscellaneous Tree Access Subprograms --
10582    -------------------------------------------
10583
10584    function End_Location (N : Node_Id) return Source_Ptr;
10585    --  N is an N_If_Statement or N_Case_Statement node, and this function
10586    --  returns the location of the IF token in the END IF sequence by
10587    --  translating the value of the End_Span field.
10588
10589    procedure Set_End_Location (N : Node_Id; S : Source_Ptr);
10590    --  N is an N_If_Statement or N_Case_Statement node. This procedure sets
10591    --  the End_Span field to correspond to the given value S. In other words,
10592    --  End_Span is set to the difference between S and Sloc (N), the starting
10593    --  location.
10594
10595    function Get_Pragma_Arg (Arg : Node_Id) return Node_Id;
10596    --  Given an argument to a pragma Arg, this function returns the expression
10597    --  for the argument. This is Arg itself, or, in the case where Arg is a
10598    --  pragma argument association node, the expression from this node.
10599
10600    --------------------------------
10601    -- Node_Kind Membership Tests --
10602    --------------------------------
10603
10604    --  The following functions allow a convenient notation for testing whether
10605    --  a Node_Kind value matches any one of a list of possible values. In each
10606    --  case True is returned if the given T argument is equal to any of the V
10607    --  arguments. Note that there is a similar set of functions defined in
10608    --  Atree where the first argument is a Node_Id whose Nkind field is tested.
10609
10610    function Nkind_In
10611      (T  : Node_Kind;
10612       V1 : Node_Kind;
10613       V2 : Node_Kind) return Boolean;
10614
10615    function Nkind_In
10616      (T  : Node_Kind;
10617       V1 : Node_Kind;
10618       V2 : Node_Kind;
10619       V3 : Node_Kind) return Boolean;
10620
10621    function Nkind_In
10622      (T  : Node_Kind;
10623       V1 : Node_Kind;
10624       V2 : Node_Kind;
10625       V3 : Node_Kind;
10626       V4 : Node_Kind) return Boolean;
10627
10628    function Nkind_In
10629      (T  : Node_Kind;
10630       V1 : Node_Kind;
10631       V2 : Node_Kind;
10632       V3 : Node_Kind;
10633       V4 : Node_Kind;
10634       V5 : Node_Kind) return Boolean;
10635
10636    function Nkind_In
10637      (T  : Node_Kind;
10638       V1 : Node_Kind;
10639       V2 : Node_Kind;
10640       V3 : Node_Kind;
10641       V4 : Node_Kind;
10642       V5 : Node_Kind;
10643       V6 : Node_Kind) return Boolean;
10644
10645    function Nkind_In
10646      (T  : Node_Kind;
10647       V1 : Node_Kind;
10648       V2 : Node_Kind;
10649       V3 : Node_Kind;
10650       V4 : Node_Kind;
10651       V5 : Node_Kind;
10652       V6 : Node_Kind;
10653       V7 : Node_Kind) return Boolean;
10654
10655    function Nkind_In
10656      (T  : Node_Kind;
10657       V1 : Node_Kind;
10658       V2 : Node_Kind;
10659       V3 : Node_Kind;
10660       V4 : Node_Kind;
10661       V5 : Node_Kind;
10662       V6 : Node_Kind;
10663       V7 : Node_Kind;
10664       V8 : Node_Kind) return Boolean;
10665
10666    function Nkind_In
10667      (T  : Node_Kind;
10668       V1 : Node_Kind;
10669       V2 : Node_Kind;
10670       V3 : Node_Kind;
10671       V4 : Node_Kind;
10672       V5 : Node_Kind;
10673       V6 : Node_Kind;
10674       V7 : Node_Kind;
10675       V8 : Node_Kind;
10676       V9 : Node_Kind) return Boolean;
10677
10678    pragma Inline (Nkind_In);
10679    --  Inline all above functions
10680
10681    -----------------------
10682    -- Utility Functions --
10683    -----------------------
10684
10685    function Pragma_Name (N : Node_Id) return Name_Id;
10686    pragma Inline (Pragma_Name);
10687    --  Convenient function to obtain Chars field of Pragma_Identifier
10688
10689    -----------------------------
10690    -- Syntactic Parent Tables --
10691    -----------------------------
10692
10693    --  These tables show for each node, and for each of the five fields,
10694    --  whether the corresponding field is syntactic (True) or semantic (False).
10695    --  Unused entries are also set to False.
10696
10697    subtype Field_Num is Natural range 1 .. 5;
10698
10699    Is_Syntactic_Field : constant array (Node_Kind, Field_Num) of Boolean := (
10700
10701    --  Following entries can be built automatically from the sinfo sources
10702    --  using the makeisf utility (currently this program is in spitbol).
10703
10704      N_Identifier =>
10705        (1 => True,    --  Chars (Name1)
10706         2 => False,   --  Original_Discriminant (Node2-Sem)
10707         3 => False,   --  unused
10708         4 => False,   --  Entity (Node4-Sem)
10709         5 => False),  --  Etype (Node5-Sem)
10710
10711      N_Integer_Literal =>
10712        (1 => False,   --  unused
10713         2 => False,   --  Original_Entity (Node2-Sem)
10714         3 => True,    --  Intval (Uint3)
10715         4 => False,   --  unused
10716         5 => False),  --  Etype (Node5-Sem)
10717
10718      N_Real_Literal =>
10719        (1 => False,   --  unused
10720         2 => False,   --  Original_Entity (Node2-Sem)
10721         3 => True,    --  Realval (Ureal3)
10722         4 => False,   --  Corresponding_Integer_Value (Uint4-Sem)
10723         5 => False),  --  Etype (Node5-Sem)
10724
10725      N_Character_Literal =>
10726        (1 => True,    --  Chars (Name1)
10727         2 => True,    --  Char_Literal_Value (Uint2)
10728         3 => False,   --  unused
10729         4 => False,   --  Entity (Node4-Sem)
10730         5 => False),  --  Etype (Node5-Sem)
10731
10732      N_String_Literal =>
10733        (1 => False,   --  unused
10734         2 => False,   --  unused
10735         3 => True,    --  Strval (Str3)
10736         4 => False,   --  unused
10737         5 => False),  --  Etype (Node5-Sem)
10738
10739      N_Pragma =>
10740        (1 => False,   --  Next_Pragma (Node1-Sem)
10741         2 => True,    --  Pragma_Argument_Associations (List2)
10742         3 => False,   --  unused
10743         4 => True,    --  Pragma_Identifier (Node4)
10744         5 => False),  --  Next_Rep_Item (Node5-Sem)
10745
10746      N_Pragma_Argument_Association =>
10747        (1 => True,    --  Chars (Name1)
10748         2 => False,   --  unused
10749         3 => True,    --  Expression (Node3)
10750         4 => False,   --  unused
10751         5 => False),  --  unused
10752
10753      N_Defining_Identifier =>
10754        (1 => True,    --  Chars (Name1)
10755         2 => False,   --  Next_Entity (Node2-Sem)
10756         3 => False,   --  Scope (Node3-Sem)
10757         4 => False,   --  unused
10758         5 => False),  --  Etype (Node5-Sem)
10759
10760      N_Full_Type_Declaration =>
10761        (1 => True,    --  Defining_Identifier (Node1)
10762         2 => False,   --  unused
10763         3 => True,    --  Type_Definition (Node3)
10764         4 => True,    --  Discriminant_Specifications (List4)
10765         5 => False),  --  unused
10766
10767      N_Subtype_Declaration =>
10768        (1 => True,    --  Defining_Identifier (Node1)
10769         2 => False,   --  unused
10770         3 => False,   --  unused
10771         4 => False,   --  Generic_Parent_Type (Node4-Sem)
10772         5 => True),   --  Subtype_Indication (Node5)
10773
10774      N_Subtype_Indication =>
10775        (1 => False,   --  unused
10776         2 => False,   --  unused
10777         3 => True,    --  Constraint (Node3)
10778         4 => True,    --  Subtype_Mark (Node4)
10779         5 => False),  --  Etype (Node5-Sem)
10780
10781      N_Object_Declaration =>
10782        (1 => True,    --  Defining_Identifier (Node1)
10783         2 => False,   --  Handler_List_Entry (Node2-Sem)
10784         3 => True,    --  Expression (Node3)
10785         4 => True,    --  Object_Definition (Node4)
10786         5 => False),  --  Corresponding_Generic_Association (Node5-Sem)
10787
10788      N_Number_Declaration =>
10789        (1 => True,    --  Defining_Identifier (Node1)
10790         2 => False,   --  unused
10791         3 => True,    --  Expression (Node3)
10792         4 => False,   --  unused
10793         5 => False),  --  unused
10794
10795      N_Derived_Type_Definition =>
10796        (1 => False,   --  unused
10797         2 => True,    --  Interface_List (List2)
10798         3 => True,    --  Record_Extension_Part (Node3)
10799         4 => False,   --  unused
10800         5 => True),   --  Subtype_Indication (Node5)
10801
10802      N_Range_Constraint =>
10803        (1 => False,   --  unused
10804         2 => False,   --  unused
10805         3 => False,   --  unused
10806         4 => True,    --  Range_Expression (Node4)
10807         5 => False),  --  unused
10808
10809      N_Range =>
10810        (1 => True,    --  Low_Bound (Node1)
10811         2 => True,    --  High_Bound (Node2)
10812         3 => False,   --  unused
10813         4 => False,   --  unused
10814         5 => False),  --  Etype (Node5-Sem)
10815
10816      N_Enumeration_Type_Definition =>
10817        (1 => True,    --  Literals (List1)
10818         2 => False,   --  unused
10819         3 => False,   --  unused
10820         4 => True,    --  End_Label (Node4)
10821         5 => False),  --  unused
10822
10823      N_Defining_Character_Literal =>
10824        (1 => True,    --  Chars (Name1)
10825         2 => False,   --  Next_Entity (Node2-Sem)
10826         3 => False,   --  Scope (Node3-Sem)
10827         4 => False,   --  unused
10828         5 => False),  --  Etype (Node5-Sem)
10829
10830      N_Signed_Integer_Type_Definition =>
10831        (1 => True,    --  Low_Bound (Node1)
10832         2 => True,    --  High_Bound (Node2)
10833         3 => False,   --  unused
10834         4 => False,   --  unused
10835         5 => False),  --  unused
10836
10837      N_Modular_Type_Definition =>
10838        (1 => False,   --  unused
10839         2 => False,   --  unused
10840         3 => True,    --  Expression (Node3)
10841         4 => False,   --  unused
10842         5 => False),  --  unused
10843
10844      N_Floating_Point_Definition =>
10845        (1 => False,   --  unused
10846         2 => True,    --  Digits_Expression (Node2)
10847         3 => False,   --  unused
10848         4 => True,    --  Real_Range_Specification (Node4)
10849         5 => False),  --  unused
10850
10851      N_Real_Range_Specification =>
10852        (1 => True,    --  Low_Bound (Node1)
10853         2 => True,    --  High_Bound (Node2)
10854         3 => False,   --  unused
10855         4 => False,   --  unused
10856         5 => False),  --  unused
10857
10858      N_Ordinary_Fixed_Point_Definition =>
10859        (1 => False,   --  unused
10860         2 => False,   --  unused
10861         3 => True,    --  Delta_Expression (Node3)
10862         4 => True,    --  Real_Range_Specification (Node4)
10863         5 => False),  --  unused
10864
10865      N_Decimal_Fixed_Point_Definition =>
10866        (1 => False,   --  unused
10867         2 => True,    --  Digits_Expression (Node2)
10868         3 => True,    --  Delta_Expression (Node3)
10869         4 => True,    --  Real_Range_Specification (Node4)
10870         5 => False),  --  unused
10871
10872      N_Digits_Constraint =>
10873        (1 => False,   --  unused
10874         2 => True,    --  Digits_Expression (Node2)
10875         3 => False,   --  unused
10876         4 => True,    --  Range_Constraint (Node4)
10877         5 => False),  --  unused
10878
10879      N_Unconstrained_Array_Definition =>
10880        (1 => False,   --  unused
10881         2 => True,    --  Subtype_Marks (List2)
10882         3 => False,   --  unused
10883         4 => True,    --  Component_Definition (Node4)
10884         5 => False),  --  unused
10885
10886      N_Constrained_Array_Definition =>
10887        (1 => False,   --  unused
10888         2 => True,    --  Discrete_Subtype_Definitions (List2)
10889         3 => False,   --  unused
10890         4 => True,    --  Component_Definition (Node4)
10891         5 => False),  --  unused
10892
10893      N_Component_Definition =>
10894        (1 => False,   --  unused
10895         2 => False,   --  unused
10896         3 => True,    --  Access_Definition (Node3)
10897         4 => False,   --  unused
10898         5 => True),   --  Subtype_Indication (Node5)
10899
10900      N_Discriminant_Specification =>
10901        (1 => True,    --  Defining_Identifier (Node1)
10902         2 => False,   --  unused
10903         3 => True,    --  Expression (Node3)
10904         4 => False,   --  unused
10905         5 => True),   --  Discriminant_Type (Node5)
10906
10907      N_Index_Or_Discriminant_Constraint =>
10908        (1 => True,    --  Constraints (List1)
10909         2 => False,   --  unused
10910         3 => False,   --  unused
10911         4 => False,   --  unused
10912         5 => False),  --  unused
10913
10914      N_Discriminant_Association =>
10915        (1 => True,    --  Selector_Names (List1)
10916         2 => False,   --  unused
10917         3 => True,    --  Expression (Node3)
10918         4 => False,   --  unused
10919         5 => False),  --  unused
10920
10921      N_Record_Definition =>
10922        (1 => True,    --  Component_List (Node1)
10923         2 => True,    --  Interface_List (List2)
10924         3 => False,   --  unused
10925         4 => True,    --  End_Label (Node4)
10926         5 => False),  --  unused
10927
10928      N_Component_List =>
10929        (1 => False,   --  unused
10930         2 => False,   --  unused
10931         3 => True,    --  Component_Items (List3)
10932         4 => True,    --  Variant_Part (Node4)
10933         5 => False),  --  unused
10934
10935      N_Component_Declaration =>
10936        (1 => True,    --  Defining_Identifier (Node1)
10937         2 => False,   --  unused
10938         3 => True,    --  Expression (Node3)
10939         4 => True,    --  Component_Definition (Node4)
10940         5 => False),  --  unused
10941
10942      N_Variant_Part =>
10943        (1 => True,    --  Variants (List1)
10944         2 => True,    --  Name (Node2)
10945         3 => False,   --  unused
10946         4 => False,   --  unused
10947         5 => False),  --  unused
10948
10949      N_Variant =>
10950        (1 => True,    --  Component_List (Node1)
10951         2 => False,   --  Enclosing_Variant (Node2-Sem)
10952         3 => False,   --  Present_Expr (Uint3-Sem)
10953         4 => True,    --  Discrete_Choices (List4)
10954         5 => False),  --  Dcheck_Function (Node5-Sem)
10955
10956      N_Others_Choice =>
10957        (1 => False,   --  Others_Discrete_Choices (List1-Sem)
10958         2 => False,   --  unused
10959         3 => False,   --  unused
10960         4 => False,   --  unused
10961         5 => False),  --  unused
10962
10963      N_Access_To_Object_Definition =>
10964        (1 => False,   --  unused
10965         2 => False,   --  unused
10966         3 => False,   --  unused
10967         4 => False,   --  unused
10968         5 => True),   --  Subtype_Indication (Node5)
10969
10970      N_Access_Function_Definition =>
10971        (1 => False,   --  unused
10972         2 => False,   --  unused
10973         3 => True,    --  Parameter_Specifications (List3)
10974         4 => True,    --  Result_Definition (Node4)
10975         5 => False),  --  unused
10976
10977      N_Access_Procedure_Definition =>
10978        (1 => False,   --  unused
10979         2 => False,   --  unused
10980         3 => True,    --  Parameter_Specifications (List3)
10981         4 => False,   --  unused
10982         5 => False),  --  unused
10983
10984      N_Access_Definition =>
10985        (1 => False,   --  unused
10986         2 => False,   --  unused
10987         3 => True,    --  Access_To_Subprogram_Definition (Node3)
10988         4 => True,    --  Subtype_Mark (Node4)
10989         5 => False),  --  unused
10990
10991      N_Incomplete_Type_Declaration =>
10992        (1 => True,    --  Defining_Identifier (Node1)
10993         2 => False,   --  unused
10994         3 => False,   --  unused
10995         4 => True,    --  Discriminant_Specifications (List4)
10996         5 => False),  --  Premature_Use
10997
10998      N_Explicit_Dereference =>
10999        (1 => False,   --  unused
11000         2 => False,   --  unused
11001         3 => True,    --  Prefix (Node3)
11002         4 => False,   --  Actual_Designated_Subtype (Node4-Sem)
11003         5 => False),  --  Etype (Node5-Sem)
11004
11005      N_Indexed_Component =>
11006        (1 => True,    --  Expressions (List1)
11007         2 => False,   --  unused
11008         3 => True,    --  Prefix (Node3)
11009         4 => False,   --  Generalized_Indexing (Node4-Sem)
11010         5 => False),  --  Etype (Node5-Sem)
11011
11012      N_Slice =>
11013        (1 => False,   --  unused
11014         2 => False,   --  unused
11015         3 => True,    --  Prefix (Node3)
11016         4 => True,    --  Discrete_Range (Node4)
11017         5 => False),  --  Etype (Node5-Sem)
11018
11019      N_Selected_Component =>
11020        (1 => False,   --  unused
11021         2 => True,    --  Selector_Name (Node2)
11022         3 => True,    --  Prefix (Node3)
11023         4 => False,   --  unused
11024         5 => False),  --  Etype (Node5-Sem)
11025
11026      N_Attribute_Reference =>
11027        (1 => True,    --  Expressions (List1)
11028         2 => True,    --  Attribute_Name (Name2)
11029         3 => True,    --  Prefix (Node3)
11030         4 => False,   --  Entity (Node4-Sem)
11031         5 => False),  --  Etype (Node5-Sem)
11032
11033      N_Aggregate =>
11034        (1 => True,    --  Expressions (List1)
11035         2 => True,    --  Component_Associations (List2)
11036         3 => False,   --  Aggregate_Bounds (Node3-Sem)
11037         4 => False,   --  unused
11038         5 => False),  --  Etype (Node5-Sem)
11039
11040      N_Component_Association =>
11041        (1 => True,    --  Choices (List1)
11042         2 => False,   --  Loop_Actions (List2-Sem)
11043         3 => True,    --  Expression (Node3)
11044         4 => False,   --  unused
11045         5 => False),  --  unused
11046
11047      N_Extension_Aggregate =>
11048        (1 => True,    --  Expressions (List1)
11049         2 => True,    --  Component_Associations (List2)
11050         3 => True,    --  Ancestor_Part (Node3)
11051         4 => False,   --  unused
11052         5 => False),  --  Etype (Node5-Sem)
11053
11054      N_Null =>
11055        (1 => False,   --  unused
11056         2 => False,   --  unused
11057         3 => False,   --  unused
11058         4 => False,   --  unused
11059         5 => False),  --  Etype (Node5-Sem)
11060
11061      N_And_Then =>
11062        (1 => False,   --  Actions (List1-Sem)
11063         2 => True,    --  Left_Opnd (Node2)
11064         3 => True,    --  Right_Opnd (Node3)
11065         4 => False,   --  unused
11066         5 => False),  --  Etype (Node5-Sem)
11067
11068      N_Or_Else =>
11069        (1 => False,   --  Actions (List1-Sem)
11070         2 => True,    --  Left_Opnd (Node2)
11071         3 => True,    --  Right_Opnd (Node3)
11072         4 => False,   --  unused
11073         5 => False),  --  Etype (Node5-Sem)
11074
11075      N_In =>
11076        (1 => False,   --  unused
11077         2 => True,    --  Left_Opnd (Node2)
11078         3 => True,    --  Right_Opnd (Node3)
11079         4 => True,    --  Alternatives (List4)
11080         5 => False),  --  Etype (Node5-Sem)
11081
11082      N_Not_In =>
11083        (1 => False,   --  unused
11084         2 => True,    --  Left_Opnd (Node2)
11085         3 => True,    --  Right_Opnd (Node3)
11086         4 => True,    --  Alternatives (List4)
11087         5 => False),  --  Etype (Node5-Sem)
11088
11089      N_Op_And =>
11090        (1 => True,    --  Chars (Name1)
11091         2 => True,    --  Left_Opnd (Node2)
11092         3 => True,    --  Right_Opnd (Node3)
11093         4 => False,   --  Entity (Node4-Sem)
11094         5 => False),  --  Etype (Node5-Sem)
11095
11096      N_Op_Or =>
11097        (1 => True,    --  Chars (Name1)
11098         2 => True,    --  Left_Opnd (Node2)
11099         3 => True,    --  Right_Opnd (Node3)
11100         4 => False,   --  Entity (Node4-Sem)
11101         5 => False),  --  Etype (Node5-Sem)
11102
11103      N_Op_Xor =>
11104        (1 => True,    --  Chars (Name1)
11105         2 => True,    --  Left_Opnd (Node2)
11106         3 => True,    --  Right_Opnd (Node3)
11107         4 => False,   --  Entity (Node4-Sem)
11108         5 => False),  --  Etype (Node5-Sem)
11109
11110      N_Op_Eq =>
11111        (1 => True,    --  Chars (Name1)
11112         2 => True,    --  Left_Opnd (Node2)
11113         3 => True,    --  Right_Opnd (Node3)
11114         4 => False,   --  Entity (Node4-Sem)
11115         5 => False),  --  Etype (Node5-Sem)
11116
11117      N_Op_Ne =>
11118        (1 => True,    --  Chars (Name1)
11119         2 => True,    --  Left_Opnd (Node2)
11120         3 => True,    --  Right_Opnd (Node3)
11121         4 => False,   --  Entity (Node4-Sem)
11122         5 => False),  --  Etype (Node5-Sem)
11123
11124      N_Op_Lt =>
11125        (1 => True,    --  Chars (Name1)
11126         2 => True,    --  Left_Opnd (Node2)
11127         3 => True,    --  Right_Opnd (Node3)
11128         4 => False,   --  Entity (Node4-Sem)
11129         5 => False),  --  Etype (Node5-Sem)
11130
11131      N_Op_Le =>
11132        (1 => True,    --  Chars (Name1)
11133         2 => True,    --  Left_Opnd (Node2)
11134         3 => True,    --  Right_Opnd (Node3)
11135         4 => False,   --  Entity (Node4-Sem)
11136         5 => False),  --  Etype (Node5-Sem)
11137
11138      N_Op_Gt =>
11139        (1 => True,    --  Chars (Name1)
11140         2 => True,    --  Left_Opnd (Node2)
11141         3 => True,    --  Right_Opnd (Node3)
11142         4 => False,   --  Entity (Node4-Sem)
11143         5 => False),  --  Etype (Node5-Sem)
11144
11145      N_Op_Ge =>
11146        (1 => True,    --  Chars (Name1)
11147         2 => True,    --  Left_Opnd (Node2)
11148         3 => True,    --  Right_Opnd (Node3)
11149         4 => False,   --  Entity (Node4-Sem)
11150         5 => False),  --  Etype (Node5-Sem)
11151
11152      N_Op_Add =>
11153        (1 => True,    --  Chars (Name1)
11154         2 => True,    --  Left_Opnd (Node2)
11155         3 => True,    --  Right_Opnd (Node3)
11156         4 => False,   --  Entity (Node4-Sem)
11157         5 => False),  --  Etype (Node5-Sem)
11158
11159      N_Op_Subtract =>
11160        (1 => True,    --  Chars (Name1)
11161         2 => True,    --  Left_Opnd (Node2)
11162         3 => True,    --  Right_Opnd (Node3)
11163         4 => False,   --  Entity (Node4-Sem)
11164         5 => False),  --  Etype (Node5-Sem)
11165
11166      N_Op_Concat =>
11167        (1 => True,    --  Chars (Name1)
11168         2 => True,    --  Left_Opnd (Node2)
11169         3 => True,    --  Right_Opnd (Node3)
11170         4 => False,   --  Entity (Node4-Sem)
11171         5 => False),  --  Etype (Node5-Sem)
11172
11173      N_Op_Multiply =>
11174        (1 => True,    --  Chars (Name1)
11175         2 => True,    --  Left_Opnd (Node2)
11176         3 => True,    --  Right_Opnd (Node3)
11177         4 => False,   --  Entity (Node4-Sem)
11178         5 => False),  --  Etype (Node5-Sem)
11179
11180      N_Op_Divide =>
11181        (1 => True,    --  Chars (Name1)
11182         2 => True,    --  Left_Opnd (Node2)
11183         3 => True,    --  Right_Opnd (Node3)
11184         4 => False,   --  Entity (Node4-Sem)
11185         5 => False),  --  Etype (Node5-Sem)
11186
11187      N_Op_Mod =>
11188        (1 => True,    --  Chars (Name1)
11189         2 => True,    --  Left_Opnd (Node2)
11190         3 => True,    --  Right_Opnd (Node3)
11191         4 => False,   --  Entity (Node4-Sem)
11192         5 => False),  --  Etype (Node5-Sem)
11193
11194      N_Op_Rem =>
11195        (1 => True,    --  Chars (Name1)
11196         2 => True,    --  Left_Opnd (Node2)
11197         3 => True,    --  Right_Opnd (Node3)
11198         4 => False,   --  Entity (Node4-Sem)
11199         5 => False),  --  Etype (Node5-Sem)
11200
11201      N_Op_Expon =>
11202        (1 => True,    --  Chars (Name1)
11203         2 => True,    --  Left_Opnd (Node2)
11204         3 => True,    --  Right_Opnd (Node3)
11205         4 => False,   --  Entity (Node4-Sem)
11206         5 => False),  --  Etype (Node5-Sem)
11207
11208      N_Op_Plus =>
11209        (1 => True,    --  Chars (Name1)
11210         2 => False,   --  unused
11211         3 => True,    --  Right_Opnd (Node3)
11212         4 => False,   --  Entity (Node4-Sem)
11213         5 => False),  --  Etype (Node5-Sem)
11214
11215      N_Op_Minus =>
11216        (1 => True,    --  Chars (Name1)
11217         2 => False,   --  unused
11218         3 => True,    --  Right_Opnd (Node3)
11219         4 => False,   --  Entity (Node4-Sem)
11220         5 => False),  --  Etype (Node5-Sem)
11221
11222      N_Op_Abs =>
11223        (1 => True,    --  Chars (Name1)
11224         2 => False,   --  unused
11225         3 => True,    --  Right_Opnd (Node3)
11226         4 => False,   --  Entity (Node4-Sem)
11227         5 => False),  --  Etype (Node5-Sem)
11228
11229      N_Op_Not =>
11230        (1 => True,    --  Chars (Name1)
11231         2 => False,   --  unused
11232         3 => True,    --  Right_Opnd (Node3)
11233         4 => False,   --  Entity (Node4-Sem)
11234         5 => False),  --  Etype (Node5-Sem)
11235
11236      N_Type_Conversion =>
11237        (1 => False,   --  unused
11238         2 => False,   --  unused
11239         3 => True,    --  Expression (Node3)
11240         4 => True,    --  Subtype_Mark (Node4)
11241         5 => False),  --  Etype (Node5-Sem)
11242
11243      N_Qualified_Expression =>
11244        (1 => False,   --  unused
11245         2 => False,   --  unused
11246         3 => True,    --  Expression (Node3)
11247         4 => True,    --  Subtype_Mark (Node4)
11248         5 => False),  --  Etype (Node5-Sem)
11249
11250      N_Quantified_Expression =>
11251        (1 => True,    --  Condition (Node1)
11252         2 => True,    --  Iterator_Specification
11253         3 => False,   --  unused
11254         4 => True,    --  Loop_Parameter_Specification (Node4)
11255         5 => False),  --  Etype (Node5-Sem)
11256
11257      N_Allocator =>
11258        (1 => False,   --  Storage_Pool (Node1-Sem)
11259         2 => False,   --  Procedure_To_Call (Node2-Sem)
11260         3 => True,    --  Expression (Node3)
11261         4 => True,    --  Subpool_Handle_Name (Node4)
11262         5 => False),  --  Etype (Node5-Sem)
11263
11264      N_Null_Statement =>
11265        (1 => False,   --  unused
11266         2 => False,   --  unused
11267         3 => False,   --  unused
11268         4 => False,   --  unused
11269         5 => False),  --  unused
11270
11271      N_Label =>
11272        (1 => True,    --  Identifier (Node1)
11273         2 => False,   --  unused
11274         3 => False,   --  unused
11275         4 => False,   --  unused
11276         5 => False),  --  unused
11277
11278      N_Assignment_Statement =>
11279        (1 => False,   --  unused
11280         2 => True,    --  Name (Node2)
11281         3 => True,    --  Expression (Node3)
11282         4 => False,   --  unused
11283         5 => False),  --  unused
11284
11285      N_If_Statement =>
11286        (1 => True,    --  Condition (Node1)
11287         2 => True,    --  Then_Statements (List2)
11288         3 => True,    --  Elsif_Parts (List3)
11289         4 => True,    --  Else_Statements (List4)
11290         5 => True),   --  End_Span (Uint5)
11291
11292      N_Elsif_Part =>
11293        (1 => True,    --  Condition (Node1)
11294         2 => True,    --  Then_Statements (List2)
11295         3 => False,   --  Condition_Actions (List3-Sem)
11296         4 => False,   --  unused
11297         5 => False),  --  unused
11298
11299      N_Case_Expression =>
11300        (1 => False,   --  unused
11301         2 => False,   --  unused
11302         3 => True,    --  Expression (Node3)
11303         4 => True,    --  Alternatives (List4)
11304         5 => False),  --  unused
11305
11306      N_Case_Expression_Alternative =>
11307        (1 => False,   --  Actions (List1-Sem)
11308         2 => False,   --  unused
11309         3 => True,    --  Statements (List3)
11310         4 => True,    --  Expression (Node4)
11311         5 => False),  --  unused
11312
11313      N_Case_Statement =>
11314        (1 => False,   --  unused
11315         2 => False,   --  unused
11316         3 => True,    --  Expression (Node3)
11317         4 => True,    --  Alternatives (List4)
11318         5 => True),   --  End_Span (Uint5)
11319
11320      N_Case_Statement_Alternative =>
11321        (1 => False,   --  unused
11322         2 => False,   --  unused
11323         3 => True,    --  Statements (List3)
11324         4 => True,    --  Discrete_Choices (List4)
11325         5 => False),  --  unused
11326
11327      N_Loop_Statement =>
11328        (1 => True,    --  Identifier (Node1)
11329         2 => True,    --  Iteration_Scheme (Node2)
11330         3 => True,    --  Statements (List3)
11331         4 => True,    --  End_Label (Node4)
11332         5 => False),  --  unused
11333
11334      N_Iteration_Scheme =>
11335        (1 => True,    --  Condition (Node1)
11336         2 => True,    --  Iterator_Specification (Node2)
11337         3 => False,   --  Condition_Actions (List3-Sem)
11338         4 => True,    --  Loop_Parameter_Specification (Node4)
11339         5 => False),  --  unused
11340
11341      N_Loop_Parameter_Specification =>
11342        (1 => True,    --  Defining_Identifier (Node1)
11343         2 => False,   --  unused
11344         3 => False,   --  unused
11345         4 => True,    --  Discrete_Subtype_Definition (Node4)
11346         5 => False),  --  unused
11347
11348      N_Iterator_Specification =>
11349        (1 => True,    --  Defining_Identifier (Node1)
11350         2 => True,    --  Name (Node2)
11351         3 => False,   --  Unused
11352         4 => False,   --  Unused
11353         5 => True),   --  Subtype_Indication (Node5)
11354
11355      N_Block_Statement =>
11356        (1 => True,    --  Identifier (Node1)
11357         2 => True,    --  Declarations (List2)
11358         3 => False,   --  Activation_Chain_Entity (Node3-Sem)
11359         4 => True,    --  Handled_Statement_Sequence (Node4)
11360         5 => False),  --  unused
11361
11362      N_Exit_Statement =>
11363        (1 => True,    --  Condition (Node1)
11364         2 => True,    --  Name (Node2)
11365         3 => False,   --  unused
11366         4 => False,   --  unused
11367         5 => False),  --  unused
11368
11369      N_Goto_Statement =>
11370        (1 => False,   --  unused
11371         2 => True,    --  Name (Node2)
11372         3 => False,   --  unused
11373         4 => False,   --  unused
11374         5 => False),  --  unused
11375
11376      N_Subprogram_Declaration =>
11377        (1 => True,    --  Specification (Node1)
11378         2 => False,   --  unused
11379         3 => False,   --  Body_To_Inline (Node3-Sem)
11380         4 => False,   --  Parent_Spec (Node4-Sem)
11381         5 => False),  --  Corresponding_Body (Node5-Sem)
11382
11383      N_Abstract_Subprogram_Declaration =>
11384        (1 => True,    --  Specification (Node1)
11385         2 => False,   --  unused
11386         3 => False,   --  unused
11387         4 => False,   --  unused
11388         5 => False),  --  unused
11389
11390      N_Function_Specification =>
11391        (1 => True,    --  Defining_Unit_Name (Node1)
11392         2 => False,   --  Elaboration_Boolean (Node2-Sem)
11393         3 => True,    --  Parameter_Specifications (List3)
11394         4 => True,    --  Result_Definition (Node4)
11395         5 => False),  --  Generic_Parent (Node5-Sem)
11396
11397      N_Procedure_Specification =>
11398        (1 => True,    --  Defining_Unit_Name (Node1)
11399         2 => False,   --  Elaboration_Boolean (Node2-Sem)
11400         3 => True,    --  Parameter_Specifications (List3)
11401         4 => False,   --  unused
11402         5 => False),  --  Generic_Parent (Node5-Sem)
11403
11404      N_Designator =>
11405        (1 => True,    --  Identifier (Node1)
11406         2 => True,    --  Name (Node2)
11407         3 => False,   --  unused
11408         4 => False,   --  unused
11409         5 => False),  --  unused
11410
11411      N_Defining_Program_Unit_Name =>
11412        (1 => True,    --  Defining_Identifier (Node1)
11413         2 => True,    --  Name (Node2)
11414         3 => False,   --  unused
11415         4 => False,   --  unused
11416         5 => False),  --  unused
11417
11418      N_Operator_Symbol =>
11419        (1 => True,    --  Chars (Name1)
11420         2 => False,   --  unused
11421         3 => True,    --  Strval (Str3)
11422         4 => False,   --  Entity (Node4-Sem)
11423         5 => False),  --  Etype (Node5-Sem)
11424
11425      N_Defining_Operator_Symbol =>
11426        (1 => True,    --  Chars (Name1)
11427         2 => False,   --  Next_Entity (Node2-Sem)
11428         3 => False,   --  Scope (Node3-Sem)
11429         4 => False,   --  unused
11430         5 => False),  --  Etype (Node5-Sem)
11431
11432      N_Parameter_Specification =>
11433        (1 => True,    --  Defining_Identifier (Node1)
11434         2 => True,    --  Parameter_Type (Node2)
11435         3 => True,    --  Expression (Node3)
11436         4 => False,   --  unused
11437         5 => False),  --  Default_Expression (Node5-Sem)
11438
11439      N_Subprogram_Body =>
11440        (1 => True,    --  Specification (Node1)
11441         2 => True,    --  Declarations (List2)
11442         3 => False,   --  Activation_Chain_Entity (Node3-Sem)
11443         4 => True,    --  Handled_Statement_Sequence (Node4)
11444         5 => False),  --  Corresponding_Spec (Node5-Sem)
11445
11446      N_Expression_Function =>
11447        (1 => True,    --  Specification (Node1)
11448         2 => False,   --  unused
11449         3 => True,    --  Expression (Node3)
11450         4 => False,   --  unused
11451         5 => False),  --  unused
11452
11453      N_Procedure_Call_Statement =>
11454        (1 => False,   --  Controlling_Argument (Node1-Sem)
11455         2 => True,    --  Name (Node2)
11456         3 => True,    --  Parameter_Associations (List3)
11457         4 => False,   --  First_Named_Actual (Node4-Sem)
11458         5 => False),  --  Etype (Node5-Sem)
11459
11460      N_Function_Call =>
11461        (1 => False,   --  Controlling_Argument (Node1-Sem)
11462         2 => True,    --  Name (Node2)
11463         3 => True,    --  Parameter_Associations (List3)
11464         4 => False,   --  First_Named_Actual (Node4-Sem)
11465         5 => False),  --  Etype (Node5-Sem)
11466
11467      N_Parameter_Association =>
11468        (1 => False,   --  unused
11469         2 => True,    --  Selector_Name (Node2)
11470         3 => True,    --  Explicit_Actual_Parameter (Node3)
11471         4 => False,   --  Next_Named_Actual (Node4-Sem)
11472         5 => False),  --  unused
11473
11474      N_Simple_Return_Statement =>
11475        (1 => False,   --  Storage_Pool (Node1-Sem)
11476         2 => False,   --  Procedure_To_Call (Node2-Sem)
11477         3 => True,    --  Expression (Node3)
11478         4 => False,   --  unused
11479         5 => False),  --  Return_Statement_Entity (Node5-Sem)
11480
11481      N_Extended_Return_Statement =>
11482        (1 => False,   --  Storage_Pool (Node1-Sem)
11483         2 => False,   --  Procedure_To_Call (Node2-Sem)
11484         3 => True,    --  Return_Object_Declarations (List3)
11485         4 => True,    --  Handled_Statement_Sequence (Node4)
11486         5 => False),  --  Return_Statement_Entity (Node5-Sem)
11487
11488      N_Package_Declaration =>
11489        (1 => True,    --  Specification (Node1)
11490         2 => False,   --  unused
11491         3 => False,   --  Activation_Chain_Entity (Node3-Sem)
11492         4 => False,   --  Parent_Spec (Node4-Sem)
11493         5 => False),  --  Corresponding_Body (Node5-Sem)
11494
11495      N_Package_Specification =>
11496        (1 => True,    --  Defining_Unit_Name (Node1)
11497         2 => True,    --  Visible_Declarations (List2)
11498         3 => True,    --  Private_Declarations (List3)
11499         4 => True,    --  End_Label (Node4)
11500         5 => False),  --  Generic_Parent (Node5-Sem)
11501
11502      N_Package_Body =>
11503        (1 => True,    --  Defining_Unit_Name (Node1)
11504         2 => True,    --  Declarations (List2)
11505         3 => False,   --  unused
11506         4 => True,    --  Handled_Statement_Sequence (Node4)
11507         5 => False),  --  Corresponding_Spec (Node5-Sem)
11508
11509      N_Private_Type_Declaration =>
11510        (1 => True,    --  Defining_Identifier (Node1)
11511         2 => False,   --  unused
11512         3 => False,   --  unused
11513         4 => True,    --  Discriminant_Specifications (List4)
11514         5 => False),  --  unused
11515
11516      N_Private_Extension_Declaration =>
11517        (1 => True,    --  Defining_Identifier (Node1)
11518         2 => True,    --  Interface_List (List2)
11519         3 => False,   --  unused
11520         4 => True,    --  Discriminant_Specifications (List4)
11521         5 => True),   --  Subtype_Indication (Node5)
11522
11523      N_Use_Package_Clause =>
11524        (1 => False,   --  unused
11525         2 => True,    --  Names (List2)
11526         3 => False,   --  Next_Use_Clause (Node3-Sem)
11527         4 => False,   --  Hidden_By_Use_Clause (Elist4-Sem)
11528         5 => False),  --  unused
11529
11530      N_Use_Type_Clause =>
11531        (1 => False,   --  unused
11532         2 => True,    --  Subtype_Marks (List2)
11533         3 => False,   --  Next_Use_Clause (Node3-Sem)
11534         4 => False,   --  Hidden_By_Use_Clause (Elist4-Sem)
11535         5 => False),  --  unused
11536
11537      N_Object_Renaming_Declaration =>
11538        (1 => True,    --  Defining_Identifier (Node1)
11539         2 => True,    --  Name (Node2)
11540         3 => True,    --  Access_Definition (Node3)
11541         4 => True,    --  Subtype_Mark (Node4)
11542         5 => False),  --  Corresponding_Generic_Association (Node5-Sem)
11543
11544      N_Exception_Renaming_Declaration =>
11545        (1 => True,    --  Defining_Identifier (Node1)
11546         2 => True,    --  Name (Node2)
11547         3 => False,   --  unused
11548         4 => False,   --  unused
11549         5 => False),  --  unused
11550
11551      N_Package_Renaming_Declaration =>
11552        (1 => True,    --  Defining_Unit_Name (Node1)
11553         2 => True,    --  Name (Node2)
11554         3 => False,   --  unused
11555         4 => False,   --  Parent_Spec (Node4-Sem)
11556         5 => False),  --  unused
11557
11558      N_Subprogram_Renaming_Declaration =>
11559        (1 => True,    --  Specification (Node1)
11560         2 => True,    --  Name (Node2)
11561         3 => False,   --  Corresponding_Formal_Spec (Node3-Sem)
11562         4 => False,   --  Parent_Spec (Node4-Sem)
11563         5 => False),  --  Corresponding_Spec (Node5-Sem)
11564
11565      N_Generic_Package_Renaming_Declaration =>
11566        (1 => True,    --  Defining_Unit_Name (Node1)
11567         2 => True,    --  Name (Node2)
11568         3 => False,   --  unused
11569         4 => False,   --  Parent_Spec (Node4-Sem)
11570         5 => False),  --  unused
11571
11572      N_Generic_Procedure_Renaming_Declaration =>
11573        (1 => True,    --  Defining_Unit_Name (Node1)
11574         2 => True,    --  Name (Node2)
11575         3 => False,   --  unused
11576         4 => False,   --  Parent_Spec (Node4-Sem)
11577         5 => False),  --  unused
11578
11579      N_Generic_Function_Renaming_Declaration =>
11580        (1 => True,    --  Defining_Unit_Name (Node1)
11581         2 => True,    --  Name (Node2)
11582         3 => False,   --  unused
11583         4 => False,   --  Parent_Spec (Node4-Sem)
11584         5 => False),  --  unused
11585
11586      N_Task_Type_Declaration =>
11587        (1 => True,    --  Defining_Identifier (Node1)
11588         2 => True,    --  Interface_List (List2)
11589         3 => True,    --  Task_Definition (Node3)
11590         4 => True,    --  Discriminant_Specifications (List4)
11591         5 => False),  --  Corresponding_Body (Node5-Sem)
11592
11593      N_Single_Task_Declaration =>
11594        (1 => True,    --  Defining_Identifier (Node1)
11595         2 => True,    --  Interface_List (List2)
11596         3 => True,    --  Task_Definition (Node3)
11597         4 => False,   --  unused
11598         5 => False),  --  unused
11599
11600      N_Task_Definition =>
11601        (1 => False,   --  unused
11602         2 => True,    --  Visible_Declarations (List2)
11603         3 => True,    --  Private_Declarations (List3)
11604         4 => True,    --  End_Label (Node4)
11605         5 => False),  --  unused
11606
11607      N_Task_Body =>
11608        (1 => True,    --  Defining_Identifier (Node1)
11609         2 => True,    --  Declarations (List2)
11610         3 => False,   --  Activation_Chain_Entity (Node3-Sem)
11611         4 => True,    --  Handled_Statement_Sequence (Node4)
11612         5 => False),  --  Corresponding_Spec (Node5-Sem)
11613
11614      N_Protected_Type_Declaration =>
11615        (1 => True,    --  Defining_Identifier (Node1)
11616         2 => True,    --  Interface_List (List2)
11617         3 => True,    --  Protected_Definition (Node3)
11618         4 => True,    --  Discriminant_Specifications (List4)
11619         5 => False),  --  Corresponding_Body (Node5-Sem)
11620
11621      N_Single_Protected_Declaration =>
11622        (1 => True,    --  Defining_Identifier (Node1)
11623         2 => True,    --  Interface_List (List2)
11624         3 => True,    --  Protected_Definition (Node3)
11625         4 => False,   --  unused
11626         5 => False),  --  unused
11627
11628      N_Protected_Definition =>
11629        (1 => False,   --  unused
11630         2 => True,    --  Visible_Declarations (List2)
11631         3 => True,    --  Private_Declarations (List3)
11632         4 => True,    --  End_Label (Node4)
11633         5 => False),  --  unused
11634
11635      N_Protected_Body =>
11636        (1 => True,    --  Defining_Identifier (Node1)
11637         2 => True,    --  Declarations (List2)
11638         3 => False,   --  unused
11639         4 => True,    --  End_Label (Node4)
11640         5 => False),  --  Corresponding_Spec (Node5-Sem)
11641
11642      N_Entry_Declaration =>
11643        (1 => True,    --  Defining_Identifier (Node1)
11644         2 => False,   --  unused
11645         3 => True,    --  Parameter_Specifications (List3)
11646         4 => True,    --  Discrete_Subtype_Definition (Node4)
11647         5 => False),  --  Corresponding_Body (Node5-Sem)
11648
11649      N_Accept_Statement =>
11650        (1 => True,    --  Entry_Direct_Name (Node1)
11651         2 => True,    --  Declarations (List2)
11652         3 => True,    --  Parameter_Specifications (List3)
11653         4 => True,    --  Handled_Statement_Sequence (Node4)
11654         5 => True),   --  Entry_Index (Node5)
11655
11656      N_Entry_Body =>
11657        (1 => True,    --  Defining_Identifier (Node1)
11658         2 => True,    --  Declarations (List2)
11659         3 => False,   --  Activation_Chain_Entity (Node3-Sem)
11660         4 => True,    --  Handled_Statement_Sequence (Node4)
11661         5 => True),   --  Entry_Body_Formal_Part (Node5)
11662
11663      N_Entry_Body_Formal_Part =>
11664        (1 => True,    --  Condition (Node1)
11665         2 => False,   --  unused
11666         3 => True,    --  Parameter_Specifications (List3)
11667         4 => True,    --  Entry_Index_Specification (Node4)
11668         5 => False),  --  unused
11669
11670      N_Entry_Index_Specification =>
11671        (1 => True,    --  Defining_Identifier (Node1)
11672         2 => False,   --  unused
11673         3 => False,   --  unused
11674         4 => True,    --  Discrete_Subtype_Definition (Node4)
11675         5 => False),  --  unused
11676
11677      N_Entry_Call_Statement =>
11678        (1 => False,   --  unused
11679         2 => True,    --  Name (Node2)
11680         3 => True,    --  Parameter_Associations (List3)
11681         4 => False,   --  First_Named_Actual (Node4-Sem)
11682         5 => False),  --  unused
11683
11684      N_Requeue_Statement =>
11685        (1 => False,   --  unused
11686         2 => True,    --  Name (Node2)
11687         3 => False,   --  unused
11688         4 => False,   --  unused
11689         5 => False),  --  unused
11690
11691      N_Delay_Until_Statement =>
11692        (1 => False,   --  unused
11693         2 => False,   --  unused
11694         3 => True,    --  Expression (Node3)
11695         4 => False,   --  unused
11696         5 => False),  --  unused
11697
11698      N_Delay_Relative_Statement =>
11699        (1 => False,   --  unused
11700         2 => False,   --  unused
11701         3 => True,    --  Expression (Node3)
11702         4 => False,   --  unused
11703         5 => False),  --  unused
11704
11705      N_Selective_Accept =>
11706        (1 => True,    --  Select_Alternatives (List1)
11707         2 => False,   --  unused
11708         3 => False,   --  unused
11709         4 => True,    --  Else_Statements (List4)
11710         5 => False),  --  unused
11711
11712      N_Accept_Alternative =>
11713        (1 => True,    --  Condition (Node1)
11714         2 => True,    --  Accept_Statement (Node2)
11715         3 => True,    --  Statements (List3)
11716         4 => True,    --  Pragmas_Before (List4)
11717         5 => False),  --  Accept_Handler_Records (List5-Sem)
11718
11719      N_Delay_Alternative =>
11720        (1 => True,    --  Condition (Node1)
11721         2 => True,    --  Delay_Statement (Node2)
11722         3 => True,    --  Statements (List3)
11723         4 => True,    --  Pragmas_Before (List4)
11724         5 => False),  --  unused
11725
11726      N_Terminate_Alternative =>
11727        (1 => True,    --  Condition (Node1)
11728         2 => False,   --  unused
11729         3 => False,   --  unused
11730         4 => True,    --  Pragmas_Before (List4)
11731         5 => True),   --  Pragmas_After (List5)
11732
11733      N_Timed_Entry_Call =>
11734        (1 => True,    --  Entry_Call_Alternative (Node1)
11735         2 => False,   --  unused
11736         3 => False,   --  unused
11737         4 => True,    --  Delay_Alternative (Node4)
11738         5 => False),  --  unused
11739
11740      N_Entry_Call_Alternative =>
11741        (1 => True,    --  Entry_Call_Statement (Node1)
11742         2 => False,   --  unused
11743         3 => True,    --  Statements (List3)
11744         4 => True,    --  Pragmas_Before (List4)
11745         5 => False),  --  unused
11746
11747      N_Conditional_Entry_Call =>
11748        (1 => True,    --  Entry_Call_Alternative (Node1)
11749         2 => False,   --  unused
11750         3 => False,   --  unused
11751         4 => True,    --  Else_Statements (List4)
11752         5 => False),  --  unused
11753
11754      N_Asynchronous_Select =>
11755        (1 => True,    --  Triggering_Alternative (Node1)
11756         2 => True,    --  Abortable_Part (Node2)
11757         3 => False,   --  unused
11758         4 => False,   --  unused
11759         5 => False),  --  unused
11760
11761      N_Triggering_Alternative =>
11762        (1 => True,    --  Triggering_Statement (Node1)
11763         2 => False,   --  unused
11764         3 => True,    --  Statements (List3)
11765         4 => True,    --  Pragmas_Before (List4)
11766         5 => False),  --  unused
11767
11768      N_Abortable_Part =>
11769        (1 => False,   --  unused
11770         2 => False,   --  unused
11771         3 => True,    --  Statements (List3)
11772         4 => False,   --  unused
11773         5 => False),  --  unused
11774
11775      N_Abort_Statement =>
11776        (1 => False,   --  unused
11777         2 => True,    --  Names (List2)
11778         3 => False,   --  unused
11779         4 => False,   --  unused
11780         5 => False),  --  unused
11781
11782      N_Compilation_Unit =>
11783        (1 => True,    --  Context_Items (List1)
11784         2 => True,    --  Unit (Node2)
11785         3 => False,   --  First_Inlined_Subprogram (Node3-Sem)
11786         4 => False,   --  Library_Unit (Node4-Sem)
11787         5 => True),   --  Aux_Decls_Node (Node5)
11788
11789      N_Compilation_Unit_Aux =>
11790        (1 => True,    --  Actions (List1)
11791         2 => True,    --  Declarations (List2)
11792         3 => False,   --  Default_Storage_Pool (Node3)
11793         4 => True,    --  Config_Pragmas (List4)
11794         5 => True),   --  Pragmas_After (List5)
11795
11796      N_With_Clause =>
11797        (1 => False,   --  unused
11798         2 => True,    --  Name (Node2)
11799         3 => False,   --  unused
11800         4 => False,   --  Library_Unit (Node4-Sem)
11801         5 => False),  --  Corresponding_Spec (Node5-Sem)
11802
11803      N_Subprogram_Body_Stub =>
11804        (1 => True,    --  Specification (Node1)
11805         2 => False,   --  Corresponding_Spec_Of_Stub (Node2-Sem)
11806         3 => False,   --  unused
11807         4 => False,   --  Library_Unit (Node4-Sem)
11808         5 => False),  --  Corresponding_Body (Node5-Sem)
11809
11810      N_Package_Body_Stub =>
11811        (1 => True,    --  Defining_Identifier (Node1)
11812         2 => False,   --  Corresponding_Spec_Of_Stub (Node2-Sem)
11813         3 => False,   --  unused
11814         4 => False,   --  Library_Unit (Node4-Sem)
11815         5 => False),  --  Corresponding_Body (Node5-Sem)
11816
11817      N_Task_Body_Stub =>
11818        (1 => True,    --  Defining_Identifier (Node1)
11819         2 => False,   --  Corresponding_Spec_Of_Stub (Node2-Sem)
11820         3 => False,   --  unused
11821         4 => False,   --  Library_Unit (Node4-Sem)
11822         5 => False),  --  Corresponding_Body (Node5-Sem)
11823
11824      N_Protected_Body_Stub =>
11825        (1 => True,    --  Defining_Identifier (Node1)
11826         2 => False,   --  Corresponding_Spec_Of_Stub (Node2-Sem)
11827         3 => False,   --  unused
11828         4 => False,   --  Library_Unit (Node4-Sem)
11829         5 => False),  --  Corresponding_Body (Node5-Sem)
11830
11831      N_Subunit =>
11832        (1 => True,    --  Proper_Body (Node1)
11833         2 => True,    --  Name (Node2)
11834         3 => False,   --  Corresponding_Stub (Node3-Sem)
11835         4 => False,   --  unused
11836         5 => False),  --  unused
11837
11838      N_Exception_Declaration =>
11839        (1 => True,    --  Defining_Identifier (Node1)
11840         2 => False,   --  unused
11841         3 => False,   --  Expression (Node3-Sem)
11842         4 => False,   --  unused
11843         5 => False),  --  unused
11844
11845      N_Handled_Sequence_Of_Statements =>
11846        (1 => True,    --  At_End_Proc (Node1)
11847         2 => False,   --  First_Real_Statement (Node2-Sem)
11848         3 => True,    --  Statements (List3)
11849         4 => True,    --  End_Label (Node4)
11850         5 => True),   --  Exception_Handlers (List5)
11851
11852      N_Exception_Handler =>
11853        (1 => False,   --  Local_Raise_Statements (Elist1)
11854         2 => True,    --  Choice_Parameter (Node2)
11855         3 => True,    --  Statements (List3)
11856         4 => True,    --  Exception_Choices (List4)
11857         5 => False),  --  Exception_Label (Node5)
11858
11859      N_Raise_Statement =>
11860        (1 => False,   --  unused
11861         2 => True,    --  Name (Node2)
11862         3 => True,    --  Expression (Node3)
11863         4 => False,   --  unused
11864         5 => False),  --  unused
11865
11866      N_Raise_Expression =>
11867        (1 => False,   --  unused
11868         2 => True,    --  Name (Node2)
11869         3 => True,    --  Expression (Node3)
11870         4 => False,   --  unused
11871         5 => False),  --  Etype (Node5-Sem)
11872
11873      N_Generic_Subprogram_Declaration =>
11874        (1 => True,    --  Specification (Node1)
11875         2 => True,    --  Generic_Formal_Declarations (List2)
11876         3 => False,   --  unused
11877         4 => False,   --  Parent_Spec (Node4-Sem)
11878         5 => False),  --  Corresponding_Body (Node5-Sem)
11879
11880      N_Generic_Package_Declaration =>
11881        (1 => True,    --  Specification (Node1)
11882         2 => True,    --  Generic_Formal_Declarations (List2)
11883         3 => False,   --  Activation_Chain_Entity (Node3-Sem)
11884         4 => False,   --  Parent_Spec (Node4-Sem)
11885         5 => False),  --  Corresponding_Body (Node5-Sem)
11886
11887      N_Package_Instantiation =>
11888        (1 => True,    --  Defining_Unit_Name (Node1)
11889         2 => True,    --  Name (Node2)
11890         3 => True,    --  Generic_Associations (List3)
11891         4 => False,   --  Parent_Spec (Node4-Sem)
11892         5 => False),  --  Instance_Spec (Node5-Sem)
11893
11894      N_Procedure_Instantiation =>
11895        (1 => True,    --  Defining_Unit_Name (Node1)
11896         2 => True,    --  Name (Node2)
11897         3 => True,    --  Generic_Associations (List3)
11898         4 => False,   --  Parent_Spec (Node4-Sem)
11899         5 => False),  --  Instance_Spec (Node5-Sem)
11900
11901      N_Function_Instantiation =>
11902        (1 => True,    --  Defining_Unit_Name (Node1)
11903         2 => True,    --  Name (Node2)
11904         3 => True,    --  Generic_Associations (List3)
11905         4 => False,   --  Parent_Spec (Node4-Sem)
11906         5 => False),  --  Instance_Spec (Node5-Sem)
11907
11908      N_Generic_Association =>
11909        (1 => True,    --  Explicit_Generic_Actual_Parameter (Node1)
11910         2 => True,    --  Selector_Name (Node2)
11911         3 => False,   --  unused
11912         4 => False,   --  unused
11913         5 => False),  --  unused
11914
11915      N_Formal_Object_Declaration =>
11916        (1 => True,    --  Defining_Identifier (Node1)
11917         2 => False,   --  unused
11918         3 => True,    --  Access_Definition (Node3)
11919         4 => True,    --  Subtype_Mark (Node4)
11920         5 => True),   --  Default_Expression (Node5)
11921
11922      N_Formal_Type_Declaration =>
11923        (1 => True,    --  Defining_Identifier (Node1)
11924         2 => False,   --  unused
11925         3 => True,    --  Formal_Type_Definition (Node3)
11926         4 => True,    --  Discriminant_Specifications (List4)
11927         5 => False),  --  unused
11928
11929      N_Formal_Private_Type_Definition =>
11930        (1 => False,   --  unused
11931         2 => False,   --  unused
11932         3 => False,   --  unused
11933         4 => False,   --  unused
11934         5 => False),  --  unused
11935
11936      N_Formal_Incomplete_Type_Definition =>
11937        (1 => False,   --  unused
11938         2 => False,   --  unused
11939         3 => False,   --  unused
11940         4 => False,   --  unused
11941         5 => False),  --  unused
11942
11943      N_Formal_Derived_Type_Definition =>
11944        (1 => False,   --  unused
11945         2 => True,    --  Interface_List (List2)
11946         3 => False,   --  unused
11947         4 => True,    --  Subtype_Mark (Node4)
11948         5 => False),  --  unused
11949
11950      N_Formal_Discrete_Type_Definition =>
11951        (1 => False,   --  unused
11952         2 => False,   --  unused
11953         3 => False,   --  unused
11954         4 => False,   --  unused
11955         5 => False),  --  unused
11956
11957      N_Formal_Signed_Integer_Type_Definition =>
11958        (1 => False,   --  unused
11959         2 => False,   --  unused
11960         3 => False,   --  unused
11961         4 => False,   --  unused
11962         5 => False),  --  unused
11963
11964      N_Formal_Modular_Type_Definition =>
11965        (1 => False,   --  unused
11966         2 => False,   --  unused
11967         3 => False,   --  unused
11968         4 => False,   --  unused
11969         5 => False),  --  unused
11970
11971      N_Formal_Floating_Point_Definition =>
11972        (1 => False,   --  unused
11973         2 => False,   --  unused
11974         3 => False,   --  unused
11975         4 => False,   --  unused
11976         5 => False),  --  unused
11977
11978      N_Formal_Ordinary_Fixed_Point_Definition =>
11979        (1 => False,   --  unused
11980         2 => False,   --  unused
11981         3 => False,   --  unused
11982         4 => False,   --  unused
11983         5 => False),  --  unused
11984
11985      N_Formal_Decimal_Fixed_Point_Definition =>
11986        (1 => False,   --  unused
11987         2 => False,   --  unused
11988         3 => False,   --  unused
11989         4 => False,   --  unused
11990         5 => False),  --  unused
11991
11992      N_Formal_Concrete_Subprogram_Declaration =>
11993        (1 => True,    --  Specification (Node1)
11994         2 => True,    --  Default_Name (Node2)
11995         3 => False,   --  unused
11996         4 => False,   --  unused
11997         5 => False),  --  unused
11998
11999      N_Formal_Abstract_Subprogram_Declaration =>
12000        (1 => True,    --  Specification (Node1)
12001         2 => True,    --  Default_Name (Node2)
12002         3 => False,   --  unused
12003         4 => False,   --  unused
12004         5 => False),  --  unused
12005
12006      N_Formal_Package_Declaration =>
12007        (1 => True,    --  Defining_Identifier (Node1)
12008         2 => True,    --  Name (Node2)
12009         3 => True,    --  Generic_Associations (List3)
12010         4 => False,   --  unused
12011         5 => False),  --  Instance_Spec (Node5-Sem)
12012
12013      N_Attribute_Definition_Clause =>
12014        (1 => True,    --  Chars (Name1)
12015         2 => True,    --  Name (Node2)
12016         3 => True,    --  Expression (Node3)
12017         4 => False,   --  unused
12018         5 => False),  --  Next_Rep_Item (Node5-Sem)
12019
12020      N_Aspect_Specification =>
12021        (1 => True,    --  Identifier (Node1)
12022         2 => False,   --  Aspect_Rep_Item (Node2-Sem)
12023         3 => True,    --  Expression (Node3)
12024         4 => False,   --  Entity (Node4-Sem)
12025         5 => False),  --  Next_Rep_Item (Node5-Sem)
12026
12027      N_Enumeration_Representation_Clause =>
12028        (1 => True,    --  Identifier (Node1)
12029         2 => False,   --  unused
12030         3 => True,    --  Array_Aggregate (Node3)
12031         4 => False,   --  unused
12032         5 => False),  --  Next_Rep_Item (Node5-Sem)
12033
12034      N_Record_Representation_Clause =>
12035        (1 => True,    --  Identifier (Node1)
12036         2 => True,    --  Mod_Clause (Node2)
12037         3 => True,    --  Component_Clauses (List3)
12038         4 => False,   --  unused
12039         5 => False),  --  Next_Rep_Item (Node5-Sem)
12040
12041      N_Component_Clause =>
12042        (1 => True,    --  Component_Name (Node1)
12043         2 => True,    --  Position (Node2)
12044         3 => True,    --  First_Bit (Node3)
12045         4 => True,    --  Last_Bit (Node4)
12046         5 => False),  --  unused
12047
12048      N_Code_Statement =>
12049        (1 => False,   --  unused
12050         2 => False,   --  unused
12051         3 => True,    --  Expression (Node3)
12052         4 => False,   --  unused
12053         5 => False),  --  unused
12054
12055      N_Op_Rotate_Left =>
12056        (1 => True,    --  Chars (Name1)
12057         2 => True,    --  Left_Opnd (Node2)
12058         3 => True,    --  Right_Opnd (Node3)
12059         4 => False,   --  Entity (Node4-Sem)
12060         5 => False),  --  Etype (Node5-Sem)
12061
12062      N_Op_Rotate_Right =>
12063        (1 => True,    --  Chars (Name1)
12064         2 => True,    --  Left_Opnd (Node2)
12065         3 => True,    --  Right_Opnd (Node3)
12066         4 => False,   --  Entity (Node4-Sem)
12067         5 => False),  --  Etype (Node5-Sem)
12068
12069      N_Op_Shift_Left =>
12070        (1 => True,    --  Chars (Name1)
12071         2 => True,    --  Left_Opnd (Node2)
12072         3 => True,    --  Right_Opnd (Node3)
12073         4 => False,   --  Entity (Node4-Sem)
12074         5 => False),  --  Etype (Node5-Sem)
12075
12076      N_Op_Shift_Right_Arithmetic =>
12077        (1 => True,    --  Chars (Name1)
12078         2 => True,    --  Left_Opnd (Node2)
12079         3 => True,    --  Right_Opnd (Node3)
12080         4 => False,   --  Entity (Node4-Sem)
12081         5 => False),  --  Etype (Node5-Sem)
12082
12083      N_Op_Shift_Right =>
12084        (1 => True,    --  Chars (Name1)
12085         2 => True,    --  Left_Opnd (Node2)
12086         3 => True,    --  Right_Opnd (Node3)
12087         4 => False,   --  Entity (Node4-Sem)
12088         5 => False),  --  Etype (Node5-Sem)
12089
12090      N_Delta_Constraint =>
12091        (1 => False,   --  unused
12092         2 => False,   --  unused
12093         3 => True,    --  Delta_Expression (Node3)
12094         4 => True,    --  Range_Constraint (Node4)
12095         5 => False),  --  unused
12096
12097      N_At_Clause =>
12098        (1 => True,    --  Identifier (Node1)
12099         2 => False,   --  unused
12100         3 => True,    --  Expression (Node3)
12101         4 => False,   --  unused
12102         5 => False),  --  unused
12103
12104      N_Mod_Clause =>
12105        (1 => False,   --  unused
12106         2 => False,   --  unused
12107         3 => True,    --  Expression (Node3)
12108         4 => True,    --  Pragmas_Before (List4)
12109         5 => False),  --  unused
12110
12111      N_If_Expression =>
12112        (1 => True,    --  Expressions (List1)
12113         2 => False,   --  Then_Actions (List2-Sem)
12114         3 => False,   --  Else_Actions (List3-Sem)
12115         4 => False,   --  unused
12116         5 => False),  --  Etype (Node5-Sem)
12117
12118      N_Compound_Statement =>
12119        (1 => True,    --  Actions (List1)
12120         2 => False,   --  unused
12121         3 => False,   --  unused
12122         4 => False,   --  unused
12123         5 => False),  --  unused
12124
12125      N_Contract =>
12126        (1 => False,   --  Pre_Post_Conditions (Node1)
12127         2 => False,   --  Contract_Test_Cases (Node2)
12128         3 => False,   --  Classifications (Node3)
12129         4 => False,   --  unused
12130         5 => False),  --  unused
12131
12132      N_Expanded_Name =>
12133        (1 => True,    --  Chars (Name1)
12134         2 => True,    --  Selector_Name (Node2)
12135         3 => True,    --  Prefix (Node3)
12136         4 => False,   --  Entity (Node4-Sem)
12137         5 => False),  --  Etype (Node5-Sem)
12138
12139      N_Expression_With_Actions =>
12140        (1 => True,    --  Actions (List1)
12141         2 => False,   --  unused
12142         3 => True,    --  Expression (Node3)
12143         4 => False,   --  unused
12144         5 => False),  --  unused
12145
12146      N_Free_Statement =>
12147        (1 => False,   --  Storage_Pool (Node1-Sem)
12148         2 => False,   --  Procedure_To_Call (Node2-Sem)
12149         3 => True,    --  Expression (Node3)
12150         4 => False,   --  Actual_Designated_Subtype (Node4-Sem)
12151         5 => False),  --  unused
12152
12153      N_Freeze_Entity =>
12154        (1 => True,    --  Actions (List1)
12155         2 => False,   --  Access_Types_To_Process (Elist2-Sem)
12156         3 => False,   --  TSS_Elist (Elist3-Sem)
12157         4 => False,   --  Entity (Node4-Sem)
12158         5 => False),  --  First_Subtype_Link (Node5-Sem)
12159
12160      N_Freeze_Generic_Entity =>
12161        (1 => False,   --  unused
12162         2 => False,   --  unused
12163         3 => False,   --  unused
12164         4 => False,   --  Entity (Node4-Sem)
12165         5 => False),  --  unused
12166
12167      N_Implicit_Label_Declaration =>
12168        (1 => True,    --  Defining_Identifier (Node1)
12169         2 => False,   --  Label_Construct (Node2-Sem)
12170         3 => False,   --  unused
12171         4 => False,   --  unused
12172         5 => False),  --  unused
12173
12174      N_Itype_Reference =>
12175        (1 => False,   --  Itype (Node1-Sem)
12176         2 => False,   --  unused
12177         3 => False,   --  unused
12178         4 => False,   --  unused
12179         5 => False),  --  unused
12180
12181      N_Raise_Constraint_Error =>
12182        (1 => True,    --  Condition (Node1)
12183         2 => False,   --  unused
12184         3 => True,    --  Reason (Uint3)
12185         4 => False,   --  unused
12186         5 => False),  --  Etype (Node5-Sem)
12187
12188      N_Raise_Program_Error =>
12189        (1 => True,    --  Condition (Node1)
12190         2 => False,   --  unused
12191         3 => True,    --  Reason (Uint3)
12192         4 => False,   --  unused
12193         5 => False),  --  Etype (Node5-Sem)
12194
12195      N_Raise_Storage_Error =>
12196        (1 => True,    --  Condition (Node1)
12197         2 => False,   --  unused
12198         3 => True,    --  Reason (Uint3)
12199         4 => False,   --  unused
12200         5 => False),  --  Etype (Node5-Sem)
12201
12202      N_Push_Constraint_Error_Label =>
12203        (1 => False,   --  unused
12204         2 => False,   --  unused
12205         3 => False,   --  unused
12206         4 => False,   --  unused
12207         5 => False),  --  unused
12208
12209      N_Push_Program_Error_Label =>
12210        (1 => False,   --  Exception_Label
12211         2 => False,   --  unused
12212         3 => False,   --  unused
12213         4 => False,   --  unused
12214         5 => False),  --  Exception_Label
12215
12216      N_Push_Storage_Error_Label =>
12217        (1 => False,   --  Exception_Label
12218         2 => False,   --  unused
12219         3 => False,   --  unused
12220         4 => False,   --  unused
12221         5 => False),  --  Exception_Label
12222
12223      N_Pop_Constraint_Error_Label =>
12224        (1 => False,   --  unused
12225         2 => False,   --  unused
12226         3 => False,   --  unused
12227         4 => False,   --  unused
12228         5 => False),  --  unused
12229
12230      N_Pop_Program_Error_Label =>
12231        (1 => False,   --  unused
12232         2 => False,   --  unused
12233         3 => False,   --  unused
12234         4 => False,   --  unused
12235         5 => False),  --  unused
12236
12237      N_Pop_Storage_Error_Label =>
12238        (1 => False,   --  unused
12239         2 => False,   --  unused
12240         3 => False,   --  unused
12241         4 => False,   --  unused
12242         5 => False),  --  unused
12243
12244      N_Reference =>
12245        (1 => False,   --  unused
12246         2 => False,   --  unused
12247         3 => True,    --  Prefix (Node3)
12248         4 => False,   --  unused
12249         5 => False),  --  Etype (Node5-Sem)
12250
12251      N_Unchecked_Expression =>
12252        (1 => False,   --  unused
12253         2 => False,   --  unused
12254         3 => True,    --  Expression (Node3)
12255         4 => False,   --  unused
12256         5 => False),  --  Etype (Node5-Sem)
12257
12258      N_Unchecked_Type_Conversion =>
12259        (1 => False,   --  unused
12260         2 => False,   --  unused
12261         3 => True,    --  Expression (Node3)
12262         4 => True,    --  Subtype_Mark (Node4)
12263         5 => False),  --  Etype (Node5-Sem)
12264
12265      N_Validate_Unchecked_Conversion =>
12266        (1 => False,   --  Source_Type (Node1-Sem)
12267         2 => False,   --  Target_Type (Node2-Sem)
12268         3 => False,   --  unused
12269         4 => False,   --  unused
12270         5 => False),  --  unused
12271
12272    --  Entries for SCIL nodes
12273
12274      N_SCIL_Dispatch_Table_Tag_Init =>
12275        (1 => False,   --  unused
12276         2 => False,   --  unused
12277         3 => False,   --  unused
12278         4 => False,   --  SCIL_Entity (Node4-Sem)
12279         5 => False),  --  unused
12280
12281      N_SCIL_Dispatching_Call =>
12282        (1 => False,   --  unused
12283         2 => False,   --  SCIL_Target_Prim (Node2-Sem)
12284         3 => False,   --  unused
12285         4 => False,   --  SCIL_Entity (Node4-Sem)
12286         5 => False),  --  SCIL_Controlling_Tag (Node5-Sem)
12287
12288      N_SCIL_Membership_Test =>
12289        (1 => False,   --  unused
12290         2 => False,   --  unused
12291         3 => False,   --  unused
12292         4 => False,   --  SCIL_Entity (Node4-Sem)
12293         5 => False),  --  SCIL_Tag_Value (Node5-Sem)
12294
12295    --  Entries for Empty, Error and Unused. Even thought these have a Chars
12296    --  field for debugging purposes, they are not really syntactic fields, so
12297    --  we mark all fields as unused.
12298
12299      N_Empty =>
12300        (1 => False,   --  unused
12301         2 => False,   --  unused
12302         3 => False,   --  unused
12303         4 => False,   --  unused
12304         5 => False),  --  unused
12305
12306      N_Error =>
12307        (1 => False,   --  unused
12308         2 => False,   --  unused
12309         3 => False,   --  unused
12310         4 => False,   --  unused
12311         5 => False),  --  unused
12312
12313      N_Unused_At_Start =>
12314        (1 => False,   --  unused
12315         2 => False,   --  unused
12316         3 => False,   --  unused
12317         4 => False,   --  unused
12318         5 => False),  --  unused
12319
12320      N_Unused_At_End =>
12321        (1 => False,   --  unused
12322         2 => False,   --  unused
12323         3 => False,   --  unused
12324         4 => False,   --  unused
12325         5 => False)); --  unused
12326
12327    --------------------
12328    -- Inline Pragmas --
12329    --------------------
12330
12331    pragma Inline (ABE_Is_Certain);
12332    pragma Inline (Abort_Present);
12333    pragma Inline (Abortable_Part);
12334    pragma Inline (Abstract_Present);
12335    pragma Inline (Accept_Handler_Records);
12336    pragma Inline (Accept_Statement);
12337    pragma Inline (Access_Definition);
12338    pragma Inline (Access_To_Subprogram_Definition);
12339    pragma Inline (Access_Types_To_Process);
12340    pragma Inline (Actions);
12341    pragma Inline (Activation_Chain_Entity);
12342    pragma Inline (Acts_As_Spec);
12343    pragma Inline (Actual_Designated_Subtype);
12344    pragma Inline (Address_Warning_Posted);
12345    pragma Inline (Aggregate_Bounds);
12346    pragma Inline (Aliased_Present);
12347    pragma Inline (All_Others);
12348    pragma Inline (All_Present);
12349    pragma Inline (Alternatives);
12350    pragma Inline (Ancestor_Part);
12351    pragma Inline (Atomic_Sync_Required);
12352    pragma Inline (Array_Aggregate);
12353    pragma Inline (Aspect_Rep_Item);
12354    pragma Inline (Assignment_OK);
12355    pragma Inline (Associated_Node);
12356    pragma Inline (At_End_Proc);
12357    pragma Inline (Attribute_Name);
12358    pragma Inline (Aux_Decls_Node);
12359    pragma Inline (Backwards_OK);
12360    pragma Inline (Bad_Is_Detected);
12361    pragma Inline (Body_To_Inline);
12362    pragma Inline (Body_Required);
12363    pragma Inline (By_Ref);
12364    pragma Inline (Box_Present);
12365    pragma Inline (Char_Literal_Value);
12366    pragma Inline (Chars);
12367    pragma Inline (Check_Address_Alignment);
12368    pragma Inline (Choice_Parameter);
12369    pragma Inline (Choices);
12370    pragma Inline (Class_Present);
12371    pragma Inline (Classifications);
12372    pragma Inline (Comes_From_Extended_Return_Statement);
12373    pragma Inline (Compile_Time_Known_Aggregate);
12374    pragma Inline (Component_Associations);
12375    pragma Inline (Component_Clauses);
12376    pragma Inline (Component_Definition);
12377    pragma Inline (Component_Items);
12378    pragma Inline (Component_List);
12379    pragma Inline (Component_Name);
12380    pragma Inline (Componentwise_Assignment);
12381    pragma Inline (Condition);
12382    pragma Inline (Condition_Actions);
12383    pragma Inline (Config_Pragmas);
12384    pragma Inline (Constant_Present);
12385    pragma Inline (Constraint);
12386    pragma Inline (Constraints);
12387    pragma Inline (Context_Installed);
12388    pragma Inline (Context_Items);
12389    pragma Inline (Context_Pending);
12390    pragma Inline (Contract_Test_Cases);
12391    pragma Inline (Controlling_Argument);
12392    pragma Inline (Convert_To_Return_False);
12393    pragma Inline (Conversion_OK);
12394    pragma Inline (Corresponding_Aspect);
12395    pragma Inline (Corresponding_Body);
12396    pragma Inline (Corresponding_Formal_Spec);
12397    pragma Inline (Corresponding_Generic_Association);
12398    pragma Inline (Corresponding_Integer_Value);
12399    pragma Inline (Corresponding_Spec);
12400    pragma Inline (Corresponding_Spec_Of_Stub);
12401    pragma Inline (Corresponding_Stub);
12402    pragma Inline (Dcheck_Function);
12403    pragma Inline (Declarations);
12404    pragma Inline (Default_Expression);
12405    pragma Inline (Default_Storage_Pool);
12406    pragma Inline (Default_Name);
12407    pragma Inline (Defining_Identifier);
12408    pragma Inline (Defining_Unit_Name);
12409    pragma Inline (Delay_Alternative);
12410    pragma Inline (Delay_Statement);
12411    pragma Inline (Delta_Expression);
12412    pragma Inline (Digits_Expression);
12413    pragma Inline (Discr_Check_Funcs_Built);
12414    pragma Inline (Discrete_Choices);
12415    pragma Inline (Discrete_Range);
12416    pragma Inline (Discrete_Subtype_Definition);
12417    pragma Inline (Discrete_Subtype_Definitions);
12418    pragma Inline (Discriminant_Specifications);
12419    pragma Inline (Discriminant_Type);
12420    pragma Inline (Do_Accessibility_Check);
12421    pragma Inline (Do_Discriminant_Check);
12422    pragma Inline (Do_Length_Check);
12423    pragma Inline (Do_Division_Check);
12424    pragma Inline (Do_Overflow_Check);
12425    pragma Inline (Do_Range_Check);
12426    pragma Inline (Do_Storage_Check);
12427    pragma Inline (Do_Tag_Check);
12428    pragma Inline (Elaborate_Present);
12429    pragma Inline (Elaborate_All_Desirable);
12430    pragma Inline (Elaborate_All_Present);
12431    pragma Inline (Elaborate_Desirable);
12432    pragma Inline (Elaboration_Boolean);
12433    pragma Inline (Else_Actions);
12434    pragma Inline (Else_Statements);
12435    pragma Inline (Elsif_Parts);
12436    pragma Inline (Enclosing_Variant);
12437    pragma Inline (End_Label);
12438    pragma Inline (End_Span);
12439    pragma Inline (Entity);
12440    pragma Inline (Entity_Or_Associated_Node);
12441    pragma Inline (Entry_Body_Formal_Part);
12442    pragma Inline (Entry_Call_Alternative);
12443    pragma Inline (Entry_Call_Statement);
12444    pragma Inline (Entry_Direct_Name);
12445    pragma Inline (Entry_Index);
12446    pragma Inline (Entry_Index_Specification);
12447    pragma Inline (Etype);
12448    pragma Inline (Exception_Choices);
12449    pragma Inline (Exception_Handlers);
12450    pragma Inline (Exception_Junk);
12451    pragma Inline (Exception_Label);
12452    pragma Inline (Expansion_Delayed);
12453    pragma Inline (Explicit_Actual_Parameter);
12454    pragma Inline (Explicit_Generic_Actual_Parameter);
12455    pragma Inline (Expression);
12456    pragma Inline (Expressions);
12457    pragma Inline (First_Bit);
12458    pragma Inline (First_Inlined_Subprogram);
12459    pragma Inline (First_Name);
12460    pragma Inline (First_Named_Actual);
12461    pragma Inline (First_Real_Statement);
12462    pragma Inline (First_Subtype_Link);
12463    pragma Inline (Float_Truncate);
12464    pragma Inline (Formal_Type_Definition);
12465    pragma Inline (Forwards_OK);
12466    pragma Inline (From_Aspect_Specification);
12467    pragma Inline (From_At_End);
12468    pragma Inline (From_At_Mod);
12469    pragma Inline (From_Default);
12470    pragma Inline (Generalized_Indexing);
12471    pragma Inline (Generic_Associations);
12472    pragma Inline (Generic_Formal_Declarations);
12473    pragma Inline (Generic_Parent);
12474    pragma Inline (Generic_Parent_Type);
12475    pragma Inline (Handled_Statement_Sequence);
12476    pragma Inline (Handler_List_Entry);
12477    pragma Inline (Has_Created_Identifier);
12478    pragma Inline (Has_Dereference_Action);
12479    pragma Inline (Has_Dynamic_Length_Check);
12480    pragma Inline (Has_Dynamic_Range_Check);
12481    pragma Inline (Has_Init_Expression);
12482    pragma Inline (Has_Local_Raise);
12483    pragma Inline (Has_Self_Reference);
12484    pragma Inline (Has_SP_Choice);
12485    pragma Inline (Has_No_Elaboration_Code);
12486    pragma Inline (Has_Pragma_Suppress_All);
12487    pragma Inline (Has_Private_View);
12488    pragma Inline (Has_Relative_Deadline_Pragma);
12489    pragma Inline (Has_Storage_Size_Pragma);
12490    pragma Inline (Has_Wide_Character);
12491    pragma Inline (Has_Wide_Wide_Character);
12492    pragma Inline (Header_Size_Added);
12493    pragma Inline (Hidden_By_Use_Clause);
12494    pragma Inline (High_Bound);
12495    pragma Inline (Identifier);
12496    pragma Inline (Implicit_With);
12497    pragma Inline (Implicit_With_From_Instantiation);
12498    pragma Inline (Interface_List);
12499    pragma Inline (Interface_Present);
12500    pragma Inline (Includes_Infinities);
12501    pragma Inline (Import_Interface_Present);
12502    pragma Inline (In_Present);
12503    pragma Inline (Inherited_Discriminant);
12504    pragma Inline (Instance_Spec);
12505    pragma Inline (Intval);
12506    pragma Inline (Iterator_Specification);
12507    pragma Inline (Is_Accessibility_Actual);
12508    pragma Inline (Is_Asynchronous_Call_Block);
12509    pragma Inline (Is_Boolean_Aspect);
12510    pragma Inline (Is_Checked);
12511    pragma Inline (Is_Component_Left_Opnd);
12512    pragma Inline (Is_Component_Right_Opnd);
12513    pragma Inline (Is_Controlling_Actual);
12514    pragma Inline (Is_Delayed_Aspect);
12515    pragma Inline (Is_Disabled);
12516    pragma Inline (Is_Dynamic_Coextension);
12517    pragma Inline (Is_Elsif);
12518    pragma Inline (Is_Entry_Barrier_Function);
12519    pragma Inline (Is_Expanded_Build_In_Place_Call);
12520    pragma Inline (Is_Finalization_Wrapper);
12521    pragma Inline (Is_Folded_In_Parser);
12522    pragma Inline (Is_Ignored);
12523    pragma Inline (Is_In_Discriminant_Check);
12524    pragma Inline (Is_Machine_Number);
12525    pragma Inline (Is_Null_Loop);
12526    pragma Inline (Is_Overloaded);
12527    pragma Inline (Is_Power_Of_2_For_Shift);
12528    pragma Inline (Is_Prefixed_Call);
12529    pragma Inline (Is_Protected_Subprogram_Body);
12530    pragma Inline (Is_Static_Coextension);
12531    pragma Inline (Is_Static_Expression);
12532    pragma Inline (Is_Subprogram_Descriptor);
12533    pragma Inline (Is_Task_Allocation_Block);
12534    pragma Inline (Is_Task_Master);
12535    pragma Inline (Iteration_Scheme);
12536    pragma Inline (Itype);
12537    pragma Inline (Kill_Range_Check);
12538    pragma Inline (Last_Bit);
12539    pragma Inline (Last_Name);
12540    pragma Inline (Library_Unit);
12541    pragma Inline (Label_Construct);
12542    pragma Inline (Left_Opnd);
12543    pragma Inline (Limited_View_Installed);
12544    pragma Inline (Limited_Present);
12545    pragma Inline (Literals);
12546    pragma Inline (Local_Raise_Not_OK);
12547    pragma Inline (Local_Raise_Statements);
12548    pragma Inline (Loop_Actions);
12549    pragma Inline (Loop_Parameter_Specification);
12550    pragma Inline (Low_Bound);
12551    pragma Inline (Mod_Clause);
12552    pragma Inline (More_Ids);
12553    pragma Inline (Must_Be_Byte_Aligned);
12554    pragma Inline (Must_Not_Freeze);
12555    pragma Inline (Must_Not_Override);
12556    pragma Inline (Must_Override);
12557    pragma Inline (Name);
12558    pragma Inline (Names);
12559    pragma Inline (Next_Entity);
12560    pragma Inline (Next_Exit_Statement);
12561    pragma Inline (Next_Implicit_With);
12562    pragma Inline (Next_Named_Actual);
12563    pragma Inline (Next_Pragma);
12564    pragma Inline (Next_Rep_Item);
12565    pragma Inline (Next_Use_Clause);
12566    pragma Inline (No_Ctrl_Actions);
12567    pragma Inline (No_Elaboration_Check);
12568    pragma Inline (No_Entities_Ref_In_Spec);
12569    pragma Inline (No_Initialization);
12570    pragma Inline (No_Minimize_Eliminate);
12571    pragma Inline (No_Truncation);
12572    pragma Inline (Non_Aliased_Prefix);
12573    pragma Inline (Null_Present);
12574    pragma Inline (Null_Exclusion_Present);
12575    pragma Inline (Null_Exclusion_In_Return_Present);
12576    pragma Inline (Null_Record_Present);
12577    pragma Inline (Object_Definition);
12578    pragma Inline (Of_Present);
12579    pragma Inline (Original_Discriminant);
12580    pragma Inline (Original_Entity);
12581    pragma Inline (Others_Discrete_Choices);
12582    pragma Inline (Out_Present);
12583    pragma Inline (Parameter_Associations);
12584    pragma Inline (Parameter_Specifications);
12585    pragma Inline (Parameter_List_Truncated);
12586    pragma Inline (Parameter_Type);
12587    pragma Inline (Parent_Spec);
12588    pragma Inline (Position);
12589    pragma Inline (Pragma_Argument_Associations);
12590    pragma Inline (Pragma_Identifier);
12591    pragma Inline (Pragmas_After);
12592    pragma Inline (Pragmas_Before);
12593    pragma Inline (Pre_Post_Conditions);
12594    pragma Inline (Prefix);
12595    pragma Inline (Premature_Use);
12596    pragma Inline (Present_Expr);
12597    pragma Inline (Prev_Ids);
12598    pragma Inline (Print_In_Hex);
12599    pragma Inline (Private_Declarations);
12600    pragma Inline (Private_Present);
12601    pragma Inline (Procedure_To_Call);
12602    pragma Inline (Proper_Body);
12603    pragma Inline (Protected_Definition);
12604    pragma Inline (Protected_Present);
12605    pragma Inline (Raises_Constraint_Error);
12606    pragma Inline (Range_Constraint);
12607    pragma Inline (Range_Expression);
12608    pragma Inline (Real_Range_Specification);
12609    pragma Inline (Realval);
12610    pragma Inline (Reason);
12611    pragma Inline (Record_Extension_Part);
12612    pragma Inline (Redundant_Use);
12613    pragma Inline (Renaming_Exception);
12614    pragma Inline (Result_Definition);
12615    pragma Inline (Return_Object_Declarations);
12616    pragma Inline (Return_Statement_Entity);
12617    pragma Inline (Reverse_Present);
12618    pragma Inline (Right_Opnd);
12619    pragma Inline (Rounded_Result);
12620    pragma Inline (SCIL_Controlling_Tag);
12621    pragma Inline (SCIL_Entity);
12622    pragma Inline (SCIL_Tag_Value);
12623    pragma Inline (SCIL_Target_Prim);
12624    pragma Inline (Scope);
12625    pragma Inline (Select_Alternatives);
12626    pragma Inline (Selector_Name);
12627    pragma Inline (Selector_Names);
12628    pragma Inline (Shift_Count_OK);
12629    pragma Inline (Source_Type);
12630    pragma Inline (Specification);
12631    pragma Inline (Split_PPC);
12632    pragma Inline (Statements);
12633    pragma Inline (Storage_Pool);
12634    pragma Inline (Subpool_Handle_Name);
12635    pragma Inline (Strval);
12636    pragma Inline (Subtype_Indication);
12637    pragma Inline (Subtype_Mark);
12638    pragma Inline (Subtype_Marks);
12639    pragma Inline (Suppress_Assignment_Checks);
12640    pragma Inline (Suppress_Loop_Warnings);
12641    pragma Inline (Synchronized_Present);
12642    pragma Inline (Tagged_Present);
12643    pragma Inline (Target_Type);
12644    pragma Inline (Task_Definition);
12645    pragma Inline (Task_Present);
12646    pragma Inline (Then_Actions);
12647    pragma Inline (Then_Statements);
12648    pragma Inline (Triggering_Alternative);
12649    pragma Inline (Triggering_Statement);
12650    pragma Inline (Treat_Fixed_As_Integer);
12651    pragma Inline (TSS_Elist);
12652    pragma Inline (Type_Definition);
12653    pragma Inline (Unit);
12654    pragma Inline (Uninitialized_Variable);
12655    pragma Inline (Unknown_Discriminants_Present);
12656    pragma Inline (Unreferenced_In_Spec);
12657    pragma Inline (Variant_Part);
12658    pragma Inline (Variants);
12659    pragma Inline (Visible_Declarations);
12660    pragma Inline (Used_Operations);
12661    pragma Inline (Was_Originally_Stub);
12662    pragma Inline (Withed_Body);
12663
12664    pragma Inline (Set_ABE_Is_Certain);
12665    pragma Inline (Set_Abort_Present);
12666    pragma Inline (Set_Abortable_Part);
12667    pragma Inline (Set_Abstract_Present);
12668    pragma Inline (Set_Accept_Handler_Records);
12669    pragma Inline (Set_Accept_Statement);
12670    pragma Inline (Set_Access_Definition);
12671    pragma Inline (Set_Access_To_Subprogram_Definition);
12672    pragma Inline (Set_Access_Types_To_Process);
12673    pragma Inline (Set_Actions);
12674    pragma Inline (Set_Activation_Chain_Entity);
12675    pragma Inline (Set_Acts_As_Spec);
12676    pragma Inline (Set_Actual_Designated_Subtype);
12677    pragma Inline (Set_Address_Warning_Posted);
12678    pragma Inline (Set_Aggregate_Bounds);
12679    pragma Inline (Set_Aliased_Present);
12680    pragma Inline (Set_All_Others);
12681    pragma Inline (Set_All_Present);
12682    pragma Inline (Set_Alternatives);
12683    pragma Inline (Set_Ancestor_Part);
12684    pragma Inline (Set_Array_Aggregate);
12685    pragma Inline (Set_Aspect_Rep_Item);
12686    pragma Inline (Set_Assignment_OK);
12687    pragma Inline (Set_Associated_Node);
12688    pragma Inline (Set_At_End_Proc);
12689    pragma Inline (Set_Atomic_Sync_Required);
12690    pragma Inline (Set_Attribute_Name);
12691    pragma Inline (Set_Aux_Decls_Node);
12692    pragma Inline (Set_Backwards_OK);
12693    pragma Inline (Set_Bad_Is_Detected);
12694    pragma Inline (Set_Body_Required);
12695    pragma Inline (Set_Body_To_Inline);
12696    pragma Inline (Set_Box_Present);
12697    pragma Inline (Set_By_Ref);
12698    pragma Inline (Set_Char_Literal_Value);
12699    pragma Inline (Set_Chars);
12700    pragma Inline (Set_Check_Address_Alignment);
12701    pragma Inline (Set_Choice_Parameter);
12702    pragma Inline (Set_Choices);
12703    pragma Inline (Set_Class_Present);
12704    pragma Inline (Set_Classifications);
12705    pragma Inline (Set_Comes_From_Extended_Return_Statement);
12706    pragma Inline (Set_Compile_Time_Known_Aggregate);
12707    pragma Inline (Set_Component_Associations);
12708    pragma Inline (Set_Component_Clauses);
12709    pragma Inline (Set_Component_Definition);
12710    pragma Inline (Set_Component_Items);
12711    pragma Inline (Set_Component_List);
12712    pragma Inline (Set_Component_Name);
12713    pragma Inline (Set_Componentwise_Assignment);
12714    pragma Inline (Set_Condition);
12715    pragma Inline (Set_Condition_Actions);
12716    pragma Inline (Set_Config_Pragmas);
12717    pragma Inline (Set_Constant_Present);
12718    pragma Inline (Set_Constraint);
12719    pragma Inline (Set_Constraints);
12720    pragma Inline (Set_Context_Installed);
12721    pragma Inline (Set_Context_Items);
12722    pragma Inline (Set_Context_Pending);
12723    pragma Inline (Set_Contract_Test_Cases);
12724    pragma Inline (Set_Controlling_Argument);
12725    pragma Inline (Set_Conversion_OK);
12726    pragma Inline (Set_Convert_To_Return_False);
12727    pragma Inline (Set_Corresponding_Aspect);
12728    pragma Inline (Set_Corresponding_Body);
12729    pragma Inline (Set_Corresponding_Formal_Spec);
12730    pragma Inline (Set_Corresponding_Generic_Association);
12731    pragma Inline (Set_Corresponding_Integer_Value);
12732    pragma Inline (Set_Corresponding_Spec);
12733    pragma Inline (Set_Corresponding_Spec_Of_Stub);
12734    pragma Inline (Set_Corresponding_Stub);
12735    pragma Inline (Set_Dcheck_Function);
12736    pragma Inline (Set_Declarations);
12737    pragma Inline (Set_Default_Expression);
12738    pragma Inline (Set_Default_Name);
12739    pragma Inline (Set_Default_Storage_Pool);
12740    pragma Inline (Set_Defining_Identifier);
12741    pragma Inline (Set_Defining_Unit_Name);
12742    pragma Inline (Set_Delay_Alternative);
12743    pragma Inline (Set_Delay_Statement);
12744    pragma Inline (Set_Delta_Expression);
12745    pragma Inline (Set_Digits_Expression);
12746    pragma Inline (Set_Discr_Check_Funcs_Built);
12747    pragma Inline (Set_Discrete_Choices);
12748    pragma Inline (Set_Discrete_Range);
12749    pragma Inline (Set_Discrete_Subtype_Definition);
12750    pragma Inline (Set_Discrete_Subtype_Definitions);
12751    pragma Inline (Set_Discriminant_Specifications);
12752    pragma Inline (Set_Discriminant_Type);
12753    pragma Inline (Set_Do_Accessibility_Check);
12754    pragma Inline (Set_Do_Discriminant_Check);
12755    pragma Inline (Set_Do_Division_Check);
12756    pragma Inline (Set_Do_Length_Check);
12757    pragma Inline (Set_Do_Overflow_Check);
12758    pragma Inline (Set_Do_Range_Check);
12759    pragma Inline (Set_Do_Storage_Check);
12760    pragma Inline (Set_Do_Tag_Check);
12761    pragma Inline (Set_Elaborate_All_Desirable);
12762    pragma Inline (Set_Elaborate_All_Present);
12763    pragma Inline (Set_Elaborate_Desirable);
12764    pragma Inline (Set_Elaborate_Present);
12765    pragma Inline (Set_Elaboration_Boolean);
12766    pragma Inline (Set_Else_Actions);
12767    pragma Inline (Set_Else_Statements);
12768    pragma Inline (Set_Elsif_Parts);
12769    pragma Inline (Set_Enclosing_Variant);
12770    pragma Inline (Set_End_Label);
12771    pragma Inline (Set_End_Span);
12772    pragma Inline (Set_Entity);
12773    pragma Inline (Set_Entry_Body_Formal_Part);
12774    pragma Inline (Set_Entry_Call_Alternative);
12775    pragma Inline (Set_Entry_Call_Statement);
12776    pragma Inline (Set_Entry_Direct_Name);
12777    pragma Inline (Set_Entry_Index);
12778    pragma Inline (Set_Entry_Index_Specification);
12779    pragma Inline (Set_Etype);
12780    pragma Inline (Set_Exception_Choices);
12781    pragma Inline (Set_Exception_Handlers);
12782    pragma Inline (Set_Exception_Junk);
12783    pragma Inline (Set_Exception_Label);
12784    pragma Inline (Set_Expansion_Delayed);
12785    pragma Inline (Set_Explicit_Actual_Parameter);
12786    pragma Inline (Set_Explicit_Generic_Actual_Parameter);
12787    pragma Inline (Set_Expression);
12788    pragma Inline (Set_Expressions);
12789    pragma Inline (Set_First_Bit);
12790    pragma Inline (Set_First_Inlined_Subprogram);
12791    pragma Inline (Set_First_Name);
12792    pragma Inline (Set_First_Named_Actual);
12793    pragma Inline (Set_First_Real_Statement);
12794    pragma Inline (Set_First_Subtype_Link);
12795    pragma Inline (Set_Float_Truncate);
12796    pragma Inline (Set_Formal_Type_Definition);
12797    pragma Inline (Set_Forwards_OK);
12798    pragma Inline (Set_From_Aspect_Specification);
12799    pragma Inline (Set_From_At_End);
12800    pragma Inline (Set_From_At_Mod);
12801    pragma Inline (Set_From_Default);
12802    pragma Inline (Set_Generalized_Indexing);
12803    pragma Inline (Set_Generic_Associations);
12804    pragma Inline (Set_Generic_Formal_Declarations);
12805    pragma Inline (Set_Generic_Parent);
12806    pragma Inline (Set_Generic_Parent_Type);
12807    pragma Inline (Set_Handled_Statement_Sequence);
12808    pragma Inline (Set_Handler_List_Entry);
12809    pragma Inline (Set_Has_Created_Identifier);
12810    pragma Inline (Set_Has_Dereference_Action);
12811    pragma Inline (Set_Has_Dynamic_Length_Check);
12812    pragma Inline (Set_Has_Dynamic_Range_Check);
12813    pragma Inline (Set_Has_Init_Expression);
12814    pragma Inline (Set_Has_Local_Raise);
12815    pragma Inline (Set_Has_No_Elaboration_Code);
12816    pragma Inline (Set_Has_Pragma_Suppress_All);
12817    pragma Inline (Set_Has_Private_View);
12818    pragma Inline (Set_Has_Relative_Deadline_Pragma);
12819    pragma Inline (Set_Has_Self_Reference);
12820    pragma Inline (Set_Has_SP_Choice);
12821    pragma Inline (Set_Has_Storage_Size_Pragma);
12822    pragma Inline (Set_Has_Wide_Character);
12823    pragma Inline (Set_Has_Wide_Wide_Character);
12824    pragma Inline (Set_Header_Size_Added);
12825    pragma Inline (Set_Hidden_By_Use_Clause);
12826    pragma Inline (Set_High_Bound);
12827    pragma Inline (Set_Identifier);
12828    pragma Inline (Set_Implicit_With);
12829    pragma Inline (Set_Import_Interface_Present);
12830    pragma Inline (Set_In_Present);
12831    pragma Inline (Set_Includes_Infinities);
12832    pragma Inline (Set_Inherited_Discriminant);
12833    pragma Inline (Set_Instance_Spec);
12834    pragma Inline (Set_Interface_List);
12835    pragma Inline (Set_Interface_Present);
12836    pragma Inline (Set_Intval);
12837    pragma Inline (Set_Is_Accessibility_Actual);
12838    pragma Inline (Set_Is_Asynchronous_Call_Block);
12839    pragma Inline (Set_Is_Boolean_Aspect);
12840    pragma Inline (Set_Is_Checked);
12841    pragma Inline (Set_Is_Component_Left_Opnd);
12842    pragma Inline (Set_Is_Component_Right_Opnd);
12843    pragma Inline (Set_Is_Controlling_Actual);
12844    pragma Inline (Set_Is_Delayed_Aspect);
12845    pragma Inline (Set_Is_Disabled);
12846    pragma Inline (Set_Is_Dynamic_Coextension);
12847    pragma Inline (Set_Is_Elsif);
12848    pragma Inline (Set_Is_Entry_Barrier_Function);
12849    pragma Inline (Set_Is_Expanded_Build_In_Place_Call);
12850    pragma Inline (Set_Is_Finalization_Wrapper);
12851    pragma Inline (Set_Is_Folded_In_Parser);
12852    pragma Inline (Set_Is_Ignored);
12853    pragma Inline (Set_Is_In_Discriminant_Check);
12854    pragma Inline (Set_Is_Machine_Number);
12855    pragma Inline (Set_Is_Null_Loop);
12856    pragma Inline (Set_Is_Overloaded);
12857    pragma Inline (Set_Is_Power_Of_2_For_Shift);
12858    pragma Inline (Set_Is_Prefixed_Call);
12859    pragma Inline (Set_Is_Protected_Subprogram_Body);
12860    pragma Inline (Set_Is_Static_Coextension);
12861    pragma Inline (Set_Is_Static_Expression);
12862    pragma Inline (Set_Is_Subprogram_Descriptor);
12863    pragma Inline (Set_Is_Task_Allocation_Block);
12864    pragma Inline (Set_Is_Task_Master);
12865    pragma Inline (Set_Iteration_Scheme);
12866    pragma Inline (Set_Iterator_Specification);
12867    pragma Inline (Set_Itype);
12868    pragma Inline (Set_Kill_Range_Check);
12869    pragma Inline (Set_Label_Construct);
12870    pragma Inline (Set_Last_Bit);
12871    pragma Inline (Set_Last_Name);
12872    pragma Inline (Set_Left_Opnd);
12873    pragma Inline (Set_Library_Unit);
12874    pragma Inline (Set_Limited_Present);
12875    pragma Inline (Set_Limited_View_Installed);
12876    pragma Inline (Set_Literals);
12877    pragma Inline (Set_Local_Raise_Not_OK);
12878    pragma Inline (Set_Local_Raise_Statements);
12879    pragma Inline (Set_Loop_Actions);
12880    pragma Inline (Set_Loop_Parameter_Specification);
12881    pragma Inline (Set_Low_Bound);
12882    pragma Inline (Set_Mod_Clause);
12883    pragma Inline (Set_More_Ids);
12884    pragma Inline (Set_Must_Be_Byte_Aligned);
12885    pragma Inline (Set_Must_Not_Freeze);
12886    pragma Inline (Set_Must_Not_Override);
12887    pragma Inline (Set_Must_Override);
12888    pragma Inline (Set_Name);
12889    pragma Inline (Set_Names);
12890    pragma Inline (Set_Next_Entity);
12891    pragma Inline (Set_Next_Exit_Statement);
12892    pragma Inline (Set_Next_Implicit_With);
12893    pragma Inline (Set_Next_Named_Actual);
12894    pragma Inline (Set_Next_Pragma);
12895    pragma Inline (Set_Next_Rep_Item);
12896    pragma Inline (Set_Next_Use_Clause);
12897    pragma Inline (Set_No_Ctrl_Actions);
12898    pragma Inline (Set_No_Elaboration_Check);
12899    pragma Inline (Set_No_Entities_Ref_In_Spec);
12900    pragma Inline (Set_No_Initialization);
12901    pragma Inline (Set_No_Minimize_Eliminate);
12902    pragma Inline (Set_No_Truncation);
12903    pragma Inline (Set_Non_Aliased_Prefix);
12904    pragma Inline (Set_Null_Exclusion_Present);
12905    pragma Inline (Set_Null_Exclusion_In_Return_Present);
12906    pragma Inline (Set_Null_Present);
12907    pragma Inline (Set_Null_Record_Present);
12908    pragma Inline (Set_Object_Definition);
12909    pragma Inline (Set_Of_Present);
12910    pragma Inline (Set_Original_Discriminant);
12911    pragma Inline (Set_Original_Entity);
12912    pragma Inline (Set_Others_Discrete_Choices);
12913    pragma Inline (Set_Out_Present);
12914    pragma Inline (Set_Parameter_Associations);
12915    pragma Inline (Set_Parameter_List_Truncated);
12916    pragma Inline (Set_Parameter_Specifications);
12917    pragma Inline (Set_Parameter_Type);
12918    pragma Inline (Set_Parent_Spec);
12919    pragma Inline (Set_Position);
12920    pragma Inline (Set_Pragma_Argument_Associations);
12921    pragma Inline (Set_Pragma_Identifier);
12922    pragma Inline (Set_Pragmas_After);
12923    pragma Inline (Set_Pragmas_Before);
12924    pragma Inline (Set_Pre_Post_Conditions);
12925    pragma Inline (Set_Prefix);
12926    pragma Inline (Set_Premature_Use);
12927    pragma Inline (Set_Present_Expr);
12928    pragma Inline (Set_Prev_Ids);
12929    pragma Inline (Set_Print_In_Hex);
12930    pragma Inline (Set_Private_Declarations);
12931    pragma Inline (Set_Private_Present);
12932    pragma Inline (Set_Procedure_To_Call);
12933    pragma Inline (Set_Proper_Body);
12934    pragma Inline (Set_Protected_Definition);
12935    pragma Inline (Set_Protected_Present);
12936    pragma Inline (Set_Raises_Constraint_Error);
12937    pragma Inline (Set_Range_Constraint);
12938    pragma Inline (Set_Range_Expression);
12939    pragma Inline (Set_Real_Range_Specification);
12940    pragma Inline (Set_Realval);
12941    pragma Inline (Set_Reason);
12942    pragma Inline (Set_Record_Extension_Part);
12943    pragma Inline (Set_Redundant_Use);
12944    pragma Inline (Set_Renaming_Exception);
12945    pragma Inline (Set_Result_Definition);
12946    pragma Inline (Set_Return_Object_Declarations);
12947    pragma Inline (Set_Reverse_Present);
12948    pragma Inline (Set_Right_Opnd);
12949    pragma Inline (Set_Rounded_Result);
12950    pragma Inline (Set_SCIL_Controlling_Tag);
12951    pragma Inline (Set_SCIL_Entity);
12952    pragma Inline (Set_SCIL_Tag_Value);
12953    pragma Inline (Set_SCIL_Target_Prim);
12954    pragma Inline (Set_Scope);
12955    pragma Inline (Set_Select_Alternatives);
12956    pragma Inline (Set_Selector_Name);
12957    pragma Inline (Set_Selector_Names);
12958    pragma Inline (Set_Shift_Count_OK);
12959    pragma Inline (Set_Source_Type);
12960    pragma Inline (Set_Split_PPC);
12961    pragma Inline (Set_Statements);
12962    pragma Inline (Set_Storage_Pool);
12963    pragma Inline (Set_Strval);
12964    pragma Inline (Set_Subpool_Handle_Name);
12965    pragma Inline (Set_Subtype_Indication);
12966    pragma Inline (Set_Subtype_Mark);
12967    pragma Inline (Set_Subtype_Marks);
12968    pragma Inline (Set_Suppress_Assignment_Checks);
12969    pragma Inline (Set_Suppress_Loop_Warnings);
12970    pragma Inline (Set_Synchronized_Present);
12971    pragma Inline (Set_TSS_Elist);
12972    pragma Inline (Set_Tagged_Present);
12973    pragma Inline (Set_Target_Type);
12974    pragma Inline (Set_Task_Definition);
12975    pragma Inline (Set_Task_Present);
12976    pragma Inline (Set_Then_Actions);
12977    pragma Inline (Set_Then_Statements);
12978    pragma Inline (Set_Treat_Fixed_As_Integer);
12979    pragma Inline (Set_Triggering_Alternative);
12980    pragma Inline (Set_Triggering_Statement);
12981    pragma Inline (Set_Type_Definition);
12982    pragma Inline (Set_Unit);
12983    pragma Inline (Set_Uninitialized_Variable);
12984    pragma Inline (Set_Unknown_Discriminants_Present);
12985    pragma Inline (Set_Unreferenced_In_Spec);
12986    pragma Inline (Set_Used_Operations);
12987    pragma Inline (Set_Variant_Part);
12988    pragma Inline (Set_Variants);
12989    pragma Inline (Set_Visible_Declarations);
12990    pragma Inline (Set_Was_Originally_Stub);
12991    pragma Inline (Set_Withed_Body);
12992
12993 end Sinfo;