array SimpleFunc_nextFree319 integer SimpleFunc_firstFree474 integer SimpleFunc_maxIndex191 array SimpleFunc_typeId339 integer SimpleFunc_firstFree474 = 0 integer SimpleFunc_maxIndex191 = 0 function initGlobals408() { SimpleFunc_firstFree_474 = 0; SimpleFunc_maxIndex_191 = 0; } function main975() { initGlobals408(); init_test838(); } function config161() { } function init_test838() { local integer f177 local integer clVar384 clVar_384 = alloc_SimpleFunc_test115(); f_177 = clVar_384; if (dispatch_SimpleFunc_test_SimpleFunc_apply214(f_177, 3, 4) == 7) { testSuccess198(); } else { }; } IS_NATIVE function testSuccess198() { } function apply_test173(integer this113, integer x983, integer y178) returns integer { return (x_983 + y_178); } function alloc_SimpleFunc_test115() returns integer { local integer this102 if (SimpleFunc_firstFree_474 == 0) { if (SimpleFunc_maxIndex_191 < 32768) { SimpleFunc_maxIndex_191 = (SimpleFunc_maxIndex_191 + 1); this_102 = SimpleFunc_maxIndex_191; SimpleFunc_typeId_339[this_102] = 2; } else { error104("Out of memory: Could not create SimpleFunc_test."); this_102 = 0; }; } else { SimpleFunc_firstFree_474 = (SimpleFunc_firstFree_474 - 1); this_102 = SimpleFunc_nextFree_319[SimpleFunc_firstFree_474]; SimpleFunc_typeId_339[this_102] = 2; }; return this_102; } function error104(string msg886) { $debugPrint115((msg_886 + (" " + #getStackTrace()))); } function dispatch_SimpleFunc_test_SimpleFunc_apply214(integer this172, integer x787, integer y251) returns integer { local integer test_SimpleFunc_apply_result198 if (SimpleFunc_typeId_339[this_172] == 0) { if (this_172 == 0) { error104("Nullpointer exception when calling SimpleFunc.apply"); } else { error104("Called SimpleFunc.apply on invalid object."); }; } else { }; test_SimpleFunc_apply_result_198 = apply_test173(this_172, x_787, y_251); return test_SimpleFunc_apply_result_198; }