array I_nextFree131 integer I_firstFree169 integer I_maxIndex125 array I_typeId467 integer I_firstFree169 = 0 integer I_maxIndex125 = 0 function initGlobals132() { } function main143() { initGlobals132(); init_test107(); } function config180() { } function init_test107() { local integer i141 i_141 = new_C101(); if (I_typeId_467[i_141] == 0) { if (i_141 == 0) { error101("Nullpointer exception when calling I.foo"); } else { error101("Called I.foo on invalid object."); }; } else { }; testSuccess184(); } IS_NATIVE function testSuccess184() { } function new_C101() returns integer { local integer this864 if (I_firstFree_169 == 0) { if (I_maxIndex_125 < 32768) { I_maxIndex_125 = (I_maxIndex_125 + 1); this_864 = I_maxIndex_125; I_typeId_467[this_864] = 2; } else { error101("Out of memory: Could not create C."); this_864 = 0; }; } else { I_firstFree_169 = (I_firstFree_169 - 1); this_864 = I_nextFree_131[I_firstFree_169]; I_typeId_467[this_864] = 2; }; return this_864; } function error101(string msg212) { $debugPrint198((msg_212 + (" " + #getStackTrace()))); }