3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-06-22 13:53:39 +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:
Nikolaj Bjorner 2019-12-09 11:10:37 +03:00
parent ebb7d60c75
commit 5cecd986e2
3 changed files with 8 additions and 2 deletions

View file

@ -188,9 +188,12 @@ namespace smt {
// A conflict is usually a single justification. That is, a justification
// for false. If m_not_l is not null_literal, then m_conflict is a
// justification for l, and the conflict is union of m_no_l and m_conflict;
// justification for l, and the conflict is union of m_not_l and m_conflict;
// m_empty_clause is set to ensure that an empty clause generated in deep scope
// levels survives to the base level.
b_justification m_conflict;
literal m_not_l;
bool m_empty_clause;
scoped_ptr<conflict_resolution> m_conflict_resolution;
proof_ref m_unsat_proof;