array I_nextFree669 integer I_firstFree199 integer I_maxIndex164 array I_typeId134 integer I_firstFree199 = 0 integer I_maxIndex164 = 0 function initGlobals298() { } function main626() { initGlobals298(); init_test403(); } function config550() { } function init_test403() { if (dispatch_I_test_I_foo505(new_C916(), 1) == 43) { testSuccess970(); } else { }; } IS_NATIVE function testSuccess970() { } function C_init141(integer this209) { } function new_C916() returns integer { local integer this154 this_154 = alloc_C132(); construct_C122(this_154); return this_154; } function construct_C122(integer this561) { C_init141(this_561); } function I_foo198(integer this956, integer x131) returns integer { return (x_131 + 42); } function alloc_C132() returns integer { local integer this136 if (I_firstFree_199 == 0) { if (I_maxIndex_164 < 32768) { I_maxIndex_164 = (I_maxIndex_164 + 1); this_136 = I_maxIndex_164; I_typeId_134[this_136] = 2; } else { error109("Out of memory: Could not create C."); this_136 = 0; }; } else { I_firstFree_199 = (I_firstFree_199 - 1); this_136 = I_nextFree_669[I_firstFree_199]; I_typeId_134[this_136] = 2; }; return this_136; } function error109(string msg194) { $debugPrint190((msg_194 + (" " + #getStackTrace()))); } function dispatch_I_test_I_foo505(integer this205, integer x322) returns integer { if (I_typeId_134[this_205] == 0) { if (this_205 == 0) { error109("Nullpointer exception when calling I.foo"); } else { error109("Called I.foo on invalid object."); }; } else { }; return I_foo198(this_205, x_322); }