From 19f565aabe8ece904f67e1353ec67a5bf485fc97 Mon Sep 17 00:00:00 2001 From: Morgan Deters Date: Sun, 22 Jun 2014 02:51:31 -0400 Subject: [PATCH] Final fixes for smtcomp2014-application. --- contrib/run-script-smtcomp2014-application | 3 ++- src/main/driver_unified.cpp | 1 + src/parser/smt2/Smt2.g | 8 ++++---- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/contrib/run-script-smtcomp2014-application b/contrib/run-script-smtcomp2014-application index 1a9078994..53df6a927 100755 --- a/contrib/run-script-smtcomp2014-application +++ b/contrib/run-script-smtcomp2014-application @@ -14,12 +14,13 @@ if [ -z "$logic" ]; then echo 'ERROR: second line supposed to be set-logic, but got: "'"$line"'"' >&2 exit 1 fi +echo success function runcvc4 { # we run in this way for line-buffered input, otherwise memory's a # concern (plus it mimics what we'll end up getting from an # application-track trace runner?) - (echo "(set-logic $logic)"; cat) | $cvc4 -L smt2 --print-success --no-checking --no-interactive --tear-down-incremental "$@" + $cvc4 --force-logic="$logic" -L smt2 --print-success --no-checking --no-interactive --tear-down-incremental "$@" <&0- } case "$logic" in diff --git a/src/main/driver_unified.cpp b/src/main/driver_unified.cpp index 0cec616fd..d9b9694e5 100644 --- a/src/main/driver_unified.cpp +++ b/src/main/driver_unified.cpp @@ -444,6 +444,7 @@ int runCvc4(int argc, char* argv[], Options& opts) { } #ifdef CVC4_COMPETITION_MODE + *opts[options::out] << flush; // exit, don't return (don't want destructors to run) // _exit() from unistd.h doesn't run global destructors // or other on_exit/atexit stuff. diff --git a/src/parser/smt2/Smt2.g b/src/parser/smt2/Smt2.g index 63179cf42..ba9239963 100644 --- a/src/parser/smt2/Smt2.g +++ b/src/parser/smt2/Smt2.g @@ -1555,12 +1555,12 @@ symbol[std::string& id, PARSER_STATE->checkDeclaration(id, check, type); } } - | UNTERMINATED_QUOTED_SYMBOL + /*| UNTERMINATED_QUOTED_SYMBOL ( EOF { PARSER_STATE->unexpectedEOF("unterminated |quoted| symbol"); } | '\\' { PARSER_STATE->unexpectedEOF("backslash not permitted in |quoted| symbol"); } - ) + )*/ ; /** @@ -1801,9 +1801,9 @@ EMPTYSET_TOK: { PARSER_STATE->isTheoryEnabled(Smt2::THEORY_SETS) }? 'emptyset'; QUOTED_SYMBOL : '|' ~('|' | '\\')* '|' ; -UNTERMINATED_QUOTED_SYMBOL +/*UNTERMINATED_QUOTED_SYMBOL : '|' ~('|' | '\\')* - ; + ;*/ /** * Matches a keyword from the input. A keyword is a simple symbol prefixed -- 2.30.2