array<integer> ToStringClosure_nextFree304
integer ToStringClosure_firstFree160
integer ToStringClosure_maxIndex175
array<integer> LinkedList_nextFree806
integer LinkedList_firstFree913
integer LinkedList_maxIndex198


integer ToStringClosure_firstFree160 = 0
integer ToStringClosure_maxIndex175 = 0
integer LinkedList_firstFree913 = 0
integer LinkedList_maxIndex198 = 0


function initGlobals163() { 
}


function main550() { 
    local integer x209
    initGlobals163();
    x_209 = new_LinkedList196();
    LinkedList_foo162(x_209, "a");
}


function config111() { 
}


function LinkedList_foo162(integer this209, string separator733) returns string { 
    if (ToStringClosure_firstFree_160 == 0) {
        if (ToStringClosure_maxIndex_175 < 32768) {
            ToStringClosure_maxIndex_175 = (ToStringClosure_maxIndex_175 + 1);
        } else {
            error543("Out of memory: Could not create ToStringClosure_foo_test.");
        };
    } else {
        ToStringClosure_firstFree_160 = (ToStringClosure_firstFree_160 - 1);
    };
    if (ToStringClosure_firstFree_160 == 0) {
        if (ToStringClosure_maxIndex_175 < 32768) {
            ToStringClosure_maxIndex_175 = (ToStringClosure_maxIndex_175 + 1);
        } else {
            error543("Out of memory: Could not create ToStringClosure_foo2_test.");
        };
    } else {
        ToStringClosure_firstFree_160 = (ToStringClosure_firstFree_160 - 1);
    };
    return separator_733;
}


function new_LinkedList196() returns integer { 
    local integer this806
    local integer this121
    if (LinkedList_firstFree_913 == 0) {
        if (LinkedList_maxIndex_198 < 32768) {
            LinkedList_maxIndex_198 = (LinkedList_maxIndex_198 + 1);
            this_121 = LinkedList_maxIndex_198;
        } else {
            error543("Out of memory: Could not create LinkedList.");
            this_121 = 0;
        };
    } else {
        LinkedList_firstFree_913 = (LinkedList_firstFree_913 - 1);
        this_121 = LinkedList_nextFree_806[LinkedList_firstFree_913];
    };
    this_806 = this_121;
    return this_806;
}


function error543(string msg584) { 
    $debugPrint150((msg_584 + ("
" + #getStackTrace())));
}