array List_nextFree130 integer List_firstFree847 integer List_maxIndex643 array List_typeId210 integer List_firstFree847 = 0 integer List_maxIndex643 = 0 function initGlobals739() { } function main170() { initGlobals739(); init_Test116(); } function config294() { } function init_Test116() { effectFromIndex103(dispatch_List_Test_List_get134(new_List198())); } function effectFromIndex103(integer index313) returns effect { return null; } function List_get831(integer this107) returns any { return (0 castTo any); } function List_init689(integer this192) { } function new_List198() returns integer { local integer this110 this_110 = alloc_List173(); construct_List289(this_110); return this_110; } function construct_List289(integer this154) { List_init689(this_154); } function alloc_List173() returns integer { local integer this617 if (List_firstFree_847 == 0) { if (List_maxIndex_643 < 32768) { List_maxIndex_643 = (List_maxIndex_643 + 1); this_617 = List_maxIndex_643; List_typeId_210[this_617] = 1; } else { error145("Out of memory: Could not create List."); this_617 = 0; }; } else { List_firstFree_847 = (List_firstFree_847 - 1); this_617 = List_nextFree_130[List_firstFree_847]; List_typeId_210[this_617] = 1; }; return this_617; } function error145(string msg615) { $debugPrint133((msg_615 + (" " + #getStackTrace()))); } function dispatch_List_Test_List_get134(integer this779) returns any { if (List_typeId_210[this_779] == 0) { if (this_779 == 0) { error145("Nullpointer exception when calling List.get"); } else { error145("Called List.get on invalid object."); }; } else { }; return List_get831(this_779); }