Thanks for making this response. Genuinely interested.
[To whomever down voted... I guess I get down voted for not showing gratitude immediately after he posted a reply? This is why I don't post here often. Quite mean people here.]
Do you know if there exist tools that take a binary and a source code file and attempt to automatically compare the control flow graphs?
I imagine I won't ever get to it, but that sounds like an interesting problem to try to work on.
For an example of a more sophisticated approach, look at:
https://sourcedna.com/
Remember, in this case, it's especially easy to reverse, because you have the source code; all you're doing is matching the control flow graph to the original source.