Skip to content

Commit 08b8ca3

Browse files
committed
refactor(bv): Simplify bv2nat mapping using right shifts
The bv2nat mapping is able to record an integer expression for each bit-vector extraction, but we only need to record arithmetic right shifts since we encode an extraction `bv<i, j>` as `(bv asr j) - (bv asr i) * 2^(j - i + 1)`. This ensures we can't accidentally leave bogus extractions in the map.
1 parent 8c717b4 commit 08b8ca3

File tree

1 file changed

+178
-193
lines changed

1 file changed

+178
-193
lines changed

0 commit comments

Comments
 (0)