systematically suppress tracing if asked for (affects 'meson' proof method)
authorblanchet
Thu, 30 Jan 2014 01:03:55 +0100
changeset 55171 dc7a6f6be01b
parent 55170 cdb9435e3cae
child 55172 92735f0d5302
child 55173 5556470a02b7
systematically suppress tracing if asked for (affects 'meson' proof method)
src/Pure/search.ML
--- 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) =