Debian Codegraph @

contrib/competitions/casc/run-script-cascj7-tff

raw
1 #!/bin/bash
2
3 cvc4=./cvc4
4 bench="$1"
5
6 file=${bench##*/}
7 filename=${file%.*}
8
9 echo "------- cvc4-tff casc j7 : $bench at $2..."
10
11 # use: trywith [params..]
12 # to attempt a run. If an SZS ontology result is printed, then
13 # the run script terminates immediately. Otherwise, this
14 # function returns normally.
15 function trywith {
16 limit=$1; shift;
17 echo "--- Run $@ at $limit...";
18 (ulimit -t "$limit";$cvc4 --lang=tptp --no-checking --no-interactive "$@" $bench) 2>/dev/null |
19 (read w1 w2 w3 result w4 w5;
20 case "$result" in
21 Unsatisfiable) echo "$w1 $w2 $w3 $result $w4 $w5";cat;exit 0;;
22 Theorem) echo "$w1 $w2 $w3 $result $w4 $w5";cat;exit 0;;
23 esac; exit 1)
24 if [ ${PIPESTATUS[1]} -eq 0 ]; then exit 0; fi
25 }
26 function finishwith {
27 echo "--- Run $@...";
28 $cvc4 --lang=tptp --no-checking --no-interactive "$@" $bench
29 }
30
31 trywith 15 --cbqi-recurse --full-saturate-quant
32 trywith 15 --decision=internal --full-saturate-quant
33 trywith 30 --quant-cf --qcf-tconstraint --full-saturate-quant
34 trywith 20 --finite-model-find
35 trywith 30 --fmf-bound-int
36 trywith 60 --quant-cf --full-saturate-quant
37 finishwith --cbqi-recurse --full-saturate-quant --pre-skolem-quant
38 # echo "% SZS status" "GaveUp for $filename"