Skip to content

Commit e754de7

Browse files
authored
Merge pull request #3476 from diffblue/smt2_use_format
smt2_solver: use smt2_format instead of .pretty()
2 parents f0c59b5 + 4b3d775 commit e754de7

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/solvers/smt2/smt2_solver.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -167,9 +167,7 @@ void smt2_solvert::command(const std::string &c)
167167
// this is a command that Z3 appears to implement
168168
exprt e=expression();
169169
if(e.is_not_nil())
170-
{
171-
std::cout << e.pretty() << '\n'; // need to do an 'smt2_format'
172-
}
170+
std::cout << smt2_format(e) << '\n';
173171
}
174172
else if(c == "get-value")
175173
{
@@ -237,7 +235,7 @@ void smt2_solvert::command(const std::string &c)
237235
const symbol_tablet symbol_table;
238236
const namespacet ns(symbol_table);
239237
exprt e_simplified=simplify_expr(e, ns);
240-
std::cout << e.pretty() << '\n'; // need to do an 'smt2_format'
238+
std::cout << smt2_format(e) << '\n';
241239
}
242240
}
243241
#if 0

0 commit comments

Comments
 (0)