by tsukikage · 6y ago · 0 comments
An actually interesting question might be: which of the correct transformations is the more useful?
To get undefined behavior, you need to do something like use the unreachable instruction, or call a noreturn function that does in fact return. You may also have "poison values", which trigger undefined behavior on certain uses.