mirror of
https://github.com/Z3Prover/z3
synced 2025-06-13 17:36:15 +00:00
more detailed tracing of where unmaterialized exceptions happen
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
7de0c29f12
commit
012fc1b72b
4 changed files with 14 additions and 15 deletions
|
@ -1782,19 +1782,15 @@ void cmd_context::check_sat(unsigned num_assumptions, expr * const * assumptions
|
|||
try {
|
||||
r = m_solver->check_sat(num_assumptions, assumptions);
|
||||
if (r == l_undef && !m().inc()) {
|
||||
m_solver->set_reason_unknown(eh);
|
||||
m_solver->set_reason_unknown(eh, "canceled");
|
||||
}
|
||||
}
|
||||
catch (z3_error & ex) {
|
||||
m_solver->set_reason_unknown(eh, ex);
|
||||
throw ex;
|
||||
}
|
||||
catch (z3_exception & ex) {
|
||||
if (!m().inc()) {
|
||||
m_solver->set_reason_unknown(eh);
|
||||
}
|
||||
else {
|
||||
m_solver->set_reason_unknown(ex.what());
|
||||
}
|
||||
m_solver->set_reason_unknown(eh, ex);
|
||||
r = l_undef;
|
||||
}
|
||||
m_solver->set_status(r);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue