diff options
author | Andrew Reynolds <andrew.j.reynolds@gmail.com> | 2021-01-21 12:07:50 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-21 12:07:50 -0600 |
commit | 98d2ca3ee48cb87e8baa7537c97016cc85ab048d (patch) | |
tree | 1735a3709837c57d519ed180082fcd38bcb65094 /test/regress | |
parent | a4c67b6e6a777c98aee9b9451f41984f6b5d1072 (diff) |
Add div, mod, abs in non-strict parsing mode (#5793)
The recent change to the parser currently breaks our performance on several critical applications, including the use of CVC4 in Facebook. We should only throw a parse error for div in linear logics when strict mode is enabled.
Diffstat (limited to 'test/regress')
4 files changed, 4 insertions, 1 deletions
diff --git a/test/regress/regress0/expect/scrub.08.sy b/test/regress/regress0/expect/scrub.08.sy index 58a8a3e76..9c3751a8c 100644 --- a/test/regress/regress0/expect/scrub.08.sy +++ b/test/regress/regress0/expect/scrub.08.sy @@ -1,5 +1,5 @@ ; REQUIRES: no-competition -; COMMAND-LINE: --lang=sygus2 --sygus-si=all --sygus-out=status --no-sygus-repair-const +; COMMAND-LINE: --lang=sygus2 --sygus-si=all --sygus-out=status --no-sygus-repair-const --strict-parsing ; ERROR-SCRUBBER: grep -o "Symbol 'div' not declared as a variable" ; EXPECT-ERROR: Symbol 'div' not declared as a variable ; EXIT: 1 diff --git a/test/regress/regress0/parser/linear_arithmetic_err1.smt2 b/test/regress/regress0/parser/linear_arithmetic_err1.smt2 index 219b59d44..f031cded8 100644 --- a/test/regress/regress0/parser/linear_arithmetic_err1.smt2 +++ b/test/regress/regress0/parser/linear_arithmetic_err1.smt2 @@ -1,4 +1,5 @@ ; REQUIRES: no-competition +; COMMAND-LINE: --strict-parsing ; SCRUBBER: grep -o "Symbol 'div' not declared as a variable" ; EXPECT: Symbol 'div' not declared as a variable ; EXIT: 1 diff --git a/test/regress/regress0/parser/linear_arithmetic_err2.smt2 b/test/regress/regress0/parser/linear_arithmetic_err2.smt2 index 893708b61..adaa0aff4 100644 --- a/test/regress/regress0/parser/linear_arithmetic_err2.smt2 +++ b/test/regress/regress0/parser/linear_arithmetic_err2.smt2 @@ -1,4 +1,5 @@ ; REQUIRES: no-competition +; COMMAND-LINE: --strict-parsing ; SCRUBBER: grep -o "Symbol 'mod' not declared as a variable" ; EXPECT: Symbol 'mod' not declared as a variable ; EXIT: 1 diff --git a/test/regress/regress0/parser/linear_arithmetic_err3.smt2 b/test/regress/regress0/parser/linear_arithmetic_err3.smt2 index 89748b36f..d875e4cbe 100644 --- a/test/regress/regress0/parser/linear_arithmetic_err3.smt2 +++ b/test/regress/regress0/parser/linear_arithmetic_err3.smt2 @@ -1,4 +1,5 @@ ; REQUIRES: no-competition +; COMMAND-LINE: --strict-parsing ; SCRUBBER: grep -o "Symbol 'abs' not declared as a variable" ; EXPECT: Symbol 'abs' not declared as a variable ; EXIT: 1 |