mirror of
https://github.com/Z3Prover/z3
synced 2025-06-19 04:13:38 +00:00
print literals more compactly
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
8243139fb0
commit
2d0ff7d68a
2 changed files with 3 additions and 5 deletions
|
@ -1424,9 +1424,7 @@ namespace smt {
|
||||||
}
|
}
|
||||||
|
|
||||||
void context::add_lit_occs(clause * cls) {
|
void context::add_lit_occs(clause * cls) {
|
||||||
unsigned num_lits = cls->get_num_literals();
|
for (literal l : *cls) {
|
||||||
for (unsigned i = 0; i < num_lits; i++) {
|
|
||||||
literal l = cls->get_literal(i);
|
|
||||||
m_lit_occs[l.index()].insert(cls);
|
m_lit_occs[l.index()].insert(cls);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -30,9 +30,9 @@ namespace smt {
|
||||||
else if (*this == null_literal)
|
else if (*this == null_literal)
|
||||||
out << "null";
|
out << "null";
|
||||||
else if (sign())
|
else if (sign())
|
||||||
out << "(not " << mk_pp(bool_var2expr_map[var()], m) << ")";
|
out << "(not " << mk_bounded_pp(bool_var2expr_map[var()], m) << ")";
|
||||||
else
|
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 {
|
void literal::display_compact(std::ostream & out, expr * const * bool_var2expr_map) const {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue