summaryrefslogtreecommitdiff
path: root/test/regress/regress1
diff options
context:
space:
mode:
authorAndrew Reynolds <andrew.j.reynolds@gmail.com>2020-02-26 11:47:05 -0600
committerGitHub <noreply@github.com>2020-02-26 11:47:05 -0600
commit2a274c84867a2974abc0b626349b934d520339b0 (patch)
treeba38f050cc21927407ec45bd9b14e8d9ab97b0ec /test/regress/regress1
parent40807e2f5f3b9d07e66dc2d2a7dde4c8aac98720 (diff)
Use default consts when not using any const during grammar normalization (#3807)
Fixes #3802. If we decide not to add the any constant constructor due to insufficient cegqi algorithms (or if the sort is Boolean), then we should add the default constants for a sort.
Diffstat (limited to 'test/regress/regress1')
-rw-r--r--test/regress/regress1/sygus/issue3802-default-consts.sy21
1 files changed, 21 insertions, 0 deletions
diff --git a/test/regress/regress1/sygus/issue3802-default-consts.sy b/test/regress/regress1/sygus/issue3802-default-consts.sy
new file mode 100644
index 000000000..10daee6ec
--- /dev/null
+++ b/test/regress/regress1/sygus/issue3802-default-consts.sy
@@ -0,0 +1,21 @@
+; EXPECT: unsat
+; COMMAND-LINE: --sygus-out=status
+(set-logic ALL)
+(synth-fun f
+ () Bool
+ ((B Bool))
+ (
+ (B Bool ((Constant Bool)))
+ )
+)
+(synth-fun g
+ ((x0 Int) (r Int)) Bool
+ ((B Bool) (I Int))
+ (
+ (B Bool ((= I I)))
+ (I Int (x0 r))
+ )
+)
+(constraint (=> f (g 2 2)))
+(constraint (not (=> f (g 0 1))))
+(check-synth)
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback