3 ms·
> Here’s a somewhat non-exhaustive list of all the undefined behavior of signed integer arithmetic in LLVM which applies to all languages which use LLVM: > The
by Diggsey 5y ago
> Here’s a somewhat non-exhaustive list of all the undefined behavior of signed integer arithmetic in LLVM which applies to all languages which use LLVM:
> These are certain to produce invalid results in languages like Go, Rust, and Odin.
This is clearly untrue, since an operation (or indeed a type) at the language level need not translate to the same operation/type within LLVM.
For example, none of these are "undefined behaviour" in Rust.