array<integer> I_nextFree192
integer I_firstFree156
integer I_maxIndex186


integer I_firstFree156 = 0
integer I_maxIndex186 = 0


function initGlobals446() { 
}


function main146() { 
    initGlobals446();
    init_test712();
}


function config383() { 
}


function init_test712() { 
    local integer a357
    local integer b203
    local integer c112
    a_357 = new_B626();
    b_203 = new_B626();
    c_112 = new_C157();
    if ((a_357 != b_203) and (a_357 != c_112)) {
        testSuccess835();
    } else {
    };
}


IS_NATIVE function testSuccess835() { 
}


function new_B626() returns integer { 
    local integer this139
    local integer this110
    if (I_firstFree_156 == 0) {
        if (I_maxIndex_186 < 32768) {
            I_maxIndex_186 = (I_maxIndex_186 + 1);
            this_110 = I_maxIndex_186;
        } else {
            error278("Out of memory: Could not create B.");
            this_110 = 0;
        };
    } else {
        I_firstFree_156 = (I_firstFree_156 - 1);
        this_110 = I_nextFree_192[I_firstFree_156];
    };
    this_139 = this_110;
    return this_139;
}


function new_C157() returns integer { 
    local integer this125
    local integer this562
    if (I_firstFree_156 == 0) {
        if (I_maxIndex_186 < 32768) {
            I_maxIndex_186 = (I_maxIndex_186 + 1);
            this_562 = I_maxIndex_186;
        } else {
            error278("Out of memory: Could not create C.");
            this_562 = 0;
        };
    } else {
        I_firstFree_156 = (I_firstFree_156 - 1);
        this_562 = I_nextFree_192[I_firstFree_156];
    };
    this_125 = this_562;
    return this_125;
}


function error278(string msg175) { 
    $debugPrint264((msg_175 + ("
" + #getStackTrace())));
}