array I_nextFree209 integer I_firstFree192 integer I_maxIndex707 array I_typeId918 integer I_firstFree192 = 0 integer I_maxIndex707 = 0 function initGlobals127() { } function main351() { initGlobals127(); init_test156(); } function config311() { } function init_test156() { local integer i196 local integer this316 local integer x333 local integer test_I_foo_result194 local integer x780 i_196 = new_C764(); this_316 = i_196; x_333 = 1; if (I_typeId_918[this_316] == 0) { if (this_316 == 0) { error183("Nullpointer exception when calling I.foo"); } else { error183("Called I.foo on invalid object."); }; } else { }; x_780 = x_333; test_I_foo_result_194 = (x_780 + 42); if (test_I_foo_result_194 == 43) { testSuccess883(); } else { }; } IS_NATIVE function testSuccess883() { } function new_C764() returns integer { local integer this142 local integer this107 if (I_firstFree_192 == 0) { if (I_maxIndex_707 < 32768) { I_maxIndex_707 = (I_maxIndex_707 + 1); this_107 = I_maxIndex_707; I_typeId_918[this_107] = 2; } else { error183("Out of memory: Could not create C."); this_107 = 0; }; } else { I_firstFree_192 = (I_firstFree_192 - 1); this_107 = I_nextFree_209[I_firstFree_192]; I_typeId_918[this_107] = 2; }; this_142 = this_107; return this_142; } function error183(string msg820) { $debugPrint138((msg_820 + (" " + #getStackTrace()))); }