array<integer> A_nextFree869
integer A_firstFree200
integer A_maxIndex102
array<integer> A_i129


integer A_firstFree200 = 0
integer A_maxIndex102 = 0


function initGlobals106() { 
}


function main105() { 
    initGlobals106();
    init_test128();
}


function config199() { 
}


function init_test128() { 
    local integer a1517
    local integer a2198
    local integer result173
    local integer this396
    local integer a351
    a1_517 = new_A737();
    a2_198 = new_A737();
    this_396 = a1_517;
    a_351 = a2_198;
    result_173 = (A_i_129[this_396] - A_i_129[a_351]);
    if (result_173 == 0) {
        testSuccess211();
    } else {
    };
}


IS_NATIVE function testSuccess211() { 
}


function new_A737() returns integer { 
    local integer this880
    local integer this885
    local integer this164
    local integer this215
    if (A_firstFree_200 == 0) {
        if (A_maxIndex_102 < 32768) {
            A_maxIndex_102 = (A_maxIndex_102 + 1);
            this_885 = A_maxIndex_102;
        } else {
            error189("Out of memory: Could not create A.");
            this_885 = 0;
        };
    } else {
        A_firstFree_200 = (A_firstFree_200 - 1);
        this_885 = A_nextFree_869[A_firstFree_200];
    };
    this_880 = this_885;
    this_164 = this_880;
    this_215 = this_164;
    A_i_129[this_215] = 2;
    return this_880;
}


function error189(string msg108) { 
    $debugPrint178((msg_108 + ("
" + #getStackTrace())));
}