src/HOL/Tools/res_reconstruct.ML
changeset 24632 779fc4fcbf8b
parent 24552 bb7fdd10de9a
child 24680 0d355aa59e67
--- a/src/HOL/Tools/res_reconstruct.ML	Tue Sep 18 16:08:08 2007 +0200
+++ b/src/HOL/Tools/res_reconstruct.ML	Tue Sep 18 17:53:37 2007 +0200
@@ -523,11 +523,14 @@
    get_axiom_names thm_names (List.mapPartial parse_tstp_line (split_lines proofextract));
 
  (*String contains multiple lines. We want those of the form
-     "*********** [448, input] ***********".
+     "*********** [448, input] ***********"
+   or possibly those of the form
+     "cnf(108, axiom, ..."
   A list consisting of the first number in each line is returned. *)
 fun get_vamp_linenums proofextract =
   let val toks = String.tokens (not o Char.isAlphaNum)
       fun inputno [ntok,"input"] = Int.fromString ntok
+        | inputno ("cnf"::ntok::"axiom"::_) = Int.fromString ntok
         | inputno _ = NONE
       val lines = String.tokens (fn c => c = #"\n") proofextract
   in  List.mapPartial (inputno o toks) lines  end