4 ms·
A theoretical compiler could statically prove that this program would have undefined behavior for any argument larger than 12, because signed overflow is UB, an
by jeffbee 4y ago
A theoretical compiler could statically prove that this program would have undefined behavior for any argument larger than 12, because signed overflow is UB, and it could arrive at the worst-case stack size from that.