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

don't crash on null_literal

This commit is contained in:
Jakob Rath 2023-08-18 15:30:39 +02:00
parent 5bd35d764f
commit e09636065b

View file

@ -1643,6 +1643,8 @@ namespace polysat {
} }
std::ostream& lit_pp::display(std::ostream& out) const { std::ostream& lit_pp::display(std::ostream& out) const {
if (lit == sat::null_literal)
return out << "<null_literal>";
signed_constraint const c = s.lit2cnstr(lit); signed_constraint const c = s.lit2cnstr(lit);
out << lpad(5, lit) << ": " << rpad(30, c); out << lpad(5, lit) << ": " << rpad(30, c);
if (!c) if (!c)