angr icon indicating copy to clipboard operation
angr copied to clipboard

Decompilation optimization pass should simplify expression `(x - y) != 0`

Open mborgerson opened this issue 3 years ago • 1 comments


Is your feature request related to a problem? Please describe.

(x - y) != 0 can be unnatural

Describe the solution you would like.

This expression can be directly substituted with a more readable version: x != y. It can also be rewritten as x == y (swapping jump targets).

Describe alternatives you have considered.

  • Do nothing
  • Rewrite as x != y
  • Rewrite as x == y and swap the jump targets

mborgerson avatar Jun 19 '21 00:06 mborgerson

This issue has been marked as stale because it has no recent activity. Please comment or add the pinned tag to prevent this issue from being closed.

github-actions[bot] avatar Jun 24 '22 02:06 github-actions[bot]