mirror of
https://github.com/Z3Prover/z3
synced 2025-08-06 19:21:22 +00:00
bugfixes
This commit is contained in:
parent
7dc4ce8259
commit
ab0459e5aa
6 changed files with 29 additions and 20 deletions
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue