array List_nextFree840 integer List_firstFree531 integer List_maxIndex823 array List_typeId211 integer List_firstFree531 = 0 integer List_maxIndex823 = 0 function initGlobals157() { } function main976() { initGlobals157(); init_Test897(); } function config969() { } function init_Test897() { local integer fxs196 local integer this210 fxs_196 = new_List559(); this_210 = fxs_196; if (List_typeId_211[this_210] == 0) { if (this_210 == 0) { error116("Nullpointer exception when calling List.get"); } else { error116("Called List.get on invalid object."); }; } else { }; } function new_List559() returns integer { local integer this497 local integer this139 if (List_firstFree_531 == 0) { if (List_maxIndex_823 < 32768) { List_maxIndex_823 = (List_maxIndex_823 + 1); this_139 = List_maxIndex_823; List_typeId_211[this_139] = 1; } else { error116("Out of memory: Could not create List."); this_139 = 0; }; } else { List_firstFree_531 = (List_firstFree_531 - 1); this_139 = List_nextFree_840[List_firstFree_531]; List_typeId_211[this_139] = 1; }; this_497 = this_139; return this_497; } function error116(string msg563) { $debugPrint405((msg_563 + (" " + #getStackTrace()))); }