3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-06 17:44:08 +00:00

skip last power

This commit is contained in:
Nikolaj Bjorner 2025-01-28 15:03:01 -08:00
parent 8a7d971264
commit 1676378be9

View file

@ -94,7 +94,8 @@ namespace sls {
rational p(1), r(0);
for (unsigned i = 0; i < nw; ++i) {
r += p * rational((*this)[i]);
p *= rational::power_of_two(8 * sizeof(digit_t));
if (i + 1 < nw)
p *= rational::power_of_two(8 * sizeof(digit_t));
}
return r;
}