author | haftmann |
Mon, 02 Mar 2009 16:58:39 +0100 | |
changeset 30202 | 2775062fd3a9 |
parent 30024 | 5e9d471afef3 |
child 30242 | aea5d7fa7ef5 |
permissions | -rw-r--r-- |
24219 | 1 |
(* Title: Tools/code/code_funcgr.ML |
2 |
Author: Florian Haftmann, TU Muenchen |
|
3 |
||
29962
bd4dc7fa742d
tuned comments, stripped ID, deleted superfluous code
haftmann
parents:
28924
diff
changeset
|
4 |
Retrieving, normalizing and structuring code equations in graph |
24219 | 5 |
with explicit dependencies. |
30202
2775062fd3a9
reduced confusion code_funcgr vs. code_wellsorted
haftmann
parents:
30024
diff
changeset
|
6 |
|
2775062fd3a9
reduced confusion code_funcgr vs. code_wellsorted
haftmann
parents:
30024
diff
changeset
|
7 |
Legacy. To be replaced by Tools/code/code_wellsorted.ML |
24219 | 8 |
*) |
9 |
||
30202
2775062fd3a9
reduced confusion code_funcgr vs. code_wellsorted
haftmann
parents:
30024
diff
changeset
|
10 |
signature CODE_WELLSORTED = |
24219 | 11 |
sig |
12 |
type T |
|
28370 | 13 |
val eqns: T -> string -> (thm * bool) list |
26971 | 14 |
val typ: T -> string -> (string * sort) list * typ |
24423
ae9cd0e92423
overloaded definitions accompanied by explicit constants
haftmann
parents:
24283
diff
changeset
|
15 |
val all: T -> string list |
24219 | 16 |
val pretty: theory -> T -> Pretty.T |
28924
5c8781b7d6a4
code_funcgr interface includes also sort algebra
haftmann
parents:
28724
diff
changeset
|
17 |
val make: theory -> string list |
5c8781b7d6a4
code_funcgr interface includes also sort algebra
haftmann
parents:
28724
diff
changeset
|
18 |
-> ((sort -> sort) * Sorts.algebra) * T |
5c8781b7d6a4
code_funcgr interface includes also sort algebra
haftmann
parents:
28724
diff
changeset
|
19 |
val eval_conv: theory |
5c8781b7d6a4
code_funcgr interface includes also sort algebra
haftmann
parents:
28724
diff
changeset
|
20 |
-> (term -> term * (((sort -> sort) * Sorts.algebra) -> T -> thm)) -> cterm -> thm |
5c8781b7d6a4
code_funcgr interface includes also sort algebra
haftmann
parents:
28724
diff
changeset
|
21 |
val eval_term: theory |
5c8781b7d6a4
code_funcgr interface includes also sort algebra
haftmann
parents:
28724
diff
changeset
|
22 |
-> (term -> term * (((sort -> sort) * Sorts.algebra) -> T -> 'a)) -> term -> 'a |
26971 | 23 |
val timing: bool ref |
24219 | 24 |
end |
25 |
||
30202
2775062fd3a9
reduced confusion code_funcgr vs. code_wellsorted
haftmann
parents:
30024
diff
changeset
|
26 |
structure Code_Wellsorted : CODE_WELLSORTED = |
24219 | 27 |
struct |
28 |
||
29 |
(** the graph type **) |
|
30 |
||
28350 | 31 |
type T = (((string * sort) list * typ) * (thm * bool) list) Graph.T; |
24219 | 32 |
|
28370 | 33 |
fun eqns funcgr = |
24423
ae9cd0e92423
overloaded definitions accompanied by explicit constants
haftmann
parents:
24283
diff
changeset
|
34 |
these o Option.map snd o try (Graph.get_node funcgr); |
24219 | 35 |
|
36 |
fun typ funcgr = |
|
24423
ae9cd0e92423
overloaded definitions accompanied by explicit constants
haftmann
parents:
24283
diff
changeset
|
37 |
fst o Graph.get_node funcgr; |
24219 | 38 |
|
24423
ae9cd0e92423
overloaded definitions accompanied by explicit constants
haftmann
parents:
24283
diff
changeset
|
39 |
fun all funcgr = Graph.keys funcgr; |
24219 | 40 |
|
41 |
fun pretty thy funcgr = |
|
24423
ae9cd0e92423
overloaded definitions accompanied by explicit constants
haftmann
parents:
24283
diff
changeset
|
42 |
AList.make (snd o Graph.get_node funcgr) (Graph.keys funcgr) |
28054 | 43 |
|> (map o apfst) (Code_Unit.string_of_const thy) |
24219 | 44 |
|> sort (string_ord o pairself fst) |
45 |
|> map (fn (s, thms) => |
|
46 |
(Pretty.block o Pretty.fbreaks) ( |
|
47 |
Pretty.str s |
|
28350 | 48 |
:: map (Display.pretty_thm o fst) thms |
24219 | 49 |
)) |
50 |
|> Pretty.chunks; |
|
51 |
||
52 |
||
53 |
(** generic combinators **) |
|
54 |
||
55 |
fun fold_consts f thms = |
|
56 |
thms |
|
57 |
|> maps (op :: o swap o apfst (snd o strip_comb) o Logic.dest_equals o Thm.plain_prop_of) |
|
58 |
|> (fold o fold_aterms) (fn Const c => f c | _ => I); |
|
59 |
||
60 |
fun consts_of (const, []) = [] |
|
24423
ae9cd0e92423
overloaded definitions accompanied by explicit constants
haftmann
parents:
24283
diff
changeset
|
61 |
| consts_of (const, thms as _ :: _) = |
24219 | 62 |
let |
24423
ae9cd0e92423
overloaded definitions accompanied by explicit constants
haftmann
parents:
24283
diff
changeset
|
63 |
fun the_const (c, _) = if c = const then I else insert (op =) c |
28350 | 64 |
in fold_consts the_const (map fst thms) [] end; |
24219 | 65 |
|
26971 | 66 |
fun insts_of thy algebra tys sorts = |
24219 | 67 |
let |
68 |
fun class_relation (x, _) _ = x; |
|
69 |
fun type_constructor tyco xs class = |
|
26971 | 70 |
(tyco, class) :: (maps o maps) fst xs; |
24219 | 71 |
fun type_variable (TVar (_, sort)) = map (pair []) sort |
72 |
| type_variable (TFree (_, sort)) = map (pair []) sort; |
|
26971 | 73 |
fun of_sort_deriv ty sort = |
26939
1035c89b4c02
moved global pretty/string_of functions from Sign to Syntax;
wenzelm
parents:
26928
diff
changeset
|
74 |
Sorts.of_sort_derivation (Syntax.pp_global thy) algebra |
24219 | 75 |
{ class_relation = class_relation, type_constructor = type_constructor, |
76 |
type_variable = type_variable } |
|
26517 | 77 |
(ty, sort) handle Sorts.CLASS_ERROR _ => [] (*permissive!*) |
26971 | 78 |
in (flat o flat) (map2 of_sort_deriv tys sorts) end; |
24219 | 79 |
|
26971 | 80 |
fun meets_of thy algebra = |
24219 | 81 |
let |
26971 | 82 |
fun meet_of ty sort tab = |
83 |
Sorts.meet_sort algebra (ty, sort) tab |
|
84 |
handle Sorts.CLASS_ERROR _ => tab (*permissive!*); |
|
85 |
in fold2 meet_of end; |
|
24219 | 86 |
|
87 |
||
88 |
(** graph algorithm **) |
|
89 |
||
90 |
val timing = ref false; |
|
91 |
||
92 |
local |
|
93 |
||
26971 | 94 |
fun resort_thms thy algebra typ_of thms = |
95 |
let |
|
96 |
val cs = fold_consts (insert (op =)) thms []; |
|
97 |
fun meets (c, ty) = case typ_of c |
|
98 |
of SOME (vs, _) => |
|
99 |
meets_of thy algebra (Sign.const_typargs thy (c, ty)) (map snd vs) |
|
100 |
| NONE => I; |
|
101 |
val tab = fold meets cs Vartab.empty; |
|
28423 | 102 |
in map (Code_Unit.inst_thm thy tab) thms end; |
24219 | 103 |
|
28370 | 104 |
fun resort_eqnss thy algebra funcgr = |
24219 | 105 |
let |
24423
ae9cd0e92423
overloaded definitions accompanied by explicit constants
haftmann
parents:
24283
diff
changeset
|
106 |
val typ_funcgr = try (fst o Graph.get_node funcgr); |
28350 | 107 |
val resort_dep = (apsnd o burrow_fst) (resort_thms thy algebra typ_funcgr); |
26997
40552bbac005
permissive wrt. instantiation of class operations
haftmann
parents:
26971
diff
changeset
|
108 |
fun resort_rec typ_of (c, []) = (true, (c, [])) |
28350 | 109 |
| resort_rec typ_of (c, thms as (thm, _) :: _) = if is_some (AxClass.inst_of_param thy c) |
26997
40552bbac005
permissive wrt. instantiation of class operations
haftmann
parents:
26971
diff
changeset
|
110 |
then (true, (c, thms)) |
40552bbac005
permissive wrt. instantiation of class operations
haftmann
parents:
26971
diff
changeset
|
111 |
else let |
28423 | 112 |
val (_, (vs, ty)) = Code_Unit.head_eqn thy thm; |
28350 | 113 |
val thms' as (thm', _) :: _ = burrow_fst (resort_thms thy algebra typ_of) thms |
28423 | 114 |
val (_, (vs', ty')) = Code_Unit.head_eqn thy thm'; (*FIXME simplify check*) |
26997
40552bbac005
permissive wrt. instantiation of class operations
haftmann
parents:
26971
diff
changeset
|
115 |
in (Sign.typ_equiv thy (ty, ty'), (c, thms')) end; |
28370 | 116 |
fun resort_recs eqnss = |
24219 | 117 |
let |
28370 | 118 |
fun typ_of c = case these (AList.lookup (op =) eqnss c) |
28423 | 119 |
of (thm, _) :: _ => (SOME o snd o Code_Unit.head_eqn thy) thm |
26971 | 120 |
| [] => NONE; |
28370 | 121 |
val (unchangeds, eqnss') = split_list (map (resort_rec typ_of) eqnss); |
24219 | 122 |
val unchanged = fold (fn x => fn y => x andalso y) unchangeds true; |
28370 | 123 |
in (unchanged, eqnss') end; |
124 |
fun resort_rec_until eqnss = |
|
24219 | 125 |
let |
28370 | 126 |
val (unchanged, eqnss') = resort_recs eqnss; |
127 |
in if unchanged then eqnss' else resort_rec_until eqnss' end; |
|
24219 | 128 |
in map resort_dep #> resort_rec_until end; |
129 |
||
130 |
fun instances_of thy algebra insts = |
|
131 |
let |
|
132 |
val thy_classes = (#classes o Sorts.rep_algebra o Sign.classes_of) thy; |
|
24835
8c26128f8997
clarified relationship of code generator conversions and evaluations
haftmann
parents:
24713
diff
changeset
|
133 |
fun all_classparams tyco class = |
24969 | 134 |
these (try (#params o AxClass.get_info thy) class) |
26517 | 135 |
|> map_filter (fn (c, _) => try (AxClass.param_of_inst thy) (c, tyco)) |
24219 | 136 |
in |
137 |
Symtab.empty |
|
138 |
|> fold (fn (tyco, class) => |
|
139 |
Symtab.map_default (tyco, []) (insert (op =) class)) insts |
|
24835
8c26128f8997
clarified relationship of code generator conversions and evaluations
haftmann
parents:
24713
diff
changeset
|
140 |
|> (fn tab => Symtab.fold (fn (tyco, classes) => append (maps (all_classparams tyco) |
24219 | 141 |
(Graph.all_succs thy_classes classes))) tab []) |
142 |
end; |
|
143 |
||
144 |
fun instances_of_consts thy algebra funcgr consts = |
|
145 |
let |
|
26971 | 146 |
fun inst (cexpr as (c, ty)) = insts_of thy algebra |
147 |
(Sign.const_typargs thy (c, ty)) ((map snd o fst) (typ funcgr c)); |
|
24219 | 148 |
in |
149 |
[] |
|
150 |
|> fold (fold (insert (op =)) o inst) consts |
|
151 |
|> instances_of thy algebra |
|
152 |
end; |
|
153 |
||
24283 | 154 |
fun ensure_const' thy algebra funcgr const auxgr = |
24423
ae9cd0e92423
overloaded definitions accompanied by explicit constants
haftmann
parents:
24283
diff
changeset
|
155 |
if can (Graph.get_node funcgr) const |
24219 | 156 |
then (NONE, auxgr) |
24423
ae9cd0e92423
overloaded definitions accompanied by explicit constants
haftmann
parents:
24283
diff
changeset
|
157 |
else if can (Graph.get_node auxgr) const |
24219 | 158 |
then (SOME const, auxgr) |
159 |
else if is_some (Code.get_datatype_of_constr thy const) then |
|
160 |
auxgr |
|
24423
ae9cd0e92423
overloaded definitions accompanied by explicit constants
haftmann
parents:
24283
diff
changeset
|
161 |
|> Graph.new_node (const, []) |
24219 | 162 |
|> pair (SOME const) |
163 |
else let |
|
28370 | 164 |
val thms = Code.these_eqns thy const |
28423 | 165 |
|> burrow_fst (Code_Unit.norm_args thy) |
166 |
|> burrow_fst (Code_Unit.norm_varnames thy Code_Name.purify_tvar Code_Name.purify_var); |
|
24219 | 167 |
val rhs = consts_of (const, thms); |
168 |
in |
|
169 |
auxgr |
|
24423
ae9cd0e92423
overloaded definitions accompanied by explicit constants
haftmann
parents:
24283
diff
changeset
|
170 |
|> Graph.new_node (const, thms) |
24283 | 171 |
|> fold_map (ensure_const thy algebra funcgr) rhs |
24423
ae9cd0e92423
overloaded definitions accompanied by explicit constants
haftmann
parents:
24283
diff
changeset
|
172 |
|-> (fn rhs' => fold (fn SOME const' => Graph.add_edge (const, const') |
24219 | 173 |
| NONE => I) rhs') |
174 |
|> pair (SOME const) |
|
175 |
end |
|
24283 | 176 |
and ensure_const thy algebra funcgr const = |
24219 | 177 |
let |
178 |
val timeap = if !timing |
|
28054 | 179 |
then Output.timeap_msg ("time for " ^ Code_Unit.string_of_const thy const) |
24219 | 180 |
else I; |
24283 | 181 |
in timeap (ensure_const' thy algebra funcgr const) end; |
24219 | 182 |
|
28370 | 183 |
fun merge_eqnss thy algebra raw_eqnss funcgr = |
24219 | 184 |
let |
28370 | 185 |
val eqnss = raw_eqnss |
186 |
|> resort_eqnss thy algebra funcgr |
|
24423
ae9cd0e92423
overloaded definitions accompanied by explicit constants
haftmann
parents:
24283
diff
changeset
|
187 |
|> filter_out (can (Graph.get_node funcgr) o fst); |
28423 | 188 |
fun typ_eqn c [] = Code.default_typscheme thy c |
189 |
| typ_eqn c (thms as (thm, _) :: _) = (snd o Code_Unit.head_eqn thy) thm; |
|
28370 | 190 |
fun add_eqns (const, thms) = |
191 |
Graph.new_node (const, (typ_eqn const thms, thms)); |
|
192 |
fun add_deps (eqns as (const, thms)) funcgr = |
|
24219 | 193 |
let |
28370 | 194 |
val deps = consts_of eqns; |
24219 | 195 |
val insts = instances_of_consts thy algebra funcgr |
28350 | 196 |
(fold_consts (insert (op =)) (map fst thms) []); |
24219 | 197 |
in |
198 |
funcgr |
|
26997
40552bbac005
permissive wrt. instantiation of class operations
haftmann
parents:
26971
diff
changeset
|
199 |
|> ensure_consts thy algebra insts |
24423
ae9cd0e92423
overloaded definitions accompanied by explicit constants
haftmann
parents:
24283
diff
changeset
|
200 |
|> fold (curry Graph.add_edge const) deps |
ae9cd0e92423
overloaded definitions accompanied by explicit constants
haftmann
parents:
24283
diff
changeset
|
201 |
|> fold (curry Graph.add_edge const) insts |
24219 | 202 |
end; |
203 |
in |
|
204 |
funcgr |
|
28370 | 205 |
|> fold add_eqns eqnss |
206 |
|> fold add_deps eqnss |
|
24219 | 207 |
end |
26997
40552bbac005
permissive wrt. instantiation of class operations
haftmann
parents:
26971
diff
changeset
|
208 |
and ensure_consts thy algebra cs funcgr = |
24219 | 209 |
let |
24423
ae9cd0e92423
overloaded definitions accompanied by explicit constants
haftmann
parents:
24283
diff
changeset
|
210 |
val auxgr = Graph.empty |
24283 | 211 |
|> fold (snd oo ensure_const thy algebra funcgr) cs; |
24219 | 212 |
in |
213 |
funcgr |
|
28370 | 214 |
|> fold (merge_eqnss thy algebra) |
24423
ae9cd0e92423
overloaded definitions accompanied by explicit constants
haftmann
parents:
24283
diff
changeset
|
215 |
(map (AList.make (Graph.get_node auxgr)) |
ae9cd0e92423
overloaded definitions accompanied by explicit constants
haftmann
parents:
24283
diff
changeset
|
216 |
(rev (Graph.strong_conn auxgr))) |
26997
40552bbac005
permissive wrt. instantiation of class operations
haftmann
parents:
26971
diff
changeset
|
217 |
end; |
24219 | 218 |
|
219 |
in |
|
220 |
||
221 |
(** retrieval interfaces **) |
|
222 |
||
26997
40552bbac005
permissive wrt. instantiation of class operations
haftmann
parents:
26971
diff
changeset
|
223 |
val ensure_consts = ensure_consts; |
24219 | 224 |
|
28724 | 225 |
fun proto_eval thy cterm_of evaluator_lift evaluator proto_ct funcgr = |
24219 | 226 |
let |
26740 | 227 |
val ct = cterm_of proto_ct; |
26939
1035c89b4c02
moved global pretty/string_of functions from Sign to Syntax;
wenzelm
parents:
26928
diff
changeset
|
228 |
val _ = Sign.no_vars (Syntax.pp_global thy) (Thm.term_of ct); |
24219 | 229 |
val _ = Term.fold_types (Type.no_tvars #> K I) (Thm.term_of ct) (); |
28724 | 230 |
fun consts_of t = |
231 |
fold_aterms (fn Const c_ty => cons c_ty | _ => I) t []; |
|
26740 | 232 |
val algebra = Code.coregular_algebra thy; |
28423 | 233 |
val thm = Code.preprocess_conv thy ct; |
26740 | 234 |
val ct' = Thm.rhs_of thm; |
235 |
val t' = Thm.term_of ct'; |
|
236 |
val consts = map fst (consts_of t'); |
|
237 |
val funcgr' = ensure_consts thy algebra consts funcgr; |
|
28724 | 238 |
val (t'', evaluator_funcgr) = evaluator t'; |
26740 | 239 |
val consts' = consts_of t''; |
240 |
val dicts = instances_of_consts thy algebra funcgr' consts'; |
|
241 |
val funcgr'' = ensure_consts thy algebra dicts funcgr'; |
|
28924
5c8781b7d6a4
code_funcgr interface includes also sort algebra
haftmann
parents:
28724
diff
changeset
|
242 |
in (evaluator_lift (evaluator_funcgr (Code.operational_algebra thy)) thm funcgr'', funcgr'') end; |
26740 | 243 |
|
244 |
fun proto_eval_conv thy = |
|
245 |
let |
|
28724 | 246 |
fun evaluator_lift evaluator thm1 funcgr = |
24219 | 247 |
let |
28724 | 248 |
val thm2 = evaluator funcgr; |
28423 | 249 |
val thm3 = Code.postprocess_conv thy (Thm.rhs_of thm2); |
24219 | 250 |
in |
26740 | 251 |
Thm.transitive thm1 (Thm.transitive thm2 thm3) handle THM _ => |
26971 | 252 |
error ("could not construct evaluation proof:\n" |
26928 | 253 |
^ (cat_lines o map Display.string_of_thm) [thm1, thm2, thm3]) |
24219 | 254 |
end; |
28724 | 255 |
in proto_eval thy I evaluator_lift end; |
24283 | 256 |
|
26740 | 257 |
fun proto_eval_term thy = |
24283 | 258 |
let |
28724 | 259 |
fun evaluator_lift evaluator _ funcgr = evaluator funcgr; |
260 |
in proto_eval thy (Thm.cterm_of thy) evaluator_lift end; |
|
24219 | 261 |
|
262 |
end; (*local*) |
|
263 |
||
264 |
structure Funcgr = CodeDataFun |
|
24713 | 265 |
( |
24219 | 266 |
type T = T; |
24423
ae9cd0e92423
overloaded definitions accompanied by explicit constants
haftmann
parents:
24283
diff
changeset
|
267 |
val empty = Graph.empty; |
27609 | 268 |
fun purge _ cs funcgr = |
269 |
Graph.del_nodes ((Graph.all_preds funcgr |
|
270 |
o filter (can (Graph.get_node funcgr))) cs) funcgr; |
|
24713 | 271 |
); |
24219 | 272 |
|
273 |
fun make thy = |
|
28924
5c8781b7d6a4
code_funcgr interface includes also sort algebra
haftmann
parents:
28724
diff
changeset
|
274 |
pair (Code.operational_algebra thy) |
5c8781b7d6a4
code_funcgr interface includes also sort algebra
haftmann
parents:
28724
diff
changeset
|
275 |
o Funcgr.change thy o ensure_consts thy (Code.coregular_algebra thy); |
24219 | 276 |
|
277 |
fun eval_conv thy f = |
|
26740 | 278 |
fst o Funcgr.change_yield thy o proto_eval_conv thy f; |
24283 | 279 |
|
280 |
fun eval_term thy f = |
|
26740 | 281 |
fst o Funcgr.change_yield thy o proto_eval_term thy f; |
24219 | 282 |
|
27103 | 283 |
|
284 |
(** diagnostic commands **) |
|
285 |
||
28350 | 286 |
fun code_depgr thy consts = |
287 |
let |
|
28924
5c8781b7d6a4
code_funcgr interface includes also sort algebra
haftmann
parents:
28724
diff
changeset
|
288 |
val (_, gr) = make thy consts; |
28350 | 289 |
val select = Graph.all_succs gr consts; |
290 |
in |
|
291 |
gr |
|
292 |
|> not (null consts) ? Graph.subgraph (member (op =) select) |
|
293 |
|> Graph.map_nodes ((apsnd o map o apfst) (AxClass.overload thy)) |
|
294 |
end; |
|
27103 | 295 |
|
296 |
fun code_thms thy = Pretty.writeln o pretty thy o code_depgr thy; |
|
297 |
||
298 |
fun code_deps thy consts = |
|
299 |
let |
|
300 |
val gr = code_depgr thy consts; |
|
301 |
fun mk_entry (const, (_, (_, parents))) = |
|
302 |
let |
|
28054 | 303 |
val name = Code_Unit.string_of_const thy const; |
304 |
val nameparents = map (Code_Unit.string_of_const thy) parents; |
|
27103 | 305 |
in { name = name, ID = name, dir = "", unfold = true, |
306 |
path = "", parents = nameparents } |
|
307 |
end; |
|
308 |
val prgr = Graph.fold ((fn x => fn xs => xs @ [x]) o mk_entry) gr []; |
|
309 |
in Present.display_graph prgr end; |
|
310 |
||
311 |
local |
|
312 |
||
313 |
structure P = OuterParse |
|
314 |
and K = OuterKeyword |
|
315 |
||
28054 | 316 |
fun code_thms_cmd thy = code_thms thy o op @ o Code_Name.read_const_exprs thy; |
317 |
fun code_deps_cmd thy = code_deps thy o op @ o Code_Name.read_const_exprs thy; |
|
27103 | 318 |
|
319 |
in |
|
320 |
||
321 |
val _ = |
|
30024 | 322 |
OuterSyntax.improper_command "code_thms" "print system of code equations for code" OuterKeyword.diag |
28338 | 323 |
(Scan.repeat P.term_group |
27103 | 324 |
>> (fn cs => Toplevel.no_timing o Toplevel.unknown_theory |
325 |
o Toplevel.keep ((fn thy => code_thms_cmd thy cs) o Toplevel.theory_of))); |
|
326 |
||
327 |
val _ = |
|
30024 | 328 |
OuterSyntax.improper_command "code_deps" "visualize dependencies of code equations for code" OuterKeyword.diag |
28338 | 329 |
(Scan.repeat P.term_group |
27103 | 330 |
>> (fn cs => Toplevel.no_timing o Toplevel.unknown_theory |
331 |
o Toplevel.keep ((fn thy => code_deps_cmd thy cs) o Toplevel.theory_of))); |
|
332 |
||
333 |
end; |
|
334 |
||
24219 | 335 |
end; (*struct*) |