3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-08-09 20:50:50 +00:00

update to logging

This commit is contained in:
Nikolaj Bjorner 2019-12-04 23:08:41 +03:00
parent 20754bc72d
commit 7e415c1b69
9 changed files with 54 additions and 26 deletions

View file

@ -103,9 +103,9 @@ namespace smt {
std::ostream& context::display_literal_smt2(std::ostream& out, literal l) const {
if (l.sign())
out << " (not " << mk_pp(bool_var2expr(l.var()), m) << ") ";
out << "(not " << mk_pp(bool_var2expr(l.var()), m) << ") ";
else
out << " " << mk_pp(bool_var2expr(l.var()), m) << " ";
out << mk_pp(bool_var2expr(l.var()), m) << " ";
return out;
}
@ -173,8 +173,7 @@ namespace smt {
}
std::ostream& context::display_clause_smt2(std::ostream & out, clause const& cls) const {
cls.display_smt2(out, m, m_bool_var2expr.c_ptr());
return out;
return display_literals_smt2(out, cls.get_num_literals(), cls.begin());
}
std::ostream& context::display_clauses(std::ostream & out, ptr_vector<clause> const & v) const {
@ -604,7 +603,8 @@ namespace smt {
case b_justification::JUSTIFICATION: {
literal_vector lits;
const_cast<conflict_resolution&>(*m_conflict_resolution).justification2literals(j.get_justification(), lits);
out << "justification " << j.get_justification()->get_from_theory() << ": " << lits;
out << "justification " << j.get_justification()->get_from_theory() << ": ";
display_literals_smt2(out, lits);
break;
}
default: