Skip to content

Commit

Permalink
remove bw setting
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolajBjorner committed Mar 5, 2024
1 parent a328366 commit 0e5b504
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/ast/sls/sls_valuation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -436,15 +436,13 @@ namespace bv {
digit_t c;
mpn_manager().sub(a.data(), nw, b.data(), nw, out.data(), &c);
clear_overflow_bits(out);
out.set_bw(bw);
}

bool sls_valuation::set_add(bvect& out, bvect const& a, bvect const& b) const {
digit_t c;
mpn_manager().add(a.data(), nw, b.data(), nw, out.data(), nw + 1, &c);
bool ovfl = out[nw] != 0 || has_overflow(out);
clear_overflow_bits(out);
out.set_bw(bw);
return ovfl;
}

Expand All @@ -457,7 +455,6 @@ namespace bv {
ovfl |= out[i] != 0;
}
clear_overflow_bits(out);
out.set_bw(bw);
return ovfl;
}

Expand Down

0 comments on commit 0e5b504

Please sign in to comment.