array<integer> A_nextFree589
integer A_firstFree361
integer A_maxIndex394
array<integer> A_i106


integer A_firstFree361 = 0
integer A_maxIndex394 = 0


function initGlobals119() { 
}


function main141() { 
    initGlobals119();
    init_test486();
}


function config171() { 
}


function init_test486() { 
    local integer a1115
    local integer a2163
    a1_115 = new_A716();
    a2_163 = new_A716();
    if ((A_i_106[a1_115] - A_i_106[a2_163]) == 0) {
        testSuccess497();
    } else {
    };
}


IS_NATIVE function testSuccess497() { 
}


function new_A716() returns integer { 
    local integer this353
    if (A_firstFree_361 == 0) {
        if (A_maxIndex_394 < 32768) {
            A_maxIndex_394 = (A_maxIndex_394 + 1);
            this_353 = A_maxIndex_394;
        } else {
            error888("Out of memory: Could not create A.");
            this_353 = 0;
        };
    } else {
        A_firstFree_361 = (A_firstFree_361 - 1);
        this_353 = A_nextFree_589[A_firstFree_361];
    };
    A_i_106[this_353] = 2;
    return this_353;
}


function error888(string msg111) { 
    $debugPrint127((msg_111 + ("
" + #getStackTrace())));
}