3 ms·
> However, like I said in my first response, this optimization in particular is only valid if the array is definitely accessed incorrectly. No. The code does n
by muldvarp 3y ago
> However, like I said in my first response, this optimization in particular is only valid if the array is definitely accessed incorrectly.
No. The code does not show any undefined behavior if any of the elements of `table` is equal to `v`, because then the loop is ended by an early return. The compiler certainly did not prove that this code always has undefined behavior.