depth limit (previously hard-coded with a value of 20) made a reference
authorwebertj
Sun, 29 Aug 2004 17:36:39 +0200
changeset 15162 670ab8497818
parent 15161 065ce5385a06
child 15163 73386e0319a2
depth limit (previously hard-coded with a value of 20) made a reference
src/Provers/blast.ML
--- a/src/Provers/blast.ML	Thu Aug 26 17:28:57 2004 +0200
+++ b/src/Provers/blast.ML	Sun Aug 29 17:36:39 2004 +0200
@@ -80,6 +80,7 @@
     | $  of term*term;
   type branch
   val depth_tac 	: claset -> int -> int -> tactic
+  val depth_limit : int ref
   val blast_tac 	: claset -> int -> tactic
   val Blast_tac 	: int -> tactic
   val setup		: (theory -> theory) list
@@ -1283,8 +1284,10 @@
 (*Public version with fixed depth*)
 fun depth_tac cs lim i st = timing_depth_tac (startTiming()) cs lim i st;
 
+val depth_limit = ref 20;
+
 fun blast_tac cs i st = 
-    ((DEEPEN (1,20) (timing_depth_tac (startTiming()) cs) 0) i 
+    ((DEEPEN (1, !depth_limit) (timing_depth_tac (startTiming()) cs) 0) i 
      THEN flexflex_tac) st
     handle TRANS s =>
       ((if !trace then warning ("blast: " ^ s) else ());