array I_nextFree619 integer I_firstFree113 integer I_maxIndex191 array I_typeId182 integer I_firstFree113 = 0 integer I_maxIndex191 = 0 function initGlobals159() { } function main175() { initGlobals159(); init_test181(); } function config188() { } function init_test181() { local integer i111 local integer this878 i_111 = new_C620(); this_878 = i_111; if (I_typeId_182[this_878] == 0) { if (this_878 == 0) { error112("Nullpointer exception when calling I.foo"); } else { error112("Called I.foo on invalid object."); }; } else { }; testSuccess608(); } IS_NATIVE function testSuccess608() { } function new_C620() returns integer { local integer this940 local integer this214 if (I_firstFree_113 == 0) { if (I_maxIndex_191 < 32768) { I_maxIndex_191 = (I_maxIndex_191 + 1); this_214 = I_maxIndex_191; I_typeId_182[this_214] = 2; } else { error112("Out of memory: Could not create C."); this_214 = 0; }; } else { I_firstFree_113 = (I_firstFree_113 - 1); this_214 = I_nextFree_619[I_firstFree_113]; I_typeId_182[this_214] = 2; }; this_940 = this_214; return this_940; } function error112(string msg914) { $debugPrint401((msg_914 + (" " + #getStackTrace()))); }