array I_nextFree918 integer I_firstFree707 integer I_maxIndex209 array I_typeId150 integer I_firstFree707 = 0 integer I_maxIndex209 = 0 function initGlobals156() { } function main294() { initGlobals156(); init_test764(); } function config196() { } function init_test764() { if (dispatch_I_test_I_foo112(new_C883(), 1) == 43) { testSuccess128(); } else { }; } IS_NATIVE function testSuccess128() { } function C_init351(integer this142) { } function new_C883() returns integer { local integer this167 this_167 = alloc_C167(); construct_C163(this_167); return this_167; } function construct_C163(integer this226) { C_init351(this_226); } function I_foo890(integer this349, integer x473) returns integer { return (x_473 + 42); } function alloc_C167() returns integer { local integer this183 if (I_firstFree_707 == 0) { if (I_maxIndex_209 < 32768) { I_maxIndex_209 = (I_maxIndex_209 + 1); this_183 = I_maxIndex_209; I_typeId_150[this_183] = 2; } else { error820("Out of memory: Could not create C."); this_183 = 0; }; } else { I_firstFree_707 = (I_firstFree_707 - 1); this_183 = I_nextFree_918[I_firstFree_707]; I_typeId_150[this_183] = 2; }; return this_183; } function error820(string msg138) { $debugPrint497((msg_138 + (" " + #getStackTrace()))); } function dispatch_I_test_I_foo112(integer this209, integer x196) returns integer { if (I_typeId_150[this_209] == 0) { if (this_209 == 0) { error820("Nullpointer exception when calling I.foo"); } else { error820("Called I.foo on invalid object."); }; } else { }; return I_foo890(this_209, x_196); }