array Func_nextFree203 integer Func_firstFree408 integer Func_maxIndex115 array Func_typeId882 array C_nextFree207 integer C_firstFree309 integer C_maxIndex233 array C_typeId143 array C_x160 integer Func_firstFree408 = 0 integer Func_maxIndex115 = 0 integer C_firstFree309 = 0 integer C_maxIndex233 = 0 function initGlobals119() { } function main229() { initGlobals119(); init_A182(); } function config727() { } function init_A182() { local integer a163 local integer b940 local integer clVar149 local integer temp148 local any x133 local integer this204 local integer this907 local integer this156 local any x168 local integer this124 local integer this116 local integer f639 local integer A_C_map_result772 x_133 = 5; if (C_firstFree_309 == 0) { if (C_maxIndex_233 < 32768) { C_maxIndex_233 = (C_maxIndex_233 + 1); this_907 = C_maxIndex_233; C_typeId_143[this_907] = 1; } else { error621("Out of memory: Could not create C."); this_907 = 0; }; } else { C_firstFree_309 = (C_firstFree_309 - 1); this_907 = C_nextFree_207[C_firstFree_309]; C_typeId_143[this_907] = 1; }; this_204 = this_907; this_156 = this_204; x_168 = x_133; C_x_160[this_156] = x_168; a_163 = this_204; temp_148 = a_163; if (Func_firstFree_408 == 0) { if (Func_maxIndex_115 < 32768) { Func_maxIndex_115 = (Func_maxIndex_115 + 1); this_124 = Func_maxIndex_115; Func_typeId_882[this_124] = 3; } else { error621("Out of memory: Could not create Func_map_A."); this_124 = 0; }; } else { Func_firstFree_408 = (Func_firstFree_408 - 1); this_124 = Func_nextFree_203[Func_firstFree_408]; Func_typeId_882[this_124] = 3; }; clVar_149 = this_124; this_116 = temp_148; f_639 = clVar_149; if (C_typeId_143[this_116] == 0) { if (this_116 == 0) { error621("Nullpointer exception when calling C.map"); } else { error621("Called C.map on invalid object."); }; } else { }; A_C_map_result_772 = C_map947(this_116, f_639); b_940 = A_C_map_result_772; if (C_x_160[b_940] == 10) { testSuccess643(); } else { }; } IS_NATIVE function testSuccess643() { } function C_map947(integer this128, integer f109) returns integer { local integer this112 local any x147 local any A_Func_apply_result462 local integer x493 this_112 = f_109; x_147 = C_x_160[this_128]; if (Func_typeId_882[this_112] == 0) { if (this_112 == 0) { error621("Nullpointer exception when calling Func.apply"); } else { error621("Called Func.apply on invalid object."); }; } else { }; x_493 = x_147; A_Func_apply_result_462 = (2 * x_493); return new_C862(A_Func_apply_result_462); } function new_C862(any x121) returns integer { local integer this173 local integer this410 local integer this162 local any x876 if (C_firstFree_309 == 0) { if (C_maxIndex_233 < 32768) { C_maxIndex_233 = (C_maxIndex_233 + 1); this_410 = C_maxIndex_233; C_typeId_143[this_410] = 1; } else { error621("Out of memory: Could not create C."); this_410 = 0; }; } else { C_firstFree_309 = (C_firstFree_309 - 1); this_410 = C_nextFree_207[C_firstFree_309]; C_typeId_143[this_410] = 1; }; this_173 = this_410; this_162 = this_173; x_876 = x_121; C_x_160[this_162] = x_876; return this_173; } function error621(string msg347) { $debugPrint190((msg_347 + (" " + #getStackTrace()))); }