array<integer> A_nextFree963
integer A_firstFree709
integer A_maxIndex240
array<integer> A_someInt142


integer A_firstFree709 = 0
integer A_maxIndex240 = 0


function initGlobals511() { 
    A_firstFree_709 = 0;
    A_maxIndex_240 = 0;
}


function main839() { 
    initGlobals511();
    init_test206();
}


function config593() { 
}


function init_test206() { 
    if (A_someInt_142[new_B428()] == 1) {
        testSuccess172();
    } else {
    };
}


IS_NATIVE function testSuccess172() { 
}


function A_init148(integer this151) { 
}


function construct_A564(integer this587) { 
    A_init148(this_587);
}


function B_init416(integer this246) { 
}


function new_B428() returns integer { 
    local integer this225
    this_225 = alloc_B720();
    construct_B835(this_225);
    return this_225;
}


function construct_B835(integer this171) { 
    construct_A564(this_171);
    B_init416(this_171);
    A_someInt_142[this_171] = 1;
}


function error818(string msg141) { 
    $debugPrint191((msg_141 + ("
" + #getStackTrace())));
}


function alloc_B720() returns integer { 
    local integer this117
    if (A_firstFree_709 == 0) {
        if (A_maxIndex_240 < 32768) {
            A_maxIndex_240 = (A_maxIndex_240 + 1);
            this_117 = A_maxIndex_240;
        } else {
            error818("Out of memory: Could not create B.");
            this_117 = 0;
        };
    } else {
        A_firstFree_709 = (A_firstFree_709 - 1);
        this_117 = A_nextFree_963[A_firstFree_709];
    };
    return this_117;
}