3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-05-05 23:05:46 +00:00

log justifications during conflict resolution

This commit is contained in:
Jakob Rath 2022-01-28 15:50:14 +01:00
parent 0eb0306ae2
commit 67647433ba
3 changed files with 23 additions and 2 deletions

View file

@ -122,4 +122,13 @@ namespace polysat {
}
return out;
}
std::ostream& bool_var_manager::display_justification(sat::literal lit, std::ostream& out) const {
out << m_kind[lit.var()];
if (is_assigned(lit))
out << " @ " << level(lit);
if (is_bool_propagation(lit))
out << " by " << show_deref(reason(lit));
return out;
}
}