Skip to content

Commit 9bc2300

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 d4bada8 commit 9bc2300

File tree

1 file changed

+174
-168
lines changed

1 file changed

+174
-168
lines changed

0 commit comments

Comments
 (0)