It's a SAMD21 with 32-bit ints, so about 2 billion steps.
Actually, since it is a signed over/underflow, it invokes undefined behavior. It may loop forever. Option -fwrapv makes it behave more predictably.
It's a SAMD21 with 32-bit ints, so about 2 billion steps.
Actually, since it is a signed over/underflow, it invokes undefined behavior. It may loop forever. Option -fwrapv makes it behave more predictably.