summaryrefslogtreecommitdiff
path: root/test/regress/regress0/sygus
diff options
context:
space:
mode:
authorAndrew Reynolds <andrew.j.reynolds@gmail.com>2019-10-11 14:00:56 -0500
committerGitHub <noreply@github.com>2019-10-11 14:00:56 -0500
commitef7e56f4217ece19b1caf743e5b1db0d3f549226 (patch)
tree4cbda5ff1b3ebfeaae68dc0268467503cfb29faa /test/regress/regress0/sygus
parent54449d5a9bd8e0de1a32aa35895f4edae51c5e45 (diff)
Check that logic is set when synth-fun command is encountered (#3384)
Diffstat (limited to 'test/regress/regress0/sygus')
-rw-r--r--test/regress/regress0/sygus/no-logic.sy14
1 files changed, 14 insertions, 0 deletions
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)
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback