merged
authorimmler@in.tum.de
Fri, 20 Feb 2009 16:48:17 +0100
changeset 30017 d8b6542e643f
parent 30014 03b46412760e (current diff)
parent 30016 76b58a07e704 (diff)
child 30020 80db6f3c523e
child 30027 ab40c5e007e0
merged
--- a/src/HOL/Tools/atp_wrapper.ML	Fri Feb 20 14:49:39 2009 +0100
+++ b/src/HOL/Tools/atp_wrapper.ML	Fri Feb 20 16:48:17 2009 +0100
@@ -78,10 +78,14 @@
     val failure = find_failure proof
     val success = rc = 0 andalso is_none failure
     val message =
-      if isSome failure then "Could not prove: " ^ the failure
-      else if rc <> 0
-      then "Exited with return code " ^ string_of_int rc ^ ": " ^ proof 
-      else "Try this command: " ^ produce_answer (proof, thm_names, ctxt, goal, subgoalno)
+      if success then "Try this command: " ^ produce_answer (proof, thm_names, ctxt, goal, subgoalno)
+      else "Could not prove goal."
+    val _ = if isSome failure
+      then Output.debug (fn () => "Sledgehammer failure: " ^ the failure ^ "\nOutput: " ^ proof)
+      else ()
+    val _ = if rc <> 0
+      then Output.debug (fn () => "Sledgehammer exited with return code " ^ string_of_int rc ^ ":\n" ^ proof)
+      else ()
   in (success, message) end;