array SimpleFunc_nextFree570 integer SimpleFunc_firstFree147 integer SimpleFunc_maxIndex972 array SimpleFunc_typeId103 array y176 integer SimpleFunc_firstFree147 = 0 integer SimpleFunc_maxIndex972 = 0 function initGlobals410() { SimpleFunc_firstFree_147 = 0; SimpleFunc_maxIndex_972 = 0; } function main143() { initGlobals410(); init_test132(); } function config968() { } function init_test132() { local integer y654 local integer f120 local integer clVar937 y_654 = 4; clVar_937 = alloc_SimpleFunc_test168(); y_176[clVar_937] = y_654; f_120 = clVar_937; if (dispatch_SimpleFunc_test_SimpleFunc_apply559(f_120, 3) == 7) { testSuccess184(); } else { }; } IS_NATIVE function testSuccess184() { } function apply_test926(integer this727, integer x166) returns integer { local integer a111 local integer b183 a_111 = y_176[this_727]; b_183 = (a_111 + x_166); return b_183; } function alloc_SimpleFunc_test168() returns integer { local integer this821 if (SimpleFunc_firstFree_147 == 0) { if (SimpleFunc_maxIndex_972 < 32768) { SimpleFunc_maxIndex_972 = (SimpleFunc_maxIndex_972 + 1); this_821 = SimpleFunc_maxIndex_972; SimpleFunc_typeId_103[this_821] = 2; } else { error549("Out of memory: Could not create SimpleFunc_test."); this_821 = 0; }; } else { SimpleFunc_firstFree_147 = (SimpleFunc_firstFree_147 - 1); this_821 = SimpleFunc_nextFree_570[SimpleFunc_firstFree_147]; SimpleFunc_typeId_103[this_821] = 2; }; return this_821; } function error549(string msg586) { $debugPrint129((msg_586 + (" " + #getStackTrace()))); } function dispatch_SimpleFunc_test_SimpleFunc_apply559(integer this863, integer x327) returns integer { local integer test_SimpleFunc_apply_result125 if (SimpleFunc_typeId_103[this_863] == 0) { if (this_863 == 0) { error549("Nullpointer exception when calling SimpleFunc.apply"); } else { error549("Called SimpleFunc.apply on invalid object."); }; } else { }; test_SimpleFunc_apply_result_125 = apply_test926(this_863, x_327); return test_SimpleFunc_apply_result_125; }