Skip to content

Commit e79542c

Browse files
fix #2309
Signed-off-by: Nikolaj Bjorner <[email protected]>
1 parent f1dee93 commit e79542c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ast/ast_smt_pp.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ symbol smt_renaming::fix_symbol(symbol s, int k) {
4646
std::ostringstream buffer;
4747
char const * data = s.is_numerical() ? "" : s.bare_str();
4848

49-
if (k == 0 && *data) {
49+
if (k == 0 && data && *data) {
5050
if (s.is_numerical()) {
5151
return s;
5252
}
@@ -664,7 +664,7 @@ class smt_printer {
664664
if (s.is_numerical()) {
665665
sz += 7;
666666
}
667-
else {
667+
else if (s.bare_str()) {
668668
sz += 3 + static_cast<unsigned>(strlen(s.bare_str()));
669669
}
670670
for (unsigned i = 0; i < a->get_num_args() && sz <= m_line_length; ++i) {

0 commit comments

Comments
 (0)