array SimpleFunc_nextFree129 integer SimpleFunc_firstFree199 integer SimpleFunc_maxIndex947 array SimpleFunc_typeId562 array y413 integer SimpleFunc_firstFree199 = 0 integer SimpleFunc_maxIndex947 = 0 function initGlobals908() { } function main600() { initGlobals908(); init_test139(); } function config132() { } function init_test139() { test193(4); } function test193(integer y197) { local integer clVar180 clVar_180 = alloc_SimpleFunc_test869(); y_413[clVar_180] = y_197; if (dispatch_SimpleFunc_test_SimpleFunc_apply644(clVar_180, 3) == 7) { testSuccess353(); } else { }; } IS_NATIVE function testSuccess353() { } function apply_test142(integer this178, integer x176) returns integer { return (x_176 + y_413[this_178]); } function alloc_SimpleFunc_test869() returns integer { local integer this123 if (SimpleFunc_firstFree_199 == 0) { if (SimpleFunc_maxIndex_947 < 32768) { SimpleFunc_maxIndex_947 = (SimpleFunc_maxIndex_947 + 1); this_123 = SimpleFunc_maxIndex_947; SimpleFunc_typeId_562[this_123] = 2; } else { error107("Out of memory: Could not create SimpleFunc_test."); this_123 = 0; }; } else { SimpleFunc_firstFree_199 = (SimpleFunc_firstFree_199 - 1); this_123 = SimpleFunc_nextFree_129[SimpleFunc_firstFree_199]; SimpleFunc_typeId_562[this_123] = 2; }; return this_123; } function error107(string msg121) { $debugPrint847((msg_121 + (" " + #getStackTrace()))); } function dispatch_SimpleFunc_test_SimpleFunc_apply644(integer this427, integer x887) returns integer { if (SimpleFunc_typeId_562[this_427] == 0) { if (this_427 == 0) { error107("Nullpointer exception when calling SimpleFunc.apply"); } else { error107("Called SimpleFunc.apply on invalid object."); }; } else { }; return apply_test142(this_427, x_887); }