open AutoTypes;;
open AutoCache;;
-let debug_print s = () (* prerr_endline s;; *)
+let debug_print s = () (*prerr_endline s;;*)
(* {{{ *********** local given_clause wrapper ***********)
let passive = Saturation.add_to_passive equalities passive in
let goal_steps, saturation_steps, timeout =
if flags.use_only_paramod then max_int,max_int,flags.timeout
- else max 80 minsteps, minsteps, infinity
+ else max 50 minsteps, minsteps, infinity
in
active,passive,bag,cache,maxm,goal_steps,saturation_steps,timeout
in
=
let ppterm = ppterm context in
prerr_endline ("PARAMOD SU: " ^ string_of_int goalno ^ " " ^ ppterm goalty );
+(*
prerr_endline "<CACHE>";
prerr_endline (cache_print context cache);
prerr_endline "</CACHE>";
+*)
match
given_clause dbd ?tables maxm ?auto cache subst flags false (fake_proof,goalno)
with
(flags.use_only_paramod && ensure_equational goalty)
;;
let cache_add_success sort cache k v =
- if sort = P then cache_add_success cache k v else cache
+ if sort = P then cache_add_success cache k v else cache_remove_underinspection
+ cache k
;;
let rec auto_main dbd tables maxm context flags elems cache =
depth fake_proof goalno goalty subst context flags
with
| Some elems, tables, cache, maxm ->
- elems, tables, cache, maxm (* manca cache *)
+ elems, tables, cache, maxm
| None, tables,cache,maxm ->
applicative_case dbd tables maxm depth subst fake_proof goalno
goalty metasenv context cache