Add regressions for fixed issues (#7495)
authorAndrew Reynolds <andrew.j.reynolds@gmail.com>
Tue, 26 Oct 2021 17:10:50 +0000 (12:10 -0500)
committerGitHub <noreply@github.com>
Tue, 26 Oct 2021 17:10:50 +0000 (17:10 +0000)
Fixes #4656. Fixes #5234. These do not occur on master.

test/regress/CMakeLists.txt
test/regress/regress0/cores/issue5234-uc-ua.smt2 [new file with mode: 0644]
test/regress/regress0/unconstrained/issue4656-bool-term-vars.smt2 [new file with mode: 0644]

index 8263152dda4cc5103afccee73eaee4b8c3d5874e..2992612842a9091c9cd2904deb5c12739c8ee17d 100644 (file)
@@ -449,6 +449,7 @@ set(regress_0_tests
   regress0/cores/issue4971-2.smt2
   regress0/cores/issue4971-3.smt2
   regress0/cores/issue5079.smt2
+  regress0/cores/issue5234-uc-ua.smt2 
   regress0/cores/issue5238.smt2
   regress0/cores/issue5902.smt2
   regress0/cores/issue5908.smt2
@@ -1453,6 +1454,7 @@ set(regress_0_tests
   regress0/unconstrained/geq.smt2
   regress0/unconstrained/gt.smt2
   regress0/unconstrained/issue4644.smt2
+  regress0/unconstrained/issue4656-bool-term-vars.smt2
   regress0/unconstrained/ite.smt2
   regress0/unconstrained/leq.smt2
   regress0/unconstrained/lt.smt2
diff --git a/test/regress/regress0/cores/issue5234-uc-ua.smt2 b/test/regress/regress0/cores/issue5234-uc-ua.smt2
new file mode 100644 (file)
index 0000000..ab31ec7
--- /dev/null
@@ -0,0 +1,12 @@
+; EXPECT: unsat
+; EXPECT: ()
+(set-option :incremental true)
+(set-option :check-unsat-cores true)
+(set-option :produce-unsat-assumptions true)
+(set-logic ALL)
+(declare-const a Bool)
+(declare-const b Bool)
+(declare-const c Bool)
+(assert (distinct a b c))
+(check-sat-assuming (c))
+(get-unsat-assumptions)
diff --git a/test/regress/regress0/unconstrained/issue4656-bool-term-vars.smt2 b/test/regress/regress0/unconstrained/issue4656-bool-term-vars.smt2
new file mode 100644 (file)
index 0000000..cd61544
--- /dev/null
@@ -0,0 +1,12 @@
+(set-logic QF_AUFBVLIA)
+(set-info :status unsat)
+(declare-fun a (Bool) Bool)
+(declare-fun b (Bool) Bool)
+(declare-fun c (Bool) Bool)
+(declare-fun d () Bool)
+(declare-fun e () Bool)
+(declare-fun f () Bool)
+(assert (distinct (a d) (a e)))
+(assert (distinct (b e) (b f)))
+(assert (distinct (c f) (c d)))
+(check-sat)