array Func_nextFree196 integer Func_firstFree145 integer Func_maxIndex173 array Func_typeId543 array C_nextFree192 integer C_firstFree140 integer C_maxIndex584 array C_typeId784 array C_x285 integer Func_firstFree145 = 0 integer Func_maxIndex173 = 0 integer C_firstFree140 = 0 integer C_maxIndex584 = 0 function initGlobals136() { } function main154() { initGlobals136(); init_A775(); } function config109() { } function init_A775() { local integer a133 local integer b516 local integer clVar174 local integer temp599 local any x146 local integer this116 local integer this446 local integer this109 local any x787 local integer this458 local integer this111 local integer f190 local integer A_C_map_result185 x_146 = 5; if (C_firstFree_140 == 0) { if (C_maxIndex_584 < 32768) { C_maxIndex_584 = (C_maxIndex_584 + 1); this_446 = C_maxIndex_584; C_typeId_784[this_446] = 1; } else { error142("Out of memory: Could not create C."); this_446 = 0; }; } else { C_firstFree_140 = (C_firstFree_140 - 1); this_446 = C_nextFree_192[C_firstFree_140]; C_typeId_784[this_446] = 1; }; this_116 = this_446; this_109 = this_116; x_787 = x_146; C_x_285[this_109] = x_787; a_133 = this_116; temp_599 = a_133; if (Func_firstFree_145 == 0) { if (Func_maxIndex_173 < 32768) { Func_maxIndex_173 = (Func_maxIndex_173 + 1); this_458 = Func_maxIndex_173; Func_typeId_543[this_458] = 3; } else { error142("Out of memory: Could not create Func_map_A."); this_458 = 0; }; } else { Func_firstFree_145 = (Func_firstFree_145 - 1); this_458 = Func_nextFree_196[Func_firstFree_145]; Func_typeId_543[this_458] = 3; }; clVar_174 = this_458; this_111 = temp_599; f_190 = clVar_174; if (C_typeId_784[this_111] == 0) { if (this_111 == 0) { error142("Nullpointer exception when calling C.map"); } else { error142("Called C.map on invalid object."); }; } else { }; A_C_map_result_185 = C_map118(this_111, f_190); b_516 = A_C_map_result_185; if (C_x_285[b_516] == 10) { testSuccess137(); } else { }; } IS_NATIVE function testSuccess137() { } function C_map118(integer this948, integer f991) returns integer { local integer this240 local any x337 local any A_Func_apply_result115 local integer x931 this_240 = f_991; x_337 = C_x_285[this_948]; if (Func_typeId_543[this_240] == 0) { if (this_240 == 0) { error142("Nullpointer exception when calling Func.apply"); } else { error142("Called Func.apply on invalid object."); }; } else { }; x_931 = x_337; A_Func_apply_result_115 = (2 * x_931); return new_C459(A_Func_apply_result_115); } function new_C459(any x350) returns integer { local integer this134 local integer this205 local integer this612 local any x110 if (C_firstFree_140 == 0) { if (C_maxIndex_584 < 32768) { C_maxIndex_584 = (C_maxIndex_584 + 1); this_205 = C_maxIndex_584; C_typeId_784[this_205] = 1; } else { error142("Out of memory: Could not create C."); this_205 = 0; }; } else { C_firstFree_140 = (C_firstFree_140 - 1); this_205 = C_nextFree_192[C_firstFree_140]; C_typeId_784[this_205] = 1; }; this_134 = this_205; this_612 = this_134; x_110 = x_350; C_x_285[this_612] = x_110; return this_134; } function error142(string msg116) { $debugPrint917((msg_116 + (" " + #getStackTrace()))); }