author | blanchet |
Mon, 22 Jun 2015 16:56:03 +0200 | |
changeset 60546 | dcb0b9b42fcb |
parent 60545 | bcd11dcd0d90 |
child 62573 | 27f90319a499 |
permissions | -rwxr-xr-x |
46319 | 1 |
#!/usr/bin/env bash |
2 |
# |
|
3 |
# Author: Jasmin Blanchette |
|
4 |
# |
|
47832 | 5 |
# DESCRIPTION: Isabelle tactics for TPTP demo division |
46319 | 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 a combination of Isabelle tactics on TPTP problems." |
|
47670 | 15 |
echo " Each problem is allocated at most TIMEOUT seconds." |
46319 | 16 |
echo |
17 |
exit 1 |
|
18 |
} |
|
19 |
||
20 |
[ "$#" -eq 0 -o "$1" = "-?" ] && usage |
|
21 |
||
22 |
SCRATCH="Scratch_${PRG}_$$_${RANDOM}" |
|
23 |
||
47670 | 24 |
TIMEOUT=$1 |
25 |
shift |
|
26 |
||
60546 | 27 |
isabelle build -b HOL-TPTP |
28 |
||
46319 | 29 |
for FILE in "$@" |
30 |
do |
|
46324 | 31 |
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
|
32 |
ML {* ATP_Problem_Import.isabelle_hot_tptp_file @{theory} ($TIMEOUT) \"$FILE\" *} end" \ |
46319 | 33 |
> /tmp/$SCRATCH.thy |
60545
bcd11dcd0d90
filter out more Poly/ML messages from (ad hoc) TPTP toools
blanchet
parents:
60544
diff
changeset
|
34 |
"$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\|^Warning-The type of\|^ monotype.$" |
46319 | 35 |
done |