Skip to content

Commit

Permalink
fix #7449
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolajBjorner committed Nov 11, 2024
1 parent 879bb4b commit 30ad22a
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/api/api_opt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -370,9 +370,14 @@ extern "C" {
return;
}

for (expr * e : ctx->assertions()) {
to_optimize_ptr(opt)->add_hard_constraint(e);
}
auto o = to_optimize_ptr(opt);

for (auto const& [asr, an] : ctx->tracked_assertions())
if (an)
o->add_hard_constraint(asr, an);
else
o->add_hard_constraint(asr);

}


Expand Down

0 comments on commit 30ad22a

Please sign in to comment.