3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-08-06 19:21:22 +00:00
This commit is contained in:
Nikolaj Bjorner 2024-02-20 13:38:04 -08:00
parent 7dc4ce8259
commit ab0459e5aa
6 changed files with 29 additions and 20 deletions

View file

@ -243,9 +243,10 @@ namespace bv {
void sls_valuation::get_value(svector<digit_t> const& bits, rational& r) const {
rational p(1);
r = 0;
for (unsigned i = 0; i < nw; ++i) {
r += p * rational(bits[i]);
p *= rational::power_of_two(bw);
p *= rational::power_of_two(8*sizeof(digit_t));
}
}