Description

The partialLoop counter remembers its position between calls to the partialLoop helper. This is undesired, as separate calls to the partialLoop represent essentially separate loops, with unrelated counters.