3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-08-24 12:07:52 +00:00

nicer lit_pp

This commit is contained in:
Jakob Rath 2022-09-23 15:58:44 +02:00
parent a4f0e3a228
commit 4312611bd6
2 changed files with 69 additions and 21 deletions

View file

@ -994,12 +994,21 @@ namespace polysat {
std::ostream& lit_pp::display(std::ostream& out) const {
auto c = s.lit2cnstr(lit);
out << lit << ": " << c << " [";
out << " bvalue=" << s.m_bvars.value(lit);
if (s.m_bvars.is_assigned(lit))
out << " @" << s.m_bvars.level(lit);
out << " pwatched=" << c->is_pwatched();
out << " ]";
out << lpad(4, lit) << ": " << rpad(30, c) << " [";
out << " " << s.m_bvars.value(lit);
if (s.m_bvars.is_assigned(lit)) {
out << ' ';
if (s.m_bvars.is_assumption(lit))
out << "assert";
else if (s.m_bvars.is_bool_propagation(lit))
out << "bprop";
else if (s.m_bvars.is_value_propagation(lit))
out << "eval";
out << '@' << s.m_bvars.level(lit);
}
if (c->is_pwatched())
out << " pwatched";
out << " ]";
return out;
}