array<integer> A_nextFree196
integer A_firstFree168
integer A_maxIndex129
array<integer> A_i234


integer A_firstFree168 = 0
integer A_maxIndex129 = 0


function initGlobals748() { 
}


function main173() { 
    initGlobals748();
    init_test503();
}


function config197() { 
}


function init_test503() { 
    if (A_op_divReal134(new_A151(), new_A151()) == 1.) {
        testSuccess118();
    } else {
    };
}


IS_NATIVE function testSuccess118() { 
}


function A_op_divReal134(integer this397, integer a156) returns real { 
    return ((A_i_234[this_397] * 1.) / A_i_234[a_156]);
}


function A_init255(integer this151) { 
    A_i_234[this_151] = 2;
}


function new_A151() returns integer { 
    local integer this644
    this_644 = alloc_A151();
    construct_A114(this_644);
    return this_644;
}


function construct_A114(integer this115) { 
    A_init255(this_115);
}


function alloc_A151() returns integer { 
    local integer this127
    if (A_firstFree_168 == 0) {
        if (A_maxIndex_129 < 32768) {
            A_maxIndex_129 = (A_maxIndex_129 + 1);
            this_127 = A_maxIndex_129;
        } else {
            error947("Out of memory: Could not create A.");
            this_127 = 0;
        };
    } else {
        A_firstFree_168 = (A_firstFree_168 - 1);
        this_127 = A_nextFree_196[A_firstFree_168];
    };
    return this_127;
}


function error947(string msg459) { 
    $debugPrint197((msg_459 + ("
" + #getStackTrace())));
}