array<integer> C_nextFree159
integer C_firstFree208
integer C_maxIndex135
array<integer> C_B_A_x124


integer C_firstFree208 = 0
integer C_maxIndex135 = 0


function initGlobals301() { 
}


function main248() { 
    initGlobals301();
    if (C_B_A_x_124[new_C206()] == 2) {
        testSuccess909();
    } else {
    };
}


function config476() { 
}


IS_NATIVE function testSuccess909() { 
}


function new_C206() returns integer { 
    local integer this190
    if (C_firstFree_208 == 0) {
        if (C_maxIndex_135 < 32768) {
            C_maxIndex_135 = (C_maxIndex_135 + 1);
            this_190 = C_maxIndex_135;
        } else {
            error168("Out of memory: Could not create C.");
            this_190 = 0;
        };
    } else {
        C_firstFree_208 = (C_firstFree_208 - 1);
        this_190 = C_nextFree_159[C_firstFree_208];
    };
    C_B_A_x_124[this_190] = 3;
    C_B_A_x_124[this_190] = (C_B_A_x_124[this_190] - 1);
    return this_190;
}


function error168(string msg207) { 
    $debugPrint101((msg_207 + ("
" + #getStackTrace())));
}