Skip to content

Commit

Permalink
let the replayer stop when it encounters a C command with invalid args
Browse files Browse the repository at this point in the history
  • Loading branch information
nunoplopes committed May 17, 2024
1 parent 8fe357f commit 552068a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/api/z3_replayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
}

Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit 552068a

Please sign in to comment.