mirror of
https://github.com/Z3Prover/z3
synced 2025-05-12 02:04:43 +00:00
track empty clause during pop
If a theory solver creates the empty clause it gets dropped during pop. By maintaining a variable m_empty_clause, the solver ensures that it retains the information that the search state is inconsistent.
This commit is contained in:
parent
ebb7d60c75
commit
5cecd986e2
3 changed files with 8 additions and 2 deletions
|
@ -75,6 +75,7 @@ namespace smt {
|
|||
m_phase_default(false),
|
||||
m_conflict(null_b_justification),
|
||||
m_not_l(null_literal),
|
||||
m_empty_clause(false),
|
||||
m_conflict_resolution(mk_conflict_resolution(m, *this, m_dyn_ack_manager, p, m_assigned_literals, m_watches)),
|
||||
m_unsat_proof(m),
|
||||
m_dyn_ack_manager(*this, p),
|
||||
|
@ -2395,9 +2396,10 @@ namespace smt {
|
|||
m_unsat_proof = nullptr;
|
||||
}
|
||||
m_base_scopes.shrink(new_lvl);
|
||||
m_empty_clause = false;
|
||||
}
|
||||
else {
|
||||
m_conflict = null_b_justification;
|
||||
m_conflict = m_empty_clause ? b_justification::mk_axiom() : null_b_justification;
|
||||
m_not_l = null_literal;
|
||||
}
|
||||
del_clauses(m_aux_clauses, s.m_aux_clauses_lim);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue