fixed variable confusion introduced by 'tuning' change 565f9af86d67
authorblanchet
Wed, 18 Dec 2013 17:00:14 +0100
changeset 54803 41a109a00c53
parent 54799 565f9af86d67
child 54804 a77f18378b8f
fixed variable confusion introduced by 'tuning' change 565f9af86d67
src/HOL/Tools/ATP/atp_proof.ML
--- a/src/HOL/Tools/ATP/atp_proof.ML	Wed Dec 18 16:50:14 2013 +0100
+++ b/src/HOL/Tools/ATP/atp_proof.ML	Wed Dec 18 17:00:14 2013 +0100
@@ -220,15 +220,15 @@
 val skip_term =
   let
     fun skip _ accum [] = (accum, [])
-      | skip n accum (s :: ss) =
+      | skip n accum (ss as s :: ss') =
         if s = "," andalso n = 0 then
           (accum, ss)
         else if member (op =) [")", "]", ">", "}"] s then
-          if n = 0 then (accum, ss) else skip (n - 1) (s :: accum) ss
+          if n = 0 then (accum, ss) else skip (n - 1) (s :: accum) ss'
         else if member (op =) ["(", "[", "<", "{"] s then
-          skip (n + 1) (s :: accum) ss
+          skip (n + 1) (s :: accum) ss'
         else
-          skip n (s :: accum) ss
+          skip n (s :: accum) ss'
   in
     skip 0 [] #>> (rev #> implode)
   end