src/Pure/search.ML
changeset 55171 dc7a6f6be01b
parent 48263 94a7dc2276e4
child 59058 a78612c67ec0
--- a/src/Pure/search.ML	Thu Jan 30 00:59:12 2014 +0100
+++ b/src/Pure/search.ML	Thu Jan 30 01:03:55 2014 +0100
@@ -124,13 +124,18 @@
      (*bnd = depth bound; inc = estimate of increment required next*)
      fun depth (bnd,inc) [] =
           if bnd > lim then
-             (tracing (string_of_int (!countr) ^
-                       " inferences so far.  Giving up at " ^ string_of_int bnd);
+             (if !trace_DEPTH_FIRST then
+                  tracing (string_of_int (!countr) ^
+                           " inferences so far.  Giving up at " ^
+                           string_of_int bnd)
+              else ();
               NONE)
           else
-             (tracing (string_of_int (!countr) ^
-                       " inferences so far.  Searching to depth " ^
-                       string_of_int bnd);
+             (if !trace_DEPTH_FIRST then
+                  tracing (string_of_int (!countr) ^
+                           " inferences so far.  Searching to depth " ^
+                           string_of_int bnd)
+              else ();
               (*larger increments make it run slower for the hard problems*)
               depth (bnd+inc, 10)) [(0, 1, false, qs0)]
        | depth (bnd,inc) ((k,np,rgd,q)::qs) =