array Func_nextFree101 integer Func_firstFree117 integer Func_maxIndex368 array Func_typeId693 integer Func_firstFree117 = 0 integer Func_maxIndex368 = 0 integer Func2_firstFree556 = 0 integer Func2_maxIndex195 = 0 function initGlobals206() { } function main909() { initGlobals206(); init_A163(); } function config175() { } function init_A163() { if (bar168(alloc_Func_bar_A167()) == 2) { testSuccess272(); } else { }; } function bar168(integer f844) returns integer { return dispatch_Func_A_Func_apply934(f_844, 1); } IS_NATIVE function testSuccess272() { } function apply_bar_A516(integer this712, integer x108) returns integer { return (x_108 + 1); } function alloc_Func_bar_A167() returns integer { local integer this111 if (Func_firstFree_117 == 0) { if (Func_maxIndex_368 < 32768) { Func_maxIndex_368 = (Func_maxIndex_368 + 1); this_111 = Func_maxIndex_368; Func_typeId_693[this_111] = 2; } else { error612("Out of memory: Could not create Func_bar_A."); this_111 = 0; }; } else { Func_firstFree_117 = (Func_firstFree_117 - 1); this_111 = Func_nextFree_101[Func_firstFree_117]; Func_typeId_693[this_111] = 2; }; return this_111; } function error612(string msg178) { $debugPrint349((msg_178 + (" " + #getStackTrace()))); } function dispatch_Func_A_Func_apply934(integer this203, integer x113) returns integer { if (Func_typeId_693[this_203] == 0) { if (this_203 == 0) { error612("Nullpointer exception when calling Func.apply"); } else { error612("Called Func.apply on invalid object."); }; } else { }; return apply_bar_A516(this_203, x_113); }