diff options
author | Andrew Reynolds <andrew.j.reynolds@gmail.com> | 2019-10-11 14:00:56 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-11 14:00:56 -0500 |
commit | ef7e56f4217ece19b1caf743e5b1db0d3f549226 (patch) | |
tree | 4cbda5ff1b3ebfeaae68dc0268467503cfb29faa /test/regress | |
parent | 54449d5a9bd8e0de1a32aa35895f4edae51c5e45 (diff) |
Check that logic is set when synth-fun command is encountered (#3384)
Diffstat (limited to 'test/regress')
-rw-r--r-- | test/regress/CMakeLists.txt | 1 | ||||
-rw-r--r-- | test/regress/regress0/sygus/no-logic.sy | 14 |
2 files changed, 15 insertions, 0 deletions
diff --git a/test/regress/CMakeLists.txt b/test/regress/CMakeLists.txt index 96de4bafc..8d69a1a69 100644 --- a/test/regress/CMakeLists.txt +++ b/test/regress/CMakeLists.txt @@ -909,6 +909,7 @@ set(regress_0_tests regress0/sygus/issue3356-syg-inf-usort.smt2 regress0/sygus/let-ringer.sy regress0/sygus/let-simp.sy + regress0/sygus/no-logic.sy regress0/sygus/no-syntax-test-bool.sy regress0/sygus/no-syntax-test.sy regress0/sygus/parity-AIG-d0.sy diff --git a/test/regress/regress0/sygus/no-logic.sy b/test/regress/regress0/sygus/no-logic.sy new file mode 100644 index 000000000..76584d265 --- /dev/null +++ b/test/regress/regress0/sygus/no-logic.sy @@ -0,0 +1,14 @@ +; COMMAND-LINE: --sygus-out=status --lang=sygus2 +; EXPECT-ERROR: no-logic.sy:7.10: No set-logic command was given before this point. +; EXPECT-ERROR: no-logic.sy:7.10: CVC4 will make all theories available. +; EXPECT-ERROR: no-logic.sy:7.10: Consider setting a stricter logic for (likely) better performance. +; EXPECT-ERROR: no-logic.sy:7.10: To suppress this warning in the future use (set-logic ALL). +; EXPECT: unsat +(synth-fun f ((x Int)) Int + ((Start Int)) + ( + (Start Int (x)) + ) +) + +(check-synth) |