src/Tools/quickcheck.ML
changeset 62983 ba9072b303a2
parent 62982 4b71cd0bfe14
child 67149 e61557884799
--- a/src/Tools/quickcheck.ML	Thu Apr 14 16:02:22 2016 +0200
+++ b/src/Tools/quickcheck.ML	Thu Apr 14 16:59:47 2016 +0200
@@ -293,17 +293,19 @@
   if not (Config.get ctxt quiet) andalso Config.get ctxt verbose
   then writeln s else ();
 
-fun test_terms ctxt (limit_time, is_interactive) insts goals =
-  (case active_testers ctxt of
-    [] => error "No active testers for quickcheck"
-  | testers =>
-      limit (seconds (Config.get ctxt timeout)) (limit_time, is_interactive)
-        (fn () =>
-          Par_List.get_some (fn tester =>
-            tester ctxt (length testers > 1) insts goals |>
-            (fn result => if exists found_counterexample result then SOME result else NONE))
-          testers)
-        (fn () => (message ctxt "Quickcheck ran out of time"; NONE)) ());
+fun test_terms ctxt0 (limit_time, is_interactive) insts goals =
+  let val ctxt = Simplifier_Trace.disable ctxt0 in
+    (case active_testers ctxt of
+      [] => error "No active testers for quickcheck"
+    | testers =>
+        limit (seconds (Config.get ctxt timeout)) (limit_time, is_interactive)
+          (fn () =>
+            Par_List.get_some (fn tester =>
+              tester ctxt (length testers > 1) insts goals |>
+              (fn result => if exists found_counterexample result then SOME result else NONE))
+            testers)
+          (fn () => (message ctxt "Quickcheck ran out of time"; NONE)) ())
+  end
 
 fun all_axioms_of ctxt t =
   let