| author | wenzelm | 
| Sat, 15 Dec 2012 13:14:55 +0100 | |
| changeset 50546 | 1b01a57d2749 | 
| parent 47794 | 4ad62c5f9f88 | 
| child 52096 | 7e9cd79e25b3 | 
| 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 | ||
| 46319 | 26 | for FILE in "$@" | 
| 27 | do | |
| 46324 | 28 | echo "theory $SCRATCH imports \"$TPTP_HOME/ATP_Problem_Import\" begin \ | 
| 47794 
4ad62c5f9f88
thread theory cleanly and use "smt" method rather than Sledgehammer for Z3 (because of obscure debilitating bug)
 blanchet parents: 
47670diff
changeset | 29 | ML {* ATP_Problem_Import.refute_tptp_file @{theory} ($TIMEOUT) \"$FILE\" *} end;" \
 | 
| 46319 | 30 | > /tmp/$SCRATCH.thy | 
| 31 | "$ISABELLE_PROCESS" -e "use_thy \"/tmp/$SCRATCH\"; exit 1;" | |
| 32 | done |