binaryninja-api icon indicating copy to clipboard operation
binaryninja-api copied to clipboard

Value Exclusion Simplification

Open plafosse opened this issue 1 year ago • 0 comments

What is the feature you'd like to have?

Some common expressions can be simplified in HLIL but are not for instance:

if (rbx_2 == 0x20 || rbx_2 == 0x40 || (rbx_2 != 0x60 && rbx_2 != 0x80))

This can be simplified to

if (rbx_2 != 0x60 && rbx_2 != 0x80)

As 0x20 and 0x40 are already in the not in set of {0x60, 0x80}

Address: 0x18000912d in the internal shared binary: unicorn chess taco rainbow

plafosse avatar May 06 '24 14:05 plafosse