Reverse engineering function code to produce flowchart.