src/HOL/Tools/res_atp.ML
changeset 16475 8f3ba52a7937
parent 16357 f1275d2a1dee
child 16478 d0a1f6231e2f
--- a/src/HOL/Tools/res_atp.ML	Mon Jun 20 15:54:39 2005 +0200
+++ b/src/HOL/Tools/res_atp.ML	Mon Jun 20 15:55:44 2005 +0200
@@ -146,13 +146,16 @@
 (* now passing in list of skolemized thms and list of sgterms to go with them *)
 fun call_resolve_tac  (thms: Thm.thm list list)  sign (sg_terms:  Term.term list) (childin, childout,pid) n  = let
    val axfile = (File.platform_path axiom_file)
-    val hypsfile = (File.platform_path hyps_file)
-     val clasimpfile = (File.platform_path clasimp_file)
-    val spass_home = getenv "SPASS_HOME"
+   val hypsfile = (File.platform_path hyps_file)
+   val clasimpfile = (File.platform_path clasimp_file)
+   val spass_home = getenv "SPASS_HOME"
+   val spass = spass_home ^ "/SPASS"
+   val _ = if File.exists (File.unpack_platform_path spass) then () 
+	   else error ("Could not find the file " ^ spass)
      
-fun make_atp_list [] sign n = []
-|   make_atp_list ((sko_thm, sg_term)::xs) sign  n = 
-let 
+   fun make_atp_list [] sign n = []
+   |   make_atp_list ((sko_thm, sg_term)::xs) sign  n = 
+   let 
 	val skothmstr = Meson.concat_with_and (map string_of_thm sko_thm) 
 	val thmproofstr = proofstring ( skothmstr)
 	val no_returns =List.filter   not_newline ( thmproofstr)