Skip to content

Commit 6a61e8d

Browse files
fix #4234
1 parent da9b037 commit 6a61e8d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/opt/opt_context.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,10 @@ namespace opt {
305305
s.get_model(m_model);
306306
s.get_labels(m_labels);
307307
model_updated(m_model.get());
308-
}
308+
if (!m_model) {
309+
is_sat = l_undef;
310+
}
311+
}
309312
if (is_sat != l_true) {
310313
TRACE("opt", tout << m_hard_constraints << " " << asms << "\n";);
311314
if (!asms.empty()) {

0 commit comments

Comments
 (0)