Skip to content

Commit

Permalink
na
Browse files Browse the repository at this point in the history
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
  • Loading branch information
NikolajBjorner committed Apr 18, 2022
1 parent 98c7069 commit df98166
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/opt/maxcore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -882,9 +882,11 @@ class maxcore : public maxsmt_solver_base {
ncore.push_back(mk_not(m, f));
m_unfold_upper -= b.weight;
}
m_unfold_upper += rational(core.size() - 1) * weight;
expr* am = mk_atmost(ncore, 1, weight);
new_assumption(am, weight);
if (core.size() > 1) {
m_unfold_upper += rational(core.size() - 2) * weight;
expr* am = mk_atmost(ncore, 1, weight);
new_assumption(am, weight);
}
}


Expand Down

0 comments on commit df98166

Please sign in to comment.