>>106304065
>I tried running this with Clang, but two different values are printed and the comparison gives 'false', even when passing -O3.

huh?

~/.l/tmp> clang++ -O2 --std=c++23 x.cpp
~/.l/tmp> ./a.out
140729431585696 == 140729431585696, false
~/.l/tmp> clang++ --version
clang version 20.1.8 (Fedora 20.1.8-3.fc42)
Target: x86_64-redhat-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
Configuration file: /etc/clang/x86_64-redhat-linux-gnu-clang++.cfg