array SimpleFunc_nextFree106 integer SimpleFunc_firstFree152 integer SimpleFunc_maxIndex206 array SimpleFunc_typeId675 array main201 integer SimpleFunc_firstFree152 = 0 integer SimpleFunc_maxIndex206 = 0 function initGlobals150() { } function main754() { initGlobals150(); init_test138(); } function config203() { } function init_test138() { local integer clVar199 clVar_199 = alloc_SimpleFunc_test776(); main_201[clVar_199] = 4; if (dispatch_SimpleFunc_test_SimpleFunc_apply614(clVar_199, 3) == 7) { testSuccess127(); } else { }; } IS_NATIVE function testSuccess127() { } function apply_test111(integer this941, integer x567) returns integer { return (x_567 + main_201[this_941]); } function alloc_SimpleFunc_test776() returns integer { local integer this154 if (SimpleFunc_firstFree_152 == 0) { if (SimpleFunc_maxIndex_206 < 32768) { SimpleFunc_maxIndex_206 = (SimpleFunc_maxIndex_206 + 1); this_154 = SimpleFunc_maxIndex_206; SimpleFunc_typeId_675[this_154] = 2; } else { error454("Out of memory: Could not create SimpleFunc_test."); this_154 = 0; }; } else { SimpleFunc_firstFree_152 = (SimpleFunc_firstFree_152 - 1); this_154 = SimpleFunc_nextFree_106[SimpleFunc_firstFree_152]; SimpleFunc_typeId_675[this_154] = 2; }; return this_154; } function error454(string msg426) { $debugPrint174((msg_426 + (" " + #getStackTrace()))); } function dispatch_SimpleFunc_test_SimpleFunc_apply614(integer this982, integer x385) returns integer { if (SimpleFunc_typeId_675[this_982] == 0) { if (this_982 == 0) { error454("Nullpointer exception when calling SimpleFunc.apply"); } else { error454("Called SimpleFunc.apply on invalid object."); }; } else { }; return apply_test111(this_982, x_385); }