HexRaysPyTools
HexRaysPyTools copied to clipboard
Feature request: Inversion of if statements
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.
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.