annotate gcc/ada/lib-xref-spark_specific.adb @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children 1830386684a0
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 -- L I B . X R E F . S P A R K _ S P E C I F I C --
kono
parents:
diff changeset
6 -- --
kono
parents:
diff changeset
7 -- B o d y --
kono
parents:
diff changeset
8 -- --
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
9 -- Copyright (C) 2011-2018, Free Software Foundation, Inc. --
111
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 with Einfo; use Einfo;
kono
parents:
diff changeset
27 with Nmake; use Nmake;
kono
parents:
diff changeset
28 with SPARK_Xrefs; use SPARK_Xrefs;
kono
parents:
diff changeset
29
kono
parents:
diff changeset
30 separate (Lib.Xref)
kono
parents:
diff changeset
31 package body SPARK_Specific is
kono
parents:
diff changeset
32
kono
parents:
diff changeset
33 ---------------------
kono
parents:
diff changeset
34 -- Local Constants --
kono
parents:
diff changeset
35 ---------------------
kono
parents:
diff changeset
36
kono
parents:
diff changeset
37 -- Table of SPARK_Entities, True for each entity kind used in SPARK
kono
parents:
diff changeset
38
kono
parents:
diff changeset
39 SPARK_Entities : constant array (Entity_Kind) of Boolean :=
kono
parents:
diff changeset
40 (E_Constant => True,
kono
parents:
diff changeset
41 E_Entry => True,
kono
parents:
diff changeset
42 E_Function => True,
kono
parents:
diff changeset
43 E_In_Out_Parameter => True,
kono
parents:
diff changeset
44 E_In_Parameter => True,
kono
parents:
diff changeset
45 E_Loop_Parameter => True,
kono
parents:
diff changeset
46 E_Operator => True,
kono
parents:
diff changeset
47 E_Out_Parameter => True,
kono
parents:
diff changeset
48 E_Procedure => True,
kono
parents:
diff changeset
49 E_Variable => True,
kono
parents:
diff changeset
50 others => False);
kono
parents:
diff changeset
51
kono
parents:
diff changeset
52 -- True for each reference type used in SPARK
kono
parents:
diff changeset
53
kono
parents:
diff changeset
54 SPARK_References : constant array (Character) of Boolean :=
kono
parents:
diff changeset
55 ('m' => True,
kono
parents:
diff changeset
56 'r' => True,
kono
parents:
diff changeset
57 's' => True,
kono
parents:
diff changeset
58 others => False);
kono
parents:
diff changeset
59
kono
parents:
diff changeset
60 ---------------------
kono
parents:
diff changeset
61 -- Local Variables --
kono
parents:
diff changeset
62 ---------------------
kono
parents:
diff changeset
63
kono
parents:
diff changeset
64 package Drefs is new Table.Table (
kono
parents:
diff changeset
65 Table_Component_Type => Xref_Entry,
kono
parents:
diff changeset
66 Table_Index_Type => Xref_Entry_Number,
kono
parents:
diff changeset
67 Table_Low_Bound => 1,
kono
parents:
diff changeset
68 Table_Initial => Alloc.Drefs_Initial,
kono
parents:
diff changeset
69 Table_Increment => Alloc.Drefs_Increment,
kono
parents:
diff changeset
70 Table_Name => "Drefs");
kono
parents:
diff changeset
71 -- Table of cross-references for reads and writes through explicit
kono
parents:
diff changeset
72 -- dereferences, that are output as reads/writes to the special variable
kono
parents:
diff changeset
73 -- "Heap". These references are added to the regular references when
kono
parents:
diff changeset
74 -- computing SPARK cross-references.
kono
parents:
diff changeset
75
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
76 -------------------------
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
77 -- Iterate_SPARK_Xrefs --
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
78 -------------------------
111
kono
parents:
diff changeset
79
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
80 procedure Iterate_SPARK_Xrefs is
111
kono
parents:
diff changeset
81
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
82 procedure Add_SPARK_Xref (Index : Int; Xref : Xref_Entry);
111
kono
parents:
diff changeset
83
kono
parents:
diff changeset
84 function Is_SPARK_Reference
kono
parents:
diff changeset
85 (E : Entity_Id;
kono
parents:
diff changeset
86 Typ : Character) return Boolean;
kono
parents:
diff changeset
87 -- Return whether entity reference E meets SPARK requirements. Typ is
kono
parents:
diff changeset
88 -- the reference type.
kono
parents:
diff changeset
89
kono
parents:
diff changeset
90 function Is_SPARK_Scope (E : Entity_Id) return Boolean;
kono
parents:
diff changeset
91 -- Return whether the entity or reference scope meets requirements for
kono
parents:
diff changeset
92 -- being a SPARK scope.
kono
parents:
diff changeset
93
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
94 --------------------
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
95 -- Add_SPARK_Xref --
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
96 --------------------
111
kono
parents:
diff changeset
97
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
98 procedure Add_SPARK_Xref (Index : Int; Xref : Xref_Entry) is
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
99 Ref : Xref_Key renames Xref.Key;
111
kono
parents:
diff changeset
100 begin
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
101 -- Eliminate entries not appropriate for SPARK
111
kono
parents:
diff changeset
102
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
103 if SPARK_Entities (Ekind (Ref.Ent))
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
104 and then SPARK_References (Ref.Typ)
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
105 and then Is_SPARK_Scope (Ref.Ent_Scope)
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
106 and then Is_SPARK_Scope (Ref.Ref_Scope)
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
107 and then Is_SPARK_Reference (Ref.Ent, Ref.Typ)
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
108 then
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
109 Process
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
110 (Index,
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
111 (Entity => Ref.Ent,
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
112 Ref_Scope => Ref.Ref_Scope,
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
113 Rtype => Ref.Typ));
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
114 end if;
111
kono
parents:
diff changeset
115
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
116 end Add_SPARK_Xref;
111
kono
parents:
diff changeset
117
kono
parents:
diff changeset
118 ------------------------
kono
parents:
diff changeset
119 -- Is_SPARK_Reference --
kono
parents:
diff changeset
120 ------------------------
kono
parents:
diff changeset
121
kono
parents:
diff changeset
122 function Is_SPARK_Reference
kono
parents:
diff changeset
123 (E : Entity_Id;
kono
parents:
diff changeset
124 Typ : Character) return Boolean
kono
parents:
diff changeset
125 is
kono
parents:
diff changeset
126 begin
kono
parents:
diff changeset
127 -- The only references of interest on callable entities are calls. On
kono
parents:
diff changeset
128 -- uncallable entities, the only references of interest are reads and
kono
parents:
diff changeset
129 -- writes.
kono
parents:
diff changeset
130
kono
parents:
diff changeset
131 if Ekind (E) in Overloadable_Kind then
kono
parents:
diff changeset
132 return Typ = 's';
kono
parents:
diff changeset
133
kono
parents:
diff changeset
134 -- In all other cases, result is true for reference/modify cases,
kono
parents:
diff changeset
135 -- and false for all other cases.
kono
parents:
diff changeset
136
kono
parents:
diff changeset
137 else
kono
parents:
diff changeset
138 return Typ = 'r' or else Typ = 'm';
kono
parents:
diff changeset
139 end if;
kono
parents:
diff changeset
140 end Is_SPARK_Reference;
kono
parents:
diff changeset
141
kono
parents:
diff changeset
142 --------------------
kono
parents:
diff changeset
143 -- Is_SPARK_Scope --
kono
parents:
diff changeset
144 --------------------
kono
parents:
diff changeset
145
kono
parents:
diff changeset
146 function Is_SPARK_Scope (E : Entity_Id) return Boolean is
kono
parents:
diff changeset
147 Can_Be_Renamed : constant Boolean :=
kono
parents:
diff changeset
148 Present (E)
kono
parents:
diff changeset
149 and then (Is_Subprogram_Or_Entry (E)
kono
parents:
diff changeset
150 or else Ekind (E) = E_Package);
kono
parents:
diff changeset
151 begin
kono
parents:
diff changeset
152 return Present (E)
kono
parents:
diff changeset
153 and then not Is_Generic_Unit (E)
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
154 and then (not Can_Be_Renamed or else No (Renamed_Entity (E)));
111
kono
parents:
diff changeset
155 end Is_SPARK_Scope;
kono
parents:
diff changeset
156
kono
parents:
diff changeset
157 -- Start of processing for Add_SPARK_Xrefs
kono
parents:
diff changeset
158
kono
parents:
diff changeset
159 begin
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
160 -- Expose cross-references from private frontend tables to the backend
111
kono
parents:
diff changeset
161
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
162 for Index in Drefs.First .. Drefs.Last loop
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
163 Add_SPARK_Xref (Index, Drefs.Table (Index));
111
kono
parents:
diff changeset
164 end loop;
kono
parents:
diff changeset
165
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
166 for Index in Xrefs.First .. Xrefs.Last loop
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
167 Add_SPARK_Xref (-Index, Xrefs.Table (Index));
111
kono
parents:
diff changeset
168 end loop;
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
169 end Iterate_SPARK_Xrefs;
111
kono
parents:
diff changeset
170
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
171 ---------------------------------------------
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
172 -- Enclosing_Subprogram_Or_Library_Package --
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
173 ---------------------------------------------
111
kono
parents:
diff changeset
174
kono
parents:
diff changeset
175 function Enclosing_Subprogram_Or_Library_Package
kono
parents:
diff changeset
176 (N : Node_Id) return Entity_Id
kono
parents:
diff changeset
177 is
kono
parents:
diff changeset
178 Context : Entity_Id;
kono
parents:
diff changeset
179
kono
parents:
diff changeset
180 begin
kono
parents:
diff changeset
181 -- If N is the defining identifier for a subprogram, then return the
kono
parents:
diff changeset
182 -- enclosing subprogram or package, not this subprogram.
kono
parents:
diff changeset
183
kono
parents:
diff changeset
184 if Nkind_In (N, N_Defining_Identifier, N_Defining_Operator_Symbol)
kono
parents:
diff changeset
185 and then (Ekind (N) in Entry_Kind
kono
parents:
diff changeset
186 or else Ekind (N) = E_Subprogram_Body
kono
parents:
diff changeset
187 or else Ekind (N) in Generic_Subprogram_Kind
kono
parents:
diff changeset
188 or else Ekind (N) in Subprogram_Kind)
kono
parents:
diff changeset
189 then
kono
parents:
diff changeset
190 Context := Parent (Unit_Declaration_Node (N));
kono
parents:
diff changeset
191
kono
parents:
diff changeset
192 -- If this was a library-level subprogram then replace Context with
kono
parents:
diff changeset
193 -- its Unit, which points to N_Subprogram_* node.
kono
parents:
diff changeset
194
kono
parents:
diff changeset
195 if Nkind (Context) = N_Compilation_Unit then
kono
parents:
diff changeset
196 Context := Unit (Context);
kono
parents:
diff changeset
197 end if;
kono
parents:
diff changeset
198 else
kono
parents:
diff changeset
199 Context := N;
kono
parents:
diff changeset
200 end if;
kono
parents:
diff changeset
201
kono
parents:
diff changeset
202 while Present (Context) loop
kono
parents:
diff changeset
203 case Nkind (Context) is
kono
parents:
diff changeset
204 when N_Package_Body
kono
parents:
diff changeset
205 | N_Package_Specification
kono
parents:
diff changeset
206 =>
kono
parents:
diff changeset
207 -- Only return a library-level package
kono
parents:
diff changeset
208
kono
parents:
diff changeset
209 if Is_Library_Level_Entity (Defining_Entity (Context)) then
kono
parents:
diff changeset
210 Context := Defining_Entity (Context);
kono
parents:
diff changeset
211 exit;
kono
parents:
diff changeset
212 else
kono
parents:
diff changeset
213 Context := Parent (Context);
kono
parents:
diff changeset
214 end if;
kono
parents:
diff changeset
215
kono
parents:
diff changeset
216 when N_Pragma =>
kono
parents:
diff changeset
217
kono
parents:
diff changeset
218 -- The enclosing subprogram for a precondition, postcondition,
kono
parents:
diff changeset
219 -- or contract case should be the declaration preceding the
kono
parents:
diff changeset
220 -- pragma (skipping any other pragmas between this pragma and
kono
parents:
diff changeset
221 -- this declaration.
kono
parents:
diff changeset
222
kono
parents:
diff changeset
223 while Nkind (Context) = N_Pragma
kono
parents:
diff changeset
224 and then Is_List_Member (Context)
kono
parents:
diff changeset
225 and then Present (Prev (Context))
kono
parents:
diff changeset
226 loop
kono
parents:
diff changeset
227 Context := Prev (Context);
kono
parents:
diff changeset
228 end loop;
kono
parents:
diff changeset
229
kono
parents:
diff changeset
230 if Nkind (Context) = N_Pragma then
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
231
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
232 -- When used for cross-references then aspects might not be
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
233 -- yet linked to pragmas; when used for AST navigation in
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
234 -- GNATprove this routine is expected to follow those links.
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
235
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
236 if From_Aspect_Specification (Context) then
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
237 Context := Corresponding_Aspect (Context);
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
238 pragma Assert (Nkind (Context) = N_Aspect_Specification);
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
239 Context := Entity (Context);
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
240 else
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
241 Context := Parent (Context);
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
242 end if;
111
kono
parents:
diff changeset
243 end if;
kono
parents:
diff changeset
244
kono
parents:
diff changeset
245 when N_Entry_Body
kono
parents:
diff changeset
246 | N_Entry_Declaration
kono
parents:
diff changeset
247 | N_Protected_Type_Declaration
kono
parents:
diff changeset
248 | N_Subprogram_Body
kono
parents:
diff changeset
249 | N_Subprogram_Declaration
kono
parents:
diff changeset
250 | N_Subprogram_Specification
kono
parents:
diff changeset
251 | N_Task_Body
kono
parents:
diff changeset
252 | N_Task_Type_Declaration
kono
parents:
diff changeset
253 =>
kono
parents:
diff changeset
254 Context := Defining_Entity (Context);
kono
parents:
diff changeset
255 exit;
kono
parents:
diff changeset
256
kono
parents:
diff changeset
257 when others =>
kono
parents:
diff changeset
258 Context := Parent (Context);
kono
parents:
diff changeset
259 end case;
kono
parents:
diff changeset
260 end loop;
kono
parents:
diff changeset
261
kono
parents:
diff changeset
262 if Nkind (Context) = N_Defining_Program_Unit_Name then
kono
parents:
diff changeset
263 Context := Defining_Identifier (Context);
kono
parents:
diff changeset
264 end if;
kono
parents:
diff changeset
265
kono
parents:
diff changeset
266 -- Do not return a scope without a proper location
kono
parents:
diff changeset
267
kono
parents:
diff changeset
268 if Present (Context)
kono
parents:
diff changeset
269 and then Sloc (Context) = No_Location
kono
parents:
diff changeset
270 then
kono
parents:
diff changeset
271 return Empty;
kono
parents:
diff changeset
272 end if;
kono
parents:
diff changeset
273
kono
parents:
diff changeset
274 return Context;
kono
parents:
diff changeset
275 end Enclosing_Subprogram_Or_Library_Package;
kono
parents:
diff changeset
276
kono
parents:
diff changeset
277 --------------------------
kono
parents:
diff changeset
278 -- Generate_Dereference --
kono
parents:
diff changeset
279 --------------------------
kono
parents:
diff changeset
280
kono
parents:
diff changeset
281 procedure Generate_Dereference
kono
parents:
diff changeset
282 (N : Node_Id;
kono
parents:
diff changeset
283 Typ : Character := 'r')
kono
parents:
diff changeset
284 is
kono
parents:
diff changeset
285 procedure Create_Heap;
kono
parents:
diff changeset
286 -- Create and decorate the special entity which denotes the heap
kono
parents:
diff changeset
287
kono
parents:
diff changeset
288 -----------------
kono
parents:
diff changeset
289 -- Create_Heap --
kono
parents:
diff changeset
290 -----------------
kono
parents:
diff changeset
291
kono
parents:
diff changeset
292 procedure Create_Heap is
kono
parents:
diff changeset
293 begin
kono
parents:
diff changeset
294 Name_Len := Name_Of_Heap_Variable'Length;
kono
parents:
diff changeset
295 Name_Buffer (1 .. Name_Len) := Name_Of_Heap_Variable;
kono
parents:
diff changeset
296
kono
parents:
diff changeset
297 Heap := Make_Defining_Identifier (Standard_Location, Name_Enter);
kono
parents:
diff changeset
298
kono
parents:
diff changeset
299 Set_Ekind (Heap, E_Variable);
kono
parents:
diff changeset
300 Set_Is_Internal (Heap, True);
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
301 Set_Scope (Heap, Standard_Standard);
111
kono
parents:
diff changeset
302 Set_Has_Fully_Qualified_Name (Heap);
kono
parents:
diff changeset
303 end Create_Heap;
kono
parents:
diff changeset
304
kono
parents:
diff changeset
305 -- Local variables
kono
parents:
diff changeset
306
kono
parents:
diff changeset
307 Loc : constant Source_Ptr := Sloc (N);
kono
parents:
diff changeset
308
kono
parents:
diff changeset
309 -- Start of processing for Generate_Dereference
kono
parents:
diff changeset
310
kono
parents:
diff changeset
311 begin
kono
parents:
diff changeset
312 if Loc > No_Location then
kono
parents:
diff changeset
313 Drefs.Increment_Last;
kono
parents:
diff changeset
314
kono
parents:
diff changeset
315 declare
kono
parents:
diff changeset
316 Deref_Entry : Xref_Entry renames Drefs.Table (Drefs.Last);
kono
parents:
diff changeset
317 Deref : Xref_Key renames Deref_Entry.Key;
kono
parents:
diff changeset
318
kono
parents:
diff changeset
319 begin
kono
parents:
diff changeset
320 if No (Heap) then
kono
parents:
diff changeset
321 Create_Heap;
kono
parents:
diff changeset
322 end if;
kono
parents:
diff changeset
323
kono
parents:
diff changeset
324 Deref.Ent := Heap;
kono
parents:
diff changeset
325 Deref.Loc := Loc;
kono
parents:
diff changeset
326 Deref.Typ := Typ;
kono
parents:
diff changeset
327
kono
parents:
diff changeset
328 -- It is as if the special "Heap" was defined in the main unit,
kono
parents:
diff changeset
329 -- in the scope of the entity for the main unit. This single
kono
parents:
diff changeset
330 -- definition point is required to ensure that sorting cross
kono
parents:
diff changeset
331 -- references works for "Heap" references as well.
kono
parents:
diff changeset
332
kono
parents:
diff changeset
333 Deref.Eun := Main_Unit;
kono
parents:
diff changeset
334 Deref.Lun := Get_Top_Level_Code_Unit (Loc);
kono
parents:
diff changeset
335
kono
parents:
diff changeset
336 Deref.Ref_Scope := Enclosing_Subprogram_Or_Library_Package (N);
kono
parents:
diff changeset
337 Deref.Ent_Scope := Cunit_Entity (Main_Unit);
kono
parents:
diff changeset
338
kono
parents:
diff changeset
339 Deref_Entry.Def := No_Location;
kono
parents:
diff changeset
340
kono
parents:
diff changeset
341 Deref_Entry.Ent_Scope_File := Main_Unit;
kono
parents:
diff changeset
342 end;
kono
parents:
diff changeset
343 end if;
kono
parents:
diff changeset
344 end Generate_Dereference;
kono
parents:
diff changeset
345
kono
parents:
diff changeset
346 end SPARK_Specific;