annotate gcc/ada/spark_xrefs.ads @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents
children 84e7813d76e9
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 ------------------------------------------------------------------------------
kono
parents:
diff changeset
2 -- --
kono
parents:
diff changeset
3 -- GNAT COMPILER COMPONENTS --
kono
parents:
diff changeset
4 -- --
kono
parents:
diff changeset
5 -- S P A R K _ X R E F S --
kono
parents:
diff changeset
6 -- --
kono
parents:
diff changeset
7 -- S p e c --
kono
parents:
diff changeset
8 -- --
kono
parents:
diff changeset
9 -- Copyright (C) 2011-2017, Free Software Foundation, Inc. --
kono
parents:
diff changeset
10 -- --
kono
parents:
diff changeset
11 -- GNAT is free software; you can redistribute it and/or modify it under --
kono
parents:
diff changeset
12 -- terms of the GNU General Public License as published by the Free Soft- --
kono
parents:
diff changeset
13 -- ware Foundation; either version 3, or (at your option) any later ver- --
kono
parents:
diff changeset
14 -- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
kono
parents:
diff changeset
15 -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
kono
parents:
diff changeset
16 -- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License --
kono
parents:
diff changeset
17 -- for more details. You should have received a copy of the GNU General --
kono
parents:
diff changeset
18 -- Public License distributed with GNAT; see file COPYING3. If not, go to --
kono
parents:
diff changeset
19 -- http://www.gnu.org/licenses for a complete copy of the license. --
kono
parents:
diff changeset
20 -- --
kono
parents:
diff changeset
21 -- GNAT was originally developed by the GNAT team at New York University. --
kono
parents:
diff changeset
22 -- Extensive contributions were provided by Ada Core Technologies Inc. --
kono
parents:
diff changeset
23 -- --
kono
parents:
diff changeset
24 ------------------------------------------------------------------------------
kono
parents:
diff changeset
25
kono
parents:
diff changeset
26 -- This package defines tables used to store information needed for the SPARK
kono
parents:
diff changeset
27 -- mode. It is used by procedures in Lib.Xref.SPARK_Specific to build the
kono
parents:
diff changeset
28 -- SPARK-specific cross-reference information before writing it to the ALI
kono
parents:
diff changeset
29 -- file, and by Get_SPARK_Xrefs/Put_SPARK_Xrefs to read/write the textual
kono
parents:
diff changeset
30 -- representation that is stored in the ALI file.
kono
parents:
diff changeset
31
kono
parents:
diff changeset
32 with Table;
kono
parents:
diff changeset
33 with Types; use Types;
kono
parents:
diff changeset
34
kono
parents:
diff changeset
35 package SPARK_Xrefs is
kono
parents:
diff changeset
36
kono
parents:
diff changeset
37 -- SPARK cross-reference information can exist in one of two forms. In
kono
parents:
diff changeset
38 -- the ALI file, it is represented using a text format that is described
kono
parents:
diff changeset
39 -- in this specification. Internally it is stored using three tables:
kono
parents:
diff changeset
40 -- SPARK_Xref_Table, SPARK_Scope_Table and SPARK_File_Table, which are
kono
parents:
diff changeset
41 -- also defined in this unit.
kono
parents:
diff changeset
42
kono
parents:
diff changeset
43 -- Lib.Xref.SPARK_Specific is part of the compiler. It extracts SPARK
kono
parents:
diff changeset
44 -- cross-reference information from the complete set of cross-references
kono
parents:
diff changeset
45 -- generated during compilation.
kono
parents:
diff changeset
46
kono
parents:
diff changeset
47 -- Get_SPARK_Xrefs reads the text lines in ALI format and populates the
kono
parents:
diff changeset
48 -- internal tables with corresponding information.
kono
parents:
diff changeset
49
kono
parents:
diff changeset
50 -- Put_SPARK_Xrefs reads the internal tables and generates text lines in
kono
parents:
diff changeset
51 -- the ALI format.
kono
parents:
diff changeset
52
kono
parents:
diff changeset
53 ----------------------------
kono
parents:
diff changeset
54 -- SPARK Xrefs ALI Format --
kono
parents:
diff changeset
55 ----------------------------
kono
parents:
diff changeset
56
kono
parents:
diff changeset
57 -- SPARK cross-reference information is generated on a unit-by-unit basis
kono
parents:
diff changeset
58 -- in the ALI file, using lines that start with the identifying character F
kono
parents:
diff changeset
59 -- ("Formal"). These lines are generated if GNATprove_Mode is True.
kono
parents:
diff changeset
60
kono
parents:
diff changeset
61 -- The SPARK cross-reference information comes after the shared
kono
parents:
diff changeset
62 -- cross-reference information, so it can be ignored by tools like
kono
parents:
diff changeset
63 -- gnatbind, gnatmake, etc.
kono
parents:
diff changeset
64
kono
parents:
diff changeset
65 -- -------------------
kono
parents:
diff changeset
66 -- -- Scope Section --
kono
parents:
diff changeset
67 -- -------------------
kono
parents:
diff changeset
68
kono
parents:
diff changeset
69 -- A first section defines the scopes in which entities are defined and
kono
parents:
diff changeset
70 -- referenced. A scope is a package/subprogram/protected_type/task_type
kono
parents:
diff changeset
71 -- declaration/body. Note that a package declaration and body define two
kono
parents:
diff changeset
72 -- different scopes. Similarly, a subprogram, protected type and task type
kono
parents:
diff changeset
73 -- declaration and body, when both present, define two different scopes.
kono
parents:
diff changeset
74
kono
parents:
diff changeset
75 -- FD dependency-number filename (-> unit-filename)?
kono
parents:
diff changeset
76
kono
parents:
diff changeset
77 -- This header precedes scope information for the unit identified by
kono
parents:
diff changeset
78 -- dependency number and file name. The dependency number is the index
kono
parents:
diff changeset
79 -- into the generated D lines and is ones-origin (e.g. 2 = reference to
kono
parents:
diff changeset
80 -- second generated D line).
kono
parents:
diff changeset
81
kono
parents:
diff changeset
82 -- The list of FD lines should match the list of D lines defined in the
kono
parents:
diff changeset
83 -- ALI file, in the same order.
kono
parents:
diff changeset
84
kono
parents:
diff changeset
85 -- Note that the filename here will reflect the original name if a
kono
parents:
diff changeset
86 -- Source_Reference pragma was encountered (since all line number
kono
parents:
diff changeset
87 -- references will be with respect to the original file).
kono
parents:
diff changeset
88
kono
parents:
diff changeset
89 -- Note: the filename is redundant in that it could be deduced from the
kono
parents:
diff changeset
90 -- corresponding D line, but it is convenient at least for human
kono
parents:
diff changeset
91 -- reading of the SPARK cross-reference information, and means that
kono
parents:
diff changeset
92 -- the SPARK cross-reference information can stand on its own without
kono
parents:
diff changeset
93 -- needing other parts of the ALI file.
kono
parents:
diff changeset
94
kono
parents:
diff changeset
95 -- The optional unit filename is given only for subunits.
kono
parents:
diff changeset
96
kono
parents:
diff changeset
97 -- FS . scope line type col entity (-> spec-file . spec-scope)?
kono
parents:
diff changeset
98
kono
parents:
diff changeset
99 -- (The ? mark stands for an optional entry in the syntax)
kono
parents:
diff changeset
100
kono
parents:
diff changeset
101 -- scope is the ones-origin scope number for the current file (e.g. 2 =
kono
parents:
diff changeset
102 -- reference to the second FS line in this FD block).
kono
parents:
diff changeset
103
kono
parents:
diff changeset
104 -- line is the line number of the scope entity. The name of the entity
kono
parents:
diff changeset
105 -- starts in column col. Columns are numbered from one, and if
kono
parents:
diff changeset
106 -- horizontal tab characters are present, the column number is computed
kono
parents:
diff changeset
107 -- assuming standard 1,9,17,.. tab stops. For example, if the entity is
kono
parents:
diff changeset
108 -- the first token on the line, and is preceded by space-HT-space, then
kono
parents:
diff changeset
109 -- the column would be column 10.
kono
parents:
diff changeset
110
kono
parents:
diff changeset
111 -- type is a single letter identifying the type of the entity, using
kono
parents:
diff changeset
112 -- the same code as in cross-references:
kono
parents:
diff changeset
113
kono
parents:
diff changeset
114 -- K = package (k = generic package)
kono
parents:
diff changeset
115 -- V = function (v = generic function)
kono
parents:
diff changeset
116 -- U = procedure (u = generic procedure)
kono
parents:
diff changeset
117 -- Y = entry
kono
parents:
diff changeset
118
kono
parents:
diff changeset
119 -- col is the column number of the scope entity
kono
parents:
diff changeset
120
kono
parents:
diff changeset
121 -- entity is the name of the scope entity, with casing in the canonical
kono
parents:
diff changeset
122 -- casing for the source file where it is defined.
kono
parents:
diff changeset
123
kono
parents:
diff changeset
124 -- spec-file and spec-scope are respectively the file and scope for the
kono
parents:
diff changeset
125 -- spec corresponding to the current body scope, when they differ.
kono
parents:
diff changeset
126
kono
parents:
diff changeset
127 -- ------------------
kono
parents:
diff changeset
128 -- -- Xref Section --
kono
parents:
diff changeset
129 -- ------------------
kono
parents:
diff changeset
130
kono
parents:
diff changeset
131 -- A second section defines cross-references useful for computing global
kono
parents:
diff changeset
132 -- variables read/written in each subprogram/package/protected_type/
kono
parents:
diff changeset
133 -- task_type.
kono
parents:
diff changeset
134
kono
parents:
diff changeset
135 -- FX dependency-number filename . entity-number entity
kono
parents:
diff changeset
136
kono
parents:
diff changeset
137 -- dependency-number and filename identify a file in FD lines
kono
parents:
diff changeset
138
kono
parents:
diff changeset
139 -- entity-number and entity identify a scope in FS lines
kono
parents:
diff changeset
140 -- for the previously identified file.
kono
parents:
diff changeset
141
kono
parents:
diff changeset
142 -- (filename and entity are just a textual representations of
kono
parents:
diff changeset
143 -- dependency-number and entity-number)
kono
parents:
diff changeset
144
kono
parents:
diff changeset
145 -- F line typ col entity ref*
kono
parents:
diff changeset
146
kono
parents:
diff changeset
147 -- line is the line number of the referenced entity
kono
parents:
diff changeset
148
kono
parents:
diff changeset
149 -- typ is the type of the referenced entity, using a code similar to
kono
parents:
diff changeset
150 -- the one used for cross-references:
kono
parents:
diff changeset
151
kono
parents:
diff changeset
152 -- > = IN parameter
kono
parents:
diff changeset
153 -- < = OUT parameter
kono
parents:
diff changeset
154 -- = = IN OUT parameter
kono
parents:
diff changeset
155 -- * = all other cases
kono
parents:
diff changeset
156
kono
parents:
diff changeset
157 -- col is the column number of the referenced entity
kono
parents:
diff changeset
158
kono
parents:
diff changeset
159 -- entity is the name of the referenced entity as written in the source
kono
parents:
diff changeset
160 -- file where it is defined.
kono
parents:
diff changeset
161
kono
parents:
diff changeset
162 -- There may be zero or more ref entries on each line
kono
parents:
diff changeset
163
kono
parents:
diff changeset
164 -- (file |)? ((. scope :)? line type col)*
kono
parents:
diff changeset
165
kono
parents:
diff changeset
166 -- file is the dependency number of the file with the reference. It and
kono
parents:
diff changeset
167 -- the following vertical bar are omitted if the file is the same as
kono
parents:
diff changeset
168 -- the previous ref, and the refs for the current file are first (and
kono
parents:
diff changeset
169 -- do not need a bar).
kono
parents:
diff changeset
170
kono
parents:
diff changeset
171 -- scope is the scope number of the scope with the reference. It and
kono
parents:
diff changeset
172 -- the following colon are omitted if the scope is the same as the
kono
parents:
diff changeset
173 -- previous ref, and the refs for the current scope are first (and do
kono
parents:
diff changeset
174 -- not need a colon).
kono
parents:
diff changeset
175
kono
parents:
diff changeset
176 -- line is the line number of the reference
kono
parents:
diff changeset
177
kono
parents:
diff changeset
178 -- col is the column number of the reference
kono
parents:
diff changeset
179
kono
parents:
diff changeset
180 -- type is one of the following, using the same code as in
kono
parents:
diff changeset
181 -- cross-references:
kono
parents:
diff changeset
182
kono
parents:
diff changeset
183 -- m = modification
kono
parents:
diff changeset
184 -- r = reference
kono
parents:
diff changeset
185 -- c = reference to constant object
kono
parents:
diff changeset
186 -- s = subprogram reference in a static call
kono
parents:
diff changeset
187
kono
parents:
diff changeset
188 -- Special entries for reads and writes to memory reference a special
kono
parents:
diff changeset
189 -- variable called "__HEAP". These special entries are present in every
kono
parents:
diff changeset
190 -- scope where reads and writes to memory are present. Line and column for
kono
parents:
diff changeset
191 -- this special variable are always 0.
kono
parents:
diff changeset
192
kono
parents:
diff changeset
193 -- Examples: ??? add examples here
kono
parents:
diff changeset
194
kono
parents:
diff changeset
195 -- -------------------------------
kono
parents:
diff changeset
196 -- -- Generated Globals Section --
kono
parents:
diff changeset
197 -- -------------------------------
kono
parents:
diff changeset
198
kono
parents:
diff changeset
199 -- The Generated Globals section is located at the end of the ALI file
kono
parents:
diff changeset
200
kono
parents:
diff changeset
201 -- All lines with information related to the Generated Globals begin with
kono
parents:
diff changeset
202 -- string "GG". This string should therefore not be used in the beginning
kono
parents:
diff changeset
203 -- of any line not related to Generated Globals.
kono
parents:
diff changeset
204
kono
parents:
diff changeset
205 -- The processing (reading and writing) of this section happens in package
kono
parents:
diff changeset
206 -- Flow_Generated_Globals (from the SPARK 2014 sources), for further
kono
parents:
diff changeset
207 -- information please refer there.
kono
parents:
diff changeset
208
kono
parents:
diff changeset
209 ----------------
kono
parents:
diff changeset
210 -- Xref Table --
kono
parents:
diff changeset
211 ----------------
kono
parents:
diff changeset
212
kono
parents:
diff changeset
213 -- The following table records SPARK cross-references
kono
parents:
diff changeset
214
kono
parents:
diff changeset
215 type Xref_Index is new Nat;
kono
parents:
diff changeset
216 -- Used to index values in this table. Values start at 1 and are assigned
kono
parents:
diff changeset
217 -- sequentially as entries are constructed; value 0 is used temporarily
kono
parents:
diff changeset
218 -- until a proper value is determined.
kono
parents:
diff changeset
219
kono
parents:
diff changeset
220 type SPARK_Xref_Record is record
kono
parents:
diff changeset
221 Entity_Name : String_Ptr;
kono
parents:
diff changeset
222 -- Pointer to entity name in ALI file
kono
parents:
diff changeset
223
kono
parents:
diff changeset
224 Entity_Line : Nat;
kono
parents:
diff changeset
225 -- Line number for the entity referenced
kono
parents:
diff changeset
226
kono
parents:
diff changeset
227 Etype : Character;
kono
parents:
diff changeset
228 -- Indicates type of entity, using code used in ALI file:
kono
parents:
diff changeset
229 -- > = IN parameter
kono
parents:
diff changeset
230 -- < = OUT parameter
kono
parents:
diff changeset
231 -- = = IN OUT parameter
kono
parents:
diff changeset
232 -- * = all other cases
kono
parents:
diff changeset
233
kono
parents:
diff changeset
234 Entity_Col : Nat;
kono
parents:
diff changeset
235 -- Column number for the entity referenced
kono
parents:
diff changeset
236
kono
parents:
diff changeset
237 File_Num : Nat;
kono
parents:
diff changeset
238 -- File dependency number for the cross-reference. Note that if no file
kono
parents:
diff changeset
239 -- entry is present explicitly, this is just a copy of the reference for
kono
parents:
diff changeset
240 -- the current cross-reference section.
kono
parents:
diff changeset
241
kono
parents:
diff changeset
242 Scope_Num : Nat;
kono
parents:
diff changeset
243 -- Scope number for the cross-reference. Note that if no scope entry is
kono
parents:
diff changeset
244 -- present explicitly, this is just a copy of the reference for the
kono
parents:
diff changeset
245 -- current cross-reference section.
kono
parents:
diff changeset
246
kono
parents:
diff changeset
247 Line : Nat;
kono
parents:
diff changeset
248 -- Line number for the reference
kono
parents:
diff changeset
249
kono
parents:
diff changeset
250 Rtype : Character;
kono
parents:
diff changeset
251 -- Indicates type of the reference, using code used in ALI file:
kono
parents:
diff changeset
252 -- r = reference
kono
parents:
diff changeset
253 -- c = reference to constant object
kono
parents:
diff changeset
254 -- m = modification
kono
parents:
diff changeset
255 -- s = call
kono
parents:
diff changeset
256
kono
parents:
diff changeset
257 Col : Nat;
kono
parents:
diff changeset
258 -- Column number for the reference
kono
parents:
diff changeset
259 end record;
kono
parents:
diff changeset
260
kono
parents:
diff changeset
261 package SPARK_Xref_Table is new Table.Table (
kono
parents:
diff changeset
262 Table_Component_Type => SPARK_Xref_Record,
kono
parents:
diff changeset
263 Table_Index_Type => Xref_Index,
kono
parents:
diff changeset
264 Table_Low_Bound => 1,
kono
parents:
diff changeset
265 Table_Initial => 2000,
kono
parents:
diff changeset
266 Table_Increment => 300,
kono
parents:
diff changeset
267 Table_Name => "Xref_Table");
kono
parents:
diff changeset
268
kono
parents:
diff changeset
269 -----------------
kono
parents:
diff changeset
270 -- Scope Table --
kono
parents:
diff changeset
271 -----------------
kono
parents:
diff changeset
272
kono
parents:
diff changeset
273 -- This table keeps track of the scopes and the corresponding starting and
kono
parents:
diff changeset
274 -- ending indexes (From, To) in the Xref table.
kono
parents:
diff changeset
275
kono
parents:
diff changeset
276 type Scope_Index is new Nat;
kono
parents:
diff changeset
277 -- Used to index values in this table. Values start at 1 and are assigned
kono
parents:
diff changeset
278 -- sequentially as entries are constructed; value 0 indicates that no
kono
parents:
diff changeset
279 -- entries have been constructed and is also used until a proper value is
kono
parents:
diff changeset
280 -- determined.
kono
parents:
diff changeset
281
kono
parents:
diff changeset
282 type SPARK_Scope_Record is record
kono
parents:
diff changeset
283 Scope_Name : String_Ptr;
kono
parents:
diff changeset
284 -- Pointer to scope name in ALI file
kono
parents:
diff changeset
285
kono
parents:
diff changeset
286 File_Num : Nat;
kono
parents:
diff changeset
287 -- Set to the file dependency number for the scope
kono
parents:
diff changeset
288
kono
parents:
diff changeset
289 Scope_Num : Pos;
kono
parents:
diff changeset
290 -- Set to the scope number for the scope
kono
parents:
diff changeset
291
kono
parents:
diff changeset
292 Spec_File_Num : Nat;
kono
parents:
diff changeset
293 -- Set to the file dependency number for the scope corresponding to the
kono
parents:
diff changeset
294 -- spec of the current scope entity, if different, or else 0.
kono
parents:
diff changeset
295
kono
parents:
diff changeset
296 Spec_Scope_Num : Nat;
kono
parents:
diff changeset
297 -- Set to the scope number for the scope corresponding to the spec of
kono
parents:
diff changeset
298 -- the current scope entity, if different, or else 0.
kono
parents:
diff changeset
299
kono
parents:
diff changeset
300 Line : Nat;
kono
parents:
diff changeset
301 -- Line number for the scope
kono
parents:
diff changeset
302
kono
parents:
diff changeset
303 Stype : Character;
kono
parents:
diff changeset
304 -- Indicates type of scope, using code used in ALI file:
kono
parents:
diff changeset
305 -- K = package
kono
parents:
diff changeset
306 -- T = task
kono
parents:
diff changeset
307 -- U = procedure
kono
parents:
diff changeset
308 -- V = function
kono
parents:
diff changeset
309 -- Y = entry
kono
parents:
diff changeset
310
kono
parents:
diff changeset
311 Col : Nat;
kono
parents:
diff changeset
312 -- Column number for the scope
kono
parents:
diff changeset
313
kono
parents:
diff changeset
314 From_Xref : Xref_Index;
kono
parents:
diff changeset
315 -- Starting index in Xref table for this scope
kono
parents:
diff changeset
316
kono
parents:
diff changeset
317 To_Xref : Xref_Index;
kono
parents:
diff changeset
318 -- Ending index in Xref table for this scope
kono
parents:
diff changeset
319
kono
parents:
diff changeset
320 -- The following component is only used in-memory, not printed out in
kono
parents:
diff changeset
321 -- ALI file.
kono
parents:
diff changeset
322
kono
parents:
diff changeset
323 Scope_Entity : Entity_Id := Empty;
kono
parents:
diff changeset
324 -- Entity (subprogram or package) for the scope
kono
parents:
diff changeset
325 end record;
kono
parents:
diff changeset
326
kono
parents:
diff changeset
327 package SPARK_Scope_Table is new Table.Table (
kono
parents:
diff changeset
328 Table_Component_Type => SPARK_Scope_Record,
kono
parents:
diff changeset
329 Table_Index_Type => Scope_Index,
kono
parents:
diff changeset
330 Table_Low_Bound => 1,
kono
parents:
diff changeset
331 Table_Initial => 200,
kono
parents:
diff changeset
332 Table_Increment => 300,
kono
parents:
diff changeset
333 Table_Name => "Scope_Table");
kono
parents:
diff changeset
334
kono
parents:
diff changeset
335 ----------------
kono
parents:
diff changeset
336 -- File Table --
kono
parents:
diff changeset
337 ----------------
kono
parents:
diff changeset
338
kono
parents:
diff changeset
339 -- This table keeps track of the units and the corresponding starting and
kono
parents:
diff changeset
340 -- ending indexes (From, To) in the Scope table.
kono
parents:
diff changeset
341
kono
parents:
diff changeset
342 type File_Index is new Nat;
kono
parents:
diff changeset
343 -- Used to index values in this table. Values start at 1 and are assigned
kono
parents:
diff changeset
344 -- sequentially as entries are constructed; value 0 indicates that no
kono
parents:
diff changeset
345 -- entries have been constructed.
kono
parents:
diff changeset
346
kono
parents:
diff changeset
347 type SPARK_File_Record is record
kono
parents:
diff changeset
348 File_Name : String_Ptr;
kono
parents:
diff changeset
349 -- Pointer to file name in ALI file
kono
parents:
diff changeset
350
kono
parents:
diff changeset
351 Unit_File_Name : String_Ptr;
kono
parents:
diff changeset
352 -- Pointer to file name for unit in ALI file, when File_Name refers to a
kono
parents:
diff changeset
353 -- subunit; otherwise null.
kono
parents:
diff changeset
354
kono
parents:
diff changeset
355 File_Num : Nat;
kono
parents:
diff changeset
356 -- Dependency number in ALI file
kono
parents:
diff changeset
357
kono
parents:
diff changeset
358 From_Scope : Scope_Index;
kono
parents:
diff changeset
359 -- Starting index in Scope table for this unit
kono
parents:
diff changeset
360
kono
parents:
diff changeset
361 To_Scope : Scope_Index;
kono
parents:
diff changeset
362 -- Ending index in Scope table for this unit
kono
parents:
diff changeset
363 end record;
kono
parents:
diff changeset
364
kono
parents:
diff changeset
365 package SPARK_File_Table is new Table.Table (
kono
parents:
diff changeset
366 Table_Component_Type => SPARK_File_Record,
kono
parents:
diff changeset
367 Table_Index_Type => File_Index,
kono
parents:
diff changeset
368 Table_Low_Bound => 1,
kono
parents:
diff changeset
369 Table_Initial => 20,
kono
parents:
diff changeset
370 Table_Increment => 200,
kono
parents:
diff changeset
371 Table_Name => "File_Table");
kono
parents:
diff changeset
372
kono
parents:
diff changeset
373 ---------------
kono
parents:
diff changeset
374 -- Constants --
kono
parents:
diff changeset
375 ---------------
kono
parents:
diff changeset
376
kono
parents:
diff changeset
377 Name_Of_Heap_Variable : constant String := "__HEAP";
kono
parents:
diff changeset
378 -- Name of special variable used in effects to denote reads and writes
kono
parents:
diff changeset
379 -- through explicit dereference.
kono
parents:
diff changeset
380
kono
parents:
diff changeset
381 -----------------
kono
parents:
diff changeset
382 -- Subprograms --
kono
parents:
diff changeset
383 -----------------
kono
parents:
diff changeset
384
kono
parents:
diff changeset
385 procedure Initialize_SPARK_Tables;
kono
parents:
diff changeset
386 -- Reset tables for a new compilation
kono
parents:
diff changeset
387
kono
parents:
diff changeset
388 procedure dspark;
kono
parents:
diff changeset
389 -- Debug routine to dump internal SPARK cross-reference tables. This is a
kono
parents:
diff changeset
390 -- raw format dump showing exactly what the tables contain.
kono
parents:
diff changeset
391
kono
parents:
diff changeset
392 procedure pspark;
kono
parents:
diff changeset
393 -- Debugging procedure to output contents of SPARK cross-reference binary
kono
parents:
diff changeset
394 -- tables in the format in which they appear in an ALI file.
kono
parents:
diff changeset
395
kono
parents:
diff changeset
396 end SPARK_Xrefs;