IDA7 Hex-Rays Invert If-Statement
August 5, 2018 ยท View on GitHub
Code originally from the Hex-Rays SDK examples. I have made a solution to compile it for convenience since IDAPython's copy constructor for cexpr_t seems broken, breaking the Python version.
Note: you should consider using https://github.com/igogo-x86/HexRaysPyTools instead, since it offers this functionality plus a lot more features.
Compiling Notes
The following system environment variables should be set before running Visual Studio, or in the Property Manager by editing PropertySheet.props:
$(IDADIR)- path to IDA 7.0 where ida64.exe can be found
The IDA 7.0 SDK should also be located at $(IDADIR)\idasdk70.
Credits
- Hex-Rays for code