>>1268626>, it could be NaNNo, ints can never be NaN, every value an int can take is meaningful.
Reading an uninitialised int is UB, so the compiler's free to do literally anything, including "removing the code that does it", "acting like the value is always true/always false ", and (by a strict reading of the standard) sending all your porn to your mom and formatting the computer. If your code is UB, the compiler can do literally anything.