Its wrong. Your script needs to handle inline function export names and
also assembler and references buried in include files. Also function
names used as variables and passed directly or indirectly to functions.
Its a start but the script is obviously making some bad mistakes atm.
Alan