3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-26 18:45:33 +00:00

improve tracing

Signed-off-by: Lev Nachmanson <levnach@hotmail.com>
This commit is contained in:
Lev Nachmanson 2019-07-29 11:06:47 -07:00
parent 9dbd8d3d46
commit b9483d0aff
3 changed files with 19 additions and 10 deletions

View file

@ -92,15 +92,23 @@ std::ostream& intervals::display(std::ostream& out, const interval& i) const {
m_dep_manager.linearize(i.m_lower_dep, expl);
{
lp::explanation e(expl);
out << "\nlower constraints\n";
m_core->print_explanation(e, out);
expl.clear();
if (!expl.empty()) {
out << "\nlower constraints\n";
m_core->print_explanation(e, out);
expl.clear();
} else {
out << "\nno lower constraints\n";
}
}
m_dep_manager.linearize(i.m_upper_dep, expl);
{
lp::explanation e(expl);
out << "upper constraints\n";
m_core->print_explanation(e, out);
if (!expl.empty()) {
out << "upper constraints\n";
m_core->print_explanation(e, out);
}else {
out << "no upper constraints\n";
}
}
return out;
}