| 1 | #!/bin/bashscip-shell filesystem . . `/bin/bash`. |
| 2 | |
| 3 | # script is used for SLH division |
| 4 | |
| 5 | here=`dirnamescip-shell system . . dirname. $0` |
| 6 | cvc5=$here/cvc5 |
| 7 | bench="$1" |
| 8 | |
| 9 | file=${bench##*/} |
| 10 | filename=${file%.*} |
| 11 | |
| 12 | echoscip-shell system . . echo. "------- cvc5-slh casc 28 : $bench at $2..." |
| 13 | |
| 14 | # use: trywith [params..] |
| 15 | # to attempt a run. If an SZS ontology result is printed, then |
| 16 | # the run script terminates immediately. Otherwise, this |
| 17 | # function returns normally. |
| 18 | function trywithscip-shell shell cvc5 1.3.2-1 trywith(). { |
| 19 | limit=$1; shift; |
| 20 | echoscip-shell system . . echo. "--- Run $@ at $limit..."; |
| 21 | (ulimit -S -t "$limit";$cvc5 --lang=tptp --no-type-checking --no-interactive --dump-proofs --proof-granularity=off --inst-format=szs --force-no-limit-cpu-while-dump "$@" $bench) 2>/dev/nullscip-shell filesystem . . `/dev/null`. | |
| 22 | (read w1 w2 w3 result w4 w5; |
| 23 | case "$result" in |
| 24 | Unsatisfiable) echoscip-shell system . . echo. "$w1 $w2 $w3 $result $w4 $w5";catscip-shell system . . cat.;exit 0;; |
| 25 | Theorem) echoscip-shell system . . echo. "$w1 $w2 $w3 $result $w4 $w5";catscip-shell system . . cat.;exit 0;; |
| 26 | esac; exit 1) |
| 27 | if [scip-shell system . . `[`. ${PIPESTATUS[1]} -eq 0 ]; then exit 0; fi |
| 28 | } |
| 29 | function finishwithscip-shell shell cvc5 1.3.2-1 finishwith(). { |
| 30 | echoscip-shell system . . echo. "--- Run $@..."; |
| 31 | $cvc5 --lang=tptp --no-type-checking --no-interactive --dump-proofs --proof-granularity=off --inst-format=szs --force-no-limit-cpu-while-dump "$@" $bench |
| 32 | } |
| 33 | |
| 34 | # designed for 15 seconds |
| 35 | trywithscip-shell shell cvc5 1.3.2-1 trywith(). 5 --decision=internal --simplification=none --full-saturate-quant |
| 36 | trywithscip-shell shell cvc5 1.3.2-1 trywith(). 3 --no-e-matching --full-saturate-quant |
| 37 | trywithscip-shell shell cvc5 1.3.2-1 trywith(). 2 --no-e-matching --fs-sum --full-saturate-quant |
| 38 | trywithscip-shell shell cvc5 1.3.2-1 trywith(). 2 --fs-interleave --full-saturate-quant |
| 39 | trywithscip-shell shell cvc5 1.3.2-1 trywith(). 3 --finite-model-find --fmf-inst-engine |
| 40 | finishwithscip-shell shell cvc5 1.3.2-1 finishwith(). --full-saturate-quant |
| 41 | # echo "% SZS status" "GaveUp for $filename" |