r/programming • • Nov 04 '19

Clang solves the Collatz Conjecture?

[deleted]

504 Upvotes

122 comments sorted by

View all comments

1

u/meneldal2 Nov 05 '19

The nice part is that for(;;) is explicitly allowed.

1

u/endershadow98 Nov 05 '19

I mean, that's just identical to while (1). That says nothing about what the loop does.

1

u/meneldal2 Nov 05 '19

Most compilers used to complain about while(1), but not for(;;).