mirror of
https://github.com/Z3Prover/z3
synced 2025-04-24 09:35:32 +00:00
fix regression
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
8fb92e6312
commit
759d80dfe3
3 changed files with 6 additions and 4 deletions
|
@ -304,7 +304,7 @@ namespace smt {
|
|||
lbool val = ctx.get_assignment(bv);
|
||||
if (inc_min(inc, val) == l_true) {
|
||||
curr_min += abs(inc);
|
||||
lits.push_back(literal(bv, val != l_true));
|
||||
lits.push_back(literal(bv, val == l_true));
|
||||
}
|
||||
}
|
||||
return curr_min;
|
||||
|
@ -424,7 +424,7 @@ namespace smt {
|
|||
}
|
||||
else if (vars[mid].first < bv) {
|
||||
lo = mid;
|
||||
mid += (hi-mid)/2;
|
||||
mid += (hi-mid)/2 + 1;
|
||||
}
|
||||
else {
|
||||
hi = mid;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue