array I_nextFree101 integer I_firstFree902 integer I_maxIndex113 array I_typeId168 integer I_firstFree902 = 0 integer I_maxIndex113 = 0 function initGlobals193() { } function main494() { initGlobals193(); init_test117(); } function config187() { } function init_test117() { local integer i123 local integer this530 local integer x128 local integer test_I_foo_result353 local integer x272 i_123 = new_C627(); this_530 = i_123; x_128 = 1; if (I_typeId_168[this_530] == 0) { if (this_530 == 0) { error715("Nullpointer exception when calling I.foo"); } else { error715("Called I.foo on invalid object."); }; } else { }; x_272 = x_128; test_I_foo_result_353 = (x_272 + 42); if (test_I_foo_result_353 == 43) { testSuccess188(); } else { }; } IS_NATIVE function testSuccess188() { } function new_C627() returns integer { local integer this118 local integer this106 if (I_firstFree_902 == 0) { if (I_maxIndex_113 < 32768) { I_maxIndex_113 = (I_maxIndex_113 + 1); this_106 = I_maxIndex_113; I_typeId_168[this_106] = 2; } else { error715("Out of memory: Could not create C."); this_106 = 0; }; } else { I_firstFree_902 = (I_firstFree_902 - 1); this_106 = I_nextFree_101[I_firstFree_902]; I_typeId_168[this_106] = 2; }; this_118 = this_106; return this_118; } function error715(string msg123) { $debugPrint849((msg_123 + (" " + #getStackTrace()))); }