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

Fix #3788 by converting assert into a throw

This commit is contained in:
Arie Gurfinkel 2020-04-11 09:15:32 -04:00
parent 03e411c22d
commit 337c07a44c

View file

@ -66,7 +66,7 @@ proof_ref ground_sat_answer_op::operator()(pred_transformer &query) {
lbool res = m_solver->check_sat(0, nullptr);
CTRACE("spacer_sat", res != l_true, tout << "solver at check:\n";
m_solver->display(tout) << "res: " << res << "\n";);
VERIFY(res == l_true);
if (res != l_true) throw default_exception("spacer: could not validate first proof step");
model_ref mdl;
m_solver->get_model(mdl);
mdl->compress();
@ -133,10 +133,10 @@ void ground_sat_answer_op::mk_children(frame &fr, vector<frame> &todo) {
m_solver->display(tout) << "\n";);
lbool res = m_solver->check_sat(0, nullptr);
(void)res;
CTRACE("spacer_sat", res != l_true,
tout << "Result: " << res << "\n";);
VERIFY(res == l_true);
m_solver->display(tout) << "\n" "Result: " << res << "\n";);
if(res != l_true)
throw default_exception("spacer: could not validate a proof step");
model_ref mdl;
m_solver->get_model(mdl);