]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/software/components/tactics/auto.ml
Dama is now in the night benchmarks.
[helm.git] / helm / software / components / tactics / auto.ml
index 305a42ab1adfab718e77d1e4d8f33bd7b919045e..b904d52cb055bcd22263eee84d67108da633e54b 100644 (file)
@@ -26,7 +26,7 @@
 open AutoTypes;;
 open AutoCache;;
 
-let debug_print s = () (*prerr_endline s;;*)
+let debug_print s = () (* prerr_endline s;; *)
 
 (* {{{ *********** local given_clause wrapper ***********)
 
@@ -555,10 +555,12 @@ let int params name default =
         raise (ProofEngineTypes.Fail (lazy (name ^ " must be an integer")))
 ;;  
 
-let flags_of_params params ?(use_only_paramod = bool params "paramodulation" false) () =
+let flags_of_params params ?(for_applyS=false) () =
  let int = int params in
  let bool = bool params in
  let use_paramod = bool "use_paramod" true in
+ let use_only_paramod =
+  if for_applyS then true else bool "paramodulation" false in
  let depth = int "depth" ((AutoTypes.default_flags()).AutoTypes.maxdepth) in
  let width = int "width" ((AutoTypes.default_flags()).AutoTypes.maxwidth) in
  let timeout = int "timeout" 0 in
@@ -567,9 +569,9 @@ let flags_of_params params ?(use_only_paramod = bool params "paramodulation" fal
     AutoTypes.maxwidth = width;
     AutoTypes.timeout = 
       if timeout = 0 then
-       if use_only_paramod then Unix.gettimeofday () +. 30.0
+       if for_applyS then Unix.gettimeofday () +. 30.0
        else
-        0.0
+         infinity
       else
        Unix.gettimeofday() +. (float_of_int timeout); 
     AutoTypes.use_paramod = use_paramod;
@@ -583,7 +585,7 @@ let applyS_tac ~dbd ~term ~params =
     try 
       let _, proof, gl,_,_ =
        apply_smart ~dbd ~term ~subst:[]
-        (flags_of_params params ~use_only_paramod:true ()) status
+        (flags_of_params params ~for_applyS:true ()) status
       in 
        proof, gl
     with