mirror of
https://github.com/Z3Prover/z3
synced 2025-04-12 04:03:39 +00:00
let the replayer stop when it encounters a C command with invalid args
This commit is contained in:
parent
8fe357f1f2
commit
552068a71e
|
@ -80,7 +80,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());
|
throw z3_replayer_exception(std::move(strm).str());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -529,6 +529,9 @@ struct z3_replayer::imp {
|
||||||
catch (z3_error & ex) {
|
catch (z3_error & ex) {
|
||||||
throw ex;
|
throw ex;
|
||||||
}
|
}
|
||||||
|
catch (z3_replayer_exception &) {
|
||||||
|
throw;
|
||||||
|
}
|
||||||
catch (z3_exception & ex) {
|
catch (z3_exception & ex) {
|
||||||
std::cout << "[z3 exception]: " << ex.msg() << std::endl;
|
std::cout << "[z3 exception]: " << ex.msg() << std::endl;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue