Decompilation optimization pass should simplify expression `(x - y) != 0`
Open
- Dominant language
- Python
- Stars
- 9.1k
- Forks
- 1.2k
- Avg merge
- 16h 20m
- Merged PRs (30d)
- 169
Description
---
**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
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.