Skip to content

Commit 5168a13

Browse files
track exceptions in reason-unknown
Signed-off-by: Nikolaj Bjorner <[email protected]>
1 parent a8a5069 commit 5168a13

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/solver/solver.cpp

+3-4
Original file line numberDiff line numberDiff line change
@@ -317,10 +317,9 @@ lbool solver::check_sat(unsigned num_assumptions, expr * const * assumptions) {
317317
try {
318318
r = check_sat_core(num_assumptions, assumptions);
319319
}
320-
catch (...) {
321-
if (!get_manager().limit().inc(0)) {
322-
dump_state(num_assumptions, assumptions);
323-
}
320+
catch (std::exception& ex) {
321+
if (reason_unknown() == "")
322+
set_reason_unknown(ex.what());
324323
throw;
325324
}
326325
if (r == l_undef && !get_manager().inc()) {

0 commit comments

Comments
 (0)