diff options
author | Andrew Reynolds <andrew.j.reynolds@gmail.com> | 2018-08-06 16:36:23 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-06 16:36:23 -0500 |
commit | 4cd9597f8449bf7117cd76615f7b6a609620c0e9 (patch) | |
tree | ea64fddf730075a18d45bd7920fa3a6c7893997d /test | |
parent | aacd3dda388891bf2302555d0754f1e2a19368b7 (diff) |
Fix degenerate case of sygus grammar construction for 0-argument Bools (#2260)
Diffstat (limited to 'test')
-rw-r--r-- | test/regress/Makefile.tests | 1 | ||||
-rw-r--r-- | test/regress/regress1/sygus/constant-dec-tree-bug.sy | 15 |
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) |