array SimpleFunc_nextFree151 integer SimpleFunc_firstFree700 integer SimpleFunc_maxIndex202 array SimpleFunc_typeId778 integer SimpleFunc_firstFree700 = 0 integer SimpleFunc_maxIndex202 = 0 function initGlobals108() { } function main191() { initGlobals108(); init_test157(); } function config348() { } function init_test157() { local integer clVar134 clVar_134 = alloc_SimpleFunc_test175(); dispatch_SimpleFunc_test_SimpleFunc_apply183(clVar_134); } function foo608() returns integer { testSuccess326(); return 4; } IS_NATIVE function testSuccess326() { } function apply_test185(integer this110) returns integer { return foo608(); } function alloc_SimpleFunc_test175() returns integer { local integer this459 if (SimpleFunc_firstFree_700 == 0) { if (SimpleFunc_maxIndex_202 < 32768) { SimpleFunc_maxIndex_202 = (SimpleFunc_maxIndex_202 + 1); this_459 = SimpleFunc_maxIndex_202; SimpleFunc_typeId_778[this_459] = 2; } else { error175("Out of memory: Could not create SimpleFunc_test."); this_459 = 0; }; } else { SimpleFunc_firstFree_700 = (SimpleFunc_firstFree_700 - 1); this_459 = SimpleFunc_nextFree_151[SimpleFunc_firstFree_700]; SimpleFunc_typeId_778[this_459] = 2; }; return this_459; } function error175(string msg209) { $debugPrint259((msg_209 + (" " + #getStackTrace()))); } function dispatch_SimpleFunc_test_SimpleFunc_apply183(integer this114) { if (SimpleFunc_typeId_778[this_114] == 0) { if (this_114 == 0) { error175("Nullpointer exception when calling SimpleFunc.apply"); } else { error175("Called SimpleFunc.apply on invalid object."); }; } else { }; apply_test185(this_114); }