array Func_nextFree449 integer Func_firstFree147 integer Func_maxIndex154 array Func_typeId168 integer Func_firstFree147 = 0 integer Func_maxIndex154 = 0 integer Func2_firstFree304 = 0 integer Func2_maxIndex180 = 0 function initGlobals740() { } function main494() { initGlobals740(); init_A139(); } function config124() { } function init_A139() { if (bar187(alloc_Func_bar_A160()) == 2) { testSuccess152(); } else { }; } function bar187(integer f355) returns integer { return dispatch_Func_A_Func_apply119(f_355, 1); } IS_NATIVE function testSuccess152() { } function apply_bar_A599(integer this204, integer x188) returns integer { return (x_188 + 1); } function alloc_Func_bar_A160() returns integer { local integer this848 if (Func_firstFree_147 == 0) { if (Func_maxIndex_154 < 32768) { Func_maxIndex_154 = (Func_maxIndex_154 + 1); this_848 = Func_maxIndex_154; Func_typeId_168[this_848] = 2; } else { error133("Out of memory: Could not create Func_bar_A."); this_848 = 0; }; } else { Func_firstFree_147 = (Func_firstFree_147 - 1); this_848 = Func_nextFree_449[Func_firstFree_147]; Func_typeId_168[this_848] = 2; }; return this_848; } function error133(string msg806) { $debugPrint179((msg_806 + (" " + #getStackTrace()))); } function dispatch_Func_A_Func_apply119(integer this277, integer x175) returns integer { if (Func_typeId_168[this_277] == 0) { if (this_277 == 0) { error133("Nullpointer exception when calling Func.apply"); } else { error133("Called Func.apply on invalid object."); }; } else { }; return apply_bar_A599(this_277, x_175); }