#include <stdint.h>
#include <stdbool.h>
#define SPIRAL_MAP_CAP 64
#define SPIRAL_LOOP_CAP 16777216
static int32_t spiral_map_key[SPIRAL_MAP_CAP];
static int32_t spiral_map_val[SPIRAL_MAP_CAP];
static int32_t spiral_map_used[SPIRAL_MAP_CAP];
static int32_t spiral_map_lookup(int32_t key) {
    int32_t i;
    for (i = 0; i < SPIRAL_MAP_CAP; i++) {
        if (spiral_map_used[i] && spiral_map_key[i] == key) return spiral_map_val[i];
    }
    return 0;
}
static int32_t spiral_map_update(int32_t key, int32_t val) {
    int32_t i;
    int32_t free_slot = -1;
    for (i = 0; i < SPIRAL_MAP_CAP; i++) {
        if (spiral_map_used[i] && spiral_map_key[i] == key) { spiral_map_val[i] = val; return 0; }
        if (!spiral_map_used[i] && free_slot < 0) free_slot = i;
    }
    if (free_slot < 0) return 1;
    spiral_map_used[free_slot] = 1;
    spiral_map_key[free_slot] = key;
    spiral_map_val[free_slot] = val;
    return 0;
}
static int32_t spiral_main(void) {
    int32_t v0 = 0;
    v0 = -3;
    int32_t v1 = 0;
    v1 = -4;
    int32_t v2 = 0;
    v2 = -3;
    uint32_t v3 = 0u;
    v3 = 4294967295u;
    uint32_t v4 = 0u;
    v4 = 0u;
    uint32_t v5 = 0u;
    v5 = 4294967295u;
    float v6 = 0.0f;
    v6 = (-1.5f);
    float v7 = 0.0f;
    v7 = (-0.5f);
    float v8 = 0.0f;
    v8 = (-1.5f);
    bool v9 = false;
    v9 = (v0 != v1);
    bool v10 = false;
    v10 = (v0 != v2);
    bool v11 = false;
    v11 = (v3 != v4);
    bool v12 = false;
    v12 = (v3 != v5);
    bool v13 = false;
    v13 = (v6 != v7);
    bool v14 = false;
    v14 = (v6 != v8);
    bool v15 = false;
    v15 = (v9 && v11);
    bool v16 = false;
    v16 = (v15 && v13);
    if (v16) {
        if (v10) {
            return 1;
        } else {
            if (v12) {
                return 2;
            } else {
                if (v14) {
                    return 3;
                } else {
                    return 0;
                }
            }
        }
    } else {
        return 4;
    }
}
int main(void) {
    return spiral_main();
}
