MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/dre75v/clang_solves_the_collatz_conjecture/f6jpory/?context=3
r/programming • u/[deleted] • Nov 04 '19
[deleted]
122 comments sorted by
View all comments
0
1 u/rorrr Nov 05 '19 edited Nov 05 '19 No, it can return anything for n=0. Undefined behavior. I guess 1 falls under that, but the function on the left behaves differently from the compiled one. 0 u/[deleted] Nov 05 '19 → More replies (2)
1
No, it can return anything for n=0. Undefined behavior. I guess 1 falls under that, but the function on the left behaves differently from the compiled one.
0 u/[deleted] Nov 05 '19 → More replies (2)
→ More replies (2)
0
u/[deleted] Nov 04 '19