3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-12 20:18:18 +00:00
This commit is contained in:
Nikolaj Bjorner 2019-10-08 19:56:27 -07:00
commit 4192c81fae
3 changed files with 3 additions and 5 deletions

View file

@ -100,9 +100,7 @@ extern "C" {
solver2smt2_pp::solver2smt2_pp(ast_manager& m, char const* file): m_pp_util(m), m_out(file) { solver2smt2_pp::solver2smt2_pp(ast_manager& m, char const* file): m_pp_util(m), m_out(file) {
if (!m_out) { if (!m_out) {
std::string msg; throw default_exception("could not open " + std::string(file) + " for output");
msg = msg + "could not open " + file + " for output";
throw default_exception(msg.c_str());
} }
} }

View file

@ -79,7 +79,7 @@ struct z3_replayer::imp {
strm << "expecting " << kind2string(k) << " at position " strm << "expecting " << kind2string(k) << " at position "
<< pos << " but got " << kind2string(m_args[pos].m_kind); << pos << " but got " << kind2string(m_args[pos].m_kind);
TRACE("z3_replayer", tout << strm.str() << "\n";); TRACE("z3_replayer", tout << strm.str() << "\n";);
throw z3_replayer_exception(strm.str().c_str()); throw z3_replayer_exception(strm.str());
} }
} }

View file

@ -1464,7 +1464,7 @@ namespace sat {
if (finished_id == -1) { if (finished_id == -1) {
switch (ex_kind) { switch (ex_kind) {
case ERROR_EX: throw z3_error(error_code); case ERROR_EX: throw z3_error(error_code);
default: throw default_exception(ex_msg.c_str()); default: throw default_exception(std::move(ex_msg));
} }
} }
return result; return result;