array List_nextFree166 integer List_firstFree113 integer List_maxIndex170 array List_typeId182 integer List_firstFree113 = 0 integer List_maxIndex170 = 0 function initGlobals161() { } function main189() { initGlobals161(); init_Test847(); } function config197() { } function init_Test847() { local integer fxs539 local integer this797 fxs_539 = new_List643(); this_797 = fxs_539; if (List_typeId_182[this_797] == 0) { if (this_797 == 0) { error120("Nullpointer exception when calling List.get"); } else { error120("Called List.get on invalid object."); }; } else { }; } function new_List643() returns integer { local integer this779 local integer this731 if (List_firstFree_113 == 0) { if (List_maxIndex_170 < 32768) { List_maxIndex_170 = (List_maxIndex_170 + 1); this_731 = List_maxIndex_170; List_typeId_182[this_731] = 1; } else { error120("Out of memory: Could not create List."); this_731 = 0; }; } else { List_firstFree_113 = (List_firstFree_113 - 1); this_731 = List_nextFree_166[List_firstFree_113]; List_typeId_182[this_731] = 1; }; this_779 = this_731; return this_779; } function error120(string msg140) { $debugPrint185((msg_140 + (" " + #getStackTrace()))); }