array SimpleFunc_nextFree633 integer SimpleFunc_firstFree142 integer SimpleFunc_maxIndex434 array SimpleFunc_typeId149 integer SimpleFunc_firstFree142 = 0 integer SimpleFunc_maxIndex434 = 0 function initGlobals898() { } function main412() { initGlobals898(); init_test158(); } function config446() { } function init_test158() { if (dispatch_SimpleFunc_test_SimpleFunc_apply263(alloc_SimpleFunc_test114(), 3, 4) == 7) { testSuccess663(); } else { }; } IS_NATIVE function testSuccess663() { } function apply_test150(integer this392, integer x125, integer y103) returns integer { return (x_125 + y_103); } function alloc_SimpleFunc_test114() returns integer { local integer this192 if (SimpleFunc_firstFree_142 == 0) { if (SimpleFunc_maxIndex_434 < 32768) { SimpleFunc_maxIndex_434 = (SimpleFunc_maxIndex_434 + 1); this_192 = SimpleFunc_maxIndex_434; SimpleFunc_typeId_149[this_192] = 2; } else { error115("Out of memory: Could not create SimpleFunc_test."); this_192 = 0; }; } else { SimpleFunc_firstFree_142 = (SimpleFunc_firstFree_142 - 1); this_192 = SimpleFunc_nextFree_633[SimpleFunc_firstFree_142]; SimpleFunc_typeId_149[this_192] = 2; }; return this_192; } function error115(string msg286) { $debugPrint808((msg_286 + (" " + #getStackTrace()))); } function dispatch_SimpleFunc_test_SimpleFunc_apply263(integer this203, integer x516, integer y181) returns integer { if (SimpleFunc_typeId_149[this_203] == 0) { if (this_203 == 0) { error115("Nullpointer exception when calling SimpleFunc.apply"); } else { error115("Called SimpleFunc.apply on invalid object."); }; } else { }; return apply_test150(this_203, x_516, y_181); }