summaryrefslogtreecommitdiff
path: root/contrib/run-script-smtcomp2017-application
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/run-script-smtcomp2017-application')
-rwxr-xr-x[-rw-r--r--]contrib/run-script-smtcomp2017-application10
1 files changed, 8 insertions, 2 deletions
diff --git a/contrib/run-script-smtcomp2017-application b/contrib/run-script-smtcomp2017-application
index 528a5deab..ddcc1f0c6 100644..100755
--- a/contrib/run-script-smtcomp2017-application
+++ b/contrib/run-script-smtcomp2017-application
@@ -2,13 +2,19 @@
cvc4=./cvc4-application
-read line
+line=""
+while [[ -z "$line" ]]; do
+ read line
+done
if [ "$line" != '(set-option :print-success true)' ]; then
echo 'ERROR: first line supposed to be set-option :print-success, but got: "'"$line"'"' >&2
exit 1
fi
echo success
-read line
+line=""
+while [[ -z "$line" ]]; do
+ read line
+done
logic=$(expr "$line" : ' *(set-logic *\([A-Z_]*\) *) *$')
if [ -z "$logic" ]; then
echo 'ERROR: second line supposed to be set-logic, but got: "'"$line"'"' >&2
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback