array SimpleFunc_nextFree178 integer SimpleFunc_firstFree103 integer SimpleFunc_maxIndex127 array SimpleFunc_typeId156 array y145 integer SimpleFunc_firstFree103 = 0 integer SimpleFunc_maxIndex127 = 0 function initGlobals657() { SimpleFunc_firstFree_103 = 0; SimpleFunc_maxIndex_127 = 0; } function main625() { initGlobals657(); init_test293(); } function config343() { } function init_test293() { test213(4); } function test213(integer y827) { local integer f890 local integer clVar190 clVar_190 = alloc_SimpleFunc_test569(); y_145[clVar_190] = y_827; f_890 = clVar_190; if (dispatch_SimpleFunc_test_SimpleFunc_apply405(f_890, 3) == 7) { testSuccess643(); } else { }; } IS_NATIVE function testSuccess643() { } function apply_test166(integer this177, integer x218) returns integer { return (x_218 + y_145[this_177]); } function alloc_SimpleFunc_test569() returns integer { local integer this510 if (SimpleFunc_firstFree_103 == 0) { if (SimpleFunc_maxIndex_127 < 32768) { SimpleFunc_maxIndex_127 = (SimpleFunc_maxIndex_127 + 1); this_510 = SimpleFunc_maxIndex_127; SimpleFunc_typeId_156[this_510] = 2; } else { error207("Out of memory: Could not create SimpleFunc_test."); this_510 = 0; }; } else { SimpleFunc_firstFree_103 = (SimpleFunc_firstFree_103 - 1); this_510 = SimpleFunc_nextFree_178[SimpleFunc_firstFree_103]; SimpleFunc_typeId_156[this_510] = 2; }; return this_510; } function error207(string msg517) { $debugPrint102((msg_517 + (" " + #getStackTrace()))); } function dispatch_SimpleFunc_test_SimpleFunc_apply405(integer this195, integer x501) returns integer { local integer test_SimpleFunc_apply_result206 if (SimpleFunc_typeId_156[this_195] == 0) { if (this_195 == 0) { error207("Nullpointer exception when calling SimpleFunc.apply"); } else { error207("Called SimpleFunc.apply on invalid object."); }; } else { }; test_SimpleFunc_apply_result_206 = apply_test166(this_195, x_501); return test_SimpleFunc_apply_result_206; }