mirror of
https://github.com/Z3Prover/z3
synced 2025-05-08 00:05:46 +00:00
remove last references to unit clauses
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
cd76fd9edd
commit
ce12c51083
5 changed files with 2 additions and 26 deletions
|
@ -121,18 +121,9 @@ namespace polysat {
|
|||
set_conflict(c /*, dep */);
|
||||
return;
|
||||
}
|
||||
#if 0
|
||||
clause_ref unit = clause::from_unit(c);
|
||||
m_constraints.store(unit.get(), *this);
|
||||
c->set_unit_clause(unit.get());
|
||||
(void) dep; // dependencies go into justification
|
||||
assign_bool(m_level, lit, c->unit_clause(), nullptr);
|
||||
#else
|
||||
// just add them as axioms, tracked by dependencies
|
||||
m_bvars.assign(lit, m_level, nullptr, nullptr, dep);
|
||||
m_trail.push_back(trail_instr_t::assign_bool_i);
|
||||
m_search.push_boolean(lit);
|
||||
#endif
|
||||
|
||||
#if ENABLE_LINEAR_SOLVER
|
||||
m_linear_solver.new_constraint(*c.get());
|
||||
|
@ -743,14 +734,8 @@ namespace polysat {
|
|||
LOG(" Literal " << lit << " is: " << lit2cnstr(lit));
|
||||
SASSERT(m_bvars.value(lit) != l_true);
|
||||
}
|
||||
if (lemma.empty())
|
||||
std::cout << lemma << "\n";
|
||||
SASSERT(!lemma.empty());
|
||||
m_constraints.store(&lemma, *this);
|
||||
if (lemma.size() == 1) {
|
||||
signed_constraint c = lit2cnstr(lemma[0]);
|
||||
c->set_unit_clause(&lemma);
|
||||
}
|
||||
propagate();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue