array SimpleFunc_nextFree130 integer SimpleFunc_firstFree340 integer SimpleFunc_maxIndex168 array SimpleFunc_typeId569 array y635 integer SimpleFunc_firstFree340 = 0 integer SimpleFunc_maxIndex168 = 0 function initGlobals996() { } function main407() { initGlobals996(); init_test175(); } function config244() { } function init_test175() { local integer clVar539 clVar_539 = alloc_SimpleFunc_test543(); y_635[clVar_539] = 4; if (dispatch_SimpleFunc_test_SimpleFunc_apply187(clVar_539, 3) == 7) { testSuccess217(); } else { }; } IS_NATIVE function testSuccess217() { } function apply_test764(integer this176, integer x197) returns integer { return (y_635[this_176] + x_197); } function alloc_SimpleFunc_test543() returns integer { local integer this164 if (SimpleFunc_firstFree_340 == 0) { if (SimpleFunc_maxIndex_168 < 32768) { SimpleFunc_maxIndex_168 = (SimpleFunc_maxIndex_168 + 1); this_164 = SimpleFunc_maxIndex_168; SimpleFunc_typeId_569[this_164] = 2; } else { error335("Out of memory: Could not create SimpleFunc_test."); this_164 = 0; }; } else { SimpleFunc_firstFree_340 = (SimpleFunc_firstFree_340 - 1); this_164 = SimpleFunc_nextFree_130[SimpleFunc_firstFree_340]; SimpleFunc_typeId_569[this_164] = 2; }; return this_164; } function error335(string msg180) { $debugPrint101((msg_180 + (" " + #getStackTrace()))); } function dispatch_SimpleFunc_test_SimpleFunc_apply187(integer this333, integer x974) returns integer { if (SimpleFunc_typeId_569[this_333] == 0) { if (this_333 == 0) { error335("Nullpointer exception when calling SimpleFunc.apply"); } else { error335("Called SimpleFunc.apply on invalid object."); }; } else { }; return apply_test764(this_333, x_974); }