Skip to content
Snippets Groups Projects
Commit 7efbf34f authored by Kilyan Le Gallic's avatar Kilyan Le Gallic
Browse files

[wp] Cache pattern for Ty.tysymbol

parent 0c5212a8
No related branches found
No related tags found
No related merge requests found
...@@ -33,6 +33,13 @@ let create_why3_env = ...@@ -33,6 +33,13 @@ let create_why3_env =
W.Env.create_env (WConf.loadpath (WConf.get_main (WConf.read_config None))) W.Env.create_env (WConf.loadpath (WConf.get_main (WConf.read_config None)))
end end
let rec get_ty_symbols_from_ty (tys : W.Ty.tysymbol) (tymap) =
try W.Wstdlib.Mstr.find tymap tys
with Not_found ->
let ty = tys.tysymbol in
tymap <- Mty.add tys.tysymbol tymap;
let () = let () =
Boot.Main.extend Boot.Main.extend
begin fun () -> begin fun () ->
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment