mirror of
https://github.com/Z3Prover/z3
synced 2025-04-12 12:08:18 +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 {
|
try {
|
||||||
r = check_sat_core(num_assumptions, assumptions);
|
r = check_sat_core(num_assumptions, assumptions);
|
||||||
}
|
}
|
||||||
catch (...) {
|
catch (std::exception& ex) {
|
||||||
if (!get_manager().limit().inc(0)) {
|
if (reason_unknown() == "")
|
||||||
dump_state(num_assumptions, assumptions);
|
set_reason_unknown(ex.what());
|
||||||
}
|
|
||||||
throw;
|
throw;
|
||||||
}
|
}
|
||||||
if (r == l_undef && !get_manager().inc()) {
|
if (r == l_undef && !get_manager().inc()) {
|
||||||
|
|
Loading…
Reference in a new issue