|
|
|
|
|
by publicdebates
172 days ago
|
|
In this example, the human author clearly intended mutual exclusivity in the condition branches, and this optimization would in fact destroy that assumption. That said, (a) human intentions are not evidence of foolproof programming logic, and often miscalculate state, and (b) the author could possibly catch most or all errors here when compiling without optimizations during debugging phase. |
|
I take issue with the compiler assuming anything about the contents of that memory; it should be a black box.