array Func_nextFree121 integer Func_firstFree261 integer Func_maxIndex111 array Func_typeId157 array C_nextFree122 integer C_firstFree143 integer C_maxIndex208 array C_typeId190 array C_x137 integer Func_firstFree261 = 0 integer Func_maxIndex111 = 0 integer C_firstFree143 = 0 integer C_maxIndex208 = 0 function initGlobals740() { } function main181() { initGlobals740(); init_A187(); } function config721() { } function init_A187() { if (C_x_137[dispatch_C_A_C_map121(new_C207(5), alloc_Func_map_A166())] == 10) { testSuccess103(); } else { }; } IS_NATIVE function testSuccess103() { } function apply_map_A135(integer this531, integer x841) returns integer { return (2 * x_841); } function C_map124(integer this368, integer f149) returns integer { return new_C207(dispatch_Func_A_Func_apply249(f_149, C_x_137[this_368])); } function new_C207(any x149) returns integer { local integer this162 this_162 = alloc_C168(); construct_C748(this_162, x_149); return this_162; } function C_init567(integer this166) { } function construct_C748(integer this477, any x134) { C_init567(this_477); C_x_137[this_477] = x_134; } function alloc_Func_map_A166() returns integer { local integer this107 if (Func_firstFree_261 == 0) { if (Func_maxIndex_111 < 32768) { Func_maxIndex_111 = (Func_maxIndex_111 + 1); this_107 = Func_maxIndex_111; Func_typeId_157[this_107] = 3; } else { error716("Out of memory: Could not create Func_map_A."); this_107 = 0; }; } else { Func_firstFree_261 = (Func_firstFree_261 - 1); this_107 = Func_nextFree_121[Func_firstFree_261]; Func_typeId_157[this_107] = 3; }; return this_107; } function error716(string msg183) { $debugPrint199((msg_183 + (" " + #getStackTrace()))); } function alloc_C168() returns integer { local integer this337 if (C_firstFree_143 == 0) { if (C_maxIndex_208 < 32768) { C_maxIndex_208 = (C_maxIndex_208 + 1); this_337 = C_maxIndex_208; C_typeId_190[this_337] = 1; } else { error716("Out of memory: Could not create C."); this_337 = 0; }; } else { C_firstFree_143 = (C_firstFree_143 - 1); this_337 = C_nextFree_122[C_firstFree_143]; C_typeId_190[this_337] = 1; }; return this_337; } function dispatch_C_A_C_map121(integer this129, integer f179) returns integer { if (C_typeId_190[this_129] == 0) { if (this_129 == 0) { error716("Nullpointer exception when calling C.map"); } else { error716("Called C.map on invalid object."); }; } else { }; return C_map124(this_129, f_179); } function dispatch_Func_A_Func_apply249(integer this622, any x853) returns any { if (Func_typeId_157[this_622] == 0) { if (this_622 == 0) { error716("Nullpointer exception when calling Func.apply"); } else { error716("Called Func.apply on invalid object."); }; } else { }; return apply_map_A135(this_622, x_853); }