array I_nextFree191 integer I_firstFree201 integer I_maxIndex155 array I_typeId158 integer I_firstFree201 = 0 integer I_maxIndex155 = 0 function initGlobals198() { } function main527() { initGlobals198(); init_test140(); } function config208() { } function init_test140() { local integer i175 i_175 = new_C763(); if (I_typeId_158[i_175] == 0) { if (i_175 == 0) { error120("Nullpointer exception when calling I.foo"); } else { error120("Called I.foo on invalid object."); }; } else { }; testSuccess838(); } IS_NATIVE function testSuccess838() { } function new_C763() returns integer { local integer this161 if (I_firstFree_201 == 0) { if (I_maxIndex_155 < 32768) { I_maxIndex_155 = (I_maxIndex_155 + 1); this_161 = I_maxIndex_155; I_typeId_158[this_161] = 2; } else { error120("Out of memory: Could not create C."); this_161 = 0; }; } else { I_firstFree_201 = (I_firstFree_201 - 1); this_161 = I_nextFree_191[I_firstFree_201]; I_typeId_158[this_161] = 2; }; return this_161; } function error120(string msg194) { $debugPrint597((msg_194 + (" " + #getStackTrace()))); }