Skip to content

smt2_solver: use smt2_format instead of .pretty() #3476

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 28, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions src/solvers/smt2/smt2_solver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -167,9 +167,7 @@ void smt2_solvert::command(const std::string &c)
// this is a command that Z3 appears to implement
exprt e=expression();
if(e.is_not_nil())
{
std::cout << e.pretty() << '\n'; // need to do an 'smt2_format'
}
std::cout << smt2_format(e) << '\n';
}
else if(c == "get-value")
{
Expand Down Expand Up @@ -237,7 +235,7 @@ void smt2_solvert::command(const std::string &c)
const symbol_tablet symbol_table;
const namespacet ns(symbol_table);
exprt e_simplified=simplify_expr(e, ns);
std::cout << e.pretty() << '\n'; // need to do an 'smt2_format'
std::cout << smt2_format(e) << '\n';
}
}
#if 0
Expand Down