SNARK workaround
authorblanchet
Mon, 02 May 2011 22:52:15 +0200
changeset 42644 9dd98edd48c2
parent 42643 c7b71b55099b
child 42645 242bc53b98e5
SNARK workaround
src/HOL/Tools/ATP/atp_problem.ML
--- a/src/HOL/Tools/ATP/atp_problem.ML	Mon May 02 22:52:15 2011 +0200
+++ b/src/HOL/Tools/ATP/atp_problem.ML	Mon May 02 22:52:15 2011 +0200
@@ -203,8 +203,9 @@
         val nice_prefix = readable_name full_name desired_name
         fun add j =
           let
-            val nice_name = nice_prefix ^
-                            (if j = 0 then "" else "_" ^ string_of_int j)
+            (* The trailing "_" is for SNARK (cf. comment above). *)
+            val nice_name =
+              nice_prefix ^ (if j = 0 then "" else "_" ^ string_of_int j ^ "_")
           in
             case Symtab.lookup (snd the_pool) nice_name of
               SOME full_name' =>