BinaryAnalysisPlatform / bap

Binary Analysis Platform
MIT License
2.05k stars 271 forks source link

fixes the bitvector order function #1502

Closed ivg closed 2 years ago

ivg commented 2 years ago

After #1405 the bitvector order function started to take into account, in some cases, the length of the vector so that 0:8 < 0:32, which is not what we want or ever had.

This PR fixes this as well as provides two submodules to the bitvector module, Unsigned and Literal that provides alternative ordering. The former compares bitvectors unsigned and the latter treat them literally, i.e., compares them including their sizes, signedness, and values.