https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119543
--- Comment #5 from Kevin Tang <2023152001 at email dot szu.edu.cn> --- Dear Andrew Pinski, Thank you very much for your prompt response and especially for providing the well-defined implementation of the isTmax function. I appreciate you taking the time not only to explain why my original implementation was problematic but also to provide a standards-compliant alternative that preserves the core logic of my function. The resources you shared about undefined behavior will be very helpful for my future programming work. This was a valuable lesson in writing robust, portable C code. Thank you again for your help! Best regards, Kevin Tang