array SimpleFunc_nextFree155 integer SimpleFunc_firstFree161 integer SimpleFunc_maxIndex523 array SimpleFunc_typeId214 array main186 integer SimpleFunc_firstFree161 = 0 integer SimpleFunc_maxIndex523 = 0 function initGlobals142() { } function main355() { initGlobals142(); init_test733(); } function config686() { } function init_test733() { local integer clVar198 clVar_198 = alloc_SimpleFunc_test205(); main_186[clVar_198] = 4; if (dispatch_SimpleFunc_test_SimpleFunc_apply119(clVar_198, 3) == 7) { testSuccess966(); } else { }; } IS_NATIVE function testSuccess966() { } function apply_test601(integer this368, integer x192) returns integer { return (x_192 + main_186[this_368]); } function alloc_SimpleFunc_test205() returns integer { local integer this120 if (SimpleFunc_firstFree_161 == 0) { if (SimpleFunc_maxIndex_523 < 32768) { SimpleFunc_maxIndex_523 = (SimpleFunc_maxIndex_523 + 1); this_120 = SimpleFunc_maxIndex_523; SimpleFunc_typeId_214[this_120] = 2; } else { error820("Out of memory: Could not create SimpleFunc_test."); this_120 = 0; }; } else { SimpleFunc_firstFree_161 = (SimpleFunc_firstFree_161 - 1); this_120 = SimpleFunc_nextFree_155[SimpleFunc_firstFree_161]; SimpleFunc_typeId_214[this_120] = 2; }; return this_120; } function error820(string msg888) { $debugPrint191((msg_888 + (" " + #getStackTrace()))); } function dispatch_SimpleFunc_test_SimpleFunc_apply119(integer this456, integer x208) returns integer { if (SimpleFunc_typeId_214[this_456] == 0) { if (this_456 == 0) { error820("Nullpointer exception when calling SimpleFunc.apply"); } else { error820("Called SimpleFunc.apply on invalid object."); }; } else { }; return apply_test601(this_456, x_208); }