But that is the thing, undefined behavior just says that the compiler takes no position on what should happen. So a boring compiler that refuses to compile code which would have undefined behavior is sufficient. It makes idomatic C a bit more challenging but if you&#x27;ve read through Dan&#x27;s code you know that he&#x27;s all about picking a style and sticking with it. And for that set of constraints, its all defined (and boring because there is very little, if any, optimization going on insider the compiler)<p>So sub-optimal but predictable and safe code given that you change the preference bit to safety over speed.