Skip to content

Commit

Permalink
Added also other orders and namings of "redundant" unsat-core regress…
Browse files Browse the repository at this point in the history
…ion tests
  • Loading branch information
Tomaqa committed Nov 4, 2024
1 parent 629f5c7 commit d80158a
Show file tree
Hide file tree
Showing 84 changed files with 587 additions and 0 deletions.
16 changes: 16 additions & 0 deletions test/regression/unsatcores/generic/redundant-even-named-mix.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)
(assert (! b2 :named a2))
(assert (and b1 b2))
(assert (! (or b1 b2) :named x2))
(assert (not b1))
(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,3 @@
unsat
(
)
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
(set-option :produce-unsat-cores true)
(set-option :minimal-unsat-cores true)

(set-logic QF_UF)

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

(assert b1)
(assert (! b2 :named a2))
(assert (and b1 b2))
(assert (! (or b1 b2) :named x2))
(assert (not b1))
(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,3 @@
unsat
(
)
16 changes: 16 additions & 0 deletions test/regression/unsatcores/generic/redundant-even-named-swap.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) :named x2))
(assert (xor b1 b2))
(assert (! b1 :named a1))
(assert b2)
(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,3 @@
unsat
(
)
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
(set-option :produce-unsat-cores true)
(set-option :print-cores-full true)

(set-logic QF_UF)

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

(assert (and b1 b2))
(assert (! (or b1 b2) :named x2))
(assert (xor b1 b2))
(assert (! b1 :named a1))
(assert b2)
(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,5 @@
unsat
(
(and b1 b2)
(xor b1 b2)
)
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
(set-option :produce-unsat-cores true)
(set-option :minimal-unsat-cores true)

(set-logic QF_UF)

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

(assert (and b1 b2))
(assert (! (or b1 b2) :named x2))
(assert (xor b1 b2))
(assert (! b1 :named a1))
(assert b2)
(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,3 @@
unsat
(
)
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
(set-option :produce-unsat-cores true)
(set-option :minimal-unsat-cores true)
(set-option :print-cores-full true)

(set-logic QF_UF)

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

(assert (and b1 b2))
(assert (! (or b1 b2) :named x2))
(assert (xor b1 b2))
(assert (! b1 :named a1))
(assert b2)
(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,5 @@
unsat
(
(and b1 b2)
(xor b1 b2)
)
16 changes: 16 additions & 0 deletions test/regression/unsatcores/generic/redundant-even-named.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)
(assert (! b2 :named a2))
(assert (not b1))
(assert (! (and b1 b2) :named x1))
(assert (or b1 b2))
(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,3 @@
unsat
(
)
17 changes: 17 additions & 0 deletions test/regression/unsatcores/generic/redundant-even-named_full.smt2
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
(set-option :produce-unsat-cores true)
(set-option :print-cores-full true)

(set-logic QF_UF)

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

(assert b1)
(assert (! b2 :named a2))
(assert (not b1))
(assert (! (and b1 b2) :named x1))
(assert (or b1 b2))
(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,5 @@
unsat
(
b1
(not b1)
)
17 changes: 17 additions & 0 deletions test/regression/unsatcores/generic/redundant-even-named_min.smt2
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
(set-option :produce-unsat-cores true)
(set-option :minimal-unsat-cores true)

(set-logic QF_UF)

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

(assert b1)
(assert (! b2 :named a2))
(assert (not b1))
(assert (! (and b1 b2) :named x1))
(assert (or b1 b2))
(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,3 @@
unsat
(
)
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
(set-option :produce-unsat-cores true)
(set-option :minimal-unsat-cores true)
(set-option :print-cores-full true)

(set-logic QF_UF)

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

(assert b1)
(assert (! b2 :named a2))
(assert (not b1))
(assert (! (and b1 b2) :named x1))
(assert (or b1 b2))
(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,5 @@
unsat
(
b1
(not b1)
)
16 changes: 16 additions & 0 deletions test/regression/unsatcores/generic/redundant-half1-named-mix.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 (! (and b1 b2) :named x1))
(assert (or b1 b2))
(assert (not b1))
(assert (xor b1 b2))

(check-sat)
(get-unsat-core)
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
unsat
(
a1
)
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
(set-option :produce-unsat-cores true)
(set-option :minimal-unsat-cores true)

(set-logic QF_UF)

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

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

(check-sat)
(get-unsat-core)
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
unsat
(
a1
)
16 changes: 16 additions & 0 deletions test/regression/unsatcores/generic/redundant-half2-named-mix.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)
(assert b2)
(assert (and b1 b2))
(assert (! (or b1 b2) :named x2))
(assert (! (not b1) :named a3))
(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,4 @@
unsat
(
a3
)
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
(set-option :produce-unsat-cores true)
(set-option :minimal-unsat-cores true)

(set-logic QF_UF)

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

(assert b1)
(assert b2)
(assert (and b1 b2))
(assert (! (or b1 b2) :named x2))
(assert (! (not b1) :named a3))
(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,4 @@
unsat
(
a3
)
16 changes: 16 additions & 0 deletions test/regression/unsatcores/generic/redundant-mix.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)
(assert b2)
(assert (not b1))
(assert (and b1 b2))
(assert (or b1 b2))
(assert (xor b1 b2))

(check-sat)
(get-unsat-core)
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
unsat
(
)
17 changes: 17 additions & 0 deletions test/regression/unsatcores/generic/redundant-mix_full.smt2
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
(set-option :produce-unsat-cores true)
(set-option :print-cores-full true)

(set-logic QF_UF)

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

(assert b1)
(assert b2)
(assert (not b1))
(assert (and b1 b2))
(assert (or b1 b2))
(assert (xor b1 b2))

(check-sat)
(get-unsat-core)
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
unsat
(
b1
(not b1)
)
17 changes: 17 additions & 0 deletions test/regression/unsatcores/generic/redundant-mix_min.smt2
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
(set-option :produce-unsat-cores true)
(set-option :minimal-unsat-cores true)

(set-logic QF_UF)

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

(assert b1)
(assert b2)
(assert (not b1))
(assert (and b1 b2))
(assert (or b1 b2))
(assert (xor b1 b2))

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

0 comments on commit d80158a

Please sign in to comment.