author | wenzelm |
Thu, 10 Mar 2016 12:11:50 +0100 | |
changeset 62588 | cd266473b81b |
parent 62573 | 27f90319a499 |
child 62589 | b5783412bfed |
permissions | -rwxr-xr-x |
46319 | 1 |
#!/usr/bin/env bash |
2 |
# |
|
3 |
# Author: Jasmin Blanchette |
|
4 |
# |
|
5 |
# DESCRIPTION: Refute for TPTP |
|
6 |
||
7 |
||
8 |
PRG="$(basename "$0")" |
|
9 |
||
10 |
function usage() { |
|
11 |
echo |
|
47670 | 12 |
echo "Usage: isabelle $PRG TIMEOUT FILES" |
46319 | 13 |
echo |
14 |
echo " Runs Refute on TPTP problems." |
|
15 |
echo |
|
16 |
exit 1 |
|
17 |
} |
|
18 |
||
19 |
[ "$#" -eq 0 -o "$1" = "-?" ] && usage |
|
20 |
||
21 |
SCRATCH="Scratch_${PRG}_$$_${RANDOM}" |
|
22 |
||
47670 | 23 |
TIMEOUT=$1 |
24 |
shift |
|
25 |
||
60546 | 26 |
isabelle build -b HOL-TPTP |
27 |
||
46319 | 28 |
for FILE in "$@" |
29 |
do |
|
46324 | 30 |
echo "theory $SCRATCH imports \"$TPTP_HOME/ATP_Problem_Import\" begin \ |
60544
3daf5eacec05
removed (now illegal) semicolons in generated theory files
blanchet
parents:
54434
diff
changeset
|
31 |
ML {* ATP_Problem_Import.refute_tptp_file @{theory} ($TIMEOUT) \"$FILE\" *} end" \ |
46319 | 32 |
> /tmp/$SCRATCH.thy |
62588
cd266473b81b
isabelle_process is superseded by "isabelle process" tool;
wenzelm
parents:
62573
diff
changeset
|
33 |
"$ISABELLE_TOOL" 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 \|^Loading theory\|^Warning-The type of\|^ monotype.$" |
46319 | 34 |
done |