You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently when calling Solver::get_model() without Solver::check() (or Solver::check_assumption) first or with Solver::check() returning UnSat, the process will just print out an error message and then exit, leaving users no room to do any error handling. Are there any workarounds to fix this?
For one workaround I can think of without handling the exception at the boundary of FFI, maybe we can maintain a status in Solver, like
enumSolverStatus{UnCheckedOrUnSat,Checked}
And Solver::get_model() would return a Result<Model, [Some Error]> instead of just letting the process exits.
The text was updated successfully, but these errors were encountered:
Currently when calling
Solver::get_model()
withoutSolver::check()
(orSolver::check_assumption
) first or withSolver::check()
returningUnSat
, the process will just print out an error message and then exit, leaving users no room to do any error handling. Are there any workarounds to fix this?For one workaround I can think of without handling the exception at the boundary of FFI, maybe we can maintain a status in
Solver
, likeAnd
Solver::get_model()
would return aResult<Model, [Some Error]>
instead of just letting the process exits.The text was updated successfully, but these errors were encountered: