summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAndrew Reynolds <andrew.j.reynolds@gmail.com>2020-03-11 17:54:07 -0500
committerGitHub <noreply@github.com>2020-03-11 17:54:07 -0500
commit98178c539c4eb502d3f3c3c4f1fcf0600d229b46 (patch)
tree0cb046dfae455f9936ee872e1c7671c2cb521534 /test
parente47fa1305536d0e2d3c16ef2225d2b8534d5aa39 (diff)
Guard against null relevancy condition in SyGuS (#4033)
Fixes #4025. Also makes our sygus default grammar for strings (slightly) better by including a dummy character, which is required for solving the regression added by this PR. A more robust (but unintuitive to the user) solution would be to include str.from_code( Start_Int ).
Diffstat (limited to 'test')
-rw-r--r--test/regress/CMakeLists.txt1
-rw-r--r--test/regress/regress1/sygus/issue4025-no-rlv-cond.smt29
2 files changed, 10 insertions, 0 deletions
diff --git a/test/regress/CMakeLists.txt b/test/regress/CMakeLists.txt
index efd378596..36b2718a3 100644
--- a/test/regress/CMakeLists.txt
+++ b/test/regress/CMakeLists.txt
@@ -1858,6 +1858,7 @@ set(regress_1_tests
regress1/sygus/issue3944-div-rewrite.smt2
regress1/sygus/issue3947-agg-miniscope.smt2
regress1/sygus/issue4009-qep.smt2
+ regress1/sygus/issue4025-no-rlv-cond.smt2
regress1/sygus/large-const-simp.sy
regress1/sygus/let-bug-simp.sy
regress1/sygus/list-head-x.sy
diff --git a/test/regress/regress1/sygus/issue4025-no-rlv-cond.smt2 b/test/regress/regress1/sygus/issue4025-no-rlv-cond.smt2
new file mode 100644
index 000000000..a7c864544
--- /dev/null
+++ b/test/regress/regress1/sygus/issue4025-no-rlv-cond.smt2
@@ -0,0 +1,9 @@
+(set-logic ALL)
+(set-option :sygus-inference true)
+(set-option :sygus-sym-break false)
+(set-option :sygus-sym-break-lazy false)
+(set-option :sygus-sym-break-rlv false)
+(set-info :status sat)
+(declare-fun s () String)
+(assert (distinct s ""))
+(check-sat)
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback