summaryrefslogtreecommitdiff
path: root/test/regress
diff options
context:
space:
mode:
authorAndrew Reynolds <andrew.j.reynolds@gmail.com>2020-03-20 17:29:41 -0500
committerGitHub <noreply@github.com>2020-03-20 17:29:41 -0500
commit0a0cee14c38cac0f87772c192ef387dcd36b6977 (patch)
tree43b96661c05e742ff9b296439e9df20ab02cac7b /test/regress
parent537bb89c664375aa0fe0143e65d255de34bd611c (diff)
Fix variable shadowing issue in sygus-inference (#4121)
This makes the sygus-inference preprocessing pass avoid variable shadowing, which technically could happen by forcing unexpected options. Fixes #4083.
Diffstat (limited to 'test/regress')
-rw-r--r--test/regress/CMakeLists.txt1
-rw-r--r--test/regress/regress1/sygus/issue4083-var-shadow.smt28
2 files changed, 9 insertions, 0 deletions
diff --git a/test/regress/CMakeLists.txt b/test/regress/CMakeLists.txt
index 50ef63780..a8ec4a665 100644
--- a/test/regress/CMakeLists.txt
+++ b/test/regress/CMakeLists.txt
@@ -1867,6 +1867,7 @@ set(regress_1_tests
regress1/sygus/issue3995-fmf-var-op.smt2
regress1/sygus/issue4009-qep.smt2
regress1/sygus/issue4025-no-rlv-cond.smt2
+ regress1/sygus/issue4083-var-shadow.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/issue4083-var-shadow.smt2 b/test/regress/regress1/sygus/issue4083-var-shadow.smt2
new file mode 100644
index 000000000..bb9434860
--- /dev/null
+++ b/test/regress/regress1/sygus/issue4083-var-shadow.smt2
@@ -0,0 +1,8 @@
+(set-logic ALL)
+(set-option :miniscope-quant true)
+(set-option :sygus-inference true)
+(set-option :var-ineq-elim-quant false)
+(set-info :status unsat)
+(declare-fun b ( Int ) Bool)
+(assert (forall (( c Int ) ( d Int )) (and (> d 3 ) (xor (>= c d) (b c)))))
+(check-sat)
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback