--- a/src/HOL/TPTP/lib/Tools/tptp_translate Mon Nov 18 17:10:57 2013 +0100
+++ b/src/HOL/TPTP/lib/Tools/tptp_translate Mon Nov 18 18:04:44 2013 +0100
@@ -9,20 +9,21 @@
function usage() {
echo
- echo "Usage: isabelle $PRG FORMAT IN_FILE OUT_FILE"
+ echo "Usage: isabelle $PRG FORMAT FILE"
echo
echo " Translates TPTP input file to the specified format (\"FOF\", \"TFF0\", \"THF0\", or \"DFG\")."
+ echo " Emits the result to standard output."
echo
exit 1
}
-[ "$#" -ne 3 -o "$1" = "-?" ] && usage
+[ "$#" -ne 2 -o "$1" = "-?" ] && usage
SCRATCH="Scratch_${PRG}_$$_${RANDOM}"
args=("$@")
echo "theory $SCRATCH imports \"$TPTP_HOME/ATP_Problem_Import\" begin \
-ML {* ATP_Problem_Import.translate_tptp_file @{theory} \"${args[0]}\" \"${args[1]}\" \"${args[2]}\" *} end;" \
+ML {* ATP_Problem_Import.translate_tptp_file @{theory} \"${args[0]}\" \"${args[1]}\" *} end;" \
> /tmp/$SCRATCH.thy
"$ISABELLE_PROCESS" -q -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 \|^Loading theory"