I think it is clear they mean what the programmer would expect /even if they knew the code was wrong/:
"And that’s what programmers expect: In the normal case a read from an
array (even an out-of-bounds read) performs a load from the address computed
for the array element; the programmer expects that load to produce the value at
that address, or, in the out-of-bounds case, it may also lead to a segmentation
violation (Unix), general protection fault (Windows), or equivalent; but most
programmers do not expect it to “optimize” a bounded loop into an endless
loop."
"And that’s what programmers expect: In the normal case a read from an array (even an out-of-bounds read) performs a load from the address computed for the array element; the programmer expects that load to produce the value at that address, or, in the out-of-bounds case, it may also lead to a segmentation violation (Unix), general protection fault (Windows), or equivalent; but most programmers do not expect it to “optimize” a bounded loop into an endless loop."