# HG changeset patch # User blanchet # Date 1394718500 -3600 # Node ID 75dc126f5dcb7e6bd9802807ebb259da9c2198bf # Parent fd6e132ee4fbd7b175160298f918f32c0717e59f more robust indices diff -r fd6e132ee4fb -r 75dc126f5dcb src/HOL/Tools/SMT2/smt2_normalize.ML --- a/src/HOL/Tools/SMT2/smt2_normalize.ML Thu Mar 13 14:48:20 2014 +0100 +++ b/src/HOL/Tools/SMT2/smt2_normalize.ML Thu Mar 13 14:48:20 2014 +0100 @@ -497,7 +497,7 @@ let val (is, thms) = split_list ithms val (thms', extra_thms) = f thms - in (is ~~ thms') @ tag_list (length is) extra_thms end + in (is ~~ thms') @ tag_list (fold Integer.max is 0 + 1) extra_thms end fun unfold2 ctxt ithms = ithms