array Func_nextFree148 integer Func_firstFree185 integer Func_maxIndex196 array Func_typeId208 array C_nextFree109 integer C_firstFree340 integer C_maxIndex164 array C_typeId271 array C_x191 integer Func_firstFree185 = 0 integer Func_maxIndex196 = 0 integer C_firstFree340 = 0 integer C_maxIndex164 = 0 function initGlobals618() { } function main421() { initGlobals618(); init_A164(); } function config242() { } function init_A164() { if (C_x_191[dispatch_C_A_C_map245(new_C140(5), alloc_Func_map_A168())] == 10) { testSuccess498(); } else { }; } IS_NATIVE function testSuccess498() { } function apply_map_A627(integer this268, integer x920) returns integer { return (2 * x_920); } function C_map213(integer this257, integer f495) returns integer { return new_C140(dispatch_Func_A_Func_apply115(f_495, C_x_191[this_257])); } function new_C140(any x225) returns integer { local integer this140 this_140 = alloc_C120(); construct_C172(this_140, x_225); return this_140; } function C_init127(integer this816) { } function construct_C172(integer this466, any x162) { C_init127(this_466); C_x_191[this_466] = x_162; } function alloc_Func_map_A168() returns integer { local integer this950 if (Func_firstFree_185 == 0) { if (Func_maxIndex_196 < 32768) { Func_maxIndex_196 = (Func_maxIndex_196 + 1); this_950 = Func_maxIndex_196; Func_typeId_208[this_950] = 3; } else { error987("Out of memory: Could not create Func_map_A."); this_950 = 0; }; } else { Func_firstFree_185 = (Func_firstFree_185 - 1); this_950 = Func_nextFree_148[Func_firstFree_185]; Func_typeId_208[this_950] = 3; }; return this_950; } function error987(string msg203) { $debugPrint128((msg_203 + (" " + #getStackTrace()))); } function alloc_C120() returns integer { local integer this493 if (C_firstFree_340 == 0) { if (C_maxIndex_164 < 32768) { C_maxIndex_164 = (C_maxIndex_164 + 1); this_493 = C_maxIndex_164; C_typeId_271[this_493] = 1; } else { error987("Out of memory: Could not create C."); this_493 = 0; }; } else { C_firstFree_340 = (C_firstFree_340 - 1); this_493 = C_nextFree_109[C_firstFree_340]; C_typeId_271[this_493] = 1; }; return this_493; } function dispatch_C_A_C_map245(integer this855, integer f114) returns integer { if (C_typeId_271[this_855] == 0) { if (this_855 == 0) { error987("Nullpointer exception when calling C.map"); } else { error987("Called C.map on invalid object."); }; } else { }; return C_map213(this_855, f_114); } function dispatch_Func_A_Func_apply115(integer this152, any x122) returns any { if (Func_typeId_208[this_152] == 0) { if (this_152 == 0) { error987("Nullpointer exception when calling Func.apply"); } else { error987("Called Func.apply on invalid object."); }; } else { }; return apply_map_A627(this_152, x_122); }