m2c
m2c copied to clipboard
Pattern-match function body for matching macros
In if_statements.py, when we have a Body, we should look for sequences of statements that match input macros (akin to how we match types given an input preprocessed C file).
This would be great. It would also be nice if we could recognize inlined functions.
I think recognizing inlined functions would be extremely hard. I know of no other decompiler that does it, despite it being a major pain point when doing reverse engineering and a potential huge selling point. It would be an interesting research project, but I wouldn't put any hope in it ever happening!