summaryrefslogtreecommitdiff
path: root/test/regress/regress1
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/regress/regress1
parentaacd3dda388891bf2302555d0754f1e2a19368b7 (diff)
Fix degenerate case of sygus grammar construction for 0-argument Bools (#2260)
Diffstat (limited to 'test/regress/regress1')
-rw-r--r--test/regress/regress1/sygus/constant-dec-tree-bug.sy15
1 files changed, 15 insertions, 0 deletions
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