3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-06 17:44:08 +00:00

let the replayer stop when it encounters a C command with invalid args

This commit is contained in:
Nuno Lopes 2024-05-17 11:10:09 +01:00
parent 8fe357f1f2
commit 552068a71e

View file

@ -80,7 +80,7 @@ struct z3_replayer::imp {
strm << "expecting " << kind2string(k) << " at position "
<< pos << " but got " << kind2string(m_args[pos].m_kind);
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) {
throw ex;
}
catch (z3_replayer_exception &) {
throw;
}
catch (z3_exception & ex) {
std::cout << "[z3 exception]: " << ex.msg() << std::endl;
}