--- a/src/HOL/TPTP/lib/Tools/tptp_refute Sun Apr 22 14:16:46 2012 +0200
+++ b/src/HOL/TPTP/lib/Tools/tptp_refute Sun Apr 22 14:16:46 2012 +0200
@@ -9,7 +9,7 @@
function usage() {
echo
- echo "Usage: isabelle $PRG FILES"
+ echo "Usage: isabelle $PRG TIMEOUT FILES"
echo
echo " Runs Refute on TPTP problems."
echo
@@ -20,10 +20,13 @@
SCRATCH="Scratch_${PRG}_$$_${RANDOM}"
+TIMEOUT=$1
+shift
+
for FILE in "$@"
do
echo "theory $SCRATCH imports \"$TPTP_HOME/ATP_Problem_Import\" begin \
-ML {* ATP_Problem_Import.refute_tptp_file \"$FILE\" *} end;" \
+ML {* ATP_Problem_Import.refute_tptp_file ($TIMEOUT) \"$FILE\" *} end;" \
> /tmp/$SCRATCH.thy
"$ISABELLE_PROCESS" -e "use_thy \"/tmp/$SCRATCH\"; exit 1;"
done