-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Naive implementation of subset-minimal unsat core
- Loading branch information
Showing
32 changed files
with
673 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
(set-option :produce-unsat-cores true) | ||
(set-option :minimal-unsat-cores true) | ||
(set-logic QF_UF) | ||
(declare-fun b1 () Bool) | ||
(declare-fun b2 () Bool) | ||
(assert (! b1 :named a1)) | ||
(assert (! (and b1 b2) :named a2)) | ||
(assert (! (or (not b1) (not b2)) :named a3)) | ||
(check-sat) | ||
(get-unsat-core) | ||
(exit) |
Empty file.
2 changes: 2 additions & 0 deletions
2
test/regression/base/generic/overlap_min_unsat_core.smt2.expected.out
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
unsat | ||
( a2 a3 ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
(set-option :produce-unsat-cores true) | ||
(set-logic QF_UF) | ||
(declare-fun b1 () Bool) | ||
(declare-fun b2 () Bool) | ||
(assert (! b1 :named a1)) | ||
(assert (! (and b1 b2) :named a2)) | ||
(assert (! (or (not b1) (not b2)) :named a3)) | ||
(check-sat) | ||
(get-unsat-core) | ||
(exit) |
Empty file.
2 changes: 2 additions & 0 deletions
2
test/regression/base/generic/overlap_unsat_core.smt2.expected.out
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
unsat | ||
( a1 a2 a3 ) |
17 changes: 17 additions & 0 deletions
17
test/regression/base/generic/redundant_min_unsat_core.smt2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 (! (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.
2 changes: 2 additions & 0 deletions
2
test/regression/base/generic/redundant_min_unsat_core.smt2.expected.out
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
unsat | ||
( a1 a3 ) |
17 changes: 17 additions & 0 deletions
17
test/regression/base/generic/redundant_min_unsat_core2.smt2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) :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.
2 changes: 2 additions & 0 deletions
2
test/regression/base/generic/redundant_min_unsat_core2.smt2.expected.out
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
unsat | ||
( x1 x3 ) |
17 changes: 17 additions & 0 deletions
17
test/regression/base/generic/redundant_min_unsat_core3.smt2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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)) | ||
(assert (xor b1 b2)) | ||
(assert (! b1 :named a1)) | ||
(assert (! b2 :named a2)) | ||
(assert (! (not b1) :named a3)) | ||
|
||
(check-sat) | ||
(get-unsat-core) |
Empty file.
2 changes: 2 additions & 0 deletions
2
test/regression/base/generic/redundant_min_unsat_core3.smt2.expected.out
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
unsat | ||
( ) |
Oops, something went wrong.