]> matita.cs.unibo.it Git - helm.git/blobdiff - matita/components/ng_tactics/nnAuto.ml
Remove the daemon :-)
[helm.git] / matita / components / ng_tactics / nnAuto.ml
index 020b819c93ac8df0a5388e7de764bc75a6053b2c..359b5b0761c12691d91ce5725a84516fefcdd664 100644 (file)
@@ -1510,10 +1510,12 @@ let rec auto_clusters ?(top=false)
     let classes = HExtlib.clusters (deps status) all_goals in
     List.iter 
        (fun gl ->
-          if List.length gl > flags.maxwidth then 
-            (debug_print ~depth (lazy "FAIL GLOBAL WIDTH"); 
-             raise (Gaveup IntSet.empty))
-          else ()) classes;
+          if List.length gl > flags.maxwidth then begin
+             debug_print ~depth (lazy "FAIL GLOBAL WIDTH"); 
+             HLog.error (sprintf "global width (%u) exceeded: %u"
+                flags.maxwidth (List.length gl));
+             raise (Gaveup IntSet.empty)
+          end else ()) classes;
     if List.length classes = 1 then
       let flags = 
         {flags with last = (List.length all_goals = 1)} in 
@@ -1595,9 +1597,12 @@ auto_main flags signature cache depth status: unit =
        else
         let ng = List.length goals in
         (* moved inside auto_clusters *)
-        if ng > flags.maxwidth then 
-          (print ~depth (lazy "FAIL LOCAL WIDTH"); raise (Gaveup IntSet.empty))
-        else if depth = flags.maxdepth then 
+        if ng > flags.maxwidth then begin 
+          debug_print ~depth (lazy "FAIL LOCAL WIDTH");
+         HLog.error (sprintf "local width (%u) exceeded: %u"
+            flags.maxwidth ng);
+         raise (Gaveup IntSet.empty)
+        end else if depth = flags.maxdepth then
          raise (Gaveup IntSet.empty)
         else 
         let status = NTactics.branch_tac ~force:true status in
@@ -1710,7 +1715,7 @@ let auto_tac ~params:(univ,flags) ?(trace_ref=ref []) status =
   app_counter:= 0;
   let rec up_to x y =
     if x > y then
-      (print(lazy
+      (debug_print(lazy
         ("TIME ELAPSED:"^string_of_float(Unix.gettimeofday()-.initial_time)));
        debug_print(lazy
         ("Applicative nodes:"^string_of_int !app_counter));