| author | wenzelm | 
| Thu, 10 Mar 2016 17:30:04 +0100 | |
| changeset 62589 | b5783412bfed | 
| parent 62588 | cd266473b81b | 
| child 62634 | aa3b47b32100 | 
| permissions | -rwxr-xr-x | 
| 
42064
 
f4e53c8630c0
added first-order TPTP version of Nitpick to Isabelle, so that its sources stay in sync with Isabelle and it is easier to install new versions for SystemOnTPTP and CASC -- the tool is called "isabelle nitrox" but is deliberately omitted from the tool list unless the component is explicitly enabled, to avoid clutter
 
blanchet 
parents:  
diff
changeset
 | 
1  | 
#!/usr/bin/env bash  | 
| 
 
f4e53c8630c0
added first-order TPTP version of Nitpick to Isabelle, so that its sources stay in sync with Isabelle and it is easier to install new versions for SystemOnTPTP and CASC -- the tool is called "isabelle nitrox" but is deliberately omitted from the tool list unless the component is explicitly enabled, to avoid clutter
 
blanchet 
parents:  
diff
changeset
 | 
2  | 
#  | 
| 
 
f4e53c8630c0
added first-order TPTP version of Nitpick to Isabelle, so that its sources stay in sync with Isabelle and it is easier to install new versions for SystemOnTPTP and CASC -- the tool is called "isabelle nitrox" but is deliberately omitted from the tool list unless the component is explicitly enabled, to avoid clutter
 
blanchet 
parents:  
diff
changeset
 | 
3  | 
# Author: Jasmin Blanchette  | 
| 
 
f4e53c8630c0
added first-order TPTP version of Nitpick to Isabelle, so that its sources stay in sync with Isabelle and it is easier to install new versions for SystemOnTPTP and CASC -- the tool is called "isabelle nitrox" but is deliberately omitted from the tool list unless the component is explicitly enabled, to avoid clutter
 
blanchet 
parents:  
diff
changeset
 | 
4  | 
#  | 
| 46319 | 5  | 
# DESCRIPTION: Nitpick for TPTP  | 
| 
42064
 
f4e53c8630c0
added first-order TPTP version of Nitpick to Isabelle, so that its sources stay in sync with Isabelle and it is easier to install new versions for SystemOnTPTP and CASC -- the tool is called "isabelle nitrox" but is deliberately omitted from the tool list unless the component is explicitly enabled, to avoid clutter
 
blanchet 
parents:  
diff
changeset
 | 
6  | 
|
| 
 
f4e53c8630c0
added first-order TPTP version of Nitpick to Isabelle, so that its sources stay in sync with Isabelle and it is easier to install new versions for SystemOnTPTP and CASC -- the tool is called "isabelle nitrox" but is deliberately omitted from the tool list unless the component is explicitly enabled, to avoid clutter
 
blanchet 
parents:  
diff
changeset
 | 
7  | 
|
| 
 
f4e53c8630c0
added first-order TPTP version of Nitpick to Isabelle, so that its sources stay in sync with Isabelle and it is easier to install new versions for SystemOnTPTP and CASC -- the tool is called "isabelle nitrox" but is deliberately omitted from the tool list unless the component is explicitly enabled, to avoid clutter
 
blanchet 
parents:  
diff
changeset
 | 
8  | 
PRG="$(basename "$0")"  | 
| 
 
f4e53c8630c0
added first-order TPTP version of Nitpick to Isabelle, so that its sources stay in sync with Isabelle and it is easier to install new versions for SystemOnTPTP and CASC -- the tool is called "isabelle nitrox" but is deliberately omitted from the tool list unless the component is explicitly enabled, to avoid clutter
 
blanchet 
parents:  
diff
changeset
 | 
9  | 
|
| 
 
f4e53c8630c0
added first-order TPTP version of Nitpick to Isabelle, so that its sources stay in sync with Isabelle and it is easier to install new versions for SystemOnTPTP and CASC -- the tool is called "isabelle nitrox" but is deliberately omitted from the tool list unless the component is explicitly enabled, to avoid clutter
 
blanchet 
parents:  
diff
changeset
 | 
