Skip to content

Commit

Permalink
track exceptions in reason-unknown
Browse files Browse the repository at this point in the history
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
  • Loading branch information
NikolajBjorner committed Nov 19, 2024
1 parent a8a5069 commit 5168a13
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/solver/solver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()) {
Expand Down

0 comments on commit 5168a13

Please sign in to comment.