array Func_nextFree124 integer Func_firstFree332 integer Func_maxIndex105 array Func_typeId756 array C_nextFree178 integer C_firstFree736 integer C_maxIndex211 array C_typeId120 array C_x114 integer Func_firstFree332 = 0 integer Func_maxIndex105 = 0 integer C_firstFree736 = 0 integer C_maxIndex211 = 0 function initGlobals601() { } function main196() { initGlobals601(); init_A249(); } function config163() { } function init_A249() { local integer a124 local integer b170 local integer clVar438 local integer temp459 local any x843 local integer this134 local integer this195 local integer this819 local any x908 local integer this689 local integer this114 local integer f787 local integer A_C_map_result174 x_843 = 5; if (C_firstFree_736 == 0) { if (C_maxIndex_211 < 32768) { C_maxIndex_211 = (C_maxIndex_211 + 1); this_195 = C_maxIndex_211; C_typeId_120[this_195] = 1; } else { error193("Out of memory: Could not create C."); this_195 = 0; }; } else { C_firstFree_736 = (C_firstFree_736 - 1); this_195 = C_nextFree_178[C_firstFree_736]; C_typeId_120[this_195] = 1; }; this_134 = this_195; this_819 = this_134; x_908 = x_843; C_x_114[this_819] = x_908; a_124 = this_134; temp_459 = a_124; if (Func_firstFree_332 == 0) { if (Func_maxIndex_105 < 32768) { Func_maxIndex_105 = (Func_maxIndex_105 + 1); this_689 = Func_maxIndex_105; Func_typeId_756[this_689] = 3; } else { error193("Out of memory: Could not create Func_map_A."); this_689 = 0; }; } else { Func_firstFree_332 = (Func_firstFree_332 - 1); this_689 = Func_nextFree_124[Func_firstFree_332]; Func_typeId_756[this_689] = 3; }; clVar_438 = this_689; this_114 = temp_459; f_787 = clVar_438; if (C_typeId_120[this_114] == 0) { if (this_114 == 0) { error193("Nullpointer exception when calling C.map"); } else { error193("Called C.map on invalid object."); }; } else { }; A_C_map_result_174 = C_map490(this_114, f_787); b_170 = A_C_map_result_174; if (C_x_114[b_170] == 10) { testSuccess191(); } else { }; } IS_NATIVE function testSuccess191() { } function C_map490(integer this138, integer f150) returns integer { local integer this203 local any x149 local any A_Func_apply_result191 local integer x892 this_203 = f_150; x_149 = C_x_114[this_138]; if (Func_typeId_756[this_203] == 0) { if (this_203 == 0) { error193("Nullpointer exception when calling Func.apply"); } else { error193("Called Func.apply on invalid object."); }; } else { }; x_892 = x_149; A_Func_apply_result_191 = (2 * x_892); return new_C644(A_Func_apply_result_191); } function new_C644(any x127) returns integer { local integer this189 local integer this179 local integer this173 local any x296 if (C_firstFree_736 == 0) { if (C_maxIndex_211 < 32768) { C_maxIndex_211 = (C_maxIndex_211 + 1); this_179 = C_maxIndex_211; C_typeId_120[this_179] = 1; } else { error193("Out of memory: Could not create C."); this_179 = 0; }; } else { C_firstFree_736 = (C_firstFree_736 - 1); this_179 = C_nextFree_178[C_firstFree_736]; C_typeId_120[this_179] = 1; }; this_189 = this_179; this_173 = this_189; x_296 = x_127; C_x_114[this_173] = x_296; return this_189; } function error193(string msg112) { $debugPrint168((msg_112 + (" " + #getStackTrace()))); }