Decent optimizing compiler would necessarily loose a fair bit of source information - loop unrolling, function inlining, tail-call optimizations, etc...
There is no good way to reconstruct that, AI/ML or not.
There is no good way to reconstruct that, AI/ML or not.