open AutoTypes;;
open AutoCache;;
-let debug = true;;
+let debug = false;;
let debug_print s =
if debug then prerr_endline (Lazy.force s);;
"with depth"^string_of_int depth));
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' ->
let goalty = CicMetaSubst.apply_subst subst goalty in
(* else if not (is_in_prop context subst metasenv goalty) then Fail,cache *)
(* FAILURE (euristic cut) *)
- if depth <= 0 then
- Fail (string_of_int goalno ^ "as depth <=0"),
- tables,cache,maxm (*FAILURE(depth)*)
- else
match cache_examine cache goalty with
| Failed_in d when d >= depth ->
Fail ("depth " ^ string_of_int d ^ ">=" ^ string_of_int depth),
elems, tables, cache, maxm, flags
in
aux flags tables maxm cache elems
- | _ -> Fail "??",tables,cache,maxm
+ | _ -> Fail "depth = 0",tables,cache,maxm
in
aux flags tables maxm cache elems
| 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"))
;;