mirror of
https://github.com/Z3Prover/z3
synced 2025-04-15 13:28:47 +00:00
fix pretty printer bug found by ken
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
9e868cdef3
commit
dd90667cc7
|
@ -537,7 +537,7 @@ class smt_printer {
|
||||||
}
|
}
|
||||||
|
|
||||||
void print_bound(symbol const& name) {
|
void print_bound(symbol const& name) {
|
||||||
if (!m_is_smt2 && (name.is_numerical() || '?' != name.bare_str()[0])) {
|
if (!is_smt2 && (name.is_numerical() || '?' != name.bare_str()[0])) {
|
||||||
m_out << "?";
|
m_out << "?";
|
||||||
}
|
}
|
||||||
m_out << name;
|
m_out << name;
|
||||||
|
@ -561,7 +561,7 @@ class smt_printer {
|
||||||
m_out << "(";
|
m_out << "(";
|
||||||
print_bound(m_renaming.get_symbol(q->get_decl_name(i)));
|
print_bound(m_renaming.get_symbol(q->get_decl_name(i)));
|
||||||
m_out << " ";
|
m_out << " ";
|
||||||
visit_sort(s, !m_is-smt2);
|
visit_sort(s, true);
|
||||||
m_out << ") ";
|
m_out << ") ";
|
||||||
}
|
}
|
||||||
if (m_is_smt2) {
|
if (m_is_smt2) {
|
||||||
|
|
Loading…
Reference in a new issue