The compiler analyzed it, optimized it, and emitted precisely the machine instructions you expected. Same input, same output.
Remember that math problem from 2014? A Chinese AI tool cracked it ...