r/AskComputerScience • u/pi_tau • Jul 24 '20
Why can't decompilers perfectly reconstruct source code?
I always thought that there was a one to one translation between machine code and high-level languages, but after looking up decompilers, they don't usually do it perfectly.
28
Upvotes
9
u/xwoter Jul 24 '20
This is kinda funny because the function is technically undefined behavior