Skip to content

Commit

Permalink
Few regression tests on unsat cores with more possibilities
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomaqa committed Sep 10, 2024
1 parent c23d1bf commit 5f206b7
Show file tree
Hide file tree
Showing 9 changed files with 54 additions and 0 deletions.
16 changes: 16 additions & 0 deletions test/regression/base/generic/redundant_unsat_core.smt2
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
(set-option :produce-unsat-cores true)

(set-logic QF_UF)

(declare-const b1 Bool)
(declare-const b2 Bool)

(assert (! b1 :named a1))
(assert (! b2 :named a2))
(assert (! (not b1) :named a3))
(assert (! (and b1 b2) :named x1))
(assert (! (or b1 b2) :named x2))
(assert (! (xor b1 b2) :named x3))

(check-sat)
(get-unsat-core)
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
unsat
( a1 a3 )
16 changes: 16 additions & 0 deletions test/regression/base/generic/redundant_unsat_core2.smt2
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
(set-option :produce-unsat-cores true)

(set-logic QF_UF)

(declare-const b1 Bool)
(declare-const b2 Bool)

(assert (! (and b1 b2) :named x1))
(assert (! (or b1 b2) :named x2))
(assert (! (xor b1 b2) :named x3))
(assert (! b1 :named a1))
(assert (! b2 :named a2))
(assert (! (not b1) :named a3))

(check-sat)
(get-unsat-core)
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
unsat
( x1 x3 )
16 changes: 16 additions & 0 deletions test/regression/base/generic/redundant_unsat_core3.smt2
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
(set-option :produce-unsat-cores true)

(set-logic QF_UF)

(declare-const b1 Bool)
(declare-const b2 Bool)

(assert (and b1 b2))
(assert (or b1 b2))
(assert (xor b1 b2))
(assert (! b1 :named a1))
(assert (! b2 :named a2))
(assert (! (not b1) :named a3))

(check-sat)
(get-unsat-core)
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
unsat
( )

0 comments on commit 5f206b7

Please sign in to comment.