Skip to content

Commit 30ad22a

Browse files
fix #7449
1 parent 879bb4b commit 30ad22a

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

src/api/api_opt.cpp

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -370,9 +370,14 @@ extern "C" {
370370
return;
371371
}
372372

373-
for (expr * e : ctx->assertions()) {
374-
to_optimize_ptr(opt)->add_hard_constraint(e);
375-
}
373+
auto o = to_optimize_ptr(opt);
374+
375+
for (auto const& [asr, an] : ctx->tracked_assertions())
376+
if (an)
377+
o->add_hard_constraint(asr, an);
378+
else
379+
o->add_hard_constraint(asr);
380+
376381
}
377382

378383

0 commit comments

Comments
 (0)