mirror of
https://github.com/Z3Prover/z3
synced 2025-04-23 09:05:31 +00:00
better encodings for at-most-1, #755
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
5d9820f3e2
commit
8d2b70a5e2
17 changed files with 232 additions and 253 deletions
|
@ -3053,6 +3053,12 @@ namespace sat {
|
|||
return r;
|
||||
}
|
||||
|
||||
// -----------------------
|
||||
//
|
||||
// Extraction of mutexes
|
||||
//
|
||||
// -----------------------
|
||||
|
||||
lbool solver::find_mutexes(literal_vector const& lits, vector<literal_vector> & mutexes) {
|
||||
literal_vector ps(lits);
|
||||
m_user_bin_clauses.reset();
|
||||
|
@ -3111,6 +3117,12 @@ namespace sat {
|
|||
}
|
||||
}
|
||||
|
||||
// -----------------------
|
||||
//
|
||||
// Consequence generation.
|
||||
//
|
||||
// -----------------------
|
||||
|
||||
lbool solver::get_consequences(literal_vector const& asms, bool_var_vector const& vars, vector<literal_vector>& conseq) {
|
||||
literal_vector lits;
|
||||
lbool is_sat = check(asms.size(), asms.c_ptr());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue