Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: Inversion of if statements #28

Open
MrSapps opened this issue Jun 13, 2019 · 1 comment
Open

Feature request: Inversion of if statements #28

MrSapps opened this issue Jun 13, 2019 · 1 comment

Comments

@MrSapps
Copy link

MrSapps commented Jun 13, 2019

Would it be possible to have something like the if/then else swapping but one that only inverts a single statement if condition?

E.g:

if (!a || !b)
{
}

Inverted to:

if (a && b)
{
}

Because a lot of times the decompiler seems to pick a bad way to represent the logic.

@igogo-x86
Copy link
Owner

Sure, but it probably won't be done very soon. I'm thinking about heavy refactoring and implementing something similar to llvm::PatternMatch first. That should help implementing this and other transformations and analysis.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants