summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAndrew Reynolds <andrew.j.reynolds@gmail.com>2018-08-06 16:36:23 -0500
committerGitHub <noreply@github.com>2018-08-06 16:36:23 -0500
commit4cd9597f8449bf7117cd76615f7b6a609620c0e9 (patch)
treeea64fddf730075a18d45bd7920fa3a6c7893997d /test
parentaacd3dda388891bf2302555d0754f1e2a19368b7 (diff)
Fix degenerate case of sygus grammar construction for 0-argument Bools (#2260)
Diffstat (limited to 'test')
-rw-r--r--test/regress/Makefile.tests1
-rw-r--r--test/regress/regress1/sygus/constant-dec-tree-bug.sy15
2 files changed, 16 insertions, 0 deletions
diff --git a/test/regress/Makefile.tests b/test/regress/Makefile.tests
index 6cbdfee26..b8479475f 100644
--- a/test/regress/Makefile.tests
+++ b/test/regress/Makefile.tests
@@ -1508,6 +1508,7 @@ REG1_TESTS = \
regress1/sygus/clock-inc-tuple.sy \
regress1/sygus/commutative.sy \
regress1/sygus/constant.sy \
+ regress1/sygus/constant-dec-tree-bug.sy \
regress1/sygus/constant-ite-bv.sy \
regress1/sygus/crci-ssb-unk.sy \
regress1/sygus/crcy-si-rcons.sy \
diff --git a/test/regress/regress1/sygus/constant-dec-tree-bug.sy b/test/regress/regress1/sygus/constant-dec-tree-bug.sy
new file mode 100644
index 000000000..15df2d507
--- /dev/null
+++ b/test/regress/regress1/sygus/constant-dec-tree-bug.sy
@@ -0,0 +1,15 @@
+; EXPECT: unsat
+; COMMAND-LINE: --sygus-out=status --sygus-unif
+
+(set-logic SAT)
+(synth-fun u ((x Int)) Int)
+(synth-fun f () Bool)
+(synth-fun g () Bool)
+(synth-fun h () Bool)
+
+(constraint (= (u 3) (+ (u 2) 2)))
+(constraint f)
+(constraint (not g))
+(constraint h)
+
+(check-synth)
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback