array SimpleFunc_nextFree131 integer SimpleFunc_firstFree132 integer SimpleFunc_maxIndex198 array SimpleFunc_typeId170 array y671 integer SimpleFunc_firstFree132 = 0 integer SimpleFunc_maxIndex198 = 0 function initGlobals170() { } function main379() { initGlobals170(); init_test178(); } function config172() { } function init_test178() { local integer clVar209 clVar_209 = alloc_SimpleFunc_test205(); y_671[clVar_209] = 4; if (dispatch_SimpleFunc_test_SimpleFunc_apply184(clVar_209, 3) == 7) { testSuccess128(); } else { }; } IS_NATIVE function testSuccess128() { } function apply_test159(integer this182, integer x295) returns integer { return (y_671[this_182] + x_295); } function alloc_SimpleFunc_test205() returns integer { local integer this998 if (SimpleFunc_firstFree_132 == 0) { if (SimpleFunc_maxIndex_198 < 32768) { SimpleFunc_maxIndex_198 = (SimpleFunc_maxIndex_198 + 1); this_998 = SimpleFunc_maxIndex_198; SimpleFunc_typeId_170[this_998] = 2; } else { error325("Out of memory: Could not create SimpleFunc_test."); this_998 = 0; }; } else { SimpleFunc_firstFree_132 = (SimpleFunc_firstFree_132 - 1); this_998 = SimpleFunc_nextFree_131[SimpleFunc_firstFree_132]; SimpleFunc_typeId_170[this_998] = 2; }; return this_998; } function error325(string msg120) { $debugPrint814((msg_120 + (" " + #getStackTrace()))); } function dispatch_SimpleFunc_test_SimpleFunc_apply184(integer this423, integer x165) returns integer { if (SimpleFunc_typeId_170[this_423] == 0) { if (this_423 == 0) { error325("Nullpointer exception when calling SimpleFunc.apply"); } else { error325("Called SimpleFunc.apply on invalid object."); }; } else { }; return apply_test159(this_423, x_165); }