Schrödinger’s Code Undefined behavior in theory and practice