mirror of
https://github.com/Z3Prover/z3
synced 2025-04-07 18:05:21 +00:00
track exceptions in reason-unknown
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
a8a50695c9
commit
5168a13efa
|
@ -317,10 +317,9 @@ lbool solver::check_sat(unsigned num_assumptions, expr * const * assumptions) {
|
|||
try {
|
||||
r = check_sat_core(num_assumptions, assumptions);
|
||||
}
|
||||
catch (...) {
|
||||
if (!get_manager().limit().inc(0)) {
|
||||
dump_state(num_assumptions, assumptions);
|
||||
}
|
||||
catch (std::exception& ex) {
|
||||
if (reason_unknown() == "")
|
||||
set_reason_unknown(ex.what());
|
||||
throw;
|
||||
}
|
||||
if (r == l_undef && !get_manager().inc()) {
|
||||
|
|
Loading…
Reference in a new issue