https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115793
--- Comment #1 from Bi6c <bic60176 at gmail dot com> --- When compiling with gcc-13.2.0 at -O0, -O1, -O2, -O3, and -Os, UBSAN reported signed integer overflow error. We wonder if the code was optimized out because of optimization level -O2, -O3, and -Os in gcc-14.