array<integer> A_nextFree305
integer A_firstFree150
integer A_maxIndex175
array<any> C_x947


integer A_firstFree150 = 0
integer A_maxIndex175 = 0
integer C_firstFree197 = 0
integer C_maxIndex974 = 0


function initGlobals203() { 
    A_firstFree_150 = 0;
    A_maxIndex_175 = 0;
}


function main156() { 
    initGlobals203();
    init_Test163();
}


function config147() { 
}


function init_Test163() { 
    local integer c152
    c_152 = null<integer>;
    C_x_947[C_x_947[C_x_947[c_152]]] = new_A180();
}


function A_init335(integer this197) { 
}


function new_A180() returns integer { 
    local integer this139
    this_139 = alloc_A128();
    construct_A759(this_139);
    return this_139;
}


function construct_A759(integer this307) { 
    A_init335(this_307);
}


function alloc_A128() returns integer { 
    local integer this525
    if (A_firstFree_150 == 0) {
        if (A_maxIndex_175 < 32768) {
            A_maxIndex_175 = (A_maxIndex_175 + 1);
            this_525 = A_maxIndex_175;
        } else {
            error915("Out of memory: Could not create A.");
            this_525 = 0;
        };
    } else {
        A_firstFree_150 = (A_firstFree_150 - 1);
        this_525 = A_nextFree_305[A_firstFree_150];
    };
    return this_525;
}


function error915(string msg895) { 
    $debugPrint203((msg_895 + ("
" + #getStackTrace())));
}