diff options
author | Haniel Barbosa <hanielbbarbosa@gmail.com> | 2019-07-24 17:00:46 -0500 |
---|---|---|
committer | Andrew Reynolds <andrew.j.reynolds@gmail.com> | 2019-07-24 17:00:46 -0500 |
commit | 9ab6fb41bc06883aa7d2071133291aff18466afd (patch) | |
tree | 170f52da075618cbab1f9e5b65d708d2788a9359 /contrib/run-script-sygusComp2019-GENERAL-s | |
parent | 1c57b6f8e0847d682dbee2f79717290cb3449883 (diff) |
adding runscripts for syguscomp2019 (#3118)
Diffstat (limited to 'contrib/run-script-sygusComp2019-GENERAL-s')
-rwxr-xr-x | contrib/run-script-sygusComp2019-GENERAL-s | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/contrib/run-script-sygusComp2019-GENERAL-s b/contrib/run-script-sygusComp2019-GENERAL-s new file mode 100755 index 000000000..2a19a14b5 --- /dev/null +++ b/contrib/run-script-sygusComp2019-GENERAL-s @@ -0,0 +1,36 @@ +#!/bin/bash + +cvc4=./cvc4 +bench="$1" + +function runl { + limit=$1; shift; + ulimit -S -t "$limit";$cvc4 --lang=sygus2 --no-checking --no-interactive --default-dag-thresh=0 "$@" $bench 2>/dev/null +} + +function trywith { + sol=$(runl $@) + status=$? + if [ $status -ne 134 ]; then + echo $sol |& + (read result w1 w2; + case "$result" in + unsat) + case "$w1" in + "(define-fun") echo "$w1 $w2";cat;exit 0;; + esac; exit 1;; + esac; exit 1) + if [ ${PIPESTATUS[1]} -eq 0 ]; then exit 0; fi + fi +} + +function finishwith { + $cvc4 --lang=sygus2 --no-checking --no-interactive --default-dag-thresh=0 "$@" $bench 2>/dev/null | + (read result w1; + case "$result" in + unsat) echo "$w1";cat;exit 0;; + esac) +} + +trywith 5 --sygus-active-gen=none --cegqi-si=none --sygus-crepair-abort --sygus-repair-const +finishwith --sygus-active-gen=none --cegqi-si=none |