src/HOL/Tools/res_atp_provers.ML
changeset 19129 b66dff8ab7e9
parent 18726 02b310b1fa10
child 19195 e0b483dea2c0
--- a/src/HOL/Tools/res_atp_provers.ML	Thu Feb 23 12:57:39 2006 +0100
+++ b/src/HOL/Tools/res_atp_provers.ML	Thu Feb 23 12:59:01 2006 +0100
@@ -19,6 +19,7 @@
   else if (thisLine = "") then false
   else if_proof_E instr end;		
 
+
 local 
 
 fun locations [] = ()
@@ -27,7 +28,8 @@
 in 
 
 fun call_vampire (files:string list, time: int) = 
-  let val output = (space_implode " " files) ^ "  "
+  let val _ = locations files
+      val output = (space_implode " " files) ^ "  "
       val runtime = "-t " ^ (string_of_int time)
       val vampire = ResAtp.helper_path "VAMPIRE_HOME" "vampire"
       val ch:(TextIO.instream,TextIO.outstream) Unix.proc = Unix.execute(vampire, [runtime,output])
@@ -36,7 +38,8 @@
   end;
 
 fun call_eprover (files:string list, time:int) =
-  let val output = (space_implode " " files) ^ "  "
+  let val _ = locations files
+      val output = (space_implode " " files) ^ "  "
       val eprover = ResAtp.helper_path "E_HOME" "/PROVER/eprover"
       val runtime = "--cpu-limit=" ^ (string_of_int time)
       val ch:(TextIO.instream,TextIO.outstream) Unix.proc = Unix.execute(eprover, [runtime,"--tptp-format","-tAuto","-xAuto",output])
@@ -51,7 +54,7 @@
 
 
 fun eprover_o thy ((helper,files),time) = (if (call_eprover (helper @ files,time)) then (warning (hd files); ResAtpSetup.cond_rm_tmp files;HOLogic.mk_Trueprop HOLogic.false_const)
-  else (raise Fail ("eprover oracle failed")));
+  else (ResAtpSetup.cond_rm_tmp files;raise Fail ("eprover oracle failed")));
 
 end;