array I_nextFree692 integer I_firstFree609 integer I_maxIndex163 array I_typeId163 integer I_firstFree609 = 0 integer I_maxIndex163 = 0 function initGlobals439() { } function main900() { initGlobals439(); init_test267(); } function config162() { } function init_test267() { local integer i162 local integer this135 i_162 = new_C201(); this_135 = i_162; if (I_typeId_163[this_135] == 0) { if (this_135 == 0) { error494("Nullpointer exception when calling I.foo"); } else { error494("Called I.foo on invalid object."); }; } else { }; testSuccess484(); } IS_NATIVE function testSuccess484() { } function new_C201() returns integer { local integer this978 local integer this149 if (I_firstFree_609 == 0) { if (I_maxIndex_163 < 32768) { I_maxIndex_163 = (I_maxIndex_163 + 1); this_149 = I_maxIndex_163; I_typeId_163[this_149] = 2; } else { error494("Out of memory: Could not create C."); this_149 = 0; }; } else { I_firstFree_609 = (I_firstFree_609 - 1); this_149 = I_nextFree_692[I_firstFree_609]; I_typeId_163[this_149] = 2; }; this_978 = this_149; return this_978; } function error494(string msg845) { $debugPrint196((msg_845 + (" " + #getStackTrace()))); }