Debian Codegraph @

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

raw
1 #!/bin/bash
2
3 # script is used for THF division
4
5 here=`dirname $0`
6 cvc4=$here/cvc4
7 bench="$1"
8
9 file=${bench##*/}
10 filename=${file%.*}
11
12 echo "------- cvc4-thf casc j10 : $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 trywith {
19 limit=$1; shift;
20 echo "--- Run $@ at $limit...";
21 (ulimit -S -t "$limit";$cvc4 --lang=tptp --no-type-checking --no-interactive --dump-instantiations --inst-format=szs --force-no-limit-cpu-while-dump "$@" $bench) 2>/dev/null |
22 (read w1 w2 w3 result w4 w5;
23 case "$result" in
24 Unsatisfiable) echo "$w1 $w2 $w3 $result $w4 $w5";cat;exit 0;;
25 Theorem) echo "$w1 $w2 $w3 $result $w4 $w5";cat;exit 0;;
26 esac; exit 1)
27 if [ ${PIPESTATUS[1]} -eq 0 ]; then exit 0; fi
28 }
29 function finishwith {
30 echo "--- Run $@...";
31 $cvc4 --lang=tptp --no-type-checking --no-interactive --dump-instantiations --inst-format=szs --force-no-limit-cpu-while-dump "$@" $bench
32 }
33
34 # designed for 300 seconds
35 trywith 20 --uf-ho --ho-elim --no-ho-elim-store-ax --full-saturate-quant
36 trywith 20 --uf-ho --ho-elim --full-saturate-quant
37 trywith 5 --uf-ho --ho-elim --finite-model-find --uf-ss=no-minimal
38 trywith 5 --uf-ho --no-ho-matching --finite-model-find --uf-ss=no-minimal
39 trywith 30 --uf-ho --no-ho-matching --full-saturate-quant --fs-interleave --ho-elim-store-ax
40 trywith 20 --uf-ho --no-ho-matching --full-saturate-quant --macros-quant-mode=all
41 trywith 30 --uf-ho --ho-elim --full-saturate-quant --fs-interleave
42 trywith 30 --uf-ho --no-ho-matching --full-saturate-quant --ho-elim-store-ax
43 finishwith --uf-ho --ho-elim --no-ho-elim-store-ax --full-saturate-quant
44 # echo "% SZS status" "GaveUp for $filename"