array List_nextFree148 integer List_firstFree622 integer List_maxIndex697 array List_typeId104 integer List_firstFree622 = 0 integer List_maxIndex697 = 0 function initGlobals128() { } function main451() { initGlobals128(); init_Test251(); } function config145() { } function init_Test251() { local integer fxs117 fxs_117 = new_List104(); if (List_typeId_104[fxs_117] == 0) { if (fxs_117 == 0) { error125("Nullpointer exception when calling List.get"); } else { error125("Called List.get on invalid object."); }; } else { }; } function new_List104() returns integer { local integer this132 if (List_firstFree_622 == 0) { if (List_maxIndex_697 < 32768) { List_maxIndex_697 = (List_maxIndex_697 + 1); this_132 = List_maxIndex_697; List_typeId_104[this_132] = 1; } else { error125("Out of memory: Could not create List."); this_132 = 0; }; } else { List_firstFree_622 = (List_firstFree_622 - 1); this_132 = List_nextFree_148[List_firstFree_622]; List_typeId_104[this_132] = 1; }; return this_132; } function error125(string msg110) { $debugPrint196((msg_110 + (" " + #getStackTrace()))); }