fixed IO;
authorwenzelm
Thu, 22 Apr 1999 18:25:24 +0200
changeset 6491 7954ffeb93f3
parent 6490 4961ecbaaff7
child 6492 937eb94b2aab
fixed IO;
src/HOL/Modelcheck/mucke_oracle.ML
--- a/src/HOL/Modelcheck/mucke_oracle.ML	Thu Apr 22 18:25:07 1999 +0200
+++ b/src/HOL/Modelcheck/mucke_oracle.ML	Thu Apr 22 18:25:24 1999 +0200
@@ -492,14 +492,12 @@
 (setmp print_mode ["Mucke"] (make_string sign) terms)
 end;
 
-fun callmc s = 
-let 
-val a = TextIO.openOut("tmp.mu");
-val _ = output(a,s);
-val _ = TextIO.closeOut(a);
-in
-execute("mucke -nb tmp")
-end; 
+fun callmc s =
+  let
+    val path = Path.unpack "tmp.mu";
+    val _ = File.write path s;
+    val result = execute "mucke -nb tmp";
+  in File.rm path; result end;
 
 (* extract_result looks for true value before *) 
 (* finishing line "===..." of mucke output    *)