/* Generated by zi2c from loops.zi. */
#include "zir_string_types.h"
#include <stdio.h>
#include "loops.h"

void
loops_main(void)
{
    int32_t index = 1;
    while (index <= 3) {
        printf("while %lld\n", (long long)index);
        index = (int32_t)((uint32_t)index + 1u);
    }
    for (int64_t step = 0LL; step <= 2LL; step++) {
        printf("range %lld\n", (long long)step);
    }
    String fruits[3] = {StringLiteral("apple"), StringLiteral("banana"), StringLiteral("cherry")};
    for (int64_t position = 0LL; position < 3; position++) {
        String fruit = (fruits)[position];
        printf("%.*s is at %lld\n", (int)fruit.length, fruit.data, (long long)position);
    }
    for (int64_t number = 0LL; number <= 9LL; number++) {
        int64_t value_0 = number % 2LL;
        if (value_0 == 0LL) {
            continue;
        }
        if (number > 7LL) {
            break;
        }
        printf("odd %lld\n", (long long)number);
    }
}
