src/HOL/Mutabelle/mutabelle_extra.ML
changeset 59433 9da5b2c61049
parent 58843 521cea5fa777
child 59582 0fbed69ff081
--- a/src/HOL/Mutabelle/mutabelle_extra.ML	Sat Jan 24 21:37:31 2015 +0100
+++ b/src/HOL/Mutabelle/mutabelle_extra.ML	Sat Jan 24 22:00:24 2015 +0100
@@ -409,9 +409,6 @@
     create_entry thy thm exec mutants mtds
   end
 
-(* string -> string *)
-val unyxml = XML.content_of o YXML.parse_body
-
 fun string_of_mutant_subentry' thy thm_name (t, results) =
   let
    (* fun string_of_report (Quickcheck.Report {iterations = i, raised_match_errors = e,
@@ -426,8 +423,9 @@
       ^ "(" ^ space_implode "; " (map (fn (s, t) => (s ^ ": " ^ string_of_int t)) timing) ^ ")"
       (*^ "\n" ^ string_of_reports reports*)
   in
-    "mutant of " ^ thm_name ^ ":\n"
-    ^ unyxml (Syntax.string_of_term_global thy t) ^ "\n" ^ space_implode "; " (map string_of_mtd_result results)
+    "mutant of " ^ thm_name ^ ":\n" ^
+      YXML.content_of (Syntax.string_of_term_global thy t) ^ "\n" ^
+      space_implode "; " (map string_of_mtd_result results)
   end
 
 fun string_of_detailed_entry thy (thm_name, exec, t, mutant_subentries) =