Debian Codegraph @

contrib/competitions/casc/run-script-cascj10-tfa

raw
1 #!/bin/bash
2
3 here=`dirname $0`
4 cvc4=$here/cvc4
5 bench="$1"
6
7 file=${bench##*/}
8 filename=${file%.*}
9
10 echo "------- cvc4-tfa casc j10 : $bench at $2..."
11
12 # use: trywith [params..]
13 # to attempt a run. If an SZS ontology result is printed, then
14 # the run script terminates immediately. Otherwise, this
15 # function returns normally.
16 function trywith {
17 limit=$1; shift;
18 echo "--- Run $@ at $limit...";
19 (ulimit -S -t "$limit";$cvc4 --lang=tptp --no-type-checking --no-interactive --force-logic="UFNIRA" --dump-instantiations --inst-format=szs --force-no-limit-cpu-while-dump "$@" $bench) 2>/dev/null |
20 (read w1 w2 w3 result w4 w5;
21 case "$result" in
22 Unsatisfiable) echo "$w1 $w2 $w3 $result $w4 $w5";cat;exit 0;;
23 Theorem) echo "$w1 $w2 $w3 $result $w4 $w5";cat;exit 0;;
24 esac; exit 1)
25 if [ ${PIPESTATUS[1]} -eq 0 ]; then exit 0; fi
26 }
27 function finishwith {
28 echo "--- Run $@...";
29 $cvc4 --lang=tptp --no-type-checking --no-interactive --force-logic="UFNIRA" --dump-instantiations --inst-format=szs --force-no-limit-cpu-while-dump "$@" $bench
30 }
31
32 trywith 15 --finite-model-find --decision=internal
33 trywith 15 --decision=internal --simplification=none --no-inst-no-entail --no-quant-cf --full-saturate-quant
34 trywith 15 --no-e-matching --full-saturate-quant
35 trywith 15 --cegqi-all --purify-triggers --full-saturate-quant
36 finishwith --macros-quant --macros-quant-mode=all --nl-ext-tplanes --full-saturate-quant
37 # echo "% SZS status" "GaveUp for $filename"