open AutoTypes;;
open AutoCache;;
-let debug = true;;
+let debug = false;;
let debug_print s =
if debug then prerr_endline (Lazy.force s);;
debug_print (lazy (AutoCache.cache_print context cache));
if sort = T (* && tl <> []*) then
aux flags tables maxm cache ((metasenv,subst,gl)::tl)
- (* Success (metasenv,subst,tl), tables, cache,maxm *)
- (*
(debug_print
(lazy (" FAILURE(not in prop)"));
- aux flags tables maxm cache tl (* FAILURE (not in prop) *)) *)
+ aux flags tables maxm cache ((metasenv,subst,gl)::tl))
else
match aux_single flags tables maxm universe cache metasenv subst elem goalty cc with
| Fail s, tables, cache, maxm' ->
| Success (metasenv,subst,_), tables,cache,_ ->
prerr_endline("TIME:"^string_of_float(Unix.gettimeofday()-.initial_time));
Some (subst,metasenv), cache
- | Fail s,tables,cache,maxm -> None,cache
+ | Fail s,tables,cache,maxm ->
+ prerr_endline("TIME:"^string_of_float(Unix.gettimeofday()-.initial_time));
+ None,cache
;;
let bool params name default =
in
proof,opened
| Fail s,tables,cache,maxm ->
+ prerr_endline("TIME:"^string_of_float(Unix.gettimeofday()-.initial_time));
raise (ProofEngineTypes.Fail (lazy "Auto gave up"))
;;