array SimpleFunc_nextFree685 integer SimpleFunc_firstFree492 integer SimpleFunc_maxIndex190 array SimpleFunc_typeId220 integer SimpleFunc_firstFree492 = 0 integer SimpleFunc_maxIndex190 = 0 function initGlobals185() { } function main500() { initGlobals185(); init_test629(); } function config129() { } function init_test629() { if (dispatch_SimpleFunc_test_SimpleFunc_apply759(alloc_SimpleFunc_test114(), 3, 4) == 7) { testSuccess588(); } else { }; } IS_NATIVE function testSuccess588() { } function apply_test825(integer this685, integer x157, integer y134) returns integer { return (x_157 + y_134); } function alloc_SimpleFunc_test114() returns integer { local integer this193 if (SimpleFunc_firstFree_492 == 0) { if (SimpleFunc_maxIndex_190 < 32768) { SimpleFunc_maxIndex_190 = (SimpleFunc_maxIndex_190 + 1); this_193 = SimpleFunc_maxIndex_190; SimpleFunc_typeId_220[this_193] = 2; } else { error277("Out of memory: Could not create SimpleFunc_test."); this_193 = 0; }; } else { SimpleFunc_firstFree_492 = (SimpleFunc_firstFree_492 - 1); this_193 = SimpleFunc_nextFree_685[SimpleFunc_firstFree_492]; SimpleFunc_typeId_220[this_193] = 2; }; return this_193; } function error277(string msg344) { $debugPrint117((msg_344 + (" " + #getStackTrace()))); } function dispatch_SimpleFunc_test_SimpleFunc_apply759(integer this838, integer x234, integer y609) returns integer { if (SimpleFunc_typeId_220[this_838] == 0) { if (this_838 == 0) { error277("Nullpointer exception when calling SimpleFunc.apply"); } else { error277("Called SimpleFunc.apply on invalid object."); }; } else { }; return apply_test825(this_838, x_234, y_609); }