mirror of
https://github.com/Z3Prover/z3
synced 2025-04-08 18:31:49 +00:00
Fixed issues with the pretty printer
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
parent
c98f0c8307
commit
6958b9cdb6
|
@ -28,6 +28,8 @@ Version 4.3.2
|
|||
|
||||
- Removed auxiliary constants created by the nnf tactic from Z3 models.
|
||||
|
||||
- Fixed problem in the pretty printer. It was not introducing quotes for attribute names such as |foo:10|.
|
||||
|
||||
Version 4.3.1
|
||||
=============
|
||||
|
||||
|
|
|
@ -501,7 +501,12 @@ class smt2_printer {
|
|||
}
|
||||
|
||||
format * pp_simple_attribute(char const * attr, symbol const & s) {
|
||||
return mk_compose(m(), mk_string(m(), attr), mk_string(m(), s.str().c_str()));
|
||||
std::string str;
|
||||
if (is_smt2_quoted_symbol(s))
|
||||
str = mk_smt2_quoted_symbol(s);
|
||||
else
|
||||
str = s.str();
|
||||
return mk_compose(m(), mk_string(m(), attr), mk_string(m(), str.c_str()));
|
||||
}
|
||||
|
||||
format * pp_labels(bool is_pos, buffer<symbol> const & names, format * f) {
|
||||
|
@ -851,7 +856,7 @@ class smt2_printer {
|
|||
buf.push_back(pp_simple_attribute(":weight ", q->get_weight()));
|
||||
}
|
||||
if (q->get_skid() != symbol::null) {
|
||||
buf.push_back(pp_simple_attribute(":skid ", q->get_skid()));
|
||||
buf.push_back(pp_simple_attribute(":skolemid ", q->get_skid()));
|
||||
}
|
||||
if (q->get_qid() != symbol::null) {
|
||||
#if 0
|
||||
|
|
Loading…
Reference in a new issue