Inside the while loop, execution is not guaranteed - for example, if timesless than zero from a programming error. The compiler knows this, so it will not count on a while loop when it is determined whether it has been initialized total.
source
share