use HOL-TPTP image in TPTP tools (for less verbose and faster startup) and filter out some messages
authorblanchet
Tue, 21 May 2013 09:02:58 +0200
changeset 52096 7e9cd79e25b3
parent 52095 17c60b5336fc
child 52097 f353fe3c2b92
use HOL-TPTP image in TPTP tools (for less verbose and faster startup) and filter out some messages
src/HOL/TPTP/lib/Tools/tptp_isabelle
src/HOL/TPTP/lib/Tools/tptp_isabelle_hot
src/HOL/TPTP/lib/Tools/tptp_nitpick
src/HOL/TPTP/lib/Tools/tptp_refute
src/HOL/TPTP/lib/Tools/tptp_sledgehammer
--- a/src/HOL/TPTP/lib/Tools/tptp_isabelle	Tue May 21 09:02:58 2013 +0200
+++ b/src/HOL/TPTP/lib/Tools/tptp_isabelle	Tue May 21 09:02:58 2013 +0200
@@ -29,5 +29,5 @@
   echo "theory $SCRATCH imports \"$TPTP_HOME/ATP_Problem_Import\" begin \
 ML {* ATP_Problem_Import.isabelle_tptp_file @{theory} ($TIMEOUT) \"$FILE\" *} end;" \
     > /tmp/$SCRATCH.thy
-  "$ISABELLE_PROCESS" -e "use_thy \"/tmp/$SCRATCH\"; exit 1;"
+  "$ISABELLE_PROCESS" -e "use_thy \"/tmp/$SCRATCH\"; exit 1;" HOL-TPTP | grep --line-buffered -v "^###\|^PROOF FAILED for depth\|^Failure node\|inferences so far.  Searching to depth\|^val it = (): unit"
 done
--- a/src/HOL/TPTP/lib/Tools/tptp_isabelle_hot	Tue May 21 09:02:58 2013 +0200
+++ b/src/HOL/TPTP/lib/Tools/tptp_isabelle_hot	Tue May 21 09:02:58 2013 +0200
@@ -29,5 +29,5 @@
   echo "theory $SCRATCH imports \"$TPTP_HOME/ATP_Problem_Import\" begin \
 ML {* ATP_Problem_Import.isabelle_hot_tptp_file @{theory} ($TIMEOUT) \"$FILE\" *} end;" \
     > /tmp/$SCRATCH.thy
-  "$ISABELLE_PROCESS" -e "use_thy \"/tmp/$SCRATCH\"; exit 1;"
+  "$ISABELLE_PROCESS" -e "use_thy \"/tmp/$SCRATCH\"; exit 1;" HOL-TPTP | grep --line-buffered -v "^###\|^PROOF FAILED for depth\|^Failure node\|inferences so far.  Searching to depth\|^val it = (): unit"
 done
--- a/src/HOL/TPTP/lib/Tools/tptp_nitpick	Tue May 21 09:02:58 2013 +0200
+++ b/src/HOL/TPTP/lib/Tools/tptp_nitpick	Tue May 21 09:02:58 2013 +0200
@@ -29,5 +29,5 @@
   echo "theory $SCRATCH imports \"$TPTP_HOME/ATP_Problem_Import\" begin \
 ML {* ATP_Problem_Import.nitpick_tptp_file @{theory} ($TIMEOUT) \"$FILE\" *} end;" \
     > /tmp/$SCRATCH.thy
-  "$ISABELLE_PROCESS" -e "use_thy \"/tmp/$SCRATCH\"; exit 1;"
+  "$ISABELLE_PROCESS" -e "use_thy \"/tmp/$SCRATCH\"; exit 1;" HOL-TPTP | grep --line-buffered -v "^###\|^PROOF FAILED for depth\|^Failure node\|inferences so far.  Searching to depth\|^val it = (): unit"
 done
--- a/src/HOL/TPTP/lib/Tools/tptp_refute	Tue May 21 09:02:58 2013 +0200
+++ b/src/HOL/TPTP/lib/Tools/tptp_refute	Tue May 21 09:02:58 2013 +0200
@@ -28,5 +28,5 @@
   echo "theory $SCRATCH imports \"$TPTP_HOME/ATP_Problem_Import\" begin \
 ML {* ATP_Problem_Import.refute_tptp_file @{theory} ($TIMEOUT) \"$FILE\" *} end;" \
     > /tmp/$SCRATCH.thy
-  "$ISABELLE_PROCESS" -e "use_thy \"/tmp/$SCRATCH\"; exit 1;"
+  "$ISABELLE_PROCESS" -e "use_thy \"/tmp/$SCRATCH\"; exit 1;" HOL-TPTP | grep --line-buffered -v "^###\|^PROOF FAILED for depth\|^Failure node\|inferences so far.  Searching to depth\|^val it = (): unit"
 done
--- a/src/HOL/TPTP/lib/Tools/tptp_sledgehammer	Tue May 21 09:02:58 2013 +0200
+++ b/src/HOL/TPTP/lib/Tools/tptp_sledgehammer	Tue May 21 09:02:58 2013 +0200
@@ -29,5 +29,5 @@
   echo "theory $SCRATCH imports \"$TPTP_HOME/ATP_Problem_Import\" begin \
 ML {* ATP_Problem_Import.sledgehammer_tptp_file @{theory} ($TIMEOUT) \"$FILE\" *} end;" \
     > /tmp/$SCRATCH.thy
-  "$ISABELLE_PROCESS" -e "use_thy \"/tmp/$SCRATCH\"; exit 1;"
+  "$ISABELLE_PROCESS" -e "use_thy \"/tmp/$SCRATCH\"; exit 1;" HOL-TPTP | grep --line-buffered -v "^###\|^PROOF FAILED for depth\|^Failure node\|inferences so far.  Searching to depth\|^val it = (): unit"
 done