mirror of
https://github.com/Z3Prover/z3
synced 2025-04-24 01:25:31 +00:00
fix validator bug returning true for unprocessed case, bug reported in #6116
This commit is contained in:
parent
ce1f3987d9
commit
c6263587c3
3 changed files with 14 additions and 17 deletions
|
@ -355,8 +355,7 @@ namespace euf {
|
|||
if (m_relevancy.enabled())
|
||||
m_relevancy.propagate();
|
||||
if (m_egraph.inconsistent()) {
|
||||
unsigned lvl = s().scope_lvl();
|
||||
s().set_conflict(sat::justification::mk_ext_justification(lvl, conflict_constraint().to_index()));
|
||||
set_conflict(conflict_constraint().to_index());
|
||||
return true;
|
||||
}
|
||||
bool propagated1 = false;
|
||||
|
|
|
@ -372,21 +372,18 @@ namespace q {
|
|||
}
|
||||
|
||||
void ematch::propagate(bool is_conflict, unsigned idx, sat::ext_justification_idx j_idx) {
|
||||
if (is_conflict) {
|
||||
if (is_conflict)
|
||||
++m_stats.m_num_conflicts;
|
||||
ctx.set_conflict(j_idx);
|
||||
}
|
||||
else {
|
||||
else
|
||||
++m_stats.m_num_propagations;
|
||||
auto& j = justification::from_index(j_idx);
|
||||
sat::literal_vector lits;
|
||||
lits.push_back(~j.m_clause.m_literal);
|
||||
for (unsigned i = 0; i < j.m_clause.size(); ++i)
|
||||
lits.push_back(instantiate(j.m_clause, j.m_binding, j.m_clause[i]));
|
||||
m_qs.log_instantiation(lits);
|
||||
m_qs.add_clause(lits);
|
||||
}
|
||||
|
||||
|
||||
auto& j = justification::from_index(j_idx);
|
||||
sat::literal_vector lits;
|
||||
lits.push_back(~j.m_clause.m_literal);
|
||||
for (unsigned i = 0; i < j.m_clause.size(); ++i)
|
||||
lits.push_back(instantiate(j.m_clause, j.m_binding, j.m_clause[i]));
|
||||
m_qs.log_instantiation(lits);
|
||||
m_qs.add_clause(lits);
|
||||
}
|
||||
|
||||
bool ematch::flush_prop_queue() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue