merged
authorhuffman
Fri, 20 Feb 2009 09:15:23 -0800
changeset 30020 80db6f3c523e
parent 30019 a2f19e0a28b2 (current diff)
parent 30017 d8b6542e643f (diff)
child 30026 be13af70c27c
child 30032 c7f0c1b8001b
merged
--- a/src/HOL/Tools/atp_wrapper.ML	Fri Feb 20 08:02:11 2009 -0800
+++ b/src/HOL/Tools/atp_wrapper.ML	Fri Feb 20 09:15:23 2009 -0800
@@ -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;