mirror of
https://github.com/Z3Prover/z3
synced 2025-04-12 12:08:18 +00:00
Merge branch 'master' of https://github.com/z3prover/z3
This commit is contained in:
commit
4192c81fae
|
@ -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());
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue