Skip to content

Commit

Permalink
fix #2309
Browse files Browse the repository at this point in the history
Signed-off-by: Nikolaj Bjorner <[email protected]>
  • Loading branch information
NikolajBjorner committed May 31, 2019
1 parent f1dee93 commit e79542c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ast/ast_smt_pp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ symbol smt_renaming::fix_symbol(symbol s, int k) {
std::ostringstream buffer;
char const * data = s.is_numerical() ? "" : s.bare_str();

if (k == 0 && *data) {
if (k == 0 && data && *data) {
if (s.is_numerical()) {
return s;
}
Expand Down Expand Up @@ -664,7 +664,7 @@ class smt_printer {
if (s.is_numerical()) {
sz += 7;
}
else {
else if (s.bare_str()) {
sz += 3 + static_cast<unsigned>(strlen(s.bare_str()));
}
for (unsigned i = 0; i < a->get_num_args() && sz <= m_line_length; ++i) {
Expand Down

0 comments on commit e79542c

Please sign in to comment.