simp_depth now starts at -1 to make it start at 0 ;-)
authornipkow
Sun, 12 Jun 2005 08:53:41 +0200
changeset 16378 8af448f67cef
parent 16377 9da1cf997e79
child 16379 d29d27e0f59f
simp_depth now starts at -1 to make it start at 0 ;-)
src/Pure/meta_simplifier.ML
--- a/src/Pure/meta_simplifier.ML	Sat Jun 11 23:24:33 2005 +0200
+++ b/src/Pure/meta_simplifier.ML	Sun Jun 12 08:53:41 2005 +0200
@@ -105,7 +105,7 @@
 
 val debug_simp = ref false;
 val trace_simp = ref false;
-val simp_depth = ref 0;
+val simp_depth = ref (~1);
 val simp_depth_limit = ref 1000;
 val trace_simp_depth_limit = ref 1000;
 
@@ -1102,7 +1102,7 @@
          error ("Exception THM was raised in simplifier:\n" ^ s ^ "\n" ^
            Pretty.string_of (Display.pretty_thms thms))
    in simp_depth := !simp_depth - 1; res end
-  ) handle exn => (simp_depth := 0; raise exn);
+  ) handle exn => (simp_depth := !simp_depth - 1; raise exn);
 
 (*Rewrite a cterm*)
 fun rewrite_aux _ _ [] = (fn ct => Thm.reflexive ct)