ParentFull threadmaple3142·Summation from 1 to n: https://godbolt.org/z/673hTrclang seems to optimize it to (n-1)(n-2)/2+2n-1, which is O(1).View on HN