array List_nextFree174 integer List_firstFree154 integer List_maxIndex257 array List_typeId266 integer List_firstFree154 = 0 integer List_maxIndex257 = 0 function initGlobals190() { } function main111() { initGlobals190(); init_Test802(); } function config141() { } function init_Test802() { effectFromIndex566(dispatch_List_Test_List_get117(new_List126())); } function effectFromIndex566(integer index744) returns effect { return null; } function List_get124(integer this428) returns any { return (0 castTo any); } function List_init767(integer this190) { } function new_List126() returns integer { local integer this195 this_195 = alloc_List292(); construct_List685(this_195); return this_195; } function construct_List685(integer this849) { List_init767(this_849); } function alloc_List292() returns integer { local integer this225 if (List_firstFree_154 == 0) { if (List_maxIndex_257 < 32768) { List_maxIndex_257 = (List_maxIndex_257 + 1); this_225 = List_maxIndex_257; List_typeId_266[this_225] = 1; } else { error168("Out of memory: Could not create List."); this_225 = 0; }; } else { List_firstFree_154 = (List_firstFree_154 - 1); this_225 = List_nextFree_174[List_firstFree_154]; List_typeId_266[this_225] = 1; }; return this_225; } function error168(string msg231) { $debugPrint118((msg_231 + (" " + #getStackTrace()))); } function dispatch_List_Test_List_get117(integer this631) returns any { if (List_typeId_266[this_631] == 0) { if (this_631 == 0) { error168("Nullpointer exception when calling List.get"); } else { error168("Called List.get on invalid object."); }; } else { }; return List_get124(this_631); }