10  | 
function usage() {
 | 
| 
 
f4e53c8630c0
added first-order TPTP version of Nitpick to Isabelle, so that its sources stay in sync with Isabelle and it is easier to install new versions for SystemOnTPTP and CASC -- the tool is called "isabelle nitrox" but is deliberately omitted from the tool list unless the component is explicitly enabled, to avoid clutter
 
blanchet 
parents:  
diff
changeset
 | 
11  | 
echo  | 
| 47670 | 12  | 
echo "Usage: isabelle $PRG TIMEOUT FILES"  | 
| 
42064
 
f4e53c8630c0
added first-order TPTP version of Nitpick to Isabelle, so that its sources stay in sync with Isabelle and it is easier to install new versions for SystemOnTPTP and CASC -- the tool is called "isabelle nitrox" but is deliberately omitted from the tool list unless the component is explicitly enabled, to avoid clutter
 
blanchet 
parents:  
diff
changeset
 | 
13  | 
echo  | 
| 46319 | 14  | 
echo " Runs Nitpick on TPTP problems."  | 
| 47670 | 15  | 
echo " Each problem is allocated at most TIMEOUT seconds."  | 
| 
42064
 
f4e53c8630c0
added first-order TPTP version of Nitpick to Isabelle, so that its sources stay in sync with Isabelle and it is easier to install new versions for SystemOnTPTP and CASC -- the tool is called "isabelle nitrox" but is deliberately omitted from the tool list unless the component is explicitly enabled, to avoid clutter
 
blanchet 
parents:  
diff
changeset
 | 
16  | 
echo  | 
| 
 
f4e53c8630c0
added first-order TPTP version of Nitpick to Isabelle, so that its sources stay in sync with Isabelle and it is easier to install new versions for SystemOnTPTP and CASC -- the tool is called "isabelle nitrox" but is deliberately omitted from the tool list unless the component is explicitly enabled, to avoid clutter
 
blanchet 
parents:  
diff
changeset
 | 
17  | 
exit 1  | 
| 
 
f4e53c8630c0
added first-order TPTP version of Nitpick to Isabelle, so that its sources stay in sync with Isabelle and it is easier to install new versions for SystemOnTPTP and CASC -- the tool is called "isabelle nitrox" but is deliberately omitted from the tool list unless the component is explicitly enabled, to avoid clutter
 
blanchet 
parents:  
diff
changeset
 | 
18  | 
}  | 
| 
 
f4e53c8630c0
added first-order TPTP version of Nitpick to Isabelle, so that its sources stay in sync with Isabelle and it is easier to install new versions for SystemOnTPTP and CASC -- the tool is called "isabelle nitrox" but is deliberately omitted from the tool list unless the component is explicitly enabled, to avoid clutter
 
blanchet 
parents:  
diff
changeset
 | 
19  | 
|
| 42108 | 20  | 
[ "$#" -eq 0 -o "$1" = "-?" ] && usage  | 
21  | 
||
| 
43811
 
402e1a0d93d9
better temp name creation for Nitrox -- still very hackish though, but should get us through CASC-23 and CASC-J6
 
blanchet 
parents: 
43808 
diff
changeset
 | 
22  | 
SCRATCH="Scratch_${PRG}_$$_${RANDOM}"
 | 
| 
 
402e1a0d93d9
better temp name creation for Nitrox -- still very hackish though, but should get us through CASC-23 and CASC-J6
 
blanchet 
parents: 
43808 
diff
changeset
 | 
23  | 
|
| 47670 | 24  | 
TIMEOUT=$1  | 
25  | 
shift  | 
|
26  | 
||
| 60546 | 27  | 
isabelle build -b HOL-TPTP  | 
28  | 
||
| 
42064
 
f4e53c8630c0
added first-order TPTP version of Nitpick to Isabelle, so that its sources stay in sync with Isabelle and it is easier to install new versions for SystemOnTPTP and CASC -- the tool is called "isabelle nitrox" but is deliberately omitted from the tool list unless the component is explicitly enabled, to avoid clutter
 
blanchet 
parents:  
diff
changeset
 | 
29  | 
for FILE in "$@"  | 
| 
 
f4e53c8630c0
added first-order TPTP version of Nitpick to Isabelle, so that its sources stay in sync with Isabelle and it is easier to install new versions for SystemOnTPTP and CASC -- the tool is called "isabelle nitrox" but is deliberately omitted from the tool list unless the component is explicitly enabled, to avoid clutter
 
blanchet 
parents:  
diff
changeset
 | 
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.nitpick_tptp_file @{theory} ($TIMEOUT) \"$FILE\" *} end" \
 | 
| 
43811
 
402e1a0d93d9
better temp name creation for Nitrox -- still very hackish though, but should get us through CASC-23 and CASC-J6
 
blanchet 
parents: 
43808 
diff
changeset
 | 
33  | 
> /tmp/$SCRATCH.thy  | 
| 
62589
 
b5783412bfed
prefer plain "isabelle" from PATH within Isabelle settings environment;
 
wenzelm 
parents: 
62588 
diff
changeset
 | 
34  | 
isabelle 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.$"  | 
| 
42064
 
f4e53c8630c0
added first-order TPTP version of Nitpick to Isabelle, so that its sources stay in sync with Isabelle and it is easier to install new versions for SystemOnTPTP and CASC -- the tool is called "isabelle nitrox" but is deliberately omitted from the tool list unless the component is explicitly enabled, to avoid clutter
 
blanchet 
parents:  
diff
changeset
 | 
35  | 
done  |