3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-08 10:25:18 +00:00

print literals more compactly

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2019-05-24 15:39:35 +02:00
parent 8243139fb0
commit 2d0ff7d68a
2 changed files with 3 additions and 5 deletions

View file

@ -1424,9 +1424,7 @@ namespace smt {
}
void context::add_lit_occs(clause * cls) {
unsigned num_lits = cls->get_num_literals();
for (unsigned i = 0; i < num_lits; i++) {
literal l = cls->get_literal(i);
for (literal l : *cls) {
m_lit_occs[l.index()].insert(cls);
}
}

View file

@ -30,9 +30,9 @@ namespace smt {
else if (*this == null_literal)
out << "null";
else if (sign())
out << "(not " << mk_pp(bool_var2expr_map[var()], m) << ")";
out << "(not " << mk_bounded_pp(bool_var2expr_map[var()], m) << ")";
else
out << mk_pp(bool_var2expr_map[var()], m);
out << mk_bounded_pp(bool_var2expr_map[var()], m);
}
void literal::display_compact(std::ostream & out, expr * const * bool_var2expr_map) const {