Commit eb35a3a
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 e5107c1 commit eb35a3a
1 file changed
+174
-168
lines changed
0 commit comments