Skip to content

Commit 1957b4d

Browse files
fix reporting on cancelation when based on cancel flag
1 parent 604714b commit 1957b4d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/smt/smt_context.cpp

+5-1
Original file line numberDiff line numberDiff line change
@@ -4077,7 +4077,11 @@ namespace smt {
40774077
IF_VERBOSE(100, verbose_stream() << "(smt.final-check \"" << th->get_name() << "\")\n";);
40784078
ok = th->final_check_eh();
40794079
TRACE("final_check_step", tout << "final check '" << th->get_name() << " ok: " << ok << " inconsistent " << inconsistent() << "\n";);
4080-
if (ok == FC_GIVEUP) {
4080+
if (get_cancel_flag()) {
4081+
f = CANCELED;
4082+
ok = FC_GIVEUP;
4083+
}
4084+
else if (ok == FC_GIVEUP) {
40814085
f = THEORY;
40824086
m_incomplete_theories.push_back(th);
40834087
}

0 commit comments

Comments
 (0)