author | immler |
Sun, 27 Oct 2019 21:51:14 -0400 | |
changeset 71035 | 6fe5a0e1fa8e |
parent 64561 | a7664ca9ffc5 |
permissions | -rwxr-xr-x |
47832 | 1 |
#!/usr/bin/env bash |
2 |
# |
|
3 |
# Author: Jasmin Blanchette |
|
4 |
# |
|
5 |
# DESCRIPTION: Isabelle tactics for TPTP competitive division |
|
6 |
||
7 |
||
8 |
PRG="$(basename "$0")" |
|
9 |
||
10 |
function usage() { |
|
11 |
echo |
|
12 |
echo "Usage: isabelle $PRG TIMEOUT FILES" |
|
13 |
echo |
|
14 |
echo " Runs a combination of Isabelle tactics on TPTP problems." |
|
15 |
echo " Each problem is allocated at most TIMEOUT seconds." |
|
16 |
echo |
|
17 |
exit 1 |
|
18 |
} |
|
19 |
||
20 |
[ "$#" -eq 0 -o "$1" = "-?" ] && usage |
|
21 |
||
22 |
SCRATCH="Scratch_${PRG}_$$_${RANDOM}" |
|
23 |
||
24 |
TIMEOUT=$1 |
|
25 |
shift |
|
26 |
||
64561 | 27 |
isabelle build -b HOL-TPTP 2>&1 | grep --line-buffered -v "elapsed time$" |
60546 | 28 |
|
47832 | 29 |
for FILE in "$@" |
30 |
do |
|
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_tptp_file @{theory} ($TIMEOUT) \"$FILE\" *} end" \ |
47832 | 33 |
> /tmp/$SCRATCH.thy |
64561 | 34 |
isabelle process -e "use_thy \"/tmp/$SCRATCH\"; exit 1;" -l HOL-TPTP | grep --line-buffered -v "^###\|^PROOF FAILED for depth\|^Failure node\|inferences so far. Searching to depth\|^val \|^Loading theory\|^poly.*warning: The type of\|^ monotype.$" |
47832 | 35 |
done |