blob: 0ee133ea850521b9d9162e0de099fcf0d1601611 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
#!/bin/bash
cvc4=./cvc4
bench="$1"
function runl {
limit=$1; shift;
ulimit -S -t "$limit";$cvc4 --lang=sygus --no-checking --no-interactive --dump-synth --default-dag-thresh=0 "$@" $bench
}
function trywith {
sol=$(runl $@)
status=$?
if [ $status -ne 134 ]; then
echo $sol |
(read result w1;
case "$result" in
unsat) echo "$w1";cat;exit 0;;
esac; exit 1)
if [ ${PIPESTATUS[1]} -eq 0 ]; then exit 0; fi
fi
}
function finishwith {
$cvc4 --lang=sygus --no-checking --no-interactive --dump-synth --default-dag-thresh=0 "$@" $bench 2>/dev/null |
(read result w1;
case "$result" in
unsat) echo "$w1";cat;exit 0;;
esac)
}
trywith 120 --cegqi-si=all-abort --cegqi-si-abort --decision=internal --cbqi-prereg-inst
finishwith --cegqi-si=none
|