array SimpleFunc_nextFree212 integer SimpleFunc_firstFree170 integer SimpleFunc_maxIndex133 array SimpleFunc_typeId155 array main845 integer SimpleFunc_firstFree170 = 0 integer SimpleFunc_maxIndex133 = 0 function initGlobals181() { } function main128() { initGlobals181(); init_test279(); } function config713() { } function init_test279() { local integer clVar723 clVar_723 = alloc_SimpleFunc_test182(); main_845[clVar_723] = 4; if (dispatch_SimpleFunc_test_SimpleFunc_apply559(clVar_723, 3) == 7) { testSuccess127(); } else { }; } IS_NATIVE function testSuccess127() { } function apply_test215(integer this144, integer x190) returns integer { return (x_190 + main_845[this_144]); } function alloc_SimpleFunc_test182() returns integer { local integer this933 if (SimpleFunc_firstFree_170 == 0) { if (SimpleFunc_maxIndex_133 < 32768) { SimpleFunc_maxIndex_133 = (SimpleFunc_maxIndex_133 + 1); this_933 = SimpleFunc_maxIndex_133; SimpleFunc_typeId_155[this_933] = 2; } else { error179("Out of memory: Could not create SimpleFunc_test."); this_933 = 0; }; } else { SimpleFunc_firstFree_170 = (SimpleFunc_firstFree_170 - 1); this_933 = SimpleFunc_nextFree_212[SimpleFunc_firstFree_170]; SimpleFunc_typeId_155[this_933] = 2; }; return this_933; } function error179(string msg136) { $debugPrint102((msg_136 + (" " + #getStackTrace()))); } function dispatch_SimpleFunc_test_SimpleFunc_apply559(integer this389, integer x192) returns integer { if (SimpleFunc_typeId_155[this_389] == 0) { if (this_389 == 0) { error179("Nullpointer exception when calling SimpleFunc.apply"); } else { error179("Called SimpleFunc.apply on invalid object."); }; } else { }; return apply_test215(this_389, x_192); }