snames.ads-tmpl (Renamed): New name for the pragma argument.
[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-2016, 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    --  Some other ASIS-specific issues are covered in specific comments in
525    --  sections for particular nodes or flags.
526
527    ----------------
528    -- Ghost Mode --
529    ----------------
530
531    --  When a declaration is subject to pragma Ghost, it establishes a Ghost
532    --  region depending on the Ghost assertion policy in effect at the point
533    --  of declaration. This region is temporal and starts right before the
534    --  analysis of the Ghost declaration and ends after its expansion. The
535    --  values of global variable Opt.Ghost_Mode are as follows:
536
537    --    1. Check - All static semantics as defined in SPARK RM 6.9 are in
538    --       effect.
539
540    --    2. Ignore - Same as Check, ignored Ghost code is not present in ALI
541    --       files, object files as well as the final executable.
542
543    --  To achieve the runtime semantics of "Ignore", the compiler marks each
544    --  node created during an ignored Ghost region and signals all enclosing
545    --  scopes that such a node resides within. The compilation unit where the
546    --  node resides is also added to an auxiliary table for post processing.
547
548    --  After the analysis and expansion of all compilation units takes place
549    --  as well as the instantiation of all inlined [generic] bodies, the GNAT
550    --  driver initiates a separate pass which removes all ignored Ghost code
551    --  from all units stored in the auxiliary table.
552
553    --------------------
554    -- GNATprove Mode --
555    --------------------
556
557    --  When a file is compiled in GNATprove mode (-gnatd.F), a very light
558    --  expansion is performed and the analysis must generate a tree in a
559    --  form that meets additional requirements.
560
561    --  This light expansion does two transformations of the tree that cannot
562    --  be postponed till after semantic analysis:
563
564    --    1. Replace object renamings by renamed object. This requires the
565    --       introduction of temporaries at the point of the renaming, which
566    --       must be properly analyzed.
567
568    --    2. Fully qualify entity names. This is needed to generate suitable
569    --       local effects and call-graphs in ALI files, with the completely
570    --       qualified names (in particular the suffix to distinguish homonyms).
571
572    --  The tree after this light expansion should be fully analyzed
573    --  semantically, which sometimes requires the insertion of semantic
574    --  pre-analysis, for example for subprogram contracts and pragma
575    --  check/assert. In particular, all expression must have their proper type,
576    --  and semantic links should be set between tree nodes (partial to full
577    --  view, etc.) Some kinds of nodes should be either absent, or can be
578    --  ignored by the formal verification backend:
579
580    --      N_Object_Renaming_Declaration: can be ignored safely
581    --      N_Expression_Function:         absent (rewritten)
582    --      N_Expression_With_Actions:     absent (not generated)
583
584    --  SPARK cross-references are generated from the regular cross-references
585    --  (used for browsing and code understanding) and additional references
586    --  collected during semantic analysis, in particular on all dereferences.
587    --  These SPARK cross-references are output in a separate section of ALI
588    --  files, as described in spark_xrefs.adb. They are the basis for the
589    --  computation of data dependences in GNATprove. This implies that all
590    --  cross-references should be generated in this mode, even those that would
591    --  not make sense from a user point-of-view, and that cross-references that
592    --  do not lead to data dependences for subprograms can be safely ignored.
593
594    --  GNATprove relies on the following front end behaviors:
595
596    --    1. The first declarations in the list of visible declarations of
597    --       a package declaration for a generic instance, up to the first
598    --       declaration which comes from source, should correspond to
599    --       the "mappings nodes" between formal and actual generic parameters.
600
601    --    2. In addition pragma Debug statements are removed from the tree
602    --       (rewritten to NULL stmt), since they should be ignored in formal
603    --       verification.
604
605    --    3. An error is also issued for missing subunits, similar to the
606    --       warning issued when generating code, to avoid formal verification
607    --       of a partial unit.
608
609    --    4. Unconstrained types are not replaced by constrained types whose
610    --       bounds are generated from an expression: Expand_Subtype_From_Expr
611    --       should be a no-op.
612
613    --    5. Errors (instead of warnings) are issued on compile-time-known
614    --       constraint errors even though such cases do not correspond to
615    --       illegalities in the Ada RM (this is simply another case where
616    --       GNATprove implements a subset of the full language).
617    --
618    --       However, there are a few exceptions to this rule for cases where
619    --       we want to allow the GNATprove analysis to proceed (e.g. range
620    --       checks on empty ranges, which typically appear in deactivated
621    --       code in a particular configuration).
622
623    --    6. Subtypes should match in the AST, even after a generic is
624    --       instantiated. In particular, GNATprove relies on the fact that,
625    --       on a selected component, the type of the selected component is
626    --       the type of the corresponding component in the prefix of the
627    --       selected component.
628    --
629    --       Note that, in some cases, we know that this rule is broken by the
630    --       frontend. In particular, if the selected component is a packed
631    --       array depending on a discriminant of a unconstrained formal object
632    --       parameter of a generic.
633
634    -----------------------
635    -- Check Flag Fields --
636    -----------------------
637
638    --  The following flag fields appear in expression nodes:
639
640    --    Do_Division_Check
641    --    Do_Overflow_Check
642    --    Do_Range_Check
643
644    --  These three flags are always set by the front end during semantic
645    --  analysis, on expression nodes that may trigger the corresponding
646    --  check. The front end then inserts or not the check during expansion. In
647    --  particular, these flags should also be correctly set in ASIS mode and
648    --  GNATprove mode.
649
650    --  Note: the expander always takes care of the Do_Range check case,
651    --  so this flag will never be set in the expanded tree passed to the
652    --  back end code generator.
653
654    --  Note that this accounts for all nodes that trigger the corresponding
655    --  checks, except for range checks on subtype_indications, which may be
656    --  required to check that a range_constraint is compatible with the given
657    --  subtype (RM 3.2.2(11)).
658
659    --  The following flag fields appear in various nodes:
660
661    --    Do_Accessibility_Check
662    --    Do_Discriminant_Check
663    --    Do_Length_Check
664    --    Do_Storage_Check
665    --    Do_Tag_Check
666
667    --  These flags are used in some specific cases by the front end, either
668    --  during semantic analysis or during expansion, and cannot be expected
669    --  to be set on all nodes that trigger the corresponding check.
670
671    ------------------------
672    -- Common Flag Fields --
673    ------------------------
674
675    --  The following flag fields appear in all nodes:
676
677    --  Analyzed
678    --    This flag is used to indicate that a node (and all its children have
679    --    been analyzed. It is used to avoid reanalysis of a node that has
680    --    already been analyzed, both for efficiency and functional correctness
681    --    reasons.
682
683    --  Comes_From_Source
684    --    This flag is set if the node comes directly from an explicit construct
685    --    in the source. It is normally on for any nodes built by the scanner or
686    --    parser from the source program, with the exception that in a few cases
687    --    the parser adds nodes to normalize the representation (in particular
688    --    a null statement is added to a package body if there is no begin/end
689    --    initialization section.
690    --
691    --    Most nodes inserted by the analyzer or expander are not considered
692    --    as coming from source, so the flag is off for such nodes. In a few
693    --    cases, the expander constructs nodes closely equivalent to nodes
694    --    from the source program (e.g. the allocator built for build-in-place
695    --    case), and the Comes_From_Source flag is deliberately set.
696
697    --  Error_Posted
698    --    This flag is used to avoid multiple error messages being posted on or
699    --    referring to the same node. This flag is set if an error message
700    --    refers to a node or is posted on its source location, and has the
701    --    effect of inhibiting further messages involving this same node.
702
703    -----------------------
704    -- Modify_Tree_For_C --
705    -----------------------
706
707    --  If the flag Opt.Modify_Tree_For_C is set True, then the tree is modified
708    --  in ways that help match the semantics better with C, easing the task of
709    --  interfacing to C code generators (other than GCC, where the work is done
710    --  in gigi, and there is no point in changing that), and also making life
711    --  easier for Cprint in generating C source code.
712
713    --  The current modifications implemented are as follows:
714
715    --    N_Op_Rotate_Left, N_Op_Rotate_Right, N_Shift_Right_Arithmetic nodes
716    --    are eliminated from the tree (since these operations do not exist in
717    --    C), and the operations are rewritten in terms of logical shifts and
718    --    other logical operations that do exist in C. See Exp_Ch4 expansion
719    --    routines for these operators for details of the transformations made.
720
721    --    The right operand of N_Op_Shift_Right and N_Op_Shift_Left is always
722    --    less than the word size (since other values are not well-defined in
723    --    C). This is done using an explicit test if necessary.
724
725    --    Min and Max attributes are expanded into equivalent if expressions,
726    --    dealing properly with side effect issues.
727
728    --    Mod for signed integer types is expanded into equivalent expressions
729    --    using Rem (which is % in C) and other C-available operators.
730
731    --    Functions returning bounded arrays are transformed into procedures
732    --    with an extra out parameter, and the calls updated accordingly.
733
734    --    Aggregates are only kept unexpanded for object declarations, otherwise
735    --    they are systematically expanded into loops (for arrays) and
736    --    individual assignments (for records).
737
738    ------------------------------------
739    -- Description of Semantic Fields --
740    ------------------------------------
741
742    --  The meaning of the syntactic fields is generally clear from their names
743    --  without any further description, since the names are chosen to
744    --  correspond very closely to the syntax in the reference manual. This
745    --  section describes the usage of the semantic fields, which are used to
746    --  contain additional information determined during semantic analysis.
747
748    --  ABE_Is_Certain (Flag18-Sem)
749    --    This flag is set in an instantiation node or a call node is determined
750    --    to be sure to raise an ABE. This is used to trigger special handling
751    --    of such cases, particularly in the instantiation case where we avoid
752    --    instantiating the body if this flag is set. This flag is also present
753    --    in an N_Formal_Package_Declaration node since formal package
754    --    declarations are treated like instantiations, but it is always set to
755    --    False in this context.
756
757    --  Accept_Handler_Records (List5-Sem)
758    --    This field is present only in an N_Accept_Alternative node. It is used
759    --    to temporarily hold the exception handler records from an accept
760    --    statement in a selective accept. These exception handlers will
761    --    eventually be placed in the Handler_Records list of the procedure
762    --    built for this accept (see Expand_N_Selective_Accept procedure in
763    --    Exp_Ch9 for further details).
764
765    --  Access_Types_To_Process (Elist2-Sem)
766    --    Present in N_Freeze_Entity nodes for Incomplete or private types.
767    --    Contains the list of access types which may require specific treatment
768    --    when the nature of the type completion is completely known. An example
769    --    of such treatment is the generation of the associated_final_chain.
770
771    --  Actions (List1-Sem)
772    --    This field contains a sequence of actions that are associated with the
773    --    node holding the field. See the individual node types for details of
774    --    how this field is used, as well as the description of the specific use
775    --    for a particular node type.
776
777    --  Activation_Chain_Entity (Node3-Sem)
778    --    This is used in tree nodes representing task activators (blocks,
779    --    subprogram bodies, package declarations, and task bodies). It is
780    --    initially Empty, and then gets set to point to the entity for the
781    --    declared Activation_Chain variable when the first task is declared.
782    --    When tasks are declared in the corresponding declarative region this
783    --    entity is located by name (its name is always _Chain) and the declared
784    --    tasks are added to the chain. Note that N_Extended_Return_Statement
785    --    does not have this attribute, although it does have an activation
786    --    chain. This chain is used to store the tasks temporarily, and is not
787    --    used for activating them. On successful completion of the return
788    --    statement, the tasks are moved to the caller's chain, and the caller
789    --    activates them.
790
791    --  Acts_As_Spec (Flag4-Sem)
792    --    A flag set in the N_Subprogram_Body node for a subprogram body which
793    --    is acting as its own spec. In the case of a library-level subprogram
794    --    the flag is set as well on the parent compilation unit node.
795
796    --  Actual_Designated_Subtype (Node4-Sem)
797    --    Present in N_Free_Statement and N_Explicit_Dereference nodes. If gigi
798    --    needs to known the dynamic constrained subtype of the designated
799    --    object, this attribute is set to that type. This is done for
800    --    N_Free_Statements for access-to-classwide types and access to
801    --    unconstrained packed array types, and for N_Explicit_Dereference when
802    --    the designated type is an unconstrained packed array and the
803    --    dereference is the prefix of a 'Size attribute reference.
804
805    --  Address_Warning_Posted (Flag18-Sem)
806    --    Present in N_Attribute_Definition nodes. Set to indicate that we have
807    --    posted a warning for the address clause regarding size or alignment
808    --    issues. Used to inhibit multiple redundant messages.
809
810    --  Aggregate_Bounds (Node3-Sem)
811    --    Present in array N_Aggregate nodes. If the bounds of the aggregate are
812    --    known at compile time, this field points to an N_Range node with those
813    --    bounds. Otherwise Empty.
814
815    --  All_Others (Flag11-Sem)
816    --    Present in an N_Others_Choice node. This flag is set for an others
817    --    exception where all exceptions are to be caught, even those that are
818    --    not normally handled (in particular the tasking abort signal). This
819    --    is used for translation of the at end handler into a normal exception
820    --    handler.
821
822    --  Aspect_Rep_Item (Node2-Sem)
823    --    Present in N_Aspect_Specification nodes. Points to the corresponding
824    --    pragma/attribute definition node used to process the aspect.
825
826    --  Assignment_OK (Flag15-Sem)
827    --    This flag is set in a subexpression node for an object, indicating
828    --    that the associated object can be modified, even if this would not
829    --    normally be permissible (either by direct assignment, or by being
830    --    passed as an out or in-out parameter). This is used by the expander
831    --    for a number of purposes, including initialization of constants and
832    --    limited type objects (such as tasks), setting discriminant fields,
833    --    setting tag values, etc. N_Object_Declaration nodes also have this
834    --    flag defined. Here it is used to indicate that an initialization
835    --    expression is valid, even where it would normally not be allowed
836    --    (e.g. where the type involved is limited). It is also used to stop
837    --    a Force_Evaluation call for an unchecked conversion, but this usage
838    --    is unclear and not documented ???
839
840    --  Associated_Node (Node4-Sem)
841    --    Present in nodes that can denote an entity: identifiers, character
842    --    literals, operator symbols, expanded names, operator nodes, and
843    --    attribute reference nodes (all these nodes have an Entity field).
844    --    This field is also present in N_Aggregate, N_Selected_Component, and
845    --    N_Extension_Aggregate nodes. This field is used in generic processing
846    --    to create links between the generic template and the generic copy.
847    --    See Sem_Ch12.Get_Associated_Node for full details. Note that this
848    --    field overlaps Entity, which is fine, since, as explained in Sem_Ch12,
849    --    the normal function of Entity is not required at the point where the
850    --    Associated_Node is set. Note also, that in generic templates, this
851    --    means that the Entity field does not necessarily point to an Entity.
852    --    Since the back end is expected to ignore generic templates, this is
853    --    harmless.
854
855    --  Atomic_Sync_Required (Flag14-Sem)
856    --    This flag is set on a node for which atomic synchronization is
857    --    required for the corresponding reference or modification.
858
859    --  At_End_Proc (Node1)
860    --    This field is present in an N_Handled_Sequence_Of_Statements node.
861    --    It contains an identifier reference for the cleanup procedure to be
862    --    called. See description of this node for further details.
863
864    --  Backwards_OK (Flag6-Sem)
865    --    A flag present in the N_Assignment_Statement node. It is used only
866    --    if the type being assigned is an array type, and is set if analysis
867    --    determines that it is definitely safe to do the copy backwards, i.e.
868    --    starting at the highest addressed element. This is the case if either
869    --    the operands do not overlap, or they may overlap, but if they do,
870    --    then the left operand is at a higher address than the right operand.
871    --
872    --    Note: If neither of the flags Forwards_OK or Backwards_OK is set, it
873    --    means that the front end could not determine that either direction is
874    --    definitely safe, and a runtime check may be required if the backend
875    --    cannot figure it out. If both flags Forwards_OK and Backwards_OK are
876    --    set, it means that the front end can assure no overlap of operands.
877
878    --  Body_To_Inline (Node3-Sem)
879    --    Present in subprogram declarations. Denotes analyzed but unexpanded
880    --    body of subprogram, to be used when inlining calls. Present when the
881    --    subprogram has an Inline pragma and inlining is enabled. If the
882    --    declaration is completed by a renaming_as_body, and the renamed entity
883    --    is a subprogram, the Body_To_Inline is the name of that entity, which
884    --    is used directly in later calls to the original subprogram.
885
886    --  Body_Required (Flag13-Sem)
887    --    A flag that appears in the N_Compilation_Unit node indicating that
888    --    the corresponding unit requires a body. For the package case, this
889    --    indicates that a completion is required. In Ada 95, if the flag is not
890    --    set for the package case, then a body may not be present. In Ada 83,
891    --    if the flag is not set for the package case, then body is optional.
892    --    For a subprogram declaration, the flag is set except in the case where
893    --    a pragma Import or Interface applies, in which case no body is
894    --    permitted (in Ada 83 or Ada 95).
895
896    --  By_Ref (Flag5-Sem)
897    --    Present in N_Simple_Return_Statement and N_Extended_Return_Statement,
898    --    this flag is set when the returned expression is already allocated on
899    --    the secondary stack and thus the result is passed by reference rather
900    --    than copied another time.
901
902    --  Cleanup_Actions (List5-Sem)
903    --    Present in block statements created for transient blocks, contains
904    --    additional cleanup actions carried over from the transient scope.
905
906    --  Check_Address_Alignment (Flag11-Sem)
907    --    A flag present in N_Attribute_Definition clause for a 'Address
908    --    attribute definition. This flag is set if a dynamic check should be
909    --    generated at the freeze point for the entity to which this address
910    --    clause applies. The reason that we need this flag is that we want to
911    --    check for range checks being suppressed at the point where the
912    --    attribute definition clause is given, rather than testing this at the
913    --    freeze point.
914
915    --  Comes_From_Extended_Return_Statement (Flag18-Sem)
916    --    Present in N_Simple_Return_Statement nodes. True if this node was
917    --    constructed as part of the N_Extended_Return_Statement expansion.
918
919    --  Compile_Time_Known_Aggregate (Flag18-Sem)
920    --    Present in N_Aggregate nodes. Set for aggregates which can be fully
921    --    evaluated at compile time without raising constraint error. Such
922    --    aggregates can be passed as is the back end without any expansion.
923    --    See Exp_Aggr for specific conditions under which this flag gets set.
924
925    --  Componentwise_Assignment (Flag14-Sem)
926    --    Present in N_Assignment_Statement nodes. Set for a record assignment
927    --    where all that needs doing is to expand it into component-by-component
928    --    assignments. This is used internally for the case of tagged types with
929    --    rep clauses, where we need to avoid recursion (we don't want to try to
930    --    generate a call to the primitive operation, because this is the case
931    --    where we are compiling the primitive operation). Note that when we are
932    --    expanding component assignments in this case, we never assign the _tag
933    --    field, but we recursively assign components of the parent type.
934
935    --  Condition_Actions (List3-Sem)
936    --    This field appears in else-if nodes and in the iteration scheme node
937    --    for while loops. This field is only used during semantic processing to
938    --    temporarily hold actions inserted into the tree. In the tree passed
939    --    to gigi, the condition actions field is always set to No_List. For
940    --    details on how this field is used, see the routine Insert_Actions in
941    --    package Exp_Util, and also the expansion routines for the relevant
942    --    nodes.
943
944    --  Context_Pending (Flag16-Sem)
945    --    This field appears in Compilation_Unit nodes, to indicate that the
946    --    context of the unit is being compiled. Used to detect circularities
947    --    that are not otherwise detected by the loading mechanism. Such
948    --    circularities can occur in the presence of limited and non-limited
949    --    with_clauses that mention the same units.
950
951    --  Controlling_Argument (Node1-Sem)
952    --    This field is set in procedure and function call nodes if the call
953    --    is a dispatching call (it is Empty for a non-dispatching call). It
954    --    indicates the source of the call's controlling tag. For procedure
955    --    calls, the Controlling_Argument is one of the actuals. For function
956    --    that has a dispatching result, it is an entity in the context of the
957    --    call that can provide a tag, or else it is the tag of the root type
958    --    of the class. It can also specify a tag directly rather than being a
959    --    tagged object. The latter is needed by the implementations of AI-239
960    --    and AI-260.
961
962    --  Conversion_OK (Flag14-Sem)
963    --    A flag set on type conversion nodes to indicate that the conversion
964    --    is to be considered as being valid, even though it is the case that
965    --    the conversion is not valid Ada. This is used for attributes Enum_Rep,
966    --    Fixed_Value and Integer_Value, for internal conversions done for
967    --    fixed-point operations, and for certain conversions for calls to
968    --    initialization procedures. If Conversion_OK is set, then Etype must be
969    --    set (the analyzer assumes that Etype has been set). For the case of
970    --    fixed-point operands, it also indicates that the conversion is to be
971    --    direct conversion of the underlying integer result, with no regard to
972    --    the small operand.
973
974    --  Convert_To_Return_False (Flag13-Sem)
975    --    Present in N_Raise_Expression nodes that appear in the body of the
976    --    special predicateM function used to test a predicate in the context
977    --    of a membership test, where raise expression results in returning a
978    --    value of False rather than raising an exception.
979
980    --  Corresponding_Aspect (Node3-Sem)
981    --    Present in N_Pragma node. Used to point back to the source aspect from
982    --    the corresponding pragma. This field is Empty for source pragmas.
983
984    --  Corresponding_Body (Node5-Sem)
985    --    This field is set in subprogram declarations, package declarations,
986    --    entry declarations of protected types, and in generic units. It points
987    --    to the defining entity for the corresponding body (NOT the node for
988    --    the body itself).
989
990    --  Corresponding_Formal_Spec (Node3-Sem)
991    --    This field is set in subprogram renaming declarations, where it points
992    --    to the defining entity for a formal subprogram in the case where the
993    --    renaming corresponds to a generic formal subprogram association in an
994    --    instantiation. The field is Empty if the renaming does not correspond
995    --    to such a formal association.
996
997    --  Corresponding_Generic_Association (Node5-Sem)
998    --    This field is defined for object declarations and object renaming
999    --    declarations. It is set for the declarations within an instance that
1000    --    map generic formals to their actuals. If set, the field points to
1001    --    a generic_association which is the original parent of the expression
1002    --    or name appearing in the declaration. This simplifies ASIS queries.
1003
1004    --  Corresponding_Integer_Value (Uint4-Sem)
1005    --    This field is set in real literals of fixed-point types (it is not
1006    --    used for floating-point types). It contains the integer value used
1007    --    to represent the fixed-point value. It is also set on the universal
1008    --    real literals used to represent bounds of fixed-point base types
1009    --    and their first named subtypes.
1010
1011    --  Corresponding_Spec (Node5-Sem)
1012    --    This field is set in subprogram, package, task, and protected body
1013    --    nodes, where it points to the defining entity in the corresponding
1014    --    spec. The attribute is also set in N_With_Clause nodes where it points
1015    --    to the defining entity for the with'ed spec, and in a subprogram
1016    --    renaming declaration when it is a Renaming_As_Body. The field is Empty
1017    --    if there is no corresponding spec, as in the case of a subprogram body
1018    --    that serves as its own spec.
1019    --
1020    --    In Ada 2012, Corresponding_Spec is set on expression functions that
1021    --    complete a subprogram declaration.
1022
1023    --  Corresponding_Spec_Of_Stub (Node2-Sem)
1024    --    This field is present in subprogram, package, task and protected body
1025    --    stubs where it points to the corresponding spec of the stub. Due to
1026    --    clashes in the structure of nodes, we cannot use Corresponding_Spec.
1027
1028    --  Corresponding_Stub (Node3-Sem)
1029    --    This field is present in an N_Subunit node. It holds the node in
1030    --    the parent unit that is the stub declaration for the subunit. It is
1031    --    set when analysis of the stub forces loading of the proper body. If
1032    --    expansion of the proper body creates new declarative nodes, they are
1033    --    inserted at the point of the corresponding_stub.
1034
1035    --  Dcheck_Function (Node5-Sem)
1036    --    This field is present in an N_Variant node, It references the entity
1037    --    for the discriminant checking function for the variant.
1038
1039    --  Default_Expression (Node5-Sem)
1040    --    This field is Empty if there is no default expression. If there is a
1041    --    simple default expression (one with no side effects), then this field
1042    --    simply contains a copy of the Expression field (both point to the tree
1043    --    for the default expression). Default_Expression is used for
1044    --    conformance checking.
1045
1046    --  Default_Storage_Pool (Node3-Sem)
1047    --    This field is present in N_Compilation_Unit_Aux nodes. It is set to a
1048    --    copy of Opt.Default_Pool at the end of the compilation unit. See
1049    --    package Opt for details. This is used for inheriting the
1050    --    Default_Storage_Pool in child units.
1051
1052    --  Discr_Check_Funcs_Built (Flag11-Sem)
1053    --    This flag is present in N_Full_Type_Declaration nodes. It is set when
1054    --    discriminant checking functions are constructed. The purpose is to
1055    --    avoid attempting to set these functions more than once.
1056
1057    --  Do_Accessibility_Check (Flag13-Sem)
1058    --    This flag is set on N_Parameter_Specification nodes to indicate
1059    --    that an accessibility check is required for the parameter. It is
1060    --    not yet decided who takes care of this check (TBD ???).
1061
1062    --  Do_Discriminant_Check (Flag1-Sem)
1063    --    This flag is set on N_Selected_Component nodes to indicate that a
1064    --    discriminant check is required using the discriminant check routine
1065    --    associated with the selector. The actual check is generated by the
1066    --    expander when processing selected components. In the case of
1067    --    Unchecked_Union, the flag is also set, but no discriminant check
1068    --    routine is associated with the selector, and the expander does not
1069    --    generate a check. This flag is also present in assignment statements
1070    --    (and set if the assignment requires a discriminant check), and in type
1071    --    conversion nodes (and set if the conversion requires a check).
1072
1073    --  Do_Division_Check (Flag13-Sem)
1074    --    This flag is set on a division operator (/ mod rem) to indicate
1075    --    that a zero divide check is required. The actual check is dealt
1076    --    with by the backend (all the front end does is to set the flag).
1077
1078    --  Do_Length_Check (Flag4-Sem)
1079    --    This flag is set in an N_Assignment_Statement, N_Op_And, N_Op_Or,
1080    --    N_Op_Xor, or N_Type_Conversion node to indicate that a length check
1081    --    is required. It is not determined who deals with this flag (???).
1082
1083    --  Do_Overflow_Check (Flag17-Sem)
1084    --    This flag is set on an operator where an overflow check is required on
1085    --    the operation. The actual check is dealt with by the backend (all the
1086    --    front end does is to set the flag). The other cases where this flag is
1087    --    used is on a Type_Conversion node and for attribute reference nodes.
1088    --    For a type conversion, it means that the conversion is from one base
1089    --    type to another, and the value may not fit in the target base type.
1090    --    See also the description of Do_Range_Check for this case. The only
1091    --    attribute references which use this flag are Pred and Succ, where it
1092    --    means that the result should be checked for going outside the base
1093    --    range. Note that this flag is not set for modular types. This flag is
1094    --    also set on if and case expression nodes if we are operating in either
1095    --    MINIMIZED or ELIMINATED overflow checking mode (to make sure that we
1096    --    properly process overflow checking for dependent expressions).
1097
1098    --  Do_Range_Check (Flag9-Sem)
1099    --    This flag is set on an expression which appears in a context where a
1100    --    range check is required. The target type is clear from the context.
1101    --    The contexts in which this flag can appear are the following:
1102
1103    --      Right side of an assignment. In this case the target type is
1104    --      taken from the left side of the assignment, which is referenced
1105    --      by the Name of the N_Assignment_Statement node.
1106
1107    --      Subscript expressions in an indexed component. In this case the
1108    --      target type is determined from the type of the array, which is
1109    --      referenced by the Prefix of the N_Indexed_Component node.
1110
1111    --      Argument expression for a parameter, appearing either directly in
1112    --      the Parameter_Associations list of a call or as the Expression of an
1113    --      N_Parameter_Association node that appears in this list. In either
1114    --      case, the check is against the type of the formal. Note that the
1115    --      flag is relevant only in IN and IN OUT parameters, and will be
1116    --      ignored for OUT parameters, where no check is required in the call,
1117    --      and if a check is required on the return, it is generated explicitly
1118    --      with a type conversion.
1119
1120    --      Initialization expression for the initial value in an object
1121    --      declaration. In this case the Do_Range_Check flag is set on
1122    --      the initialization expression, and the check is against the
1123    --      range of the type of the object being declared. This includes the
1124    --      cases of expressions providing default discriminant values, and
1125    --      expressions used to initialize record components.
1126
1127    --      The expression of a type conversion. In this case the range check is
1128    --      against the target type of the conversion. See also the use of
1129    --      Do_Overflow_Check on a type conversion. The distinction is that the
1130    --      overflow check protects against a value that is outside the range of
1131    --      the target base type, whereas a range check checks that the
1132    --      resulting value (which is a value of the base type of the target
1133    --      type), satisfies the range constraint of the target type.
1134
1135    --    Note: when a range check is required in contexts other than those
1136    --    listed above (e.g. in a return statement), an additional type
1137    --    conversion node is introduced to represent the required check.
1138
1139    --    A special case arises for the arguments of the Pred/Succ attributes.
1140    --    Here the range check needed is against First + 1 ..  Last (Pred) or
1141    --    First .. Last - 1 (Succ) of the corresponding base type. Essentially
1142    --    these checks are what would be performed within the implicit body of
1143    --    the functions that correspond to these attributes. In these cases,
1144    --    the Do_Range check flag is set on the argument to the attribute
1145    --    function, and the back end must special case the appropriate range
1146    --    to check against.
1147
1148    --  Do_Storage_Check (Flag17-Sem)
1149    --    This flag is set in an N_Allocator node to indicate that a storage
1150    --    check is required for the allocation, or in an N_Subprogram_Body node
1151    --    to indicate that a stack check is required in the subprogram prologue.
1152    --    The N_Allocator case is handled by the routine that expands the call
1153    --    to the runtime routine. The N_Subprogram_Body case is handled by the
1154    --    backend, and all the semantics does is set the flag.
1155
1156    --  Do_Tag_Check (Flag13-Sem)
1157    --    This flag is set on an N_Assignment_Statement, N_Function_Call,
1158    --    N_Procedure_Call_Statement, N_Type_Conversion,
1159    --    N_Simple_Return_Statement, or N_Extended_Return_Statement
1160    --    node to indicate that the tag check can be suppressed. It is not
1161    --    yet decided how this flag is used (TBD ???).
1162
1163    --  Elaborate_Present (Flag4-Sem)
1164    --    This flag is set in the N_With_Clause node to indicate that pragma
1165    --    Elaborate pragma appears for the with'ed units.
1166
1167    --  Elaborate_All_Desirable (Flag9-Sem)
1168    --    This flag is set in the N_With_Clause mode to indicate that the static
1169    --    elaboration processing has determined that an Elaborate_All pragma is
1170    --    desirable for correct elaboration for this unit.
1171
1172    --  Elaborate_All_Present (Flag14-Sem)
1173    --    This flag is set in the N_With_Clause node to indicate that a
1174    --    pragma Elaborate_All pragma appears for the with'ed units.
1175
1176    --  Elaborate_Desirable (Flag11-Sem)
1177    --    This flag is set in the N_With_Clause mode to indicate that the static
1178    --    elaboration processing has determined that an Elaborate pragma is
1179    --    desirable for correct elaboration for this unit.
1180
1181    --  Else_Actions (List3-Sem)
1182    --    This field is present in if expression nodes. During code
1183    --    expansion we use the Insert_Actions procedure (in Exp_Util) to insert
1184    --    actions at an appropriate place in the tree to get elaborated at the
1185    --    right time. For if expressions, we have to be sure that the actions
1186    --    for the Else branch are only elaborated if the condition is False.
1187    --    The Else_Actions field is used as a temporary parking place for
1188    --    these actions. The final tree is always rewritten to eliminate the
1189    --    need for this field, so in the tree passed to Gigi, this field is
1190    --    always set to No_List.
1191
1192    --  Enclosing_Variant (Node2-Sem)
1193    --    This field is present in the N_Variant node and identifies the Node_Id
1194    --    corresponding to the immediately enclosing variant when the variant is
1195    --    nested, and N_Empty otherwise. Set during semantic processing of the
1196    --    variant part of a record type.
1197
1198    --  Entity (Node4-Sem)
1199    --    Appears in all direct names (identifiers, character literals, and
1200    --    operator symbols), as well as expanded names, and attributes that
1201    --    denote entities, such as 'Class. Points to entity for corresponding
1202    --    defining occurrence. Set after name resolution. For identifiers in a
1203    --    WITH list, the corresponding defining occurrence is in a separately
1204    --    compiled file, and Entity must be set by the library Load procedure.
1205    --
1206    --    Note: During name resolution, the value in Entity may be temporarily
1207    --    incorrect (e.g. during overload resolution, Entity is initially set to
1208    --    the first possible correct interpretation, and then later modified if
1209    --    necessary to contain the correct value after resolution).
1210    --
1211    --    Note: This field overlaps Associated_Node, which is used during
1212    --    generic processing (see Sem_Ch12 for details). Note also that in
1213    --    generic templates, this means that the Entity field does not always
1214    --    point to an Entity. Since the back end is expected to ignore generic
1215    --    templates, this is harmless.
1216    --
1217    --    Note: This field also appears in N_Attribute_Definition_Clause nodes.
1218    --    It is used only for stream attributes definition clauses. In this
1219    --    case, it denotes a (possibly dummy) subprogram entity that is declared
1220    --    conceptually at the point of the clause. Thus the visibility of the
1221    --    attribute definition clause (in the sense of 8.3(23) as amended by
1222    --    AI-195) can be checked by testing the visibility of that subprogram.
1223    --
1224    --    Note: Normally the Entity field of an identifier points to the entity
1225    --    for the corresponding defining identifier, and hence the Chars field
1226    --    of an identifier will match the Chars field of the entity. However,
1227    --    there is no requirement that these match, and there are obscure cases
1228    --    of generated code where they do not match.
1229
1230    --    Note: Ada 2012 aspect specifications require additional links between
1231    --    identifiers and various attributes. These attributes can be of
1232    --    arbitrary types, and the entity field of identifiers that denote
1233    --    aspects must be used to store arbitrary expressions for later semantic
1234    --    checks. See section on aspect specifications for details.
1235
1236    --  Entity_Or_Associated_Node (Node4-Sem)
1237    --    A synonym for both Entity and Associated_Node. Used by convention in
1238    --    the code when referencing this field in cases where it is not known
1239    --    whether the field contains an Entity or an Associated_Node.
1240
1241    --  Etype (Node5-Sem)
1242    --    Appears in all expression nodes, all direct names, and all entities.
1243    --    Points to the entity for the related type. Set after type resolution.
1244    --    Normally this is the actual subtype of the expression. However, in
1245    --    certain contexts such as the right side of an assignment, subscripts,
1246    --    arguments to calls, returned value in a function, initial value etc.
1247    --    it is the desired target type. In the event that this is different
1248    --    from the actual type, the Do_Range_Check flag will be set if a range
1249    --    check is required. Note: if the Is_Overloaded flag is set, then Etype
1250    --    points to an essentially arbitrary choice from the possible set of
1251    --    types.
1252
1253    --  Exception_Junk (Flag8-Sem)
1254    --    This flag is set in a various nodes appearing in a statement sequence
1255    --    to indicate that the corresponding node is an artifact of the
1256    --    generated code for exception handling, and should be ignored when
1257    --    analyzing the control flow of the relevant sequence of statements
1258    --    (e.g. to check that it does not end with a bad return statement).
1259
1260    --  Exception_Label (Node5-Sem)
1261    --    Appears in N_Push_xxx_Label nodes. Points to the entity of the label
1262    --    to be used for transforming the corresponding exception into a goto,
1263    --    or contains Empty, if this exception is not to be transformed. Also
1264    --    appears in N_Exception_Handler nodes, where, if set, it indicates
1265    --    that there may be a local raise for the handler, so that expansion
1266    --    to allow a goto is required (and this field contains the label for
1267    --    this goto). See Exp_Ch11.Expand_Local_Exception_Handlers for details.
1268
1269    --  Expansion_Delayed (Flag11-Sem)
1270    --    Set on aggregates and extension aggregates that need a top-down rather
1271    --    than bottom-up expansion. Typically aggregate expansion happens bottom
1272    --    up. For nested aggregates the expansion is delayed until the enclosing
1273    --    aggregate itself is expanded, e.g. in the context of a declaration. To
1274    --    delay it we set this flag. This is done to avoid creating a temporary
1275    --    for each level of a nested aggregates, and also to prevent the
1276    --    premature generation of constraint checks. This is also a requirement
1277    --    if we want to generate the proper attachment to the internal
1278    --    finalization lists (for record with controlled components). Top down
1279    --    expansion of aggregates is also used for in-place array aggregate
1280    --    assignment or initialization. When the full context is known, the
1281    --    target of the assignment or initialization is used to generate the
1282    --    left-hand side of individual assignment to each sub-component.
1283
1284    --  First_Inlined_Subprogram (Node3-Sem)
1285    --    Present in the N_Compilation_Unit node for the main program. Points
1286    --    to a chain of entities for subprograms that are to be inlined. The
1287    --    Next_Inlined_Subprogram field of these entities is used as a link
1288    --    pointer with Empty marking the end of the list. This field is Empty
1289    --    if there are no inlined subprograms or inlining is not active.
1290
1291    --  First_Named_Actual (Node4-Sem)
1292    --    Present in procedure call statement and function call nodes, and also
1293    --    in Intrinsic nodes. Set during semantic analysis to point to the first
1294    --    named parameter where parameters are ordered by declaration order (as
1295    --    opposed to the actual order in the call which may be different due to
1296    --    named associations). Note: this field points to the explicit actual
1297    --    parameter itself, not the N_Parameter_Association node (its parent).
1298
1299    --  First_Real_Statement (Node2-Sem)
1300    --    Present in N_Handled_Sequence_Of_Statements node. Normally set to
1301    --    Empty. Used only when declarations are moved into the statement part
1302    --    of a construct as a result of wrapping an AT END handler that is
1303    --    required to cover the declarations. In this case, this field is used
1304    --    to remember the location in the statements list of the first real
1305    --    statement, i.e. the statement that used to be first in the statement
1306    --    list before the declarations were prepended.
1307
1308    --  First_Subtype_Link (Node5-Sem)
1309    --    Present in N_Freeze_Entity node for an anonymous base type that is
1310    --    implicitly created by the declaration of a first subtype. It points
1311    --    to the entity for the first subtype.
1312
1313    --  Float_Truncate (Flag11-Sem)
1314    --    A flag present in type conversion nodes. This is used for float to
1315    --    integer conversions where truncation is required rather than rounding.
1316
1317    --  Forwards_OK (Flag5-Sem)
1318    --    A flag present in the N_Assignment_Statement node. It is used only
1319    --    if the type being assigned is an array type, and is set if analysis
1320    --    determines that it is definitely safe to do the copy forwards, i.e.
1321    --    starting at the lowest addressed element. This is the case if either
1322    --    the operands do not overlap, or they may overlap, but if they do,
1323    --    then the left operand is at a lower address than the right operand.
1324    --
1325    --    Note: If neither of the flags Forwards_OK or Backwards_OK is set, it
1326    --    means that the front end could not determine that either direction is
1327    --    definitely safe, and a runtime check may be required if the backend
1328    --    cannot figure it out. If both flags Forwards_OK and Backwards_OK are
1329    --    set, it means that the front end can assure no overlap of operands.
1330
1331    --  From_Aspect_Specification (Flag13-Sem)
1332    --    Processing of aspect specifications typically results in insertion in
1333    --    the tree of corresponding pragma or attribute definition clause nodes.
1334    --    These generated nodes have the From_Aspect_Specification flag set to
1335    --    indicate that they came from aspect specifications originally.
1336
1337    --  From_At_End (Flag4-Sem)
1338    --    This flag is set on an N_Raise_Statement node if it corresponds to
1339    --    the reraise statement generated as the last statement of an AT END
1340    --    handler when SJLJ exception handling is active. It is used to stop
1341    --    a bogus violation of restriction (No_Exception_Propagation), bogus
1342    --    because if the restriction is set, the reraise is not generated.
1343
1344    --  From_At_Mod (Flag4-Sem)
1345    --    This flag is set on the attribute definition clause node that is
1346    --    generated by a transformation of an at mod phrase in a record
1347    --    representation clause. This is used to give slightly different (Ada 83
1348    --    compatible) semantics to such a clause, namely it is used to specify a
1349    --    minimum acceptable alignment for the base type and all subtypes. In
1350    --    Ada 95 terms, the actual alignment of the base type and all subtypes
1351    --    must be a multiple of the given value, and the representation clause
1352    --    is considered to be type specific instead of subtype specific.
1353
1354    --  From_Conditional_Expression (Flag1-Sem)
1355    --    This flag is set on if and case statements generated by the expansion
1356    --    of if and case expressions respectively. The flag is used to suppress
1357    --    any finalization of controlled objects found within these statements.
1358
1359    --  From_Default (Flag6-Sem)
1360    --    This flag is set on the subprogram renaming declaration created in an
1361    --    instance for a formal subprogram, when the formal is declared with a
1362    --    box, and there is no explicit actual. If the flag is present, the
1363    --    declaration is treated as an implicit reference to the formal in the
1364    --    ali file.
1365
1366    --  Generalized_Indexing (Node4-Sem)
1367    --    Present in N_Indexed_Component nodes. Set for Indexed_Component nodes
1368    --    that are Ada 2012 container indexing operations. The value of the
1369    --    attribute is a function call (possibly dereferenced) that corresponds
1370    --    to the proper expansion of the source indexing operation. Before
1371    --    expansion, the source node is rewritten as the resolved generalized
1372    --    indexing. In ASIS mode, the expansion does not take place, so that
1373    --    the source is preserved and properly annotated with types.
1374
1375    --  Generic_Parent (Node5-Sem)
1376    --    Generic_Parent is defined on declaration nodes that are instances. The
1377    --    value of Generic_Parent is the generic entity from which the instance
1378    --    is obtained. Generic_Parent is also defined for the renaming
1379    --    declarations and object declarations created for the actuals in an
1380    --    instantiation. The generic parent of such a declaration is the
1381    --    corresponding generic association in the Instantiation node.
1382
1383    --  Generic_Parent_Type (Node4-Sem)
1384    --    Generic_Parent_Type is defined on Subtype_Declaration nodes for the
1385    --    actuals of formal private and derived types. Within the instance, the
1386    --    operations on the actual are those inherited from the parent. For a
1387    --    formal private type, the parent type is the generic type itself. The
1388    --    Generic_Parent_Type is also used in an instance to determine whether a
1389    --    private operation overrides an inherited one.
1390
1391    --  Handler_List_Entry (Node2-Sem)
1392    --    This field is present in N_Object_Declaration nodes. It is set only
1393    --    for the Handler_Record entry generated for an exception in zero cost
1394    --    exception handling mode. It references the corresponding item in the
1395    --    handler list, and is used to delete this entry if the corresponding
1396    --    handler is deleted during optimization. For further details on why
1397    --    this is required, see Exp_Ch11.Remove_Handler_Entries.
1398
1399    --  Has_Dereference_Action (Flag13-Sem)
1400    --    This flag is present in N_Explicit_Dereference nodes. It is set to
1401    --    indicate that the expansion has aready produced a call to primitive
1402    --    Dereference of a System.Checked_Pools.Checked_Pool implementation.
1403    --    Such dereference actions are produced for debugging purposes.
1404
1405    --  Has_Dynamic_Length_Check (Flag10-Sem)
1406    --    This flag is present in all expression nodes. It is set to indicate
1407    --    that one of the routines in unit Checks has generated a length check
1408    --    action which has been inserted at the flagged node. This is used to
1409    --    avoid the generation of duplicate checks.
1410
1411    --  Has_Dynamic_Range_Check (Flag12-Sem)
1412    --    This flag is present in N_Subtype_Declaration nodes and on all
1413    --    expression nodes. It is set to indicate that one of the routines in
1414    --    unit Checks has generated a range check action which has been inserted
1415    --    at the flagged node. This is used to avoid the generation of duplicate
1416    --    checks. Why does this occur on N_Subtype_Declaration nodes, what does
1417    --    it mean in that context???
1418
1419    --  Has_Local_Raise (Flag8-Sem)
1420    --    Present in exception handler nodes. Set if the handler can be entered
1421    --    via a local raise that gets transformed to a goto statement. This will
1422    --    always be set if Local_Raise_Statements is non-empty, but can also be
1423    --    set as a result of generation of N_Raise_xxx nodes, or flags set in
1424    --    nodes requiring generation of back end checks.
1425
1426    --  Has_No_Elaboration_Code (Flag17-Sem)
1427    --    A flag that appears in the N_Compilation_Unit node to indicate whether
1428    --    or not elaboration code is present for this unit. It is initially set
1429    --    true for subprogram specs and bodies and for all generic units and
1430    --    false for non-generic package specs and bodies. Gigi may set the flag
1431    --    in the non-generic package case if it determines that no elaboration
1432    --    code is generated. Note that this flag is not related to the
1433    --    Is_Preelaborated status, there can be preelaborated packages that
1434    --    generate elaboration code, and non-preelaborated packages which do
1435    --    not generate elaboration code.
1436
1437    --  Has_Pragma_Suppress_All (Flag14-Sem)
1438    --    This flag is set in an N_Compilation_Unit node if the Suppress_All
1439    --    pragma appears anywhere in the unit. This accommodates the rather
1440    --    strange placement rules of other compilers (DEC permits it at the
1441    --    end of a unit, and Rational allows it as a program unit pragma). We
1442    --    allow it anywhere at all, and consider it equivalent to a pragma
1443    --    Suppress (All_Checks) appearing at the start of the configuration
1444    --    pragmas for the unit.
1445
1446    --  Has_Private_View (Flag11-Sem)
1447    --    A flag present in generic nodes that have an entity, to indicate that
1448    --    the node has a private type. Used to exchange private and full
1449    --    declarations if the visibility at instantiation is different from the
1450    --    visibility at generic definition.
1451
1452    --  Has_Relative_Deadline_Pragma (Flag9-Sem)
1453    --    A flag present in N_Subprogram_Body and N_Task_Definition nodes to
1454    --    flag the presence of a pragma Relative_Deadline.
1455
1456    --  Has_Self_Reference (Flag13-Sem)
1457    --    Present in N_Aggregate and N_Extension_Aggregate. Indicates that one
1458    --    of the expressions contains an access attribute reference to the
1459    --    enclosing type. Such a self-reference can only appear in default-
1460    --    initialized aggregate for a record type.
1461
1462    --  Has_SP_Choice (Flag15-Sem)
1463    --    Present in all nodes containing a Discrete_Choices field (N_Variant,
1464    --    N_Case_Expression_Alternative, N_Case_Statement_Alternative). Set to
1465    --    True if the Discrete_Choices list has at least one occurrence of a
1466    --    statically predicated subtype.
1467
1468    --  Has_Storage_Size_Pragma (Flag5-Sem)
1469    --    A flag present in an N_Task_Definition node to flag the presence of a
1470    --    Storage_Size pragma.
1471
1472    --  Has_Wide_Character (Flag11-Sem)
1473    --    Present in string literals, set if any wide character (i.e. character
1474    --    code outside the Character range but within Wide_Character range)
1475    --    appears in the string. Used to implement pragma preference rules.
1476
1477    --  Has_Wide_Wide_Character (Flag13-Sem)
1478    --    Present in string literals, set if any wide character (i.e. character
1479    --    code outside the Wide_Character range) appears in the string. Used to
1480    --    implement pragma preference rules.
1481
1482    --  Header_Size_Added (Flag11-Sem)
1483    --    Present in N_Attribute_Reference nodes, set only for attribute
1484    --    Max_Size_In_Storage_Elements. The flag indicates that the size of the
1485    --    hidden list header used by the runtime finalization support has been
1486    --    added to the size of the prefix. The flag also prevents the infinite
1487    --    expansion of the same attribute in the said context.
1488
1489    --  Hidden_By_Use_Clause (Elist4-Sem)
1490    --     An entity list present in use clauses that appear within
1491    --     instantiations. For the resolution of local entities, entities
1492    --     introduced by these use clauses have priority over global ones, and
1493    --     outer entities must be explicitly hidden/restored on exit.
1494
1495    --  Implicit_With (Flag16-Sem)
1496    --    This flag is set in the N_With_Clause node that is implicitly
1497    --    generated for runtime units that are loaded by the expander, and also
1498    --    for package System, if it is loaded implicitly by a use of the
1499    --    'Address or 'Tag attribute. ???There are other implicit with clauses
1500    --    as well.
1501
1502    --  Implicit_With_From_Instantiation (Flag12-Sem)
1503    --     Set in N_With_Clause nodes from generic instantiations.
1504
1505    --  Import_Interface_Present (Flag16-Sem)
1506    --     This flag is set in an Interface or Import pragma if a matching
1507    --     pragma of the other kind is also present. This is used to avoid
1508    --     generating some unwanted error messages.
1509
1510    --  Includes_Infinities (Flag11-Sem)
1511    --    This flag is present in N_Range nodes. It is set for the range of
1512    --    unconstrained float types defined in Standard, which include not only
1513    --    the given range of values, but also legitimately can include infinite
1514    --    values. This flag is false for any float type for which an explicit
1515    --    range is given by the programmer, even if that range is identical to
1516    --    the range for Float.
1517
1518    --  Incomplete_View (Node2-Sem)
1519    --    Present in full type declarations that are completions of incomplete
1520    --    type declarations. Denotes the corresponding incomplete type
1521    --    declaration. Used to simplify the retrieval of primitive operations
1522    --    that may be declared between the partial and the full view of an
1523    --    untagged type.
1524
1525    --  Inherited_Discriminant (Flag13-Sem)
1526    --    This flag is present in N_Component_Association nodes. It indicates
1527    --    that a given component association in an extension aggregate is the
1528    --    value obtained from a constraint on an ancestor. Used to prevent
1529    --    double expansion when the aggregate has expansion delayed.
1530
1531    --  Instance_Spec (Node5-Sem)
1532    --    This field is present in generic instantiation nodes, and also in
1533    --    formal package declaration nodes (formal package declarations are
1534    --    treated in a manner very similar to package instantiations). It points
1535    --    to the node for the spec of the instance, inserted as part of the
1536    --    semantic processing for instantiations in Sem_Ch12.
1537
1538    --  Is_Abort_Block (Flag4-Sem)
1539    --    Present in N_Block_Statement nodes. True if the block protects a list
1540    --    of statements with an Abort_Defer / Abort_Undefer_Direct pair.
1541
1542    --  Is_Accessibility_Actual (Flag13-Sem)
1543    --    Present in N_Parameter_Association nodes. True if the parameter is
1544    --    an extra actual that carries the accessibility level of the actual
1545    --    for an access parameter, in a function that dispatches on result and
1546    --    is called in a dispatching context. Used to prevent a formal/actual
1547    --    mismatch when the call is rewritten as a dispatching call.
1548
1549    --  Is_Analyzed_Pragma (Flag5-Sem)
1550    --    Present in N_Pragma nodes. Set for delayed pragmas that require a two
1551    --    step analysis. The initial step is peformed by routine Analyze_Pragma
1552    --    and verifies the overall legality of the pragma. The second step takes
1553    --    place in the various Analyze_xxx_In_Decl_Part routines which perform
1554    --    full analysis. The flag prevents the reanalysis of a delayed pragma.
1555
1556    --  Is_Expanded_Contract (Flag1-Sem)
1557    --    Present in N_Contract nodes. Set if the contract has already undergone
1558    --    expansion activities.
1559
1560    --  Is_Asynchronous_Call_Block (Flag7-Sem)
1561    --    A flag set in a Block_Statement node to indicate that it is the
1562    --    expansion of an asynchronous entry call. Such a block needs cleanup
1563    --    handler to assure that the call is cancelled.
1564
1565    --  Is_Boolean_Aspect (Flag16-Sem)
1566    --    Present in N_Aspect_Specification node. Set if the aspect is for a
1567    --    boolean aspect (i.e. Aspect_Id is in Boolean_Aspect subtype).
1568
1569    --  Is_Checked (Flag11-Sem)
1570    --    Present in N_Aspect_Specification and N_Pragma nodes. Set for an
1571    --    assertion aspect or pragma, or check pragma for an assertion, that
1572    --    is to be checked at run time. If either Is_Checked or Is_Ignored
1573    --    is set (they cannot both be set), then this means that the status of
1574    --    the pragma has been checked at the appropriate point and should not
1575    --    be further modified (in some cases these flags are copied when a
1576    --    pragma is rewritten).
1577
1578    --  Is_Component_Left_Opnd  (Flag13-Sem)
1579    --  Is_Component_Right_Opnd (Flag14-Sem)
1580    --    Present in concatenation nodes, to indicate that the corresponding
1581    --    operand is of the component type of the result. Used in resolving
1582    --    concatenation nodes in instances.
1583
1584    --  Is_Controlling_Actual (Flag16-Sem)
1585    --    This flag is set on an expression that is a controlling argument in
1586    --    a dispatching call. It is off in all other cases. See Sem_Disp for
1587    --    details of its use.
1588
1589    --  Is_Delayed_Aspect (Flag14-Sem)
1590    --    Present in N_Pragma and N_Attribute_Definition_Clause nodes which
1591    --    come from aspect specifications, where the evaluation of the aspect
1592    --    must be delayed to the freeze point. This flag is also set True in
1593    --    the corresponding N_Aspect_Specification node.
1594
1595    --  Is_Disabled (Flag15-Sem)
1596    --    A flag set in an N_Aspect_Specification or N_Pragma node if there was
1597    --    a Check_Policy or Assertion_Policy (or in the case of a Debug_Pragma)
1598    --    a Debug_Policy pragma that resulted in totally disabling the flagged
1599    --    aspect or policy as a result of using the GNAT-defined policy DISABLE.
1600    --    If this flag is set, the aspect or policy is not analyzed for semantic
1601    --    correctness, so any expressions etc will not be marked as analyzed.
1602
1603    --  Is_Dynamic_Coextension (Flag18-Sem)
1604    --    Present in allocator nodes, to indicate that this is an allocator
1605    --    for an access discriminant of a dynamically allocated object. The
1606    --    coextension must be deallocated and finalized at the same time as
1607    --    the enclosing object.
1608
1609    --  Is_Entry_Barrier_Function (Flag8-Sem)
1610    --    This flag is set on N_Subprogram_Declaration and N_Subprogram_Body
1611    --    nodes which emulate the barrier function of a protected entry body.
1612    --    The flag is used when checking for incorrect use of Current_Task.
1613
1614    --  Is_Expanded_Build_In_Place_Call (Flag11-Sem)
1615    --    This flag is set in an N_Function_Call node to indicate that the extra
1616    --    actuals to support a build-in-place style of call have been added to
1617    --    the call.
1618
1619    --  Is_Finalization_Wrapper (Flag9-Sem);
1620    --    This flag is present in N_Block_Statement nodes. It is set when the
1621    --    block acts as a wrapper of a handled construct which has controlled
1622    --    objects. The wrapper prevents interference between exception handlers
1623    --    and At_End handlers.
1624
1625    --  Is_Generic_Contract_Pragma (Flag2-Sem)
1626    --    This flag is present in N_Pragma nodes. It is set when the pragma is
1627    --    a source construct, applies to a generic unit or its body and denotes
1628    --    one of the following contract-related annotations:
1629    --      Abstract_State
1630    --      Contract_Cases
1631    --      Depends
1632    --      Extensions_Visible
1633    --      Global
1634    --      Initial_Condition
1635    --      Initializes
1636    --      Post
1637    --      Post_Class
1638    --      Postcondition
1639    --      Pre
1640    --      Pre_Class
1641    --      Precondition
1642    --      Refined_Depends
1643    --      Refined_Global
1644    --      Refined_Post
1645    --      Refined_State
1646    --      Test_Case
1647
1648    --  Is_Ghost_Pragma (Flag3-Sem)
1649    --    This flag is present in N_Pragma nodes. It is set when the pragma is
1650    --    either declared within a Ghost construct or it applies to a Ghost
1651    --    construct.
1652
1653    --  Is_Ignored (Flag9-Sem)
1654    --    A flag set in an N_Aspect_Specification or N_Pragma node if there was
1655    --    a Check_Policy or Assertion_Policy (or in the case of a Debug_Pragma)
1656    --    a Debug_Policy pragma that specified a policy of IGNORE, DISABLE, or
1657    --    OFF, for the pragma/aspect. If there was a Policy pragma specifying
1658    --    a Policy of ON or CHECK, then this flag is reset. If no Policy pragma
1659    --    gives a policy for the aspect or pragma, then there are two cases. For
1660    --    an assertion aspect or pragma (one of the assertion kinds allowed in
1661    --    an Assertion_Policy pragma), then Is_Ignored is set if assertions are
1662    --    ignored because of the absence of a -gnata switch. For any other
1663    --    aspects or pragmas, the flag is off. If this flag is set, the
1664    --    aspect/pragma is fully analyzed and checked for other syntactic
1665    --    and semantic errors, but it does not have any semantic effect.
1666
1667    --  Is_In_Discriminant_Check (Flag11-Sem)
1668    --    This flag is present in a selected component, and is used to indicate
1669    --    that the reference occurs within a discriminant check. The
1670    --    significance is that optimizations based on assuming that the
1671    --    discriminant check has a correct value cannot be performed in this
1672    --    case (or the discriminant check may be optimized away).
1673
1674    --  Is_Inherited_Pragma (Flag4-Sem)
1675    --    This flag is set in an N_Pragma node that appears in a N_Contract node
1676    --    to indicate that the pragma has been inherited from a parent context.
1677
1678    --  Is_Machine_Number (Flag11-Sem)
1679    --    This flag is set in an N_Real_Literal node to indicate that the value
1680    --    is a machine number. This avoids some unnecessary cases of converting
1681    --    real literals to machine numbers.
1682
1683    --  Is_Null_Loop (Flag16-Sem)
1684    --    This flag is set in an N_Loop_Statement node if the corresponding loop
1685    --    can be determined to be null at compile time. This is used to remove
1686    --    the loop entirely at expansion time.
1687
1688    --  Is_Overloaded (Flag5-Sem)
1689    --    A flag present in all expression nodes. Used temporarily during
1690    --    overloading determination. The setting of this flag is not relevant
1691    --    once overloading analysis is complete.
1692
1693    --  Is_Power_Of_2_For_Shift (Flag13-Sem)
1694    --    A flag present only in N_Op_Expon nodes. It is set when the
1695    --    exponentiation is of the form 2 ** N, where the type of N is an
1696    --    unsigned integral subtype whose size does not exceed the size of
1697    --    Standard_Integer (i.e. a type that can be safely converted to
1698    --    Natural), and the exponentiation appears as the right operand of an
1699    --    integer multiplication or an integer division where the dividend is
1700    --    unsigned. It is also required that overflow checking is off for both
1701    --    the exponentiation and the multiply/divide node. If this set of
1702    --    conditions holds, and the flag is set, then the division or
1703    --    multiplication can be (and is) converted to a shift.
1704
1705    --  Is_Prefixed_Call (Flag17-Sem)
1706    --    This flag is set in a selected component within a generic unit, if
1707    --    it resolves to a prefixed call to a primitive operation. The flag
1708    --    is used to prevent accidental overloadings in an instance, when a
1709    --    primitive operation and a private record component may be homographs.
1710
1711    --  Is_Protected_Subprogram_Body (Flag7-Sem)
1712    --    A flag set in a Subprogram_Body block to indicate that it is the
1713    --    implementation of a protected subprogram. Such a body needs cleanup
1714    --    handler to make sure that the associated protected object is unlocked
1715    --    when the subprogram completes.
1716
1717    --  Is_Qualified_Universal_Literal (Flag4-Sem)
1718    --    Present in N_Qualified_Expression nodes. Set when the qualification is
1719    --    converting a universal literal to a specific type. Such qualifiers aid
1720    --    the resolution of accidental overloading of binary or unary operators
1721    --    which may occur in instances.
1722
1723    --  Is_Static_Coextension (Flag14-Sem)
1724    --    Present in N_Allocator nodes. Set if the allocator is a coextension
1725    --    of an object allocated on the stack rather than the heap.
1726
1727    --  Is_Static_Expression (Flag6-Sem)
1728    --    Indicates that an expression is a static expression according to the
1729    --    rules in (RM 4.9). Note that it is possible for this flag to be set
1730    --    when Raises_Constraint_Error is also set. In practice almost all cases
1731    --    where a static expression is required do not allow an expression which
1732    --    raises Constraint_Error, so almost always, callers should call the
1733    --    Is_Ok_Static_Expression routine instead of testing this flag. See
1734    --    spec of package Sem_Eval for full details on the use of this flag.
1735
1736    --  Is_Subprogram_Descriptor (Flag16-Sem)
1737    --    Present in N_Object_Declaration, and set only for the object
1738    --    declaration generated for a subprogram descriptor in fast exception
1739    --    mode. See Exp_Ch11 for details of use.
1740
1741    --  Is_Task_Allocation_Block (Flag6-Sem)
1742    --    A flag set in a Block_Statement node to indicate that it is the
1743    --    expansion of a task allocator, or the allocator of an object
1744    --    containing tasks. Such a block requires a cleanup handler to call
1745    --    Expunge_Unactivated_Tasks to complete any tasks that have been
1746    --    allocated but not activated when the allocator completes abnormally.
1747
1748    --  Is_Task_Body_Procedure (Flag1-Sem)
1749    --    This flag is set on N_Subprogram_Declaration and N_Subprogram_Body
1750    --    nodes which emulate the body of a task unit.
1751
1752    --  Is_Task_Master (Flag5-Sem)
1753    --    A flag set in a Subprogram_Body, Block_Statement or Task_Body node to
1754    --    indicate that the construct is a task master (i.e. has declared tasks
1755    --    or declares an access to a task type).
1756
1757    --  Itype (Node1-Sem)
1758    --    Used in N_Itype_Reference node to reference an itype for which it is
1759    --    important to ensure that it is defined. See description of this node
1760    --    for further details.
1761
1762    --  Kill_Range_Check (Flag11-Sem)
1763    --    Used in an N_Unchecked_Type_Conversion node to indicate that the
1764    --    result should not be subjected to range checks. This is used for the
1765    --    implementation of Normalize_Scalars.
1766
1767    --  Label_Construct (Node2-Sem)
1768    --    Used in an N_Implicit_Label_Declaration node. Refers to an N_Label,
1769    --    N_Block_Statement or N_Loop_Statement node to which the label
1770    --    declaration applies. This attribute is used both in the compiler and
1771    --    in the implementation of ASIS queries. The field is left empty for the
1772    --    special labels generated as part of expanding raise statements with a
1773    --    local exception handler.
1774
1775    --  Library_Unit (Node4-Sem)
1776    --    In a stub node, Library_Unit points to the compilation unit node of
1777    --    the corresponding subunit.
1778    --
1779    --    In a with clause node, Library_Unit points to the spec of the with'ed
1780    --    unit.
1781    --
1782    --    In a compilation unit node, the usage depends on the unit type:
1783    --
1784    --     For a library unit body, Library_Unit points to the compilation unit
1785    --     node of the corresponding spec, unless it's a subprogram body with
1786    --     Acts_As_Spec set, in which case it points to itself.
1787    --
1788    --     For a spec, Library_Unit points to the compilation unit node of the
1789    --     corresponding body, if present. The body will be present if the spec
1790    --     is or contains generics that we needed to instantiate. Similarly, the
1791    --     body will be present if we needed it for inlining purposes. Thus, if
1792    --     we have a spec/body pair, both of which are present, they point to
1793    --     each other via Library_Unit.
1794    --
1795    --     For a subunit, Library_Unit points to the compilation unit node of
1796    --     the parent body.
1797    --     ??? not (always) true, in (at least some, maybe all?) cases it points
1798    --     to the corresponding spec for the parent body.
1799    --
1800    --    Note that this field is not used to hold the parent pointer for child
1801    --    unit (which might in any case need to use it for some other purpose as
1802    --    described above). Instead for a child unit, implicit with's are
1803    --    generated for all parents.
1804
1805    --  Local_Raise_Statements (Elist1)
1806    --    This field is present in exception handler nodes. It is set to
1807    --    No_Elist in the normal case. If there is at least one raise statement
1808    --    which can potentially be handled as a local raise, then this field
1809    --    points to a list of raise nodes, which are calls to a routine to raise
1810    --    an exception. These are raise nodes which can be optimized into gotos
1811    --    if the handler turns out to meet the conditions which permit this
1812    --    transformation. Note that this does NOT include instances of the
1813    --    N_Raise_xxx_Error nodes since the transformation of these nodes is
1814    --    handled by the back end (using the N_Push/N_Pop mechanism).
1815
1816    --  Loop_Actions (List2-Sem)
1817    --    A list present in Component_Association nodes in array aggregates.
1818    --    Used to collect actions that must be executed within the loop because
1819    --    they may need to be evaluated anew each time through.
1820
1821    --  Limited_View_Installed (Flag18-Sem)
1822    --    Present in With_Clauses and in package specifications. If set on
1823    --    with_clause, it indicates that this clause has created the current
1824    --    limited view of the designated package. On a package specification, it
1825    --    indicates that the limited view has already been created because the
1826    --    package is mentioned in a limited_with_clause in the closure of the
1827    --    unit being compiled.
1828
1829    --  Local_Raise_Not_OK (Flag7-Sem)
1830    --    Present in N_Exception_Handler nodes. Set if the handler contains
1831    --    a construct (reraise statement, or call to subprogram in package
1832    --    GNAT.Current_Exception) that makes the handler unsuitable as a target
1833    --    for a local raise (one that could otherwise be converted to a goto).
1834
1835    --  Must_Be_Byte_Aligned (Flag14-Sem)
1836    --    This flag is present in N_Attribute_Reference nodes. It can be set
1837    --    only for the Address and Unrestricted_Access attributes. If set it
1838    --    means that the object for which the address/access is given must be on
1839    --    a byte (more accurately a storage unit) boundary. If necessary, a copy
1840    --    of the object is to be made before taking the address (this copy is in
1841    --    the current scope on the stack frame). This is used for certain cases
1842    --    of code generated by the expander that passes parameters by address.
1843    --
1844    --    The reason the copy is not made by the front end is that the back end
1845    --    has more information about type layout and may be able to (but is not
1846    --    guaranteed to) prevent making unnecessary copies.
1847
1848    --  Must_Not_Freeze (Flag8-Sem)
1849    --    A flag present in all expression nodes. Normally expressions cause
1850    --    freezing as described in the RM. If this flag is set, then this is
1851    --    inhibited. This is used by the analyzer and expander to label nodes
1852    --    that are created by semantic analysis or expansion and which must not
1853    --    cause freezing even though they normally would. This flag is also
1854    --    present in an N_Subtype_Indication node, since we also use these in
1855    --    calls to Freeze_Expression.
1856
1857    --  Next_Entity (Node2-Sem)
1858    --    Present in defining identifiers, defining character literals and
1859    --    defining operator symbols (i.e. in all entities). The entities of a
1860    --    scope are chained, and this field is used as the forward pointer for
1861    --    this list. See Einfo for further details.
1862
1863    --  Next_Exit_Statement (Node3-Sem)
1864    --    Present in N_Exit_Statement nodes. The exit statements for a loop are
1865    --    chained (in reverse order of appearance) from the First_Exit_Statement
1866    --    field of the E_Loop entity for the loop. Next_Exit_Statement points to
1867    --    the next entry on this chain (Empty = end of list).
1868
1869    --  Next_Implicit_With (Node3-Sem)
1870    --    Present in N_With_Clause. Part of a chain of with_clauses generated
1871    --    in rtsfind to indicate implicit dependencies on predefined units. Used
1872    --    to prevent multiple with_clauses for the same unit in a given context.
1873    --    A postorder traversal of the tree whose nodes are units and whose
1874    --    links are with_clauses defines the order in which CodePeer must
1875    --    examine a compiled unit and its full context. This ordering ensures
1876    --    that any subprogram call is examined after the subprogram declaration
1877    --    has been seen.
1878
1879    --  Next_Named_Actual (Node4-Sem)
1880    --    Present in parameter association nodes. Set during semantic analysis
1881    --    to point to the next named parameter, where parameters are ordered by
1882    --    declaration order (as opposed to the actual order in the call, which
1883    --    may be different due to named associations). Not that this field
1884    --    points to the explicit actual parameter itself, not to the
1885    --    N_Parameter_Association node (its parent).
1886
1887    --  Next_Pragma (Node1-Sem)
1888    --    Present in N_Pragma nodes. Used to create a linked list of pragma
1889    --    nodes. Currently used for two purposes:
1890    --
1891    --      Create a list of linked Check_Policy pragmas. The head of this list
1892    --      is stored in Opt.Check_Policy_List (which has further details).
1893    --
1894    --      Used by processing for Pre/Postcondition pragmas to store a list of
1895    --      pragmas associated with the spec of a subprogram (see Sem_Prag for
1896    --      details).
1897    --
1898    --      Used by processing for pragma SPARK_Mode to store multiple pragmas
1899    --      the apply to the same construct. These are visible/private mode for
1900    --      a package spec and declarative/statement mode for package body.
1901
1902    --  Next_Rep_Item (Node5-Sem)
1903    --    Present in pragma nodes, attribute definition nodes, enumeration rep
1904    --    clauses, record rep clauses, aspect specification nodes. Used to link
1905    --    representation items that apply to an entity. See full description of
1906    --    First_Rep_Item field in Einfo for further details.
1907
1908    --  Next_Use_Clause (Node3-Sem)
1909    --    While use clauses are active during semantic processing, they are
1910    --    chained from the scope stack entry, using Next_Use_Clause as a link
1911    --    pointer, with Empty marking the end of the list. The head pointer is
1912    --    in the scope stack entry (First_Use_Clause). At the end of semantic
1913    --    processing (i.e. when Gigi sees the tree, the contents of this field
1914    --    is undefined and should not be read).
1915
1916    --  No_Ctrl_Actions (Flag7-Sem)
1917    --    Present in N_Assignment_Statement to indicate that no Finalize nor
1918    --    Adjust should take place on this assignment even though the RHS is
1919    --    controlled. Also indicates that the primitive _assign should not be
1920    --    used for a tagged assignment. This is used in init procs and aggregate
1921    --    expansions where the generated assignments are initializations, not
1922    --    real assignments.
1923
1924    --  No_Elaboration_Check (Flag14-Sem)
1925    --    Present in N_Function_Call and N_Procedure_Call_Statement. Indicates
1926    --    that no elaboration check is needed on the call, because it appears in
1927    --    the context of a local Suppress pragma. This is used on calls within
1928    --    task bodies, where the actual elaboration checks are applied after
1929    --    analysis, when the local scope stack is not present.
1930
1931    --  No_Entities_Ref_In_Spec (Flag8-Sem)
1932    --    Present in N_With_Clause nodes. Set if the with clause is on the
1933    --    package or subprogram spec where the main unit is the corresponding
1934    --    body, and no entities of the with'ed unit are referenced by the spec
1935    --    (an entity may still be referenced in the body, so this flag is used
1936    --    to generate the proper message (see Sem_Util.Check_Unused_Withs for
1937    --    full details).
1938
1939    --  No_Initialization (Flag13-Sem)
1940    --    Present in N_Object_Declaration and N_Allocator to indicate that the
1941    --    object must not be initialized (by Initialize or call to an init
1942    --    proc). This is needed for controlled aggregates. When the Object
1943    --    declaration has an expression, this flag means that this expression
1944    --    should not be taken into account (needed for in place initialization
1945    --    with aggregates, and for object with an address clause, which are
1946    --    initialized with an assignment at freeze time).
1947
1948    --  No_Minimize_Eliminate (Flag17-Sem)
1949    --    This flag is present in membership operator nodes (N_In/N_Not_In).
1950    --    It is used to indicate that processing for extended overflow checking
1951    --    modes is not required (this is used to prevent infinite recursion).
1952
1953    --  No_Side_Effect_Removal (Flag1-Sem)
1954    --    Present in N_Function_Call nodes. Set when a function call does not
1955    --    require side effect removal. This attribute suppresses the generation
1956    --    of a temporary to capture the result of the function which eventually
1957    --    replaces the function call.
1958
1959    --  No_Truncation (Flag17-Sem)
1960    --    Present in N_Unchecked_Type_Conversion node. This flag has an effect
1961    --    only if the RM_Size of the source is greater than the RM_Size of the
1962    --    target for scalar operands. Normally in such a case we truncate some
1963    --    higher order bits of the source, and then sign/zero extend the result
1964    --    to form the output value. But if this flag is set, then we do not do
1965    --    any truncation, so for example, if an 8 bit input is converted to 5
1966    --    bit result which is in fact stored in 8 bits, then the high order
1967    --    three bits of the target result will be copied from the source. This
1968    --    is used for properly setting out of range values for use by pragmas
1969    --    Initialize_Scalars and Normalize_Scalars.
1970
1971    --  Non_Aliased_Prefix (Flag18-Sem)
1972    --    Present in N_Attribute_Reference nodes. Set only for the case of an
1973    --    Unrestricted_Access reference whose prefix is non-aliased, which is
1974    --    the case that is permitted for Unrestricted_Access except when the
1975    --    expected type is a thin pointer to unconstrained array. This flag is
1976    --    to assist in detecting this illegal use of Unrestricted_Access.
1977
1978    --  Null_Excluding_Subtype (Flag16)
1979    --    Present in N_Access_To_Object_Definition. Indicates that the subtype
1980    --    indication carries a null-exclusion indicator, which is distinct from
1981    --    the null-exclusion indicator that may precede the access keyword.
1982
1983    --  Original_Discriminant (Node2-Sem)
1984    --    Present in identifiers. Used in references to discriminants that
1985    --    appear in generic units. Because the names of the discriminants may be
1986    --    different in an instance, we use this field to recover the position of
1987    --    the discriminant in the original type, and replace it with the
1988    --    discriminant at the same position in the instantiated type.
1989
1990    --  Original_Entity (Node2-Sem)
1991    --    Present in numeric literals. Used to denote the named number that has
1992    --    been constant-folded into the given literal. If literal is from
1993    --    source, or the result of some other constant-folding operation, then
1994    --    Original_Entity is empty. This field is needed to handle properly
1995    --    named numbers in generic units, where the Associated_Node field
1996    --    interferes with the Entity field, making it impossible to preserve the
1997    --    original entity at the point of instantiation (ASIS problem).
1998
1999    --  Others_Discrete_Choices (List1-Sem)
2000    --    When a case statement or variant is analyzed, the semantic checks
2001    --    determine the actual list of choices that correspond to an others
2002    --    choice. This list is materialized for later use by the expander and
2003    --    the Others_Discrete_Choices field of an N_Others_Choice node points to
2004    --    this materialized list of choices, which is in standard format for a
2005    --    list of discrete choices, except that of course it cannot contain an
2006    --    N_Others_Choice entry.
2007
2008    --  Parent_Spec (Node4-Sem)
2009    --    For a library unit that is a child unit spec (package or subprogram
2010    --    declaration, generic declaration or instantiation, or library level
2011    --    rename) this field points to the compilation unit node for the parent
2012    --    package specification. This field is Empty for library bodies (the
2013    --    parent spec in this case can be found from the corresponding spec).
2014
2015    --  Premature_Use (Node5-Sem)
2016    --    Present in N_Incomplete_Type_Declaration node. Used for improved
2017    --    error diagnostics: if there is a premature usage of an incomplete
2018    --    type, a subsequently generated error message indicates the position
2019    --    of its full declaration.
2020
2021    --  Present_Expr (Uint3-Sem)
2022    --    Present in an N_Variant node. This has a meaningful value only after
2023    --    Gigi has back annotated the tree with representation information. At
2024    --    this point, it contains a reference to a gcc expression that depends
2025    --    on the values of one or more discriminants. Give a set of discriminant
2026    --    values, this expression evaluates to False (zero) if variant is not
2027    --    present, and True (non-zero) if it is present. See unit Repinfo for
2028    --    further details on gigi back annotation. This field is used during
2029    --    ASIS processing (data decomposition annex) to determine if a field is
2030    --    present or not.
2031
2032    --  Print_In_Hex (Flag13-Sem)
2033    --    Set on an N_Integer_Literal node to indicate that the value should be
2034    --    printed in hexadecimal in the sprint listing. Has no effect on
2035    --    legality or semantics of program, only on the displayed output. This
2036    --    is used to clarify output from the packed array cases.
2037
2038    --  Procedure_To_Call (Node2-Sem)
2039    --    Present in N_Allocator, N_Free_Statement, N_Simple_Return_Statement,
2040    --    and N_Extended_Return_Statement nodes. References the entity for the
2041    --    declaration of the procedure to be called to accomplish the required
2042    --    operation (i.e. for the Allocate procedure in the case of N_Allocator
2043    --    and N_Simple_Return_Statement and N_Extended_Return_Statement (for
2044    --    allocating the return value), and for the Deallocate procedure in the
2045    --    case of N_Free_Statement.
2046
2047    --  Raises_Constraint_Error (Flag7-Sem)
2048    --    Set on an expression whose evaluation will definitely fail constraint
2049    --    error check. In the case of static expressions, this flag must be set
2050    --    accurately (and if it is set, the expression is typically illegal
2051    --    unless it appears as a non-elaborated branch of a short-circuit form).
2052    --    For a non-static expression, this flag may be set whenever an
2053    --    expression (e.g. an aggregate) is known to raise constraint error. If
2054    --    set, the expression definitely will raise CE if elaborated at runtime.
2055    --    If not set, the expression may or may not raise CE. In other words, on
2056    --    static expressions, the flag is set accurately, on non-static
2057    --    expressions it is set conservatively.
2058
2059    --  Redundant_Use (Flag13-Sem)
2060    --    Present in nodes that can appear as an operand in a use clause or use
2061    --    type clause (identifiers, expanded names, attribute references). Set
2062    --    to indicate that a use is redundant (and therefore need not be undone
2063    --    on scope exit).
2064
2065    --  Renaming_Exception (Node2-Sem)
2066    --    Present in N_Exception_Declaration node. Used to point back to the
2067    --    exception renaming for an exception declared within a subprogram.
2068    --    What happens is that an exception declared in a subprogram is moved
2069    --    to the library level with a unique name, and the original exception
2070    --    becomes a renaming. This link from the library level exception to the
2071    --    renaming declaration allows registering of the proper exception name.
2072
2073    --  Return_Statement_Entity (Node5-Sem)
2074    --    Present in N_Simple_Return_Statement and N_Extended_Return_Statement.
2075    --    Points to an E_Return_Statement representing the return statement.
2076
2077    --  Return_Object_Declarations (List3)
2078    --    Present in N_Extended_Return_Statement. Points to a list initially
2079    --    containing a single N_Object_Declaration representing the return
2080    --    object. We use a list (instead of just a pointer to the object decl)
2081    --    because Analyze wants to insert extra actions on this list.
2082
2083    --  Rounded_Result (Flag18-Sem)
2084    --    Present in N_Type_Conversion, N_Op_Divide and N_Op_Multiply nodes.
2085    --    Used in the fixed-point cases to indicate that the result must be
2086    --    rounded as a result of the use of the 'Round attribute. Also used for
2087    --    integer N_Op_Divide nodes to indicate that the result should be
2088    --    rounded to the nearest integer (breaking ties away from zero), rather
2089    --    than truncated towards zero as usual. These rounded integer operations
2090    --    are the result of expansion of rounded fixed-point divide, conversion
2091    --    and multiplication operations.
2092
2093    --  SCIL_Entity (Node4-Sem)
2094    --    Present in SCIL nodes. References the specific tagged type associated
2095    --    with the SCIL node (for an N_SCIL_Dispatching_Call node, this is
2096    --    the controlling type of the call; for an N_SCIL_Membership_Test node
2097    --    generated as part of testing membership in T'Class, this is T; for an
2098    --    N_SCIL_Dispatch_Table_Tag_Init node, this is the type being declared).
2099
2100    --  SCIL_Controlling_Tag (Node5-Sem)
2101    --    Present in N_SCIL_Dispatching_Call nodes. References the controlling
2102    --    tag of a dispatching call. This is usually an N_Selected_Component
2103    --    node (for a _tag component), but may be an N_Object_Declaration or
2104    --    N_Parameter_Specification node in some cases (e.g., for a call to
2105    --    a classwide streaming operation or a call to an instance of
2106    --    Ada.Tags.Generic_Dispatching_Constructor).
2107
2108    --  SCIL_Tag_Value (Node5-Sem)
2109    --    Present in N_SCIL_Membership_Test nodes. Used to reference the tag
2110    --    of the value that is being tested.
2111
2112    --  SCIL_Target_Prim (Node2-Sem)
2113    --    Present in N_SCIL_Dispatching_Call nodes. References the primitive
2114    --    operation named (statically) in a dispatching call.
2115
2116    --  Scope (Node3-Sem)
2117    --    Present in defining identifiers, defining character literals and
2118    --    defining operator symbols (i.e. in all entities). The entities of a
2119    --    scope all use this field to reference the corresponding scope entity.
2120    --    See Einfo for further details.
2121
2122    --  Shift_Count_OK (Flag4-Sem)
2123    --    A flag present in shift nodes to indicate that the shift count is
2124    --    known to be in range, i.e. is in the range from zero to word length
2125    --    minus one. If this flag is not set, then the shift count may be
2126    --    outside this range, i.e. larger than the word length, and the code
2127    --    must ensure that such shift counts give the appropriate result.
2128
2129    --  Source_Type (Node1-Sem)
2130    --    Used in an N_Validate_Unchecked_Conversion node to point to the
2131    --    source type entity for the unchecked conversion instantiation
2132    --    which gigi must do size validation for.
2133
2134    --  Split_PPC (Flag17)
2135    --    When a Pre or Post aspect specification is processed, it is broken
2136    --    into AND THEN sections. The left most section has Split_PPC set to
2137    --    False, indicating that it is the original specification (e.g. for
2138    --    posting errors). For other sections, Split_PPC is set to True.
2139    --    This flag is set in both the N_Aspect_Specification node itself,
2140    --    and in the pragma which is generated from this node.
2141
2142    --  Storage_Pool (Node1-Sem)
2143    --    Present in N_Allocator, N_Free_Statement, N_Simple_Return_Statement,
2144    --    and N_Extended_Return_Statement nodes. References the entity for the
2145    --    storage pool to be used for the allocate or free call or for the
2146    --    allocation of the returned value from function. Empty indicates that
2147    --    the global default pool is to be used. Note that in the case
2148    --    of a return statement, this field is set only if the function returns
2149    --    value of a type whose size is not known at compile time on the
2150    --    secondary stack.
2151
2152    --  Suppress_Assignment_Checks (Flag18-Sem)
2153    --    Used in generated N_Assignment_Statement nodes to suppress predicate
2154    --    and range checks in cases where the generated code knows that the
2155    --    value being assigned is in range and satisfies any predicate. Also
2156    --    can be set in N_Object_Declaration nodes, to similarly suppress any
2157    --    checks on the initializing value. In assignment statements it also
2158    --    suppresses access checks in the generated code for out- and in-out
2159    --    parameters in entry calls.
2160
2161    --  Suppress_Loop_Warnings (Flag17-Sem)
2162    --    Used in N_Loop_Statement node to indicate that warnings within the
2163    --    body of the loop should be suppressed. This is set when the range
2164    --    of a FOR loop is known to be null, or is probably null (loop would
2165    --    only execute if invalid values are present).
2166
2167    --  Target_Type (Node2-Sem)
2168    --    Used in an N_Validate_Unchecked_Conversion node to point to the target
2169    --    type entity for the unchecked conversion instantiation which gigi must
2170    --    do size validation for.
2171
2172    --  Then_Actions (List3-Sem)
2173    --    This field is present in if expression nodes. During code expansion
2174    --    we use the Insert_Actions procedure (in Exp_Util) to insert actions
2175    --    at an appropriate place in the tree to get elaborated at the right
2176    --    time. For if expressions, we have to be sure that the actions for
2177    --    for the Then branch are only elaborated if the condition is True.
2178    --    The Then_Actions field is used as a temporary parking place for
2179    --    these actions. The final tree is always rewritten to eliminate the
2180    --    need for this field, so in the tree passed to Gigi, this field is
2181    --    always set to No_List.
2182
2183    --  Treat_Fixed_As_Integer (Flag14-Sem)
2184    --    This flag appears in operator nodes for divide, multiply, mod and rem
2185    --    on fixed-point operands. It indicates that the operands are to be
2186    --    treated as integer values, ignoring small values. This flag is only
2187    --    set as a result of expansion of fixed-point operations. Typically a
2188    --    fixed-point multiplication in the source generates subsidiary
2189    --    multiplication and division operations that work with the underlying
2190    --    integer values and have this flag set. Note that this flag is not
2191    --    needed on other arithmetic operations (add, neg, subtract etc.) since
2192    --    in these cases it is always the case that fixed is treated as integer.
2193    --    The Etype field MUST be set if this flag is set. The analyzer knows to
2194    --    leave such nodes alone, and whoever makes them must set the correct
2195    --    Etype value.
2196
2197    --  TSS_Elist (Elist3-Sem)
2198    --    Present in N_Freeze_Entity nodes. Holds an element list containing
2199    --    entries for each TSS (type support subprogram) associated with the
2200    --    frozen type. The elements of the list are the entities for the
2201    --    subprograms (see package Exp_TSS for further details). Set to No_Elist
2202    --    if there are no type support subprograms for the type or if the freeze
2203    --    node is not for a type.
2204
2205    --  Uneval_Old_Accept (Flag7-Sem)
2206    --    Present in N_Pragma nodes. Set True if Opt.Uneval_Old is set to 'A'
2207    --    (accept) at the point where the pragma is encountered (including the
2208    --    case of a pragma generated from an aspect specification). It is this
2209    --    setting that is relevant, rather than the setting at the point where
2210    --    a contract is finally analyzed after the delay till the freeze point.
2211
2212    --  Uneval_Old_Warn (Flag18-Sem)
2213    --    Present in N_Pragma nodes. Set True if Opt.Uneval_Old is set to 'W'
2214    --    (warn) at the point where the pragma is encountered (including the
2215    --    case of a pragma generated from an aspect specification). It is this
2216    --    setting that is relevant, rather than the setting at the point where
2217    --    a contract is finally analyzed after the delay till the freeze point.
2218
2219    --  Unreferenced_In_Spec (Flag7-Sem)
2220    --    Present in N_With_Clause nodes. Set if the with clause is on the
2221    --    package or subprogram spec where the main unit is the corresponding
2222    --    body, and is not referenced by the spec (it may still be referenced by
2223    --    the body, so this flag is used to generate the proper message (see
2224    --    Sem_Util.Check_Unused_Withs for details)
2225
2226    --  Uninitialized_Variable (Node3-Sem)
2227    --    Present in N_Formal_Private_Type_Definition and in N_Private_
2228    --    Extension_Declarations. Indicates that a variable in a generic unit
2229    --    whose type is a formal private or derived type is read without being
2230    --    initialized. Used to warn if the corresponding actual type is not
2231    --    a fully initialized type.
2232
2233    --  Used_Operations (Elist5-Sem)
2234    --    Present in N_Use_Type_Clause nodes. Holds the list of operations that
2235    --    are made potentially use-visible by the clause. Simplifies processing
2236    --    on exit from the scope of the use_type_clause, in particular in the
2237    --    case of Use_All_Type, when those operations several scopes.
2238
2239    --  Was_Expression_Function (Flag18-Sem)
2240    --    Present in N_Subprogram_Body. True if the original source had an
2241    --    N_Expression_Function, which was converted to the N_Subprogram_Body
2242    --    by Analyze_Expression_Function. This is needed by ASIS to correctly
2243    --    recreate the expression function (for the instance body) when the
2244    --    completion of a generic function declaration is an expression
2245    --    function.
2246
2247    --  Was_Originally_Stub (Flag13-Sem)
2248    --    This flag is set in the node for a proper body that replaces stub.
2249    --    During the analysis procedure, stubs in some situations get rewritten
2250    --    by the corresponding bodies, and we set this flag to remember that
2251    --    this happened. Note that it is not good enough to rely on the use of
2252    --    Original_Node here because of the case of nested instantiations where
2253    --    the substituted node can be copied.
2254
2255    --  Withed_Body (Node1-Sem)
2256    --    Present in N_With_Clause nodes. Set if the unit in whose context
2257    --    the with_clause appears instantiates a generic contained in the
2258    --    library unit of the with_clause and as a result loads its body.
2259    --    Used for a more precise unit traversal for CodePeer.
2260
2261    --------------------------------------------------
2262    -- Note on Use of End_Label and End_Span Fields --
2263    --------------------------------------------------
2264
2265    --  Several constructs have end lines:
2266
2267    --    Loop Statement             end loop [loop_IDENTIFIER];
2268    --    Package Specification      end [[PARENT_UNIT_NAME .] IDENTIFIER]
2269    --    Task Definition            end [task_IDENTIFIER]
2270    --    Protected Definition       end [protected_IDENTIFIER]
2271    --    Protected Body             end [protected_IDENTIFIER]
2272
2273    --    Block Statement            end [block_IDENTIFIER];
2274    --    Subprogram Body            end [DESIGNATOR];
2275    --    Package Body               end [[PARENT_UNIT_NAME .] IDENTIFIER];
2276    --    Task Body                  end [task_IDENTIFIER];
2277    --    Accept Statement           end [entry_IDENTIFIER]];
2278    --    Entry Body                 end [entry_IDENTIFIER];
2279
2280    --    If Statement               end if;
2281    --    Case Statement             end case;
2282
2283    --    Record Definition          end record;
2284    --    Enumeration Definition     );
2285
2286    --  The End_Label and End_Span fields are used to mark the locations of
2287    --  these lines, and also keep track of the label in the case where a label
2288    --  is present.
2289
2290    --  For the first group above, the End_Label field of the corresponding node
2291    --  is used to point to the label identifier. In the case where there is no
2292    --  label in the source, the parser supplies a dummy identifier (with
2293    --  Comes_From_Source set to False), and the Sloc of this dummy identifier
2294    --  marks the location of the token following the END token.
2295
2296    --  For the second group, the use of End_Label is similar, but the End_Label
2297    --  is found in the N_Handled_Sequence_Of_Statements node. This is done
2298    --  simply because in some cases there is no room in the parent node.
2299
2300    --  For the third group, there is never any label, and instead of using
2301    --  End_Label, we use the End_Span field which gives the location of the
2302    --  token following END, relative to the starting Sloc of the construct,
2303    --  i.e. add Sloc (Node) + End_Span (Node) to get the Sloc of the IF or CASE
2304    --  following the End_Label.
2305
2306    --  The record definition case is handled specially, we treat it as though
2307    --  it required an optional label which is never present, and so the parser
2308    --  always builds a dummy identifier with Comes From Source set False. The
2309    --  reason we do this, rather than using End_Span in this case, is that we
2310    --  want to generate a cross-ref entry for the end of a record, since it
2311    --  represents a scope for name declaration purposes.
2312
2313    --  The enumeration definition case is handled in an exactly similar manner,
2314    --  building a dummy identifier to get a cross-reference.
2315
2316    --  Note: the reason we store the difference as a Uint, instead of storing
2317    --  the Source_Ptr value directly, is that Source_Ptr values cannot be
2318    --  distinguished from other types of values, and we count on all general
2319    --  use fields being self describing. To make things easier for clients,
2320    --  note that we provide function End_Location, and procedure
2321    --  Set_End_Location to allow access to the logical value (which is the
2322    --  Source_Ptr value for the end token).
2323
2324    ---------------------
2325    -- Syntactic Nodes --
2326    ---------------------
2327
2328       ---------------------
2329       -- 2.3  Identifier --
2330       ---------------------
2331
2332       --  IDENTIFIER ::= IDENTIFIER_LETTER {[UNDERLINE] LETTER_OR_DIGIT}
2333       --  LETTER_OR_DIGIT ::= IDENTIFIER_LETTER | DIGIT
2334
2335       --  An IDENTIFIER shall not be a reserved word
2336
2337       --  In the Ada grammar identifiers are the bottom level tokens which have
2338       --  very few semantics. Actual program identifiers are direct names. If
2339       --  we were being 100% honest with the grammar, then we would have a node
2340       --  called N_Direct_Name which would point to an identifier. However,
2341       --  that's too many extra nodes, so we just use the N_Identifier node
2342       --  directly as a direct name, and it contains the expression fields and
2343       --  Entity field that correspond to its use as a direct name. In those
2344       --  few cases where identifiers appear in contexts where they are not
2345       --  direct names (pragmas, pragma argument associations, attribute
2346       --  references and attribute definition clauses), the Chars field of the
2347       --  node contains the Name_Id for the identifier name.
2348
2349       --  Note: in GNAT, a reserved word can be treated as an identifier in two
2350       --  cases. First, an incorrect use of a reserved word as an identifier is
2351       --  diagnosed and then treated as a normal identifier. Second, an
2352       --  attribute designator of the form of a reserved word (access, delta,
2353       --  digits, range) is treated as an identifier.
2354
2355       --  Note: The set of letters that is permitted in an identifier depends
2356       --  on the character set in use. See package Csets for full details.
2357
2358       --  N_Identifier
2359       --  Sloc points to identifier
2360       --  Chars (Name1) contains the Name_Id for the identifier
2361       --  Entity (Node4-Sem)
2362       --  Associated_Node (Node4-Sem)
2363       --  Original_Discriminant (Node2-Sem)
2364       --  Redundant_Use (Flag13-Sem)
2365       --  Atomic_Sync_Required (Flag14-Sem)
2366       --  Has_Private_View (Flag11-Sem) (set in generic units)
2367       --  plus fields for expression
2368
2369       --------------------------
2370       -- 2.4  Numeric Literal --
2371       --------------------------
2372
2373       --  NUMERIC_LITERAL ::= DECIMAL_LITERAL | BASED_LITERAL
2374
2375       ----------------------------
2376       -- 2.4.1  Decimal Literal --
2377       ----------------------------
2378
2379       --  DECIMAL_LITERAL ::= NUMERAL [.NUMERAL] [EXPONENT]
2380
2381       --  NUMERAL ::= DIGIT {[UNDERLINE] DIGIT}
2382
2383       --  EXPONENT ::= E [+] NUMERAL | E - NUMERAL
2384
2385       --  Decimal literals appear in the tree as either integer literal nodes
2386       --  or real literal nodes, depending on whether a period is present.
2387
2388       --  Note: literal nodes appear as a result of direct use of literals
2389       --  in the source program, and also as the result of evaluating
2390       --  expressions at compile time. In the latter case, it is possible
2391       --  to construct real literals that have no syntactic representation
2392       --  using the standard literal format. Such literals are listed by
2393       --  Sprint using the notation [numerator / denominator].
2394
2395       --  Note: the value of an integer literal node created by the front end
2396       --  is never outside the range of values of the base type. However, it
2397       --  can be the case that the created value is outside the range of the
2398       --  particular subtype. This happens in the case of integer overflows
2399       --  with checks suppressed.
2400
2401       --  N_Integer_Literal
2402       --  Sloc points to literal
2403       --  Original_Entity (Node2-Sem) If not Empty, holds Named_Number that
2404       --  has been constant-folded into its literal value.
2405       --  Intval (Uint3) contains integer value of literal
2406       --  plus fields for expression
2407       --  Print_In_Hex (Flag13-Sem)
2408
2409       --  N_Real_Literal
2410       --  Sloc points to literal
2411       --  Original_Entity (Node2-Sem) If not Empty, holds Named_Number that
2412       --  has been constant-folded into its literal value.
2413       --  Realval (Ureal3) contains real value of literal
2414       --  Corresponding_Integer_Value (Uint4-Sem)
2415       --  Is_Machine_Number (Flag11-Sem)
2416       --  plus fields for expression
2417
2418       --------------------------
2419       -- 2.4.2  Based Literal --
2420       --------------------------
2421
2422       --  BASED_LITERAL ::=
2423       --   BASE # BASED_NUMERAL [.BASED_NUMERAL] # [EXPONENT]
2424
2425       --  BASE ::= NUMERAL
2426
2427       --  BASED_NUMERAL ::=
2428       --    EXTENDED_DIGIT {[UNDERLINE] EXTENDED_DIGIT}
2429
2430       --  EXTENDED_DIGIT ::= DIGIT | A | B | C | D | E | F
2431
2432       --  Based literals appear in the tree as either integer literal nodes
2433       --  or real literal nodes, depending on whether a period is present.
2434
2435       ----------------------------
2436       -- 2.5  Character Literal --
2437       ----------------------------
2438
2439       --  CHARACTER_LITERAL ::= ' GRAPHIC_CHARACTER '
2440
2441       --  N_Character_Literal
2442       --  Sloc points to literal
2443       --  Chars (Name1) contains the Name_Id for the identifier
2444       --  Char_Literal_Value (Uint2) contains the literal value
2445       --  Entity (Node4-Sem)
2446       --  Associated_Node (Node4-Sem)
2447       --  Has_Private_View (Flag11-Sem) set in generic units.
2448       --  plus fields for expression
2449
2450       --  Note: the Entity field will be missing (set to Empty) for character
2451       --  literals whose type is Standard.Wide_Character or Standard.Character
2452       --  or a type derived from one of these two. In this case the character
2453       --  literal stands for its own coding. The reason we take this irregular
2454       --  short cut is to avoid the need to build lots of junk defining
2455       --  character literal nodes.
2456
2457       -------------------------
2458       -- 2.6  String Literal --
2459       -------------------------
2460
2461       --  STRING LITERAL ::= "{STRING_ELEMENT}"
2462
2463       --  A STRING_ELEMENT is either a pair of quotation marks ("), or a
2464       --  single GRAPHIC_CHARACTER other than a quotation mark.
2465       --
2466       --  Is_Folded_In_Parser is True if the parser created this literal by
2467       --  folding a sequence of "&" operators. For example, if the source code
2468       --  says "aaa" & "bbb" & "ccc", and this produces "aaabbbccc", the flag
2469       --  is set. This flag is needed because the parser doesn't know about
2470       --  visibility, so the folded result might be wrong, and semantic
2471       --  analysis needs to check for that.
2472
2473       --  N_String_Literal
2474       --  Sloc points to literal
2475       --  Strval (Str3) contains Id of string value
2476       --  Has_Wide_Character (Flag11-Sem)
2477       --  Has_Wide_Wide_Character (Flag13-Sem)
2478       --  Is_Folded_In_Parser (Flag4)
2479       --  plus fields for expression
2480
2481       ------------------
2482       -- 2.7  Comment --
2483       ------------------
2484
2485       --  A COMMENT starts with two adjacent hyphens and extends up to the
2486       --  end of the line. A COMMENT may appear on any line of a program.
2487
2488       --  Comments are skipped by the scanner and do not appear in the tree.
2489       --  It is possible to reconstruct the position of comments with respect
2490       --  to the elements of the tree by using the source position (Sloc)
2491       --  pointers that appear in every tree node.
2492
2493       -----------------
2494       -- 2.8  Pragma --
2495       -----------------
2496
2497       --  PRAGMA ::= pragma IDENTIFIER
2498       --    [(PRAGMA_ARGUMENT_ASSOCIATION {, PRAGMA_ARGUMENT_ASSOCIATION})];
2499
2500       --  Note that a pragma may appear in the tree anywhere a declaration
2501       --  or a statement may appear, as well as in some other situations
2502       --  which are explicitly documented.
2503
2504       --  N_Pragma
2505       --  Sloc points to PRAGMA
2506       --  Next_Pragma (Node1-Sem)
2507       --  Pragma_Argument_Associations (List2) (set to No_List if none)
2508       --  Corresponding_Aspect (Node3-Sem) (set to Empty if not present)
2509       --  Pragma_Identifier (Node4)
2510       --  Next_Rep_Item (Node5-Sem)
2511       --  Class_Present (Flag6) set if from Aspect with 'Class
2512       --  From_Aspect_Specification (Flag13-Sem)
2513       --  Import_Interface_Present (Flag16-Sem)
2514       --  Is_Analyzed_Pragma (Flag5-Sem)
2515       --  Is_Checked (Flag11-Sem)
2516       --  Is_Delayed_Aspect (Flag14-Sem)
2517       --  Is_Disabled (Flag15-Sem)
2518       --  Is_Generic_Contract_Pragma (Flag2-Sem)
2519       --  Is_Ghost_Pragma (Flag3-Sem)
2520       --  Is_Ignored (Flag9-Sem)
2521       --  Is_Inherited_Pragma (Flag4-Sem)
2522       --  Split_PPC (Flag17) set if corresponding aspect had Split_PPC set
2523       --  Uneval_Old_Accept (Flag7-Sem)
2524       --  Uneval_Old_Warn (Flag18-Sem)
2525
2526       --  Note: we should have a section on what pragmas are passed on to
2527       --  the back end to be processed. This section should note that pragma
2528       --  Psect_Object is always converted to Common_Object, but there are
2529       --  undoubtedly many other similar notes required ???
2530
2531       --  Note: a utility function Pragma_Name may be applied to pragma nodes
2532       --  to conveniently obtain the Chars field of the Pragma_Identifier.
2533
2534       --  Note: if From_Aspect_Specification is set, then Sloc points to the
2535       --  aspect name, as does the Pragma_Identifier. In this case if the
2536       --  pragma has a local name argument (such as pragma Inline), it is
2537       --  resolved to point to the specific entity affected by the pragma.
2538
2539       --------------------------------------
2540       -- 2.8  Pragma Argument Association --
2541       --------------------------------------
2542
2543       --  PRAGMA_ARGUMENT_ASSOCIATION ::=
2544       --    [pragma_argument_IDENTIFIER =>] NAME
2545       --  | [pragma_argument_IDENTIFIER =>] EXPRESSION
2546
2547       --  In Ada 2012, there are two more possibilities:
2548
2549       --  PRAGMA_ARGUMENT_ASSOCIATION ::=
2550       --    [pragma_argument_ASPECT_MARK =>] NAME
2551       --  | [pragma_argument_ASPECT_MARK =>] EXPRESSION
2552
2553       --  where the interesting allowed cases (which do not fit the syntax of
2554       --  the first alternative above) are
2555
2556       --  ASPECT_MARK => Pre'Class |
2557       --                 Post'Class |
2558       --                 Type_Invariant'Class |
2559       --                 Invariant'Class
2560
2561       --  We allow this special usage in all Ada modes, but it would be a
2562       --  pain to allow these aspects to pervade the pragma syntax, and the
2563       --  representation of pragma nodes internally. So what we do is to
2564       --  replace these ASPECT_MARK forms with identifiers whose name is one
2565       --  of the special internal names _Pre, _Post or _Type_Invariant.
2566
2567       --  We do a similar replacement of these Aspect_Mark forms in the
2568       --  Expression of a pragma argument association for the cases of
2569       --  the first arguments of any Check pragmas and Check_Policy pragmas
2570
2571       --  N_Pragma_Argument_Association
2572       --  Sloc points to first token in association
2573       --  Chars (Name1) (set to No_Name if no pragma argument identifier)
2574       --  Expression (Node3)
2575
2576       ------------------------
2577       -- 2.9  Reserved Word --
2578       ------------------------
2579
2580       --  Reserved words are parsed by the scanner, and returned as the
2581       --  corresponding token types (e.g. PACKAGE is returned as Tok_Package)
2582
2583       ----------------------------
2584       -- 3.1  Basic Declaration --
2585       ----------------------------
2586
2587       --  BASIC_DECLARATION ::=
2588       --    TYPE_DECLARATION          | SUBTYPE_DECLARATION
2589       --  | OBJECT_DECLARATION        | NUMBER_DECLARATION
2590       --  | SUBPROGRAM_DECLARATION    | ABSTRACT_SUBPROGRAM_DECLARATION
2591       --  | PACKAGE_DECLARATION       | RENAMING_DECLARATION
2592       --  | EXCEPTION_DECLARATION     | GENERIC_DECLARATION
2593       --  | GENERIC_INSTANTIATION
2594
2595       --  Basic declaration also includes IMPLICIT_LABEL_DECLARATION
2596       --  see further description in section on semantic nodes.
2597
2598       --  Also, in the tree that is constructed, a pragma may appear
2599       --  anywhere that a declaration may appear.
2600
2601       ------------------------------
2602       -- 3.1  Defining Identifier --
2603       ------------------------------
2604
2605       --  DEFINING_IDENTIFIER ::= IDENTIFIER
2606
2607       --  A defining identifier is an entity, which has additional fields
2608       --  depending on the setting of the Ekind field. These additional
2609       --  fields are defined (and access subprograms declared) in package
2610       --  Einfo.
2611
2612       --  Note: N_Defining_Identifier is an extended node whose fields are
2613       --  deliberate layed out to match the layout of fields in an ordinary
2614       --  N_Identifier node allowing for easy alteration of an identifier
2615       --  node into a defining identifier node. For details, see procedure
2616       --  Sinfo.CN.Change_Identifier_To_Defining_Identifier.
2617
2618       --  N_Defining_Identifier
2619       --  Sloc points to identifier
2620       --  Chars (Name1) contains the Name_Id for the identifier
2621       --  Next_Entity (Node2-Sem)
2622       --  Scope (Node3-Sem)
2623       --  Etype (Node5-Sem)
2624
2625       -----------------------------
2626       -- 3.2.1  Type Declaration --
2627       -----------------------------
2628
2629       --  TYPE_DECLARATION ::=
2630       --    FULL_TYPE_DECLARATION
2631       --  | INCOMPLETE_TYPE_DECLARATION
2632       --  | PRIVATE_TYPE_DECLARATION
2633       --  | PRIVATE_EXTENSION_DECLARATION
2634
2635       ----------------------------------
2636       -- 3.2.1  Full Type Declaration --
2637       ----------------------------------
2638
2639       --  FULL_TYPE_DECLARATION ::=
2640       --    type DEFINING_IDENTIFIER [KNOWN_DISCRIMINANT_PART]
2641       --      is TYPE_DEFINITION
2642       --        [ASPECT_SPECIFICATIONS];
2643       --  | TASK_TYPE_DECLARATION
2644       --  | PROTECTED_TYPE_DECLARATION
2645
2646       --  The full type declaration node is used only for the first case. The
2647       --  second case (concurrent type declaration), is represented directly
2648       --  by a task type declaration or a protected type declaration.
2649
2650       --  N_Full_Type_Declaration
2651       --  Sloc points to TYPE
2652       --  Defining_Identifier (Node1)
2653       --  Incomplete_View (Node2-Sem)
2654       --  Discriminant_Specifications (List4) (set to No_List if none)
2655       --  Type_Definition (Node3)
2656       --  Discr_Check_Funcs_Built (Flag11-Sem)
2657
2658       ----------------------------
2659       -- 3.2.1  Type Definition --
2660       ----------------------------
2661
2662       --  TYPE_DEFINITION ::=
2663       --    ENUMERATION_TYPE_DEFINITION  | INTEGER_TYPE_DEFINITION
2664       --  | REAL_TYPE_DEFINITION         | ARRAY_TYPE_DEFINITION
2665       --  | RECORD_TYPE_DEFINITION       | ACCESS_TYPE_DEFINITION
2666       --  | DERIVED_TYPE_DEFINITION      | INTERFACE_TYPE_DEFINITION
2667
2668       --------------------------------
2669       -- 3.2.2  Subtype Declaration --
2670       --------------------------------
2671
2672       --  SUBTYPE_DECLARATION ::=
2673       --    subtype DEFINING_IDENTIFIER is [NULL_EXCLUSION] SUBTYPE_INDICATION
2674       --      [ASPECT_SPECIFICATIONS];
2675
2676       --  The subtype indication field is set to Empty for subtypes
2677       --  declared in package Standard (Positive, Natural).
2678
2679       --  N_Subtype_Declaration
2680       --  Sloc points to SUBTYPE
2681       --  Defining_Identifier (Node1)
2682       --  Null_Exclusion_Present (Flag11)
2683       --  Subtype_Indication (Node5)
2684       --  Generic_Parent_Type (Node4-Sem) (set for an actual derived type).
2685       --  Exception_Junk (Flag8-Sem)
2686       --  Has_Dynamic_Range_Check (Flag12-Sem)
2687
2688       -------------------------------
2689       -- 3.2.2  Subtype Indication --
2690       -------------------------------
2691
2692       --  SUBTYPE_INDICATION ::= SUBTYPE_MARK [CONSTRAINT]
2693
2694       --  Note: if no constraint is present, the subtype indication appears
2695       --  directly in the tree as a subtype mark. The N_Subtype_Indication
2696       --  node is used only if a constraint is present.
2697
2698       --  Note: [For Ada 2005 (AI-231)]: Because Ada 2005 extends this rule
2699       --  with the null-exclusion part (see AI-231), we had to introduce a new
2700       --  attribute in all the parents of subtype_indication nodes to indicate
2701       --  if the null-exclusion is present.
2702
2703       --  Note: the reason that this node has expression fields is that a
2704       --  subtype indication can appear as an operand of a membership test.
2705
2706       --  N_Subtype_Indication
2707       --  Sloc points to first token of subtype mark
2708       --  Subtype_Mark (Node4)
2709       --  Constraint (Node3)
2710       --  Etype (Node5-Sem)
2711       --  Must_Not_Freeze (Flag8-Sem)
2712
2713       --  Note: Depending on context, the Etype is either the entity of the
2714       --  Subtype_Mark field, or it is an itype constructed to reify the
2715       --  subtype indication. In particular, such itypes are created for a
2716       --  subtype indication that appears in an array type declaration. This
2717       --  simplifies constraint checking in indexed components.
2718
2719       --  For subtype indications that appear in scalar type and subtype
2720       --  declarations, the Etype is the entity of the subtype mark.
2721
2722       -------------------------
2723       -- 3.2.2  Subtype Mark --
2724       -------------------------
2725
2726       --  SUBTYPE_MARK ::= subtype_NAME
2727
2728       -----------------------
2729       -- 3.2.2  Constraint --
2730       -----------------------
2731
2732       --  CONSTRAINT ::= SCALAR_CONSTRAINT | COMPOSITE_CONSTRAINT
2733
2734       ------------------------------
2735       -- 3.2.2  Scalar Constraint --
2736       ------------------------------
2737
2738       --  SCALAR_CONSTRAINT ::=
2739       --    RANGE_CONSTRAINT | DIGITS_CONSTRAINT | DELTA_CONSTRAINT
2740
2741       ---------------------------------
2742       -- 3.2.2  Composite Constraint --
2743       ---------------------------------
2744
2745       --  COMPOSITE_CONSTRAINT ::=
2746       --    INDEX_CONSTRAINT | DISCRIMINANT_CONSTRAINT
2747
2748       -------------------------------
2749       -- 3.3.1  Object Declaration --
2750       -------------------------------
2751
2752       --  OBJECT_DECLARATION ::=
2753       --    DEFINING_IDENTIFIER_LIST : [aliased] [constant]
2754       --      [NULL_EXCLUSION] SUBTYPE_INDICATION [:= EXPRESSION]
2755       --        [ASPECT_SPECIFICATIONS];
2756       --  | DEFINING_IDENTIFIER_LIST : [aliased] [constant]
2757       --      ACCESS_DEFINITION [:= EXPRESSION]
2758       --        [ASPECT_SPECIFICATIONS];
2759       --  | DEFINING_IDENTIFIER_LIST : [aliased] [constant]
2760       --      ARRAY_TYPE_DEFINITION [:= EXPRESSION]
2761       --        [ASPECT_SPECIFICATIONS];
2762       --  | SINGLE_TASK_DECLARATION
2763       --  | SINGLE_PROTECTED_DECLARATION
2764
2765       --  Note: aliased is not permitted in Ada 83 mode
2766
2767       --  The N_Object_Declaration node is only for the first three cases.
2768       --  Single task declaration is handled by P_Task (9.1)
2769       --  Single protected declaration is handled by P_protected (9.5)
2770
2771       --  Although the syntax allows multiple identifiers in the list, the
2772       --  semantics is as though successive declarations were given with
2773       --  identical type definition and expression components. To simplify
2774       --  semantic processing, the parser represents a multiple declaration
2775       --  case as a sequence of single declarations, using the More_Ids and
2776       --  Prev_Ids flags to preserve the original source form as described
2777       --  in the section on "Handling of Defining Identifier Lists".
2778
2779       --  The flag Has_Init_Expression is set if an initializing expression
2780       --  is present. Normally it is set if and only if Expression contains
2781       --  a non-empty value, but there is an exception to this. When the
2782       --  initializing expression is an aggregate which requires explicit
2783       --  assignments, the Expression field gets set to Empty, but this flag
2784       --  is still set, so we don't forget we had an initializing expression.
2785
2786       --  Note: if a range check is required for the initialization
2787       --  expression then the Do_Range_Check flag is set in the Expression,
2788       --  with the check being done against the type given by the object
2789       --  definition, which is also the Etype of the defining identifier.
2790
2791       --  Note: the contents of the Expression field must be ignored (i.e.
2792       --  treated as though it were Empty) if No_Initialization is set True.
2793
2794       --  Note: the back end places some restrictions on the form of the
2795       --  Expression field. If the object being declared is Atomic, then
2796       --  the Expression may not have the form of an aggregate (since this
2797       --  might cause the back end to generate separate assignments). In this
2798       --  case the front end must generate an extra temporary and initialize
2799       --  this temporary as required (the temporary itself is not atomic).
2800
2801       --  Note: there is not node kind for object definition. Instead, the
2802       --  corresponding field holds a subtype indication, an array type
2803       --  definition, or (Ada 2005, AI-406) an access definition.
2804
2805       --  N_Object_Declaration
2806       --  Sloc points to first identifier
2807       --  Defining_Identifier (Node1)
2808       --  Aliased_Present (Flag4)
2809       --  Constant_Present (Flag17) set if CONSTANT appears
2810       --  Null_Exclusion_Present (Flag11)
2811       --  Object_Definition (Node4) subtype indic./array type def./access def.
2812       --  Expression (Node3) (set to Empty if not present)
2813       --  Handler_List_Entry (Node2-Sem)
2814       --  Corresponding_Generic_Association (Node5-Sem)
2815       --  More_Ids (Flag5) (set to False if no more identifiers in list)
2816       --  Prev_Ids (Flag6) (set to False if no previous identifiers in list)
2817       --  No_Initialization (Flag13-Sem)
2818       --  Assignment_OK (Flag15-Sem)
2819       --  Exception_Junk (Flag8-Sem)
2820       --  Is_Subprogram_Descriptor (Flag16-Sem)
2821       --  Has_Init_Expression (Flag14)
2822       --  Suppress_Assignment_Checks (Flag18-Sem)
2823
2824       -------------------------------------
2825       -- 3.3.1  Defining Identifier List --
2826       -------------------------------------
2827
2828       --  DEFINING_IDENTIFIER_LIST ::=
2829       --    DEFINING_IDENTIFIER {, DEFINING_IDENTIFIER}
2830
2831       -------------------------------
2832       -- 3.3.2  Number Declaration --
2833       -------------------------------
2834
2835       --  NUMBER_DECLARATION ::=
2836       --    DEFINING_IDENTIFIER_LIST : constant := static_EXPRESSION;
2837
2838       --  Although the syntax allows multiple identifiers in the list, the
2839       --  semantics is as though successive declarations were given with
2840       --  identical expressions. To simplify semantic processing, the parser
2841       --  represents a multiple declaration case as a sequence of single
2842       --  declarations, using the More_Ids and Prev_Ids flags to preserve
2843       --  the original source form as described in the section on "Handling
2844       --  of Defining Identifier Lists".
2845
2846       --  N_Number_Declaration
2847       --  Sloc points to first identifier
2848       --  Defining_Identifier (Node1)
2849       --  Expression (Node3)
2850       --  More_Ids (Flag5) (set to False if no more identifiers in list)
2851       --  Prev_Ids (Flag6) (set to False if no previous identifiers in list)
2852
2853       ----------------------------------
2854       -- 3.4  Derived Type Definition --
2855       ----------------------------------
2856
2857       --  DERIVED_TYPE_DEFINITION ::=
2858       --    [abstract] [limited] new [NULL_EXCLUSION] parent_SUBTYPE_INDICATION
2859       --    [[and INTERFACE_LIST] RECORD_EXTENSION_PART]
2860
2861       --  Note: ABSTRACT, LIMITED and record extension part are not permitted
2862       --  in Ada 83 mode
2863
2864       --  Note: a record extension part is required if ABSTRACT is present
2865
2866       --  N_Derived_Type_Definition
2867       --  Sloc points to NEW
2868       --  Abstract_Present (Flag4)
2869       --  Null_Exclusion_Present (Flag11) (set to False if not present)
2870       --  Subtype_Indication (Node5)
2871       --  Record_Extension_Part (Node3) (set to Empty if not present)
2872       --  Limited_Present (Flag17)
2873       --  Task_Present (Flag5) set in task interfaces
2874       --  Protected_Present (Flag6) set in protected interfaces
2875       --  Synchronized_Present (Flag7) set in interfaces
2876       --  Interface_List (List2) (set to No_List if none)
2877       --  Interface_Present (Flag16) set in abstract interfaces
2878
2879       --  Note: Task_Present, Protected_Present, Synchronized_Present,
2880       --        Interface_List, and Interface_Present are used for abstract
2881       --        interfaces (see comments for INTERFACE_TYPE_DEFINITION).
2882
2883       ---------------------------
2884       -- 3.5  Range Constraint --
2885       ---------------------------
2886
2887       --  RANGE_CONSTRAINT ::= range RANGE
2888
2889       --  N_Range_Constraint
2890       --  Sloc points to RANGE
2891       --  Range_Expression (Node4)
2892
2893       ----------------
2894       -- 3.5  Range --
2895       ----------------
2896
2897       --  RANGE ::=
2898       --    RANGE_ATTRIBUTE_REFERENCE
2899       --  | SIMPLE_EXPRESSION .. SIMPLE_EXPRESSION
2900
2901       --  Note: the case of a range given as a range attribute reference
2902       --  appears directly in the tree as an attribute reference.
2903
2904       --  Note: the field name for a reference to a range is Range_Expression
2905       --  rather than Range, because range is a reserved keyword in Ada.
2906
2907       --  Note: the reason that this node has expression fields is that a
2908       --  range can appear as an operand of a membership test. The Etype
2909       --  field is the type of the range (we do NOT construct an implicit
2910       --  subtype to represent the range exactly).
2911
2912       --  N_Range
2913       --  Sloc points to ..
2914       --  Low_Bound (Node1)
2915       --  High_Bound (Node2)
2916       --  Includes_Infinities (Flag11)
2917       --  plus fields for expression
2918
2919       --  Note: if the range appears in a context, such as a subtype
2920       --  declaration, where range checks are required on one or both of
2921       --  the expression fields, then type conversion nodes are inserted
2922       --  to represent the required checks.
2923
2924       ----------------------------------------
2925       -- 3.5.1  Enumeration Type Definition --
2926       ----------------------------------------
2927
2928       --  ENUMERATION_TYPE_DEFINITION ::=
2929       --    (ENUMERATION_LITERAL_SPECIFICATION
2930       --      {, ENUMERATION_LITERAL_SPECIFICATION})
2931
2932       --  Note: the Literals field in the node described below is null for
2933       --  the case of the standard types CHARACTER and WIDE_CHARACTER, for
2934       --  which special processing handles these types as special cases.
2935
2936       --  N_Enumeration_Type_Definition
2937       --  Sloc points to left parenthesis
2938       --  Literals (List1) (Empty for CHARACTER or WIDE_CHARACTER)
2939       --  End_Label (Node4) (set to Empty if internally generated record)
2940
2941       ----------------------------------------------
2942       -- 3.5.1  Enumeration Literal Specification --
2943       ----------------------------------------------
2944
2945       --  ENUMERATION_LITERAL_SPECIFICATION ::=
2946       --    DEFINING_IDENTIFIER | DEFINING_CHARACTER_LITERAL
2947
2948       ---------------------------------------
2949       -- 3.5.1  Defining Character Literal --
2950       ---------------------------------------
2951
2952       --  DEFINING_CHARACTER_LITERAL ::= CHARACTER_LITERAL
2953
2954       --  A defining character literal is an entity, which has additional
2955       --  fields depending on the setting of the Ekind field. These
2956       --  additional fields are defined (and access subprograms declared)
2957       --  in package Einfo.
2958
2959       --  Note: N_Defining_Character_Literal is an extended node whose fields
2960       --  are deliberate layed out to match the layout of fields in an ordinary
2961       --  N_Character_Literal node allowing for easy alteration of a character
2962       --  literal node into a defining character literal node. For details, see
2963       --  Sinfo.CN.Change_Character_Literal_To_Defining_Character_Literal.
2964
2965       --  N_Defining_Character_Literal
2966       --  Sloc points to literal
2967       --  Chars (Name1) contains the Name_Id for the identifier
2968       --  Next_Entity (Node2-Sem)
2969       --  Scope (Node3-Sem)
2970       --  Etype (Node5-Sem)
2971
2972       ------------------------------------
2973       -- 3.5.4  Integer Type Definition --
2974       ------------------------------------
2975
2976       --  Note: there is an error in this rule in the latest version of the
2977       --  grammar, so we have retained the old rule pending clarification.
2978
2979       --  INTEGER_TYPE_DEFINITION ::=
2980       --    SIGNED_INTEGER_TYPE_DEFINITION
2981       --  | MODULAR_TYPE_DEFINITION
2982
2983       -------------------------------------------
2984       -- 3.5.4  Signed Integer Type Definition --
2985       -------------------------------------------
2986
2987       --  SIGNED_INTEGER_TYPE_DEFINITION ::=
2988       --    range static_SIMPLE_EXPRESSION .. static_SIMPLE_EXPRESSION
2989
2990       --  Note: the Low_Bound and High_Bound fields are set to Empty
2991       --  for integer types defined in package Standard.
2992
2993       --  N_Signed_Integer_Type_Definition
2994       --  Sloc points to RANGE
2995       --  Low_Bound (Node1)
2996       --  High_Bound (Node2)
2997
2998       ------------------------------------
2999       -- 3.5.4  Modular Type Definition --
3000       ------------------------------------
3001
3002       --  MODULAR_TYPE_DEFINITION ::= mod static_EXPRESSION
3003
3004       --  N_Modular_Type_Definition
3005       --  Sloc points to MOD
3006       --  Expression (Node3)
3007
3008       ---------------------------------
3009       -- 3.5.6  Real Type Definition --
3010       ---------------------------------
3011
3012       --  REAL_TYPE_DEFINITION ::=
3013       --    FLOATING_POINT_DEFINITION | FIXED_POINT_DEFINITION
3014
3015       --------------------------------------
3016       -- 3.5.7  Floating Point Definition --
3017       --------------------------------------
3018
3019       --  FLOATING_POINT_DEFINITION ::=
3020       --    digits static_SIMPLE_EXPRESSION [REAL_RANGE_SPECIFICATION]
3021
3022       --  Note: The Digits_Expression and Real_Range_Specifications fields
3023       --  are set to Empty for floating-point types declared in Standard.
3024
3025       --  N_Floating_Point_Definition
3026       --  Sloc points to DIGITS
3027       --  Digits_Expression (Node2)
3028       --  Real_Range_Specification (Node4) (set to Empty if not present)
3029
3030       -------------------------------------
3031       -- 3.5.7  Real Range Specification --
3032       -------------------------------------
3033
3034       --  REAL_RANGE_SPECIFICATION ::=
3035       --    range static_SIMPLE_EXPRESSION .. static_SIMPLE_EXPRESSION
3036
3037       --  N_Real_Range_Specification
3038       --  Sloc points to RANGE
3039       --  Low_Bound (Node1)
3040       --  High_Bound (Node2)
3041
3042       -----------------------------------
3043       -- 3.5.9  Fixed Point Definition --
3044       -----------------------------------
3045
3046       --  FIXED_POINT_DEFINITION ::=
3047       --    ORDINARY_FIXED_POINT_DEFINITION | DECIMAL_FIXED_POINT_DEFINITION
3048
3049       --------------------------------------------
3050       -- 3.5.9  Ordinary Fixed Point Definition --
3051       --------------------------------------------
3052
3053       --  ORDINARY_FIXED_POINT_DEFINITION ::=
3054       --    delta static_EXPRESSION REAL_RANGE_SPECIFICATION
3055
3056       --  Note: In Ada 83, the EXPRESSION must be a SIMPLE_EXPRESSION
3057
3058       --  N_Ordinary_Fixed_Point_Definition
3059       --  Sloc points to DELTA
3060       --  Delta_Expression (Node3)
3061       --  Real_Range_Specification (Node4)
3062
3063       -------------------------------------------
3064       -- 3.5.9  Decimal Fixed Point Definition --
3065       -------------------------------------------
3066
3067       --  DECIMAL_FIXED_POINT_DEFINITION ::=
3068       --    delta static_EXPRESSION
3069       --      digits static_EXPRESSION [REAL_RANGE_SPECIFICATION]
3070
3071       --  Note: decimal types are not permitted in Ada 83 mode
3072
3073       --  N_Decimal_Fixed_Point_Definition
3074       --  Sloc points to DELTA
3075       --  Delta_Expression (Node3)
3076       --  Digits_Expression (Node2)
3077       --  Real_Range_Specification (Node4) (set to Empty if not present)
3078
3079       ------------------------------
3080       -- 3.5.9  Digits Constraint --
3081       ------------------------------
3082
3083       --  DIGITS_CONSTRAINT ::=
3084       --    digits static_EXPRESSION [RANGE_CONSTRAINT]
3085
3086       --  Note: in Ada 83, the EXPRESSION must be a SIMPLE_EXPRESSION
3087       --  Note: in Ada 95, reduced accuracy subtypes are obsolescent
3088
3089       --  N_Digits_Constraint
3090       --  Sloc points to DIGITS
3091       --  Digits_Expression (Node2)
3092       --  Range_Constraint (Node4) (set to Empty if not present)
3093
3094       --------------------------------
3095       -- 3.6  Array Type Definition --
3096       --------------------------------
3097
3098       --  ARRAY_TYPE_DEFINITION ::=
3099       --    UNCONSTRAINED_ARRAY_DEFINITION | CONSTRAINED_ARRAY_DEFINITION
3100
3101       -----------------------------------------
3102       -- 3.6  Unconstrained Array Definition --
3103       -----------------------------------------
3104
3105       --  UNCONSTRAINED_ARRAY_DEFINITION ::=
3106       --    array (INDEX_SUBTYPE_DEFINITION {, INDEX_SUBTYPE_DEFINITION}) of
3107       --      COMPONENT_DEFINITION
3108
3109       --  Note: dimensionality of array is indicated by number of entries in
3110       --  the Subtype_Marks list, which has one entry for each dimension.
3111
3112       --  N_Unconstrained_Array_Definition
3113       --  Sloc points to ARRAY
3114       --  Subtype_Marks (List2)
3115       --  Component_Definition (Node4)
3116
3117       -----------------------------------
3118       -- 3.6  Index Subtype Definition --
3119       -----------------------------------
3120
3121       --  INDEX_SUBTYPE_DEFINITION ::= SUBTYPE_MARK range <>
3122
3123       --  There is no explicit node in the tree for an index subtype
3124       --  definition since the N_Unconstrained_Array_Definition node
3125       --  incorporates the type marks which appear in this context.
3126
3127       ---------------------------------------
3128       -- 3.6  Constrained Array Definition --
3129       ---------------------------------------
3130
3131       --  CONSTRAINED_ARRAY_DEFINITION ::=
3132       --    array (DISCRETE_SUBTYPE_DEFINITION
3133       --      {, DISCRETE_SUBTYPE_DEFINITION})
3134       --        of COMPONENT_DEFINITION
3135
3136       --  Note: dimensionality of array is indicated by number of entries
3137       --  in the Discrete_Subtype_Definitions list, which has one entry
3138       --  for each dimension.
3139
3140       --  N_Constrained_Array_Definition
3141       --  Sloc points to ARRAY
3142       --  Discrete_Subtype_Definitions (List2)
3143       --  Component_Definition (Node4)
3144
3145       --  Note: although the language allows the full syntax for discrete
3146       --  subtype definitions (i.e. a discrete subtype indication or a range),
3147       --  in the generated tree, we always rewrite these as N_Range nodes.
3148
3149       --------------------------------------
3150       -- 3.6  Discrete Subtype Definition --
3151       --------------------------------------
3152
3153       --  DISCRETE_SUBTYPE_DEFINITION ::=
3154       --    discrete_SUBTYPE_INDICATION | RANGE
3155
3156       -------------------------------
3157       -- 3.6  Component Definition --
3158       -------------------------------
3159
3160       --  COMPONENT_DEFINITION ::=
3161       --    [aliased] [NULL_EXCLUSION] SUBTYPE_INDICATION | ACCESS_DEFINITION
3162
3163       --  Note: although the syntax does not permit a component definition to
3164       --  be an anonymous array (and the parser will diagnose such an attempt
3165       --  with an appropriate message), it is possible for anonymous arrays
3166       --  to appear as component definitions. The semantics and back end handle
3167       --  this case properly, and the expander in fact generates such cases.
3168       --  Access_Definition is an optional field that gives support to
3169       --  Ada 2005 (AI-230). The parser generates nodes that have either the
3170       --  Subtype_Indication field or else the Access_Definition field.
3171
3172       --  N_Component_Definition
3173       --  Sloc points to ALIASED, ACCESS or to first token of subtype mark
3174       --  Aliased_Present (Flag4)
3175       --  Null_Exclusion_Present (Flag11)
3176       --  Subtype_Indication (Node5) (set to Empty if not present)
3177       --  Access_Definition (Node3) (set to Empty if not present)
3178
3179       -----------------------------
3180       -- 3.6.1  Index Constraint --
3181       -----------------------------
3182
3183       --  INDEX_CONSTRAINT ::= (DISCRETE_RANGE {, DISCRETE_RANGE})
3184
3185       --  It is not in general possible to distinguish between discriminant
3186       --  constraints and index constraints at parse time, since a simple
3187       --  name could be either the subtype mark of a discrete range, or an
3188       --  expression in a discriminant association with no name. Either
3189       --  entry appears simply as the name, and the semantic parse must
3190       --  distinguish between the two cases. Thus we use a common tree
3191       --  node format for both of these constraint types.
3192
3193       --  See Discriminant_Constraint for format of node
3194
3195       ---------------------------
3196       -- 3.6.1  Discrete Range --
3197       ---------------------------
3198
3199       --  DISCRETE_RANGE ::= discrete_SUBTYPE_INDICATION | RANGE
3200
3201       ----------------------------
3202       -- 3.7  Discriminant Part --
3203       ----------------------------
3204
3205       --  DISCRIMINANT_PART ::=
3206       --    UNKNOWN_DISCRIMINANT_PART | KNOWN_DISCRIMINANT_PART
3207
3208       ------------------------------------
3209       -- 3.7  Unknown Discriminant Part --
3210       ------------------------------------
3211
3212       --  UNKNOWN_DISCRIMINANT_PART ::= (<>)
3213
3214       --  Note: unknown discriminant parts are not permitted in Ada 83 mode
3215
3216       --  There is no explicit node in the tree for an unknown discriminant
3217       --  part. Instead the Unknown_Discriminants_Present flag is set in the
3218       --  parent node.
3219
3220       ----------------------------------
3221       -- 3.7  Known Discriminant Part --
3222       ----------------------------------
3223
3224       --  KNOWN_DISCRIMINANT_PART ::=
3225       --    (DISCRIMINANT_SPECIFICATION {; DISCRIMINANT_SPECIFICATION})
3226
3227       -------------------------------------
3228       -- 3.7  Discriminant Specification --
3229       -------------------------------------
3230
3231       --  DISCRIMINANT_SPECIFICATION ::=
3232       --    DEFINING_IDENTIFIER_LIST : [NULL_EXCLUSION] SUBTYPE_MARK
3233       --      [:= DEFAULT_EXPRESSION]
3234       --  | DEFINING_IDENTIFIER_LIST : ACCESS_DEFINITION
3235       --      [:= DEFAULT_EXPRESSION]
3236
3237       --  Although the syntax allows multiple identifiers in the list, the
3238       --  semantics is as though successive specifications were given with
3239       --  identical type definition and expression components. To simplify
3240       --  semantic processing, the parser represents a multiple declaration
3241       --  case as a sequence of single specifications, using the More_Ids and
3242       --  Prev_Ids flags to preserve the original source form as described
3243       --  in the section on "Handling of Defining Identifier Lists".
3244
3245       --  N_Discriminant_Specification
3246       --  Sloc points to first identifier
3247       --  Defining_Identifier (Node1)
3248       --  Null_Exclusion_Present (Flag11)
3249       --  Discriminant_Type (Node5) subtype mark or access parameter definition
3250       --  Expression (Node3) (set to Empty if no default expression)
3251       --  More_Ids (Flag5) (set to False if no more identifiers in list)
3252       --  Prev_Ids (Flag6) (set to False if no previous identifiers in list)
3253
3254       -----------------------------
3255       -- 3.7  Default Expression --
3256       -----------------------------
3257
3258       --  DEFAULT_EXPRESSION ::= EXPRESSION
3259
3260       ------------------------------------
3261       -- 3.7.1  Discriminant Constraint --
3262       ------------------------------------
3263
3264       --  DISCRIMINANT_CONSTRAINT ::=
3265       --    (DISCRIMINANT_ASSOCIATION {, DISCRIMINANT_ASSOCIATION})
3266
3267       --  It is not in general possible to distinguish between discriminant
3268       --  constraints and index constraints at parse time, since a simple
3269       --  name could be either the subtype mark of a discrete range, or an
3270       --  expression in a discriminant association with no name. Either
3271       --  entry appears simply as the name, and the semantic parse must
3272       --  distinguish between the two cases. Thus we use a common tree
3273       --  node format for both of these constraint types.
3274
3275       --  N_Index_Or_Discriminant_Constraint
3276       --  Sloc points to left paren
3277       --  Constraints (List1) points to list of discrete ranges or
3278       --    discriminant associations
3279
3280       -------------------------------------
3281       -- 3.7.1  Discriminant Association --
3282       -------------------------------------
3283
3284       --  DISCRIMINANT_ASSOCIATION ::=
3285       --    [discriminant_SELECTOR_NAME
3286       --      {| discriminant_SELECTOR_NAME} =>] EXPRESSION
3287
3288       --  Note: a discriminant association that has no selector name list
3289       --  appears directly as an expression in the tree.
3290
3291       --  N_Discriminant_Association
3292       --  Sloc points to first token of discriminant association
3293       --  Selector_Names (List1) (always non-empty, since if no selector
3294       --   names are present, this node is not used, see comment above)
3295       --  Expression (Node3)
3296
3297       ---------------------------------
3298       -- 3.8  Record Type Definition --
3299       ---------------------------------
3300
3301       --  RECORD_TYPE_DEFINITION ::=
3302       --    [[abstract] tagged] [limited] RECORD_DEFINITION
3303
3304       --  Note: ABSTRACT, TAGGED, LIMITED are not permitted in Ada 83 mode
3305
3306       --  There is no explicit node in the tree for a record type definition.
3307       --  Instead the flags for Tagged_Present and Limited_Present appear in
3308       --  the N_Record_Definition node for a record definition appearing in
3309       --  the context of a record type definition.
3310
3311       ----------------------------
3312       -- 3.8  Record Definition --
3313       ----------------------------
3314
3315       --  RECORD_DEFINITION ::=
3316       --    record
3317       --      COMPONENT_LIST
3318       --    end record
3319       --  | null record
3320
3321       --  Note: the Abstract_Present, Tagged_Present and Limited_Present
3322       --  flags appear only for a record definition appearing in a record
3323       --  type definition.
3324
3325       --  Note: the NULL RECORD case is not permitted in Ada 83
3326
3327       --  N_Record_Definition
3328       --  Sloc points to RECORD or NULL
3329       --  End_Label (Node4) (set to Empty if internally generated record)
3330       --  Abstract_Present (Flag4)
3331       --  Tagged_Present (Flag15)
3332       --  Limited_Present (Flag17)
3333       --  Component_List (Node1) empty in null record case
3334       --  Null_Present (Flag13) set in null record case
3335       --  Task_Present (Flag5) set in task interfaces
3336       --  Protected_Present (Flag6) set in protected interfaces
3337       --  Synchronized_Present (Flag7) set in interfaces
3338       --  Interface_Present (Flag16) set in abstract interfaces
3339       --  Interface_List (List2) (set to No_List if none)
3340
3341       --  Note: Task_Present, Protected_Present, Synchronized _Present,
3342       --        Interface_List and Interface_Present are used for abstract
3343       --        interfaces (see comments for INTERFACE_TYPE_DEFINITION).
3344
3345       -------------------------
3346       -- 3.8  Component List --
3347       -------------------------
3348
3349       --  COMPONENT_LIST ::=
3350       --    COMPONENT_ITEM {COMPONENT_ITEM}
3351       --  | {COMPONENT_ITEM} VARIANT_PART
3352       --  | null;
3353
3354       --  N_Component_List
3355       --  Sloc points to first token of component list
3356       --  Component_Items (List3)
3357       --  Variant_Part (Node4) (set to Empty if no variant part)
3358       --  Null_Present (Flag13)
3359
3360       -------------------------
3361       -- 3.8  Component Item --
3362       -------------------------
3363
3364       --  COMPONENT_ITEM ::= COMPONENT_DECLARATION | REPRESENTATION_CLAUSE
3365
3366       --  Note: A component item can also be a pragma, and in the tree
3367       --  that is obtained after semantic processing, a component item
3368       --  can be an N_Null node resulting from a non-recognized pragma.
3369
3370       --------------------------------
3371       -- 3.8  Component Declaration --
3372       --------------------------------
3373
3374       --  COMPONENT_DECLARATION ::=
3375       --    DEFINING_IDENTIFIER_LIST : COMPONENT_DEFINITION
3376       --      [:= DEFAULT_EXPRESSION]
3377       --        [ASPECT_SPECIFICATIONS];
3378
3379       --  Note: although the syntax does not permit a component definition to
3380       --  be an anonymous array (and the parser will diagnose such an attempt
3381       --  with an appropriate message), it is possible for anonymous arrays
3382       --  to appear as component definitions. The semantics and back end handle
3383       --  this case properly, and the expander in fact generates such cases.
3384
3385       --  Although the syntax allows multiple identifiers in the list, the
3386       --  semantics is as though successive declarations were given with the
3387       --  same component definition and expression components. To simplify
3388       --  semantic processing, the parser represents a multiple declaration
3389       --  case as a sequence of single declarations, using the More_Ids and
3390       --  Prev_Ids flags to preserve the original source form as described
3391       --  in the section on "Handling of Defining Identifier Lists".
3392
3393       --  N_Component_Declaration
3394       --  Sloc points to first identifier
3395       --  Defining_Identifier (Node1)
3396       --  Component_Definition (Node4)
3397       --  Expression (Node3) (set to Empty if no default expression)
3398       --  More_Ids (Flag5) (set to False if no more identifiers in list)
3399       --  Prev_Ids (Flag6) (set to False if no previous identifiers in list)
3400
3401       -------------------------
3402       -- 3.8.1  Variant Part --
3403       -------------------------
3404
3405       --  VARIANT_PART ::=
3406       --    case discriminant_DIRECT_NAME is
3407       --      VARIANT {VARIANT}
3408       --    end case;
3409
3410       --  Note: the variants list can contain pragmas as well as variants.
3411       --  In a properly formed program there is at least one variant.
3412
3413       --  N_Variant_Part
3414       --  Sloc points to CASE
3415       --  Name (Node2)
3416       --  Variants (List1)
3417
3418       --------------------
3419       -- 3.8.1  Variant --
3420       --------------------
3421
3422       --  VARIANT ::=
3423       --    when DISCRETE_CHOICE_LIST =>
3424       --      COMPONENT_LIST
3425
3426       --  N_Variant
3427       --  Sloc points to WHEN
3428       --  Discrete_Choices (List4)
3429       --  Component_List (Node1)
3430       --  Enclosing_Variant (Node2-Sem)
3431       --  Present_Expr (Uint3-Sem)
3432       --  Dcheck_Function (Node5-Sem)
3433       --  Has_SP_Choice (Flag15-Sem)
3434
3435       --  Note: in the list of Discrete_Choices, the tree passed to the back
3436       --  end does not have choice entries corresponding to names of statically
3437       --  predicated subtypes. Such entries are always expanded out to the list
3438       --  of equivalent values or ranges. The ASIS tree generated in -gnatct
3439       --  mode also has this expansion, but done with a proper Rewrite call on
3440       --  the N_Variant node so that ASIS can properly retrieve the original.
3441
3442       ---------------------------------
3443       -- 3.8.1  Discrete Choice List --
3444       ---------------------------------
3445
3446       --  DISCRETE_CHOICE_LIST ::= DISCRETE_CHOICE {| DISCRETE_CHOICE}
3447
3448       ----------------------------
3449       -- 3.8.1  Discrete Choice --
3450       ----------------------------
3451
3452       --  DISCRETE_CHOICE ::= EXPRESSION | DISCRETE_RANGE | others
3453
3454       --  Note: in Ada 83 mode, the expression must be a simple expression
3455
3456       --  The only choice that appears explicitly is the OTHERS choice, as
3457       --  defined here. Other cases of discrete choice (expression and
3458       --  discrete range) appear directly. This production is also used
3459       --  for the OTHERS possibility of an exception choice.
3460
3461       --  Note: in accordance with the syntax, the parser does not check that
3462       --  OTHERS appears at the end on its own in a choice list context. This
3463       --  is a semantic check.
3464
3465       --  N_Others_Choice
3466       --  Sloc points to OTHERS
3467       --  Others_Discrete_Choices (List1-Sem)
3468       --  All_Others (Flag11-Sem)
3469
3470       ----------------------------------
3471       -- 3.9.1  Record Extension Part --
3472       ----------------------------------
3473
3474       --  RECORD_EXTENSION_PART ::= with RECORD_DEFINITION
3475
3476       --  Note: record extension parts are not permitted in Ada 83 mode
3477
3478       --------------------------------------
3479       -- 3.9.4  Interface Type Definition --
3480       --------------------------------------
3481
3482       --  INTERFACE_TYPE_DEFINITION ::=
3483       --    [limited | task | protected | synchronized]
3484       --    interface [interface_list]
3485
3486       --  Note: Interfaces are implemented with N_Record_Definition and
3487       --        N_Derived_Type_Definition nodes because most of the support
3488       --        for the analysis of abstract types has been reused to
3489       --        analyze abstract interfaces.
3490
3491       ----------------------------------
3492       -- 3.10  Access Type Definition --
3493       ----------------------------------
3494
3495       --  ACCESS_TYPE_DEFINITION ::=
3496       --    ACCESS_TO_OBJECT_DEFINITION
3497       --  | ACCESS_TO_SUBPROGRAM_DEFINITION
3498
3499       --------------------------
3500       -- 3.10  Null Exclusion --
3501       --------------------------
3502
3503       --  NULL_EXCLUSION ::= not null
3504
3505       ---------------------------------------
3506       -- 3.10  Access To Object Definition --
3507       ---------------------------------------
3508
3509       --  ACCESS_TO_OBJECT_DEFINITION ::=
3510       --    [NULL_EXCLUSION] access [GENERAL_ACCESS_MODIFIER]
3511       --    SUBTYPE_INDICATION
3512
3513       --  N_Access_To_Object_Definition
3514       --  Sloc points to ACCESS
3515       --  All_Present (Flag15)
3516       --  Null_Exclusion_Present (Flag11)
3517       --  Null_Excluding_Subtype (Flag16)
3518       --  Subtype_Indication (Node5)
3519       --  Constant_Present (Flag17)
3520
3521       -----------------------------------
3522       -- 3.10  General Access Modifier --
3523       -----------------------------------
3524
3525       --  GENERAL_ACCESS_MODIFIER ::= all | constant
3526
3527       --  Note: general access modifiers are not permitted in Ada 83 mode
3528
3529       --  There is no explicit node in the tree for general access modifier.
3530       --  Instead the All_Present or Constant_Present flags are set in the
3531       --  parent node.
3532
3533       -------------------------------------------
3534       -- 3.10  Access To Subprogram Definition --
3535       -------------------------------------------
3536
3537       --  ACCESS_TO_SUBPROGRAM_DEFINITION
3538       --    [NULL_EXCLUSION] access [protected] procedure PARAMETER_PROFILE
3539       --  | [NULL_EXCLUSION] access [protected] function
3540       --    PARAMETER_AND_RESULT_PROFILE
3541
3542       --  Note: access to subprograms are not permitted in Ada 83 mode
3543
3544       --  N_Access_Function_Definition
3545       --  Sloc points to ACCESS
3546       --  Null_Exclusion_Present (Flag11)
3547       --  Null_Exclusion_In_Return_Present (Flag14)
3548       --  Protected_Present (Flag6)
3549       --  Parameter_Specifications (List3) (set to No_List if no formal part)
3550       --  Result_Definition (Node4) result subtype (subtype mark or access def)
3551
3552       --  N_Access_Procedure_Definition
3553       --  Sloc points to ACCESS
3554       --  Null_Exclusion_Present (Flag11)
3555       --  Protected_Present (Flag6)
3556       --  Parameter_Specifications (List3) (set to No_List if no formal part)
3557
3558       -----------------------------
3559       -- 3.10  Access Definition --
3560       -----------------------------
3561
3562       --  ACCESS_DEFINITION ::=
3563       --    [NULL_EXCLUSION] access [GENERAL_ACCESS_MODIFIER] SUBTYPE_MARK
3564       --  | ACCESS_TO_SUBPROGRAM_DEFINITION
3565
3566       --  Note: access to subprograms are an Ada 2005 (AI-254) extension
3567
3568       --  N_Access_Definition
3569       --  Sloc points to ACCESS
3570       --  Null_Exclusion_Present (Flag11)
3571       --  All_Present (Flag15)
3572       --  Constant_Present (Flag17)
3573       --  Subtype_Mark (Node4)
3574       --  Access_To_Subprogram_Definition (Node3) (set to Empty if not present)
3575
3576       -----------------------------------------
3577       -- 3.10.1  Incomplete Type Declaration --
3578       -----------------------------------------
3579
3580       --  INCOMPLETE_TYPE_DECLARATION ::=
3581       --    type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
3582
3583       --  N_Incomplete_Type_Declaration
3584       --  Sloc points to TYPE
3585       --  Defining_Identifier (Node1)
3586       --  Discriminant_Specifications (List4) (set to No_List if no
3587       --   discriminant part, or if the discriminant part is an
3588       --   unknown discriminant part)
3589       --  Premature_Use (Node5-Sem) used for improved diagnostics.
3590       --  Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
3591       --  Tagged_Present (Flag15)
3592
3593       ----------------------------
3594       -- 3.11  Declarative Part --
3595       ----------------------------
3596
3597       --  DECLARATIVE_PART ::= {DECLARATIVE_ITEM}
3598
3599       --  Note: although the parser enforces the syntactic requirement that
3600       --  a declarative part can contain only declarations, the semantic
3601       --  processing may add statements to the list of actions in a
3602       --  declarative part, so the code generator should be prepared
3603       --  to accept a statement in this position.
3604
3605       ----------------------------
3606       -- 3.11  Declarative Item --
3607       ----------------------------
3608
3609       --  DECLARATIVE_ITEM ::= BASIC_DECLARATIVE_ITEM | BODY
3610
3611       ----------------------------------
3612       -- 3.11  Basic Declarative Item --
3613       ----------------------------------
3614
3615       --  BASIC_DECLARATIVE_ITEM ::=
3616       --    BASIC_DECLARATION | REPRESENTATION_CLAUSE | USE_CLAUSE
3617
3618       ----------------
3619       -- 3.11  Body --
3620       ----------------
3621
3622       --  BODY ::= PROPER_BODY | BODY_STUB
3623
3624       -----------------------
3625       -- 3.11  Proper Body --
3626       -----------------------
3627
3628       --  PROPER_BODY ::=
3629       --    SUBPROGRAM_BODY | PACKAGE_BODY | TASK_BODY | PROTECTED_BODY
3630
3631       ---------------
3632       -- 4.1  Name --
3633       ---------------
3634
3635       --  NAME ::=
3636       --    DIRECT_NAME        | EXPLICIT_DEREFERENCE
3637       --  | INDEXED_COMPONENT  | SLICE
3638       --  | SELECTED_COMPONENT | ATTRIBUTE_REFERENCE
3639       --  | TYPE_CONVERSION    | FUNCTION_CALL
3640       --  | CHARACTER_LITERAL
3641
3642       ----------------------
3643       -- 4.1  Direct Name --
3644       ----------------------
3645
3646       --  DIRECT_NAME ::= IDENTIFIER | OPERATOR_SYMBOL
3647
3648       -----------------
3649       -- 4.1  Prefix --
3650       -----------------
3651
3652       --  PREFIX ::= NAME | IMPLICIT_DEREFERENCE
3653
3654       -------------------------------
3655       -- 4.1  Explicit Dereference --
3656       -------------------------------
3657
3658       --  EXPLICIT_DEREFERENCE ::= NAME . all
3659
3660       --  N_Explicit_Dereference
3661       --  Sloc points to ALL
3662       --  Prefix (Node3)
3663       --  Actual_Designated_Subtype (Node4-Sem)
3664       --  Atomic_Sync_Required (Flag14-Sem)
3665       --  Has_Dereference_Action (Flag13-Sem)
3666       --  plus fields for expression
3667
3668       -------------------------------
3669       -- 4.1  Implicit Dereference --
3670       -------------------------------
3671
3672       --  IMPLICIT_DEREFERENCE ::= NAME
3673
3674       ------------------------------
3675       -- 4.1.1  Indexed Component --
3676       ------------------------------
3677
3678       --  INDEXED_COMPONENT ::= PREFIX (EXPRESSION {, EXPRESSION})
3679
3680       --  Note: the parser may generate this node in some situations where it
3681       --  should be a function call. The semantic pass must correct this
3682       --  misidentification (which is inevitable at the parser level).
3683
3684       --  N_Indexed_Component
3685       --  Sloc contains a copy of the Sloc value of the Prefix
3686       --  Prefix (Node3)
3687       --  Expressions (List1)
3688       --  Generalized_Indexing (Node4-Sem)
3689       --  Atomic_Sync_Required (Flag14-Sem)
3690       --  plus fields for expression
3691
3692       --  Note: if any of the subscripts requires a range check, then the
3693       --  Do_Range_Check flag is set on the corresponding expression, with
3694       --  the index type being determined from the type of the Prefix, which
3695       --  references the array being indexed.
3696
3697       --  Note: in a fully analyzed and expanded indexed component node, and
3698       --  hence in any such node that gigi sees, if the prefix is an access
3699       --  type, then an explicit dereference operation has been inserted.
3700
3701       ------------------
3702       -- 4.1.2  Slice --
3703       ------------------
3704
3705       --  SLICE ::= PREFIX (DISCRETE_RANGE)
3706
3707       --  Note: an implicit subtype is created to describe the resulting
3708       --  type, so that the bounds of this type are the bounds of the slice.
3709
3710       --  N_Slice
3711       --  Sloc points to first token of prefix
3712       --  Prefix (Node3)
3713       --  Discrete_Range (Node4)
3714       --  plus fields for expression
3715
3716       -------------------------------
3717       -- 4.1.3  Selected Component --
3718       -------------------------------
3719
3720       --  SELECTED_COMPONENT ::= PREFIX . SELECTOR_NAME
3721
3722       --  Note: selected components that are semantically expanded names get
3723       --  changed during semantic processing into the separate N_Expanded_Name
3724       --  node. See description of this node in the section on semantic nodes.
3725
3726       --  N_Selected_Component
3727       --  Sloc points to the period
3728       --  Prefix (Node3)
3729       --  Selector_Name (Node2)
3730       --  Associated_Node (Node4-Sem)
3731       --  Do_Discriminant_Check (Flag1-Sem)
3732       --  Is_In_Discriminant_Check (Flag11-Sem)
3733       --  Is_Prefixed_Call (Flag17-Sem)
3734       --  Atomic_Sync_Required (Flag14-Sem)
3735       --  plus fields for expression
3736
3737       --------------------------
3738       -- 4.1.3  Selector Name --
3739       --------------------------
3740
3741       --  SELECTOR_NAME ::= IDENTIFIER | CHARACTER_LITERAL | OPERATOR_SYMBOL
3742
3743       --------------------------------
3744       -- 4.1.4  Attribute Reference --
3745       --------------------------------
3746
3747       --  ATTRIBUTE_REFERENCE ::= PREFIX ' ATTRIBUTE_DESIGNATOR
3748
3749       --  Note: the syntax is quite ambiguous at this point. Consider:
3750
3751       --    A'Length (X)  X is part of the attribute designator
3752       --    A'Pos (X)     X is an explicit actual parameter of function A'Pos
3753       --    A'Class (X)   X is the expression of a type conversion
3754
3755       --  It would be possible for the parser to distinguish these cases
3756       --  by looking at the attribute identifier. However, that would mean
3757       --  more work in introducing new implementation defined attributes,
3758       --  and also it would mean that special processing for attributes
3759       --  would be scattered around, instead of being centralized in the
3760       --  semantic routine that handles an N_Attribute_Reference node.
3761       --  Consequently, the parser in all the above cases stores the
3762       --  expression (X in these examples) as a single element list in
3763       --  in the Expressions field of the N_Attribute_Reference node.
3764
3765       --  Similarly, for attributes like Max which take two arguments,
3766       --  we store the two arguments as a two element list in the
3767       --  Expressions field. Of course it is clear at parse time that
3768       --  this case is really a function call with an attribute as the
3769       --  prefix, but it turns out to be convenient to handle the two
3770       --  argument case in a similar manner to the one argument case,
3771       --  and indeed in general the parser will accept any number of
3772       --  expressions in this position and store them as a list in the
3773       --  attribute reference node. This allows for future addition of
3774       --  attributes that take more than two arguments.
3775
3776       --  Note: named associates are not permitted in function calls where
3777       --  the function is an attribute (see RM 6.4(3)) so it is legitimate
3778       --  to skip the normal subprogram argument processing.
3779
3780       --  Note: for the attributes whose designators are technically keywords,
3781       --  i.e. digits, access, delta, range, the Attribute_Name field contains
3782       --  the corresponding name, even though no identifier is involved.
3783
3784       --  Note: the generated code may contain stream attributes applied to
3785       --  limited types for which no stream routines exist officially. In such
3786       --  case, the result is to use the stream attribute for the underlying
3787       --  full type, or in the case of a protected type, the components
3788       --  (including any discriminants) are merely streamed in order.
3789
3790       --  See Exp_Attr for a complete description of which attributes are
3791       --  passed onto Gigi, and which are handled entirely by the front end.
3792
3793       --  Gigi restriction: For the Pos attribute, the prefix cannot be
3794       --  a non-standard enumeration type or a nonzero/zero semantics
3795       --  boolean type, so the value is simply the stored representation.
3796
3797       --  Gigi requirement: For the Mechanism_Code attribute, if the prefix
3798       --  references a subprogram that is a renaming, then the front end must
3799       --  rewrite the attribute to refer directly to the renamed entity.
3800
3801       --  Note: syntactically the prefix of an attribute reference must be a
3802       --  name, and this (somewhat artificial) requirement is enforced by the
3803       --  parser. However, for many attributes, such as 'Valid, it is quite
3804       --  reasonable to apply the attribute to any value, and hence to any
3805       --  expression. Internally in the tree, the prefix is an expression which
3806       --  does not have to be a name, and this is handled fine by the semantic
3807       --  analysis and expansion, and back ends. This arises for the case of
3808       --  attribute references built by the expander (e.g. 'Valid for the case
3809       --  of an implicit validity check).
3810
3811       --  Note: In generated code, the Address and Unrestricted_Access
3812       --  attributes can be applied to any expression, and the meaning is
3813       --  to create an object containing the value (the object is in the
3814       --  current stack frame), and pass the address of this value. If the
3815       --  Must_Be_Byte_Aligned flag is set, then the object whose address
3816       --  is taken must be on a byte (storage unit) boundary, and if it is
3817       --  not (or may not be), then the generated code must create a copy
3818       --  that is byte aligned, and pass the address of this copy.
3819
3820       --  N_Attribute_Reference
3821       --  Sloc points to apostrophe
3822       --  Prefix (Node3) (general expression, see note above)
3823       --  Attribute_Name (Name2) identifier name from attribute designator
3824       --  Expressions (List1) (set to No_List if no associated expressions)
3825       --  Entity (Node4-Sem) used if the attribute yields a type
3826       --  Associated_Node (Node4-Sem)
3827       --  Do_Overflow_Check (Flag17-Sem)
3828       --  Header_Size_Added (Flag11-Sem)
3829       --  Must_Be_Byte_Aligned (Flag14-Sem)
3830       --  Non_Aliased_Prefix (Flag18-Sem)
3831       --  Redundant_Use (Flag13-Sem)
3832
3833       --  plus fields for expression
3834
3835       --  Note: in Modify_Tree_For_C mode, Max and Min attributes are expanded
3836       --  into equivalent if expressions, properly taking care of side effects.
3837
3838       ---------------------------------
3839       -- 4.1.4  Attribute Designator --
3840       ---------------------------------
3841
3842       --  ATTRIBUTE_DESIGNATOR ::=
3843       --    IDENTIFIER [(static_EXPRESSION)]
3844       --  | access | delta | digits
3845
3846       --  There is no explicit node in the tree for an attribute designator.
3847       --  Instead the Attribute_Name and Expressions fields of the parent
3848       --  node (N_Attribute_Reference node) hold the information.
3849
3850       --  Note: if ACCESS, DELTA or DIGITS appears in an attribute
3851       --  designator, then they are treated as identifiers internally
3852       --  rather than the keywords of the same name.
3853
3854       --------------------------------------
3855       -- 4.1.4  Range Attribute Reference --
3856       --------------------------------------
3857
3858       --  RANGE_ATTRIBUTE_REFERENCE ::= PREFIX ' RANGE_ATTRIBUTE_DESIGNATOR
3859
3860       --  A range attribute reference is represented in the tree using the
3861       --  normal N_Attribute_Reference node.
3862
3863       ---------------------------------------
3864       -- 4.1.4  Range Attribute Designator --
3865       ---------------------------------------
3866
3867       --  RANGE_ATTRIBUTE_DESIGNATOR ::= Range [(static_EXPRESSION)]
3868
3869       --  A range attribute designator is represented in the tree using the
3870       --  normal N_Attribute_Reference node.
3871
3872       --------------------
3873       -- 4.3  Aggregate --
3874       --------------------
3875
3876       --  AGGREGATE ::=
3877       --    RECORD_AGGREGATE | EXTENSION_AGGREGATE | ARRAY_AGGREGATE
3878
3879       -----------------------------
3880       -- 4.3.1  Record Aggregate --
3881       -----------------------------
3882
3883       --  RECORD_AGGREGATE ::= (RECORD_COMPONENT_ASSOCIATION_LIST)
3884
3885       --  N_Aggregate
3886       --  Sloc points to left parenthesis
3887       --  Expressions (List1) (set to No_List if none or null record case)
3888       --  Component_Associations (List2) (set to No_List if none)
3889       --  Null_Record_Present (Flag17)
3890       --  Aggregate_Bounds (Node3-Sem)
3891       --  Associated_Node (Node4-Sem)
3892       --  Compile_Time_Known_Aggregate (Flag18-Sem)
3893       --  Expansion_Delayed (Flag11-Sem)
3894       --  Has_Self_Reference (Flag13-Sem)
3895       --  plus fields for expression
3896
3897       --  Note: this structure is used for both record and array aggregates
3898       --  since the two cases are not separable by the parser. The parser
3899       --  makes no attempt to enforce consistency here, so it is up to the
3900       --  semantic phase to make sure that the aggregate is consistent (i.e.
3901       --  that it is not a "half-and-half" case that mixes record and array
3902       --  syntax. In particular, for a record aggregate, the expressions
3903       --  field will be set if there are positional associations.
3904
3905       --  Note: N_Aggregate is not used for all aggregates; in particular,
3906       --  there is a separate node kind for extension aggregates.
3907
3908       --  Note: gigi/gcc can handle array aggregates correctly providing that
3909       --  they are entirely positional, and the array subtype involved has a
3910       --  known at compile time length and is not bit packed, or a convention
3911       --  Fortran array with more than one dimension. If these conditions
3912       --  are not met, then the front end must translate the aggregate into
3913       --  an appropriate set of assignments into a temporary.
3914
3915       --  Note: for the record aggregate case, gigi/gcc can handle most cases
3916       --  of record aggregates, including those for packed, and rep-claused
3917       --  records, and also variant records, providing that there are no
3918       --  variable length fields whose size is not known at compile time,
3919       --  and providing that the aggregate is presented in fully named form.
3920
3921       --  The other situation in which array aggregates and record aggregates
3922       --  cannot be passed to the back end is if assignment to one or more
3923       --  components itself needs expansion, e.g. in the case of an assignment
3924       --  of an object of a controlled type. In such cases, the front end
3925       --  must expand the aggregate to a series of assignments, and apply
3926       --  the required expansion to the individual assignment statements.
3927
3928       ----------------------------------------------
3929       -- 4.3.1  Record Component Association List --
3930       ----------------------------------------------
3931
3932       --  RECORD_COMPONENT_ASSOCIATION_LIST ::=
3933       --     RECORD_COMPONENT_ASSOCIATION {, RECORD_COMPONENT_ASSOCIATION}
3934       --   | null record
3935
3936       --  There is no explicit node in the tree for a record component
3937       --  association list. Instead the Null_Record_Present flag is set in
3938       --  the parent node for the NULL RECORD case.
3939
3940       ------------------------------------------------------
3941       -- 4.3.1  Record Component Association (also 4.3.3) --
3942       ------------------------------------------------------
3943
3944       --  RECORD_COMPONENT_ASSOCIATION ::=
3945       --    [COMPONENT_CHOICE_LIST =>] EXPRESSION
3946
3947       --  N_Component_Association
3948       --  Sloc points to first selector name
3949       --  Choices (List1)
3950       --  Loop_Actions (List2-Sem)
3951       --  Expression (Node3) (empty if Box_Present)
3952       --  Box_Present (Flag15)
3953       --  Inherited_Discriminant (Flag13)
3954
3955       --  Note: this structure is used for both record component associations
3956       --  and array component associations, since the two cases aren't always
3957       --  separable by the parser. The choices list may represent either a
3958       --  list of selector names in the record aggregate case, or a list of
3959       --  discrete choices in the array aggregate case or an N_Others_Choice
3960       --  node (which appears as a singleton list). Box_Present gives support
3961       --  to Ada 2005 (AI-287).
3962
3963       ----------------------------------
3964       -- 4.3.1  Component Choice List --
3965       ----------------------------------
3966
3967       --  COMPONENT_CHOICE_LIST ::=
3968       --    component_SELECTOR_NAME {| component_SELECTOR_NAME}
3969       --  | others
3970
3971       --  The entries of a component choice list appear in the Choices list of
3972       --  the associated N_Component_Association, as either selector names, or
3973       --  as an N_Others_Choice node.
3974
3975       --------------------------------
3976       -- 4.3.2  Extension Aggregate --
3977       --------------------------------
3978
3979       --  EXTENSION_AGGREGATE ::=
3980       --    (ANCESTOR_PART with RECORD_COMPONENT_ASSOCIATION_LIST)
3981
3982       --  Note: extension aggregates are not permitted in Ada 83 mode
3983
3984       --  N_Extension_Aggregate
3985       --  Sloc points to left parenthesis
3986       --  Ancestor_Part (Node3)
3987       --  Associated_Node (Node4-Sem)
3988       --  Expressions (List1) (set to No_List if none or null record case)
3989       --  Component_Associations (List2) (set to No_List if none)
3990       --  Null_Record_Present (Flag17)
3991       --  Expansion_Delayed (Flag11-Sem)
3992       --  Has_Self_Reference (Flag13-Sem)
3993       --  plus fields for expression
3994
3995       --------------------------
3996       -- 4.3.2  Ancestor Part --
3997       --------------------------
3998
3999       --  ANCESTOR_PART ::= EXPRESSION | SUBTYPE_MARK
4000
4001       ----------------------------
4002       -- 4.3.3  Array Aggregate --
4003       ----------------------------
4004
4005       --  ARRAY_AGGREGATE ::=
4006       --    POSITIONAL_ARRAY_AGGREGATE | NAMED_ARRAY_AGGREGATE
4007
4008       ---------------------------------------
4009       -- 4.3.3  Positional Array Aggregate --
4010       ---------------------------------------
4011
4012       --  POSITIONAL_ARRAY_AGGREGATE ::=
4013       --    (EXPRESSION, EXPRESSION {, EXPRESSION})
4014       --  | (EXPRESSION {, EXPRESSION}, others => EXPRESSION)
4015
4016       --  See Record_Aggregate (4.3.1) for node structure
4017
4018       ----------------------------------
4019       -- 4.3.3  Named Array Aggregate --
4020       ----------------------------------
4021
4022       --  NAMED_ARRAY_AGGREGATE ::=
4023       --  | (ARRAY_COMPONENT_ASSOCIATION {, ARRAY_COMPONENT_ASSOCIATION})
4024
4025       --  See Record_Aggregate (4.3.1) for node structure
4026
4027       ----------------------------------------
4028       -- 4.3.3  Array Component Association --
4029       ----------------------------------------
4030
4031       --  ARRAY_COMPONENT_ASSOCIATION ::=
4032       --    DISCRETE_CHOICE_LIST => EXPRESSION
4033
4034       --  See Record_Component_Association (4.3.1) for node structure
4035
4036       --------------------------------------------------
4037       -- 4.4  Expression/Relation/Term/Factor/Primary --
4038       --------------------------------------------------
4039
4040       --  EXPRESSION ::=
4041       --    RELATION {LOGICAL_OPERATOR RELATION}
4042
4043       --  CHOICE_EXPRESSION ::=
4044       --    CHOICE_RELATION {LOGICAL_OPERATOR CHOICE_RELATION}
4045
4046       --  CHOICE_RELATION ::=
4047       --    SIMPLE_EXPRESSION [RELATIONAL_OPERATOR SIMPLE_EXPRESSION]
4048
4049       --  RELATION ::=
4050       --    SIMPLE_EXPRESSION [not] in MEMBERSHIP_CHOICE_LIST
4051       --  | RAISE_EXPRESSION
4052
4053       --  MEMBERSHIP_CHOICE_LIST ::=
4054       --    MEMBERSHIP_CHOICE {'|' MEMBERSHIP CHOICE}
4055
4056       --  MEMBERSHIP_CHOICE ::=
4057       --    CHOICE_EXPRESSION | RANGE | SUBTYPE_MARK
4058
4059       --  LOGICAL_OPERATOR ::= and | and then | or | or else | xor
4060
4061       --  SIMPLE_EXPRESSION ::=
4062       --    [UNARY_ADDING_OPERATOR] TERM {BINARY_ADDING_OPERATOR TERM}
4063
4064       --  TERM ::= FACTOR {MULTIPLYING_OPERATOR FACTOR}
4065
4066       --  FACTOR ::= PRIMARY [** PRIMARY] | abs PRIMARY | not PRIMARY
4067
4068       --  No nodes are generated for any of these constructs. Instead, the
4069       --  node for the operator appears directly. When we refer to an
4070       --  expression in this description, we mean any of the possible
4071       --  constituent components of an expression (e.g. identifier is
4072       --  an example of an expression).
4073
4074       --  Note: the above syntax is that Ada 2012 syntax which restricts
4075       --  choice relations to simple expressions to avoid ambiguities in
4076       --  some contexts with set membership notation. It has been decided
4077       --  that in retrospect, the Ada 95 change allowing general expressions
4078       --  in this context was a mistake, so we have reverted to the above
4079       --  syntax in Ada 95 and Ada 2005 modes (the restriction to simple
4080       --  expressions was there in Ada 83 from the start).
4081
4082       ------------------
4083       -- 4.4  Primary --
4084       ------------------
4085
4086       --  PRIMARY ::=
4087       --    NUMERIC_LITERAL  | null
4088       --  | STRING_LITERAL   | AGGREGATE
4089       --  | NAME             | QUALIFIED_EXPRESSION
4090       --  | ALLOCATOR        | (EXPRESSION)
4091
4092       --  Usually there is no explicit node in the tree for primary. Instead
4093       --  the constituent (e.g. AGGREGATE) appears directly. There are two
4094       --  exceptions. First, there is an explicit node for a null primary.
4095
4096       --  N_Null
4097       --  Sloc points to NULL
4098       --  plus fields for expression
4099
4100       --  Second, the case of (EXPRESSION) is handled specially. Ada requires
4101       --  that the parser keep track of which subexpressions are enclosed
4102       --  in parentheses, and how many levels of parentheses are used. This
4103       --  information is required for optimization purposes, and also for
4104       --  some semantic checks (e.g. (((1))) in a procedure spec does not
4105       --  conform with ((((1)))) in the body).
4106
4107       --  The parentheses are recorded by keeping a Paren_Count field in every
4108       --  subexpression node (it is actually present in all nodes, but only
4109       --  used in subexpression nodes). This count records the number of
4110       --  levels of parentheses. If the number of levels in the source exceeds
4111       --  the maximum accommodated by this count, then the count is simply left
4112       --  at the maximum value. This means that there are some pathological
4113       --  cases of failure to detect conformance failures (e.g. an expression
4114       --  with 500 levels of parens will conform with one with 501 levels),
4115       --  but we do not need to lose sleep over this.
4116
4117       --  Historical note: in versions of GNAT prior to 1.75, there was a node
4118       --  type N_Parenthesized_Expression used to accurately record unlimited
4119       --  numbers of levels of parentheses. However, it turned out to be a
4120       --  real nuisance to have to take into account the possible presence of
4121       --  this node during semantic analysis, since basically parentheses have
4122       --  zero relevance to semantic analysis.
4123
4124       --  Note: the level of parentheses always present in things like
4125       --  aggregates does not count, only the parentheses in the primary
4126       --  (EXPRESSION) affect the setting of the Paren_Count field.
4127
4128       --  2nd Note: the contents of the Expression field must be ignored (i.e.
4129       --  treated as though it were Empty) if No_Initialization is set True.
4130
4131       --------------------------------------
4132       -- 4.5  Short-Circuit Control Forms --
4133       --------------------------------------
4134
4135       --  EXPRESSION ::=
4136       --    RELATION {and then RELATION} | RELATION {or else RELATION}
4137
4138       --  Gigi restriction: For both these control forms, the operand and
4139       --  result types are always Standard.Boolean. The expander inserts the
4140       --  required conversion operations where needed to ensure this is the
4141       --  case.
4142
4143       --  N_And_Then
4144       --  Sloc points to AND of AND THEN
4145       --  Left_Opnd (Node2)
4146       --  Right_Opnd (Node3)
4147       --  Actions (List1-Sem)
4148       --  plus fields for expression
4149
4150       --  N_Or_Else
4151       --  Sloc points to OR of OR ELSE
4152       --  Left_Opnd (Node2)
4153       --  Right_Opnd (Node3)
4154       --  Actions (List1-Sem)
4155       --  plus fields for expression
4156
4157       --  Note: The Actions field is used to hold actions associated with
4158       --  the right hand operand. These have to be treated specially since
4159       --  they are not unconditionally executed. See Insert_Actions for a
4160       --  more detailed description of how these actions are handled.
4161
4162       ---------------------------
4163       -- 4.5  Membership Tests --
4164       ---------------------------
4165
4166       --  RELATION ::=
4167       --    SIMPLE_EXPRESSION [not] in MEMBERSHIP_CHOICE_LIST
4168
4169       --  MEMBERSHIP_CHOICE_LIST ::=
4170       --    MEMBERSHIP_CHOICE {'|' MEMBERSHIP CHOICE}
4171
4172       --  MEMBERSHIP_CHOICE ::=
4173       --    CHOICE_EXPRESSION | RANGE | SUBTYPE_MARK
4174
4175       --  Note: although the grammar above allows only a range or a subtype
4176       --  mark, the parser in fact will accept any simple expression in place
4177       --  of a subtype mark. This means that the semantic analyzer must be able
4178       --  to deal with, and diagnose a simple expression other than a name for
4179       --  the right operand. This simplifies error recovery in the parser.
4180
4181       --  The Alternatives field below is present only if there is more than
4182       --  one Membership_Choice present (which is legitimate only in Ada 2012
4183       --  mode) in which case Right_Opnd is Empty, and Alternatives contains
4184       --  the list of choices. In the tree passed to the back end, Alternatives
4185       --  is always No_List, and Right_Opnd is set (i.e. the expansion circuit
4186       --  expands out the complex set membership case using simple membership
4187       --  and equality operations).
4188
4189       --  Should we rename Alternatives here to Membership_Choices ???
4190
4191       --  N_In
4192       --  Sloc points to IN
4193       --  Left_Opnd (Node2)
4194       --  Right_Opnd (Node3)
4195       --  Alternatives (List4) (set to No_List if only one set alternative)
4196       --  No_Minimize_Eliminate (Flag17)
4197       --  plus fields for expression
4198
4199       --  N_Not_In
4200       --  Sloc points to NOT of NOT IN
4201       --  Left_Opnd (Node2)
4202       --  Right_Opnd (Node3)
4203       --  Alternatives (List4) (set to No_List if only one set alternative)
4204       --  No_Minimize_Eliminate (Flag17)
4205       --  plus fields for expression
4206
4207       --------------------
4208       -- 4.5  Operators --
4209       --------------------
4210
4211       --  LOGICAL_OPERATOR             ::=  and | or  | xor
4212
4213       --  RELATIONAL_OPERATOR          ::=  =   | /=  | <   | <= | > | >=
4214
4215       --  BINARY_ADDING_OPERATOR       ::=  +   |  -  | &
4216
4217       --  UNARY_ADDING_OPERATOR        ::=  +   |  -
4218
4219       --  MULTIPLYING_OPERATOR         ::=  *   |  /  | mod | rem
4220
4221       --  HIGHEST_PRECEDENCE_OPERATOR  ::=  **  | abs | not
4222
4223       --  Sprint syntax if Treat_Fixed_As_Integer is set:
4224
4225       --     x #* y
4226       --     x #/ y
4227       --     x #mod y
4228       --     x #rem y
4229
4230       --  Gigi restriction: For * / mod rem with fixed-point operands, Gigi
4231       --  will only be given nodes with the Treat_Fixed_As_Integer flag set.
4232       --  All handling of smalls for multiplication and division is handled
4233       --  by the front end (mod and rem result only from expansion). Gigi
4234       --  thus never needs to worry about small values (for other operators
4235       --  operating on fixed-point, e.g. addition, the small value does not
4236       --  have any semantic effect anyway, these are always integer operations.
4237
4238       --  Gigi restriction: For all operators taking Boolean operands, the
4239       --  type is always Standard.Boolean. The expander inserts the required
4240       --  conversion operations where needed to ensure this is the case.
4241
4242       --  N_Op_And
4243       --  Sloc points to AND
4244       --  Do_Length_Check (Flag4-Sem)
4245       --  plus fields for binary operator
4246       --  plus fields for expression
4247
4248       --  N_Op_Or
4249       --  Sloc points to OR
4250       --  Do_Length_Check (Flag4-Sem)
4251       --  plus fields for binary operator
4252       --  plus fields for expression
4253
4254       --  N_Op_Xor
4255       --  Sloc points to XOR
4256       --  Do_Length_Check (Flag4-Sem)
4257       --  plus fields for binary operator
4258       --  plus fields for expression
4259
4260       --  N_Op_Eq
4261       --  Sloc points to =
4262       --  plus fields for binary operator
4263       --  plus fields for expression
4264
4265       --  N_Op_Ne
4266       --  Sloc points to /=
4267       --  plus fields for binary operator
4268       --  plus fields for expression
4269
4270       --  N_Op_Lt
4271       --  Sloc points to <
4272       --  plus fields for binary operator
4273       --  plus fields for expression
4274
4275       --  N_Op_Le
4276       --  Sloc points to <=
4277       --  plus fields for binary operator
4278       --  plus fields for expression
4279
4280       --  N_Op_Gt
4281       --  Sloc points to >
4282       --  plus fields for binary operator
4283       --  plus fields for expression
4284
4285       --  N_Op_Ge
4286       --  Sloc points to >=
4287       --  plus fields for binary operator
4288       --  plus fields for expression
4289
4290       --  N_Op_Add
4291       --  Sloc points to + (binary)
4292       --  plus fields for binary operator
4293       --  plus fields for expression
4294
4295       --  N_Op_Subtract
4296       --  Sloc points to - (binary)
4297       --  plus fields for binary operator
4298       --  plus fields for expression
4299
4300       --  N_Op_Concat
4301       --  Sloc points to &
4302       --  Is_Component_Left_Opnd (Flag13-Sem)
4303       --  Is_Component_Right_Opnd (Flag14-Sem)
4304       --  plus fields for binary operator
4305       --  plus fields for expression
4306
4307       --  N_Op_Multiply
4308       --  Sloc points to *
4309       --  Treat_Fixed_As_Integer (Flag14-Sem)
4310       --  Rounded_Result (Flag18-Sem)
4311       --  plus fields for binary operator
4312       --  plus fields for expression
4313
4314       --  N_Op_Divide
4315       --  Sloc points to /
4316       --  Treat_Fixed_As_Integer (Flag14-Sem)
4317       --  Do_Division_Check (Flag13-Sem)
4318       --  Rounded_Result (Flag18-Sem)
4319       --  plus fields for binary operator
4320       --  plus fields for expression
4321
4322       --  N_Op_Mod
4323       --  Sloc points to MOD
4324       --  Treat_Fixed_As_Integer (Flag14-Sem)
4325       --  Do_Division_Check (Flag13-Sem)
4326       --  plus fields for binary operator
4327       --  plus fields for expression
4328
4329       --  N_Op_Rem
4330       --  Sloc points to REM
4331       --  Treat_Fixed_As_Integer (Flag14-Sem)
4332       --  Do_Division_Check (Flag13-Sem)
4333       --  plus fields for binary operator
4334       --  plus fields for expression
4335
4336       --  N_Op_Expon
4337       --  Is_Power_Of_2_For_Shift (Flag13-Sem)
4338       --  Sloc points to **
4339       --  plus fields for binary operator
4340       --  plus fields for expression
4341
4342       --  N_Op_Plus
4343       --  Sloc points to + (unary)
4344       --  plus fields for unary operator
4345       --  plus fields for expression
4346
4347       --  N_Op_Minus
4348       --  Sloc points to - (unary)
4349       --  plus fields for unary operator
4350       --  plus fields for expression
4351
4352       --  N_Op_Abs
4353       --  Sloc points to ABS
4354       --  plus fields for unary operator
4355       --  plus fields for expression
4356
4357       --  N_Op_Not
4358       --  Sloc points to NOT
4359       --  plus fields for unary operator
4360       --  plus fields for expression
4361
4362       --  See also shift operators in section B.2
4363
4364       --  Note on fixed-point operations passed to Gigi: For adding operators,
4365       --  the semantics is to treat these simply as integer operations, with
4366       --  the small values being ignored (the bounds are already stored in
4367       --  units of small, so that constraint checking works as usual). For the
4368       --  case of multiply/divide/rem/mod operations, Gigi will only see fixed
4369       --  point operands if the Treat_Fixed_As_Integer flag is set and will
4370       --  thus treat these nodes in identical manner, ignoring small values.
4371
4372       --  Note on equality/inequality tests for records. In the expanded tree,
4373       --  record comparisons are always expanded to be a series of component
4374       --  comparisons, so the back end will never see an equality or inequality
4375       --  operation with operands of a record type.
4376
4377       --  Note on overflow handling: When the overflow checking mode is set to
4378       --  MINIMIZED or ELIMINATED, nodes for signed arithmetic operations may
4379       --  be modified to use a larger type for the operands and result. In
4380       --  the case where the computed range exceeds that of Long_Long_Integer,
4381       --  and we are running in ELIMINATED mode, the operator node will be
4382       --  changed to be a call to the appropriate routine in System.Bignums.
4383
4384       --  Note: In Modify_Tree_For_C mode, we do not generate an N_Op_Mod node
4385       --  for signed integer types (since there is no equivalent operator in
4386       --  C). Instead we rewrite such an operation in terms of REM (which is
4387       --  % in C) and other C-available operators.
4388
4389       ------------------------------------
4390       -- 4.5.7  Conditional Expressions --
4391       ------------------------------------
4392
4393       --  CONDITIONAL_EXPRESSION ::= IF_EXPRESSION | CASE_EXPRESSION
4394
4395       --------------------------
4396       -- 4.5.7  If Expression --
4397       ----------------------------
4398
4399       --  IF_EXPRESSION ::=
4400       --    if CONDITION then DEPENDENT_EXPRESSION
4401       --                {elsif CONDITION then DEPENDENT_EXPRESSION}
4402       --                [else DEPENDENT_EXPRESSION]
4403
4404       --  DEPENDENT_EXPRESSION ::= EXPRESSION
4405
4406       --  Note: if we have (IF x1 THEN x2 ELSIF x3 THEN x4 ELSE x5) then it
4407       --  is represented as (IF x1 THEN x2 ELSE (IF x3 THEN x4 ELSE x5)) and
4408       --  the Is_Elsif flag is set on the inner if expression.
4409
4410       --  N_If_Expression
4411       --  Sloc points to IF or ELSIF keyword
4412       --  Expressions (List1)
4413       --  Then_Actions (List2-Sem)
4414       --  Else_Actions (List3-Sem)
4415       --  Is_Elsif (Flag13) (set if comes from ELSIF)
4416       --  Do_Overflow_Check (Flag17-Sem)
4417       --  plus fields for expression
4418
4419       --  Expressions here is a three-element list, whose first element is the
4420       --  condition, the second element is the dependent expression after THEN
4421       --  and the third element is the dependent expression after the ELSE
4422       --  (explicitly set to True if missing).
4423
4424       --  Note: the Then_Actions and Else_Actions fields are always set to
4425       --  No_List in the tree passed to the back end. These are used only
4426       --  for temporary processing purposes in the expander. Even though they
4427       --  are semantic fields, their parent pointers are set because analysis
4428       --  of actions nodes in those lists may generate additional actions that
4429       --  need to know their insertion point (for example for the creation of
4430       --  transient scopes).
4431
4432       --  Note: in the tree passed to the back end, if the result type is
4433       --  an unconstrained array, the if expression can only appears in the
4434       --  initializing expression of an object declaration (this avoids the
4435       --  back end having to create a variable length temporary on the fly).
4436
4437       ----------------------------
4438       -- 4.5.7  Case Expression --
4439       ----------------------------
4440
4441       --  CASE_EXPRESSION ::=
4442       --    case SELECTING_EXPRESSION is
4443       --      CASE_EXPRESSION_ALTERNATIVE
4444       --      {,CASE_EXPRESSION_ALTERNATIVE}
4445
4446       --  Note that the Alternatives cannot include pragmas (this contrasts
4447       --  with the situation of case statements where pragmas are allowed).
4448
4449       --  N_Case_Expression
4450       --  Sloc points to CASE
4451       --  Expression (Node3) (the selecting expression)
4452       --  Alternatives (List4) (the case expression alternatives)
4453       --  Do_Overflow_Check (Flag17-Sem)
4454
4455       ----------------------------------------
4456       -- 4.5.7  Case Expression Alternative --
4457       ----------------------------------------
4458
4459       --  CASE_EXPRESSION_ALTERNATIVE ::=
4460       --    when DISCRETE_CHOICE_LIST =>
4461       --      DEPENDENT_EXPRESSION
4462
4463       --  N_Case_Expression_Alternative
4464       --  Sloc points to WHEN
4465       --  Actions (List1)
4466       --  Discrete_Choices (List4)
4467       --  Expression (Node3)
4468       --  Has_SP_Choice (Flag15-Sem)
4469
4470       --  Note: The Actions field temporarily holds any actions associated with
4471       --  evaluation of the Expression. During expansion of the case expression
4472       --  these actions are wrapped into an N_Expressions_With_Actions node
4473       --  replacing the original expression.
4474
4475       --  Note: this node never appears in the tree passed to the back end,
4476       --  since the expander converts case expressions into case statements.
4477
4478       ---------------------------------
4479       -- 4.5.9 Quantified Expression --
4480       ---------------------------------
4481
4482       --  QUANTIFIED_EXPRESSION ::=
4483       --    for QUANTIFIER LOOP_PARAMETER_SPECIFICATION => PREDICATE
4484       --  | for QUANTIFIER ITERATOR_SPECIFICATION => PREDICATE
4485       --
4486       --  QUANTIFIER ::= all | some
4487
4488       --  At most one of (Iterator_Specification, Loop_Parameter_Specification)
4489       --  is present at a time, in which case the other one is empty.
4490
4491       --  N_Quantified_Expression
4492       --  Sloc points to FOR
4493       --  Iterator_Specification (Node2)
4494       --  Loop_Parameter_Specification (Node4)
4495       --  Condition (Node1)
4496       --  All_Present (Flag15)
4497
4498       --------------------------
4499       -- 4.6  Type Conversion --
4500       --------------------------
4501
4502       --  TYPE_CONVERSION ::=
4503       --    SUBTYPE_MARK (EXPRESSION) | SUBTYPE_MARK (NAME)
4504
4505       --  In the (NAME) case, the name is stored as the expression
4506
4507       --  Note: the parser never generates a type conversion node, since it
4508       --  looks like an indexed component which is generated by preference.
4509       --  The semantic pass must correct this misidentification.
4510
4511       --  Gigi handles conversions that involve no change in the root type,
4512       --  and also all conversions from integer to floating-point types.
4513       --  Conversions from floating-point to integer are only handled in
4514       --  the case where Float_Truncate flag set. Other conversions from
4515       --  floating-point to integer (involving rounding) and all conversions
4516       --  involving fixed-point types are handled by the expander.
4517
4518       --  Sprint syntax if Float_Truncate set: X^(Y)
4519       --  Sprint syntax if Conversion_OK set X?(Y)
4520       --  Sprint syntax if both flags set X?^(Y)
4521
4522       --  Note: If either the operand or result type is fixed-point, Gigi will
4523       --  only see a type conversion node with Conversion_OK set. The front end
4524       --  takes care of all handling of small's for fixed-point conversions.
4525
4526       --  N_Type_Conversion
4527       --  Sloc points to first token of subtype mark
4528       --  Subtype_Mark (Node4)
4529       --  Expression (Node3)
4530       --  Do_Discriminant_Check (Flag1-Sem)
4531       --  Do_Length_Check (Flag4-Sem)
4532       --  Float_Truncate (Flag11-Sem)
4533       --  Do_Tag_Check (Flag13-Sem)
4534       --  Conversion_OK (Flag14-Sem)
4535       --  Do_Overflow_Check (Flag17-Sem)
4536       --  Rounded_Result (Flag18-Sem)
4537       --  plus fields for expression
4538
4539       --  Note: if a range check is required, then the Do_Range_Check flag
4540       --  is set in the Expression with the check being done against the
4541       --  target type range (after the base type conversion, if any).
4542
4543       -------------------------------
4544       -- 4.7  Qualified Expression --
4545       -------------------------------
4546
4547       --  QUALIFIED_EXPRESSION ::=
4548       --    SUBTYPE_MARK ' (EXPRESSION) | SUBTYPE_MARK ' AGGREGATE
4549
4550       --  Note: the parentheses in the (EXPRESSION) case are deemed to enclose
4551       --  the expression, so the Expression field of this node always points
4552       --  to a parenthesized expression in this case (i.e. Paren_Count will
4553       --  always be non-zero for the referenced expression if it is not an
4554       --  aggregate).
4555
4556       --  N_Qualified_Expression
4557       --  Sloc points to apostrophe
4558       --  Subtype_Mark (Node4)
4559       --  Expression (Node3) expression or aggregate
4560       --  plus fields for expression
4561       --  Is_Qualified_Universal_Literal (Flag4-Sem)
4562
4563       --------------------
4564       -- 4.8  Allocator --
4565       --------------------
4566
4567       --  ALLOCATOR ::=
4568       --      new [SUBPOOL_SPECIFICATION] SUBTYPE_INDICATION
4569       --    | new [SUBPOOL_SPECIFICATION] QUALIFIED_EXPRESSION
4570       --
4571       --  SUBPOOL_SPECIFICATION ::= (subpool_handle_NAME)
4572
4573       --  Sprint syntax (when storage pool present)
4574       --    new xxx (storage_pool = pool)
4575       --  or
4576       --    new (subpool) xxx (storage_pool = pool)
4577
4578       --  N_Allocator
4579       --  Sloc points to NEW
4580       --  Expression (Node3) subtype indication or qualified expression
4581       --  Subpool_Handle_Name (Node4) (set to Empty if not present)
4582       --  Storage_Pool (Node1-Sem)
4583       --  Procedure_To_Call (Node2-Sem)
4584       --  Null_Exclusion_Present (Flag11)
4585       --  No_Initialization (Flag13-Sem)
4586       --  Is_Static_Coextension (Flag14-Sem)
4587       --  Do_Storage_Check (Flag17-Sem)
4588       --  Is_Dynamic_Coextension (Flag18-Sem)
4589       --  plus fields for expression
4590
4591       --  Note: like all nodes, the N_Allocator has the Comes_From_Source flag.
4592       --  This flag has a special function in conjunction with the restriction
4593       --  No_Implicit_Heap_Allocations, which will be triggered if this flag
4594       --  is not set. This means that if a source allocator is replaced with
4595       --  a constructed allocator, the Comes_From_Source flag should be copied
4596       --  to the newly created allocator.
4597
4598       ---------------------------------
4599       -- 5.1  Sequence Of Statements --
4600       ---------------------------------
4601
4602       --  SEQUENCE_OF_STATEMENTS ::= STATEMENT {STATEMENT}
4603
4604       --  Note: Although the parser will not accept a declaration as a
4605       --  statement, the semantic analyzer may insert declarations (e.g.
4606       --  declarations of implicit types needed for execution of other
4607       --  statements) into a sequence of statements, so the code generator
4608       --  should be prepared to accept a declaration where a statement is
4609       --  expected. Note also that pragmas can appear as statements.
4610
4611       --------------------
4612       -- 5.1  Statement --
4613       --------------------
4614
4615       --  STATEMENT ::=
4616       --    {LABEL} SIMPLE_STATEMENT | {LABEL} COMPOUND_STATEMENT
4617
4618       --  There is no explicit node in the tree for a statement. Instead, the
4619       --  individual statement appears directly. Labels are treated as a
4620       --  kind of statement, i.e. they are linked into a statement list at
4621       --  the point they appear, so the labeled statement appears following
4622       --  the label or labels in the statement list.
4623
4624       ---------------------------
4625       -- 5.1  Simple Statement --
4626       ---------------------------
4627
4628       --  SIMPLE_STATEMENT ::=        NULL_STATEMENT
4629       --  | ASSIGNMENT_STATEMENT    | EXIT_STATEMENT
4630       --  | GOTO_STATEMENT          | PROCEDURE_CALL_STATEMENT
4631       --  | SIMPLE_RETURN_STATEMENT | ENTRY_CALL_STATEMENT
4632       --  | REQUEUE_STATEMENT       | DELAY_STATEMENT
4633       --  | ABORT_STATEMENT         | RAISE_STATEMENT
4634       --  | CODE_STATEMENT
4635
4636       -----------------------------
4637       -- 5.1  Compound Statement --
4638       -----------------------------
4639
4640       --  COMPOUND_STATEMENT ::=
4641       --    IF_STATEMENT              | CASE_STATEMENT
4642       --  | LOOP_STATEMENT            | BLOCK_STATEMENT
4643       --  | EXTENDED_RETURN_STATEMENT
4644       --  | ACCEPT_STATEMENT          | SELECT_STATEMENT
4645
4646       -------------------------
4647       -- 5.1  Null Statement --
4648       -------------------------
4649
4650       --  NULL_STATEMENT ::= null;
4651
4652       --  N_Null_Statement
4653       --  Sloc points to NULL
4654
4655       ----------------
4656       -- 5.1  Label --
4657       ----------------
4658
4659       --  LABEL ::= <<label_STATEMENT_IDENTIFIER>>
4660
4661       --  Note that the occurrence of a label is not a defining identifier,
4662       --  but rather a referencing occurrence. The defining occurrence is
4663       --  in the implicit label declaration which occurs in the innermost
4664       --  enclosing block.
4665
4666       --  N_Label
4667       --  Sloc points to <<
4668       --  Identifier (Node1) direct name of statement identifier
4669       --  Exception_Junk (Flag8-Sem)
4670
4671       --  Note: Before Ada 2012, a label is always followed by a statement,
4672       --  and this is true in the tree even in Ada 2012 mode (the parser
4673       --  inserts a null statement marked with Comes_From_Source False).
4674
4675       -------------------------------
4676       -- 5.1  Statement Identifier --
4677       -------------------------------
4678
4679       --  STATEMENT_IDENTIFIER ::= DIRECT_NAME
4680
4681       --  The IDENTIFIER of a STATEMENT_IDENTIFIER shall be an identifier
4682       --  (not an OPERATOR_SYMBOL)
4683
4684       -------------------------------
4685       -- 5.2  Assignment Statement --
4686       -------------------------------
4687
4688       --  ASSIGNMENT_STATEMENT ::=
4689       --    variable_NAME := EXPRESSION;
4690
4691       --  N_Assignment_Statement
4692       --  Sloc points to :=
4693       --  Name (Node2)
4694       --  Expression (Node3)
4695       --  Do_Discriminant_Check (Flag1-Sem)
4696       --  Do_Tag_Check (Flag13-Sem)
4697       --  Do_Length_Check (Flag4-Sem)
4698       --  Forwards_OK (Flag5-Sem)
4699       --  Backwards_OK (Flag6-Sem)
4700       --  No_Ctrl_Actions (Flag7-Sem)
4701       --  Componentwise_Assignment (Flag14-Sem)
4702       --  Suppress_Assignment_Checks (Flag18-Sem)
4703
4704       --  Note: if a range check is required, then the Do_Range_Check flag
4705       --  is set in the Expression (right hand side), with the check being
4706       --  done against the type of the Name (left hand side).
4707
4708       --  Note: the back end places some restrictions on the form of the
4709       --  Expression field. If the object being assigned to is Atomic, then
4710       --  the Expression may not have the form of an aggregate (since this
4711       --  might cause the back end to generate separate assignments). In this
4712       --  case the front end must generate an extra temporary and initialize
4713       --  this temporary as required (the temporary itself is not atomic).
4714
4715       -----------------------
4716       -- 5.3  If Statement --
4717       -----------------------
4718
4719       --  IF_STATEMENT ::=
4720       --    if CONDITION then
4721       --      SEQUENCE_OF_STATEMENTS
4722       --    {elsif CONDITION then
4723       --      SEQUENCE_OF_STATEMENTS}
4724       --    [else
4725       --      SEQUENCE_OF_STATEMENTS]
4726       --    end if;
4727
4728       --  Gigi restriction: This expander ensures that the type of the
4729       --  Condition fields is always Standard.Boolean, even if the type
4730       --  in the source is some non-standard boolean type.
4731
4732       --  N_If_Statement
4733       --  Sloc points to IF
4734       --  Condition (Node1)
4735       --  Then_Statements (List2)
4736       --  Elsif_Parts (List3) (set to No_List if none present)
4737       --  Else_Statements (List4) (set to No_List if no else part present)
4738       --  End_Span (Uint5) (set to Uint_0 if expander generated)
4739       --  From_Conditional_Expression (Flag1-Sem)
4740
4741       --  N_Elsif_Part
4742       --  Sloc points to ELSIF
4743       --  Condition (Node1)
4744       --  Then_Statements (List2)
4745       --  Condition_Actions (List3-Sem)
4746
4747       --------------------
4748       -- 5.3  Condition --
4749       --------------------
4750
4751       --  CONDITION ::= boolean_EXPRESSION
4752
4753       -------------------------
4754       -- 5.4  Case Statement --
4755       -------------------------
4756
4757       --  CASE_STATEMENT ::=
4758       --    case EXPRESSION is
4759       --      CASE_STATEMENT_ALTERNATIVE
4760       --      {CASE_STATEMENT_ALTERNATIVE}
4761       --    end case;
4762
4763       --  Note: the Alternatives can contain pragmas. These only occur at
4764       --  the start of the list, since any pragmas occurring after the first
4765       --  alternative are absorbed into the corresponding statement sequence.
4766
4767       --  N_Case_Statement
4768       --  Sloc points to CASE
4769       --  Expression (Node3)
4770       --  Alternatives (List4)
4771       --  End_Span (Uint5) (set to Uint_0 if expander generated)
4772       --  From_Conditional_Expression (Flag1-Sem)
4773
4774       --  Note: Before Ada 2012, a pragma in a statement sequence is always
4775       --  followed by a statement, and this is true in the tree even in Ada
4776       --  2012 mode (the parser inserts a null statement marked with the flag
4777       --  Comes_From_Source False).
4778
4779       -------------------------------------
4780       -- 5.4  Case Statement Alternative --
4781       -------------------------------------
4782
4783       --  CASE_STATEMENT_ALTERNATIVE ::=
4784       --    when DISCRETE_CHOICE_LIST =>
4785       --      SEQUENCE_OF_STATEMENTS
4786
4787       --  N_Case_Statement_Alternative
4788       --  Sloc points to WHEN
4789       --  Discrete_Choices (List4)
4790       --  Statements (List3)
4791       --  Has_SP_Choice (Flag15-Sem)
4792
4793       --  Note: in the list of Discrete_Choices, the tree passed to the back
4794       --  end does not have choice entries corresponding to names of statically
4795       --  predicated subtypes. Such entries are always expanded out to the list
4796       --  of equivalent values or ranges. The ASIS tree generated in -gnatct
4797       --  mode does not have this expansion, and has the original choices.
4798
4799       -------------------------
4800       -- 5.5  Loop Statement --
4801       -------------------------
4802
4803       --  LOOP_STATEMENT ::=
4804       --    [loop_STATEMENT_IDENTIFIER :]
4805       --      [ITERATION_SCHEME] loop
4806       --        SEQUENCE_OF_STATEMENTS
4807       --      end loop [loop_IDENTIFIER];
4808
4809       --  Note: The occurrence of a loop label is not a defining identifier
4810       --  but rather a referencing occurrence. The defining occurrence is in
4811       --  the implicit label declaration which occurs in the innermost
4812       --  enclosing block.
4813
4814       --  Note: there is always a loop statement identifier present in the
4815       --  tree, even if none was given in the source. In the case where no loop
4816       --  identifier is given in the source, the parser creates a name of the
4817       --  form _Loop_n, where n is a decimal integer (the two underlines ensure
4818       --  that the loop names created in this manner do not conflict with any
4819       --  user defined identifiers), and the flag Has_Created_Identifier is set
4820       --  to True. The only exception to the rule that all loop statement nodes
4821       --  have identifiers occurs for loops constructed by the expander, and
4822       --  the semantic analyzer will create and supply dummy loop identifiers
4823       --  in these cases.
4824
4825       --  N_Loop_Statement
4826       --  Sloc points to LOOP
4827       --  Identifier (Node1) loop identifier (set to Empty if no identifier)
4828       --  Iteration_Scheme (Node2) (set to Empty if no iteration scheme)
4829       --  Statements (List3)
4830       --  End_Label (Node4)
4831       --  Has_Created_Identifier (Flag15)
4832       --  Is_Null_Loop (Flag16)
4833       --  Suppress_Loop_Warnings (Flag17)
4834
4835       --  Note: the parser fills in the Identifier field if there is an
4836       --  explicit loop identifier. Otherwise the parser leaves this field
4837       --  set to Empty, and then the semantic processing for a loop statement
4838       --  creates an identifier, setting the Has_Created_Identifier flag to
4839       --  True. So after semantic analysis, the Identifier is always set,
4840       --  referencing an identifier whose entity has an Ekind of E_Loop.
4841
4842       ---------------------------
4843       -- 5.5  Iteration Scheme --
4844       ---------------------------
4845
4846       --  ITERATION_SCHEME ::=
4847       --    while CONDITION
4848       --  | for LOOP_PARAMETER_SPECIFICATION
4849       --  | for ITERATOR_SPECIFICATION
4850
4851       --  At most one of (Iterator_Specification, Loop_Parameter_Specification)
4852       --  is present at a time, in which case the other one is empty. Both are
4853       --  empty in the case of a WHILE loop.
4854
4855       --  Gigi restriction: The expander ensures that the type of the Condition
4856       --  field is always Standard.Boolean, even if the type in the source is
4857       --  some non-standard boolean type.
4858
4859       --  N_Iteration_Scheme
4860       --  Sloc points to WHILE or FOR
4861       --  Condition (Node1) (set to Empty if FOR case)
4862       --  Condition_Actions (List3-Sem)
4863       --  Iterator_Specification (Node2) (set to Empty if WHILE case)
4864       --  Loop_Parameter_Specification (Node4) (set to Empty if WHILE case)
4865
4866       ---------------------------------------
4867       -- 5.5  Loop Parameter Specification --
4868       ---------------------------------------
4869
4870       --  LOOP_PARAMETER_SPECIFICATION ::=
4871       --    DEFINING_IDENTIFIER in [reverse] DISCRETE_SUBTYPE_DEFINITION
4872
4873       --  N_Loop_Parameter_Specification
4874       --  Sloc points to first identifier
4875       --  Defining_Identifier (Node1)
4876       --  Reverse_Present (Flag15)
4877       --  Discrete_Subtype_Definition (Node4)
4878
4879       -----------------------------------
4880       -- 5.5.1  Iterator Specification --
4881       -----------------------------------
4882
4883       --  ITERATOR_SPECIFICATION ::=
4884       --    DEFINING_IDENTIFIER in [reverse] NAME
4885       --  | DEFINING_IDENTIFIER [: SUBTYPE_INDICATION] of [reverse] NAME
4886
4887       --  N_Iterator_Specification
4888       --  Sloc points to defining identifier
4889       --  Defining_Identifier (Node1)
4890       --  Name (Node2)
4891       --  Reverse_Present (Flag15)
4892       --  Of_Present (Flag16)
4893       --  Subtype_Indication (Node5)
4894
4895       --  Note: The Of_Present flag distinguishes the two forms
4896
4897       --------------------------
4898       -- 5.6  Block Statement --
4899       --------------------------
4900
4901       --  BLOCK_STATEMENT ::=
4902       --    [block_STATEMENT_IDENTIFIER:]
4903       --      [declare
4904       --        DECLARATIVE_PART]
4905       --      begin
4906       --        HANDLED_SEQUENCE_OF_STATEMENTS
4907       --      end [block_IDENTIFIER];
4908
4909       --  Note that the occurrence of a block identifier is not a defining
4910       --  identifier, but rather a referencing occurrence. The defining
4911       --  occurrence is an E_Block entity declared by the implicit label
4912       --  declaration which occurs in the innermost enclosing block statement
4913       --  or body; the block identifier denotes that E_Block.
4914
4915       --  For block statements that come from source code, there is always a
4916       --  block statement identifier present in the tree, denoting an E_Block.
4917       --  In the case where no block identifier is given in the source,
4918       --  the parser creates a name of the form B_n, where n is a decimal
4919       --  integer, and the flag Has_Created_Identifier is set to True. Blocks
4920       --  constructed by the expander usually have no identifier, and no
4921       --  corresponding entity.
4922
4923       --  Note: the block statement created for an extended return statement
4924       --  has an entity, and this entity is an E_Return_Statement, rather than
4925       --  the usual E_Block.
4926
4927       --  Note: Exception_Junk is set for the wrapping blocks created during
4928       --  local raise optimization (Exp_Ch11.Expand_Local_Exception_Handlers).
4929
4930       --  Note: from a control flow viewpoint, a block statement defines an
4931       --  extended basic block, i.e. the entry of the block dominates every
4932       --  statement in the sequence. When generating new statements with
4933       --  exception handlers in the expander at the end of a sequence that
4934       --  comes from source code, it can be necessary to wrap them all in a
4935       --  block statement in order to expose the implicit control flow to
4936       --  gigi and thus prevent it from issuing bogus control flow warnings.
4937
4938       --  N_Block_Statement
4939       --  Sloc points to DECLARE or BEGIN
4940       --  Identifier (Node1) block direct name (set to Empty if not present)
4941       --  Declarations (List2) (set to No_List if no DECLARE part)
4942       --  Handled_Statement_Sequence (Node4)
4943       --  Cleanup_Actions (List5-Sem)
4944       --  Is_Abort_Block (Flag4-Sem)
4945       --  Is_Task_Master (Flag5-Sem)
4946       --  Activation_Chain_Entity (Node3-Sem)
4947       --  Has_Created_Identifier (Flag15)
4948       --  Is_Task_Allocation_Block (Flag6)
4949       --  Is_Asynchronous_Call_Block (Flag7)
4950       --  Exception_Junk (Flag8-Sem)
4951       --  Is_Finalization_Wrapper (Flag9-Sem)
4952
4953       -------------------------
4954       -- 5.7  Exit Statement --
4955       -------------------------
4956
4957       --  EXIT_STATEMENT ::= exit [loop_NAME] [when CONDITION];
4958
4959       --  Gigi restriction: The expander ensures that the type of the Condition
4960       --  field is always Standard.Boolean, even if the type in the source is
4961       --  some non-standard boolean type.
4962
4963       --  N_Exit_Statement
4964       --  Sloc points to EXIT
4965       --  Name (Node2) (set to Empty if no loop name present)
4966       --  Condition (Node1) (set to Empty if no WHEN part present)
4967       --  Next_Exit_Statement (Node3-Sem): Next exit on chain
4968
4969       -------------------------
4970       -- 5.9  Goto Statement --
4971       -------------------------
4972
4973       --  GOTO_STATEMENT ::= goto label_NAME;
4974
4975       --  N_Goto_Statement
4976       --  Sloc points to GOTO
4977       --  Name (Node2)
4978       --  Exception_Junk (Flag8-Sem)
4979
4980       ---------------------------------
4981       -- 6.1  Subprogram Declaration --
4982       ---------------------------------
4983
4984       --  SUBPROGRAM_DECLARATION ::=
4985       --    SUBPROGRAM_SPECIFICATION
4986       --      [ASPECT_SPECIFICATIONS];
4987
4988       --  N_Subprogram_Declaration
4989       --  Sloc points to FUNCTION or PROCEDURE
4990       --  Specification (Node1)
4991       --  Body_To_Inline (Node3-Sem)
4992       --  Corresponding_Body (Node5-Sem)
4993       --  Parent_Spec (Node4-Sem)
4994       --  Is_Entry_Barrier_Function (Flag8-Sem)
4995       --  Is_Task_Body_Procedure (Flag1-Sem)
4996
4997       ------------------------------------------
4998       -- 6.1  Abstract Subprogram Declaration --
4999       ------------------------------------------
5000
5001       --  ABSTRACT_SUBPROGRAM_DECLARATION ::=
5002       --    SUBPROGRAM_SPECIFICATION is abstract
5003       --      [ASPECT_SPECIFICATIONS];
5004
5005       --  N_Abstract_Subprogram_Declaration
5006       --  Sloc points to ABSTRACT
5007       --  Specification (Node1)
5008
5009       -----------------------------------
5010       -- 6.1  Subprogram Specification --
5011       -----------------------------------
5012
5013       --  SUBPROGRAM_SPECIFICATION ::=
5014       --    [[not] overriding]
5015       --    procedure DEFINING_PROGRAM_UNIT_NAME PARAMETER_PROFILE
5016       --  | [[not] overriding]
5017       --    function DEFINING_DESIGNATOR PARAMETER_AND_RESULT_PROFILE
5018
5019       --  Note: there are no separate nodes for the profiles, instead the
5020       --  information appears directly in the following nodes.
5021
5022       --  N_Function_Specification
5023       --  Sloc points to FUNCTION
5024       --  Defining_Unit_Name (Node1) (the designator)
5025       --  Parameter_Specifications (List3) (set to No_List if no formal part)
5026       --  Null_Exclusion_Present (Flag11)
5027       --  Result_Definition (Node4) for result subtype
5028       --  Generic_Parent (Node5-Sem)
5029       --  Must_Override (Flag14) set if overriding indicator present
5030       --  Must_Not_Override (Flag15) set if not_overriding indicator present
5031
5032       --  N_Procedure_Specification
5033       --  Sloc points to PROCEDURE
5034       --  Defining_Unit_Name (Node1)
5035       --  Parameter_Specifications (List3) (set to No_List if no formal part)
5036       --  Generic_Parent (Node5-Sem)
5037       --  Null_Present (Flag13) set for null procedure case (Ada 2005 feature)
5038       --  Must_Override (Flag14) set if overriding indicator present
5039       --  Must_Not_Override (Flag15) set if not_overriding indicator present
5040
5041       --  Note: overriding indicator is an Ada 2005 feature
5042
5043       ---------------------
5044       -- 6.1  Designator --
5045       ---------------------
5046
5047       --  DESIGNATOR ::=
5048       --    [PARENT_UNIT_NAME .] IDENTIFIER | OPERATOR_SYMBOL
5049
5050       --  Designators that are simply identifiers or operator symbols appear
5051       --  directly in the tree in this form. The following node is used only
5052       --  in the case where the designator has a parent unit name component.
5053
5054       --  N_Designator
5055       --  Sloc points to period
5056       --  Name (Node2) holds the parent unit name
5057       --  Identifier (Node1)
5058
5059       --  Note: Name is always non-Empty, since this node is only used for the
5060       --  case where a parent library unit package name is present.
5061
5062       --  Note that the identifier can also be an operator symbol here
5063
5064       ------------------------------
5065       -- 6.1  Defining Designator --
5066       ------------------------------
5067
5068       --  DEFINING_DESIGNATOR ::=
5069       --    DEFINING_PROGRAM_UNIT_NAME | DEFINING_OPERATOR_SYMBOL
5070
5071       -------------------------------------
5072       -- 6.1  Defining Program Unit Name --
5073       -------------------------------------
5074
5075       --  DEFINING_PROGRAM_UNIT_NAME ::=
5076       --    [PARENT_UNIT_NAME .] DEFINING_IDENTIFIER
5077
5078       --  The parent unit name is present only in the case of a child unit name
5079       --  (permissible only for Ada 95 for a library level unit, i.e. a unit
5080       --  at scope level one). If no such name is present, the defining program
5081       --  unit name is represented simply as the defining identifier. In the
5082       --  child unit case, the following node is used to represent the child
5083       --  unit name.
5084
5085       --  N_Defining_Program_Unit_Name
5086       --  Sloc points to period
5087       --  Name (Node2) holds the parent unit name
5088       --  Defining_Identifier (Node1)
5089
5090       --  Note: Name is always non-Empty, since this node is only used for the
5091       --  case where a parent unit name is present.
5092
5093       --------------------------
5094       -- 6.1  Operator Symbol --
5095       --------------------------
5096
5097       --  OPERATOR_SYMBOL ::= STRING_LITERAL
5098
5099       --  Note: the fields of the N_Operator_Symbol node are laid out to match
5100       --  the corresponding fields of an N_Character_Literal node. This allows
5101       --  easy conversion of the operator symbol node into a character literal
5102       --  node in the case where a string constant of the form of an operator
5103       --  symbol is scanned out as such, but turns out semantically to be a
5104       --  string literal that is not an operator. For details see Sinfo.CN.
5105       --  Change_Operator_Symbol_To_String_Literal.
5106
5107       --  N_Operator_Symbol
5108       --  Sloc points to literal
5109       --  Chars (Name1) contains the Name_Id for the operator symbol
5110       --  Strval (Str3) Id of string value. This is used if the operator
5111       --   symbol turns out to be a normal string after all.
5112       --  Entity (Node4-Sem)
5113       --  Associated_Node (Node4-Sem)
5114       --  Has_Private_View (Flag11-Sem) set in generic units.
5115       --  Etype (Node5-Sem)
5116
5117       --  Note: the Strval field may be set to No_String for generated
5118       --  operator symbols that are known not to be string literals
5119       --  semantically.
5120
5121       -----------------------------------
5122       -- 6.1  Defining Operator Symbol --
5123       -----------------------------------
5124
5125       --  DEFINING_OPERATOR_SYMBOL ::= OPERATOR_SYMBOL
5126
5127       --  A defining operator symbol is an entity, which has additional
5128       --  fields depending on the setting of the Ekind field. These
5129       --  additional fields are defined (and access subprograms declared)
5130       --  in package Einfo.
5131
5132       --  Note: N_Defining_Operator_Symbol is an extended node whose fields
5133       --  are deliberately layed out to match the layout of fields in an
5134       --  ordinary N_Operator_Symbol node allowing for easy alteration of
5135       --  an operator symbol node into a defining operator symbol node.
5136       --  See Sinfo.CN.Change_Operator_Symbol_To_Defining_Operator_Symbol
5137       --  for further details.
5138
5139       --  N_Defining_Operator_Symbol
5140       --  Sloc points to literal
5141       --  Chars (Name1) contains the Name_Id for the operator symbol
5142       --  Next_Entity (Node2-Sem)
5143       --  Scope (Node3-Sem)
5144       --  Etype (Node5-Sem)
5145
5146       ----------------------------
5147       -- 6.1  Parameter Profile --
5148       ----------------------------
5149
5150       --  PARAMETER_PROFILE ::= [FORMAL_PART]
5151
5152       ---------------------------------------
5153       -- 6.1  Parameter and Result Profile --
5154       ---------------------------------------
5155
5156       --  PARAMETER_AND_RESULT_PROFILE ::=
5157       --    [FORMAL_PART] return [NULL_EXCLUSION] SUBTYPE_MARK
5158       --  | [FORMAL_PART] return ACCESS_DEFINITION
5159
5160       --  There is no explicit node in the tree for a parameter and result
5161       --  profile. Instead the information appears directly in the parent.
5162
5163       ----------------------
5164       -- 6.1  Formal Part --
5165       ----------------------
5166
5167       --  FORMAL_PART ::=
5168       --    (PARAMETER_SPECIFICATION {; PARAMETER_SPECIFICATION})
5169
5170       ----------------------------------
5171       -- 6.1  Parameter Specification --
5172       ----------------------------------
5173
5174       --  PARAMETER_SPECIFICATION ::=
5175       --    DEFINING_IDENTIFIER_LIST : [ALIASED] MODE [NULL_EXCLUSION]
5176       --      SUBTYPE_MARK [:= DEFAULT_EXPRESSION]
5177       --  | DEFINING_IDENTIFIER_LIST : ACCESS_DEFINITION
5178       --      [:= DEFAULT_EXPRESSION]
5179
5180       --  Although the syntax allows multiple identifiers in the list, the
5181       --  semantics is as though successive specifications were given with
5182       --  identical type definition and expression components. To simplify
5183       --  semantic processing, the parser represents a multiple declaration
5184       --  case as a sequence of single Specifications, using the More_Ids and
5185       --  Prev_Ids flags to preserve the original source form as described
5186       --  in the section on "Handling of Defining Identifier Lists".
5187
5188       --  ALIASED can only be present in Ada 2012 mode
5189
5190       --  N_Parameter_Specification
5191       --  Sloc points to first identifier
5192       --  Defining_Identifier (Node1)
5193       --  Aliased_Present (Flag4)
5194       --  In_Present (Flag15)
5195       --  Out_Present (Flag17)
5196       --  Null_Exclusion_Present (Flag11)
5197       --  Parameter_Type (Node2) subtype mark or access definition
5198       --  Expression (Node3) (set to Empty if no default expression present)
5199       --  Do_Accessibility_Check (Flag13-Sem)
5200       --  More_Ids (Flag5) (set to False if no more identifiers in list)
5201       --  Prev_Ids (Flag6) (set to False if no previous identifiers in list)
5202       --  Default_Expression (Node5-Sem)
5203
5204       ---------------
5205       -- 6.1  Mode --
5206       ---------------
5207
5208       --  MODE ::= [in] | in out | out
5209
5210       --  There is no explicit node in the tree for the Mode. Instead the
5211       --  In_Present and Out_Present flags are set in the parent node to
5212       --  record the presence of keywords specifying the mode.
5213
5214       --------------------------
5215       -- 6.3  Subprogram Body --
5216       --------------------------
5217
5218       --  SUBPROGRAM_BODY ::=
5219       --    SUBPROGRAM_SPECIFICATION [ASPECT_SPECIFICATIONS] is
5220       --      DECLARATIVE_PART
5221       --    begin
5222       --      HANDLED_SEQUENCE_OF_STATEMENTS
5223       --    end [DESIGNATOR];
5224
5225       --  N_Subprogram_Body
5226       --  Sloc points to FUNCTION or PROCEDURE
5227       --  Specification (Node1)
5228       --  Declarations (List2)
5229       --  Handled_Statement_Sequence (Node4)
5230       --  Activation_Chain_Entity (Node3-Sem)
5231       --  Corresponding_Spec (Node5-Sem)
5232       --  Acts_As_Spec (Flag4-Sem)
5233       --  Bad_Is_Detected (Flag15) used only by parser
5234       --  Do_Storage_Check (Flag17-Sem)
5235       --  Has_Relative_Deadline_Pragma (Flag9-Sem)
5236       --  Is_Entry_Barrier_Function (Flag8-Sem)
5237       --  Is_Protected_Subprogram_Body (Flag7-Sem)
5238       --  Is_Task_Body_Procedure (Flag1-Sem)
5239       --  Is_Task_Master (Flag5-Sem)
5240       --  Was_Expression_Function (Flag18-Sem)
5241       --  Was_Originally_Stub (Flag13-Sem)
5242
5243       -------------------------
5244       -- Expression Function --
5245       -------------------------
5246
5247       --  This is an Ada 2012 extension, we put it here for now, to be labeled
5248       --  and put in its proper section when we know exactly where that is.
5249
5250       --  EXPRESSION_FUNCTION ::=
5251       --    FUNCTION SPECIFICATION IS (EXPRESSION)
5252       --      [ASPECT_SPECIFICATIONS];
5253
5254       --  N_Expression_Function
5255       --  Sloc points to FUNCTION
5256       --  Specification (Node1)
5257       --  Expression (Node3)
5258       --  Corresponding_Spec (Node5-Sem)
5259
5260       -----------------------------------
5261       -- 6.4  Procedure Call Statement --
5262       -----------------------------------
5263
5264       --  PROCEDURE_CALL_STATEMENT ::=
5265       --    procedure_NAME; | procedure_PREFIX ACTUAL_PARAMETER_PART;
5266
5267       --  Note: the reason that a procedure call has expression fields is that
5268       --  it semantically resembles an expression, e.g. overloading is allowed
5269       --  and a type is concocted for semantic processing purposes. Certain of
5270       --  these fields, such as Parens are not relevant, but it is easier to
5271       --  just supply all of them together.
5272
5273       --  N_Procedure_Call_Statement
5274       --  Sloc points to first token of name or prefix
5275       --  Name (Node2) stores name or prefix
5276       --  Parameter_Associations (List3) (set to No_List if no
5277       --   actual parameter part)
5278       --  First_Named_Actual (Node4-Sem)
5279       --  Controlling_Argument (Node1-Sem) (set to Empty if not dispatching)
5280       --  Do_Tag_Check (Flag13-Sem)
5281       --  No_Elaboration_Check (Flag14-Sem)
5282       --  ABE_Is_Certain (Flag18-Sem)
5283       --  plus fields for expression
5284
5285       --  If any IN parameter requires a range check, then the corresponding
5286       --  argument expression has the Do_Range_Check flag set, and the range
5287       --  check is done against the formal type. Note that this argument
5288       --  expression may appear directly in the Parameter_Associations list,
5289       --  or may be a descendant of an N_Parameter_Association node that
5290       --  appears in this list.
5291
5292       ------------------------
5293       -- 6.4  Function Call --
5294       ------------------------
5295
5296       --  FUNCTION_CALL ::=
5297       --    function_NAME | function_PREFIX ACTUAL_PARAMETER_PART
5298
5299       --  Note: the parser may generate an indexed component node or simply
5300       --  a name node instead of a function call node. The semantic pass must
5301       --  correct this misidentification.
5302
5303       --  N_Function_Call
5304       --  Sloc points to first token of name or prefix
5305       --  Name (Node2) stores name or prefix
5306       --  Parameter_Associations (List3) (set to No_List if no
5307       --   actual parameter part)
5308       --  First_Named_Actual (Node4-Sem)
5309       --  Controlling_Argument (Node1-Sem) (set to Empty if not dispatching)
5310       --  No_Side_Effect_Removal (Flag1-Sem)
5311       --  Is_Expanded_Build_In_Place_Call (Flag11-Sem)
5312       --  Do_Tag_Check (Flag13-Sem)
5313       --  No_Elaboration_Check (Flag14-Sem)
5314       --  ABE_Is_Certain (Flag18-Sem)
5315       --  plus fields for expression
5316
5317       --------------------------------
5318       -- 6.4  Actual Parameter Part --
5319       --------------------------------
5320
5321       --  ACTUAL_PARAMETER_PART ::=
5322       --    (PARAMETER_ASSOCIATION {,PARAMETER_ASSOCIATION})
5323
5324       --------------------------------
5325       -- 6.4  Parameter Association --
5326       --------------------------------
5327
5328       --  PARAMETER_ASSOCIATION ::=
5329       --    [formal_parameter_SELECTOR_NAME =>] EXPLICIT_ACTUAL_PARAMETER
5330
5331       --  Note: the N_Parameter_Association node is built only if a formal
5332       --  parameter selector name is present, otherwise the parameter
5333       --  association appears in the tree simply as the node for the
5334       --  explicit actual parameter.
5335
5336       --  N_Parameter_Association
5337       --  Sloc points to formal parameter
5338       --  Selector_Name (Node2) (always non-Empty)
5339       --  Explicit_Actual_Parameter (Node3)
5340       --  Next_Named_Actual (Node4-Sem)
5341       --  Is_Accessibility_Actual (Flag13-Sem)
5342
5343       ---------------------------
5344       -- 6.4  Actual Parameter --
5345       ---------------------------
5346
5347       --  EXPLICIT_ACTUAL_PARAMETER ::= EXPRESSION | variable_NAME
5348
5349       ---------------------------
5350       -- 6.5  Return Statement --
5351       ---------------------------
5352
5353       --  SIMPLE_RETURN_STATEMENT ::= return [EXPRESSION];
5354
5355       --  EXTENDED_RETURN_STATEMENT ::=
5356       --    return DEFINING_IDENTIFIER : [aliased] RETURN_SUBTYPE_INDICATION
5357       --                                           [:= EXPRESSION] [do
5358       --      HANDLED_SEQUENCE_OF_STATEMENTS
5359       --    end return];
5360
5361       --  RETURN_SUBTYPE_INDICATION ::= SUBTYPE_INDICATION | ACCESS_DEFINITION
5362
5363       --  The term "return statement" is defined in 6.5 to mean either a
5364       --  SIMPLE_RETURN_STATEMENT or an EXTENDED_RETURN_STATEMENT. We avoid
5365       --  the use of this term, since it used to mean someting else in earlier
5366       --  versions of Ada.
5367
5368       --  N_Simple_Return_Statement
5369       --  Sloc points to RETURN
5370       --  Return_Statement_Entity (Node5-Sem)
5371       --  Expression (Node3) (set to Empty if no expression present)
5372       --  Storage_Pool (Node1-Sem)
5373       --  Procedure_To_Call (Node2-Sem)
5374       --  Do_Tag_Check (Flag13-Sem)
5375       --  By_Ref (Flag5-Sem)
5376       --  Comes_From_Extended_Return_Statement (Flag18-Sem)
5377
5378       --  Note: Return_Statement_Entity points to an E_Return_Statement
5379
5380       --  If a range check is required, then Do_Range_Check is set on the
5381       --  Expression. The check is against the return subtype of the function.
5382
5383       --  N_Extended_Return_Statement
5384       --  Sloc points to RETURN
5385       --  Return_Statement_Entity (Node5-Sem)
5386       --  Return_Object_Declarations (List3)
5387       --  Handled_Statement_Sequence (Node4) (set to Empty if not present)
5388       --  Storage_Pool (Node1-Sem)
5389       --  Procedure_To_Call (Node2-Sem)
5390       --  Do_Tag_Check (Flag13-Sem)
5391       --  By_Ref (Flag5-Sem)
5392
5393       --  Note: Return_Statement_Entity points to an E_Return_Statement.
5394
5395       --  Note that Return_Object_Declarations is a list containing the
5396       --  N_Object_Declaration -- see comment on this field above.
5397
5398       --  The declared object will have Is_Return_Object = True.
5399
5400       --  There is no such syntactic category as return_object_declaration
5401       --  in the RM. Return_Object_Declarations represents this portion of
5402       --  the syntax for EXTENDED_RETURN_STATEMENT:
5403       --      DEFINING_IDENTIFIER : [aliased] RETURN_SUBTYPE_INDICATION
5404       --                                      [:= EXPRESSION]
5405
5406       --  There are two entities associated with an extended_return_statement:
5407       --  the Return_Statement_Entity represents the statement itself,
5408       --  and the Defining_Identifier of the Object_Declaration in
5409       --  Return_Object_Declarations represents the object being
5410       --  returned. N_Simple_Return_Statement has only the former.
5411
5412       ------------------------------
5413       -- 7.1  Package Declaration --
5414       ------------------------------
5415
5416       --  PACKAGE_DECLARATION ::=
5417       --    PACKAGE_SPECIFICATION;
5418
5419       --  Note: the activation chain entity for a package spec is used for
5420       --  all tasks declared in the package spec, or in the package body.
5421
5422       --  N_Package_Declaration
5423       --  Sloc points to PACKAGE
5424       --  Specification (Node1)
5425       --  Corresponding_Body (Node5-Sem)
5426       --  Parent_Spec (Node4-Sem)
5427       --  Activation_Chain_Entity (Node3-Sem)
5428
5429       --------------------------------
5430       -- 7.1  Package Specification --
5431       --------------------------------
5432
5433       --  PACKAGE_SPECIFICATION ::=
5434       --    package DEFINING_PROGRAM_UNIT_NAME
5435       --      [ASPECT_SPECIFICATIONS]
5436       --    is
5437       --      {BASIC_DECLARATIVE_ITEM}
5438       --    [private
5439       --      {BASIC_DECLARATIVE_ITEM}]
5440       --    end [[PARENT_UNIT_NAME .] IDENTIFIER]
5441
5442       --  N_Package_Specification
5443       --  Sloc points to PACKAGE
5444       --  Defining_Unit_Name (Node1)
5445       --  Visible_Declarations (List2)
5446       --  Private_Declarations (List3) (set to No_List if no private
5447       --   part present)
5448       --  End_Label (Node4)
5449       --  Generic_Parent (Node5-Sem)
5450       --  Limited_View_Installed (Flag18-Sem)
5451
5452       -----------------------
5453       -- 7.1  Package Body --
5454       -----------------------
5455
5456       --  PACKAGE_BODY ::=
5457       --    package body DEFINING_PROGRAM_UNIT_NAME
5458       --      [ASPECT_SPECIFICATIONS]
5459       --    is
5460       --      DECLARATIVE_PART
5461       --    [begin
5462       --      HANDLED_SEQUENCE_OF_STATEMENTS]
5463       --    end [[PARENT_UNIT_NAME .] IDENTIFIER];
5464
5465       --  N_Package_Body
5466       --  Sloc points to PACKAGE
5467       --  Defining_Unit_Name (Node1)
5468       --  Declarations (List2)
5469       --  Handled_Statement_Sequence (Node4) (set to Empty if no HSS present)
5470       --  Corresponding_Spec (Node5-Sem)
5471       --  Was_Originally_Stub (Flag13-Sem)
5472
5473       --  Note: if a source level package does not contain a handled sequence
5474       --  of statements, then the parser supplies a dummy one with a null
5475       --  sequence of statements. Comes_From_Source will be False in this
5476       --  constructed sequence. The reason we need this is for the End_Label
5477       --  field in the HSS.
5478
5479       -----------------------------------
5480       -- 7.4  Private Type Declaration --
5481       -----------------------------------
5482
5483       --  PRIVATE_TYPE_DECLARATION ::=
5484       --    type DEFINING_IDENTIFIER [DISCRIMINANT_PART]
5485       --      is [[abstract] tagged] [limited] private
5486       --        [ASPECT_SPECIFICATIONS];
5487
5488       --  Note: TAGGED is not permitted in Ada 83 mode
5489
5490       --  N_Private_Type_Declaration
5491       --  Sloc points to TYPE
5492       --  Defining_Identifier (Node1)
5493       --  Discriminant_Specifications (List4) (set to No_List if no
5494       --   discriminant part)
5495       --  Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
5496       --  Abstract_Present (Flag4)
5497       --  Tagged_Present (Flag15)
5498       --  Limited_Present (Flag17)
5499
5500       ----------------------------------------
5501       -- 7.4  Private Extension Declaration --
5502       ----------------------------------------
5503
5504       --  PRIVATE_EXTENSION_DECLARATION ::=
5505       --    type DEFINING_IDENTIFIER [DISCRIMINANT_PART] is
5506       --      [abstract] [limited | synchronized]
5507       --        new ancestor_SUBTYPE_INDICATION [and INTERFACE_LIST]
5508       --           with private [ASPECT_SPECIFICATIONS];
5509
5510       --  Note: LIMITED, and private extension declarations are not allowed
5511       --        in Ada 83 mode.
5512
5513       --  N_Private_Extension_Declaration
5514       --  Sloc points to TYPE
5515       --  Defining_Identifier (Node1)
5516       --  Uninitialized_Variable (Node3-Sem)
5517       --  Discriminant_Specifications (List4) (set to No_List if no
5518       --   discriminant part)
5519       --  Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
5520       --  Abstract_Present (Flag4)
5521       --  Limited_Present (Flag17)
5522       --  Synchronized_Present (Flag7)
5523       --  Subtype_Indication (Node5)
5524       --  Interface_List (List2) (set to No_List if none)
5525
5526       ---------------------
5527       -- 8.4  Use Clause --
5528       ---------------------
5529
5530       --  USE_CLAUSE ::= USE_PACKAGE_CLAUSE | USE_TYPE_CLAUSE
5531
5532       -----------------------------
5533       -- 8.4  Use Package Clause --
5534       -----------------------------
5535
5536       --  USE_PACKAGE_CLAUSE ::= use package_NAME {, package_NAME};
5537
5538       --  N_Use_Package_Clause
5539       --  Sloc points to USE
5540       --  Names (List2)
5541       --  Next_Use_Clause (Node3-Sem)
5542       --  Hidden_By_Use_Clause (Elist4-Sem)
5543
5544       --------------------------
5545       -- 8.4  Use Type Clause --
5546       --------------------------
5547
5548       --  USE_TYPE_CLAUSE ::= use [ALL] type SUBTYPE_MARK {, SUBTYPE_MARK};
5549
5550       --  Note: use type clause is not permitted in Ada 83 mode
5551
5552       --  Note: the ALL keyword can appear only in Ada 2012 mode
5553
5554       --  N_Use_Type_Clause
5555       --  Sloc points to USE
5556       --  Subtype_Marks (List2)
5557       --  Next_Use_Clause (Node3-Sem)
5558       --  Hidden_By_Use_Clause (Elist4-Sem)
5559       --  Used_Operations (Elist5-Sem)
5560       --  All_Present (Flag15)
5561
5562       -------------------------------
5563       -- 8.5  Renaming Declaration --
5564       -------------------------------
5565
5566       --  RENAMING_DECLARATION ::=
5567       --    OBJECT_RENAMING_DECLARATION
5568       --  | EXCEPTION_RENAMING_DECLARATION
5569       --  | PACKAGE_RENAMING_DECLARATION
5570       --  | SUBPROGRAM_RENAMING_DECLARATION
5571       --  | GENERIC_RENAMING_DECLARATION
5572
5573       --------------------------------------
5574       -- 8.5  Object Renaming Declaration --
5575       --------------------------------------
5576
5577       --  OBJECT_RENAMING_DECLARATION ::=
5578       --    DEFINING_IDENTIFIER :
5579       --      [NULL_EXCLUSION] SUBTYPE_MARK renames object_NAME
5580       --        [ASPECT_SPECIFICATIONS];
5581       --  | DEFINING_IDENTIFIER :
5582       --      ACCESS_DEFINITION renames object_NAME
5583       --        [ASPECT_SPECIFICATIONS];
5584
5585       --  Note: Access_Definition is an optional field that gives support to
5586       --  Ada 2005 (AI-230). The parser generates nodes that have either the
5587       --  Subtype_Indication field or else the Access_Definition field.
5588
5589       --  N_Object_Renaming_Declaration
5590       --  Sloc points to first identifier
5591       --  Defining_Identifier (Node1)
5592       --  Null_Exclusion_Present (Flag11) (set to False if not present)
5593       --  Subtype_Mark (Node4) (set to Empty if not present)
5594       --  Access_Definition (Node3) (set to Empty if not present)
5595       --  Name (Node2)
5596       --  Corresponding_Generic_Association (Node5-Sem)
5597
5598       -----------------------------------------
5599       -- 8.5  Exception Renaming Declaration --
5600       -----------------------------------------
5601
5602       --  EXCEPTION_RENAMING_DECLARATION ::=
5603       --    DEFINING_IDENTIFIER : exception renames exception_NAME
5604       --      [ASPECT_SPECIFICATIONS];
5605
5606       --  N_Exception_Renaming_Declaration
5607       --  Sloc points to first identifier
5608       --  Defining_Identifier (Node1)
5609       --  Name (Node2)
5610
5611       ---------------------------------------
5612       -- 8.5  Package Renaming Declaration --
5613       ---------------------------------------
5614
5615       --  PACKAGE_RENAMING_DECLARATION ::=
5616       --    package DEFINING_PROGRAM_UNIT_NAME renames package_NAME
5617       --      [ASPECT_SPECIFICATIONS];
5618
5619       --  N_Package_Renaming_Declaration
5620       --  Sloc points to PACKAGE
5621       --  Defining_Unit_Name (Node1)
5622       --  Name (Node2)
5623       --  Parent_Spec (Node4-Sem)
5624
5625       ------------------------------------------
5626       -- 8.5  Subprogram Renaming Declaration --
5627       ------------------------------------------
5628
5629       --  SUBPROGRAM_RENAMING_DECLARATION ::=
5630       --    SUBPROGRAM_SPECIFICATION renames callable_entity_NAME
5631       --      [ASPECT_SPECIFICATIONS];
5632
5633       --  N_Subprogram_Renaming_Declaration
5634       --  Sloc points to RENAMES
5635       --  Specification (Node1)
5636       --  Name (Node2)
5637       --  Parent_Spec (Node4-Sem)
5638       --  Corresponding_Spec (Node5-Sem)
5639       --  Corresponding_Formal_Spec (Node3-Sem)
5640       --  From_Default (Flag6-Sem)
5641
5642       -----------------------------------------
5643       -- 8.5.5  Generic Renaming Declaration --
5644       -----------------------------------------
5645
5646       --  GENERIC_RENAMING_DECLARATION ::=
5647       --    generic package DEFINING_PROGRAM_UNIT_NAME
5648       --      renames generic_package_NAME
5649       --        [ASPECT_SPECIFICATIONS];
5650       --  | generic procedure DEFINING_PROGRAM_UNIT_NAME
5651       --      renames generic_procedure_NAME
5652       --        [ASPECT_SPECIFICATIONS];
5653       --  | generic function DEFINING_PROGRAM_UNIT_NAME
5654       --      renames generic_function_NAME
5655       --        [ASPECT_SPECIFICATIONS];
5656
5657       --  N_Generic_Package_Renaming_Declaration
5658       --  Sloc points to GENERIC
5659       --  Defining_Unit_Name (Node1)
5660       --  Name (Node2)
5661       --  Parent_Spec (Node4-Sem)
5662
5663       --  N_Generic_Procedure_Renaming_Declaration
5664       --  Sloc points to GENERIC
5665       --  Defining_Unit_Name (Node1)
5666       --  Name (Node2)
5667       --  Parent_Spec (Node4-Sem)
5668
5669       --  N_Generic_Function_Renaming_Declaration
5670       --  Sloc points to GENERIC
5671       --  Defining_Unit_Name (Node1)
5672       --  Name (Node2)
5673       --  Parent_Spec (Node4-Sem)
5674
5675       --------------------------------
5676       -- 9.1  Task Type Declaration --
5677       --------------------------------
5678
5679       --  TASK_TYPE_DECLARATION ::=
5680       --    task type DEFINING_IDENTIFIER [KNOWN_DISCRIMINANT_PART]
5681       --      [ASPECT_SPECIFICATIONS]
5682       --    [is [new INTERFACE_LIST with] TASK_DEFINITION];
5683
5684       --  N_Task_Type_Declaration
5685       --  Sloc points to TASK
5686       --  Defining_Identifier (Node1)
5687       --  Discriminant_Specifications (List4) (set to No_List if no
5688       --   discriminant part)
5689       --  Interface_List (List2) (set to No_List if none)
5690       --  Task_Definition (Node3) (set to Empty if not present)
5691       --  Corresponding_Body (Node5-Sem)
5692
5693       ----------------------------------
5694       -- 9.1  Single Task Declaration --
5695       ----------------------------------
5696
5697       --  SINGLE_TASK_DECLARATION ::=
5698       --    task DEFINING_IDENTIFIER
5699       --      [ASPECT_SPECIFICATIONS]
5700       --    [is [new INTERFACE_LIST with] TASK_DEFINITION];
5701
5702       --  N_Single_Task_Declaration
5703       --  Sloc points to TASK
5704       --  Defining_Identifier (Node1)
5705       --  Interface_List (List2) (set to No_List if none)
5706       --  Task_Definition (Node3) (set to Empty if not present)
5707
5708       --------------------------
5709       -- 9.1  Task Definition --
5710       --------------------------
5711
5712       --  TASK_DEFINITION ::=
5713       --      {TASK_ITEM}
5714       --    [private
5715       --      {TASK_ITEM}]
5716       --    end [task_IDENTIFIER]
5717
5718       --  Note: as a result of semantic analysis, the list of task items can
5719       --  include implicit type declarations resulting from entry families.
5720
5721       --  N_Task_Definition
5722       --  Sloc points to first token of task definition
5723       --  Visible_Declarations (List2)
5724       --  Private_Declarations (List3) (set to No_List if no private part)
5725       --  End_Label (Node4)
5726       --  Has_Storage_Size_Pragma (Flag5-Sem)
5727       --  Has_Relative_Deadline_Pragma (Flag9-Sem)
5728
5729       --------------------
5730       -- 9.1  Task Item --
5731       --------------------
5732
5733       --  TASK_ITEM ::= ENTRY_DECLARATION | REPRESENTATION_CLAUSE
5734
5735       --------------------
5736       -- 9.1  Task Body --
5737       --------------------
5738
5739       --  TASK_BODY ::=
5740       --    task body task_DEFINING_IDENTIFIER
5741       --      [ASPECT_SPECIFICATIONS]
5742       --    is
5743       --      DECLARATIVE_PART
5744       --    begin
5745       --      HANDLED_SEQUENCE_OF_STATEMENTS
5746       --    end [task_IDENTIFIER];
5747
5748       --  Gigi restriction: This node never appears
5749
5750       --  N_Task_Body
5751       --  Sloc points to TASK
5752       --  Defining_Identifier (Node1)
5753       --  Declarations (List2)
5754       --  Handled_Statement_Sequence (Node4)
5755       --  Is_Task_Master (Flag5-Sem)
5756       --  Activation_Chain_Entity (Node3-Sem)
5757       --  Corresponding_Spec (Node5-Sem)
5758       --  Was_Originally_Stub (Flag13-Sem)
5759
5760       -------------------------------------
5761       -- 9.4  Protected Type Declaration --
5762       -------------------------------------
5763
5764       --  PROTECTED_TYPE_DECLARATION ::=
5765       --    protected type DEFINING_IDENTIFIER [KNOWN_DISCRIMINANT_PART]
5766       --      [ASPECT_SPECIFICATIONS]
5767       --    is [new INTERFACE_LIST with] PROTECTED_DEFINITION;
5768
5769       --  Note: protected type declarations are not permitted in Ada 83 mode
5770
5771       --  N_Protected_Type_Declaration
5772       --  Sloc points to PROTECTED
5773       --  Defining_Identifier (Node1)
5774       --  Discriminant_Specifications (List4) (set to No_List if no
5775       --   discriminant part)
5776       --  Interface_List (List2) (set to No_List if none)
5777       --  Protected_Definition (Node3)
5778       --  Corresponding_Body (Node5-Sem)
5779
5780       ---------------------------------------
5781       -- 9.4  Single Protected Declaration --
5782       ---------------------------------------
5783
5784       --  SINGLE_PROTECTED_DECLARATION ::=
5785       --    protected DEFINING_IDENTIFIER
5786       --      [ASPECT_SPECIFICATIONS]
5787       --    is [new INTERFACE_LIST with] PROTECTED_DEFINITION;
5788
5789       --  Note: single protected declarations are not allowed in Ada 83 mode
5790
5791       --  N_Single_Protected_Declaration
5792       --  Sloc points to PROTECTED
5793       --  Defining_Identifier (Node1)
5794       --  Interface_List (List2) (set to No_List if none)
5795       --  Protected_Definition (Node3)
5796
5797       -------------------------------
5798       -- 9.4  Protected Definition --
5799       -------------------------------
5800
5801       --  PROTECTED_DEFINITION ::=
5802       --      {PROTECTED_OPERATION_DECLARATION}
5803       --    [private
5804       --      {PROTECTED_ELEMENT_DECLARATION}]
5805       --    end [protected_IDENTIFIER]
5806
5807       --  N_Protected_Definition
5808       --  Sloc points to first token of protected definition
5809       --  Visible_Declarations (List2)
5810       --  Private_Declarations (List3) (set to No_List if no private part)
5811       --  End_Label (Node4)
5812
5813       ------------------------------------------
5814       -- 9.4  Protected Operation Declaration --
5815       ------------------------------------------
5816
5817       --  PROTECTED_OPERATION_DECLARATION ::=
5818       --    SUBPROGRAM_DECLARATION
5819       --  | ENTRY_DECLARATION
5820       --  | REPRESENTATION_CLAUSE
5821
5822       ----------------------------------------
5823       -- 9.4  Protected Element Declaration --
5824       ----------------------------------------
5825
5826       --  PROTECTED_ELEMENT_DECLARATION ::=
5827       --    PROTECTED_OPERATION_DECLARATION | COMPONENT_DECLARATION
5828
5829       -------------------------
5830       -- 9.4  Protected Body --
5831       -------------------------
5832
5833       --  PROTECTED_BODY ::=
5834       --    protected body DEFINING_IDENTIFIER
5835       --      [ASPECT_SPECIFICATIONS];
5836       --    is
5837       --      {PROTECTED_OPERATION_ITEM}
5838       --    end [protected_IDENTIFIER];
5839
5840       --  Note: protected bodies are not allowed in Ada 83 mode
5841
5842       --  Gigi restriction: This node never appears
5843
5844       --  N_Protected_Body
5845       --  Sloc points to PROTECTED
5846       --  Defining_Identifier (Node1)
5847       --  Declarations (List2) protected operation items (and pragmas)
5848       --  End_Label (Node4)
5849       --  Corresponding_Spec (Node5-Sem)
5850       --  Was_Originally_Stub (Flag13-Sem)
5851
5852       -----------------------------------
5853       -- 9.4  Protected Operation Item --
5854       -----------------------------------
5855
5856       --  PROTECTED_OPERATION_ITEM ::=
5857       --    SUBPROGRAM_DECLARATION
5858       --  | SUBPROGRAM_BODY
5859       --  | ENTRY_BODY
5860       --  | REPRESENTATION_CLAUSE
5861
5862       ------------------------------
5863       -- 9.5.2  Entry Declaration --
5864       ------------------------------
5865
5866       --  ENTRY_DECLARATION ::=
5867       --    [[not] overriding]
5868       --    entry DEFINING_IDENTIFIER
5869       --      [(DISCRETE_SUBTYPE_DEFINITION)] PARAMETER_PROFILE
5870       --        [ASPECT_SPECIFICATIONS];
5871
5872       --  N_Entry_Declaration
5873       --  Sloc points to ENTRY
5874       --  Defining_Identifier (Node1)
5875       --  Discrete_Subtype_Definition (Node4) (set to Empty if not present)
5876       --  Parameter_Specifications (List3) (set to No_List if no formal part)
5877       --  Corresponding_Body (Node5-Sem)
5878       --  Must_Override (Flag14) set if overriding indicator present
5879       --  Must_Not_Override (Flag15) set if not_overriding indicator present
5880
5881       --  Note: overriding indicator is an Ada 2005 feature
5882
5883       -----------------------------
5884       -- 9.5.2  Accept statement --
5885       -----------------------------
5886
5887       --  ACCEPT_STATEMENT ::=
5888       --    accept entry_DIRECT_NAME
5889       --      [(ENTRY_INDEX)] PARAMETER_PROFILE [do
5890       --        HANDLED_SEQUENCE_OF_STATEMENTS
5891       --    end [entry_IDENTIFIER]];
5892
5893       --  Gigi restriction: This node never appears
5894
5895       --  Note: there are no explicit declarations allowed in an accept
5896       --  statement. However, the implicit declarations for any statement
5897       --  identifiers (labels and block/loop identifiers) are declarations
5898       --  that belong logically to the accept statement, and that is why
5899       --  there is a Declarations field in this node.
5900
5901       --  N_Accept_Statement
5902       --  Sloc points to ACCEPT
5903       --  Entry_Direct_Name (Node1)
5904       --  Entry_Index (Node5) (set to Empty if not present)
5905       --  Parameter_Specifications (List3) (set to No_List if no formal part)
5906       --  Handled_Statement_Sequence (Node4)
5907       --  Declarations (List2) (set to No_List if no declarations)
5908
5909       ------------------------
5910       -- 9.5.2  Entry Index --
5911       ------------------------
5912
5913       --  ENTRY_INDEX ::= EXPRESSION
5914
5915       -----------------------
5916       -- 9.5.2  Entry Body --
5917       -----------------------
5918
5919       --  ENTRY_BODY ::=
5920       --    entry DEFINING_IDENTIFIER ENTRY_BODY_FORMAL_PART ENTRY_BARRIER is
5921       --      DECLARATIVE_PART
5922       --    begin
5923       --      HANDLED_SEQUENCE_OF_STATEMENTS
5924       --    end [entry_IDENTIFIER];
5925
5926       --  ENTRY_BARRIER ::= when CONDITION
5927
5928       --  Note: we store the CONDITION of the ENTRY_BARRIER in the node for
5929       --  the ENTRY_BODY_FORMAL_PART to avoid the N_Entry_Body node getting
5930       --  too full (it would otherwise have too many fields)
5931
5932       --  Gigi restriction: This node never appears
5933
5934       --  N_Entry_Body
5935       --  Sloc points to ENTRY
5936       --  Defining_Identifier (Node1)
5937       --  Entry_Body_Formal_Part (Node5)
5938       --  Declarations (List2)
5939       --  Handled_Statement_Sequence (Node4)
5940       --  Activation_Chain_Entity (Node3-Sem)
5941
5942       -----------------------------------
5943       -- 9.5.2  Entry Body Formal Part --
5944       -----------------------------------
5945
5946       --  ENTRY_BODY_FORMAL_PART ::=
5947       --    [(ENTRY_INDEX_SPECIFICATION)] PARAMETER_PROFILE
5948
5949       --  Note that an entry body formal part node is present even if it is
5950       --  empty. This reflects the grammar, in which it is the components of
5951       --  the entry body formal part that are optional, not the entry body
5952       --  formal part itself. Also this means that the barrier condition
5953       --  always has somewhere to be stored.
5954
5955       --  Gigi restriction: This node never appears
5956
5957       --  N_Entry_Body_Formal_Part
5958       --  Sloc points to first token
5959       --  Entry_Index_Specification (Node4) (set to Empty if not present)
5960       --  Parameter_Specifications (List3) (set to No_List if no formal part)
5961       --  Condition (Node1) from entry barrier of entry body
5962
5963       --------------------------
5964       -- 9.5.2  Entry Barrier --
5965       --------------------------
5966
5967       --  ENTRY_BARRIER ::= when CONDITION
5968
5969       --------------------------------------
5970       -- 9.5.2  Entry Index Specification --
5971       --------------------------------------
5972
5973       --  ENTRY_INDEX_SPECIFICATION ::=
5974       --    for DEFINING_IDENTIFIER in DISCRETE_SUBTYPE_DEFINITION
5975
5976       --  Gigi restriction: This node never appears
5977
5978       --  N_Entry_Index_Specification
5979       --  Sloc points to FOR
5980       --  Defining_Identifier (Node1)
5981       --  Discrete_Subtype_Definition (Node4)
5982
5983       ---------------------------------
5984       -- 9.5.3  Entry Call Statement --
5985       ---------------------------------
5986
5987       --  ENTRY_CALL_STATEMENT ::= entry_NAME [ACTUAL_PARAMETER_PART];
5988
5989       --  The parser may generate a procedure call for this construct. The
5990       --  semantic pass must correct this misidentification where needed.
5991
5992       --  Gigi restriction: This node never appears
5993
5994       --  N_Entry_Call_Statement
5995       --  Sloc points to first token of name
5996       --  Name (Node2)
5997       --  Parameter_Associations (List3) (set to No_List if no
5998       --   actual parameter part)
5999       --  First_Named_Actual (Node4-Sem)
6000
6001       ------------------------------
6002       -- 9.5.4  Requeue Statement --
6003       ------------------------------
6004
6005       --  REQUEUE_STATEMENT ::= requeue entry_NAME [with abort];
6006
6007       --  Note: requeue statements are not permitted in Ada 83 mode
6008
6009       --  Gigi restriction: This node never appears
6010
6011       --  N_Requeue_Statement
6012       --  Sloc points to REQUEUE
6013       --  Name (Node2)
6014       --  Abort_Present (Flag15)
6015
6016       --------------------------
6017       -- 9.6  Delay Statement --
6018       --------------------------
6019
6020       --  DELAY_STATEMENT ::=
6021       --    DELAY_UNTIL_STATEMENT
6022       --  | DELAY_RELATIVE_STATEMENT
6023
6024       --------------------------------
6025       -- 9.6  Delay Until Statement --
6026       --------------------------------
6027
6028       --  DELAY_UNTIL_STATEMENT ::= delay until delay_EXPRESSION;
6029
6030       --  Note: delay until statements are not permitted in Ada 83 mode
6031
6032       --  Gigi restriction: This node never appears
6033
6034       --  N_Delay_Until_Statement
6035       --  Sloc points to DELAY
6036       --  Expression (Node3)
6037
6038       -----------------------------------
6039       -- 9.6  Delay Relative Statement --
6040       -----------------------------------
6041
6042       --  DELAY_RELATIVE_STATEMENT ::= delay delay_EXPRESSION;
6043
6044       --  Gigi restriction: This node never appears
6045
6046       --  N_Delay_Relative_Statement
6047       --  Sloc points to DELAY
6048       --  Expression (Node3)
6049
6050       ---------------------------
6051       -- 9.7  Select Statement --
6052       ---------------------------
6053
6054       --  SELECT_STATEMENT ::=
6055       --    SELECTIVE_ACCEPT
6056       --  | TIMED_ENTRY_CALL
6057       --  | CONDITIONAL_ENTRY_CALL
6058       --  | ASYNCHRONOUS_SELECT
6059
6060       -----------------------------
6061       -- 9.7.1  Selective Accept --
6062       -----------------------------
6063
6064       --  SELECTIVE_ACCEPT ::=
6065       --    select
6066       --      [GUARD]
6067       --        SELECT_ALTERNATIVE
6068       --    {or
6069       --      [GUARD]
6070       --        SELECT_ALTERNATIVE}
6071       --    [else
6072       --      SEQUENCE_OF_STATEMENTS]
6073       --    end select;
6074
6075       --  Gigi restriction: This node never appears
6076
6077       --  Note: the guard expression, if present, appears in the node for
6078       --  the select alternative.
6079
6080       --  N_Selective_Accept
6081       --  Sloc points to SELECT
6082       --  Select_Alternatives (List1)
6083       --  Else_Statements (List4) (set to No_List if no else part)
6084
6085       ------------------
6086       -- 9.7.1  Guard --
6087       ------------------
6088
6089       --  GUARD ::= when CONDITION =>
6090
6091       --  As noted above, the CONDITION that is part of a GUARD is included
6092       --  in the node for the select alternative for convenience.
6093
6094       -------------------------------
6095       -- 9.7.1  Select Alternative --
6096       -------------------------------
6097
6098       --  SELECT_ALTERNATIVE ::=
6099       --    ACCEPT_ALTERNATIVE
6100       --  | DELAY_ALTERNATIVE
6101       --  | TERMINATE_ALTERNATIVE
6102
6103       -------------------------------
6104       -- 9.7.1  Accept Alternative --
6105       -------------------------------
6106
6107       --  ACCEPT_ALTERNATIVE ::=
6108       --    ACCEPT_STATEMENT [SEQUENCE_OF_STATEMENTS]
6109
6110       --  Gigi restriction: This node never appears
6111
6112       --  N_Accept_Alternative
6113       --  Sloc points to ACCEPT
6114       --  Accept_Statement (Node2)
6115       --  Condition (Node1) from the guard (set to Empty if no guard present)
6116       --  Statements (List3) (set to Empty_List if no statements)
6117       --  Pragmas_Before (List4) pragmas before alt (set to No_List if none)
6118       --  Accept_Handler_Records (List5-Sem)
6119
6120       ------------------------------
6121       -- 9.7.1  Delay Alternative --
6122       ------------------------------
6123
6124       --  DELAY_ALTERNATIVE ::=
6125       --    DELAY_STATEMENT [SEQUENCE_OF_STATEMENTS]
6126
6127       --  Gigi restriction: This node never appears
6128
6129       --  N_Delay_Alternative
6130       --  Sloc points to DELAY
6131       --  Delay_Statement (Node2)
6132       --  Condition (Node1) from the guard (set to Empty if no guard present)
6133       --  Statements (List3) (set to Empty_List if no statements)
6134       --  Pragmas_Before (List4) pragmas before alt (set to No_List if none)
6135
6136       ----------------------------------
6137       -- 9.7.1  Terminate Alternative --
6138       ----------------------------------
6139
6140       --  TERMINATE_ALTERNATIVE ::= terminate;
6141
6142       --  Gigi restriction: This node never appears
6143
6144       --  N_Terminate_Alternative
6145       --  Sloc points to TERMINATE
6146       --  Condition (Node1) from the guard (set to Empty if no guard present)
6147       --  Pragmas_Before (List4) pragmas before alt (set to No_List if none)
6148       --  Pragmas_After (List5) pragmas after alt (set to No_List if none)
6149
6150       -----------------------------
6151       -- 9.7.2  Timed Entry Call --
6152       -----------------------------
6153
6154       --  TIMED_ENTRY_CALL ::=
6155       --    select
6156       --      ENTRY_CALL_ALTERNATIVE
6157       --    or
6158       --      DELAY_ALTERNATIVE
6159       --    end select;
6160
6161       --  Gigi restriction: This node never appears
6162
6163       --  N_Timed_Entry_Call
6164       --  Sloc points to SELECT
6165       --  Entry_Call_Alternative (Node1)
6166       --  Delay_Alternative (Node4)
6167
6168       -----------------------------------
6169       -- 9.7.2  Entry Call Alternative --
6170       -----------------------------------
6171
6172       --  ENTRY_CALL_ALTERNATIVE ::=
6173       --    PROCEDURE_OR_ENTRY_CALL [SEQUENCE_OF_STATEMENTS]
6174
6175       --  PROCEDURE_OR_ENTRY_CALL ::=
6176       --    PROCEDURE_CALL_STATEMENT | ENTRY_CALL_STATEMENT
6177
6178       --  Gigi restriction: This node never appears
6179
6180       --  N_Entry_Call_Alternative
6181       --  Sloc points to first token of entry call statement
6182       --  Entry_Call_Statement (Node1)
6183       --  Statements (List3) (set to Empty_List if no statements)
6184       --  Pragmas_Before (List4) pragmas before alt (set to No_List if none)
6185
6186       -----------------------------------
6187       -- 9.7.3  Conditional Entry Call --
6188       -----------------------------------
6189
6190       --  CONDITIONAL_ENTRY_CALL ::=
6191       --    select
6192       --      ENTRY_CALL_ALTERNATIVE
6193       --    else
6194       --      SEQUENCE_OF_STATEMENTS
6195       --    end select;
6196
6197       --  Gigi restriction: This node never appears
6198
6199       --  N_Conditional_Entry_Call
6200       --  Sloc points to SELECT
6201       --  Entry_Call_Alternative (Node1)
6202       --  Else_Statements (List4)
6203
6204       --------------------------------
6205       -- 9.7.4  Asynchronous Select --
6206       --------------------------------
6207
6208       --  ASYNCHRONOUS_SELECT ::=
6209       --    select
6210       --      TRIGGERING_ALTERNATIVE
6211       --    then abort
6212       --      ABORTABLE_PART
6213       --    end select;
6214
6215       --  Note: asynchronous select is not permitted in Ada 83 mode
6216
6217       --  Gigi restriction: This node never appears
6218
6219       --  N_Asynchronous_Select
6220       --  Sloc points to SELECT
6221       --  Triggering_Alternative (Node1)
6222       --  Abortable_Part (Node2)
6223
6224       -----------------------------------
6225       -- 9.7.4  Triggering Alternative --
6226       -----------------------------------
6227
6228       --  TRIGGERING_ALTERNATIVE ::=
6229       --    TRIGGERING_STATEMENT [SEQUENCE_OF_STATEMENTS]
6230
6231       --  Gigi restriction: This node never appears
6232
6233       --  N_Triggering_Alternative
6234       --  Sloc points to first token of triggering statement
6235       --  Triggering_Statement (Node1)
6236       --  Statements (List3) (set to Empty_List if no statements)
6237       --  Pragmas_Before (List4) pragmas before alt (set to No_List if none)
6238
6239       ---------------------------------
6240       -- 9.7.4  Triggering Statement --
6241       ---------------------------------
6242
6243       --  TRIGGERING_STATEMENT ::= PROCEDURE_OR_ENTRY_CALL | DELAY_STATEMENT
6244
6245       ---------------------------
6246       -- 9.7.4  Abortable Part --
6247       ---------------------------
6248
6249       --  ABORTABLE_PART ::= SEQUENCE_OF_STATEMENTS
6250
6251       --  Gigi restriction: This node never appears
6252
6253       --  N_Abortable_Part
6254       --  Sloc points to ABORT
6255       --  Statements (List3)
6256
6257       --------------------------
6258       -- 9.8  Abort Statement --
6259       --------------------------
6260
6261       --  ABORT_STATEMENT ::= abort task_NAME {, task_NAME};
6262
6263       --  Gigi restriction: This node never appears
6264
6265       --  N_Abort_Statement
6266       --  Sloc points to ABORT
6267       --  Names (List2)
6268
6269       -------------------------
6270       -- 10.1.1  Compilation --
6271       -------------------------
6272
6273       --  COMPILATION ::= {COMPILATION_UNIT}
6274
6275       --  There is no explicit node in the tree for a compilation, since in
6276       --  general the compiler is processing only a single compilation unit
6277       --  at a time. It is possible to parse multiple units in syntax check
6278       --  only mode, but the trees are discarded in that case.
6279
6280       ------------------------------
6281       -- 10.1.1  Compilation Unit --
6282       ------------------------------
6283
6284       --  COMPILATION_UNIT ::=
6285       --    CONTEXT_CLAUSE LIBRARY_ITEM
6286       --  | CONTEXT_CLAUSE SUBUNIT
6287
6288       --  The N_Compilation_Unit node itself represents the above syntax.
6289       --  However, there are two additional items not reflected in the above
6290       --  syntax. First we have the global declarations that are added by the
6291       --  code generator. These are outer level declarations (so they cannot
6292       --  be represented as being inside the units). An example is the wrapper
6293       --  subprograms that are created to do ABE checking. As always a list of
6294       --  declarations can contain actions as well (i.e. statements), and such
6295       --  statements are executed as part of the elaboration of the unit. Note
6296       --  that all such declarations are elaborated before the library unit.
6297
6298       --  Similarly, certain actions need to be elaborated at the completion
6299       --  of elaboration of the library unit (notably the statement that sets
6300       --  the Boolean flag indicating that elaboration is complete).
6301
6302       --  The third item not reflected in the syntax is pragmas that appear
6303       --  after the compilation unit. As always pragmas are a problem since
6304       --  they are not part of the formal syntax, but can be stuck into the
6305       --  source following a set of ad hoc rules, and we have to find an ad
6306       --  hoc way of sticking them into the tree. For pragmas that appear
6307       --  before the library unit, we just consider them to be part of the
6308       --  context clause, and pragmas can appear in the Context_Items list
6309       --  of the compilation unit. However, pragmas can also appear after
6310       --  the library item.
6311
6312       --  To deal with all these problems, we create an auxiliary node for
6313       --  a compilation unit, referenced from the N_Compilation_Unit node,
6314       --  that contains these items.
6315
6316       --  N_Compilation_Unit
6317       --  Sloc points to first token of defining unit name
6318       --  Library_Unit (Node4-Sem) corresponding/parent spec/body
6319       --  Context_Items (List1) context items and pragmas preceding unit
6320       --  Private_Present (Flag15) set if library unit has private keyword
6321       --  Unit (Node2) library item or subunit
6322       --  Aux_Decls_Node (Node5) points to the N_Compilation_Unit_Aux node
6323       --  Has_No_Elaboration_Code (Flag17-Sem)
6324       --  Body_Required (Flag13-Sem) set for spec if body is required
6325       --  Acts_As_Spec (Flag4-Sem) flag for subprogram body with no spec
6326       --  Context_Pending (Flag16-Sem)
6327       --  First_Inlined_Subprogram (Node3-Sem)
6328       --  Has_Pragma_Suppress_All (Flag14-Sem)
6329
6330       --  N_Compilation_Unit_Aux
6331       --  Sloc is a copy of the Sloc from the N_Compilation_Unit node
6332       --  Declarations (List2) (set to No_List if no global declarations)
6333       --  Actions (List1) (set to No_List if no actions)
6334       --  Pragmas_After (List5) pragmas after unit (set to No_List if none)
6335       --  Config_Pragmas (List4) config pragmas (set to Empty_List if none)
6336       --  Default_Storage_Pool (Node3-Sem)
6337
6338       --------------------------
6339       -- 10.1.1  Library Item --
6340       --------------------------
6341
6342       --  LIBRARY_ITEM ::=
6343       --    [private] LIBRARY_UNIT_DECLARATION
6344       --  | LIBRARY_UNIT_BODY
6345       --  | [private] LIBRARY_UNIT_RENAMING_DECLARATION
6346
6347       --  Note: PRIVATE is not allowed in Ada 83 mode
6348
6349       --  There is no explicit node in the tree for library item, instead
6350       --  the declaration or body, and the flag for private if present,
6351       --  appear in the N_Compilation_Unit node.
6352
6353       --------------------------------------
6354       -- 10.1.1  Library Unit Declaration --
6355       --------------------------------------
6356
6357       --  LIBRARY_UNIT_DECLARATION ::=
6358       --    SUBPROGRAM_DECLARATION | PACKAGE_DECLARATION
6359       --  | GENERIC_DECLARATION    | GENERIC_INSTANTIATION
6360
6361       -----------------------------------------------
6362       -- 10.1.1  Library Unit Renaming Declaration --
6363       -----------------------------------------------
6364
6365       --  LIBRARY_UNIT_RENAMING_DECLARATION ::=
6366       --    PACKAGE_RENAMING_DECLARATION
6367       --  | GENERIC_RENAMING_DECLARATION
6368       --  | SUBPROGRAM_RENAMING_DECLARATION
6369
6370       -------------------------------
6371       -- 10.1.1  Library unit body --
6372       -------------------------------
6373
6374       --  LIBRARY_UNIT_BODY ::= SUBPROGRAM_BODY | PACKAGE_BODY
6375
6376       ------------------------------
6377       -- 10.1.1  Parent Unit Name --
6378       ------------------------------
6379
6380       --  PARENT_UNIT_NAME ::= NAME
6381
6382       ----------------------------
6383       -- 10.1.2  Context clause --
6384       ----------------------------
6385
6386       --  CONTEXT_CLAUSE ::= {CONTEXT_ITEM}
6387
6388       --  The context clause can include pragmas, and any pragmas that appear
6389       --  before the context clause proper (i.e. all configuration pragmas,
6390       --  also appear at the front of this list).
6391
6392       --------------------------
6393       -- 10.1.2  Context_Item --
6394       --------------------------
6395
6396       --  CONTEXT_ITEM ::= WITH_CLAUSE | USE_CLAUSE  | WITH_TYPE_CLAUSE
6397
6398       -------------------------
6399       -- 10.1.2  With clause --
6400       -------------------------
6401
6402       --  WITH_CLAUSE ::=
6403       --    with library_unit_NAME {,library_unit_NAME};
6404
6405       --  A separate With clause is built for each name, so that we have
6406       --  a Corresponding_Spec field for each with'ed spec. The flags
6407       --  First_Name and Last_Name are used to reconstruct the exact
6408       --  source form. When a list of names appears in one with clause,
6409       --  the first name in the list has First_Name set, and the last
6410       --  has Last_Name set. If the with clause has only one name, then
6411       --  both of the flags First_Name and Last_Name are set in this name.
6412
6413       --  Note: in the case of implicit with's that are installed by the
6414       --  Rtsfind routine, Implicit_With is set, and the Sloc is typically
6415       --  set to Standard_Location, but it is incorrect to test the Sloc
6416       --  to find out if a with clause is implicit, test the flag instead.
6417
6418       --  N_With_Clause
6419       --  Sloc points to first token of library unit name
6420       --  Withed_Body (Node1-Sem)
6421       --  Name (Node2)
6422       --  Next_Implicit_With (Node3-Sem)
6423       --  Library_Unit (Node4-Sem)
6424       --  Corresponding_Spec (Node5-Sem)
6425       --  First_Name (Flag5) (set to True if first name or only one name)
6426       --  Last_Name (Flag6) (set to True if last name or only one name)
6427       --  Context_Installed (Flag13-Sem)
6428       --  Elaborate_Present (Flag4-Sem)
6429       --  Elaborate_All_Present (Flag14-Sem)
6430       --  Elaborate_All_Desirable (Flag9-Sem)
6431       --  Elaborate_Desirable (Flag11-Sem)
6432       --  Private_Present (Flag15) set if with_clause has private keyword
6433       --  Implicit_With (Flag16-Sem)
6434       --  Implicit_With_From_Instantiation (Flag12-Sem)
6435       --  Limited_Present (Flag17) set if LIMITED is present
6436       --  Limited_View_Installed (Flag18-Sem)
6437       --  Unreferenced_In_Spec (Flag7-Sem)
6438       --  No_Entities_Ref_In_Spec (Flag8-Sem)
6439
6440       --  Note: Limited_Present and Limited_View_Installed are used to support
6441       --  the implementation of Ada 2005 (AI-50217).
6442
6443       --  Similarly, Private_Present is used to support the implementation of
6444       --  Ada 2005 (AI-50262).
6445
6446       --  Note: if the WITH clause refers to a standard library unit, then a
6447       --  limited with clause is changed into a normal with clause, because we
6448       --  are not prepared to deal with limited with in the context of Rtsfind.
6449       --  So in this case, the Limited_Present flag will be False in the final
6450       --  tree. However, we do NOT do this transformation in ASIS mode, so for
6451       --  ASIS the flag will remain set in this situation.
6452
6453       ----------------------
6454       -- With_Type clause --
6455       ----------------------
6456
6457       --  This is a GNAT extension, used to implement mutually recursive
6458       --  types declared in different packages.
6459
6460       --  Note: this is now obsolete. The functionality of this construct
6461       --  is now implemented by the Ada 2005 limited_with_clause.
6462
6463       ---------------------
6464       -- 10.2  Body stub --
6465       ---------------------
6466
6467       --  BODY_STUB ::=
6468       --    SUBPROGRAM_BODY_STUB
6469       --  | PACKAGE_BODY_STUB
6470       --  | TASK_BODY_STUB
6471       --  | PROTECTED_BODY_STUB
6472
6473       ----------------------------------
6474       -- 10.1.3  Subprogram Body Stub --
6475       ----------------------------------
6476
6477       --  SUBPROGRAM_BODY_STUB ::=
6478       --    SUBPROGRAM_SPECIFICATION is separate
6479       --      [ASPECT_SPECIFICATION];
6480
6481       --  N_Subprogram_Body_Stub
6482       --  Sloc points to FUNCTION or PROCEDURE
6483       --  Specification (Node1)
6484       --  Corresponding_Spec_Of_Stub (Node2-Sem)
6485       --  Library_Unit (Node4-Sem) points to the subunit
6486       --  Corresponding_Body (Node5-Sem)
6487
6488       -------------------------------
6489       -- 10.1.3  Package Body Stub --
6490       -------------------------------
6491
6492       --  PACKAGE_BODY_STUB ::=
6493       --    package body DEFINING_IDENTIFIER is separate
6494       --      [ASPECT_SPECIFICATION];
6495
6496       --  N_Package_Body_Stub
6497       --  Sloc points to PACKAGE
6498       --  Defining_Identifier (Node1)
6499       --  Corresponding_Spec_Of_Stub (Node2-Sem)
6500       --  Library_Unit (Node4-Sem) points to the subunit
6501       --  Corresponding_Body (Node5-Sem)
6502
6503       ----------------------------
6504       -- 10.1.3  Task Body Stub --
6505       ----------------------------
6506
6507       --  TASK_BODY_STUB ::=
6508       --    task body DEFINING_IDENTIFIER is separate
6509       --      [ASPECT_SPECIFICATION];
6510
6511       --  N_Task_Body_Stub
6512       --  Sloc points to TASK
6513       --  Defining_Identifier (Node1)
6514       --  Corresponding_Spec_Of_Stub (Node2-Sem)
6515       --  Library_Unit (Node4-Sem) points to the subunit
6516       --  Corresponding_Body (Node5-Sem)
6517
6518       ---------------------------------
6519       -- 10.1.3  Protected Body Stub --
6520       ---------------------------------
6521
6522       --  PROTECTED_BODY_STUB ::=
6523       --    protected body DEFINING_IDENTIFIER is separate
6524       --      [ASPECT_SPECIFICATION];
6525
6526       --  Note: protected body stubs are not allowed in Ada 83 mode
6527
6528       --  N_Protected_Body_Stub
6529       --  Sloc points to PROTECTED
6530       --  Defining_Identifier (Node1)
6531       --  Corresponding_Spec_Of_Stub (Node2-Sem)
6532       --  Library_Unit (Node4-Sem) points to the subunit
6533       --  Corresponding_Body (Node5-Sem)
6534
6535       ---------------------
6536       -- 10.1.3  Subunit --
6537       ---------------------
6538
6539       --  SUBUNIT ::= separate (PARENT_UNIT_NAME) PROPER_BODY
6540
6541       --  N_Subunit
6542       --  Sloc points to SEPARATE
6543       --  Name (Node2) is the name of the parent unit
6544       --  Proper_Body (Node1) is the subunit body
6545       --  Corresponding_Stub (Node3-Sem) is the stub declaration for the unit.
6546
6547       ---------------------------------
6548       -- 11.1  Exception Declaration --
6549       ---------------------------------
6550
6551       --  EXCEPTION_DECLARATION ::= DEFINING_IDENTIFIER_LIST : exception
6552       --    [ASPECT_SPECIFICATIONS];
6553
6554       --  For consistency with object declarations etc., the parser converts
6555       --  the case of multiple identifiers being declared to a series of
6556       --  declarations in which the expression is copied, using the More_Ids
6557       --  and Prev_Ids flags to remember the source form as described in the
6558       --  section on "Handling of Defining Identifier Lists".
6559
6560       --  N_Exception_Declaration
6561       --  Sloc points to EXCEPTION
6562       --  Defining_Identifier (Node1)
6563       --  Expression (Node3-Sem)
6564       --  Renaming_Exception (Node2-Sem)
6565       --  More_Ids (Flag5) (set to False if no more identifiers in list)
6566       --  Prev_Ids (Flag6) (set to False if no previous identifiers in list)
6567
6568       ------------------------------------------
6569       -- 11.2  Handled Sequence Of Statements --
6570       ------------------------------------------
6571
6572       --  HANDLED_SEQUENCE_OF_STATEMENTS ::=
6573       --      SEQUENCE_OF_STATEMENTS
6574       --    [exception
6575       --      EXCEPTION_HANDLER
6576       --      {EXCEPTION_HANDLER}]
6577       --    [at end
6578       --      cleanup_procedure_call (param, param, param, ...);]
6579
6580       --  The AT END phrase is a GNAT extension to provide for cleanups. It is
6581       --  used only internally currently, but is considered to be syntactic.
6582       --  At the moment, the only cleanup action allowed is a single call to
6583       --  a parameterless procedure, and the Identifier field of the node is
6584       --  the procedure to be called. The cleanup action occurs whenever the
6585       --  sequence of statements is left for any reason. The possible reasons
6586       --  are:
6587       --      1. reaching the end of the sequence
6588       --      2. exit, return, or goto
6589       --      3. exception or abort
6590       --  For some back ends, such as gcc with ZCX, "at end" is implemented
6591       --  entirely in the back end. In this case, a handled sequence of
6592       --  statements with an "at end" cannot also have exception handlers.
6593       --  For other back ends, such as gcc with front-end SJLJ, the
6594       --  implementation is split between the front end and back end; the front
6595       --  end implements 3, and the back end implements 1 and 2. In this case,
6596       --  if there is an "at end", the front end inserts the appropriate
6597       --  exception handler, and this handler takes precedence over "at end"
6598       --  in case of exception.
6599
6600       --  The inserted exception handler is of the form:
6601
6602       --     when all others =>
6603       --        cleanup;
6604       --        raise;
6605
6606       --  where cleanup is the procedure to be called. The reason we do this is
6607       --  so that the front end can handle the necessary entries in the
6608       --  exception tables, and other exception handler actions required as
6609       --  part of the normal handling for exception handlers.
6610
6611       --  The AT END cleanup handler protects only the sequence of statements
6612       --  (not the associated declarations of the parent), just like exception
6613       --  handlers. The big difference is that the cleanup procedure is called
6614       --  on either a normal or an abnormal exit from the statement sequence.
6615
6616       --  Note: the list of Exception_Handlers can contain pragmas as well
6617       --  as actual handlers. In practice these pragmas can only occur at
6618       --  the start of the list, since any pragmas occurring later on will
6619       --  be included in the statement list of the corresponding handler.
6620
6621       --  Note: although in the Ada syntax, the sequence of statements in
6622       --  a handled sequence of statements can only contain statements, we
6623       --  allow free mixing of declarations and statements in the resulting
6624       --  expanded tree. This is for example used to deal with the case of
6625       --  a cleanup procedure that must handle declarations as well as the
6626       --  statements of a block.
6627
6628       --  Note: the cleanup_procedure_call does not go through the common
6629       --  processing for calls, which in particular means that it will not be
6630       --  automatically inlined in all cases, even though the procedure to be
6631       --  called is marked inline. More specifically, if the procedure comes
6632       --  from another unit than the main source unit, for example a run-time
6633       --  unit, then it needs to be manually added to the list of bodies to be
6634       --  inlined by invoking Add_Inlined_Body on it.
6635
6636       --  N_Handled_Sequence_Of_Statements
6637       --  Sloc points to first token of first statement
6638       --  Statements (List3)
6639       --  End_Label (Node4) (set to Empty if expander generated)
6640       --  Exception_Handlers (List5) (set to No_List if none present)
6641       --  At_End_Proc (Node1) (set to Empty if no clean up procedure)
6642       --  First_Real_Statement (Node2-Sem)
6643
6644       --  Note: the parent always contains a Declarations field which contains
6645       --  declarations associated with the handled sequence of statements. This
6646       --  is true even in the case of an accept statement (see description of
6647       --  the N_Accept_Statement node).
6648
6649       --  End_Label refers to the containing construct
6650
6651       -----------------------------
6652       -- 11.2  Exception Handler --
6653       -----------------------------
6654
6655       --  EXCEPTION_HANDLER ::=
6656       --    when [CHOICE_PARAMETER_SPECIFICATION :]
6657       --      EXCEPTION_CHOICE {| EXCEPTION_CHOICE} =>
6658       --        SEQUENCE_OF_STATEMENTS
6659
6660       --  Note: choice parameter specification is not allowed in Ada 83 mode
6661
6662       --  N_Exception_Handler
6663       --  Sloc points to WHEN
6664       --  Choice_Parameter (Node2) (set to Empty if not present)
6665       --  Exception_Choices (List4)
6666       --  Statements (List3)
6667       --  Exception_Label (Node5-Sem) (set to Empty of not present)
6668       --  Local_Raise_Statements (Elist1-Sem) (set to No_Elist if not present)
6669       --  Local_Raise_Not_OK (Flag7-Sem)
6670       --  Has_Local_Raise (Flag8-Sem)
6671
6672       ------------------------------------------
6673       -- 11.2  Choice parameter specification --
6674       ------------------------------------------
6675
6676       --  CHOICE_PARAMETER_SPECIFICATION ::= DEFINING_IDENTIFIER
6677
6678       ----------------------------
6679       -- 11.2  Exception Choice --
6680       ----------------------------
6681
6682       --  EXCEPTION_CHOICE ::= exception_NAME | others
6683
6684       --  Except in the case of OTHERS, no explicit node appears in the tree
6685       --  for exception choice. Instead the exception name appears directly.
6686       --  An OTHERS choice is represented by a N_Others_Choice node (see
6687       --  section 3.8.1.
6688
6689       --  Note: for the exception choice created for an at end handler, the
6690       --  exception choice is an N_Others_Choice node with All_Others set.
6691
6692       ---------------------------
6693       -- 11.3  Raise Statement --
6694       ---------------------------
6695
6696       --  RAISE_STATEMENT ::= raise [exception_NAME];
6697
6698       --  In Ada 2005, we have
6699
6700       --  RAISE_STATEMENT ::=
6701       --    raise; | raise exception_NAME [with string_EXPRESSION];
6702
6703       --  N_Raise_Statement
6704       --  Sloc points to RAISE
6705       --  Name (Node2) (set to Empty if no exception name present)
6706       --  Expression (Node3) (set to Empty if no expression present)
6707       --  From_At_End (Flag4-Sem)
6708
6709       ----------------------------
6710       -- 11.3  Raise Expression --
6711       ----------------------------
6712
6713       --  RAISE_EXPRESSION ::= raise exception_NAME [with string_EXPRESSION]
6714
6715       --  N_Raise_Expression
6716       --  Sloc points to RAISE
6717       --  Name (Node2) (always present)
6718       --  Expression (Node3) (set to Empty if no expression present)
6719       --  Convert_To_Return_False (Flag13-Sem)
6720       --  plus fields for expression
6721
6722       -------------------------------
6723       -- 12.1  Generic Declaration --
6724       -------------------------------
6725
6726       --  GENERIC_DECLARATION ::=
6727       --    GENERIC_SUBPROGRAM_DECLARATION | GENERIC_PACKAGE_DECLARATION
6728
6729       ------------------------------------------
6730       -- 12.1  Generic Subprogram Declaration --
6731       ------------------------------------------
6732
6733       --  GENERIC_SUBPROGRAM_DECLARATION ::=
6734       --    GENERIC_FORMAL_PART SUBPROGRAM_SPECIFICATION
6735       --      [ASPECT_SPECIFICATIONS];
6736
6737       --  Note: Generic_Formal_Declarations can include pragmas
6738
6739       --  N_Generic_Subprogram_Declaration
6740       --  Sloc points to GENERIC
6741       --  Specification (Node1) subprogram specification
6742       --  Corresponding_Body (Node5-Sem)
6743       --  Generic_Formal_Declarations (List2) from generic formal part
6744       --  Parent_Spec (Node4-Sem)
6745
6746       ---------------------------------------
6747       -- 12.1  Generic Package Declaration --
6748       ---------------------------------------
6749
6750       --  GENERIC_PACKAGE_DECLARATION ::=
6751       --    GENERIC_FORMAL_PART PACKAGE_SPECIFICATION
6752       --      [ASPECT_SPECIFICATIONS];
6753
6754       --  Note: when we do generics right, the Activation_Chain_Entity entry
6755       --  for this node can be removed (since the expander won't see generic
6756       --  units any more)???.
6757
6758       --  Note: Generic_Formal_Declarations can include pragmas
6759
6760       --  N_Generic_Package_Declaration
6761       --  Sloc points to GENERIC
6762       --  Specification (Node1) package specification
6763       --  Corresponding_Body (Node5-Sem)
6764       --  Generic_Formal_Declarations (List2) from generic formal part
6765       --  Parent_Spec (Node4-Sem)
6766       --  Activation_Chain_Entity (Node3-Sem)
6767
6768       -------------------------------
6769       -- 12.1  Generic Formal Part --
6770       -------------------------------
6771
6772       --  GENERIC_FORMAL_PART ::=
6773       --    generic {GENERIC_FORMAL_PARAMETER_DECLARATION | USE_CLAUSE}
6774
6775       ------------------------------------------------
6776       -- 12.1  Generic Formal Parameter Declaration --
6777       ------------------------------------------------
6778
6779       --  GENERIC_FORMAL_PARAMETER_DECLARATION ::=
6780       --    FORMAL_OBJECT_DECLARATION
6781       --  | FORMAL_TYPE_DECLARATION
6782       --  | FORMAL_SUBPROGRAM_DECLARATION
6783       --  | FORMAL_PACKAGE_DECLARATION
6784
6785       ---------------------------------
6786       -- 12.3  Generic Instantiation --
6787       ---------------------------------
6788
6789       --  GENERIC_INSTANTIATION ::=
6790       --    package DEFINING_PROGRAM_UNIT_NAME is
6791       --      new generic_package_NAME [GENERIC_ACTUAL_PART]
6792       --        [ASPECT_SPECIFICATIONS];
6793       --  | [[not] overriding]
6794       --    procedure DEFINING_PROGRAM_UNIT_NAME is
6795       --      new generic_procedure_NAME [GENERIC_ACTUAL_PART]
6796       --        [ASPECT_SPECIFICATIONS];
6797       --  | [[not] overriding]
6798       --    function DEFINING_DESIGNATOR is
6799       --      new generic_function_NAME [GENERIC_ACTUAL_PART]
6800       --        [ASPECT_SPECIFICATIONS];
6801
6802       --  N_Package_Instantiation
6803       --  Sloc points to PACKAGE
6804       --  Defining_Unit_Name (Node1)
6805       --  Name (Node2)
6806       --  Generic_Associations (List3) (set to No_List if no
6807       --   generic actual part)
6808       --  Parent_Spec (Node4-Sem)
6809       --  Instance_Spec (Node5-Sem)
6810       --  ABE_Is_Certain (Flag18-Sem)
6811
6812       --  N_Procedure_Instantiation
6813       --  Sloc points to PROCEDURE
6814       --  Defining_Unit_Name (Node1)
6815       --  Name (Node2)
6816       --  Parent_Spec (Node4-Sem)
6817       --  Generic_Associations (List3) (set to No_List if no
6818       --   generic actual part)
6819       --  Instance_Spec (Node5-Sem)
6820       --  Must_Override (Flag14) set if overriding indicator present
6821       --  Must_Not_Override (Flag15) set if not_overriding indicator present
6822       --  ABE_Is_Certain (Flag18-Sem)
6823
6824       --  N_Function_Instantiation
6825       --  Sloc points to FUNCTION
6826       --  Defining_Unit_Name (Node1)
6827       --  Name (Node2)
6828       --  Generic_Associations (List3) (set to No_List if no
6829       --   generic actual part)
6830       --  Parent_Spec (Node4-Sem)
6831       --  Instance_Spec (Node5-Sem)
6832       --  Must_Override (Flag14) set if overriding indicator present
6833       --  Must_Not_Override (Flag15) set if not_overriding indicator present
6834       --  ABE_Is_Certain (Flag18-Sem)
6835
6836       --  Note: overriding indicator is an Ada 2005 feature
6837
6838       -------------------------------
6839       -- 12.3  Generic Actual Part --
6840       -------------------------------
6841
6842       --  GENERIC_ACTUAL_PART ::=
6843       --    (GENERIC_ASSOCIATION {, GENERIC_ASSOCIATION})
6844
6845       -------------------------------
6846       -- 12.3  Generic Association --
6847       -------------------------------
6848
6849       --  GENERIC_ASSOCIATION ::=
6850       --    [generic_formal_parameter_SELECTOR_NAME =>]
6851
6852       --  Note: unlike the procedure call case, a generic association node
6853       --  is generated for every association, even if no formal parameter
6854       --  selector name is present. In this case the parser will leave the
6855       --  Selector_Name field set to Empty, to be filled in later by the
6856       --  semantic pass.
6857
6858       --  In Ada 2005, a formal may be associated with a box, if the
6859       --  association is part of the list of actuals for a formal package.
6860       --  If the association is given by  OTHERS => <>, the association is
6861       --  an N_Others_Choice.
6862
6863       --  N_Generic_Association
6864       --  Sloc points to first token of generic association
6865       --  Selector_Name (Node2) (set to Empty if no formal
6866       --   parameter selector name)
6867       --  Explicit_Generic_Actual_Parameter (Node1) (Empty if box present)
6868       --  Box_Present (Flag15) (for formal_package associations with a box)
6869
6870       ---------------------------------------------
6871       -- 12.3  Explicit Generic Actual Parameter --
6872       ---------------------------------------------
6873
6874       --  EXPLICIT_GENERIC_ACTUAL_PARAMETER ::=
6875       --    EXPRESSION      | variable_NAME   | subprogram_NAME
6876       --  | entry_NAME      | SUBTYPE_MARK    | package_instance_NAME
6877
6878       -------------------------------------
6879       -- 12.4  Formal Object Declaration --
6880       -------------------------------------
6881
6882       --  FORMAL_OBJECT_DECLARATION ::=
6883       --    DEFINING_IDENTIFIER_LIST :
6884       --      MODE [NULL_EXCLUSION] SUBTYPE_MARK [:= DEFAULT_EXPRESSION]
6885       --        [ASPECT_SPECIFICATIONS];
6886       --  | DEFINING_IDENTIFIER_LIST :
6887       --      MODE ACCESS_DEFINITION [:= DEFAULT_EXPRESSION]
6888       --        [ASPECT_SPECIFICATIONS];
6889
6890       --  Although the syntax allows multiple identifiers in the list, the
6891       --  semantics is as though successive declarations were given with
6892       --  identical type definition and expression components. To simplify
6893       --  semantic processing, the parser represents a multiple declaration
6894       --  case as a sequence of single declarations, using the More_Ids and
6895       --  Prev_Ids flags to preserve the original source form as described
6896       --  in the section on "Handling of Defining Identifier Lists".
6897
6898       --  N_Formal_Object_Declaration
6899       --  Sloc points to first identifier
6900       --  Defining_Identifier (Node1)
6901       --  In_Present (Flag15)
6902       --  Out_Present (Flag17)
6903       --  Null_Exclusion_Present (Flag11) (set to False if not present)
6904       --  Subtype_Mark (Node4) (set to Empty if not present)
6905       --  Access_Definition (Node3) (set to Empty if not present)
6906       --  Default_Expression (Node5) (set to Empty if no default expression)
6907       --  More_Ids (Flag5) (set to False if no more identifiers in list)
6908       --  Prev_Ids (Flag6) (set to False if no previous identifiers in list)
6909
6910       -----------------------------------
6911       -- 12.5  Formal Type Declaration --
6912       -----------------------------------
6913
6914       --  FORMAL_TYPE_DECLARATION ::=
6915       --    type DEFINING_IDENTIFIER [DISCRIMINANT_PART]
6916       --      is FORMAL_TYPE_DEFINITION
6917       --        [ASPECT_SPECIFICATIONS];
6918       --  | type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [is tagged]
6919
6920       --  N_Formal_Type_Declaration
6921       --  Sloc points to TYPE
6922       --  Defining_Identifier (Node1)
6923       --  Formal_Type_Definition (Node3)
6924       --  Discriminant_Specifications (List4) (set to No_List if no
6925       --   discriminant part)
6926       --  Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
6927
6928       ----------------------------------
6929       -- 12.5  Formal type definition --
6930       ----------------------------------
6931
6932       --  FORMAL_TYPE_DEFINITION ::=
6933       --    FORMAL_PRIVATE_TYPE_DEFINITION
6934       --  | FORMAL_DERIVED_TYPE_DEFINITION
6935       --  | FORMAL_DISCRETE_TYPE_DEFINITION
6936       --  | FORMAL_SIGNED_INTEGER_TYPE_DEFINITION
6937       --  | FORMAL_MODULAR_TYPE_DEFINITION
6938       --  | FORMAL_FLOATING_POINT_DEFINITION
6939       --  | FORMAL_ORDINARY_FIXED_POINT_DEFINITION
6940       --  | FORMAL_DECIMAL_FIXED_POINT_DEFINITION
6941       --  | FORMAL_ARRAY_TYPE_DEFINITION
6942       --  | FORMAL_ACCESS_TYPE_DEFINITION
6943       --  | FORMAL_INTERFACE_TYPE_DEFINITION
6944       --  | FORMAL_INCOMPLETE_TYPE_DEFINITION
6945
6946       --  The Ada 2012 syntax introduces two new non-terminals:
6947       --  Formal_{Complete,Incomplete}_Type_Declaration just to introduce
6948       --  the latter category. Here we introduce an incomplete type definition
6949       --  in order to preserve as much as possible the existing structure.
6950
6951       ---------------------------------------------
6952       -- 12.5.1  Formal Private Type Definition --
6953       ---------------------------------------------
6954
6955       --  FORMAL_PRIVATE_TYPE_DEFINITION ::=
6956       --    [[abstract] tagged] [limited] private
6957
6958       --  Note: TAGGED is not allowed in Ada 83 mode
6959
6960       --  N_Formal_Private_Type_Definition
6961       --  Sloc points to PRIVATE
6962       --  Uninitialized_Variable (Node3-Sem)
6963       --  Abstract_Present (Flag4)
6964       --  Tagged_Present (Flag15)
6965       --  Limited_Present (Flag17)
6966
6967       --------------------------------------------
6968       -- 12.5.1  Formal Derived Type Definition --
6969       --------------------------------------------
6970
6971       --  FORMAL_DERIVED_TYPE_DEFINITION ::=
6972       --    [abstract] [limited | synchronized]
6973       --       new SUBTYPE_MARK [[and INTERFACE_LIST] with private]
6974       --  Note: this construct is not allowed in Ada 83 mode
6975
6976       --  N_Formal_Derived_Type_Definition
6977       --  Sloc points to NEW
6978       --  Subtype_Mark (Node4)
6979       --  Private_Present (Flag15)
6980       --  Abstract_Present (Flag4)
6981       --  Limited_Present (Flag17)
6982       --  Synchronized_Present (Flag7)
6983       --  Interface_List (List2) (set to No_List if none)
6984
6985       -----------------------------------------------
6986       -- 12.5.1  Formal Incomplete Type Definition --
6987       -----------------------------------------------
6988
6989       --  FORMAL_INCOMPLETE_TYPE_DEFINITION ::= [tagged]
6990
6991       --  N_Formal_Incomplete_Type_Definition
6992       --  Sloc points to identifier of parent
6993       --  Tagged_Present (Flag15)
6994
6995       ---------------------------------------------
6996       -- 12.5.2  Formal Discrete Type Definition --
6997       ---------------------------------------------
6998
6999       --  FORMAL_DISCRETE_TYPE_DEFINITION ::= (<>)
7000
7001       --  N_Formal_Discrete_Type_Definition
7002       --  Sloc points to (
7003
7004       ---------------------------------------------------
7005       -- 12.5.2  Formal Signed Integer Type Definition --
7006       ---------------------------------------------------
7007
7008       --  FORMAL_SIGNED_INTEGER_TYPE_DEFINITION ::= range <>
7009
7010       --  N_Formal_Signed_Integer_Type_Definition
7011       --  Sloc points to RANGE
7012
7013       --------------------------------------------
7014       -- 12.5.2  Formal Modular Type Definition --
7015       --------------------------------------------
7016
7017       --  FORMAL_MODULAR_TYPE_DEFINITION ::= mod <>
7018
7019       --  N_Formal_Modular_Type_Definition
7020       --  Sloc points to MOD
7021
7022       ----------------------------------------------
7023       -- 12.5.2  Formal Floating Point Definition --
7024       ----------------------------------------------
7025
7026       --  FORMAL_FLOATING_POINT_DEFINITION ::= digits <>
7027
7028       --  N_Formal_Floating_Point_Definition
7029       --  Sloc points to DIGITS
7030
7031       ----------------------------------------------------
7032       -- 12.5.2  Formal Ordinary Fixed Point Definition --
7033       ----------------------------------------------------
7034
7035       --  FORMAL_ORDINARY_FIXED_POINT_DEFINITION ::= delta <>
7036
7037       --  N_Formal_Ordinary_Fixed_Point_Definition
7038       --  Sloc points to DELTA
7039
7040       ---------------------------------------------------
7041       -- 12.5.2  Formal Decimal Fixed Point Definition --
7042       ---------------------------------------------------
7043
7044       --  FORMAL_DECIMAL_FIXED_POINT_DEFINITION ::= delta <> digits <>
7045
7046       --  Note: formal decimal fixed point definition not allowed in Ada 83
7047
7048       --  N_Formal_Decimal_Fixed_Point_Definition
7049       --  Sloc points to DELTA
7050
7051       ------------------------------------------
7052       -- 12.5.3  Formal Array Type Definition --
7053       ------------------------------------------
7054
7055       --  FORMAL_ARRAY_TYPE_DEFINITION ::= ARRAY_TYPE_DEFINITION
7056
7057       -------------------------------------------
7058       -- 12.5.4  Formal Access Type Definition --
7059       -------------------------------------------
7060
7061       --  FORMAL_ACCESS_TYPE_DEFINITION ::= ACCESS_TYPE_DEFINITION
7062
7063       ----------------------------------------------
7064       -- 12.5.5  Formal Interface Type Definition --
7065       ----------------------------------------------
7066
7067       --  FORMAL_INTERFACE_TYPE_DEFINITION ::= INTERFACE_TYPE_DEFINITION
7068
7069       -----------------------------------------
7070       -- 12.6  Formal Subprogram Declaration --
7071       -----------------------------------------
7072
7073       --  FORMAL_SUBPROGRAM_DECLARATION ::=
7074       --    FORMAL_CONCRETE_SUBPROGRAM_DECLARATION
7075       --  | FORMAL_ABSTRACT_SUBPROGRAM_DECLARATION
7076
7077       --------------------------------------------------
7078       -- 12.6  Formal Concrete Subprogram Declaration --
7079       --------------------------------------------------
7080
7081       --  FORMAL_CONCRETE_SUBPROGRAM_DECLARATION ::=
7082       --    with SUBPROGRAM_SPECIFICATION [is SUBPROGRAM_DEFAULT]
7083       --      [ASPECT_SPECIFICATIONS];
7084
7085       --  N_Formal_Concrete_Subprogram_Declaration
7086       --  Sloc points to WITH
7087       --  Specification (Node1)
7088       --  Default_Name (Node2) (set to Empty if no subprogram default)
7089       --  Box_Present (Flag15)
7090
7091       --  Note: if no subprogram default is present, then Name is set
7092       --  to Empty, and Box_Present is False.
7093
7094       --------------------------------------------------
7095       -- 12.6  Formal Abstract Subprogram Declaration --
7096       --------------------------------------------------
7097
7098       --  FORMAL_ABSTRACT_SUBPROGRAM_DECLARATION ::=
7099       --    with SUBPROGRAM_SPECIFICATION is abstract [SUBPROGRAM_DEFAULT]
7100       --      [ASPECT_SPECIFICATIONS];
7101
7102       --  N_Formal_Abstract_Subprogram_Declaration
7103       --  Sloc points to WITH
7104       --  Specification (Node1)
7105       --  Default_Name (Node2) (set to Empty if no subprogram default)
7106       --  Box_Present (Flag15)
7107
7108       --  Note: if no subprogram default is present, then Name is set
7109       --  to Empty, and Box_Present is False.
7110
7111       ------------------------------
7112       -- 12.6  Subprogram Default --
7113       ------------------------------
7114
7115       --  SUBPROGRAM_DEFAULT ::= DEFAULT_NAME | <>
7116
7117       --  There is no separate node in the tree for a subprogram default.
7118       --  Instead the parent (N_Formal_Concrete_Subprogram_Declaration
7119       --  or N_Formal_Abstract_Subprogram_Declaration) node contains the
7120       --  default name or box indication, as needed.
7121
7122       ------------------------
7123       -- 12.6  Default Name --
7124       ------------------------
7125
7126       --  DEFAULT_NAME ::= NAME
7127
7128       --------------------------------------
7129       -- 12.7  Formal Package Declaration --
7130       --------------------------------------
7131
7132       --  FORMAL_PACKAGE_DECLARATION ::=
7133       --    with package DEFINING_IDENTIFIER
7134       --      is new generic_package_NAME FORMAL_PACKAGE_ACTUAL_PART
7135       --        [ASPECT_SPECIFICATIONS];
7136
7137       --  Note: formal package declarations not allowed in Ada 83 mode
7138
7139       --  N_Formal_Package_Declaration
7140       --  Sloc points to WITH
7141       --  Defining_Identifier (Node1)
7142       --  Name (Node2)
7143       --  Generic_Associations (List3) (set to No_List if (<>) case or
7144       --   empty generic actual part)
7145       --  Box_Present (Flag15)
7146       --  Instance_Spec (Node5-Sem)
7147       --  ABE_Is_Certain (Flag18-Sem)
7148
7149       --------------------------------------
7150       -- 12.7  Formal Package Actual Part --
7151       --------------------------------------
7152
7153       --  FORMAL_PACKAGE_ACTUAL_PART ::=
7154       --    ([OTHERS] => <>)
7155       --    | [GENERIC_ACTUAL_PART]
7156       --    (FORMAL_PACKAGE_ASSOCIATION {. FORMAL_PACKAGE_ASSOCIATION}
7157
7158       --  FORMAL_PACKAGE_ASSOCIATION ::=
7159       --   GENERIC_ASSOCIATION
7160       --  | GENERIC_FORMAL_PARAMETER_SELECTOR_NAME => <>
7161
7162       --  There is no explicit node in the tree for a formal package actual
7163       --  part. Instead the information appears in the parent node (i.e. the
7164       --  formal package declaration node itself).
7165
7166       --  There is no explicit node for a formal package association. All of
7167       --  them are represented either by a generic association, possibly with
7168       --  Box_Present, or by an N_Others_Choice.
7169
7170       ---------------------------------
7171       -- 13.1  Representation clause --
7172       ---------------------------------
7173
7174       --  REPRESENTATION_CLAUSE ::=
7175       --    ATTRIBUTE_DEFINITION_CLAUSE
7176       --  | ENUMERATION_REPRESENTATION_CLAUSE
7177       --  | RECORD_REPRESENTATION_CLAUSE
7178       --  | AT_CLAUSE
7179
7180       ----------------------
7181       -- 13.1  Local Name --
7182       ----------------------
7183
7184       --  LOCAL_NAME :=
7185       --    DIRECT_NAME
7186       --  | DIRECT_NAME'ATTRIBUTE_DESIGNATOR
7187       --  | library_unit_NAME
7188
7189       --  The construct DIRECT_NAME'ATTRIBUTE_DESIGNATOR appears in the tree
7190       --  as an attribute reference, which has essentially the same form.
7191
7192       ---------------------------------------
7193       -- 13.3  Attribute definition clause --
7194       ---------------------------------------
7195
7196       --  ATTRIBUTE_DEFINITION_CLAUSE ::=
7197       --    for LOCAL_NAME'ATTRIBUTE_DESIGNATOR use EXPRESSION;
7198       --  | for LOCAL_NAME'ATTRIBUTE_DESIGNATOR use NAME;
7199
7200       --  In Ada 83, the expression must be a simple expression and the
7201       --  local name must be a direct name.
7202
7203       --  Note: the only attribute definition clause that is processed by
7204       --  gigi is an address clause. For all other cases, the information
7205       --  is extracted by the front end and either results in setting entity
7206       --  information, e.g. Esize for the Size clause, or in appropriate
7207       --  expansion actions (e.g. in the case of Storage_Size).
7208
7209       --  For an address clause, Gigi constructs the appropriate addressing
7210       --  code. It also ensures that no aliasing optimizations are made
7211       --  for the object for which the address clause appears.
7212
7213       --  Note: for an address clause used to achieve an overlay:
7214
7215       --    A : Integer;
7216       --    B : Integer;
7217       --    for B'Address use A'Address;
7218
7219       --  the above rule means that Gigi will ensure that no optimizations
7220       --  will be made for B that would violate the implementation advice
7221       --  of RM 13.3(19). However, this advice applies only to B and not
7222       --  to A, which seems unfortunate. The GNAT front end will mark the
7223       --  object A as volatile to also prevent unwanted optimization
7224       --  assumptions based on no aliasing being made for B.
7225
7226       --  N_Attribute_Definition_Clause
7227       --  Sloc points to FOR
7228       --  Name (Node2) the local name
7229       --  Chars (Name1) the identifier name from the attribute designator
7230       --  Expression (Node3) the expression or name
7231       --  Entity (Node4-Sem)
7232       --  Next_Rep_Item (Node5-Sem)
7233       --  From_At_Mod (Flag4-Sem)
7234       --  Check_Address_Alignment (Flag11-Sem)
7235       --  From_Aspect_Specification (Flag13-Sem)
7236       --  Is_Delayed_Aspect (Flag14-Sem)
7237       --  Address_Warning_Posted (Flag18-Sem)
7238
7239       --  Note: if From_Aspect_Specification is set, then Sloc points to the
7240       --  aspect name, and Entity is resolved already to reference the entity
7241       --  to which the aspect applies.
7242
7243       -----------------------------------
7244       -- 13.3.1  Aspect Specifications --
7245       -----------------------------------
7246
7247       --  We modify the RM grammar here, the RM grammar is:
7248
7249       --     ASPECT_SPECIFICATION ::=
7250       --       with ASPECT_MARK [=> ASPECT_DEFINITION] {,
7251       --            ASPECT_MARK [=> ASPECT_DEFINITION] }
7252
7253       --     ASPECT_MARK ::= aspect_IDENTIFIER['Class]
7254
7255       --     ASPECT_DEFINITION ::= NAME | EXPRESSION
7256
7257       --  That's inconvenient, since there is no non-terminal name for a single
7258       --  entry in the list of aspects. So we use this grammar instead:
7259
7260       --     ASPECT_SPECIFICATIONS ::=
7261       --       with ASPECT_SPECIFICATION {, ASPECT_SPECIFICATION}
7262
7263       --     ASPECT_SPECIFICATION =>
7264       --       ASPECT_MARK [=> ASPECT_DEFINITION]
7265
7266       --     ASPECT_MARK ::= aspect_IDENTIFIER['Class]
7267
7268       --     ASPECT_DEFINITION ::= NAME | EXPRESSION
7269
7270       --  Note that for Annotate, the ASPECT_DEFINITION is a pure positional
7271       --  aggregate with the elements of the aggregate corresponding to the
7272       --  successive arguments of the corresponding pragma.
7273
7274       --  See separate package Aspects for details on the incorporation of
7275       --  these nodes into the tree, and how aspect specifications for a given
7276       --  declaration node are associated with that node.
7277
7278       --  N_Aspect_Specification
7279       --  Sloc points to aspect identifier
7280       --  Identifier (Node1) aspect identifier
7281       --  Aspect_Rep_Item (Node2-Sem)
7282       --  Expression (Node3) Aspect_Definition (set to Empty if none)
7283       --  Entity (Node4-Sem) entity to which the aspect applies
7284       --  Next_Rep_Item (Node5-Sem)
7285       --  Class_Present (Flag6) Set if 'Class present
7286       --  Is_Ignored (Flag9-Sem)
7287       --  Is_Checked (Flag11-Sem)
7288       --  Is_Delayed_Aspect (Flag14-Sem)
7289       --  Is_Disabled (Flag15-Sem)
7290       --  Is_Boolean_Aspect (Flag16-Sem)
7291       --  Split_PPC (Flag17) Set if split pre/post attribute
7292
7293       --  Note: Aspect_Specification is an Ada 2012 feature
7294
7295       --  Note: The Identifier serves to identify the aspect involved (it
7296       --  is the aspect whose name corresponds to the Chars field). This
7297       --  means that the other fields of this identifier are unused, and
7298       --  in particular we use the Entity field of this identifier to save
7299       --  a copy of the expression for visibility analysis, see spec of
7300       --  Sem_Ch13 for full details of this usage.
7301
7302       --  In the case of aspects of the form xxx'Class, the aspect identifier
7303       --  is for xxx, and Class_Present is set to True.
7304
7305       --  Note: When a Pre or Post aspect specification is processed, it is
7306       --  broken into AND THEN sections. The left most section has Split_PPC
7307       --  set to False, indicating that it is the original specification (e.g.
7308       --  for posting errors). For the other sections, Split_PPC is set True.
7309
7310       ---------------------------------------------
7311       -- 13.4  Enumeration representation clause --
7312       ---------------------------------------------
7313
7314       --  ENUMERATION_REPRESENTATION_CLAUSE ::=
7315       --    for first_subtype_LOCAL_NAME use ENUMERATION_AGGREGATE;
7316
7317       --  In Ada 83, the name must be a direct name
7318
7319       --  N_Enumeration_Representation_Clause
7320       --  Sloc points to FOR
7321       --  Identifier (Node1) direct name
7322       --  Array_Aggregate (Node3)
7323       --  Next_Rep_Item (Node5-Sem)
7324
7325       ---------------------------------
7326       -- 13.4  Enumeration aggregate --
7327       ---------------------------------
7328
7329       --  ENUMERATION_AGGREGATE ::= ARRAY_AGGREGATE
7330
7331       ------------------------------------------
7332       -- 13.5.1  Record representation clause --
7333       ------------------------------------------
7334
7335       --  RECORD_REPRESENTATION_CLAUSE ::=
7336       --    for first_subtype_LOCAL_NAME use
7337       --      record [MOD_CLAUSE]
7338       --        {COMPONENT_CLAUSE}
7339       --      end record;
7340
7341       --  Gigi restriction: Mod_Clause is always Empty (if present it is
7342       --  replaced by a corresponding Alignment attribute definition clause).
7343
7344       --  Note: Component_Clauses can include pragmas
7345
7346       --  N_Record_Representation_Clause
7347       --  Sloc points to FOR
7348       --  Identifier (Node1) direct name
7349       --  Mod_Clause (Node2) (set to Empty if no mod clause present)
7350       --  Component_Clauses (List3)
7351       --  Next_Rep_Item (Node5-Sem)
7352
7353       ------------------------------
7354       -- 13.5.1  Component clause --
7355       ------------------------------
7356
7357       --  COMPONENT_CLAUSE ::=
7358       --    component_LOCAL_NAME at POSITION
7359       --      range FIRST_BIT .. LAST_BIT;
7360
7361       --  N_Component_Clause
7362       --  Sloc points to AT
7363       --  Component_Name (Node1) points to Name or Attribute_Reference
7364       --  Position (Node2)
7365       --  First_Bit (Node3)
7366       --  Last_Bit (Node4)
7367
7368       ----------------------
7369       -- 13.5.1  Position --
7370       ----------------------
7371
7372       --  POSITION ::= static_EXPRESSION
7373
7374       -----------------------
7375       -- 13.5.1  First_Bit --
7376       -----------------------
7377
7378       --  FIRST_BIT ::= static_SIMPLE_EXPRESSION
7379
7380       ----------------------
7381       -- 13.5.1  Last_Bit --
7382       ----------------------
7383
7384       --  LAST_BIT ::= static_SIMPLE_EXPRESSION
7385
7386       --------------------------
7387       -- 13.8  Code statement --
7388       --------------------------
7389
7390       --  CODE_STATEMENT ::= QUALIFIED_EXPRESSION;
7391
7392       --  Note: in GNAT, the qualified expression has the form
7393
7394       --    Asm_Insn'(Asm (...));
7395
7396       --  See package System.Machine_Code in file s-maccod.ads for details on
7397       --  the allowed parameters to Asm. There are two ways this node can
7398       --  arise, as a code statement, in which case the expression is the
7399       --  qualified expression, or as a result of the expansion of an intrinsic
7400       --  call to the Asm or Asm_Input procedure.
7401
7402       --  N_Code_Statement
7403       --  Sloc points to first token of the expression
7404       --  Expression (Node3)
7405
7406       --  Note: package Exp_Code contains an abstract functional interface
7407       --  for use by Gigi in accessing the data from N_Code_Statement nodes.
7408
7409       ------------------------
7410       -- 13.12  Restriction --
7411       ------------------------
7412
7413       --  RESTRICTION ::=
7414       --    restriction_IDENTIFIER
7415       --  | restriction_parameter_IDENTIFIER => EXPRESSION
7416
7417       --  There is no explicit node for restrictions. Instead the restriction
7418       --  appears in normal pragma syntax as a pragma argument association,
7419       --  which has the same syntactic form.
7420
7421       --------------------------
7422       -- B.2  Shift Operators --
7423       --------------------------
7424
7425       --  Calls to the intrinsic shift functions are converted to one of
7426       --  the following shift nodes, which have the form of normal binary
7427       --  operator names. Note that for a given shift operation, one node
7428       --  covers all possible types, as for normal operators.
7429
7430       --  Note: it is perfectly permissible for the expander to generate
7431       --  shift operation nodes directly, in which case they will be analyzed
7432       --  and parsed in the usual manner.
7433
7434       --  Sprint syntax: shift-function-name!(expr, count)
7435
7436       --  Note: the Left_Opnd field holds the first argument (the value to
7437       --  be shifted). The Right_Opnd field holds the second argument (the
7438       --  shift count). The Chars field is the name of the intrinsic function.
7439
7440       --  N_Op_Rotate_Left
7441       --  Sloc points to the function name
7442       --  plus fields for binary operator
7443       --  plus fields for expression
7444       --  Shift_Count_OK (Flag4-Sem)
7445
7446       --  N_Op_Rotate_Right
7447       --  Sloc points to the function name
7448       --  plus fields for binary operator
7449       --  plus fields for expression
7450       --  Shift_Count_OK (Flag4-Sem)
7451
7452       --  N_Op_Shift_Left
7453       --  Sloc points to the function name
7454       --  plus fields for binary operator
7455       --  plus fields for expression
7456       --  Shift_Count_OK (Flag4-Sem)
7457
7458       --  N_Op_Shift_Right_Arithmetic
7459       --  Sloc points to the function name
7460       --  plus fields for binary operator
7461       --  plus fields for expression
7462       --  Shift_Count_OK (Flag4-Sem)
7463
7464       --  N_Op_Shift_Right
7465       --  Sloc points to the function name
7466       --  plus fields for binary operator
7467       --  plus fields for expression
7468       --  Shift_Count_OK (Flag4-Sem)
7469
7470       --  Note: N_Op_Rotate_Left, N_Op_Rotate_Right, N_Shift_Right_Arithmetic
7471       --  never appear in the expanded tree if Modify_Tree_For_C mode is set.
7472
7473       --  Note: For N_Op_Shift_Left and N_Op_Shift_Right, the right operand is
7474       --  always less than the word size if Modify_Tree_For_C mode is set.
7475
7476    --------------------------
7477    -- Obsolescent Features --
7478    --------------------------
7479
7480       --  The syntax descriptions and tree nodes for obsolescent features are
7481       --  grouped together, corresponding to their location in appendix I in
7482       --  the RM. However, parsing and semantic analysis for these constructs
7483       --  is located in an appropriate chapter (see individual notes).
7484
7485       ---------------------------
7486       -- J.3  Delta Constraint --
7487       ---------------------------
7488
7489       --  Note: the parse routine for this construct is located in section
7490       --  3.5.9 of Par-Ch3, and semantic analysis is in Sem_Ch3, which is
7491       --  where delta constraint logically belongs.
7492
7493       --  DELTA_CONSTRAINT ::= DELTA static_EXPRESSION [RANGE_CONSTRAINT]
7494
7495       --  N_Delta_Constraint
7496       --  Sloc points to DELTA
7497       --  Delta_Expression (Node3)
7498       --  Range_Constraint (Node4) (set to Empty if not present)
7499
7500       --------------------
7501       -- J.7  At Clause --
7502       --------------------
7503
7504       --  AT_CLAUSE ::= for DIRECT_NAME use at EXPRESSION;
7505
7506       --  Note: the parse routine for this construct is located in Par-Ch13,
7507       --  and the semantic analysis is in Sem_Ch13, where at clause logically
7508       --  belongs if it were not obsolescent.
7509
7510       --  Note: in Ada 83 the expression must be a simple expression
7511
7512       --  Gigi restriction: This node never appears, it is rewritten as an
7513       --  address attribute definition clause.
7514
7515       --  N_At_Clause
7516       --  Sloc points to FOR
7517       --  Identifier (Node1)
7518       --  Expression (Node3)
7519
7520       ---------------------
7521       -- J.8  Mod clause --
7522       ---------------------
7523
7524       --  MOD_CLAUSE ::= at mod static_EXPRESSION;
7525
7526       --  Note: the parse routine for this construct is located in Par-Ch13,
7527       --  and the semantic analysis is in Sem_Ch13, where mod clause logically
7528       --  belongs if it were not obsolescent.
7529
7530       --  Note: in Ada 83, the expression must be a simple expression
7531
7532       --  Gigi restriction: this node never appears. It is replaced
7533       --  by a corresponding Alignment attribute definition clause.
7534
7535       --  Note: pragmas can appear before and after the MOD_CLAUSE since
7536       --  its name has "clause" in it. This is rather strange, but is quite
7537       --  definitely specified. The pragmas before are collected in the
7538       --  Pragmas_Before field of the mod clause node itself, and pragmas
7539       --  after are simply swallowed up in the list of component clauses.
7540
7541       --  N_Mod_Clause
7542       --  Sloc points to AT
7543       --  Expression (Node3)
7544       --  Pragmas_Before (List4) Pragmas before mod clause (No_List if none)
7545
7546    --------------------
7547    -- Semantic Nodes --
7548    --------------------
7549
7550    --  These semantic nodes are used to hold additional semantic information.
7551    --  They are inserted into the tree as a result of semantic processing.
7552    --  Although there are no legitimate source syntax constructions that
7553    --  correspond directly to these nodes, we need a source syntax for the
7554    --  reconstructed tree printed by Sprint, and the node descriptions here
7555    --  show this syntax.
7556
7557       ------------------------
7558       -- Compound Statement --
7559       ------------------------
7560
7561       --  This node is created by the analyzer/expander to handle some
7562       --  expansion cases where a sequence of actions needs to be captured
7563       --  within a single node (which acts as a container and allows the
7564       --  entire list of actions to be moved around as a whole) appearing
7565       --  in a sequence of statements.
7566
7567       --  This is the statement counterpart to the expression node
7568       --  N_Expression_With_Actions.
7569
7570       --  The required semantics is that the set of actions is executed in
7571       --  the order in which it appears, as though they appeared by themselves
7572       --  in the enclosing list of declarations of statements. Unlike what
7573       --  happens when using an N_Block_Statement, no new scope is introduced.
7574
7575       --  Note: for the time being, this is used only as a transient
7576       --  representation during expansion, and all compound statement nodes
7577       --  must be exploded back to their constituent statements before handing
7578       --  the tree to the back end.
7579
7580       --  Sprint syntax:  do
7581       --                    action;
7582       --                    action;
7583       --                    ...
7584       --                    action;
7585       --                  end;
7586
7587       --  N_Compound_Statement
7588       --  Actions (List1)
7589
7590       --------------
7591       -- Contract --
7592       --------------
7593
7594       --  This node is used to hold the various parts of an entry, subprogram
7595       --  [body] or package [body] contract, in particular:
7596       --     Abstract states declared by a package declaration
7597       --     Contract cases that apply to a subprogram
7598       --     Dependency relations of inputs and output of a subprogram
7599       --     Global annotations classifying data as input or output
7600       --     Initialization sequences for a package declaration
7601       --     Pre- and postconditions that apply to a subprogram
7602
7603       --  The node appears in an entry and [generic] subprogram [body] entity.
7604
7605       --  Sprint syntax:  <none> as the node should not appear in the tree, but
7606       --                  only attached to an entry or [generic] subprogram
7607       --                  entity.
7608
7609       --  N_Contract
7610       --  Sloc points to the subprogram's name
7611       --  Pre_Post_Conditions (Node1-Sem) (set to Empty if none)
7612       --  Contract_Test_Cases (Node2-Sem) (set to Empty if none)
7613       --  Classifications (Node3-Sem) (set to Empty if none)
7614       --  Is_Expanded_Contract (Flag1-Sem)
7615
7616       --  Pre_Post_Conditions contains a collection of pragmas that correspond
7617       --  to pre- and postconditions associated with an entry or a subprogram
7618       --  [body or stub]. The pragmas can either come from source or be the
7619       --  byproduct of aspect expansion. Currently the following pragmas appear
7620       --  in this list:
7621       --    Post
7622       --    Postcondition
7623       --    Pre
7624       --    Precondition
7625       --    Refined_Post
7626       --  The ordering in the list is in LIFO fashion.
7627
7628       --  Note that there might be multiple preconditions or postconditions
7629       --  in this list, either because they come from separate pragmas in the
7630       --  source, or because a Pre (resp. Post) aspect specification has been
7631       --  broken into AND THEN sections. See Split_PPC for details.
7632
7633       --  In GNATprove mode, the inherited classwide pre- and postconditions
7634       --  (suitably specialized for the specific type of the overriding
7635       --  operation) are also in this list.
7636
7637       --  Contract_Test_Cases contains a collection of pragmas that correspond
7638       --  to aspects/pragmas Contract_Cases and Test_Case. The ordering in the
7639       --  list is in LIFO fashion.
7640
7641       --  Classifications contains pragmas that either declare, categorize or
7642       --  establish dependencies between subprogram or package inputs and
7643       --  outputs. Currently the following pragmas appear in this list:
7644       --    Abstract_States
7645       --    Async_Readers
7646       --    Async_Writers
7647       --    Constant_After_Elaboration
7648       --    Depends
7649       --    Effective_Reads
7650       --    Effective_Writes
7651       --    Extensions_Visible
7652       --    Global
7653       --    Initial_Condition
7654       --    Initializes
7655       --    Part_Of
7656       --    Refined_Depends
7657       --    Refined_Global
7658       --    Refined_States
7659       --    Volatile_Function
7660       --  The ordering is in LIFO fashion.
7661
7662       -------------------
7663       -- Expanded Name --
7664       -------------------
7665
7666       --  The N_Expanded_Name node is used to represent a selected component
7667       --  name that has been resolved to an expanded name. The semantic phase
7668       --  replaces N_Selected_Component nodes that represent names by the use
7669       --  of this node, leaving the N_Selected_Component node used only when
7670       --  the prefix is a record or protected type.
7671
7672       --  The fields of the N_Expanded_Name node are layed out identically
7673       --  to those of the N_Selected_Component node, allowing conversion of
7674       --  an expanded name node to a selected component node to be done
7675       --  easily, see Sinfo.CN.Change_Selected_Component_To_Expanded_Name.
7676
7677       --  There is no special sprint syntax for an expanded name
7678
7679       --  N_Expanded_Name
7680       --  Sloc points to the period
7681       --  Chars (Name1) copy of Chars field of selector name
7682       --  Prefix (Node3)
7683       --  Selector_Name (Node2)
7684       --  Entity (Node4-Sem)
7685       --  Associated_Node (Node4-Sem)
7686       --  Has_Private_View (Flag11-Sem) set in generic units.
7687       --  Redundant_Use (Flag13-Sem)
7688       --  Atomic_Sync_Required (Flag14-Sem)
7689       --  plus fields for expression
7690
7691       -----------------------------
7692       -- Expression With Actions --
7693       -----------------------------
7694
7695       --  This node is created by the analyzer/expander to handle some
7696       --  expansion cases, notably short-circuit forms where there are
7697       --  actions associated with the right-hand side operand.
7698
7699       --  The N_Expression_With_Actions node represents an expression with
7700       --  an associated set of actions (which are executable statements and
7701       --  declarations, as might occur in a handled statement sequence).
7702
7703       --  The required semantics is that the set of actions is executed in
7704       --  the order in which it appears just before the expression is
7705       --  evaluated (and these actions must only be executed if the value
7706       --  of the expression is evaluated). The node is considered to be
7707       --  a subexpression, whose value is the value of the Expression after
7708       --  executing all the actions.
7709
7710       --  If the actions contain declarations, then these declarations may
7711       --  be referenced within the expression. However note that there is
7712       --  no proper scope associated with the expression-with-action, so the
7713       --  back-end will elaborate them in the context of the enclosing scope.
7714
7715       --  Sprint syntax:  do
7716       --                    action;
7717       --                    action;
7718       --                    ...
7719       --                    action;
7720       --                  in expression end
7721
7722       --  N_Expression_With_Actions
7723       --  Actions (List1)
7724       --  Expression (Node3)
7725       --  plus fields for expression
7726
7727       --  Note: In the final generated tree presented to the code generator,
7728       --  the actions list is always non-null, since there is no point in this
7729       --  node if the actions are Empty. During semantic analysis there are
7730       --  cases where it is convenient to temporarily generate an empty actions
7731       --  list. This arises in cases where we create such an empty actions
7732       --  list, and it may or may not end up being a place where additional
7733       --  actions are inserted. The expander removes such empty cases after
7734       --  the expression of the node is fully analyzed and expanded, at which
7735       --  point it is safe to remove it, since no more actions can be inserted.
7736
7737       --  Note: In Modify_Tree_For_C, we never generate any declarations in
7738       --  the action list, which can contain only non-declarative statements.
7739
7740       --------------------
7741       -- Free Statement --
7742       --------------------
7743
7744       --  The N_Free_Statement node is generated as a result of a call to an
7745       --  instantiation of Unchecked_Deallocation. The instantiation of this
7746       --  generic is handled specially and generates this node directly.
7747
7748       --  Sprint syntax: free expression
7749
7750       --  N_Free_Statement
7751       --  Sloc is copied from the unchecked deallocation call
7752       --  Expression (Node3) argument to unchecked deallocation call
7753       --  Storage_Pool (Node1-Sem)
7754       --  Procedure_To_Call (Node2-Sem)
7755       --  Actual_Designated_Subtype (Node4-Sem)
7756
7757       --  Note: in the case where a debug source file is generated, the Sloc
7758       --  for this node points to the FREE keyword in the Sprint file output.
7759
7760       -------------------
7761       -- Freeze Entity --
7762       -------------------
7763
7764       --  This node marks the point in a declarative part at which an entity
7765       --  declared therein becomes frozen. The expander places initialization
7766       --  procedures for types at those points. Gigi uses the freezing point
7767       --  to elaborate entities that may depend on previous private types.
7768
7769       --  See the section in Einfo "Delayed Freezing and Elaboration" for
7770       --  a full description of the use of this node.
7771
7772       --  The Entity field points back to the entity for the type (whose
7773       --  Freeze_Node field points back to this freeze node).
7774
7775       --  The Actions field contains a list of declarations and statements
7776       --  generated by the expander which are associated with the freeze
7777       --  node, and are elaborated as though the freeze node were replaced
7778       --  by this sequence of actions.
7779
7780       --  Note: the Sloc field in the freeze node references a construct
7781       --  associated with the freezing point. This is used for posting
7782       --  messages in some error/warning situations, e.g. the case where
7783       --  a primitive operation of a tagged type is declared too late.
7784
7785       --  Sprint syntax: freeze entity-name [
7786       --                   freeze actions
7787       --                 ]
7788
7789       --  N_Freeze_Entity
7790       --  Sloc points near freeze point (see above special note)
7791       --  Entity (Node4-Sem)
7792       --  Access_Types_To_Process (Elist2-Sem) (set to No_Elist if none)
7793       --  TSS_Elist (Elist3-Sem) (set to No_Elist if no associated TSS's)
7794       --  Actions (List1) (set to No_List if no freeze actions)
7795       --  First_Subtype_Link (Node5-Sem) (set to Empty if no link)
7796
7797       --  The Actions field holds actions associated with the freeze. These
7798       --  actions are elaborated at the point where the type is frozen.
7799
7800       --  Note: in the case where a debug source file is generated, the Sloc
7801       --  for this node points to the FREEZE keyword in the Sprint file output.
7802
7803       ---------------------------
7804       -- Freeze Generic Entity --
7805       ---------------------------
7806
7807       --  The freeze point of an entity indicates the point at which the
7808       --  information needed to generate code for the entity is complete.
7809       --  The freeze node for an entity triggers expander activities, such as
7810       --  build initialization procedures, and backend activities, such as
7811       --  completing the elaboration of packages.
7812
7813       --  For entities declared within a generic unit, for which no code is
7814       --  generated, the freeze point is not equally meaningful. However, in
7815       --  Ada 2012 several semantic checks on declarations must be delayed to
7816       --  the freeze point, and we need to include such a mark in the tree to
7817       --  trigger these checks. The Freeze_Generic_Entity node plays no other
7818       --  role, and is ignored by the expander and the back-end.
7819
7820       --  Sprint syntax: freeze_generic entity-name
7821
7822       --  N_Freeze_Generic_Entity
7823       --  Sloc points near freeze point
7824       --  Entity (Node4-Sem)
7825
7826       --------------------------------
7827       -- Implicit Label Declaration --
7828       --------------------------------
7829
7830       --  An implicit label declaration is created for every occurrence of a
7831       --  label on a statement or a label on a block or loop. It is chained
7832       --  in the declarations of the innermost enclosing block as specified
7833       --  in RM section 5.1 (3).
7834
7835       --  The Defining_Identifier is the actual identifier for the statement
7836       --  identifier. Note that the occurrence of the label is a reference, NOT
7837       --  the defining occurrence. The defining occurrence occurs at the head
7838       --  of the innermost enclosing block, and is represented by this node.
7839
7840       --  Note: from the grammar, this might better be called an implicit
7841       --  statement identifier declaration, but the term we choose seems
7842       --  friendlier, since at least informally statement identifiers are
7843       --  called labels in both cases (i.e. when used in labels, and when
7844       --  used as the identifiers of blocks and loops).
7845
7846       --  Note: although this is logically a semantic node, since it does not
7847       --  correspond directly to a source syntax construction, these nodes are
7848       --  actually created by the parser in a post pass done just after parsing
7849       --  is complete, before semantic analysis is started (see Par.Labl).
7850
7851       --  Sprint syntax: labelname : label;
7852
7853       --  N_Implicit_Label_Declaration
7854       --  Sloc points to the << token for a statement identifier, or to the
7855       --    LOOP, DECLARE, or BEGIN token for a loop or block identifier
7856       --  Defining_Identifier (Node1)
7857       --  Label_Construct (Node2-Sem)
7858
7859       --  Note: in the case where a debug source file is generated, the Sloc
7860       --  for this node points to the label name in the generated declaration.
7861
7862       ---------------------
7863       -- Itype Reference --
7864       ---------------------
7865
7866       --  This node is used to create a reference to an Itype. The only purpose
7867       --  is to make sure the Itype is defined if this is the first reference.
7868
7869       --  A typical use of this node is when an Itype is to be referenced in
7870       --  two branches of an IF statement. In this case it is important that
7871       --  the first use of the Itype not be inside the conditional, since then
7872       --  it might not be defined if the other branch of the IF is taken, in
7873       --  the case where the definition generates elaboration code.
7874
7875       --  The Itype field points to the referenced Itype
7876
7877       --  Sprint syntax: reference itype-name
7878
7879       --  N_Itype_Reference
7880       --  Sloc points to the node generating the reference
7881       --  Itype (Node1-Sem)
7882
7883       --  Note: in the case where a debug source file is generated, the Sloc
7884       --  for this node points to the REFERENCE keyword in the file output.
7885
7886       ---------------------
7887       -- Raise xxx Error --
7888       ---------------------
7889
7890       --  One of these nodes is created during semantic analysis to replace
7891       --  a node for an expression that is determined to definitely raise
7892       --  the corresponding exception.
7893
7894       --  The N_Raise_xxx_Error node may also stand alone in place
7895       --  of a declaration or statement, in which case it simply causes
7896       --  the exception to be raised (i.e. it is equivalent to a raise
7897       --  statement that raises the corresponding exception). This use
7898       --  is distinguished by the fact that the Etype in this case is
7899       --  Standard_Void_Type; in the subexpression case, the Etype is the
7900       --  same as the type of the subexpression which it replaces.
7901
7902       --  If Condition is empty, then the raise is unconditional. If the
7903       --  Condition field is non-empty, it is a boolean expression which is
7904       --  first evaluated, and the exception is raised only if the value of the
7905       --  expression is True. In the unconditional case, the creation of this
7906       --  node is usually accompanied by a warning message (unless it appears
7907       --  within the right operand of a short-circuit form whose left argument
7908       --  is static and decisively eliminates elaboration of the raise
7909       --  operation). The condition field can ONLY be present when the node is
7910       --  used as a statement form; it must NOT be present in the case where
7911       --  the node appears within an expression.
7912
7913       --  The exception is generated with a message that contains the
7914       --  file name and line number, and then appended text. The Reason
7915       --  code shows the text to be added. The Reason code is an element
7916       --  of the type Types.RT_Exception_Code, and indicates both the
7917       --  message to be added, and the exception to be raised (which must
7918       --  match the node type). The value is stored by storing a Uint which
7919       --  is the Pos value of the enumeration element in this type.
7920
7921       --  Gigi restriction: This expander ensures that the type of the
7922       --  Condition field is always Standard.Boolean, even if the type
7923       --  in the source is some non-standard boolean type.
7924
7925       --  Sprint syntax: [xxx_error "msg"]
7926       --             or: [xxx_error when condition "msg"]
7927
7928       --  N_Raise_Constraint_Error
7929       --  Sloc references related construct
7930       --  Condition (Node1) (set to Empty if no condition)
7931       --  Reason (Uint3)
7932       --  plus fields for expression
7933
7934       --  N_Raise_Program_Error
7935       --  Sloc references related construct
7936       --  Condition (Node1) (set to Empty if no condition)
7937       --  Reason (Uint3)
7938       --  plus fields for expression
7939
7940       --  N_Raise_Storage_Error
7941       --  Sloc references related construct
7942       --  Condition (Node1) (set to Empty if no condition)
7943       --  Reason (Uint3)
7944       --  plus fields for expression
7945
7946       --  Note: Sloc is copied from the expression generating the exception.
7947       --  In the case where a debug source file is generated, the Sloc for
7948       --  this node points to the left bracket in the Sprint file output.
7949
7950       --  Note: the back end may be required to translate these nodes into
7951       --  appropriate goto statements. See description of N_Push/Pop_xxx_Label.
7952
7953       ---------------------------------------------
7954       -- Optimization of Exception Raise to Goto --
7955       ---------------------------------------------
7956
7957       --  In some cases, the front end will determine that any exception raised
7958       --  by the back end for a certain exception should be transformed into a
7959       --  goto statement.
7960
7961       --  There are three kinds of exceptions raised by the back end (note that
7962       --  for this purpose we consider gigi to be part of the back end in the
7963       --  gcc case):
7964
7965       --     1. Exceptions resulting from N_Raise_xxx_Error nodes
7966       --     2. Exceptions from checks triggered by Do_xxx_Check flags
7967       --     3. Other cases not specifically marked by the front end
7968
7969       --  Normally all such exceptions are translated into calls to the proper
7970       --  Rcheck_xx procedure, where xx encodes both the exception to be raised
7971       --  and the exception message.
7972
7973       --  The front end may determine that for a particular sequence of code,
7974       --  exceptions in any of these three categories for a particular builtin
7975       --  exception should result in a goto, rather than a call to Rcheck_xx.
7976       --  The exact sequence to be generated is:
7977
7978       --      Local_Raise (exception'Identity);
7979       --      goto Label
7980
7981       --  The front end marks such a sequence of code by bracketing it with
7982       --  push and pop nodes:
7983
7984       --       N_Push_xxx_Label (referencing the label)
7985       --       ...
7986       --       (code where transformation is expected for exception xxx)
7987       --       ...
7988       --       N_Pop_xxx_Label
7989
7990       --  The use of push/pop reflects the fact that such regions can properly
7991       --  nest, and one special case is a subregion in which no transformation
7992       --  is allowed. Such a region is marked by a N_Push_xxx_Label node whose
7993       --  Exception_Label field is Empty.
7994
7995       --  N_Push_Constraint_Error_Label
7996       --  Sloc references first statement in region covered
7997       --  Exception_Label (Node5-Sem)
7998
7999       --  N_Push_Program_Error_Label
8000       --  Sloc references first statement in region covered
8001       --  Exception_Label (Node5-Sem)
8002
8003       --  N_Push_Storage_Error_Label
8004       --  Sloc references first statement in region covered
8005       --  Exception_Label (Node5-Sem)
8006
8007       --  N_Pop_Constraint_Error_Label
8008       --  Sloc references last statement in region covered
8009
8010       --  N_Pop_Program_Error_Label
8011       --  Sloc references last statement in region covered
8012
8013       --  N_Pop_Storage_Error_Label
8014       --  Sloc references last statement in region covered
8015
8016       ---------------
8017       -- Reference --
8018       ---------------
8019
8020       --  For a number of purposes, we need to construct references to objects.
8021       --  These references are subsequently treated as normal access values.
8022       --  An example is the construction of the parameter block passed to a
8023       --  task entry. The N_Reference node is provided for this purpose. It is
8024       --  similar in effect to the use of the Unrestricted_Access attribute,
8025       --  and like Unrestricted_Access can be applied to objects which would
8026       --  not be valid prefixes for the Unchecked_Access attribute (e.g.
8027       --  objects which are not aliased, and slices). In addition it can be
8028       --  applied to composite type values as well as objects, including string
8029       --  values and aggregates.
8030
8031       --  Note: we use the Prefix field for this expression so that the
8032       --  resulting node can be treated using common code with the attribute
8033       --  nodes for the 'Access and related attributes. Logically it would make
8034       --  more sense to call it an Expression field, but then we would have to
8035       --  special case the treatment of the N_Reference node.
8036
8037       --  Note: evaluating a N_Reference node is guaranteed to yield a non-null
8038       --  value at run time. Therefore, it is valid to set Is_Known_Non_Null on
8039       --  a temporary initialized to a N_Reference node in order to eliminate
8040       --  superfluous access checks.
8041
8042       --  Sprint syntax: prefix'reference
8043
8044       --  N_Reference
8045       --  Sloc is copied from the expression
8046       --  Prefix (Node3)
8047       --  plus fields for expression
8048
8049       --  Note: in the case where a debug source file is generated, the Sloc
8050       --  for this node points to the quote in the Sprint file output.
8051
8052       ----------------
8053       -- SCIL Nodes --
8054       ----------------
8055
8056       --  SCIL nodes are special nodes added to the tree when the CodePeer mode
8057       --  is active. They are only generated if SCIL generation is enabled.
8058       --  A standard tree-walk will not encounter these nodes even if they
8059       --  are present; these nodes are only accessible via the function
8060       --  SCIL_LL.Get_SCIL_Node. These nodes have no associated dynamic
8061       --  semantics.
8062
8063       --  Sprint syntax: [ <node kind> ]
8064       --  No semantic field values are displayed.
8065
8066       --  N_SCIL_Dispatch_Table_Tag_Init
8067       --  Sloc references a node for a tag initialization
8068       --  SCIL_Entity (Node4-Sem)
8069       --
8070       --  An N_SCIL_Dispatch_Table_Tag_Init node may be associated (via
8071       --  Get_SCIL_Node) with the N_Object_Declaration node corresponding to
8072       --  the declaration of the dispatch table for a tagged type.
8073
8074       --  N_SCIL_Dispatching_Call
8075       --  Sloc references the node of a dispatching call
8076       --  SCIL_Target_Prim (Node2-Sem)
8077       --  SCIL_Entity (Node4-Sem)
8078       --  SCIL_Controlling_Tag (Node5-Sem)
8079       --
8080       --  An N_Scil_Dispatching call node may be associated (via Get_SCIL_Node)
8081       --  with the N_Procedure_Call_Statement or N_Function_Call node (or a
8082       --  rewriting thereof) corresponding to a dispatching call.
8083
8084       --  N_SCIL_Membership_Test
8085       --  Sloc references the node of a membership test
8086       --  SCIL_Tag_Value (Node5-Sem)
8087       --  SCIL_Entity (Node4-Sem)
8088       --
8089       --  An N_Scil_Membership_Test node may be associated (via Get_SCIL_Node)
8090       --  with the N_In node (or a rewriting thereof) corresponding to a
8091       --  classwide membership test.
8092
8093       --------------------------
8094       -- Unchecked Expression --
8095       --------------------------
8096
8097       --  An unchecked expression is one that must be analyzed and resolved
8098       --  with all checks off, regardless of the current setting of scope
8099       --  suppress flags.
8100
8101       --  Sprint syntax: `(expression)
8102
8103       --  Note: this node is always removed from the tree (and replaced by
8104       --  its constituent expression) on completion of analysis, so it only
8105       --  appears in intermediate trees, and will never be seen by Gigi.
8106
8107       --  N_Unchecked_Expression
8108       --  Sloc is a copy of the Sloc of the expression
8109       --  Expression (Node3)
8110       --  plus fields for expression
8111
8112       --  Note: in the case where a debug source file is generated, the Sloc
8113       --  for this node points to the back quote in the Sprint file output.
8114
8115       -------------------------------
8116       -- Unchecked Type Conversion --
8117       -------------------------------
8118
8119       --  An unchecked type conversion node represents the semantic action
8120       --  corresponding to a call to an instantiation of Unchecked_Conversion.
8121       --  It is generated as a result of actual use of Unchecked_Conversion
8122       --  and also the expander generates unchecked type conversion nodes
8123       --  directly for expansion of complex semantic actions.
8124
8125       --  Note: an unchecked type conversion is a variable as far as the
8126       --  semantics are concerned, which is convenient for the expander.
8127       --  This does not change what Ada source programs are legal, since
8128       --  clearly a function call to an instantiation of Unchecked_Conversion
8129       --  is not a variable in any case.
8130
8131       --  Sprint syntax: subtype-mark!(expression)
8132
8133       --  N_Unchecked_Type_Conversion
8134       --  Sloc points to related node in source
8135       --  Subtype_Mark (Node4)
8136       --  Expression (Node3)
8137       --  Kill_Range_Check (Flag11-Sem)
8138       --  No_Truncation (Flag17-Sem)
8139       --  plus fields for expression
8140
8141       --  Note: in the case where a debug source file is generated, the Sloc
8142       --  for this node points to the exclamation in the Sprint file output.
8143
8144       -----------------------------------
8145       -- Validate_Unchecked_Conversion --
8146       -----------------------------------
8147
8148       --  The front end does most of the validation of unchecked conversion,
8149       --  including checking sizes (this is done after the back end is called
8150       --  to take advantage of back-annotation of calculated sizes).
8151
8152       --  The front end also deals with specific cases that are not allowed
8153       --  e.g. involving unconstrained array types.
8154
8155       --  For the case of the standard gigi backend, this means that all
8156       --  checks are done in the front end.
8157
8158       --  However, in the case of specialized back-ends, in particular the JVM
8159       --  backend in the past, additional requirements and restrictions may
8160       --  apply to unchecked conversion, and these are most conveniently
8161       --  performed in the specialized back-end.
8162
8163       --  To accommodate this requirement, for such back ends, the following
8164       --  special node is generated recording an unchecked conversion that
8165       --  needs to be validated. The back end should post an appropriate
8166       --  error message if the unchecked conversion is invalid or warrants
8167       --  a special warning message.
8168
8169       --  Source_Type and Target_Type point to the entities for the two
8170       --  types involved in the unchecked conversion instantiation that
8171       --  is to be validated.
8172
8173       --  Sprint syntax: validate Unchecked_Conversion (source, target);
8174
8175       --  N_Validate_Unchecked_Conversion
8176       --  Sloc points to instantiation (location for warning message)
8177       --  Source_Type (Node1-Sem)
8178       --  Target_Type (Node2-Sem)
8179
8180       --  Note: in the case where a debug source file is generated, the Sloc
8181       --  for this node points to the VALIDATE keyword in the file output.
8182
8183    -----------
8184    -- Empty --
8185    -----------
8186
8187    --  Used as the contents of the Nkind field of the dummy Empty node
8188    --  and in some other situations to indicate an uninitialized value.
8189
8190    --  N_Empty
8191    --  Chars (Name1) is set to No_Name
8192
8193    -----------
8194    -- Error --
8195    -----------
8196
8197    --  Used as the contents of the Nkind field of the dummy Error node.
8198    --  Has an Etype field, which gets set to Any_Type later on, to help
8199    --  error recovery (Error_Posted is also set in the Error node).
8200
8201    --  N_Error
8202    --  Chars (Name1) is set to Error_Name
8203    --  Etype (Node5-Sem)
8204
8205    --------------------------
8206    -- Node Type Definition --
8207    --------------------------
8208
8209    --  The following is the definition of the Node_Kind type. As previously
8210    --  discussed, this is separated off to allow rearrangement of the order to
8211    --  facilitate definition of subtype ranges. The comments show the subtype
8212    --  classes which apply to each set of node kinds. The first entry in the
8213    --  comment characterizes the following list of nodes.
8214
8215    type Node_Kind is (
8216       N_Unused_At_Start,
8217
8218       --  N_Representation_Clause
8219
8220       N_At_Clause,
8221       N_Component_Clause,
8222       N_Enumeration_Representation_Clause,
8223       N_Mod_Clause,
8224       N_Record_Representation_Clause,
8225
8226       --  N_Representation_Clause, N_Has_Chars
8227
8228       N_Attribute_Definition_Clause,
8229
8230       --  N_Has_Chars
8231
8232       N_Empty,
8233       N_Pragma_Argument_Association,
8234
8235       --  N_Has_Etype, N_Has_Chars
8236
8237       --  Note: of course N_Error does not really have Etype or Chars fields,
8238       --  and any attempt to access these fields in N_Error will cause an
8239       --  error, but historically this always has been positioned so that an
8240       --  "in N_Has_Chars" or "in N_Has_Etype" test yields true for N_Error.
8241       --  Most likely this makes coding easier somewhere but still seems
8242       --  undesirable. To be investigated some time ???
8243
8244       N_Error,
8245
8246       --  N_Entity, N_Has_Etype, N_Has_Chars
8247
8248       N_Defining_Character_Literal,
8249       N_Defining_Identifier,
8250       N_Defining_Operator_Symbol,
8251
8252       --  N_Subexpr, N_Has_Etype, N_Has_Chars, N_Has_Entity
8253
8254       N_Expanded_Name,
8255
8256       --  N_Direct_Name, N_Subexpr, N_Has_Etype,
8257       --  N_Has_Chars, N_Has_Entity
8258
8259       N_Identifier,
8260       N_Operator_Symbol,
8261
8262       --  N_Direct_Name, N_Subexpr, N_Has_Etype,
8263       --  N_Has_Chars, N_Has_Entity
8264
8265       N_Character_Literal,
8266
8267       --  N_Binary_Op, N_Op, N_Subexpr,
8268       --  N_Has_Etype, N_Has_Chars, N_Has_Entity
8269
8270       N_Op_Add,
8271       N_Op_Concat,
8272       N_Op_Expon,
8273       N_Op_Subtract,
8274
8275       --  N_Binary_Op, N_Op, N_Subexpr, N_Has_Treat_Fixed_As_Integer
8276       --  N_Has_Etype, N_Has_Chars, N_Has_Entity, N_Multiplying_Operator
8277
8278       N_Op_Divide,
8279       N_Op_Mod,
8280       N_Op_Multiply,
8281       N_Op_Rem,
8282
8283       --  N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype
8284       --  N_Has_Entity, N_Has_Chars, N_Op_Boolean
8285
8286       N_Op_And,
8287
8288       --  N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype
8289       --  N_Has_Entity, N_Has_Chars, N_Op_Boolean, N_Op_Compare
8290
8291       N_Op_Eq,
8292       N_Op_Ge,
8293       N_Op_Gt,
8294       N_Op_Le,
8295       N_Op_Lt,
8296       N_Op_Ne,
8297
8298       --  N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype
8299       --  N_Has_Entity, N_Has_Chars, N_Op_Boolean
8300
8301       N_Op_Or,
8302       N_Op_Xor,
8303
8304       --  N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype,
8305       --  N_Op_Shift, N_Has_Chars, N_Has_Entity
8306
8307       N_Op_Rotate_Left,
8308       N_Op_Rotate_Right,
8309       N_Op_Shift_Left,
8310       N_Op_Shift_Right,
8311       N_Op_Shift_Right_Arithmetic,
8312
8313       --  N_Unary_Op, N_Op, N_Subexpr, N_Has_Etype,
8314       --  N_Has_Chars, N_Has_Entity
8315
8316       N_Op_Abs,
8317       N_Op_Minus,
8318       N_Op_Not,
8319       N_Op_Plus,
8320
8321       --  N_Subexpr, N_Has_Etype, N_Has_Entity
8322
8323       N_Attribute_Reference,
8324
8325       --  N_Subexpr, N_Has_Etype, N_Membership_Test
8326
8327       N_In,
8328       N_Not_In,
8329
8330       --  N_Subexpr, N_Has_Etype, N_Short_Circuit
8331
8332       N_And_Then,
8333       N_Or_Else,
8334
8335       --  N_Subexpr, N_Has_Etype, N_Subprogram_Call
8336
8337       N_Function_Call,
8338       N_Procedure_Call_Statement,
8339
8340       --  N_Subexpr, N_Has_Etype, N_Raise_xxx_Error
8341
8342       N_Raise_Constraint_Error,
8343       N_Raise_Program_Error,
8344       N_Raise_Storage_Error,
8345
8346       --  N_Subexpr, N_Has_Etype, N_Numeric_Or_String_Literal
8347
8348       N_Integer_Literal,
8349       N_Real_Literal,
8350       N_String_Literal,
8351
8352       --  N_Subexpr, N_Has_Etype
8353
8354       N_Explicit_Dereference,
8355       N_Expression_With_Actions,
8356       N_If_Expression,
8357       N_Indexed_Component,
8358       N_Null,
8359       N_Qualified_Expression,
8360       N_Quantified_Expression,
8361       N_Aggregate,
8362       N_Allocator,
8363       N_Case_Expression,
8364       N_Extension_Aggregate,
8365       N_Raise_Expression,
8366       N_Range,
8367       N_Reference,
8368       N_Selected_Component,
8369       N_Slice,
8370       N_Type_Conversion,
8371       N_Unchecked_Expression,
8372       N_Unchecked_Type_Conversion,
8373
8374       --  N_Has_Etype
8375
8376       N_Subtype_Indication,
8377
8378       --  N_Declaration
8379
8380       N_Component_Declaration,
8381       N_Entry_Declaration,
8382       N_Expression_Function,
8383       N_Formal_Object_Declaration,
8384       N_Formal_Type_Declaration,
8385       N_Full_Type_Declaration,
8386       N_Incomplete_Type_Declaration,
8387       N_Iterator_Specification,
8388       N_Loop_Parameter_Specification,
8389       N_Object_Declaration,
8390       N_Protected_Type_Declaration,
8391       N_Private_Extension_Declaration,
8392       N_Private_Type_Declaration,
8393       N_Subtype_Declaration,
8394
8395       --  N_Subprogram_Specification, N_Declaration
8396
8397       N_Function_Specification,
8398       N_Procedure_Specification,
8399
8400       --  N_Access_To_Subprogram_Definition
8401
8402       N_Access_Function_Definition,
8403       N_Access_Procedure_Definition,
8404
8405       --  N_Later_Decl_Item
8406
8407       N_Task_Type_Declaration,
8408
8409       --  N_Body_Stub, N_Later_Decl_Item
8410
8411       N_Package_Body_Stub,
8412       N_Protected_Body_Stub,
8413       N_Subprogram_Body_Stub,
8414       N_Task_Body_Stub,
8415
8416       --  N_Generic_Instantiation, N_Later_Decl_Item
8417       --  N_Subprogram_Instantiation
8418
8419       N_Function_Instantiation,
8420       N_Procedure_Instantiation,
8421
8422       --  N_Generic_Instantiation, N_Later_Decl_Item
8423
8424       N_Package_Instantiation,
8425
8426       --  N_Unit_Body, N_Later_Decl_Item, N_Proper_Body
8427
8428       N_Package_Body,
8429       N_Subprogram_Body,
8430
8431       --  N_Later_Decl_Item, N_Proper_Body
8432
8433       N_Protected_Body,
8434       N_Task_Body,
8435
8436       --  N_Later_Decl_Item
8437
8438       N_Implicit_Label_Declaration,
8439       N_Package_Declaration,
8440       N_Single_Task_Declaration,
8441       N_Subprogram_Declaration,
8442       N_Use_Package_Clause,
8443
8444       --  N_Generic_Declaration, N_Later_Decl_Item
8445
8446       N_Generic_Package_Declaration,
8447       N_Generic_Subprogram_Declaration,
8448
8449       --  N_Array_Type_Definition
8450
8451       N_Constrained_Array_Definition,
8452       N_Unconstrained_Array_Definition,
8453
8454       --  N_Renaming_Declaration
8455
8456       N_Exception_Renaming_Declaration,
8457       N_Object_Renaming_Declaration,
8458       N_Package_Renaming_Declaration,
8459       N_Subprogram_Renaming_Declaration,
8460
8461       --  N_Generic_Renaming_Declaration, N_Renaming_Declaration
8462
8463       N_Generic_Function_Renaming_Declaration,
8464       N_Generic_Package_Renaming_Declaration,
8465       N_Generic_Procedure_Renaming_Declaration,
8466
8467       --  N_Statement_Other_Than_Procedure_Call
8468
8469       N_Abort_Statement,
8470       N_Accept_Statement,
8471       N_Assignment_Statement,
8472       N_Asynchronous_Select,
8473       N_Block_Statement,
8474       N_Case_Statement,
8475       N_Code_Statement,
8476       N_Compound_Statement,
8477       N_Conditional_Entry_Call,
8478
8479       --  N_Statement_Other_Than_Procedure_Call, N_Delay_Statement
8480
8481       N_Delay_Relative_Statement,
8482       N_Delay_Until_Statement,
8483
8484       --  N_Statement_Other_Than_Procedure_Call
8485
8486       N_Entry_Call_Statement,
8487       N_Free_Statement,
8488       N_Goto_Statement,
8489       N_Loop_Statement,
8490       N_Null_Statement,
8491       N_Raise_Statement,
8492       N_Requeue_Statement,
8493       N_Simple_Return_Statement,
8494       N_Extended_Return_Statement,
8495       N_Selective_Accept,
8496       N_Timed_Entry_Call,
8497
8498       --  N_Statement_Other_Than_Procedure_Call, N_Has_Condition
8499
8500       N_Exit_Statement,
8501       N_If_Statement,
8502
8503       --  N_Has_Condition
8504
8505       N_Accept_Alternative,
8506       N_Delay_Alternative,
8507       N_Elsif_Part,
8508       N_Entry_Body_Formal_Part,
8509       N_Iteration_Scheme,
8510       N_Terminate_Alternative,
8511
8512       --  N_Formal_Subprogram_Declaration
8513
8514       N_Formal_Abstract_Subprogram_Declaration,
8515       N_Formal_Concrete_Subprogram_Declaration,
8516
8517       --  N_Push_xxx_Label, N_Push_Pop_xxx_Label
8518
8519       N_Push_Constraint_Error_Label,
8520       N_Push_Program_Error_Label,
8521       N_Push_Storage_Error_Label,
8522
8523       --  N_Pop_xxx_Label, N_Push_Pop_xxx_Label
8524
8525       N_Pop_Constraint_Error_Label,
8526       N_Pop_Program_Error_Label,
8527       N_Pop_Storage_Error_Label,
8528
8529       --  SCIL nodes
8530
8531       N_SCIL_Dispatch_Table_Tag_Init,
8532       N_SCIL_Dispatching_Call,
8533       N_SCIL_Membership_Test,
8534
8535       --  Other nodes (not part of any subtype class)
8536
8537       N_Abortable_Part,
8538       N_Abstract_Subprogram_Declaration,
8539       N_Access_Definition,
8540       N_Access_To_Object_Definition,
8541       N_Aspect_Specification,
8542       N_Case_Expression_Alternative,
8543       N_Case_Statement_Alternative,
8544       N_Compilation_Unit,
8545       N_Compilation_Unit_Aux,
8546       N_Component_Association,
8547       N_Component_Definition,
8548       N_Component_List,
8549       N_Contract,
8550       N_Derived_Type_Definition,
8551       N_Decimal_Fixed_Point_Definition,
8552       N_Defining_Program_Unit_Name,
8553       N_Delta_Constraint,
8554       N_Designator,
8555       N_Digits_Constraint,
8556       N_Discriminant_Association,
8557       N_Discriminant_Specification,
8558       N_Enumeration_Type_Definition,
8559       N_Entry_Body,
8560       N_Entry_Call_Alternative,
8561       N_Entry_Index_Specification,
8562       N_Exception_Declaration,
8563       N_Exception_Handler,
8564       N_Floating_Point_Definition,
8565       N_Formal_Decimal_Fixed_Point_Definition,
8566       N_Formal_Derived_Type_Definition,
8567       N_Formal_Discrete_Type_Definition,
8568       N_Formal_Floating_Point_Definition,
8569       N_Formal_Modular_Type_Definition,
8570       N_Formal_Ordinary_Fixed_Point_Definition,
8571       N_Formal_Package_Declaration,
8572       N_Formal_Private_Type_Definition,
8573       N_Formal_Incomplete_Type_Definition,
8574       N_Formal_Signed_Integer_Type_Definition,
8575       N_Freeze_Entity,
8576       N_Freeze_Generic_Entity,
8577       N_Generic_Association,
8578       N_Handled_Sequence_Of_Statements,
8579       N_Index_Or_Discriminant_Constraint,
8580       N_Itype_Reference,
8581       N_Label,
8582       N_Modular_Type_Definition,
8583       N_Number_Declaration,
8584       N_Ordinary_Fixed_Point_Definition,
8585       N_Others_Choice,
8586       N_Package_Specification,
8587       N_Parameter_Association,
8588       N_Parameter_Specification,
8589       N_Pragma,
8590       N_Protected_Definition,
8591       N_Range_Constraint,
8592       N_Real_Range_Specification,
8593       N_Record_Definition,
8594       N_Signed_Integer_Type_Definition,
8595       N_Single_Protected_Declaration,
8596       N_Subunit,
8597       N_Task_Definition,
8598       N_Triggering_Alternative,
8599       N_Use_Type_Clause,
8600       N_Validate_Unchecked_Conversion,
8601       N_Variant,
8602       N_Variant_Part,
8603       N_With_Clause,
8604       N_Unused_At_End);
8605
8606    for Node_Kind'Size use 8;
8607    --  The data structures in Atree assume this
8608
8609    ----------------------------
8610    -- Node Class Definitions --
8611    ----------------------------
8612
8613    subtype N_Access_To_Subprogram_Definition is Node_Kind range
8614      N_Access_Function_Definition ..
8615      N_Access_Procedure_Definition;
8616
8617    subtype N_Array_Type_Definition is Node_Kind range
8618      N_Constrained_Array_Definition ..
8619      N_Unconstrained_Array_Definition;
8620
8621    subtype N_Binary_Op is Node_Kind range
8622      N_Op_Add ..
8623      N_Op_Shift_Right_Arithmetic;
8624
8625    subtype N_Body_Stub is Node_Kind range
8626      N_Package_Body_Stub ..
8627      N_Task_Body_Stub;
8628
8629    subtype N_Declaration is Node_Kind range
8630      N_Component_Declaration ..
8631      N_Procedure_Specification;
8632    --  Note: this includes all constructs normally thought of as declarations
8633    --  except those which are separately grouped as later declarations.
8634
8635    subtype N_Delay_Statement is Node_Kind range
8636       N_Delay_Relative_Statement ..
8637       N_Delay_Until_Statement;
8638
8639    subtype N_Direct_Name is Node_Kind range
8640      N_Identifier ..
8641      N_Character_Literal;
8642
8643    subtype N_Entity is Node_Kind range
8644      N_Defining_Character_Literal ..
8645      N_Defining_Operator_Symbol;
8646
8647    subtype N_Formal_Subprogram_Declaration is Node_Kind range
8648      N_Formal_Abstract_Subprogram_Declaration ..
8649      N_Formal_Concrete_Subprogram_Declaration;
8650
8651    subtype N_Generic_Declaration is Node_Kind range
8652      N_Generic_Package_Declaration ..
8653      N_Generic_Subprogram_Declaration;
8654
8655    subtype N_Generic_Instantiation is Node_Kind range
8656      N_Function_Instantiation ..
8657      N_Package_Instantiation;
8658
8659    subtype N_Generic_Renaming_Declaration is Node_Kind range
8660      N_Generic_Function_Renaming_Declaration ..
8661      N_Generic_Procedure_Renaming_Declaration;
8662
8663    subtype N_Has_Chars is Node_Kind range
8664      N_Attribute_Definition_Clause ..
8665      N_Op_Plus;
8666
8667    subtype N_Has_Entity is Node_Kind range
8668      N_Expanded_Name ..
8669      N_Attribute_Reference;
8670    --  Nodes that have Entity fields
8671    --  Warning: DOES NOT INCLUDE N_Freeze_Entity, N_Freeze_Generic_Entity,
8672    --  N_Aspect_Specification, or N_Attribute_Definition_Clause.
8673
8674    subtype N_Has_Etype is Node_Kind range
8675      N_Error ..
8676      N_Subtype_Indication;
8677
8678    subtype N_Has_Treat_Fixed_As_Integer is Node_Kind range
8679       N_Op_Divide ..
8680       N_Op_Rem;
8681
8682    subtype N_Multiplying_Operator is Node_Kind range
8683       N_Op_Divide ..
8684       N_Op_Rem;
8685
8686    subtype N_Later_Decl_Item is Node_Kind range
8687      N_Task_Type_Declaration ..
8688      N_Generic_Subprogram_Declaration;
8689    --  Note: this is Ada 83 relevant only (see Ada 83 RM 3.9 (2)) and includes
8690    --  only those items which can appear as later declarative items. This also
8691    --  includes N_Implicit_Label_Declaration which is not specifically in the
8692    --  grammar but may appear as a valid later declarative items. It does NOT
8693    --  include N_Pragma which can also appear among later declarative items.
8694    --  It does however include N_Protected_Body, which is a bit peculiar, but
8695    --  harmless since this cannot appear in Ada 83 mode anyway.
8696
8697    subtype N_Membership_Test is Node_Kind range
8698       N_In ..
8699       N_Not_In;
8700
8701    subtype N_Numeric_Or_String_Literal is Node_Kind range
8702       N_Integer_Literal ..
8703       N_String_Literal;
8704
8705    subtype N_Op is Node_Kind range
8706      N_Op_Add ..
8707      N_Op_Plus;
8708
8709    subtype N_Op_Boolean is Node_Kind range
8710      N_Op_And ..
8711      N_Op_Xor;
8712    --  Binary operators which take operands of a boolean type, and yield
8713    --  a result of a boolean type.
8714
8715    subtype N_Op_Compare is Node_Kind range
8716      N_Op_Eq ..
8717      N_Op_Ne;
8718
8719    subtype N_Op_Shift is Node_Kind range
8720      N_Op_Rotate_Left ..
8721      N_Op_Shift_Right_Arithmetic;
8722
8723    subtype N_Proper_Body is Node_Kind range
8724      N_Package_Body ..
8725      N_Task_Body;
8726
8727    subtype N_Push_xxx_Label is Node_Kind range
8728      N_Push_Constraint_Error_Label ..
8729      N_Push_Storage_Error_Label;
8730
8731    subtype N_Pop_xxx_Label is Node_Kind range
8732      N_Pop_Constraint_Error_Label ..
8733      N_Pop_Storage_Error_Label;
8734
8735    subtype N_Push_Pop_xxx_Label is Node_Kind range
8736      N_Push_Constraint_Error_Label ..
8737      N_Pop_Storage_Error_Label;
8738
8739    subtype N_Raise_xxx_Error is Node_Kind range
8740      N_Raise_Constraint_Error ..
8741      N_Raise_Storage_Error;
8742
8743    subtype N_Renaming_Declaration is Node_Kind range
8744      N_Exception_Renaming_Declaration ..
8745      N_Generic_Procedure_Renaming_Declaration;
8746
8747    subtype N_Representation_Clause is Node_Kind range
8748      N_At_Clause ..
8749      N_Attribute_Definition_Clause;
8750
8751    subtype N_Short_Circuit is Node_Kind range
8752      N_And_Then ..
8753      N_Or_Else;
8754
8755    subtype N_SCIL_Node is Node_Kind range
8756      N_SCIL_Dispatch_Table_Tag_Init ..
8757      N_SCIL_Membership_Test;
8758
8759    subtype N_Statement_Other_Than_Procedure_Call is Node_Kind range
8760      N_Abort_Statement ..
8761      N_If_Statement;
8762    --  Note that this includes all statement types except for the cases of the
8763    --  N_Procedure_Call_Statement which is considered to be a subexpression
8764    --  (since overloading is possible, so it needs to go through the normal
8765    --  overloading resolution for expressions).
8766
8767    subtype N_Subprogram_Call is Node_Kind range
8768       N_Function_Call ..
8769       N_Procedure_Call_Statement;
8770
8771    subtype N_Subprogram_Instantiation is Node_Kind range
8772      N_Function_Instantiation ..
8773      N_Procedure_Instantiation;
8774
8775    subtype N_Has_Condition is Node_Kind range
8776      N_Exit_Statement ..
8777      N_Terminate_Alternative;
8778    --  Nodes with condition fields (does not include N_Raise_xxx_Error)
8779
8780    subtype N_Subexpr is Node_Kind range
8781      N_Expanded_Name ..
8782      N_Unchecked_Type_Conversion;
8783    --  Nodes with expression fields
8784
8785    subtype N_Subprogram_Specification is Node_Kind range
8786      N_Function_Specification ..
8787      N_Procedure_Specification;
8788
8789    subtype N_Unary_Op is Node_Kind range
8790      N_Op_Abs ..
8791      N_Op_Plus;
8792
8793    subtype N_Unit_Body is Node_Kind range
8794      N_Package_Body ..
8795      N_Subprogram_Body;
8796
8797    ---------------------------
8798    -- Node Access Functions --
8799    ---------------------------
8800
8801    --  The following functions return the contents of the indicated field of
8802    --  the node referenced by the argument, which is a Node_Id. They provide
8803    --  logical access to fields in the node which could be accessed using the
8804    --  Atree.Unchecked_Access package, but the idea is always to use these
8805    --  higher level routines which preserve strong typing. In debug mode,
8806    --  these routines check that they are being applied to an appropriate
8807    --  node, as well as checking that the node is in range.
8808
8809    function ABE_Is_Certain
8810      (N : Node_Id) return Boolean;    -- Flag18
8811
8812    function Abort_Present
8813      (N : Node_Id) return Boolean;    -- Flag15
8814
8815    function Abortable_Part
8816      (N : Node_Id) return Node_Id;    -- Node2
8817
8818    function Abstract_Present
8819      (N : Node_Id) return Boolean;    -- Flag4
8820
8821    function Accept_Handler_Records
8822      (N : Node_Id) return List_Id;    -- List5
8823
8824    function Accept_Statement
8825      (N : Node_Id) return Node_Id;    -- Node2
8826
8827    function Access_Definition
8828      (N : Node_Id) return Node_Id;    -- Node3
8829
8830    function Access_To_Subprogram_Definition
8831      (N : Node_Id) return Node_Id;    -- Node3
8832
8833    function Access_Types_To_Process
8834      (N : Node_Id) return Elist_Id;   -- Elist2
8835
8836    function Actions
8837      (N : Node_Id) return List_Id;    -- List1
8838
8839    function Activation_Chain_Entity
8840      (N : Node_Id) return Node_Id;    -- Node3
8841
8842    function Acts_As_Spec
8843      (N : Node_Id) return Boolean;    -- Flag4
8844
8845    function Actual_Designated_Subtype
8846      (N : Node_Id) return Node_Id;    -- Node4
8847
8848    function Address_Warning_Posted
8849      (N : Node_Id) return Boolean;    -- Flag18
8850
8851    function Aggregate_Bounds
8852      (N : Node_Id) return Node_Id;    -- Node3
8853
8854    function Aliased_Present
8855      (N : Node_Id) return Boolean;    -- Flag4
8856
8857    function All_Others
8858      (N : Node_Id) return Boolean;    -- Flag11
8859
8860    function All_Present
8861      (N : Node_Id) return Boolean;    -- Flag15
8862
8863    function Alternatives
8864      (N : Node_Id) return List_Id;    -- List4
8865
8866    function Ancestor_Part
8867      (N : Node_Id) return Node_Id;    -- Node3
8868
8869    function Atomic_Sync_Required
8870      (N : Node_Id) return Boolean;    -- Flag14
8871
8872    function Array_Aggregate
8873      (N : Node_Id) return Node_Id;    -- Node3
8874
8875    function Aspect_Rep_Item
8876      (N : Node_Id) return Node_Id;    -- Node2
8877
8878    function Assignment_OK
8879      (N : Node_Id) return Boolean;    -- Flag15
8880
8881    function Associated_Node
8882      (N : Node_Id) return Node_Id;    -- Node4
8883
8884    function At_End_Proc
8885      (N : Node_Id) return Node_Id;    -- Node1
8886
8887    function Attribute_Name
8888      (N : Node_Id) return Name_Id;    -- Name2
8889
8890    function Aux_Decls_Node
8891      (N : Node_Id) return Node_Id;    -- Node5
8892
8893    function Backwards_OK
8894      (N : Node_Id) return Boolean;    -- Flag6
8895
8896    function Bad_Is_Detected
8897      (N : Node_Id) return Boolean;    -- Flag15
8898
8899    function By_Ref
8900      (N : Node_Id) return Boolean;    -- Flag5
8901
8902    function Body_Required
8903      (N : Node_Id) return Boolean;    -- Flag13
8904
8905    function Body_To_Inline
8906      (N : Node_Id) return Node_Id;    -- Node3
8907
8908    function Box_Present
8909      (N : Node_Id) return Boolean;    -- Flag15
8910
8911    function Char_Literal_Value
8912      (N : Node_Id) return Uint;       -- Uint2
8913
8914    function Chars
8915      (N : Node_Id) return Name_Id;    -- Name1
8916
8917    function Check_Address_Alignment
8918      (N : Node_Id) return Boolean;    -- Flag11
8919
8920    function Choice_Parameter
8921      (N : Node_Id) return Node_Id;    -- Node2
8922
8923    function Choices
8924      (N : Node_Id) return List_Id;    -- List1
8925
8926    function Class_Present
8927      (N : Node_Id) return Boolean;    -- Flag6
8928
8929    function Classifications
8930      (N : Node_Id) return Node_Id;    -- Node3
8931
8932    function Cleanup_Actions
8933      (N : Node_Id) return List_Id;    -- List5
8934
8935    function Comes_From_Extended_Return_Statement
8936      (N : Node_Id) return Boolean;    -- Flag18
8937
8938    function Compile_Time_Known_Aggregate
8939      (N : Node_Id) return Boolean;    -- Flag18
8940
8941    function Component_Associations
8942      (N : Node_Id) return List_Id;    -- List2
8943
8944    function Component_Clauses
8945      (N : Node_Id) return List_Id;    -- List3
8946
8947    function Component_Definition
8948      (N : Node_Id) return Node_Id;    -- Node4
8949
8950    function Component_Items
8951      (N : Node_Id) return List_Id;    -- List3
8952
8953    function Component_List
8954      (N : Node_Id) return Node_Id;    -- Node1
8955
8956    function Component_Name
8957      (N : Node_Id) return Node_Id;    -- Node1
8958
8959    function Componentwise_Assignment
8960      (N : Node_Id) return Boolean;    -- Flag14
8961
8962    function Condition
8963      (N : Node_Id) return Node_Id;    -- Node1
8964
8965    function Condition_Actions
8966      (N : Node_Id) return List_Id;    -- List3
8967
8968    function Config_Pragmas
8969      (N : Node_Id) return List_Id;    -- List4
8970
8971    function Constant_Present
8972      (N : Node_Id) return Boolean;    -- Flag17
8973
8974    function Constraint
8975      (N : Node_Id) return Node_Id;    -- Node3
8976
8977    function Constraints
8978      (N : Node_Id) return List_Id;    -- List1
8979
8980    function Context_Installed
8981      (N : Node_Id) return Boolean;    -- Flag13
8982
8983    function Context_Pending
8984      (N : Node_Id) return Boolean;    -- Flag16
8985
8986    function Context_Items
8987      (N : Node_Id) return List_Id;    -- List1
8988
8989    function Contract_Test_Cases
8990      (N : Node_Id) return Node_Id;    -- Node2
8991
8992    function Controlling_Argument
8993      (N : Node_Id) return Node_Id;    -- Node1
8994
8995    function Conversion_OK
8996      (N : Node_Id) return Boolean;    -- Flag14
8997
8998    function Convert_To_Return_False
8999      (N : Node_Id) return Boolean;    -- Flag13
9000
9001    function Corresponding_Aspect
9002      (N : Node_Id) return Node_Id;    -- Node3
9003
9004    function Corresponding_Body
9005      (N : Node_Id) return Node_Id;    -- Node5
9006
9007    function Corresponding_Formal_Spec
9008      (N : Node_Id) return Node_Id;    -- Node3
9009
9010    function Corresponding_Generic_Association
9011      (N : Node_Id) return Node_Id;    -- Node5
9012
9013    function Corresponding_Integer_Value
9014      (N : Node_Id) return Uint;       -- Uint4
9015
9016    function Corresponding_Spec
9017      (N : Node_Id) return Entity_Id;  -- Node5
9018
9019    function Corresponding_Spec_Of_Stub
9020      (N : Node_Id) return Node_Id;    -- Node2
9021
9022    function Corresponding_Stub
9023      (N : Node_Id) return Node_Id;    -- Node3
9024
9025    function Dcheck_Function
9026      (N : Node_Id) return Entity_Id;  -- Node5
9027
9028    function Declarations
9029      (N : Node_Id) return List_Id;    -- List2
9030
9031    function Default_Expression
9032      (N : Node_Id) return Node_Id;    -- Node5
9033
9034    function Default_Storage_Pool
9035      (N : Node_Id) return Node_Id;    -- Node3
9036
9037    function Default_Name
9038      (N : Node_Id) return Node_Id;    -- Node2
9039
9040    function Defining_Identifier
9041      (N : Node_Id) return Entity_Id;  -- Node1
9042
9043    function Defining_Unit_Name
9044      (N : Node_Id) return Node_Id;    -- Node1
9045
9046    function Delay_Alternative
9047      (N : Node_Id) return Node_Id;    -- Node4
9048
9049    function Delay_Statement
9050      (N : Node_Id) return Node_Id;    -- Node2
9051
9052    function Delta_Expression
9053      (N : Node_Id) return Node_Id;    -- Node3
9054
9055    function Digits_Expression
9056      (N : Node_Id) return Node_Id;    -- Node2
9057
9058    function Discr_Check_Funcs_Built
9059      (N : Node_Id) return Boolean;    -- Flag11
9060
9061    function Discrete_Choices
9062      (N : Node_Id) return List_Id;    -- List4
9063
9064    function Discrete_Range
9065      (N : Node_Id) return Node_Id;    -- Node4
9066
9067    function Discrete_Subtype_Definition
9068      (N : Node_Id) return Node_Id;    -- Node4
9069
9070    function Discrete_Subtype_Definitions
9071      (N : Node_Id) return List_Id;    -- List2
9072
9073    function Discriminant_Specifications
9074      (N : Node_Id) return List_Id;    -- List4
9075
9076    function Discriminant_Type
9077      (N : Node_Id) return Node_Id;    -- Node5
9078
9079    function Do_Accessibility_Check
9080      (N : Node_Id) return Boolean;    -- Flag13
9081
9082    function Do_Discriminant_Check
9083      (N : Node_Id) return Boolean;    -- Flag1
9084
9085    function Do_Division_Check
9086      (N : Node_Id) return Boolean;    -- Flag13
9087
9088    function Do_Length_Check
9089      (N : Node_Id) return Boolean;    -- Flag4
9090
9091    function Do_Overflow_Check
9092      (N : Node_Id) return Boolean;    -- Flag17
9093
9094    function Do_Range_Check
9095      (N : Node_Id) return Boolean;    -- Flag9
9096
9097    function Do_Storage_Check
9098      (N : Node_Id) return Boolean;    -- Flag17
9099
9100    function Do_Tag_Check
9101      (N : Node_Id) return Boolean;    -- Flag13
9102
9103    function Elaborate_All_Desirable
9104      (N : Node_Id) return Boolean;    -- Flag9
9105
9106    function Elaborate_All_Present
9107      (N : Node_Id) return Boolean;    -- Flag14
9108
9109    function Elaborate_Desirable
9110      (N : Node_Id) return Boolean;    -- Flag11
9111
9112    function Elaborate_Present
9113      (N : Node_Id) return Boolean;    -- Flag4
9114
9115    function Else_Actions
9116      (N : Node_Id) return List_Id;    -- List3
9117
9118    function Else_Statements
9119      (N : Node_Id) return List_Id;    -- List4
9120
9121    function Elsif_Parts
9122      (N : Node_Id) return List_Id;    -- List3
9123
9124    function Enclosing_Variant
9125      (N : Node_Id) return Node_Id;    -- Node2
9126
9127    function End_Label
9128      (N : Node_Id) return Node_Id;    -- Node4
9129
9130    function End_Span
9131      (N : Node_Id) return Uint;       -- Uint5
9132
9133    function Entity
9134      (N : Node_Id) return Node_Id;    -- Node4
9135
9136    function Entity_Or_Associated_Node
9137      (N : Node_Id) return Node_Id;    -- Node4
9138
9139    function Entry_Body_Formal_Part
9140      (N : Node_Id) return Node_Id;    -- Node5
9141
9142    function Entry_Call_Alternative
9143      (N : Node_Id) return Node_Id;    -- Node1
9144
9145    function Entry_Call_Statement
9146      (N : Node_Id) return Node_Id;    -- Node1
9147
9148    function Entry_Direct_Name
9149      (N : Node_Id) return Node_Id;    -- Node1
9150
9151    function Entry_Index
9152      (N : Node_Id) return Node_Id;    -- Node5
9153
9154    function Entry_Index_Specification
9155      (N : Node_Id) return Node_Id;    -- Node4
9156
9157    function Etype
9158      (N : Node_Id) return Node_Id;    -- Node5
9159
9160    function Exception_Choices
9161      (N : Node_Id) return List_Id;    -- List4
9162
9163    function Exception_Handlers
9164      (N : Node_Id) return List_Id;    -- List5
9165
9166    function Exception_Junk
9167      (N : Node_Id) return Boolean;    -- Flag8
9168
9169    function Exception_Label
9170      (N : Node_Id) return Node_Id;    -- Node5
9171
9172    function Explicit_Actual_Parameter
9173      (N : Node_Id) return Node_Id;    -- Node3
9174
9175    function Expansion_Delayed
9176      (N : Node_Id) return Boolean;    -- Flag11
9177
9178    function Explicit_Generic_Actual_Parameter
9179      (N : Node_Id) return Node_Id;    -- Node1
9180
9181    function Expression
9182      (N : Node_Id) return Node_Id;    -- Node3
9183
9184    function Expressions
9185      (N : Node_Id) return List_Id;    -- List1
9186
9187    function First_Bit
9188      (N : Node_Id) return Node_Id;    -- Node3
9189
9190    function First_Inlined_Subprogram
9191      (N : Node_Id) return Entity_Id;  -- Node3
9192
9193    function First_Name
9194      (N : Node_Id) return Boolean;    -- Flag5
9195
9196    function First_Named_Actual
9197      (N : Node_Id) return Node_Id;    -- Node4
9198
9199    function First_Real_Statement
9200      (N : Node_Id) return Node_Id;    -- Node2
9201
9202    function First_Subtype_Link
9203      (N : Node_Id) return Entity_Id;  -- Node5
9204
9205    function Float_Truncate
9206      (N : Node_Id) return Boolean;    -- Flag11
9207
9208    function Formal_Type_Definition
9209      (N : Node_Id) return Node_Id;    -- Node3
9210
9211    function Forwards_OK
9212      (N : Node_Id) return Boolean;    -- Flag5
9213
9214    function From_Aspect_Specification
9215      (N : Node_Id) return Boolean;    -- Flag13
9216
9217    function From_At_End
9218      (N : Node_Id) return Boolean;    -- Flag4
9219
9220    function From_At_Mod
9221      (N : Node_Id) return Boolean;    -- Flag4
9222
9223    function From_Conditional_Expression
9224      (N : Node_Id) return Boolean;    -- Flag1
9225
9226    function From_Default
9227      (N : Node_Id) return Boolean;    -- Flag6
9228
9229    function Generalized_Indexing
9230      (N : Node_Id) return Node_Id;    -- Node4
9231    function Generic_Associations
9232      (N : Node_Id) return List_Id;    -- List3
9233
9234    function Generic_Formal_Declarations
9235      (N : Node_Id) return List_Id;    -- List2
9236
9237    function Generic_Parent
9238      (N : Node_Id) return Node_Id;    -- Node5
9239
9240    function Generic_Parent_Type
9241      (N : Node_Id) return Node_Id;    -- Node4
9242
9243    function Handled_Statement_Sequence
9244      (N : Node_Id) return Node_Id;    -- Node4
9245
9246    function Handler_List_Entry
9247      (N : Node_Id) return Node_Id;    -- Node2
9248
9249    function Has_Created_Identifier
9250      (N : Node_Id) return Boolean;    -- Flag15
9251
9252    function Has_Dereference_Action
9253      (N : Node_Id) return Boolean;    -- Flag13
9254
9255    function Has_Dynamic_Length_Check
9256      (N : Node_Id) return Boolean;    -- Flag10
9257
9258    function Has_Dynamic_Range_Check
9259      (N : Node_Id) return Boolean;    -- Flag12
9260
9261    function Has_Init_Expression
9262      (N : Node_Id) return Boolean;    -- Flag14
9263
9264    function Has_Local_Raise
9265      (N : Node_Id) return Boolean;    -- Flag8
9266
9267    function Has_No_Elaboration_Code
9268      (N : Node_Id) return Boolean;    -- Flag17
9269
9270    function Has_Pragma_Suppress_All
9271      (N : Node_Id) return Boolean;    -- Flag14
9272
9273    function Has_Private_View
9274      (N : Node_Id) return Boolean;    -- Flag11
9275
9276    function Has_Relative_Deadline_Pragma
9277      (N : Node_Id) return Boolean;    -- Flag9
9278
9279    function Has_Self_Reference
9280      (N : Node_Id) return Boolean;    -- Flag13
9281
9282    function Has_SP_Choice
9283      (N : Node_Id) return Boolean;    -- Flag15
9284
9285    function Has_Storage_Size_Pragma
9286      (N : Node_Id) return Boolean;    -- Flag5
9287
9288    function Has_Wide_Character
9289      (N : Node_Id) return Boolean;    -- Flag11
9290
9291    function Has_Wide_Wide_Character
9292      (N : Node_Id) return Boolean;    -- Flag13
9293
9294    function Header_Size_Added
9295      (N : Node_Id) return Boolean;    -- Flag11
9296
9297    function Hidden_By_Use_Clause
9298      (N : Node_Id) return Elist_Id;   -- Elist4
9299
9300    function High_Bound
9301      (N : Node_Id) return Node_Id;    -- Node2
9302
9303    function Identifier
9304      (N : Node_Id) return Node_Id;    -- Node1
9305
9306    function Interface_List
9307      (N : Node_Id) return List_Id;    -- List2
9308
9309    function Interface_Present
9310      (N : Node_Id) return Boolean;    -- Flag16
9311
9312    function Implicit_With
9313      (N : Node_Id) return Boolean;    -- Flag16
9314
9315    function Implicit_With_From_Instantiation
9316      (N : Node_Id) return Boolean;    -- Flag12
9317
9318    function Import_Interface_Present
9319      (N : Node_Id) return Boolean;    -- Flag16
9320
9321    function In_Present
9322      (N : Node_Id) return Boolean;    -- Flag15
9323
9324    function Includes_Infinities
9325      (N : Node_Id) return Boolean;    -- Flag11
9326
9327    function Incomplete_View
9328      (N : Node_Id) return Node_Id;    -- Node2
9329
9330    function Inherited_Discriminant
9331      (N : Node_Id) return Boolean;    -- Flag13
9332
9333    function Instance_Spec
9334      (N : Node_Id) return Node_Id;    -- Node5
9335
9336    function Intval
9337      (N : Node_Id) return Uint;       -- Uint3
9338
9339    function Is_Abort_Block
9340      (N : Node_Id) return Boolean;    -- Flag4
9341
9342    function Is_Accessibility_Actual
9343      (N : Node_Id) return Boolean;    -- Flag13
9344
9345    function Is_Analyzed_Pragma
9346      (N : Node_Id) return Boolean;    -- Flag5
9347
9348    function Is_Asynchronous_Call_Block
9349      (N : Node_Id) return Boolean;    -- Flag7
9350
9351    function Is_Boolean_Aspect
9352      (N : Node_Id) return Boolean;    -- Flag16
9353
9354    function Is_Checked
9355      (N : Node_Id) return Boolean;    -- Flag11
9356
9357    function Is_Component_Left_Opnd
9358      (N : Node_Id) return Boolean;    -- Flag13
9359
9360    function Is_Component_Right_Opnd
9361      (N : Node_Id) return Boolean;    -- Flag14
9362
9363    function Is_Controlling_Actual
9364      (N : Node_Id) return Boolean;    -- Flag16
9365
9366    function Is_Delayed_Aspect
9367      (N : Node_Id) return Boolean;    -- Flag14
9368
9369    function Is_Disabled
9370      (N : Node_Id) return Boolean;    -- Flag15
9371
9372    function Is_Dynamic_Coextension
9373      (N : Node_Id) return Boolean;    -- Flag18
9374
9375    function Is_Elsif
9376      (N : Node_Id) return Boolean;    -- Flag13
9377
9378    function Is_Entry_Barrier_Function
9379      (N : Node_Id) return Boolean;    -- Flag8
9380
9381    function Is_Expanded_Build_In_Place_Call
9382      (N : Node_Id) return Boolean;    -- Flag11
9383
9384    function Is_Expanded_Contract
9385      (N : Node_Id) return Boolean;    -- Flag1
9386
9387    function Is_Finalization_Wrapper
9388      (N : Node_Id) return Boolean;    -- Flag9
9389
9390    function Is_Folded_In_Parser
9391      (N : Node_Id) return Boolean;    -- Flag4
9392
9393    function Is_Generic_Contract_Pragma
9394      (N : Node_Id) return Boolean;    -- Flag2
9395
9396    function Is_Ghost_Pragma
9397      (N : Node_Id) return Boolean;    -- Flag3
9398
9399    function Is_Ignored
9400      (N : Node_Id) return Boolean;    -- Flag9
9401
9402    function Is_In_Discriminant_Check
9403      (N : Node_Id) return Boolean;    -- Flag11
9404
9405    function Is_Inherited_Pragma
9406      (N : Node_Id) return Boolean;    -- Flag4
9407
9408    function Is_Machine_Number
9409      (N : Node_Id) return Boolean;    -- Flag11
9410
9411    function Is_Null_Loop
9412      (N : Node_Id) return Boolean;    -- Flag16
9413
9414    function Is_Overloaded
9415      (N : Node_Id) return Boolean;    -- Flag5
9416
9417    function Is_Power_Of_2_For_Shift
9418      (N : Node_Id) return Boolean;    -- Flag13
9419
9420    function Is_Prefixed_Call
9421      (N : Node_Id) return Boolean;    -- Flag17
9422
9423    function Is_Protected_Subprogram_Body
9424      (N : Node_Id) return Boolean;    -- Flag7
9425
9426    function Is_Qualified_Universal_Literal
9427      (N : Node_Id) return Boolean;    -- Flag4
9428
9429    function Is_Static_Coextension
9430      (N : Node_Id) return Boolean;    -- Flag14
9431
9432    function Is_Static_Expression
9433      (N : Node_Id) return Boolean;    -- Flag6
9434
9435    function Is_Subprogram_Descriptor
9436      (N : Node_Id) return Boolean;    -- Flag16
9437
9438    function Is_Task_Allocation_Block
9439      (N : Node_Id) return Boolean;    -- Flag6
9440
9441    function Is_Task_Body_Procedure
9442      (N : Node_Id) return Boolean;    -- Flag1
9443
9444    function Is_Task_Master
9445      (N : Node_Id) return Boolean;    -- Flag5
9446
9447    function Iteration_Scheme
9448      (N : Node_Id) return Node_Id;    -- Node2
9449
9450    function Iterator_Specification
9451      (N : Node_Id) return Node_Id;    -- Node2
9452
9453    function Itype
9454      (N : Node_Id) return Entity_Id;  -- Node1
9455
9456    function Kill_Range_Check
9457      (N : Node_Id) return Boolean;    -- Flag11
9458
9459    function Label_Construct
9460      (N : Node_Id) return Node_Id;    -- Node2
9461
9462    function Left_Opnd
9463      (N : Node_Id) return Node_Id;    -- Node2
9464
9465    function Last_Bit
9466      (N : Node_Id) return Node_Id;    -- Node4
9467
9468    function Last_Name
9469      (N : Node_Id) return Boolean;    -- Flag6
9470
9471    function Library_Unit
9472      (N : Node_Id) return Node_Id;    -- Node4
9473
9474    function Limited_View_Installed
9475      (N : Node_Id) return Boolean;    -- Flag18
9476
9477    function Limited_Present
9478      (N : Node_Id) return Boolean;    -- Flag17
9479
9480    function Literals
9481      (N : Node_Id) return List_Id;    -- List1
9482
9483    function Local_Raise_Not_OK
9484      (N : Node_Id) return Boolean;    -- Flag7
9485
9486    function Local_Raise_Statements
9487      (N : Node_Id) return Elist_Id;   -- Elist1
9488
9489    function Loop_Actions
9490      (N : Node_Id) return List_Id;    -- List2
9491
9492    function Loop_Parameter_Specification
9493      (N : Node_Id) return Node_Id;    -- Node4
9494
9495    function Low_Bound
9496      (N : Node_Id) return Node_Id;    -- Node1
9497
9498    function Mod_Clause
9499      (N : Node_Id) return Node_Id;    -- Node2
9500
9501    function More_Ids
9502      (N : Node_Id) return Boolean;    -- Flag5
9503
9504    function Must_Be_Byte_Aligned
9505      (N : Node_Id) return Boolean;    -- Flag14
9506
9507    function Must_Not_Freeze
9508      (N : Node_Id) return Boolean;    -- Flag8
9509
9510    function Must_Not_Override
9511      (N : Node_Id) return Boolean;    -- Flag15
9512
9513    function Must_Override
9514      (N : Node_Id) return Boolean;    -- Flag14
9515
9516    function Name
9517      (N : Node_Id) return Node_Id;    -- Node2
9518
9519    function Names
9520      (N : Node_Id) return List_Id;    -- List2
9521
9522    function Next_Entity
9523      (N : Node_Id) return Node_Id;    -- Node2
9524
9525    function Next_Exit_Statement
9526      (N : Node_Id) return Node_Id;    -- Node3
9527
9528    function Next_Implicit_With
9529      (N : Node_Id) return Node_Id;    -- Node3
9530
9531    function Next_Named_Actual
9532      (N : Node_Id) return Node_Id;    -- Node4
9533
9534    function Next_Pragma
9535      (N : Node_Id) return Node_Id;    -- Node1
9536
9537    function Next_Rep_Item
9538      (N : Node_Id) return Node_Id;    -- Node5
9539
9540    function Next_Use_Clause
9541      (N : Node_Id) return Node_Id;    -- Node3
9542
9543    function No_Ctrl_Actions
9544      (N : Node_Id) return Boolean;    -- Flag7
9545
9546    function No_Elaboration_Check
9547      (N : Node_Id) return Boolean;    -- Flag14
9548
9549    function No_Entities_Ref_In_Spec
9550      (N : Node_Id) return Boolean;    -- Flag8
9551
9552    function No_Initialization
9553      (N : Node_Id) return Boolean;    -- Flag13
9554
9555    function No_Minimize_Eliminate
9556      (N : Node_Id) return Boolean;    -- Flag17
9557
9558    function No_Side_Effect_Removal
9559      (N : Node_Id) return Boolean;    -- Flag1
9560
9561    function No_Truncation
9562      (N : Node_Id) return Boolean;    -- Flag17
9563
9564    function Non_Aliased_Prefix
9565      (N : Node_Id) return Boolean;    -- Flag18
9566
9567    function Null_Present
9568      (N : Node_Id) return Boolean;    -- Flag13
9569
9570    function Null_Excluding_Subtype
9571      (N : Node_Id) return Boolean;    -- Flag16
9572
9573    function Null_Exclusion_Present
9574      (N : Node_Id) return Boolean;    -- Flag11
9575
9576    function Null_Exclusion_In_Return_Present
9577      (N : Node_Id) return Boolean;    -- Flag14
9578
9579    function Null_Record_Present
9580      (N : Node_Id) return Boolean;    -- Flag17
9581
9582    function Object_Definition
9583      (N : Node_Id) return Node_Id;    -- Node4
9584
9585    function Of_Present
9586      (N : Node_Id) return Boolean;    -- Flag16
9587
9588    function Original_Discriminant
9589      (N : Node_Id) return Node_Id;    -- Node2
9590
9591    function Original_Entity
9592      (N : Node_Id) return Entity_Id;  -- Node2
9593
9594    function Others_Discrete_Choices
9595      (N : Node_Id) return List_Id;    -- List1
9596
9597    function Out_Present
9598      (N : Node_Id) return Boolean;    -- Flag17
9599
9600    function Parameter_Associations
9601      (N : Node_Id) return List_Id;    -- List3
9602
9603    function Parameter_Specifications
9604      (N : Node_Id) return List_Id;    -- List3
9605
9606    function Parameter_Type
9607      (N : Node_Id) return Node_Id;    -- Node2
9608
9609    function Parent_Spec
9610      (N : Node_Id) return Node_Id;    -- Node4
9611
9612    function Position
9613      (N : Node_Id) return Node_Id;    -- Node2
9614
9615    function Pragma_Argument_Associations
9616      (N : Node_Id) return List_Id;    -- List2
9617
9618    function Pragma_Identifier
9619      (N : Node_Id) return Node_Id;    -- Node4
9620
9621    function Pragmas_After
9622      (N : Node_Id) return List_Id;    -- List5
9623
9624    function Pragmas_Before
9625      (N : Node_Id) return List_Id;    -- List4
9626
9627    function Pre_Post_Conditions
9628      (N : Node_Id) return Node_Id;    -- Node1
9629
9630    function Prefix
9631      (N : Node_Id) return Node_Id;    -- Node3
9632
9633    function Premature_Use
9634      (N : Node_Id) return Node_Id;    -- Node5
9635
9636    function Present_Expr
9637      (N : Node_Id) return Uint;       -- Uint3
9638
9639    function Prev_Ids
9640      (N : Node_Id) return Boolean;    -- Flag6
9641
9642    function Print_In_Hex
9643      (N : Node_Id) return Boolean;    -- Flag13
9644
9645    function Private_Declarations
9646      (N : Node_Id) return List_Id;    -- List3
9647
9648    function Private_Present
9649      (N : Node_Id) return Boolean;    -- Flag15
9650
9651    function Procedure_To_Call
9652      (N : Node_Id) return Node_Id;    -- Node2
9653
9654    function Proper_Body
9655      (N : Node_Id) return Node_Id;    -- Node1
9656
9657    function Protected_Definition
9658      (N : Node_Id) return Node_Id;    -- Node3
9659
9660    function Protected_Present
9661      (N : Node_Id) return Boolean;    -- Flag6
9662
9663    function Raises_Constraint_Error
9664      (N : Node_Id) return Boolean;    -- Flag7
9665
9666    function Range_Constraint
9667      (N : Node_Id) return Node_Id;    -- Node4
9668
9669    function Range_Expression
9670      (N : Node_Id) return Node_Id;    -- Node4
9671
9672    function Real_Range_Specification
9673      (N : Node_Id) return Node_Id;    -- Node4
9674
9675    function Realval
9676      (N : Node_Id) return Ureal;      -- Ureal3
9677
9678    function Reason
9679      (N : Node_Id) return Uint;       -- Uint3
9680
9681    function Record_Extension_Part
9682      (N : Node_Id) return Node_Id;    -- Node3
9683
9684    function Redundant_Use
9685      (N : Node_Id) return Boolean;    -- Flag13
9686
9687    function Renaming_Exception
9688      (N : Node_Id) return Node_Id;    -- Node2
9689
9690    function Result_Definition
9691      (N : Node_Id) return Node_Id;    -- Node4
9692
9693    function Return_Object_Declarations
9694      (N : Node_Id) return List_Id;    -- List3
9695
9696    function Return_Statement_Entity
9697      (N : Node_Id) return Node_Id;    -- Node5
9698
9699    function Reverse_Present
9700      (N : Node_Id) return Boolean;    -- Flag15
9701
9702    function Right_Opnd
9703      (N : Node_Id) return Node_Id;    -- Node3
9704
9705    function Rounded_Result
9706      (N : Node_Id) return Boolean;    -- Flag18
9707
9708    function SCIL_Controlling_Tag
9709      (N : Node_Id) return Node_Id;    -- Node5
9710
9711    function SCIL_Entity
9712      (N : Node_Id) return Node_Id;    -- Node4
9713
9714    function SCIL_Tag_Value
9715      (N : Node_Id) return Node_Id;    -- Node5
9716
9717    function SCIL_Target_Prim
9718      (N : Node_Id) return Node_Id;    -- Node2
9719
9720    function Scope
9721      (N : Node_Id) return Node_Id;    -- Node3
9722
9723    function Select_Alternatives
9724      (N : Node_Id) return List_Id;    -- List1
9725
9726    function Selector_Name
9727      (N : Node_Id) return Node_Id;    -- Node2
9728
9729    function Selector_Names
9730      (N : Node_Id) return List_Id;    -- List1
9731
9732    function Shift_Count_OK
9733      (N : Node_Id) return Boolean;    -- Flag4
9734
9735    function Source_Type
9736      (N : Node_Id) return Entity_Id;  -- Node1
9737
9738    function Specification
9739      (N : Node_Id) return Node_Id;    -- Node1
9740
9741    function Split_PPC
9742      (N : Node_Id) return Boolean;    -- Flag17
9743
9744    function Statements
9745      (N : Node_Id) return List_Id;    -- List3
9746
9747    function Storage_Pool
9748      (N : Node_Id) return Node_Id;    -- Node1
9749
9750    function Subpool_Handle_Name
9751      (N : Node_Id) return Node_Id;    -- Node4
9752
9753    function Strval
9754      (N : Node_Id) return String_Id;  -- Str3
9755
9756    function Subtype_Indication
9757      (N : Node_Id) return Node_Id;    -- Node5
9758
9759    function Subtype_Mark
9760      (N : Node_Id) return Node_Id;    -- Node4
9761
9762    function Subtype_Marks
9763      (N : Node_Id) return List_Id;    -- List2
9764
9765    function Suppress_Assignment_Checks
9766      (N : Node_Id) return Boolean;    -- Flag18
9767
9768    function Suppress_Loop_Warnings
9769      (N : Node_Id) return Boolean;    -- Flag17
9770
9771    function Synchronized_Present
9772      (N : Node_Id) return Boolean;    -- Flag7
9773
9774    function Tagged_Present
9775      (N : Node_Id) return Boolean;    -- Flag15
9776
9777    function Target_Type
9778      (N : Node_Id) return Entity_Id;  -- Node2
9779
9780    function Task_Definition
9781      (N : Node_Id) return Node_Id;    -- Node3
9782
9783    function Task_Present
9784      (N : Node_Id) return Boolean;    -- Flag5
9785
9786    function Then_Actions
9787      (N : Node_Id) return List_Id;    -- List2
9788
9789    function Then_Statements
9790      (N : Node_Id) return List_Id;    -- List2
9791
9792    function Treat_Fixed_As_Integer
9793      (N : Node_Id) return Boolean;    -- Flag14
9794
9795    function Triggering_Alternative
9796      (N : Node_Id) return Node_Id;    -- Node1
9797
9798    function Triggering_Statement
9799      (N : Node_Id) return Node_Id;    -- Node1
9800
9801    function TSS_Elist
9802      (N : Node_Id) return Elist_Id;   -- Elist3
9803
9804    function Type_Definition
9805      (N : Node_Id) return Node_Id;    -- Node3
9806
9807    function Uneval_Old_Accept
9808      (N : Node_Id) return Boolean;    -- Flag7
9809
9810    function Uneval_Old_Warn
9811      (N : Node_Id) return Boolean;    -- Flag18
9812
9813    function Unit
9814      (N : Node_Id) return Node_Id;    -- Node2
9815
9816    function Unknown_Discriminants_Present
9817      (N : Node_Id) return Boolean;    -- Flag13
9818
9819    function Unreferenced_In_Spec
9820      (N : Node_Id) return Boolean;    -- Flag7
9821
9822    function Variant_Part
9823      (N : Node_Id) return Node_Id;    -- Node4
9824
9825    function Variants
9826      (N : Node_Id) return List_Id;    -- List1
9827
9828    function Visible_Declarations
9829      (N : Node_Id) return List_Id;    -- List2
9830
9831    function Uninitialized_Variable
9832      (N : Node_Id) return Node_Id;    -- Node3
9833
9834    function Used_Operations
9835      (N : Node_Id) return Elist_Id;   -- Elist5
9836
9837    function Was_Expression_Function
9838      (N : Node_Id) return Boolean;    -- Flag18
9839
9840    function Was_Originally_Stub
9841      (N : Node_Id) return Boolean;    -- Flag13
9842
9843    function Withed_Body
9844      (N : Node_Id) return Node_Id;    -- Node1
9845
9846    --  End functions (note used by xsinfo utility program to end processing)
9847
9848    ----------------------------
9849    -- Node Update Procedures --
9850    ----------------------------
9851
9852    --  These are the corresponding node update routines, which again provide
9853    --  a high level logical access with type checking. In addition to setting
9854    --  the indicated field of the node N to the given Val, in the case of
9855    --  tree pointers (List1-4), the parent pointer of the Val node is set to
9856    --  point back to node N. This automates the setting of the parent pointer.
9857
9858    procedure Set_ABE_Is_Certain
9859      (N : Node_Id; Val : Boolean := True);    -- Flag18
9860
9861    procedure Set_Abort_Present
9862      (N : Node_Id; Val : Boolean := True);    -- Flag15
9863
9864    procedure Set_Abortable_Part
9865      (N : Node_Id; Val : Node_Id);            -- Node2
9866
9867    procedure Set_Abstract_Present
9868      (N : Node_Id; Val : Boolean := True);    -- Flag4
9869
9870    procedure Set_Accept_Handler_Records
9871      (N : Node_Id; Val : List_Id);            -- List5
9872
9873    procedure Set_Accept_Statement
9874      (N : Node_Id; Val : Node_Id);            -- Node2
9875
9876    procedure Set_Access_Definition
9877      (N : Node_Id; Val : Node_Id);            -- Node3
9878
9879    procedure Set_Access_To_Subprogram_Definition
9880      (N : Node_Id; Val : Node_Id);            -- Node3
9881
9882    procedure Set_Access_Types_To_Process
9883      (N : Node_Id; Val : Elist_Id);           -- Elist2
9884
9885    procedure Set_Actions
9886      (N : Node_Id; Val : List_Id);            -- List1
9887
9888    procedure Set_Activation_Chain_Entity
9889      (N : Node_Id; Val : Node_Id);            -- Node3
9890
9891    procedure Set_Acts_As_Spec
9892      (N : Node_Id; Val : Boolean := True);    -- Flag4
9893
9894    procedure Set_Actual_Designated_Subtype
9895      (N : Node_Id; Val : Node_Id);            -- Node4
9896
9897    procedure Set_Address_Warning_Posted
9898      (N : Node_Id; Val : Boolean := True);    -- Flag18
9899
9900    procedure Set_Aggregate_Bounds
9901      (N : Node_Id; Val : Node_Id);            -- Node3
9902
9903    procedure Set_Aliased_Present
9904      (N : Node_Id; Val : Boolean := True);    -- Flag4
9905
9906    procedure Set_All_Others
9907      (N : Node_Id; Val : Boolean := True);    -- Flag11
9908
9909    procedure Set_All_Present
9910      (N : Node_Id; Val : Boolean := True);    -- Flag15
9911
9912    procedure Set_Alternatives
9913      (N : Node_Id; Val : List_Id);            -- List4
9914
9915    procedure Set_Ancestor_Part
9916      (N : Node_Id; Val : Node_Id);            -- Node3
9917
9918    procedure Set_Atomic_Sync_Required
9919      (N : Node_Id; Val : Boolean := True);    -- Flag14
9920
9921    procedure Set_Array_Aggregate
9922      (N : Node_Id; Val : Node_Id);            -- Node3
9923
9924    procedure Set_Aspect_Rep_Item
9925      (N : Node_Id; Val : Node_Id);            -- Node2
9926
9927    procedure Set_Assignment_OK
9928      (N : Node_Id; Val : Boolean := True);    -- Flag15
9929
9930    procedure Set_Associated_Node
9931      (N : Node_Id; Val : Node_Id);            -- Node4
9932
9933    procedure Set_Attribute_Name
9934      (N : Node_Id; Val : Name_Id);            -- Name2
9935
9936    procedure Set_At_End_Proc
9937      (N : Node_Id; Val : Node_Id);            -- Node1
9938
9939    procedure Set_Aux_Decls_Node
9940      (N : Node_Id; Val : Node_Id);            -- Node5
9941
9942    procedure Set_Backwards_OK
9943      (N : Node_Id; Val : Boolean := True);    -- Flag6
9944
9945    procedure Set_Bad_Is_Detected
9946      (N : Node_Id; Val : Boolean := True);    -- Flag15
9947
9948    procedure Set_Body_Required
9949      (N : Node_Id; Val : Boolean := True);    -- Flag13
9950
9951    procedure Set_Body_To_Inline
9952      (N : Node_Id; Val : Node_Id);            -- Node3
9953
9954    procedure Set_Box_Present
9955      (N : Node_Id; Val : Boolean := True);    -- Flag15
9956
9957    procedure Set_By_Ref
9958      (N : Node_Id; Val : Boolean := True);    -- Flag5
9959
9960    procedure Set_Char_Literal_Value
9961      (N : Node_Id; Val : Uint);               -- Uint2
9962
9963    procedure Set_Chars
9964      (N : Node_Id; Val : Name_Id);            -- Name1
9965
9966    procedure Set_Check_Address_Alignment
9967      (N : Node_Id; Val : Boolean := True);    -- Flag11
9968
9969    procedure Set_Choice_Parameter
9970      (N : Node_Id; Val : Node_Id);            -- Node2
9971
9972    procedure Set_Choices
9973      (N : Node_Id; Val : List_Id);            -- List1
9974
9975    procedure Set_Class_Present
9976      (N : Node_Id; Val : Boolean := True);    -- Flag6
9977
9978    procedure Set_Classifications
9979      (N : Node_Id; Val : Node_Id);            -- Node3
9980
9981    procedure Set_Cleanup_Actions
9982      (N : Node_Id; Val : List_Id);            -- List5
9983
9984    procedure Set_Comes_From_Extended_Return_Statement
9985      (N : Node_Id; Val : Boolean := True);    -- Flag18
9986
9987    procedure Set_Compile_Time_Known_Aggregate
9988      (N : Node_Id; Val : Boolean := True);    -- Flag18
9989
9990    procedure Set_Component_Associations
9991      (N : Node_Id; Val : List_Id);            -- List2
9992
9993    procedure Set_Component_Clauses
9994      (N : Node_Id; Val : List_Id);            -- List3
9995
9996    procedure Set_Component_Definition
9997      (N : Node_Id; Val : Node_Id);            -- Node4
9998
9999    procedure Set_Component_Items
10000      (N : Node_Id; Val : List_Id);            -- List3
10001
10002    procedure Set_Component_List
10003      (N : Node_Id; Val : Node_Id);            -- Node1
10004
10005    procedure Set_Component_Name
10006      (N : Node_Id; Val : Node_Id);            -- Node1
10007
10008    procedure Set_Componentwise_Assignment
10009      (N : Node_Id; Val : Boolean := True);    -- Flag14
10010
10011    procedure Set_Condition
10012      (N : Node_Id; Val : Node_Id);            -- Node1
10013
10014    procedure Set_Condition_Actions
10015      (N : Node_Id; Val : List_Id);            -- List3
10016
10017    procedure Set_Config_Pragmas
10018      (N : Node_Id; Val : List_Id);            -- List4
10019
10020    procedure Set_Constant_Present
10021      (N : Node_Id; Val : Boolean := True);    -- Flag17
10022
10023    procedure Set_Constraint
10024      (N : Node_Id; Val : Node_Id);            -- Node3
10025
10026    procedure Set_Constraints
10027      (N : Node_Id; Val : List_Id);            -- List1
10028
10029    procedure Set_Context_Installed
10030      (N : Node_Id; Val : Boolean := True);    -- Flag13
10031
10032    procedure Set_Context_Items
10033      (N : Node_Id; Val : List_Id);            -- List1
10034
10035    procedure Set_Context_Pending
10036      (N : Node_Id; Val : Boolean := True);    -- Flag16
10037
10038    procedure Set_Contract_Test_Cases
10039      (N : Node_Id; Val : Node_Id);            -- Node2
10040
10041    procedure Set_Controlling_Argument
10042      (N : Node_Id; Val : Node_Id);            -- Node1
10043
10044    procedure Set_Conversion_OK
10045      (N : Node_Id; Val : Boolean := True);    -- Flag14
10046
10047    procedure Set_Convert_To_Return_False
10048      (N : Node_Id; Val : Boolean := True);    -- Flag13
10049
10050    procedure Set_Corresponding_Aspect
10051      (N : Node_Id; Val : Node_Id);            -- Node3
10052
10053    procedure Set_Corresponding_Body
10054      (N : Node_Id; Val : Node_Id);            -- Node5
10055
10056    procedure Set_Corresponding_Formal_Spec
10057      (N : Node_Id; Val : Node_Id);            -- Node3
10058
10059    procedure Set_Corresponding_Generic_Association
10060      (N : Node_Id; Val : Node_Id);            -- Node5
10061
10062    procedure Set_Corresponding_Integer_Value
10063      (N : Node_Id; Val : Uint);               -- Uint4
10064
10065    procedure Set_Corresponding_Spec
10066      (N : Node_Id; Val : Entity_Id);          -- Node5
10067
10068    procedure Set_Corresponding_Spec_Of_Stub
10069      (N : Node_Id; Val : Node_Id);            -- Node2
10070
10071    procedure Set_Corresponding_Stub
10072      (N : Node_Id; Val : Node_Id);            -- Node3
10073
10074    procedure Set_Dcheck_Function
10075      (N : Node_Id; Val : Entity_Id);          -- Node5
10076
10077    procedure Set_Declarations
10078      (N : Node_Id; Val : List_Id);            -- List2
10079
10080    procedure Set_Default_Expression
10081      (N : Node_Id; Val : Node_Id);            -- Node5
10082
10083    procedure Set_Default_Storage_Pool
10084      (N : Node_Id; Val : Node_Id);            -- Node3
10085
10086    procedure Set_Default_Name
10087      (N : Node_Id; Val : Node_Id);            -- Node2
10088
10089    procedure Set_Defining_Identifier
10090      (N : Node_Id; Val : Entity_Id);          -- Node1
10091
10092    procedure Set_Defining_Unit_Name
10093      (N : Node_Id; Val : Node_Id);            -- Node1
10094
10095    procedure Set_Delay_Alternative
10096      (N : Node_Id; Val : Node_Id);            -- Node4
10097
10098    procedure Set_Delay_Statement
10099      (N : Node_Id; Val : Node_Id);            -- Node2
10100
10101    procedure Set_Delta_Expression
10102      (N : Node_Id; Val : Node_Id);            -- Node3
10103
10104    procedure Set_Digits_Expression
10105      (N : Node_Id; Val : Node_Id);            -- Node2
10106
10107    procedure Set_Discr_Check_Funcs_Built
10108      (N : Node_Id; Val : Boolean := True);    -- Flag11
10109
10110    procedure Set_Discrete_Choices
10111      (N : Node_Id; Val : List_Id);            -- List4
10112
10113    procedure Set_Discrete_Range
10114      (N : Node_Id; Val : Node_Id);            -- Node4
10115
10116    procedure Set_Discrete_Subtype_Definition
10117      (N : Node_Id; Val : Node_Id);            -- Node4
10118
10119    procedure Set_Discrete_Subtype_Definitions
10120      (N : Node_Id; Val : List_Id);            -- List2
10121
10122    procedure Set_Discriminant_Specifications
10123      (N : Node_Id; Val : List_Id);            -- List4
10124
10125    procedure Set_Discriminant_Type
10126      (N : Node_Id; Val : Node_Id);            -- Node5
10127
10128    procedure Set_Do_Accessibility_Check
10129      (N : Node_Id; Val : Boolean := True);    -- Flag13
10130
10131    procedure Set_Do_Discriminant_Check
10132      (N : Node_Id; Val : Boolean := True);    -- Flag1
10133
10134    procedure Set_Do_Division_Check
10135      (N : Node_Id; Val : Boolean := True);    -- Flag13
10136
10137    procedure Set_Do_Length_Check
10138      (N : Node_Id; Val : Boolean := True);    -- Flag4
10139
10140    procedure Set_Do_Overflow_Check
10141      (N : Node_Id; Val : Boolean := True);    -- Flag17
10142
10143    procedure Set_Do_Range_Check
10144      (N : Node_Id; Val : Boolean := True);    -- Flag9
10145
10146    procedure Set_Do_Storage_Check
10147      (N : Node_Id; Val : Boolean := True);    -- Flag17
10148
10149    procedure Set_Do_Tag_Check
10150      (N : Node_Id; Val : Boolean := True);    -- Flag13
10151
10152    procedure Set_Elaborate_All_Desirable
10153      (N : Node_Id; Val : Boolean := True);    -- Flag9
10154
10155    procedure Set_Elaborate_All_Present
10156      (N : Node_Id; Val : Boolean := True);    -- Flag14
10157
10158    procedure Set_Elaborate_Desirable
10159      (N : Node_Id; Val : Boolean := True);    -- Flag11
10160
10161    procedure Set_Elaborate_Present
10162      (N : Node_Id; Val : Boolean := True);    -- Flag4
10163
10164    procedure Set_Else_Actions
10165      (N : Node_Id; Val : List_Id);            -- List3
10166
10167    procedure Set_Else_Statements
10168      (N : Node_Id; Val : List_Id);            -- List4
10169
10170    procedure Set_Elsif_Parts
10171      (N : Node_Id; Val : List_Id);            -- List3
10172
10173    procedure Set_Enclosing_Variant
10174      (N : Node_Id; Val : Node_Id);            -- Node2
10175
10176    procedure Set_End_Label
10177      (N : Node_Id; Val : Node_Id);            -- Node4
10178
10179    procedure Set_End_Span
10180      (N : Node_Id; Val : Uint);               -- Uint5
10181
10182    procedure Set_Entity
10183      (N : Node_Id; Val : Node_Id);            -- Node4
10184
10185    procedure Set_Entry_Body_Formal_Part
10186      (N : Node_Id; Val : Node_Id);            -- Node5
10187
10188    procedure Set_Entry_Call_Alternative
10189      (N : Node_Id; Val : Node_Id);            -- Node1
10190
10191    procedure Set_Entry_Call_Statement
10192      (N : Node_Id; Val : Node_Id);            -- Node1
10193
10194    procedure Set_Entry_Direct_Name
10195      (N : Node_Id; Val : Node_Id);            -- Node1
10196
10197    procedure Set_Entry_Index
10198      (N : Node_Id; Val : Node_Id);            -- Node5
10199
10200    procedure Set_Entry_Index_Specification
10201      (N : Node_Id; Val : Node_Id);            -- Node4
10202
10203    procedure Set_Etype
10204      (N : Node_Id; Val : Node_Id);            -- Node5
10205
10206    procedure Set_Exception_Choices
10207      (N : Node_Id; Val : List_Id);            -- List4
10208
10209    procedure Set_Exception_Handlers
10210      (N : Node_Id; Val : List_Id);            -- List5
10211
10212    procedure Set_Exception_Junk
10213      (N : Node_Id; Val : Boolean := True);    -- Flag8
10214
10215    procedure Set_Exception_Label
10216      (N : Node_Id; Val : Node_Id);            -- Node5
10217
10218    procedure Set_Expansion_Delayed
10219      (N : Node_Id; Val : Boolean := True);    -- Flag11
10220
10221    procedure Set_Explicit_Actual_Parameter
10222      (N : Node_Id; Val : Node_Id);            -- Node3
10223
10224    procedure Set_Explicit_Generic_Actual_Parameter
10225      (N : Node_Id; Val : Node_Id);            -- Node1
10226
10227    procedure Set_Expression
10228      (N : Node_Id; Val : Node_Id);            -- Node3
10229
10230    procedure Set_Expressions
10231      (N : Node_Id; Val : List_Id);            -- List1
10232
10233    procedure Set_First_Bit
10234      (N : Node_Id; Val : Node_Id);            -- Node3
10235
10236    procedure Set_First_Inlined_Subprogram
10237      (N : Node_Id; Val : Entity_Id);          -- Node3
10238
10239    procedure Set_First_Name
10240      (N : Node_Id; Val : Boolean := True);    -- Flag5
10241
10242    procedure Set_First_Named_Actual
10243      (N : Node_Id; Val : Node_Id);            -- Node4
10244
10245    procedure Set_First_Real_Statement
10246      (N : Node_Id; Val : Node_Id);            -- Node2
10247
10248    procedure Set_First_Subtype_Link
10249      (N : Node_Id; Val : Entity_Id);          -- Node5
10250
10251    procedure Set_Float_Truncate
10252      (N : Node_Id; Val : Boolean := True);    -- Flag11
10253
10254    procedure Set_Formal_Type_Definition
10255      (N : Node_Id; Val : Node_Id);            -- Node3
10256
10257    procedure Set_Forwards_OK
10258      (N : Node_Id; Val : Boolean := True);    -- Flag5
10259
10260    procedure Set_From_Aspect_Specification
10261      (N : Node_Id; Val : Boolean := True);    -- Flag13
10262
10263    procedure Set_From_At_End
10264      (N : Node_Id; Val : Boolean := True);    -- Flag4
10265
10266    procedure Set_From_At_Mod
10267      (N : Node_Id; Val : Boolean := True);    -- Flag4
10268
10269    procedure Set_From_Conditional_Expression
10270      (N : Node_Id; Val : Boolean := True);    -- Flag1
10271
10272    procedure Set_From_Default
10273      (N : Node_Id; Val : Boolean := True);    -- Flag6
10274
10275    procedure Set_Generalized_Indexing
10276      (N : Node_Id; Val : Node_Id);            -- Node4
10277
10278    procedure Set_Generic_Associations
10279      (N : Node_Id; Val : List_Id);            -- List3
10280
10281    procedure Set_Generic_Formal_Declarations
10282      (N : Node_Id; Val : List_Id);            -- List2
10283
10284    procedure Set_Generic_Parent
10285      (N : Node_Id; Val : Node_Id);            -- Node5
10286
10287    procedure Set_Generic_Parent_Type
10288      (N : Node_Id; Val : Node_Id);            -- Node4
10289
10290    procedure Set_Handled_Statement_Sequence
10291      (N : Node_Id; Val : Node_Id);            -- Node4
10292
10293    procedure Set_Handler_List_Entry
10294      (N : Node_Id; Val : Node_Id);            -- Node2
10295
10296    procedure Set_Has_Created_Identifier
10297      (N : Node_Id; Val : Boolean := True);    -- Flag15
10298
10299    procedure Set_Has_Dereference_Action
10300      (N : Node_Id; Val : Boolean := True);    -- Flag13
10301
10302    procedure Set_Has_Dynamic_Length_Check
10303      (N : Node_Id; Val : Boolean := True);    -- Flag10
10304
10305    procedure Set_Has_Dynamic_Range_Check
10306      (N : Node_Id; Val : Boolean := True);    -- Flag12
10307
10308    procedure Set_Has_Init_Expression
10309      (N : Node_Id; Val : Boolean := True);    -- Flag14
10310
10311    procedure Set_Has_Local_Raise
10312      (N : Node_Id; Val : Boolean := True);    -- Flag8
10313
10314    procedure Set_Has_No_Elaboration_Code
10315      (N : Node_Id; Val : Boolean := True);    -- Flag17
10316
10317    procedure Set_Has_Pragma_Suppress_All
10318      (N : Node_Id; Val : Boolean := True);    -- Flag14
10319
10320    procedure Set_Has_Private_View
10321      (N : Node_Id; Val : Boolean := True);    -- Flag11
10322
10323    procedure Set_Has_Relative_Deadline_Pragma
10324      (N : Node_Id; Val : Boolean := True);    -- Flag9
10325
10326    procedure Set_Has_Self_Reference
10327      (N : Node_Id; Val : Boolean := True);    -- Flag13
10328
10329    procedure Set_Has_SP_Choice
10330      (N : Node_Id; Val : Boolean := True);    -- Flag15
10331
10332    procedure Set_Has_Storage_Size_Pragma
10333      (N : Node_Id; Val : Boolean := True);    -- Flag5
10334
10335    procedure Set_Has_Wide_Character
10336      (N : Node_Id; Val : Boolean := True);    -- Flag11
10337
10338    procedure Set_Has_Wide_Wide_Character
10339      (N : Node_Id; Val : Boolean := True);    -- Flag13
10340
10341    procedure Set_Header_Size_Added
10342      (N : Node_Id; Val : Boolean := True);    -- Flag11
10343
10344    procedure Set_Hidden_By_Use_Clause
10345      (N : Node_Id; Val : Elist_Id);           -- Elist4
10346
10347    procedure Set_High_Bound
10348      (N : Node_Id; Val : Node_Id);            -- Node2
10349
10350    procedure Set_Identifier
10351      (N : Node_Id; Val : Node_Id);            -- Node1
10352
10353    procedure Set_Interface_List
10354      (N : Node_Id; Val : List_Id);            -- List2
10355
10356    procedure Set_Interface_Present
10357      (N : Node_Id; Val : Boolean := True);    -- Flag16
10358
10359    procedure Set_Implicit_With
10360      (N : Node_Id; Val : Boolean := True);    -- Flag16
10361
10362    procedure Set_Implicit_With_From_Instantiation
10363      (N : Node_Id; Val : Boolean := True);    -- Flag12
10364
10365    procedure Set_Import_Interface_Present
10366      (N : Node_Id; Val : Boolean := True);    -- Flag16
10367
10368    procedure Set_In_Present
10369      (N : Node_Id; Val : Boolean := True);    -- Flag15
10370
10371    procedure Set_Includes_Infinities
10372      (N : Node_Id; Val : Boolean := True);    -- Flag11
10373
10374    procedure Set_Incomplete_View
10375      (N : Node_Id;  Val : Node_Id);           -- Node2
10376
10377    procedure Set_Inherited_Discriminant
10378      (N : Node_Id; Val : Boolean := True);    -- Flag13
10379
10380    procedure Set_Instance_Spec
10381      (N : Node_Id; Val : Node_Id);            -- Node5
10382
10383    procedure Set_Intval
10384      (N : Node_Id; Val : Uint);               -- Uint3
10385
10386    procedure Set_Is_Abort_Block
10387      (N : Node_Id; Val : Boolean := True);    -- Flag4
10388
10389    procedure Set_Is_Accessibility_Actual
10390      (N : Node_Id; Val : Boolean := True);    -- Flag13
10391
10392    procedure Set_Is_Analyzed_Pragma
10393      (N : Node_Id; Val : Boolean := True);    -- Flag5
10394
10395    procedure Set_Is_Asynchronous_Call_Block
10396      (N : Node_Id; Val : Boolean := True);    -- Flag7
10397
10398    procedure Set_Is_Boolean_Aspect
10399      (N : Node_Id; Val : Boolean := True);    -- Flag16
10400
10401    procedure Set_Is_Checked
10402      (N : Node_Id; Val : Boolean := True);    -- Flag11
10403
10404    procedure Set_Is_Component_Left_Opnd
10405      (N : Node_Id; Val : Boolean := True);    -- Flag13
10406
10407    procedure Set_Is_Component_Right_Opnd
10408      (N : Node_Id; Val : Boolean := True);    -- Flag14
10409
10410    procedure Set_Is_Controlling_Actual
10411      (N : Node_Id; Val : Boolean := True);    -- Flag16
10412
10413    procedure Set_Is_Delayed_Aspect
10414      (N : Node_Id; Val : Boolean := True);    -- Flag14
10415
10416    procedure Set_Is_Disabled
10417      (N : Node_Id; Val : Boolean := True);    -- Flag15
10418
10419    procedure Set_Is_Dynamic_Coextension
10420      (N : Node_Id; Val : Boolean := True);    -- Flag18
10421
10422    procedure Set_Is_Elsif
10423      (N : Node_Id; Val : Boolean := True);    -- Flag13
10424
10425    procedure Set_Is_Entry_Barrier_Function
10426      (N : Node_Id; Val : Boolean := True);    -- Flag8
10427
10428    procedure Set_Is_Expanded_Build_In_Place_Call
10429      (N : Node_Id; Val : Boolean := True);    -- Flag11
10430
10431    procedure Set_Is_Expanded_Contract
10432      (N : Node_Id; Val : Boolean := True);    -- Flag1
10433
10434    procedure Set_Is_Finalization_Wrapper
10435      (N : Node_Id; Val : Boolean := True);    -- Flag9
10436
10437    procedure Set_Is_Folded_In_Parser
10438      (N : Node_Id; Val : Boolean := True);    -- Flag4
10439
10440    procedure Set_Is_Generic_Contract_Pragma
10441      (N : Node_Id; Val : Boolean := True);    -- Flag2
10442
10443    procedure Set_Is_Ghost_Pragma
10444      (N : Node_Id; Val : Boolean := True);    -- Flag3
10445
10446    procedure Set_Is_Ignored
10447      (N : Node_Id; Val : Boolean := True);    -- Flag9
10448
10449    procedure Set_Is_In_Discriminant_Check
10450      (N : Node_Id; Val : Boolean := True);    -- Flag11
10451
10452    procedure Set_Is_Inherited_Pragma
10453      (N : Node_Id; Val : Boolean := True);    -- Flag4
10454
10455    procedure Set_Is_Machine_Number
10456      (N : Node_Id; Val : Boolean := True);    -- Flag11
10457
10458    procedure Set_Is_Null_Loop
10459      (N : Node_Id; Val : Boolean := True);    -- Flag16
10460
10461    procedure Set_Is_Overloaded
10462      (N : Node_Id; Val : Boolean := True);    -- Flag5
10463
10464    procedure Set_Is_Power_Of_2_For_Shift
10465      (N : Node_Id; Val : Boolean := True);    -- Flag13
10466
10467    procedure Set_Is_Prefixed_Call
10468      (N : Node_Id; Val : Boolean := True);    -- Flag17
10469
10470    procedure Set_Is_Protected_Subprogram_Body
10471      (N : Node_Id; Val : Boolean := True);    -- Flag7
10472
10473    procedure Set_Is_Qualified_Universal_Literal
10474      (N : Node_Id; Val : Boolean := True);    -- Flag4
10475
10476    procedure Set_Is_Static_Coextension
10477      (N : Node_Id; Val : Boolean := True);    -- Flag14
10478
10479    procedure Set_Is_Static_Expression
10480      (N : Node_Id; Val : Boolean := True);    -- Flag6
10481
10482    procedure Set_Is_Subprogram_Descriptor
10483      (N : Node_Id; Val : Boolean := True);    -- Flag16
10484
10485    procedure Set_Is_Task_Allocation_Block
10486      (N : Node_Id; Val : Boolean := True);    -- Flag6
10487
10488    procedure Set_Is_Task_Body_Procedure
10489      (N : Node_Id; Val : Boolean := True);    -- Flag1
10490
10491    procedure Set_Is_Task_Master
10492      (N : Node_Id; Val : Boolean := True);    -- Flag5
10493
10494    procedure Set_Iteration_Scheme
10495      (N : Node_Id; Val : Node_Id);            -- Node2
10496
10497    procedure Set_Iterator_Specification
10498      (N : Node_Id; Val : Node_Id);            -- Node2
10499
10500    procedure Set_Itype
10501      (N : Node_Id; Val : Entity_Id);          -- Node1
10502
10503    procedure Set_Kill_Range_Check
10504      (N : Node_Id; Val : Boolean := True);    -- Flag11
10505
10506    procedure Set_Last_Bit
10507      (N : Node_Id; Val : Node_Id);            -- Node4
10508
10509    procedure Set_Last_Name
10510      (N : Node_Id; Val : Boolean := True);    -- Flag6
10511
10512    procedure Set_Library_Unit
10513      (N : Node_Id; Val : Node_Id);            -- Node4
10514
10515    procedure Set_Label_Construct
10516      (N : Node_Id; Val : Node_Id);            -- Node2
10517
10518    procedure Set_Left_Opnd
10519      (N : Node_Id; Val : Node_Id);            -- Node2
10520
10521    procedure Set_Limited_View_Installed
10522      (N : Node_Id; Val : Boolean := True);    -- Flag18
10523
10524    procedure Set_Limited_Present
10525      (N : Node_Id; Val : Boolean := True);    -- Flag17
10526
10527    procedure Set_Literals
10528      (N : Node_Id; Val : List_Id);            -- List1
10529
10530    procedure Set_Local_Raise_Not_OK
10531      (N : Node_Id; Val : Boolean := True);    -- Flag7
10532
10533    procedure Set_Local_Raise_Statements
10534      (N : Node_Id; Val : Elist_Id);           -- Elist1
10535
10536    procedure Set_Loop_Actions
10537      (N : Node_Id; Val : List_Id);            -- List2
10538
10539    procedure Set_Loop_Parameter_Specification
10540      (N : Node_Id; Val : Node_Id);            -- Node4
10541
10542    procedure Set_Low_Bound
10543      (N : Node_Id; Val : Node_Id);            -- Node1
10544
10545    procedure Set_Mod_Clause
10546      (N : Node_Id; Val : Node_Id);            -- Node2
10547
10548    procedure Set_More_Ids
10549      (N : Node_Id; Val : Boolean := True);    -- Flag5
10550
10551    procedure Set_Must_Be_Byte_Aligned
10552      (N : Node_Id; Val : Boolean := True);    -- Flag14
10553
10554    procedure Set_Must_Not_Freeze
10555      (N : Node_Id; Val : Boolean := True);    -- Flag8
10556
10557    procedure Set_Must_Not_Override
10558      (N : Node_Id; Val : Boolean := True);    -- Flag15
10559
10560    procedure Set_Must_Override
10561      (N : Node_Id; Val : Boolean := True);    -- Flag14
10562
10563    procedure Set_Name
10564      (N : Node_Id; Val : Node_Id);            -- Node2
10565
10566    procedure Set_Names
10567      (N : Node_Id; Val : List_Id);            -- List2
10568
10569    procedure Set_Next_Entity
10570      (N : Node_Id; Val : Node_Id);            -- Node2
10571
10572    procedure Set_Next_Exit_Statement
10573      (N : Node_Id; Val : Node_Id);            -- Node3
10574
10575    procedure Set_Next_Implicit_With
10576      (N : Node_Id; Val : Node_Id);            -- Node3
10577
10578    procedure Set_Next_Named_Actual
10579      (N : Node_Id; Val : Node_Id);            -- Node4
10580
10581    procedure Set_Next_Pragma
10582      (N : Node_Id; Val : Node_Id);            -- Node1
10583
10584    procedure Set_Next_Rep_Item
10585      (N : Node_Id; Val : Node_Id);            -- Node5
10586
10587    procedure Set_Next_Use_Clause
10588      (N : Node_Id; Val : Node_Id);            -- Node3
10589
10590    procedure Set_No_Ctrl_Actions
10591      (N : Node_Id; Val : Boolean := True);    -- Flag7
10592
10593    procedure Set_No_Elaboration_Check
10594      (N : Node_Id; Val : Boolean := True);    -- Flag14
10595
10596    procedure Set_No_Entities_Ref_In_Spec
10597      (N : Node_Id; Val : Boolean := True);    -- Flag8
10598
10599    procedure Set_No_Initialization
10600      (N : Node_Id; Val : Boolean := True);    -- Flag13
10601
10602    procedure Set_No_Minimize_Eliminate
10603      (N : Node_Id; Val : Boolean := True);    -- Flag17
10604
10605    procedure Set_No_Side_Effect_Removal
10606      (N : Node_Id; Val : Boolean := True);    -- Flag1
10607
10608    procedure Set_No_Truncation
10609      (N : Node_Id; Val : Boolean := True);    -- Flag17
10610
10611    procedure Set_Non_Aliased_Prefix
10612      (N : Node_Id; Val : Boolean := True);    -- Flag18
10613
10614    procedure Set_Null_Present
10615      (N : Node_Id; Val : Boolean := True);    -- Flag13
10616
10617    procedure Set_Null_Excluding_Subtype
10618      (N : Node_Id; Val : Boolean := True);    -- Flag16
10619
10620    procedure Set_Null_Exclusion_Present
10621      (N : Node_Id; Val : Boolean := True);    -- Flag11
10622
10623    procedure Set_Null_Exclusion_In_Return_Present
10624      (N : Node_Id; Val : Boolean := True);    -- Flag14
10625
10626    procedure Set_Null_Record_Present
10627      (N : Node_Id; Val : Boolean := True);    -- Flag17
10628
10629    procedure Set_Object_Definition
10630      (N : Node_Id; Val : Node_Id);            -- Node4
10631
10632    procedure Set_Of_Present
10633      (N : Node_Id; Val : Boolean := True);   -- Flag16
10634
10635    procedure Set_Original_Discriminant
10636      (N : Node_Id; Val : Node_Id);            -- Node2
10637
10638    procedure Set_Original_Entity
10639      (N : Node_Id; Val : Entity_Id);          -- Node2
10640
10641    procedure Set_Others_Discrete_Choices
10642      (N : Node_Id; Val : List_Id);            -- List1
10643
10644    procedure Set_Out_Present
10645      (N : Node_Id; Val : Boolean := True);    -- Flag17
10646
10647    procedure Set_Parameter_Associations
10648      (N : Node_Id; Val : List_Id);            -- List3
10649
10650    procedure Set_Parameter_Specifications
10651      (N : Node_Id; Val : List_Id);            -- List3
10652
10653    procedure Set_Parameter_Type
10654      (N : Node_Id; Val : Node_Id);            -- Node2
10655
10656    procedure Set_Parent_Spec
10657      (N : Node_Id; Val : Node_Id);            -- Node4
10658
10659    procedure Set_Position
10660      (N : Node_Id; Val : Node_Id);            -- Node2
10661
10662    procedure Set_Pragma_Argument_Associations
10663      (N : Node_Id; Val : List_Id);            -- List2
10664
10665    procedure Set_Pragma_Identifier
10666      (N : Node_Id; Val : Node_Id);            -- Node4
10667
10668    procedure Set_Pragmas_After
10669      (N : Node_Id; Val : List_Id);            -- List5
10670
10671    procedure Set_Pragmas_Before
10672      (N : Node_Id; Val : List_Id);            -- List4
10673
10674    procedure Set_Pre_Post_Conditions
10675      (N : Node_Id; Val : Node_Id);            -- Node1
10676
10677    procedure Set_Prefix
10678      (N : Node_Id; Val : Node_Id);            -- Node3
10679
10680    procedure Set_Premature_Use
10681      (N : Node_Id; Val : Node_Id);            -- Node5
10682
10683    procedure Set_Present_Expr
10684      (N : Node_Id; Val : Uint);               -- Uint3
10685
10686    procedure Set_Prev_Ids
10687      (N : Node_Id; Val : Boolean := True);    -- Flag6
10688
10689    procedure Set_Print_In_Hex
10690      (N : Node_Id; Val : Boolean := True);    -- Flag13
10691
10692    procedure Set_Private_Declarations
10693      (N : Node_Id; Val : List_Id);            -- List3
10694
10695    procedure Set_Private_Present
10696      (N : Node_Id; Val : Boolean := True);    -- Flag15
10697
10698    procedure Set_Procedure_To_Call
10699      (N : Node_Id; Val : Node_Id);            -- Node2
10700
10701    procedure Set_Proper_Body
10702      (N : Node_Id; Val : Node_Id);            -- Node1
10703
10704    procedure Set_Protected_Definition
10705      (N : Node_Id; Val : Node_Id);            -- Node3
10706
10707    procedure Set_Protected_Present
10708      (N : Node_Id; Val : Boolean := True);    -- Flag6
10709
10710    procedure Set_Raises_Constraint_Error
10711      (N : Node_Id; Val : Boolean := True);    -- Flag7
10712
10713    procedure Set_Range_Constraint
10714      (N : Node_Id; Val : Node_Id);            -- Node4
10715
10716    procedure Set_Range_Expression
10717      (N : Node_Id; Val : Node_Id);            -- Node4
10718
10719    procedure Set_Real_Range_Specification
10720      (N : Node_Id; Val : Node_Id);            -- Node4
10721
10722    procedure Set_Realval
10723      (N : Node_Id; Val : Ureal);              -- Ureal3
10724
10725    procedure Set_Reason
10726      (N : Node_Id; Val : Uint);               -- Uint3
10727
10728    procedure Set_Record_Extension_Part
10729      (N : Node_Id; Val : Node_Id);            -- Node3
10730
10731    procedure Set_Redundant_Use
10732      (N : Node_Id; Val : Boolean := True);    -- Flag13
10733
10734    procedure Set_Renaming_Exception
10735      (N : Node_Id; Val : Node_Id);            -- Node2
10736
10737    procedure Set_Result_Definition
10738      (N : Node_Id; Val : Node_Id);            -- Node4
10739
10740    procedure Set_Return_Object_Declarations
10741      (N : Node_Id; Val : List_Id);            -- List3
10742
10743    procedure Set_Return_Statement_Entity
10744      (N : Node_Id; Val : Node_Id);            -- Node5
10745
10746    procedure Set_Reverse_Present
10747      (N : Node_Id; Val : Boolean := True);    -- Flag15
10748
10749    procedure Set_Right_Opnd
10750      (N : Node_Id; Val : Node_Id);            -- Node3
10751
10752    procedure Set_Rounded_Result
10753      (N : Node_Id; Val : Boolean := True);    -- Flag18
10754
10755    procedure Set_SCIL_Controlling_Tag
10756      (N : Node_Id; Val : Node_Id);            -- Node5
10757
10758    procedure Set_SCIL_Entity
10759      (N : Node_Id; Val : Node_Id);            -- Node4
10760
10761    procedure Set_SCIL_Tag_Value
10762      (N : Node_Id; Val : Node_Id);            -- Node5
10763
10764    procedure Set_SCIL_Target_Prim
10765      (N : Node_Id; Val : Node_Id);            -- Node2
10766
10767    procedure Set_Scope
10768      (N : Node_Id; Val : Node_Id);            -- Node3
10769
10770    procedure Set_Select_Alternatives
10771      (N : Node_Id; Val : List_Id);            -- List1
10772
10773    procedure Set_Selector_Name
10774      (N : Node_Id; Val : Node_Id);            -- Node2
10775
10776    procedure Set_Selector_Names
10777      (N : Node_Id; Val : List_Id);            -- List1
10778
10779    procedure Set_Shift_Count_OK
10780      (N : Node_Id; Val : Boolean := True);    -- Flag4
10781
10782    procedure Set_Source_Type
10783      (N : Node_Id; Val : Entity_Id);          -- Node1
10784
10785    procedure Set_Specification
10786      (N : Node_Id; Val : Node_Id);            -- Node1
10787
10788    procedure Set_Split_PPC
10789      (N : Node_Id; Val : Boolean);            -- Flag17
10790
10791    procedure Set_Statements
10792      (N : Node_Id; Val : List_Id);            -- List3
10793
10794    procedure Set_Storage_Pool
10795      (N : Node_Id; Val : Node_Id);            -- Node1
10796
10797    procedure Set_Subpool_Handle_Name
10798      (N : Node_Id; Val : Node_Id);            -- Node4
10799
10800    procedure Set_Strval
10801      (N : Node_Id; Val : String_Id);          -- Str3
10802
10803    procedure Set_Subtype_Indication
10804      (N : Node_Id; Val : Node_Id);            -- Node5
10805
10806    procedure Set_Subtype_Mark
10807      (N : Node_Id; Val : Node_Id);            -- Node4
10808
10809    procedure Set_Subtype_Marks
10810      (N : Node_Id; Val : List_Id);            -- List2
10811
10812    procedure Set_Suppress_Assignment_Checks
10813      (N : Node_Id; Val : Boolean := True);    -- Flag18
10814
10815    procedure Set_Suppress_Loop_Warnings
10816      (N : Node_Id; Val : Boolean := True);    -- Flag17
10817
10818    procedure Set_Synchronized_Present
10819      (N : Node_Id; Val : Boolean := True);    -- Flag7
10820
10821    procedure Set_Tagged_Present
10822      (N : Node_Id; Val : Boolean := True);    -- Flag15
10823
10824    procedure Set_Target_Type
10825      (N : Node_Id; Val : Entity_Id);          -- Node2
10826
10827    procedure Set_Task_Definition
10828      (N : Node_Id; Val : Node_Id);            -- Node3
10829
10830    procedure Set_Task_Present
10831      (N : Node_Id; Val : Boolean := True);    -- Flag5
10832
10833    procedure Set_Then_Actions
10834      (N : Node_Id; Val : List_Id);            -- List2
10835
10836    procedure Set_Then_Statements
10837      (N : Node_Id; Val : List_Id);            -- List2
10838
10839    procedure Set_Treat_Fixed_As_Integer
10840      (N : Node_Id; Val : Boolean := True);    -- Flag14
10841
10842    procedure Set_Triggering_Alternative
10843      (N : Node_Id; Val : Node_Id);            -- Node1
10844
10845    procedure Set_Triggering_Statement
10846      (N : Node_Id; Val : Node_Id);            -- Node1
10847
10848    procedure Set_TSS_Elist
10849      (N : Node_Id; Val : Elist_Id);           -- Elist3
10850
10851    procedure Set_Type_Definition
10852      (N : Node_Id; Val : Node_Id);            -- Node3
10853
10854    procedure Set_Uneval_Old_Accept
10855      (N : Node_Id; Val : Boolean := True);    -- Flag7
10856
10857    procedure Set_Uneval_Old_Warn
10858      (N : Node_Id; Val : Boolean := True);    -- Flag18
10859
10860    procedure Set_Unit
10861      (N : Node_Id; Val : Node_Id);            -- Node2
10862
10863    procedure Set_Unknown_Discriminants_Present
10864      (N : Node_Id; Val : Boolean := True);    -- Flag13
10865
10866    procedure Set_Unreferenced_In_Spec
10867      (N : Node_Id; Val : Boolean := True);    -- Flag7
10868
10869    procedure Set_Variant_Part
10870      (N : Node_Id; Val : Node_Id);            -- Node4
10871
10872    procedure Set_Variants
10873      (N : Node_Id; Val : List_Id);            -- List1
10874
10875    procedure Set_Visible_Declarations
10876      (N : Node_Id; Val : List_Id);            -- List2
10877
10878    procedure Set_Uninitialized_Variable
10879      (N : Node_Id; Val : Node_Id);            -- Node3
10880
10881    procedure Set_Used_Operations
10882      (N : Node_Id; Val : Elist_Id);           -- Elist5
10883
10884    procedure Set_Was_Expression_Function
10885      (N : Node_Id; Val : Boolean := True);    -- Flag18
10886
10887    procedure Set_Was_Originally_Stub
10888      (N : Node_Id; Val : Boolean := True);    -- Flag13
10889
10890    procedure Set_Withed_Body
10891      (N : Node_Id; Val : Node_Id);            -- Node1
10892
10893    -------------------------
10894    -- Iterator Procedures --
10895    -------------------------
10896
10897    --  The call to Next_xxx (N) is equivalent to N := Next_xxx (N)
10898
10899    procedure Next_Entity       (N : in out Node_Id);
10900    procedure Next_Named_Actual (N : in out Node_Id);
10901    procedure Next_Rep_Item     (N : in out Node_Id);
10902    procedure Next_Use_Clause   (N : in out Node_Id);
10903
10904    -------------------------------------------
10905    -- Miscellaneous Tree Access Subprograms --
10906    -------------------------------------------
10907
10908    function End_Location (N : Node_Id) return Source_Ptr;
10909    --  N is an N_If_Statement or N_Case_Statement node, and this function
10910    --  returns the location of the IF token in the END IF sequence by
10911    --  translating the value of the End_Span field.
10912
10913    procedure Set_End_Location (N : Node_Id; S : Source_Ptr);
10914    --  N is an N_If_Statement or N_Case_Statement node. This procedure sets
10915    --  the End_Span field to correspond to the given value S. In other words,
10916    --  End_Span is set to the difference between S and Sloc (N), the starting
10917    --  location.
10918
10919    function Get_Pragma_Arg (Arg : Node_Id) return Node_Id;
10920    --  Given an argument to a pragma Arg, this function returns the expression
10921    --  for the argument. This is Arg itself, or, in the case where Arg is a
10922    --  pragma argument association node, the expression from this node.
10923
10924    --------------------------------
10925    -- Node_Kind Membership Tests --
10926    --------------------------------
10927
10928    --  The following functions allow a convenient notation for testing whether
10929    --  a Node_Kind value matches any one of a list of possible values. In each
10930    --  case True is returned if the given T argument is equal to any of the V
10931    --  arguments. Note that there is a similar set of functions defined in
10932    --  Atree where the first argument is a Node_Id whose Nkind field is tested.
10933
10934    function Nkind_In
10935      (T  : Node_Kind;
10936       V1 : Node_Kind;
10937       V2 : Node_Kind) return Boolean;
10938
10939    function Nkind_In
10940      (T  : Node_Kind;
10941       V1 : Node_Kind;
10942       V2 : Node_Kind;
10943       V3 : Node_Kind) return Boolean;
10944
10945    function Nkind_In
10946      (T  : Node_Kind;
10947       V1 : Node_Kind;
10948       V2 : Node_Kind;
10949       V3 : Node_Kind;
10950       V4 : Node_Kind) return Boolean;
10951
10952    function Nkind_In
10953      (T  : Node_Kind;
10954       V1 : Node_Kind;
10955       V2 : Node_Kind;
10956       V3 : Node_Kind;
10957       V4 : Node_Kind;
10958       V5 : Node_Kind) return Boolean;
10959
10960    function Nkind_In
10961      (T  : Node_Kind;
10962       V1 : Node_Kind;
10963       V2 : Node_Kind;
10964       V3 : Node_Kind;
10965       V4 : Node_Kind;
10966       V5 : Node_Kind;
10967       V6 : Node_Kind) return Boolean;
10968
10969    function Nkind_In
10970      (T  : Node_Kind;
10971       V1 : Node_Kind;
10972       V2 : Node_Kind;
10973       V3 : Node_Kind;
10974       V4 : Node_Kind;
10975       V5 : Node_Kind;
10976       V6 : Node_Kind;
10977       V7 : Node_Kind) return Boolean;
10978
10979    function Nkind_In
10980      (T  : Node_Kind;
10981       V1 : Node_Kind;
10982       V2 : Node_Kind;
10983       V3 : Node_Kind;
10984       V4 : Node_Kind;
10985       V5 : Node_Kind;
10986       V6 : Node_Kind;
10987       V7 : Node_Kind;
10988       V8 : Node_Kind) return Boolean;
10989
10990    function Nkind_In
10991      (T  : Node_Kind;
10992       V1 : Node_Kind;
10993       V2 : Node_Kind;
10994       V3 : Node_Kind;
10995       V4 : Node_Kind;
10996       V5 : Node_Kind;
10997       V6 : Node_Kind;
10998       V7 : Node_Kind;
10999       V8 : Node_Kind;
11000       V9 : Node_Kind) return Boolean;
11001
11002    pragma Inline (Nkind_In);
11003    --  Inline all above functions
11004
11005    -----------------------
11006    -- Utility Functions --
11007    -----------------------
11008
11009    function Pragma_Name (N : Node_Id) return Name_Id;
11010    pragma Inline (Pragma_Name);
11011    --  Convenient function to obtain Chars field of Pragma_Identifier
11012
11013    procedure Map_Pragma_Name (From, To : Name_Id);
11014    --  Used in the implementation of pragma Rename_Pragma. Maps pragma name
11015    --  From to pragma name To, so From can be used as a synonym for To.
11016
11017    Too_Many_Pragma_Mappings : exception;
11018    --  Raised if Map_Pragma_Name is called too many times. We expect that few
11019    --  programs will use it at all, and those that do will use it approximately
11020    --  once or twice.
11021
11022    function Pragma_Name_Mapped (N : Node_Id) return Name_Id;
11023    --  Same as Pragma_Name, except that if From has been mapped to To, and
11024    --  Pragma_Name (N) = From, then this returns To.
11025
11026    -----------------------------
11027    -- Syntactic Parent Tables --
11028    -----------------------------
11029
11030    --  These tables show for each node, and for each of the five fields,
11031    --  whether the corresponding field is syntactic (True) or semantic (False).
11032    --  Unused entries are also set to False.
11033
11034    subtype Field_Num is Natural range 1 .. 5;
11035
11036    Is_Syntactic_Field : constant array (Node_Kind, Field_Num) of Boolean := (
11037
11038    --  Following entries can be built automatically from the sinfo sources
11039    --  using the makeisf utility (currently this program is in spitbol).
11040
11041      N_Identifier =>
11042        (1 => True,    --  Chars (Name1)
11043         2 => False,   --  Original_Discriminant (Node2-Sem)
11044         3 => False,   --  unused
11045         4 => False,   --  Entity (Node4-Sem)
11046         5 => False),  --  Etype (Node5-Sem)
11047
11048      N_Integer_Literal =>
11049        (1 => False,   --  unused
11050         2 => False,   --  Original_Entity (Node2-Sem)
11051         3 => True,    --  Intval (Uint3)
11052         4 => False,   --  unused
11053         5 => False),  --  Etype (Node5-Sem)
11054
11055      N_Real_Literal =>
11056        (1 => False,   --  unused
11057         2 => False,   --  Original_Entity (Node2-Sem)
11058         3 => True,    --  Realval (Ureal3)
11059         4 => False,   --  Corresponding_Integer_Value (Uint4-Sem)
11060         5 => False),  --  Etype (Node5-Sem)
11061
11062      N_Character_Literal =>
11063        (1 => True,    --  Chars (Name1)
11064         2 => True,    --  Char_Literal_Value (Uint2)
11065         3 => False,   --  unused
11066         4 => False,   --  Entity (Node4-Sem)
11067         5 => False),  --  Etype (Node5-Sem)
11068
11069      N_String_Literal =>
11070        (1 => False,   --  unused
11071         2 => False,   --  unused
11072         3 => True,    --  Strval (Str3)
11073         4 => False,   --  unused
11074         5 => False),  --  Etype (Node5-Sem)
11075
11076      N_Pragma =>
11077        (1 => False,   --  Next_Pragma (Node1-Sem)
11078         2 => True,    --  Pragma_Argument_Associations (List2)
11079         3 => False,   --  Corresponding_Aspect (Node3-Sem)
11080         4 => True,    --  Pragma_Identifier (Node4)
11081         5 => False),  --  Next_Rep_Item (Node5-Sem)
11082
11083      N_Pragma_Argument_Association =>
11084        (1 => True,    --  Chars (Name1)
11085         2 => False,   --  unused
11086         3 => True,    --  Expression (Node3)
11087         4 => False,   --  unused
11088         5 => False),  --  unused
11089
11090      N_Defining_Identifier =>
11091        (1 => True,    --  Chars (Name1)
11092         2 => False,   --  Next_Entity (Node2-Sem)
11093         3 => False,   --  Scope (Node3-Sem)
11094         4 => False,   --  unused
11095         5 => False),  --  Etype (Node5-Sem)
11096
11097      N_Full_Type_Declaration =>
11098        (1 => True,    --  Defining_Identifier (Node1)
11099         2 => False,   --  Incomplete_View (Node2-Sem)
11100         3 => True,    --  Type_Definition (Node3)
11101         4 => True,    --  Discriminant_Specifications (List4)
11102         5 => False),  --  unused
11103
11104      N_Subtype_Declaration =>
11105        (1 => True,    --  Defining_Identifier (Node1)
11106         2 => False,   --  unused
11107         3 => False,   --  unused
11108         4 => False,   --  Generic_Parent_Type (Node4-Sem)
11109         5 => True),   --  Subtype_Indication (Node5)
11110
11111      N_Subtype_Indication =>
11112        (1 => False,   --  unused
11113         2 => False,   --  unused
11114         3 => True,    --  Constraint (Node3)
11115         4 => True,    --  Subtype_Mark (Node4)
11116         5 => False),  --  Etype (Node5-Sem)
11117
11118      N_Object_Declaration =>
11119        (1 => True,    --  Defining_Identifier (Node1)
11120         2 => False,   --  Handler_List_Entry (Node2-Sem)
11121         3 => True,    --  Expression (Node3)
11122         4 => True,    --  Object_Definition (Node4)
11123         5 => False),  --  Corresponding_Generic_Association (Node5-Sem)
11124
11125      N_Number_Declaration =>
11126        (1 => True,    --  Defining_Identifier (Node1)
11127         2 => False,   --  unused
11128         3 => True,    --  Expression (Node3)
11129         4 => False,   --  unused
11130         5 => False),  --  unused
11131
11132      N_Derived_Type_Definition =>
11133        (1 => False,   --  unused
11134         2 => True,    --  Interface_List (List2)
11135         3 => True,    --  Record_Extension_Part (Node3)
11136         4 => False,   --  unused
11137         5 => True),   --  Subtype_Indication (Node5)
11138
11139      N_Range_Constraint =>
11140        (1 => False,   --  unused
11141         2 => False,   --  unused
11142         3 => False,   --  unused
11143         4 => True,    --  Range_Expression (Node4)
11144         5 => False),  --  unused
11145
11146      N_Range =>
11147        (1 => True,    --  Low_Bound (Node1)
11148         2 => True,    --  High_Bound (Node2)
11149         3 => False,   --  unused
11150         4 => False,   --  unused
11151         5 => False),  --  Etype (Node5-Sem)
11152
11153      N_Enumeration_Type_Definition =>
11154        (1 => True,    --  Literals (List1)
11155         2 => False,   --  unused
11156         3 => False,   --  unused
11157         4 => True,    --  End_Label (Node4)
11158         5 => False),  --  unused
11159
11160      N_Defining_Character_Literal =>
11161        (1 => True,    --  Chars (Name1)
11162         2 => False,   --  Next_Entity (Node2-Sem)
11163         3 => False,   --  Scope (Node3-Sem)
11164         4 => False,   --  unused
11165         5 => False),  --  Etype (Node5-Sem)
11166
11167      N_Signed_Integer_Type_Definition =>
11168        (1 => True,    --  Low_Bound (Node1)
11169         2 => True,    --  High_Bound (Node2)
11170         3 => False,   --  unused
11171         4 => False,   --  unused
11172         5 => False),  --  unused
11173
11174      N_Modular_Type_Definition =>
11175        (1 => False,   --  unused
11176         2 => False,   --  unused
11177         3 => True,    --  Expression (Node3)
11178         4 => False,   --  unused
11179         5 => False),  --  unused
11180
11181      N_Floating_Point_Definition =>
11182        (1 => False,   --  unused
11183         2 => True,    --  Digits_Expression (Node2)
11184         3 => False,   --  unused
11185         4 => True,    --  Real_Range_Specification (Node4)
11186         5 => False),  --  unused
11187
11188      N_Real_Range_Specification =>
11189        (1 => True,    --  Low_Bound (Node1)
11190         2 => True,    --  High_Bound (Node2)
11191         3 => False,   --  unused
11192         4 => False,   --  unused
11193         5 => False),  --  unused
11194
11195      N_Ordinary_Fixed_Point_Definition =>
11196        (1 => False,   --  unused
11197         2 => False,   --  unused
11198         3 => True,    --  Delta_Expression (Node3)
11199         4 => True,    --  Real_Range_Specification (Node4)
11200         5 => False),  --  unused
11201
11202      N_Decimal_Fixed_Point_Definition =>
11203        (1 => False,   --  unused
11204         2 => True,    --  Digits_Expression (Node2)
11205         3 => True,    --  Delta_Expression (Node3)
11206         4 => True,    --  Real_Range_Specification (Node4)
11207         5 => False),  --  unused
11208
11209      N_Digits_Constraint =>
11210        (1 => False,   --  unused
11211         2 => True,    --  Digits_Expression (Node2)
11212         3 => False,   --  unused
11213         4 => True,    --  Range_Constraint (Node4)
11214         5 => False),  --  unused
11215
11216      N_Unconstrained_Array_Definition =>
11217        (1 => False,   --  unused
11218         2 => True,    --  Subtype_Marks (List2)
11219         3 => False,   --  unused
11220         4 => True,    --  Component_Definition (Node4)
11221         5 => False),  --  unused
11222
11223      N_Constrained_Array_Definition =>
11224        (1 => False,   --  unused
11225         2 => True,    --  Discrete_Subtype_Definitions (List2)
11226         3 => False,   --  unused
11227         4 => True,    --  Component_Definition (Node4)
11228         5 => False),  --  unused
11229
11230      N_Component_Definition =>
11231        (1 => False,   --  unused
11232         2 => False,   --  unused
11233         3 => True,    --  Access_Definition (Node3)
11234         4 => False,   --  unused
11235         5 => True),   --  Subtype_Indication (Node5)
11236
11237      N_Discriminant_Specification =>
11238        (1 => True,    --  Defining_Identifier (Node1)
11239         2 => False,   --  unused
11240         3 => True,    --  Expression (Node3)
11241         4 => False,   --  unused
11242         5 => True),   --  Discriminant_Type (Node5)
11243
11244      N_Index_Or_Discriminant_Constraint =>
11245        (1 => True,    --  Constraints (List1)
11246         2 => False,   --  unused
11247         3 => False,   --  unused
11248         4 => False,   --  unused
11249         5 => False),  --  unused
11250
11251      N_Discriminant_Association =>
11252        (1 => True,    --  Selector_Names (List1)
11253         2 => False,   --  unused
11254         3 => True,    --  Expression (Node3)
11255         4 => False,   --  unused
11256         5 => False),  --  unused
11257
11258      N_Record_Definition =>
11259        (1 => True,    --  Component_List (Node1)
11260         2 => True,    --  Interface_List (List2)
11261         3 => False,   --  unused
11262         4 => True,    --  End_Label (Node4)
11263         5 => False),  --  unused
11264
11265      N_Component_List =>
11266        (1 => False,   --  unused
11267         2 => False,   --  unused
11268         3 => True,    --  Component_Items (List3)
11269         4 => True,    --  Variant_Part (Node4)
11270         5 => False),  --  unused
11271
11272      N_Component_Declaration =>
11273        (1 => True,    --  Defining_Identifier (Node1)
11274         2 => False,   --  unused
11275         3 => True,    --  Expression (Node3)
11276         4 => True,    --  Component_Definition (Node4)
11277         5 => False),  --  unused
11278
11279      N_Variant_Part =>
11280        (1 => True,    --  Variants (List1)
11281         2 => True,    --  Name (Node2)
11282         3 => False,   --  unused
11283         4 => False,   --  unused
11284         5 => False),  --  unused
11285
11286      N_Variant =>
11287        (1 => True,    --  Component_List (Node1)
11288         2 => False,   --  Enclosing_Variant (Node2-Sem)
11289         3 => False,   --  Present_Expr (Uint3-Sem)
11290         4 => True,    --  Discrete_Choices (List4)
11291         5 => False),  --  Dcheck_Function (Node5-Sem)
11292
11293      N_Others_Choice =>
11294        (1 => False,   --  Others_Discrete_Choices (List1-Sem)
11295         2 => False,   --  unused
11296         3 => False,   --  unused
11297         4 => False,   --  unused
11298         5 => False),  --  unused
11299
11300      N_Access_To_Object_Definition =>
11301        (1 => False,   --  unused
11302         2 => False,   --  unused
11303         3 => False,   --  unused
11304         4 => False,   --  unused
11305         5 => True),   --  Subtype_Indication (Node5)
11306
11307      N_Access_Function_Definition =>
11308        (1 => False,   --  unused
11309         2 => False,   --  unused
11310         3 => True,    --  Parameter_Specifications (List3)
11311         4 => True,    --  Result_Definition (Node4)
11312         5 => False),  --  unused
11313
11314      N_Access_Procedure_Definition =>
11315        (1 => False,   --  unused
11316         2 => False,   --  unused
11317         3 => True,    --  Parameter_Specifications (List3)
11318         4 => False,   --  unused
11319         5 => False),  --  unused
11320
11321      N_Access_Definition =>
11322        (1 => False,   --  unused
11323         2 => False,   --  unused
11324         3 => True,    --  Access_To_Subprogram_Definition (Node3)
11325         4 => True,    --  Subtype_Mark (Node4)
11326         5 => False),  --  unused
11327
11328      N_Incomplete_Type_Declaration =>
11329        (1 => True,    --  Defining_Identifier (Node1)
11330         2 => False,   --  unused
11331         3 => False,   --  unused
11332         4 => True,    --  Discriminant_Specifications (List4)
11333         5 => False),  --  Premature_Use
11334
11335      N_Explicit_Dereference =>
11336        (1 => False,   --  unused
11337         2 => False,   --  unused
11338         3 => True,    --  Prefix (Node3)
11339         4 => False,   --  Actual_Designated_Subtype (Node4-Sem)
11340         5 => False),  --  Etype (Node5-Sem)
11341
11342      N_Indexed_Component =>
11343        (1 => True,    --  Expressions (List1)
11344         2 => False,   --  unused
11345         3 => True,    --  Prefix (Node3)
11346         4 => False,   --  Generalized_Indexing (Node4-Sem)
11347         5 => False),  --  Etype (Node5-Sem)
11348
11349      N_Slice =>
11350        (1 => False,   --  unused
11351         2 => False,   --  unused
11352         3 => True,    --  Prefix (Node3)
11353         4 => True,    --  Discrete_Range (Node4)
11354         5 => False),  --  Etype (Node5-Sem)
11355
11356      N_Selected_Component =>
11357        (1 => False,   --  unused
11358         2 => True,    --  Selector_Name (Node2)
11359         3 => True,    --  Prefix (Node3)
11360         4 => False,   --  unused
11361         5 => False),  --  Etype (Node5-Sem)
11362
11363      N_Attribute_Reference =>
11364        (1 => True,    --  Expressions (List1)
11365         2 => True,    --  Attribute_Name (Name2)
11366         3 => True,    --  Prefix (Node3)
11367         4 => False,   --  Entity (Node4-Sem)
11368         5 => False),  --  Etype (Node5-Sem)
11369
11370      N_Aggregate =>
11371        (1 => True,    --  Expressions (List1)
11372         2 => True,    --  Component_Associations (List2)
11373         3 => False,   --  Aggregate_Bounds (Node3-Sem)
11374         4 => False,   --  unused
11375         5 => False),  --  Etype (Node5-Sem)
11376
11377      N_Component_Association =>
11378        (1 => True,    --  Choices (List1)
11379         2 => False,   --  Loop_Actions (List2-Sem)
11380         3 => True,    --  Expression (Node3)
11381         4 => False,   --  unused
11382         5 => False),  --  unused
11383
11384      N_Extension_Aggregate =>
11385        (1 => True,    --  Expressions (List1)
11386         2 => True,    --  Component_Associations (List2)
11387         3 => True,    --  Ancestor_Part (Node3)
11388         4 => False,   --  unused
11389         5 => False),  --  Etype (Node5-Sem)
11390
11391      N_Null =>
11392        (1 => False,   --  unused
11393         2 => False,   --  unused
11394         3 => False,   --  unused
11395         4 => False,   --  unused
11396         5 => False),  --  Etype (Node5-Sem)
11397
11398      N_And_Then =>
11399        (1 => False,   --  Actions (List1-Sem)
11400         2 => True,    --  Left_Opnd (Node2)
11401         3 => True,    --  Right_Opnd (Node3)
11402         4 => False,   --  unused
11403         5 => False),  --  Etype (Node5-Sem)
11404
11405      N_Or_Else =>
11406        (1 => False,   --  Actions (List1-Sem)
11407         2 => True,    --  Left_Opnd (Node2)
11408         3 => True,    --  Right_Opnd (Node3)
11409         4 => False,   --  unused
11410         5 => False),  --  Etype (Node5-Sem)
11411
11412      N_In =>
11413        (1 => False,   --  unused
11414         2 => True,    --  Left_Opnd (Node2)
11415         3 => True,    --  Right_Opnd (Node3)
11416         4 => True,    --  Alternatives (List4)
11417         5 => False),  --  Etype (Node5-Sem)
11418
11419      N_Not_In =>
11420        (1 => False,   --  unused
11421         2 => True,    --  Left_Opnd (Node2)
11422         3 => True,    --  Right_Opnd (Node3)
11423         4 => True,    --  Alternatives (List4)
11424         5 => False),  --  Etype (Node5-Sem)
11425
11426      N_Op_And =>
11427        (1 => True,    --  Chars (Name1)
11428         2 => True,    --  Left_Opnd (Node2)
11429         3 => True,    --  Right_Opnd (Node3)
11430         4 => False,   --  Entity (Node4-Sem)
11431         5 => False),  --  Etype (Node5-Sem)
11432
11433      N_Op_Or =>
11434        (1 => True,    --  Chars (Name1)
11435         2 => True,    --  Left_Opnd (Node2)
11436         3 => True,    --  Right_Opnd (Node3)
11437         4 => False,   --  Entity (Node4-Sem)
11438         5 => False),  --  Etype (Node5-Sem)
11439
11440      N_Op_Xor =>
11441        (1 => True,    --  Chars (Name1)
11442         2 => True,    --  Left_Opnd (Node2)
11443         3 => True,    --  Right_Opnd (Node3)
11444         4 => False,   --  Entity (Node4-Sem)
11445         5 => False),  --  Etype (Node5-Sem)
11446
11447      N_Op_Eq =>
11448        (1 => True,    --  Chars (Name1)
11449         2 => True,    --  Left_Opnd (Node2)
11450         3 => True,    --  Right_Opnd (Node3)
11451         4 => False,   --  Entity (Node4-Sem)
11452         5 => False),  --  Etype (Node5-Sem)
11453
11454      N_Op_Ne =>
11455        (1 => True,    --  Chars (Name1)
11456         2 => True,    --  Left_Opnd (Node2)
11457         3 => True,    --  Right_Opnd (Node3)
11458         4 => False,   --  Entity (Node4-Sem)
11459         5 => False),  --  Etype (Node5-Sem)
11460
11461      N_Op_Lt =>
11462        (1 => True,    --  Chars (Name1)
11463         2 => True,    --  Left_Opnd (Node2)
11464         3 => True,    --  Right_Opnd (Node3)
11465         4 => False,   --  Entity (Node4-Sem)
11466         5 => False),  --  Etype (Node5-Sem)
11467
11468      N_Op_Le =>
11469        (1 => True,    --  Chars (Name1)
11470         2 => True,    --  Left_Opnd (Node2)
11471         3 => True,    --  Right_Opnd (Node3)
11472         4 => False,   --  Entity (Node4-Sem)
11473         5 => False),  --  Etype (Node5-Sem)
11474
11475      N_Op_Gt =>
11476        (1 => True,    --  Chars (Name1)
11477         2 => True,    --  Left_Opnd (Node2)
11478         3 => True,    --  Right_Opnd (Node3)
11479         4 => False,   --  Entity (Node4-Sem)
11480         5 => False),  --  Etype (Node5-Sem)
11481
11482      N_Op_Ge =>
11483        (1 => True,    --  Chars (Name1)
11484         2 => True,    --  Left_Opnd (Node2)
11485         3 => True,    --  Right_Opnd (Node3)
11486         4 => False,   --  Entity (Node4-Sem)
11487         5 => False),  --  Etype (Node5-Sem)
11488
11489      N_Op_Add =>
11490        (1 => True,    --  Chars (Name1)
11491         2 => True,    --  Left_Opnd (Node2)
11492         3 => True,    --  Right_Opnd (Node3)
11493         4 => False,   --  Entity (Node4-Sem)
11494         5 => False),  --  Etype (Node5-Sem)
11495
11496      N_Op_Subtract =>
11497        (1 => True,    --  Chars (Name1)
11498         2 => True,    --  Left_Opnd (Node2)
11499         3 => True,    --  Right_Opnd (Node3)
11500         4 => False,   --  Entity (Node4-Sem)
11501         5 => False),  --  Etype (Node5-Sem)
11502
11503      N_Op_Concat =>
11504        (1 => True,    --  Chars (Name1)
11505         2 => True,    --  Left_Opnd (Node2)
11506         3 => True,    --  Right_Opnd (Node3)
11507         4 => False,   --  Entity (Node4-Sem)
11508         5 => False),  --  Etype (Node5-Sem)
11509
11510      N_Op_Multiply =>
11511        (1 => True,    --  Chars (Name1)
11512         2 => True,    --  Left_Opnd (Node2)
11513         3 => True,    --  Right_Opnd (Node3)
11514         4 => False,   --  Entity (Node4-Sem)
11515         5 => False),  --  Etype (Node5-Sem)
11516
11517      N_Op_Divide =>
11518        (1 => True,    --  Chars (Name1)
11519         2 => True,    --  Left_Opnd (Node2)
11520         3 => True,    --  Right_Opnd (Node3)
11521         4 => False,   --  Entity (Node4-Sem)
11522         5 => False),  --  Etype (Node5-Sem)
11523
11524      N_Op_Mod =>
11525        (1 => True,    --  Chars (Name1)
11526         2 => True,    --  Left_Opnd (Node2)
11527         3 => True,    --  Right_Opnd (Node3)
11528         4 => False,   --  Entity (Node4-Sem)
11529         5 => False),  --  Etype (Node5-Sem)
11530
11531      N_Op_Rem =>
11532        (1 => True,    --  Chars (Name1)
11533         2 => True,    --  Left_Opnd (Node2)
11534         3 => True,    --  Right_Opnd (Node3)
11535         4 => False,   --  Entity (Node4-Sem)
11536         5 => False),  --  Etype (Node5-Sem)
11537
11538      N_Op_Expon =>
11539        (1 => True,    --  Chars (Name1)
11540         2 => True,    --  Left_Opnd (Node2)
11541         3 => True,    --  Right_Opnd (Node3)
11542         4 => False,   --  Entity (Node4-Sem)
11543         5 => False),  --  Etype (Node5-Sem)
11544
11545      N_Op_Plus =>
11546        (1 => True,    --  Chars (Name1)
11547         2 => False,   --  unused
11548         3 => True,    --  Right_Opnd (Node3)
11549         4 => False,   --  Entity (Node4-Sem)
11550         5 => False),  --  Etype (Node5-Sem)
11551
11552      N_Op_Minus =>
11553        (1 => True,    --  Chars (Name1)
11554         2 => False,   --  unused
11555         3 => True,    --  Right_Opnd (Node3)
11556         4 => False,   --  Entity (Node4-Sem)
11557         5 => False),  --  Etype (Node5-Sem)
11558
11559      N_Op_Abs =>
11560        (1 => True,    --  Chars (Name1)
11561         2 => False,   --  unused
11562         3 => True,    --  Right_Opnd (Node3)
11563         4 => False,   --  Entity (Node4-Sem)
11564         5 => False),  --  Etype (Node5-Sem)
11565
11566      N_Op_Not =>
11567        (1 => True,    --  Chars (Name1)
11568         2 => False,   --  unused
11569         3 => True,    --  Right_Opnd (Node3)
11570         4 => False,   --  Entity (Node4-Sem)
11571         5 => False),  --  Etype (Node5-Sem)
11572
11573      N_Type_Conversion =>
11574        (1 => False,   --  unused
11575         2 => False,   --  unused
11576         3 => True,    --  Expression (Node3)
11577         4 => True,    --  Subtype_Mark (Node4)
11578         5 => False),  --  Etype (Node5-Sem)
11579
11580      N_Qualified_Expression =>
11581        (1 => False,   --  unused
11582         2 => False,   --  unused
11583         3 => True,    --  Expression (Node3)
11584         4 => True,    --  Subtype_Mark (Node4)
11585         5 => False),  --  Etype (Node5-Sem)
11586
11587      N_Quantified_Expression =>
11588        (1 => True,    --  Condition (Node1)
11589         2 => True,    --  Iterator_Specification
11590         3 => False,   --  unused
11591         4 => True,    --  Loop_Parameter_Specification (Node4)
11592         5 => False),  --  Etype (Node5-Sem)
11593
11594      N_Allocator =>
11595        (1 => False,   --  Storage_Pool (Node1-Sem)
11596         2 => False,   --  Procedure_To_Call (Node2-Sem)
11597         3 => True,    --  Expression (Node3)
11598         4 => True,    --  Subpool_Handle_Name (Node4)
11599         5 => False),  --  Etype (Node5-Sem)
11600
11601      N_Null_Statement =>
11602        (1 => False,   --  unused
11603         2 => False,   --  unused
11604         3 => False,   --  unused
11605         4 => False,   --  unused
11606         5 => False),  --  unused
11607
11608      N_Label =>
11609        (1 => True,    --  Identifier (Node1)
11610         2 => False,   --  unused
11611         3 => False,   --  unused
11612         4 => False,   --  unused
11613         5 => False),  --  unused
11614
11615      N_Assignment_Statement =>
11616        (1 => False,   --  unused
11617         2 => True,    --  Name (Node2)
11618         3 => True,    --  Expression (Node3)
11619         4 => False,   --  unused
11620         5 => False),  --  unused
11621
11622      N_If_Statement =>
11623        (1 => True,    --  Condition (Node1)
11624         2 => True,    --  Then_Statements (List2)
11625         3 => True,    --  Elsif_Parts (List3)
11626         4 => True,    --  Else_Statements (List4)
11627         5 => True),   --  End_Span (Uint5)
11628
11629      N_Elsif_Part =>
11630        (1 => True,    --  Condition (Node1)
11631         2 => True,    --  Then_Statements (List2)
11632         3 => False,   --  Condition_Actions (List3-Sem)
11633         4 => False,   --  unused
11634         5 => False),  --  unused
11635
11636      N_Case_Expression =>
11637        (1 => False,   --  unused
11638         2 => False,   --  unused
11639         3 => True,    --  Expression (Node3)
11640         4 => True,    --  Alternatives (List4)
11641         5 => False),  --  unused
11642
11643      N_Case_Expression_Alternative =>
11644        (1 => False,   --  Actions (List1-Sem)
11645         2 => False,   --  unused
11646         3 => True,    --  Statements (List3)
11647         4 => True,    --  Expression (Node4)
11648         5 => False),  --  unused
11649
11650      N_Case_Statement =>
11651        (1 => False,   --  unused
11652         2 => False,   --  unused
11653         3 => True,    --  Expression (Node3)
11654         4 => True,    --  Alternatives (List4)
11655         5 => True),   --  End_Span (Uint5)
11656
11657      N_Case_Statement_Alternative =>
11658        (1 => False,   --  unused
11659         2 => False,   --  unused
11660         3 => True,    --  Statements (List3)
11661         4 => True,    --  Discrete_Choices (List4)
11662         5 => False),  --  unused
11663
11664      N_Loop_Statement =>
11665        (1 => True,    --  Identifier (Node1)
11666         2 => True,    --  Iteration_Scheme (Node2)
11667         3 => True,    --  Statements (List3)
11668         4 => True,    --  End_Label (Node4)
11669         5 => False),  --  unused
11670
11671      N_Iteration_Scheme =>
11672        (1 => True,    --  Condition (Node1)
11673         2 => True,    --  Iterator_Specification (Node2)
11674         3 => False,   --  Condition_Actions (List3-Sem)
11675         4 => True,    --  Loop_Parameter_Specification (Node4)
11676         5 => False),  --  unused
11677
11678      N_Loop_Parameter_Specification =>
11679        (1 => True,    --  Defining_Identifier (Node1)
11680         2 => False,   --  unused
11681         3 => False,   --  unused
11682         4 => True,    --  Discrete_Subtype_Definition (Node4)
11683         5 => False),  --  unused
11684
11685      N_Iterator_Specification =>
11686        (1 => True,    --  Defining_Identifier (Node1)
11687         2 => True,    --  Name (Node2)
11688         3 => False,   --  Unused
11689         4 => False,   --  Unused
11690         5 => True),   --  Subtype_Indication (Node5)
11691
11692      N_Block_Statement =>
11693        (1 => True,    --  Identifier (Node1)
11694         2 => True,    --  Declarations (List2)
11695         3 => False,   --  Activation_Chain_Entity (Node3-Sem)
11696         4 => True,    --  Handled_Statement_Sequence (Node4)
11697         5 => False),  --  unused
11698
11699      N_Exit_Statement =>
11700        (1 => True,    --  Condition (Node1)
11701         2 => True,    --  Name (Node2)
11702         3 => False,   --  unused
11703         4 => False,   --  unused
11704         5 => False),  --  unused
11705
11706      N_Goto_Statement =>
11707        (1 => False,   --  unused
11708         2 => True,    --  Name (Node2)
11709         3 => False,   --  unused
11710         4 => False,   --  unused
11711         5 => False),  --  unused
11712
11713      N_Subprogram_Declaration =>
11714        (1 => True,    --  Specification (Node1)
11715         2 => False,   --  unused
11716         3 => False,   --  Body_To_Inline (Node3-Sem)
11717         4 => False,   --  Parent_Spec (Node4-Sem)
11718         5 => False),  --  Corresponding_Body (Node5-Sem)
11719
11720      N_Abstract_Subprogram_Declaration =>
11721        (1 => True,    --  Specification (Node1)
11722         2 => False,   --  unused
11723         3 => False,   --  unused
11724         4 => False,   --  unused
11725         5 => False),  --  unused
11726
11727      N_Function_Specification =>
11728        (1 => True,    --  Defining_Unit_Name (Node1)
11729         2 => False,   --  unused
11730         3 => True,    --  Parameter_Specifications (List3)
11731         4 => True,    --  Result_Definition (Node4)
11732         5 => False),  --  Generic_Parent (Node5-Sem)
11733
11734      N_Procedure_Specification =>
11735        (1 => True,    --  Defining_Unit_Name (Node1)
11736         2 => False,   --  unused
11737         3 => True,    --  Parameter_Specifications (List3)
11738         4 => False,   --  unused
11739         5 => False),  --  Generic_Parent (Node5-Sem)
11740
11741      N_Designator =>
11742        (1 => True,    --  Identifier (Node1)
11743         2 => True,    --  Name (Node2)
11744         3 => False,   --  unused
11745         4 => False,   --  unused
11746         5 => False),  --  unused
11747
11748      N_Defining_Program_Unit_Name =>
11749        (1 => True,    --  Defining_Identifier (Node1)
11750         2 => True,    --  Name (Node2)
11751         3 => False,   --  unused
11752         4 => False,   --  unused
11753         5 => False),  --  unused
11754
11755      N_Operator_Symbol =>
11756        (1 => True,    --  Chars (Name1)
11757         2 => False,   --  unused
11758         3 => True,    --  Strval (Str3)
11759         4 => False,   --  Entity (Node4-Sem)
11760         5 => False),  --  Etype (Node5-Sem)
11761
11762      N_Defining_Operator_Symbol =>
11763        (1 => True,    --  Chars (Name1)
11764         2 => False,   --  Next_Entity (Node2-Sem)
11765         3 => False,   --  Scope (Node3-Sem)
11766         4 => False,   --  unused
11767         5 => False),  --  Etype (Node5-Sem)
11768
11769      N_Parameter_Specification =>
11770        (1 => True,    --  Defining_Identifier (Node1)
11771         2 => True,    --  Parameter_Type (Node2)
11772         3 => True,    --  Expression (Node3)
11773         4 => False,   --  unused
11774         5 => False),  --  Default_Expression (Node5-Sem)
11775
11776      N_Subprogram_Body =>
11777        (1 => True,    --  Specification (Node1)
11778         2 => True,    --  Declarations (List2)
11779         3 => False,   --  Activation_Chain_Entity (Node3-Sem)
11780         4 => True,    --  Handled_Statement_Sequence (Node4)
11781         5 => False),  --  Corresponding_Spec (Node5-Sem)
11782
11783      N_Expression_Function =>
11784        (1 => True,    --  Specification (Node1)
11785         2 => False,   --  unused
11786         3 => True,    --  Expression (Node3)
11787         4 => False,   --  unused
11788         5 => False),  --  unused
11789
11790      N_Procedure_Call_Statement =>
11791        (1 => False,   --  Controlling_Argument (Node1-Sem)
11792         2 => True,    --  Name (Node2)
11793         3 => True,    --  Parameter_Associations (List3)
11794         4 => False,   --  First_Named_Actual (Node4-Sem)
11795         5 => False),  --  Etype (Node5-Sem)
11796
11797      N_Function_Call =>
11798        (1 => False,   --  Controlling_Argument (Node1-Sem)
11799         2 => True,    --  Name (Node2)
11800         3 => True,    --  Parameter_Associations (List3)
11801         4 => False,   --  First_Named_Actual (Node4-Sem)
11802         5 => False),  --  Etype (Node5-Sem)
11803
11804      N_Parameter_Association =>
11805        (1 => False,   --  unused
11806         2 => True,    --  Selector_Name (Node2)
11807         3 => True,    --  Explicit_Actual_Parameter (Node3)
11808         4 => False,   --  Next_Named_Actual (Node4-Sem)
11809         5 => False),  --  unused
11810
11811      N_Simple_Return_Statement =>
11812        (1 => False,   --  Storage_Pool (Node1-Sem)
11813         2 => False,   --  Procedure_To_Call (Node2-Sem)
11814         3 => True,    --  Expression (Node3)
11815         4 => False,   --  unused
11816         5 => False),  --  Return_Statement_Entity (Node5-Sem)
11817
11818      N_Extended_Return_Statement =>
11819        (1 => False,   --  Storage_Pool (Node1-Sem)
11820         2 => False,   --  Procedure_To_Call (Node2-Sem)
11821         3 => True,    --  Return_Object_Declarations (List3)
11822         4 => True,    --  Handled_Statement_Sequence (Node4)
11823         5 => False),  --  Return_Statement_Entity (Node5-Sem)
11824
11825      N_Package_Declaration =>
11826        (1 => True,    --  Specification (Node1)
11827         2 => False,   --  unused
11828         3 => False,   --  Activation_Chain_Entity (Node3-Sem)
11829         4 => False,   --  Parent_Spec (Node4-Sem)
11830         5 => False),  --  Corresponding_Body (Node5-Sem)
11831
11832      N_Package_Specification =>
11833        (1 => True,    --  Defining_Unit_Name (Node1)
11834         2 => True,    --  Visible_Declarations (List2)
11835         3 => True,    --  Private_Declarations (List3)
11836         4 => True,    --  End_Label (Node4)
11837         5 => False),  --  Generic_Parent (Node5-Sem)
11838
11839      N_Package_Body =>
11840        (1 => True,    --  Defining_Unit_Name (Node1)
11841         2 => True,    --  Declarations (List2)
11842         3 => False,   --  unused
11843         4 => True,    --  Handled_Statement_Sequence (Node4)
11844         5 => False),  --  Corresponding_Spec (Node5-Sem)
11845
11846      N_Private_Type_Declaration =>
11847        (1 => True,    --  Defining_Identifier (Node1)
11848         2 => False,   --  unused
11849         3 => False,   --  unused
11850         4 => True,    --  Discriminant_Specifications (List4)
11851         5 => False),  --  unused
11852
11853      N_Private_Extension_Declaration =>
11854        (1 => True,    --  Defining_Identifier (Node1)
11855         2 => True,    --  Interface_List (List2)
11856         3 => False,   --  unused
11857         4 => True,    --  Discriminant_Specifications (List4)
11858         5 => True),   --  Subtype_Indication (Node5)
11859
11860      N_Use_Package_Clause =>
11861        (1 => False,   --  unused
11862         2 => True,    --  Names (List2)
11863         3 => False,   --  Next_Use_Clause (Node3-Sem)
11864         4 => False,   --  Hidden_By_Use_Clause (Elist4-Sem)
11865         5 => False),  --  unused
11866
11867      N_Use_Type_Clause =>
11868        (1 => False,   --  unused
11869         2 => True,    --  Subtype_Marks (List2)
11870         3 => False,   --  Next_Use_Clause (Node3-Sem)
11871         4 => False,   --  Hidden_By_Use_Clause (Elist4-Sem)
11872         5 => False),  --  unused
11873
11874      N_Object_Renaming_Declaration =>
11875        (1 => True,    --  Defining_Identifier (Node1)
11876         2 => True,    --  Name (Node2)
11877         3 => True,    --  Access_Definition (Node3)
11878         4 => True,    --  Subtype_Mark (Node4)
11879         5 => False),  --  Corresponding_Generic_Association (Node5-Sem)
11880
11881      N_Exception_Renaming_Declaration =>
11882        (1 => True,    --  Defining_Identifier (Node1)
11883         2 => True,    --  Name (Node2)
11884         3 => False,   --  unused
11885         4 => False,   --  unused
11886         5 => False),  --  unused
11887
11888      N_Package_Renaming_Declaration =>
11889        (1 => True,    --  Defining_Unit_Name (Node1)
11890         2 => True,    --  Name (Node2)
11891         3 => False,   --  unused
11892         4 => False,   --  Parent_Spec (Node4-Sem)
11893         5 => False),  --  unused
11894
11895      N_Subprogram_Renaming_Declaration =>
11896        (1 => True,    --  Specification (Node1)
11897         2 => True,    --  Name (Node2)
11898         3 => False,   --  Corresponding_Formal_Spec (Node3-Sem)
11899         4 => False,   --  Parent_Spec (Node4-Sem)
11900         5 => False),  --  Corresponding_Spec (Node5-Sem)
11901
11902      N_Generic_Package_Renaming_Declaration =>
11903        (1 => True,    --  Defining_Unit_Name (Node1)
11904         2 => True,    --  Name (Node2)
11905         3 => False,   --  unused
11906         4 => False,   --  Parent_Spec (Node4-Sem)
11907         5 => False),  --  unused
11908
11909      N_Generic_Procedure_Renaming_Declaration =>
11910        (1 => True,    --  Defining_Unit_Name (Node1)
11911         2 => True,    --  Name (Node2)
11912         3 => False,   --  unused
11913         4 => False,   --  Parent_Spec (Node4-Sem)
11914         5 => False),  --  unused
11915
11916      N_Generic_Function_Renaming_Declaration =>
11917        (1 => True,    --  Defining_Unit_Name (Node1)
11918         2 => True,    --  Name (Node2)
11919         3 => False,   --  unused
11920         4 => False,   --  Parent_Spec (Node4-Sem)
11921         5 => False),  --  unused
11922
11923      N_Task_Type_Declaration =>
11924        (1 => True,    --  Defining_Identifier (Node1)
11925         2 => True,    --  Interface_List (List2)
11926         3 => True,    --  Task_Definition (Node3)
11927         4 => True,    --  Discriminant_Specifications (List4)
11928         5 => False),  --  Corresponding_Body (Node5-Sem)
11929
11930      N_Single_Task_Declaration =>
11931        (1 => True,    --  Defining_Identifier (Node1)
11932         2 => True,    --  Interface_List (List2)
11933         3 => True,    --  Task_Definition (Node3)
11934         4 => False,   --  unused
11935         5 => False),  --  unused
11936
11937      N_Task_Definition =>
11938        (1 => False,   --  unused
11939         2 => True,    --  Visible_Declarations (List2)
11940         3 => True,    --  Private_Declarations (List3)
11941         4 => True,    --  End_Label (Node4)
11942         5 => False),  --  unused
11943
11944      N_Task_Body =>
11945        (1 => True,    --  Defining_Identifier (Node1)
11946         2 => True,    --  Declarations (List2)
11947         3 => False,   --  Activation_Chain_Entity (Node3-Sem)
11948         4 => True,    --  Handled_Statement_Sequence (Node4)
11949         5 => False),  --  Corresponding_Spec (Node5-Sem)
11950
11951      N_Protected_Type_Declaration =>
11952        (1 => True,    --  Defining_Identifier (Node1)
11953         2 => True,    --  Interface_List (List2)
11954         3 => True,    --  Protected_Definition (Node3)
11955         4 => True,    --  Discriminant_Specifications (List4)
11956         5 => False),  --  Corresponding_Body (Node5-Sem)
11957
11958      N_Single_Protected_Declaration =>
11959        (1 => True,    --  Defining_Identifier (Node1)
11960         2 => True,    --  Interface_List (List2)
11961         3 => True,    --  Protected_Definition (Node3)
11962         4 => False,   --  unused
11963         5 => False),  --  unused
11964
11965      N_Protected_Definition =>
11966        (1 => False,   --  unused
11967         2 => True,    --  Visible_Declarations (List2)
11968         3 => True,    --  Private_Declarations (List3)
11969         4 => True,    --  End_Label (Node4)
11970         5 => False),  --  unused
11971
11972      N_Protected_Body =>
11973        (1 => True,    --  Defining_Identifier (Node1)
11974         2 => True,    --  Declarations (List2)
11975         3 => False,   --  unused
11976         4 => True,    --  End_Label (Node4)
11977         5 => False),  --  Corresponding_Spec (Node5-Sem)
11978
11979      N_Entry_Declaration =>
11980        (1 => True,    --  Defining_Identifier (Node1)
11981         2 => False,   --  unused
11982         3 => True,    --  Parameter_Specifications (List3)
11983         4 => True,    --  Discrete_Subtype_Definition (Node4)
11984         5 => False),  --  Corresponding_Body (Node5-Sem)
11985
11986      N_Accept_Statement =>
11987        (1 => True,    --  Entry_Direct_Name (Node1)
11988         2 => True,    --  Declarations (List2)
11989         3 => True,    --  Parameter_Specifications (List3)
11990         4 => True,    --  Handled_Statement_Sequence (Node4)
11991         5 => True),   --  Entry_Index (Node5)
11992
11993      N_Entry_Body =>
11994        (1 => True,    --  Defining_Identifier (Node1)
11995         2 => True,    --  Declarations (List2)
11996         3 => False,   --  Activation_Chain_Entity (Node3-Sem)
11997         4 => True,    --  Handled_Statement_Sequence (Node4)
11998         5 => True),   --  Entry_Body_Formal_Part (Node5)
11999
12000      N_Entry_Body_Formal_Part =>
12001        (1 => True,    --  Condition (Node1)
12002         2 => False,   --  unused
12003         3 => True,    --  Parameter_Specifications (List3)
12004         4 => True,    --  Entry_Index_Specification (Node4)
12005         5 => False),  --  unused
12006
12007      N_Entry_Index_Specification =>
12008        (1 => True,    --  Defining_Identifier (Node1)
12009         2 => False,   --  unused
12010         3 => False,   --  unused
12011         4 => True,    --  Discrete_Subtype_Definition (Node4)
12012         5 => False),  --  unused
12013
12014      N_Entry_Call_Statement =>
12015        (1 => False,   --  unused
12016         2 => True,    --  Name (Node2)
12017         3 => True,    --  Parameter_Associations (List3)
12018         4 => False,   --  First_Named_Actual (Node4-Sem)
12019         5 => False),  --  unused
12020
12021      N_Requeue_Statement =>
12022        (1 => False,   --  unused
12023         2 => True,    --  Name (Node2)
12024         3 => False,   --  unused
12025         4 => False,   --  unused
12026         5 => False),  --  unused
12027
12028      N_Delay_Until_Statement =>
12029        (1 => False,   --  unused
12030         2 => False,   --  unused
12031         3 => True,    --  Expression (Node3)
12032         4 => False,   --  unused
12033         5 => False),  --  unused
12034
12035      N_Delay_Relative_Statement =>
12036        (1 => False,   --  unused
12037         2 => False,   --  unused
12038         3 => True,    --  Expression (Node3)
12039         4 => False,   --  unused
12040         5 => False),  --  unused
12041
12042      N_Selective_Accept =>
12043        (1 => True,    --  Select_Alternatives (List1)
12044         2 => False,   --  unused
12045         3 => False,   --  unused
12046         4 => True,    --  Else_Statements (List4)
12047         5 => False),  --  unused
12048
12049      N_Accept_Alternative =>
12050        (1 => True,    --  Condition (Node1)
12051         2 => True,    --  Accept_Statement (Node2)
12052         3 => True,    --  Statements (List3)
12053         4 => True,    --  Pragmas_Before (List4)
12054         5 => False),  --  Accept_Handler_Records (List5-Sem)
12055
12056      N_Delay_Alternative =>
12057        (1 => True,    --  Condition (Node1)
12058         2 => True,    --  Delay_Statement (Node2)
12059         3 => True,    --  Statements (List3)
12060         4 => True,    --  Pragmas_Before (List4)
12061         5 => False),  --  unused
12062
12063      N_Terminate_Alternative =>
12064        (1 => True,    --  Condition (Node1)
12065         2 => False,   --  unused
12066         3 => False,   --  unused
12067         4 => True,    --  Pragmas_Before (List4)
12068         5 => True),   --  Pragmas_After (List5)
12069
12070      N_Timed_Entry_Call =>
12071        (1 => True,    --  Entry_Call_Alternative (Node1)
12072         2 => False,   --  unused
12073         3 => False,   --  unused
12074         4 => True,    --  Delay_Alternative (Node4)
12075         5 => False),  --  unused
12076
12077      N_Entry_Call_Alternative =>
12078        (1 => True,    --  Entry_Call_Statement (Node1)
12079         2 => False,   --  unused
12080         3 => True,    --  Statements (List3)
12081         4 => True,    --  Pragmas_Before (List4)
12082         5 => False),  --  unused
12083
12084      N_Conditional_Entry_Call =>
12085        (1 => True,    --  Entry_Call_Alternative (Node1)
12086         2 => False,   --  unused
12087         3 => False,   --  unused
12088         4 => True,    --  Else_Statements (List4)
12089         5 => False),  --  unused
12090
12091      N_Asynchronous_Select =>
12092        (1 => True,    --  Triggering_Alternative (Node1)
12093         2 => True,    --  Abortable_Part (Node2)
12094         3 => False,   --  unused
12095         4 => False,   --  unused
12096         5 => False),  --  unused
12097
12098      N_Triggering_Alternative =>
12099        (1 => True,    --  Triggering_Statement (Node1)
12100         2 => False,   --  unused
12101         3 => True,    --  Statements (List3)
12102         4 => True,    --  Pragmas_Before (List4)
12103         5 => False),  --  unused
12104
12105      N_Abortable_Part =>
12106        (1 => False,   --  unused
12107         2 => False,   --  unused
12108         3 => True,    --  Statements (List3)
12109         4 => False,   --  unused
12110         5 => False),  --  unused
12111
12112      N_Abort_Statement =>
12113        (1 => False,   --  unused
12114         2 => True,    --  Names (List2)
12115         3 => False,   --  unused
12116         4 => False,   --  unused
12117         5 => False),  --  unused
12118
12119      N_Compilation_Unit =>
12120        (1 => True,    --  Context_Items (List1)
12121         2 => True,    --  Unit (Node2)
12122         3 => False,   --  First_Inlined_Subprogram (Node3-Sem)
12123         4 => False,   --  Library_Unit (Node4-Sem)
12124         5 => True),   --  Aux_Decls_Node (Node5)
12125
12126      N_Compilation_Unit_Aux =>
12127        (1 => True,    --  Actions (List1)
12128         2 => True,    --  Declarations (List2)
12129         3 => False,   --  Default_Storage_Pool (Node3)
12130         4 => True,    --  Config_Pragmas (List4)
12131         5 => True),   --  Pragmas_After (List5)
12132
12133      N_With_Clause =>
12134        (1 => False,   --  unused
12135         2 => True,    --  Name (Node2)
12136         3 => False,   --  unused
12137         4 => False,   --  Library_Unit (Node4-Sem)
12138         5 => False),  --  Corresponding_Spec (Node5-Sem)
12139
12140      N_Subprogram_Body_Stub =>
12141        (1 => True,    --  Specification (Node1)
12142         2 => False,   --  Corresponding_Spec_Of_Stub (Node2-Sem)
12143         3 => False,   --  unused
12144         4 => False,   --  Library_Unit (Node4-Sem)
12145         5 => False),  --  Corresponding_Body (Node5-Sem)
12146
12147      N_Package_Body_Stub =>
12148        (1 => True,    --  Defining_Identifier (Node1)
12149         2 => False,   --  Corresponding_Spec_Of_Stub (Node2-Sem)
12150         3 => False,   --  unused
12151         4 => False,   --  Library_Unit (Node4-Sem)
12152         5 => False),  --  Corresponding_Body (Node5-Sem)
12153
12154      N_Task_Body_Stub =>
12155        (1 => True,    --  Defining_Identifier (Node1)
12156         2 => False,   --  Corresponding_Spec_Of_Stub (Node2-Sem)
12157         3 => False,   --  unused
12158         4 => False,   --  Library_Unit (Node4-Sem)
12159         5 => False),  --  Corresponding_Body (Node5-Sem)
12160
12161      N_Protected_Body_Stub =>
12162        (1 => True,    --  Defining_Identifier (Node1)
12163         2 => False,   --  Corresponding_Spec_Of_Stub (Node2-Sem)
12164         3 => False,   --  unused
12165         4 => False,   --  Library_Unit (Node4-Sem)
12166         5 => False),  --  Corresponding_Body (Node5-Sem)
12167
12168      N_Subunit =>
12169        (1 => True,    --  Proper_Body (Node1)
12170         2 => True,    --  Name (Node2)
12171         3 => False,   --  Corresponding_Stub (Node3-Sem)
12172         4 => False,   --  unused
12173         5 => False),  --  unused
12174
12175      N_Exception_Declaration =>
12176        (1 => True,    --  Defining_Identifier (Node1)
12177         2 => False,   --  unused
12178         3 => False,   --  Expression (Node3-Sem)
12179         4 => False,   --  unused
12180         5 => False),  --  unused
12181
12182      N_Handled_Sequence_Of_Statements =>
12183        (1 => True,    --  At_End_Proc (Node1)
12184         2 => False,   --  First_Real_Statement (Node2-Sem)
12185         3 => True,    --  Statements (List3)
12186         4 => True,    --  End_Label (Node4)
12187         5 => True),   --  Exception_Handlers (List5)
12188
12189      N_Exception_Handler =>
12190        (1 => False,   --  Local_Raise_Statements (Elist1)
12191         2 => True,    --  Choice_Parameter (Node2)
12192         3 => True,    --  Statements (List3)
12193         4 => True,    --  Exception_Choices (List4)
12194         5 => False),  --  Exception_Label (Node5)
12195
12196      N_Raise_Statement =>
12197        (1 => False,   --  unused
12198         2 => True,    --  Name (Node2)
12199         3 => True,    --  Expression (Node3)
12200         4 => False,   --  unused
12201         5 => False),  --  unused
12202
12203      N_Raise_Expression =>
12204        (1 => False,   --  unused
12205         2 => True,    --  Name (Node2)
12206         3 => True,    --  Expression (Node3)
12207         4 => False,   --  unused
12208         5 => False),  --  Etype (Node5-Sem)
12209
12210      N_Generic_Subprogram_Declaration =>
12211        (1 => True,    --  Specification (Node1)
12212         2 => True,    --  Generic_Formal_Declarations (List2)
12213         3 => False,   --  unused
12214         4 => False,   --  Parent_Spec (Node4-Sem)
12215         5 => False),  --  Corresponding_Body (Node5-Sem)
12216
12217      N_Generic_Package_Declaration =>
12218        (1 => True,    --  Specification (Node1)
12219         2 => True,    --  Generic_Formal_Declarations (List2)
12220         3 => False,   --  Activation_Chain_Entity (Node3-Sem)
12221         4 => False,   --  Parent_Spec (Node4-Sem)
12222         5 => False),  --  Corresponding_Body (Node5-Sem)
12223
12224      N_Package_Instantiation =>
12225        (1 => True,    --  Defining_Unit_Name (Node1)
12226         2 => True,    --  Name (Node2)
12227         3 => True,    --  Generic_Associations (List3)
12228         4 => False,   --  Parent_Spec (Node4-Sem)
12229         5 => False),  --  Instance_Spec (Node5-Sem)
12230
12231      N_Procedure_Instantiation =>
12232        (1 => True,    --  Defining_Unit_Name (Node1)
12233         2 => True,    --  Name (Node2)
12234         3 => True,    --  Generic_Associations (List3)
12235         4 => False,   --  Parent_Spec (Node4-Sem)
12236         5 => False),  --  Instance_Spec (Node5-Sem)
12237
12238      N_Function_Instantiation =>
12239        (1 => True,    --  Defining_Unit_Name (Node1)
12240         2 => True,    --  Name (Node2)
12241         3 => True,    --  Generic_Associations (List3)
12242         4 => False,   --  Parent_Spec (Node4-Sem)
12243         5 => False),  --  Instance_Spec (Node5-Sem)
12244
12245      N_Generic_Association =>
12246        (1 => True,    --  Explicit_Generic_Actual_Parameter (Node1)
12247         2 => True,    --  Selector_Name (Node2)
12248         3 => False,   --  unused
12249         4 => False,   --  unused
12250         5 => False),  --  unused
12251
12252      N_Formal_Object_Declaration =>
12253        (1 => True,    --  Defining_Identifier (Node1)
12254         2 => False,   --  unused
12255         3 => True,    --  Access_Definition (Node3)
12256         4 => True,    --  Subtype_Mark (Node4)
12257         5 => True),   --  Default_Expression (Node5)
12258
12259      N_Formal_Type_Declaration =>
12260        (1 => True,    --  Defining_Identifier (Node1)
12261         2 => False,   --  unused
12262         3 => True,    --  Formal_Type_Definition (Node3)
12263         4 => True,    --  Discriminant_Specifications (List4)
12264         5 => False),  --  unused
12265
12266      N_Formal_Private_Type_Definition =>
12267        (1 => False,   --  unused
12268         2 => False,   --  unused
12269         3 => False,   --  unused
12270         4 => False,   --  unused
12271         5 => False),  --  unused
12272
12273      N_Formal_Incomplete_Type_Definition =>
12274        (1 => False,   --  unused
12275         2 => False,   --  unused
12276         3 => False,   --  unused
12277         4 => False,   --  unused
12278         5 => False),  --  unused
12279
12280      N_Formal_Derived_Type_Definition =>
12281        (1 => False,   --  unused
12282         2 => True,    --  Interface_List (List2)
12283         3 => False,   --  unused
12284         4 => True,    --  Subtype_Mark (Node4)
12285         5 => False),  --  unused
12286
12287      N_Formal_Discrete_Type_Definition =>
12288        (1 => False,   --  unused
12289         2 => False,   --  unused
12290         3 => False,   --  unused
12291         4 => False,   --  unused
12292         5 => False),  --  unused
12293
12294      N_Formal_Signed_Integer_Type_Definition =>
12295        (1 => False,   --  unused
12296         2 => False,   --  unused
12297         3 => False,   --  unused
12298         4 => False,   --  unused
12299         5 => False),  --  unused
12300
12301      N_Formal_Modular_Type_Definition =>
12302        (1 => False,   --  unused
12303         2 => False,   --  unused
12304         3 => False,   --  unused
12305         4 => False,   --  unused
12306         5 => False),  --  unused
12307
12308      N_Formal_Floating_Point_Definition =>
12309        (1 => False,   --  unused
12310         2 => False,   --  unused
12311         3 => False,   --  unused
12312         4 => False,   --  unused
12313         5 => False),  --  unused
12314
12315      N_Formal_Ordinary_Fixed_Point_Definition =>
12316        (1 => False,   --  unused
12317         2 => False,   --  unused
12318         3 => False,   --  unused
12319         4 => False,   --  unused
12320         5 => False),  --  unused
12321
12322      N_Formal_Decimal_Fixed_Point_Definition =>
12323        (1 => False,   --  unused
12324         2 => False,   --  unused
12325         3 => False,   --  unused
12326         4 => False,   --  unused
12327         5 => False),  --  unused
12328
12329      N_Formal_Concrete_Subprogram_Declaration =>
12330        (1 => True,    --  Specification (Node1)
12331         2 => True,    --  Default_Name (Node2)
12332         3 => False,   --  unused
12333         4 => False,   --  unused
12334         5 => False),  --  unused
12335
12336      N_Formal_Abstract_Subprogram_Declaration =>
12337        (1 => True,    --  Specification (Node1)
12338         2 => True,    --  Default_Name (Node2)
12339         3 => False,   --  unused
12340         4 => False,   --  unused
12341         5 => False),  --  unused
12342
12343      N_Formal_Package_Declaration =>
12344        (1 => True,    --  Defining_Identifier (Node1)
12345         2 => True,    --  Name (Node2)
12346         3 => True,    --  Generic_Associations (List3)
12347         4 => False,   --  unused
12348         5 => False),  --  Instance_Spec (Node5-Sem)
12349
12350      N_Attribute_Definition_Clause =>
12351        (1 => True,    --  Chars (Name1)
12352         2 => True,    --  Name (Node2)
12353         3 => True,    --  Expression (Node3)
12354         4 => False,   --  unused
12355         5 => False),  --  Next_Rep_Item (Node5-Sem)
12356
12357      N_Aspect_Specification =>
12358        (1 => True,    --  Identifier (Node1)
12359         2 => False,   --  Aspect_Rep_Item (Node2-Sem)
12360         3 => True,    --  Expression (Node3)
12361         4 => False,   --  Entity (Node4-Sem)
12362         5 => False),  --  Next_Rep_Item (Node5-Sem)
12363
12364      N_Enumeration_Representation_Clause =>
12365        (1 => True,    --  Identifier (Node1)
12366         2 => False,   --  unused
12367         3 => True,    --  Array_Aggregate (Node3)
12368         4 => False,   --  unused
12369         5 => False),  --  Next_Rep_Item (Node5-Sem)
12370
12371      N_Record_Representation_Clause =>
12372        (1 => True,    --  Identifier (Node1)
12373         2 => True,    --  Mod_Clause (Node2)
12374         3 => True,    --  Component_Clauses (List3)
12375         4 => False,   --  unused
12376         5 => False),  --  Next_Rep_Item (Node5-Sem)
12377
12378      N_Component_Clause =>
12379        (1 => True,    --  Component_Name (Node1)
12380         2 => True,    --  Position (Node2)
12381         3 => True,    --  First_Bit (Node3)
12382         4 => True,    --  Last_Bit (Node4)
12383         5 => False),  --  unused
12384
12385      N_Code_Statement =>
12386        (1 => False,   --  unused
12387         2 => False,   --  unused
12388         3 => True,    --  Expression (Node3)
12389         4 => False,   --  unused
12390         5 => False),  --  unused
12391
12392      N_Op_Rotate_Left =>
12393        (1 => True,    --  Chars (Name1)
12394         2 => True,    --  Left_Opnd (Node2)
12395         3 => True,    --  Right_Opnd (Node3)
12396         4 => False,   --  Entity (Node4-Sem)
12397         5 => False),  --  Etype (Node5-Sem)
12398
12399      N_Op_Rotate_Right =>
12400        (1 => True,    --  Chars (Name1)
12401         2 => True,    --  Left_Opnd (Node2)
12402         3 => True,    --  Right_Opnd (Node3)
12403         4 => False,   --  Entity (Node4-Sem)
12404         5 => False),  --  Etype (Node5-Sem)
12405
12406      N_Op_Shift_Left =>
12407        (1 => True,    --  Chars (Name1)
12408         2 => True,    --  Left_Opnd (Node2)
12409         3 => True,    --  Right_Opnd (Node3)
12410         4 => False,   --  Entity (Node4-Sem)
12411         5 => False),  --  Etype (Node5-Sem)
12412
12413      N_Op_Shift_Right_Arithmetic =>
12414        (1 => True,    --  Chars (Name1)
12415         2 => True,    --  Left_Opnd (Node2)
12416         3 => True,    --  Right_Opnd (Node3)
12417         4 => False,   --  Entity (Node4-Sem)
12418         5 => False),  --  Etype (Node5-Sem)
12419
12420      N_Op_Shift_Right =>
12421        (1 => True,    --  Chars (Name1)
12422         2 => True,    --  Left_Opnd (Node2)
12423         3 => True,    --  Right_Opnd (Node3)
12424         4 => False,   --  Entity (Node4-Sem)
12425         5 => False),  --  Etype (Node5-Sem)
12426
12427      N_Delta_Constraint =>
12428        (1 => False,   --  unused
12429         2 => False,   --  unused
12430         3 => True,    --  Delta_Expression (Node3)
12431         4 => True,    --  Range_Constraint (Node4)
12432         5 => False),  --  unused
12433
12434      N_At_Clause =>
12435        (1 => True,    --  Identifier (Node1)
12436         2 => False,   --  unused
12437         3 => True,    --  Expression (Node3)
12438         4 => False,   --  unused
12439         5 => False),  --  unused
12440
12441      N_Mod_Clause =>
12442        (1 => False,   --  unused
12443         2 => False,   --  unused
12444         3 => True,    --  Expression (Node3)
12445         4 => True,    --  Pragmas_Before (List4)
12446         5 => False),  --  unused
12447
12448      N_If_Expression =>
12449        (1 => True,    --  Expressions (List1)
12450         2 => False,   --  Then_Actions (List2-Sem)
12451         3 => False,   --  Else_Actions (List3-Sem)
12452         4 => False,   --  unused
12453         5 => False),  --  Etype (Node5-Sem)
12454
12455      N_Compound_Statement =>
12456        (1 => True,    --  Actions (List1)
12457         2 => False,   --  unused
12458         3 => False,   --  unused
12459         4 => False,   --  unused
12460         5 => False),  --  unused
12461
12462      N_Contract =>
12463        (1 => False,   --  Pre_Post_Conditions (Node1-Sem)
12464         2 => False,   --  Contract_Test_Cases (Node2-Sem)
12465         3 => False,   --  Classifications (Node3-Sem)
12466         4 => False,   --  unused
12467         5 => False),  --  unused
12468
12469      N_Expanded_Name =>
12470        (1 => True,    --  Chars (Name1)
12471         2 => True,    --  Selector_Name (Node2)
12472         3 => True,    --  Prefix (Node3)
12473         4 => False,   --  Entity (Node4-Sem)
12474         5 => False),  --  Etype (Node5-Sem)
12475
12476      N_Expression_With_Actions =>
12477        (1 => True,    --  Actions (List1)
12478         2 => False,   --  unused
12479         3 => True,    --  Expression (Node3)
12480         4 => False,   --  unused
12481         5 => False),  --  unused
12482
12483      N_Free_Statement =>
12484        (1 => False,   --  Storage_Pool (Node1-Sem)
12485         2 => False,   --  Procedure_To_Call (Node2-Sem)
12486         3 => True,    --  Expression (Node3)
12487         4 => False,   --  Actual_Designated_Subtype (Node4-Sem)
12488         5 => False),  --  unused
12489
12490      N_Freeze_Entity =>
12491        (1 => True,    --  Actions (List1)
12492         2 => False,   --  Access_Types_To_Process (Elist2-Sem)
12493         3 => False,   --  TSS_Elist (Elist3-Sem)
12494         4 => False,   --  Entity (Node4-Sem)
12495         5 => False),  --  First_Subtype_Link (Node5-Sem)
12496
12497      N_Freeze_Generic_Entity =>
12498        (1 => False,   --  unused
12499         2 => False,   --  unused
12500         3 => False,   --  unused
12501         4 => False,   --  Entity (Node4-Sem)
12502         5 => False),  --  unused
12503
12504      N_Implicit_Label_Declaration =>
12505        (1 => True,    --  Defining_Identifier (Node1)
12506         2 => False,   --  Label_Construct (Node2-Sem)
12507         3 => False,   --  unused
12508         4 => False,   --  unused
12509         5 => False),  --  unused
12510
12511      N_Itype_Reference =>
12512        (1 => False,   --  Itype (Node1-Sem)
12513         2 => False,   --  unused
12514         3 => False,   --  unused
12515         4 => False,   --  unused
12516         5 => False),  --  unused
12517
12518      N_Raise_Constraint_Error =>
12519        (1 => True,    --  Condition (Node1)
12520         2 => False,   --  unused
12521         3 => True,    --  Reason (Uint3)
12522         4 => False,   --  unused
12523         5 => False),  --  Etype (Node5-Sem)
12524
12525      N_Raise_Program_Error =>
12526        (1 => True,    --  Condition (Node1)
12527         2 => False,   --  unused
12528         3 => True,    --  Reason (Uint3)
12529         4 => False,   --  unused
12530         5 => False),  --  Etype (Node5-Sem)
12531
12532      N_Raise_Storage_Error =>
12533        (1 => True,    --  Condition (Node1)
12534         2 => False,   --  unused
12535         3 => True,    --  Reason (Uint3)
12536         4 => False,   --  unused
12537         5 => False),  --  Etype (Node5-Sem)
12538
12539      N_Push_Constraint_Error_Label =>
12540        (1 => False,   --  unused
12541         2 => False,   --  unused
12542         3 => False,   --  unused
12543         4 => False,   --  unused
12544         5 => False),  --  unused
12545
12546      N_Push_Program_Error_Label =>
12547        (1 => False,   --  Exception_Label
12548         2 => False,   --  unused
12549         3 => False,   --  unused
12550         4 => False,   --  unused
12551         5 => False),  --  Exception_Label
12552
12553      N_Push_Storage_Error_Label =>
12554        (1 => False,   --  Exception_Label
12555         2 => False,   --  unused
12556         3 => False,   --  unused
12557         4 => False,   --  unused
12558         5 => False),  --  Exception_Label
12559
12560      N_Pop_Constraint_Error_Label =>
12561        (1 => False,   --  unused
12562         2 => False,   --  unused
12563         3 => False,   --  unused
12564         4 => False,   --  unused
12565         5 => False),  --  unused
12566
12567      N_Pop_Program_Error_Label =>
12568        (1 => False,   --  unused
12569         2 => False,   --  unused
12570         3 => False,   --  unused
12571         4 => False,   --  unused
12572         5 => False),  --  unused
12573
12574      N_Pop_Storage_Error_Label =>
12575        (1 => False,   --  unused
12576         2 => False,   --  unused
12577         3 => False,   --  unused
12578         4 => False,   --  unused
12579         5 => False),  --  unused
12580
12581      N_Reference =>
12582        (1 => False,   --  unused
12583         2 => False,   --  unused
12584         3 => True,    --  Prefix (Node3)
12585         4 => False,   --  unused
12586         5 => False),  --  Etype (Node5-Sem)
12587
12588      N_Unchecked_Expression =>
12589        (1 => False,   --  unused
12590         2 => False,   --  unused
12591         3 => True,    --  Expression (Node3)
12592         4 => False,   --  unused
12593         5 => False),  --  Etype (Node5-Sem)
12594
12595      N_Unchecked_Type_Conversion =>
12596        (1 => False,   --  unused
12597         2 => False,   --  unused
12598         3 => True,    --  Expression (Node3)
12599         4 => True,    --  Subtype_Mark (Node4)
12600         5 => False),  --  Etype (Node5-Sem)
12601
12602      N_Validate_Unchecked_Conversion =>
12603        (1 => False,   --  Source_Type (Node1-Sem)
12604         2 => False,   --  Target_Type (Node2-Sem)
12605         3 => False,   --  unused
12606         4 => False,   --  unused
12607         5 => False),  --  unused
12608
12609    --  Entries for SCIL nodes
12610
12611      N_SCIL_Dispatch_Table_Tag_Init =>
12612        (1 => False,   --  unused
12613         2 => False,   --  unused
12614         3 => False,   --  unused
12615         4 => False,   --  SCIL_Entity (Node4-Sem)
12616         5 => False),  --  unused
12617
12618      N_SCIL_Dispatching_Call =>
12619        (1 => False,   --  unused
12620         2 => False,   --  SCIL_Target_Prim (Node2-Sem)
12621         3 => False,   --  unused
12622         4 => False,   --  SCIL_Entity (Node4-Sem)
12623         5 => False),  --  SCIL_Controlling_Tag (Node5-Sem)
12624
12625      N_SCIL_Membership_Test =>
12626        (1 => False,   --  unused
12627         2 => False,   --  unused
12628         3 => False,   --  unused
12629         4 => False,   --  SCIL_Entity (Node4-Sem)
12630         5 => False),  --  SCIL_Tag_Value (Node5-Sem)
12631
12632    --  Entries for Empty, Error and Unused. Even thought these have a Chars
12633    --  field for debugging purposes, they are not really syntactic fields, so
12634    --  we mark all fields as unused.
12635
12636      N_Empty =>
12637        (1 => False,   --  unused
12638         2 => False,   --  unused
12639         3 => False,   --  unused
12640         4 => False,   --  unused
12641         5 => False),  --  unused
12642
12643      N_Error =>
12644        (1 => False,   --  unused
12645         2 => False,   --  unused
12646         3 => False,   --  unused
12647         4 => False,   --  unused
12648         5 => False),  --  unused
12649
12650      N_Unused_At_Start =>
12651        (1 => False,   --  unused
12652         2 => False,   --  unused
12653         3 => False,   --  unused
12654         4 => False,   --  unused
12655         5 => False),  --  unused
12656
12657      N_Unused_At_End =>
12658        (1 => False,   --  unused
12659         2 => False,   --  unused
12660         3 => False,   --  unused
12661         4 => False,   --  unused
12662         5 => False)); --  unused
12663
12664    --------------------
12665    -- Inline Pragmas --
12666    --------------------
12667
12668    pragma Inline (ABE_Is_Certain);
12669    pragma Inline (Abort_Present);
12670    pragma Inline (Abortable_Part);
12671    pragma Inline (Abstract_Present);
12672    pragma Inline (Accept_Handler_Records);
12673    pragma Inline (Accept_Statement);
12674    pragma Inline (Access_Definition);
12675    pragma Inline (Access_To_Subprogram_Definition);
12676    pragma Inline (Access_Types_To_Process);
12677    pragma Inline (Actions);
12678    pragma Inline (Activation_Chain_Entity);
12679    pragma Inline (Acts_As_Spec);
12680    pragma Inline (Actual_Designated_Subtype);
12681    pragma Inline (Address_Warning_Posted);
12682    pragma Inline (Aggregate_Bounds);
12683    pragma Inline (Aliased_Present);
12684    pragma Inline (All_Others);
12685    pragma Inline (All_Present);
12686    pragma Inline (Alternatives);
12687    pragma Inline (Ancestor_Part);
12688    pragma Inline (Atomic_Sync_Required);
12689    pragma Inline (Array_Aggregate);
12690    pragma Inline (Aspect_Rep_Item);
12691    pragma Inline (Assignment_OK);
12692    pragma Inline (Associated_Node);
12693    pragma Inline (At_End_Proc);
12694    pragma Inline (Attribute_Name);
12695    pragma Inline (Aux_Decls_Node);
12696    pragma Inline (Backwards_OK);
12697    pragma Inline (Bad_Is_Detected);
12698    pragma Inline (Body_To_Inline);
12699    pragma Inline (Body_Required);
12700    pragma Inline (By_Ref);
12701    pragma Inline (Box_Present);
12702    pragma Inline (Char_Literal_Value);
12703    pragma Inline (Chars);
12704    pragma Inline (Check_Address_Alignment);
12705    pragma Inline (Choice_Parameter);
12706    pragma Inline (Choices);
12707    pragma Inline (Class_Present);
12708    pragma Inline (Classifications);
12709    pragma Inline (Cleanup_Actions);
12710    pragma Inline (Comes_From_Extended_Return_Statement);
12711    pragma Inline (Compile_Time_Known_Aggregate);
12712    pragma Inline (Component_Associations);
12713    pragma Inline (Component_Clauses);
12714    pragma Inline (Component_Definition);
12715    pragma Inline (Component_Items);
12716    pragma Inline (Component_List);
12717    pragma Inline (Component_Name);
12718    pragma Inline (Componentwise_Assignment);
12719    pragma Inline (Condition);
12720    pragma Inline (Condition_Actions);
12721    pragma Inline (Config_Pragmas);
12722    pragma Inline (Constant_Present);
12723    pragma Inline (Constraint);
12724    pragma Inline (Constraints);
12725    pragma Inline (Context_Installed);
12726    pragma Inline (Context_Items);
12727    pragma Inline (Context_Pending);
12728    pragma Inline (Contract_Test_Cases);
12729    pragma Inline (Controlling_Argument);
12730    pragma Inline (Convert_To_Return_False);
12731    pragma Inline (Conversion_OK);
12732    pragma Inline (Corresponding_Aspect);
12733    pragma Inline (Corresponding_Body);
12734    pragma Inline (Corresponding_Formal_Spec);
12735    pragma Inline (Corresponding_Generic_Association);
12736    pragma Inline (Corresponding_Integer_Value);
12737    pragma Inline (Corresponding_Spec);
12738    pragma Inline (Corresponding_Spec_Of_Stub);
12739    pragma Inline (Corresponding_Stub);
12740    pragma Inline (Dcheck_Function);
12741    pragma Inline (Declarations);
12742    pragma Inline (Default_Expression);
12743    pragma Inline (Default_Storage_Pool);
12744    pragma Inline (Default_Name);
12745    pragma Inline (Defining_Identifier);
12746    pragma Inline (Defining_Unit_Name);
12747    pragma Inline (Delay_Alternative);
12748    pragma Inline (Delay_Statement);
12749    pragma Inline (Delta_Expression);
12750    pragma Inline (Digits_Expression);
12751    pragma Inline (Discr_Check_Funcs_Built);
12752    pragma Inline (Discrete_Choices);
12753    pragma Inline (Discrete_Range);
12754    pragma Inline (Discrete_Subtype_Definition);
12755    pragma Inline (Discrete_Subtype_Definitions);
12756    pragma Inline (Discriminant_Specifications);
12757    pragma Inline (Discriminant_Type);
12758    pragma Inline (Do_Accessibility_Check);
12759    pragma Inline (Do_Discriminant_Check);
12760    pragma Inline (Do_Length_Check);
12761    pragma Inline (Do_Division_Check);
12762    pragma Inline (Do_Overflow_Check);
12763    pragma Inline (Do_Range_Check);
12764    pragma Inline (Do_Storage_Check);
12765    pragma Inline (Do_Tag_Check);
12766    pragma Inline (Elaborate_Present);
12767    pragma Inline (Elaborate_All_Desirable);
12768    pragma Inline (Elaborate_All_Present);
12769    pragma Inline (Elaborate_Desirable);
12770    pragma Inline (Else_Actions);
12771    pragma Inline (Else_Statements);
12772    pragma Inline (Elsif_Parts);
12773    pragma Inline (Enclosing_Variant);
12774    pragma Inline (End_Label);
12775    pragma Inline (End_Span);
12776    pragma Inline (Entity);
12777    pragma Inline (Entity_Or_Associated_Node);
12778    pragma Inline (Entry_Body_Formal_Part);
12779    pragma Inline (Entry_Call_Alternative);
12780    pragma Inline (Entry_Call_Statement);
12781    pragma Inline (Entry_Direct_Name);
12782    pragma Inline (Entry_Index);
12783    pragma Inline (Entry_Index_Specification);
12784    pragma Inline (Etype);
12785    pragma Inline (Exception_Choices);
12786    pragma Inline (Exception_Handlers);
12787    pragma Inline (Exception_Junk);
12788    pragma Inline (Exception_Label);
12789    pragma Inline (Expansion_Delayed);
12790    pragma Inline (Explicit_Actual_Parameter);
12791    pragma Inline (Explicit_Generic_Actual_Parameter);
12792    pragma Inline (Expression);
12793    pragma Inline (Expressions);
12794    pragma Inline (First_Bit);
12795    pragma Inline (First_Inlined_Subprogram);
12796    pragma Inline (First_Name);
12797    pragma Inline (First_Named_Actual);
12798    pragma Inline (First_Real_Statement);
12799    pragma Inline (First_Subtype_Link);
12800    pragma Inline (Float_Truncate);
12801    pragma Inline (Formal_Type_Definition);
12802    pragma Inline (Forwards_OK);
12803    pragma Inline (From_Aspect_Specification);
12804    pragma Inline (From_At_End);
12805    pragma Inline (From_At_Mod);
12806    pragma Inline (From_Conditional_Expression);
12807    pragma Inline (From_Default);
12808    pragma Inline (Generalized_Indexing);
12809    pragma Inline (Generic_Associations);
12810    pragma Inline (Generic_Formal_Declarations);
12811    pragma Inline (Generic_Parent);
12812    pragma Inline (Generic_Parent_Type);
12813    pragma Inline (Handled_Statement_Sequence);
12814    pragma Inline (Handler_List_Entry);
12815    pragma Inline (Has_Created_Identifier);
12816    pragma Inline (Has_Dereference_Action);
12817    pragma Inline (Has_Dynamic_Length_Check);
12818    pragma Inline (Has_Dynamic_Range_Check);
12819    pragma Inline (Has_Init_Expression);
12820    pragma Inline (Has_Local_Raise);
12821    pragma Inline (Has_Self_Reference);
12822    pragma Inline (Has_SP_Choice);
12823    pragma Inline (Has_No_Elaboration_Code);
12824    pragma Inline (Has_Pragma_Suppress_All);
12825    pragma Inline (Has_Private_View);
12826    pragma Inline (Has_Relative_Deadline_Pragma);
12827    pragma Inline (Has_Storage_Size_Pragma);
12828    pragma Inline (Has_Wide_Character);
12829    pragma Inline (Has_Wide_Wide_Character);
12830    pragma Inline (Header_Size_Added);
12831    pragma Inline (Hidden_By_Use_Clause);
12832    pragma Inline (High_Bound);
12833    pragma Inline (Identifier);
12834    pragma Inline (Implicit_With);
12835    pragma Inline (Implicit_With_From_Instantiation);
12836    pragma Inline (Interface_List);
12837    pragma Inline (Interface_Present);
12838    pragma Inline (Includes_Infinities);
12839    pragma Inline (Import_Interface_Present);
12840    pragma Inline (In_Present);
12841    pragma Inline (Incomplete_View);
12842    pragma Inline (Inherited_Discriminant);
12843    pragma Inline (Instance_Spec);
12844    pragma Inline (Intval);
12845    pragma Inline (Iterator_Specification);
12846    pragma Inline (Is_Abort_Block);
12847    pragma Inline (Is_Accessibility_Actual);
12848    pragma Inline (Is_Analyzed_Pragma);
12849    pragma Inline (Is_Asynchronous_Call_Block);
12850    pragma Inline (Is_Boolean_Aspect);
12851    pragma Inline (Is_Checked);
12852    pragma Inline (Is_Component_Left_Opnd);
12853    pragma Inline (Is_Component_Right_Opnd);
12854    pragma Inline (Is_Controlling_Actual);
12855    pragma Inline (Is_Delayed_Aspect);
12856    pragma Inline (Is_Disabled);
12857    pragma Inline (Is_Dynamic_Coextension);
12858    pragma Inline (Is_Elsif);
12859    pragma Inline (Is_Entry_Barrier_Function);
12860    pragma Inline (Is_Expanded_Build_In_Place_Call);
12861    pragma Inline (Is_Expanded_Contract);
12862    pragma Inline (Is_Finalization_Wrapper);
12863    pragma Inline (Is_Folded_In_Parser);
12864    pragma Inline (Is_Generic_Contract_Pragma);
12865    pragma Inline (Is_Ghost_Pragma);
12866    pragma Inline (Is_Ignored);
12867    pragma Inline (Is_In_Discriminant_Check);
12868    pragma Inline (Is_Inherited_Pragma);
12869    pragma Inline (Is_Machine_Number);
12870    pragma Inline (Is_Null_Loop);
12871    pragma Inline (Is_Overloaded);
12872    pragma Inline (Is_Power_Of_2_For_Shift);
12873    pragma Inline (Is_Prefixed_Call);
12874    pragma Inline (Is_Protected_Subprogram_Body);
12875    pragma Inline (Is_Qualified_Universal_Literal);
12876    pragma Inline (Is_Static_Coextension);
12877    pragma Inline (Is_Static_Expression);
12878    pragma Inline (Is_Subprogram_Descriptor);
12879    pragma Inline (Is_Task_Allocation_Block);
12880    pragma Inline (Is_Task_Body_Procedure);
12881    pragma Inline (Is_Task_Master);
12882    pragma Inline (Iteration_Scheme);
12883    pragma Inline (Itype);
12884    pragma Inline (Kill_Range_Check);
12885    pragma Inline (Last_Bit);
12886    pragma Inline (Last_Name);
12887    pragma Inline (Library_Unit);
12888    pragma Inline (Label_Construct);
12889    pragma Inline (Left_Opnd);
12890    pragma Inline (Limited_View_Installed);
12891    pragma Inline (Limited_Present);
12892    pragma Inline (Literals);
12893    pragma Inline (Local_Raise_Not_OK);
12894    pragma Inline (Local_Raise_Statements);
12895    pragma Inline (Loop_Actions);
12896    pragma Inline (Loop_Parameter_Specification);
12897    pragma Inline (Low_Bound);
12898    pragma Inline (Mod_Clause);
12899    pragma Inline (More_Ids);
12900    pragma Inline (Must_Be_Byte_Aligned);
12901    pragma Inline (Must_Not_Freeze);
12902    pragma Inline (Must_Not_Override);
12903    pragma Inline (Must_Override);
12904    pragma Inline (Name);
12905    pragma Inline (Names);
12906    pragma Inline (Next_Entity);
12907    pragma Inline (Next_Exit_Statement);
12908    pragma Inline (Next_Implicit_With);
12909    pragma Inline (Next_Named_Actual);
12910    pragma Inline (Next_Pragma);
12911    pragma Inline (Next_Rep_Item);
12912    pragma Inline (Next_Use_Clause);
12913    pragma Inline (No_Ctrl_Actions);
12914    pragma Inline (No_Elaboration_Check);
12915    pragma Inline (No_Entities_Ref_In_Spec);
12916    pragma Inline (No_Initialization);
12917    pragma Inline (No_Minimize_Eliminate);
12918    pragma Inline (No_Side_Effect_Removal);
12919    pragma Inline (No_Truncation);
12920    pragma Inline (Non_Aliased_Prefix);
12921    pragma Inline (Null_Present);
12922    pragma Inline (Null_Excluding_Subtype);
12923    pragma Inline (Null_Exclusion_Present);
12924    pragma Inline (Null_Exclusion_In_Return_Present);
12925    pragma Inline (Null_Record_Present);
12926    pragma Inline (Object_Definition);
12927    pragma Inline (Of_Present);
12928    pragma Inline (Original_Discriminant);
12929    pragma Inline (Original_Entity);
12930    pragma Inline (Others_Discrete_Choices);
12931    pragma Inline (Out_Present);
12932    pragma Inline (Parameter_Associations);
12933    pragma Inline (Parameter_Specifications);
12934    pragma Inline (Parameter_Type);
12935    pragma Inline (Parent_Spec);
12936    pragma Inline (Position);
12937    pragma Inline (Pragma_Argument_Associations);
12938    pragma Inline (Pragma_Identifier);
12939    pragma Inline (Pragmas_After);
12940    pragma Inline (Pragmas_Before);
12941    pragma Inline (Pre_Post_Conditions);
12942    pragma Inline (Prefix);
12943    pragma Inline (Premature_Use);
12944    pragma Inline (Present_Expr);
12945    pragma Inline (Prev_Ids);
12946    pragma Inline (Print_In_Hex);
12947    pragma Inline (Private_Declarations);
12948    pragma Inline (Private_Present);
12949    pragma Inline (Procedure_To_Call);
12950    pragma Inline (Proper_Body);
12951    pragma Inline (Protected_Definition);
12952    pragma Inline (Protected_Present);
12953    pragma Inline (Raises_Constraint_Error);
12954    pragma Inline (Range_Constraint);
12955    pragma Inline (Range_Expression);
12956    pragma Inline (Real_Range_Specification);
12957    pragma Inline (Realval);
12958    pragma Inline (Reason);
12959    pragma Inline (Record_Extension_Part);
12960    pragma Inline (Redundant_Use);
12961    pragma Inline (Renaming_Exception);
12962    pragma Inline (Result_Definition);
12963    pragma Inline (Return_Object_Declarations);
12964    pragma Inline (Return_Statement_Entity);
12965    pragma Inline (Reverse_Present);
12966    pragma Inline (Right_Opnd);
12967    pragma Inline (Rounded_Result);
12968    pragma Inline (SCIL_Controlling_Tag);
12969    pragma Inline (SCIL_Entity);
12970    pragma Inline (SCIL_Tag_Value);
12971    pragma Inline (SCIL_Target_Prim);
12972    pragma Inline (Scope);
12973    pragma Inline (Select_Alternatives);
12974    pragma Inline (Selector_Name);
12975    pragma Inline (Selector_Names);
12976    pragma Inline (Shift_Count_OK);
12977    pragma Inline (Source_Type);
12978    pragma Inline (Specification);
12979    pragma Inline (Split_PPC);
12980    pragma Inline (Statements);
12981    pragma Inline (Storage_Pool);
12982    pragma Inline (Subpool_Handle_Name);
12983    pragma Inline (Strval);
12984    pragma Inline (Subtype_Indication);
12985    pragma Inline (Subtype_Mark);
12986    pragma Inline (Subtype_Marks);
12987    pragma Inline (Suppress_Assignment_Checks);
12988    pragma Inline (Suppress_Loop_Warnings);
12989    pragma Inline (Synchronized_Present);
12990    pragma Inline (Tagged_Present);
12991    pragma Inline (Target_Type);
12992    pragma Inline (Task_Definition);
12993    pragma Inline (Task_Present);
12994    pragma Inline (Then_Actions);
12995    pragma Inline (Then_Statements);
12996    pragma Inline (Triggering_Alternative);
12997    pragma Inline (Triggering_Statement);
12998    pragma Inline (Treat_Fixed_As_Integer);
12999    pragma Inline (TSS_Elist);
13000    pragma Inline (Type_Definition);
13001    pragma Inline (Uneval_Old_Accept);
13002    pragma Inline (Uneval_Old_Warn);
13003    pragma Inline (Unit);
13004    pragma Inline (Uninitialized_Variable);
13005    pragma Inline (Unknown_Discriminants_Present);
13006    pragma Inline (Unreferenced_In_Spec);
13007    pragma Inline (Variant_Part);
13008    pragma Inline (Variants);
13009    pragma Inline (Visible_Declarations);
13010    pragma Inline (Used_Operations);
13011    pragma Inline (Was_Expression_Function);
13012    pragma Inline (Was_Originally_Stub);
13013    pragma Inline (Withed_Body);
13014
13015    pragma Inline (Set_ABE_Is_Certain);
13016    pragma Inline (Set_Abort_Present);
13017    pragma Inline (Set_Abortable_Part);
13018    pragma Inline (Set_Abstract_Present);
13019    pragma Inline (Set_Accept_Handler_Records);
13020    pragma Inline (Set_Accept_Statement);
13021    pragma Inline (Set_Access_Definition);
13022    pragma Inline (Set_Access_To_Subprogram_Definition);
13023    pragma Inline (Set_Access_Types_To_Process);
13024    pragma Inline (Set_Actions);
13025    pragma Inline (Set_Activation_Chain_Entity);
13026    pragma Inline (Set_Acts_As_Spec);
13027    pragma Inline (Set_Actual_Designated_Subtype);
13028    pragma Inline (Set_Address_Warning_Posted);
13029    pragma Inline (Set_Aggregate_Bounds);
13030    pragma Inline (Set_Aliased_Present);
13031    pragma Inline (Set_All_Others);
13032    pragma Inline (Set_All_Present);
13033    pragma Inline (Set_Alternatives);
13034    pragma Inline (Set_Ancestor_Part);
13035    pragma Inline (Set_Array_Aggregate);
13036    pragma Inline (Set_Aspect_Rep_Item);
13037    pragma Inline (Set_Assignment_OK);
13038    pragma Inline (Set_Associated_Node);
13039    pragma Inline (Set_At_End_Proc);
13040    pragma Inline (Set_Atomic_Sync_Required);
13041    pragma Inline (Set_Attribute_Name);
13042    pragma Inline (Set_Aux_Decls_Node);
13043    pragma Inline (Set_Backwards_OK);
13044    pragma Inline (Set_Bad_Is_Detected);
13045    pragma Inline (Set_Body_Required);
13046    pragma Inline (Set_Body_To_Inline);
13047    pragma Inline (Set_Box_Present);
13048    pragma Inline (Set_By_Ref);
13049    pragma Inline (Set_Char_Literal_Value);
13050    pragma Inline (Set_Chars);
13051    pragma Inline (Set_Check_Address_Alignment);
13052    pragma Inline (Set_Choice_Parameter);
13053    pragma Inline (Set_Choices);
13054    pragma Inline (Set_Class_Present);
13055    pragma Inline (Set_Classifications);
13056    pragma Inline (Set_Cleanup_Actions);
13057    pragma Inline (Set_Comes_From_Extended_Return_Statement);
13058    pragma Inline (Set_Compile_Time_Known_Aggregate);
13059    pragma Inline (Set_Component_Associations);
13060    pragma Inline (Set_Component_Clauses);
13061    pragma Inline (Set_Component_Definition);
13062    pragma Inline (Set_Component_Items);
13063    pragma Inline (Set_Component_List);
13064    pragma Inline (Set_Component_Name);
13065    pragma Inline (Set_Componentwise_Assignment);
13066    pragma Inline (Set_Condition);
13067    pragma Inline (Set_Condition_Actions);
13068    pragma Inline (Set_Config_Pragmas);
13069    pragma Inline (Set_Constant_Present);
13070    pragma Inline (Set_Constraint);
13071    pragma Inline (Set_Constraints);
13072    pragma Inline (Set_Context_Installed);
13073    pragma Inline (Set_Context_Items);
13074    pragma Inline (Set_Context_Pending);
13075    pragma Inline (Set_Contract_Test_Cases);
13076    pragma Inline (Set_Controlling_Argument);
13077    pragma Inline (Set_Conversion_OK);
13078    pragma Inline (Set_Convert_To_Return_False);
13079    pragma Inline (Set_Corresponding_Aspect);
13080    pragma Inline (Set_Corresponding_Body);
13081    pragma Inline (Set_Corresponding_Formal_Spec);
13082    pragma Inline (Set_Corresponding_Generic_Association);
13083    pragma Inline (Set_Corresponding_Integer_Value);
13084    pragma Inline (Set_Corresponding_Spec);
13085    pragma Inline (Set_Corresponding_Spec_Of_Stub);
13086    pragma Inline (Set_Corresponding_Stub);
13087    pragma Inline (Set_Dcheck_Function);
13088    pragma Inline (Set_Declarations);
13089    pragma Inline (Set_Default_Expression);
13090    pragma Inline (Set_Default_Name);
13091    pragma Inline (Set_Default_Storage_Pool);
13092    pragma Inline (Set_Defining_Identifier);
13093    pragma Inline (Set_Defining_Unit_Name);
13094    pragma Inline (Set_Delay_Alternative);
13095    pragma Inline (Set_Delay_Statement);
13096    pragma Inline (Set_Delta_Expression);
13097    pragma Inline (Set_Digits_Expression);
13098    pragma Inline (Set_Discr_Check_Funcs_Built);
13099    pragma Inline (Set_Discrete_Choices);
13100    pragma Inline (Set_Discrete_Range);
13101    pragma Inline (Set_Discrete_Subtype_Definition);
13102    pragma Inline (Set_Discrete_Subtype_Definitions);
13103    pragma Inline (Set_Discriminant_Specifications);
13104    pragma Inline (Set_Discriminant_Type);
13105    pragma Inline (Set_Do_Accessibility_Check);
13106    pragma Inline (Set_Do_Discriminant_Check);
13107    pragma Inline (Set_Do_Division_Check);
13108    pragma Inline (Set_Do_Length_Check);
13109    pragma Inline (Set_Do_Overflow_Check);
13110    pragma Inline (Set_Do_Range_Check);
13111    pragma Inline (Set_Do_Storage_Check);
13112    pragma Inline (Set_Do_Tag_Check);
13113    pragma Inline (Set_Elaborate_All_Desirable);
13114    pragma Inline (Set_Elaborate_All_Present);
13115    pragma Inline (Set_Elaborate_Desirable);
13116    pragma Inline (Set_Elaborate_Present);
13117    pragma Inline (Set_Else_Actions);
13118    pragma Inline (Set_Else_Statements);
13119    pragma Inline (Set_Elsif_Parts);
13120    pragma Inline (Set_Enclosing_Variant);
13121    pragma Inline (Set_End_Label);
13122    pragma Inline (Set_End_Span);
13123    pragma Inline (Set_Entity);
13124    pragma Inline (Set_Entry_Body_Formal_Part);
13125    pragma Inline (Set_Entry_Call_Alternative);
13126    pragma Inline (Set_Entry_Call_Statement);
13127    pragma Inline (Set_Entry_Direct_Name);
13128    pragma Inline (Set_Entry_Index);
13129    pragma Inline (Set_Entry_Index_Specification);
13130    pragma Inline (Set_Etype);
13131    pragma Inline (Set_Exception_Choices);
13132    pragma Inline (Set_Exception_Handlers);
13133    pragma Inline (Set_Exception_Junk);
13134    pragma Inline (Set_Exception_Label);
13135    pragma Inline (Set_Expansion_Delayed);
13136    pragma Inline (Set_Explicit_Actual_Parameter);
13137    pragma Inline (Set_Explicit_Generic_Actual_Parameter);
13138    pragma Inline (Set_Expression);
13139    pragma Inline (Set_Expressions);
13140    pragma Inline (Set_First_Bit);
13141    pragma Inline (Set_First_Inlined_Subprogram);
13142    pragma Inline (Set_First_Name);
13143    pragma Inline (Set_First_Named_Actual);
13144    pragma Inline (Set_First_Real_Statement);
13145    pragma Inline (Set_First_Subtype_Link);
13146    pragma Inline (Set_Float_Truncate);
13147    pragma Inline (Set_Formal_Type_Definition);
13148    pragma Inline (Set_Forwards_OK);
13149    pragma Inline (Set_From_Aspect_Specification);
13150    pragma Inline (Set_From_At_End);
13151    pragma Inline (Set_From_At_Mod);
13152    pragma Inline (Set_From_Conditional_Expression);
13153    pragma Inline (Set_From_Default);
13154    pragma Inline (Set_Generalized_Indexing);
13155    pragma Inline (Set_Generic_Associations);
13156    pragma Inline (Set_Generic_Formal_Declarations);
13157    pragma Inline (Set_Generic_Parent);
13158    pragma Inline (Set_Generic_Parent_Type);
13159    pragma Inline (Set_Handled_Statement_Sequence);
13160    pragma Inline (Set_Handler_List_Entry);
13161    pragma Inline (Set_Has_Created_Identifier);
13162    pragma Inline (Set_Has_Dereference_Action);
13163    pragma Inline (Set_Has_Dynamic_Length_Check);
13164    pragma Inline (Set_Has_Dynamic_Range_Check);
13165    pragma Inline (Set_Has_Init_Expression);
13166    pragma Inline (Set_Has_Local_Raise);
13167    pragma Inline (Set_Has_No_Elaboration_Code);
13168    pragma Inline (Set_Has_Pragma_Suppress_All);
13169    pragma Inline (Set_Has_Private_View);
13170    pragma Inline (Set_Has_Relative_Deadline_Pragma);
13171    pragma Inline (Set_Has_Self_Reference);
13172    pragma Inline (Set_Has_SP_Choice);
13173    pragma Inline (Set_Has_Storage_Size_Pragma);
13174    pragma Inline (Set_Has_Wide_Character);
13175    pragma Inline (Set_Has_Wide_Wide_Character);
13176    pragma Inline (Set_Header_Size_Added);
13177    pragma Inline (Set_Hidden_By_Use_Clause);
13178    pragma Inline (Set_High_Bound);
13179    pragma Inline (Set_Identifier);
13180    pragma Inline (Set_Implicit_With);
13181    pragma Inline (Set_Import_Interface_Present);
13182    pragma Inline (Set_In_Present);
13183    pragma Inline (Set_Includes_Infinities);
13184    pragma Inline (Set_Incomplete_View);
13185    pragma Inline (Set_Inherited_Discriminant);
13186    pragma Inline (Set_Instance_Spec);
13187    pragma Inline (Set_Interface_List);
13188    pragma Inline (Set_Interface_Present);
13189    pragma Inline (Set_Intval);
13190    pragma Inline (Set_Is_Abort_Block);
13191    pragma Inline (Set_Is_Accessibility_Actual);
13192    pragma Inline (Set_Is_Analyzed_Pragma);
13193    pragma Inline (Set_Is_Asynchronous_Call_Block);
13194    pragma Inline (Set_Is_Boolean_Aspect);
13195    pragma Inline (Set_Is_Checked);
13196    pragma Inline (Set_Is_Component_Left_Opnd);
13197    pragma Inline (Set_Is_Component_Right_Opnd);
13198    pragma Inline (Set_Is_Controlling_Actual);
13199    pragma Inline (Set_Is_Delayed_Aspect);
13200    pragma Inline (Set_Is_Disabled);
13201    pragma Inline (Set_Is_Dynamic_Coextension);
13202    pragma Inline (Set_Is_Elsif);
13203    pragma Inline (Set_Is_Entry_Barrier_Function);
13204    pragma Inline (Set_Is_Expanded_Build_In_Place_Call);
13205    pragma Inline (Set_Is_Expanded_Contract);
13206    pragma Inline (Set_Is_Finalization_Wrapper);
13207    pragma Inline (Set_Is_Folded_In_Parser);
13208    pragma Inline (Set_Is_Generic_Contract_Pragma);
13209    pragma Inline (Set_Is_Ghost_Pragma);
13210    pragma Inline (Set_Is_Ignored);
13211    pragma Inline (Set_Is_In_Discriminant_Check);
13212    pragma Inline (Set_Is_Inherited_Pragma);
13213    pragma Inline (Set_Is_Machine_Number);
13214    pragma Inline (Set_Is_Null_Loop);
13215    pragma Inline (Set_Is_Overloaded);
13216    pragma Inline (Set_Is_Power_Of_2_For_Shift);
13217    pragma Inline (Set_Is_Prefixed_Call);
13218    pragma Inline (Set_Is_Protected_Subprogram_Body);
13219    pragma Inline (Set_Is_Qualified_Universal_Literal);
13220    pragma Inline (Set_Is_Static_Coextension);
13221    pragma Inline (Set_Is_Static_Expression);
13222    pragma Inline (Set_Is_Subprogram_Descriptor);
13223    pragma Inline (Set_Is_Task_Allocation_Block);
13224    pragma Inline (Set_Is_Task_Body_Procedure);
13225    pragma Inline (Set_Is_Task_Master);
13226    pragma Inline (Set_Iteration_Scheme);
13227    pragma Inline (Set_Iterator_Specification);
13228    pragma Inline (Set_Itype);
13229    pragma Inline (Set_Kill_Range_Check);
13230    pragma Inline (Set_Label_Construct);
13231    pragma Inline (Set_Last_Bit);
13232    pragma Inline (Set_Last_Name);
13233    pragma Inline (Set_Left_Opnd);
13234    pragma Inline (Set_Library_Unit);
13235    pragma Inline (Set_Limited_Present);
13236    pragma Inline (Set_Limited_View_Installed);
13237    pragma Inline (Set_Literals);
13238    pragma Inline (Set_Local_Raise_Not_OK);
13239    pragma Inline (Set_Local_Raise_Statements);
13240    pragma Inline (Set_Loop_Actions);
13241    pragma Inline (Set_Loop_Parameter_Specification);
13242    pragma Inline (Set_Low_Bound);
13243    pragma Inline (Set_Mod_Clause);
13244    pragma Inline (Set_More_Ids);
13245    pragma Inline (Set_Must_Be_Byte_Aligned);
13246    pragma Inline (Set_Must_Not_Freeze);
13247    pragma Inline (Set_Must_Not_Override);
13248    pragma Inline (Set_Must_Override);
13249    pragma Inline (Set_Name);
13250    pragma Inline (Set_Names);
13251    pragma Inline (Set_Next_Entity);
13252    pragma Inline (Set_Next_Exit_Statement);
13253    pragma Inline (Set_Next_Implicit_With);
13254    pragma Inline (Set_Next_Named_Actual);
13255    pragma Inline (Set_Next_Pragma);
13256    pragma Inline (Set_Next_Rep_Item);
13257    pragma Inline (Set_Next_Use_Clause);
13258    pragma Inline (Set_No_Ctrl_Actions);
13259    pragma Inline (Set_No_Elaboration_Check);
13260    pragma Inline (Set_No_Entities_Ref_In_Spec);
13261    pragma Inline (Set_No_Initialization);
13262    pragma Inline (Set_No_Minimize_Eliminate);
13263    pragma Inline (Set_No_Side_Effect_Removal);
13264    pragma Inline (Set_No_Truncation);
13265    pragma Inline (Set_Non_Aliased_Prefix);
13266    pragma Inline (Set_Null_Excluding_Subtype);
13267    pragma Inline (Set_Null_Exclusion_Present);
13268    pragma Inline (Set_Null_Exclusion_In_Return_Present);
13269    pragma Inline (Set_Null_Present);
13270    pragma Inline (Set_Null_Record_Present);
13271    pragma Inline (Set_Object_Definition);
13272    pragma Inline (Set_Of_Present);
13273    pragma Inline (Set_Original_Discriminant);
13274    pragma Inline (Set_Original_Entity);
13275    pragma Inline (Set_Others_Discrete_Choices);
13276    pragma Inline (Set_Out_Present);
13277    pragma Inline (Set_Parameter_Associations);
13278    pragma Inline (Set_Parameter_Specifications);
13279    pragma Inline (Set_Parameter_Type);
13280    pragma Inline (Set_Parent_Spec);
13281    pragma Inline (Set_Position);
13282    pragma Inline (Set_Pragma_Argument_Associations);
13283    pragma Inline (Set_Pragma_Identifier);
13284    pragma Inline (Set_Pragmas_After);
13285    pragma Inline (Set_Pragmas_Before);
13286    pragma Inline (Set_Pre_Post_Conditions);
13287    pragma Inline (Set_Prefix);
13288    pragma Inline (Set_Premature_Use);
13289    pragma Inline (Set_Present_Expr);
13290    pragma Inline (Set_Prev_Ids);
13291    pragma Inline (Set_Print_In_Hex);
13292    pragma Inline (Set_Private_Declarations);
13293    pragma Inline (Set_Private_Present);
13294    pragma Inline (Set_Procedure_To_Call);
13295    pragma Inline (Set_Proper_Body);
13296    pragma Inline (Set_Protected_Definition);
13297    pragma Inline (Set_Protected_Present);
13298    pragma Inline (Set_Raises_Constraint_Error);
13299    pragma Inline (Set_Range_Constraint);
13300    pragma Inline (Set_Range_Expression);
13301    pragma Inline (Set_Real_Range_Specification);
13302    pragma Inline (Set_Realval);
13303    pragma Inline (Set_Reason);
13304    pragma Inline (Set_Record_Extension_Part);
13305    pragma Inline (Set_Redundant_Use);
13306    pragma Inline (Set_Renaming_Exception);
13307    pragma Inline (Set_Result_Definition);
13308    pragma Inline (Set_Return_Object_Declarations);
13309    pragma Inline (Set_Reverse_Present);
13310    pragma Inline (Set_Right_Opnd);
13311    pragma Inline (Set_Rounded_Result);
13312    pragma Inline (Set_SCIL_Controlling_Tag);
13313    pragma Inline (Set_SCIL_Entity);
13314    pragma Inline (Set_SCIL_Tag_Value);
13315    pragma Inline (Set_SCIL_Target_Prim);
13316    pragma Inline (Set_Scope);
13317    pragma Inline (Set_Select_Alternatives);
13318    pragma Inline (Set_Selector_Name);
13319    pragma Inline (Set_Selector_Names);
13320    pragma Inline (Set_Shift_Count_OK);
13321    pragma Inline (Set_Source_Type);
13322    pragma Inline (Set_Split_PPC);
13323    pragma Inline (Set_Statements);
13324    pragma Inline (Set_Storage_Pool);
13325    pragma Inline (Set_Strval);
13326    pragma Inline (Set_Subpool_Handle_Name);
13327    pragma Inline (Set_Subtype_Indication);
13328    pragma Inline (Set_Subtype_Mark);
13329    pragma Inline (Set_Subtype_Marks);
13330    pragma Inline (Set_Suppress_Assignment_Checks);
13331    pragma Inline (Set_Suppress_Loop_Warnings);
13332    pragma Inline (Set_Synchronized_Present);
13333    pragma Inline (Set_TSS_Elist);
13334    pragma Inline (Set_Tagged_Present);
13335    pragma Inline (Set_Target_Type);
13336    pragma Inline (Set_Task_Definition);
13337    pragma Inline (Set_Task_Present);
13338    pragma Inline (Set_Then_Actions);
13339    pragma Inline (Set_Then_Statements);
13340    pragma Inline (Set_Treat_Fixed_As_Integer);
13341    pragma Inline (Set_Triggering_Alternative);
13342    pragma Inline (Set_Triggering_Statement);
13343    pragma Inline (Set_Type_Definition);
13344    pragma Inline (Set_Uneval_Old_Accept);
13345    pragma Inline (Set_Uneval_Old_Warn);
13346    pragma Inline (Set_Unit);
13347    pragma Inline (Set_Uninitialized_Variable);
13348    pragma Inline (Set_Unknown_Discriminants_Present);
13349    pragma Inline (Set_Unreferenced_In_Spec);
13350    pragma Inline (Set_Used_Operations);
13351    pragma Inline (Set_Variant_Part);
13352    pragma Inline (Set_Variants);
13353    pragma Inline (Set_Visible_Declarations);
13354    pragma Inline (Set_Was_Expression_Function);
13355    pragma Inline (Set_Was_Originally_Stub);
13356    pragma Inline (Set_Withed_Body);
13357
13358 end Sinfo;