array Func_nextFree850 integer Func_firstFree682 integer Func_maxIndex938 array Func_typeId709 array C_nextFree116 integer C_firstFree200 integer C_maxIndex816 array C_typeId881 array C_x501 integer Func_firstFree682 = 0 integer Func_maxIndex938 = 0 integer C_firstFree200 = 0 integer C_maxIndex816 = 0 function initGlobals565() { } function main167() { initGlobals565(); init_A561(); } function config113() { } function init_A561() { if (C_x_501[dispatch_C_A_C_map696(new_C121(5), alloc_Func_map_A786())] == 10) { testSuccess340(); } else { }; } IS_NATIVE function testSuccess340() { } function apply_map_A124(integer this136, integer x123) returns integer { return (2 * x_123); } function C_map505(integer this107, integer f512) returns integer { return new_C121(dispatch_Func_A_Func_apply440(f_512, C_x_501[this_107])); } function new_C121(any x507) returns integer { local integer this167 this_167 = alloc_C203(); construct_C856(this_167, x_507); return this_167; } function C_init588(integer this150) { } function construct_C856(integer this143, any x211) { C_init588(this_143); C_x_501[this_143] = x_211; } function alloc_Func_map_A786() returns integer { local integer this395 if (Func_firstFree_682 == 0) { if (Func_maxIndex_938 < 32768) { Func_maxIndex_938 = (Func_maxIndex_938 + 1); this_395 = Func_maxIndex_938; Func_typeId_709[this_395] = 3; } else { error948("Out of memory: Could not create Func_map_A."); this_395 = 0; }; } else { Func_firstFree_682 = (Func_firstFree_682 - 1); this_395 = Func_nextFree_850[Func_firstFree_682]; Func_typeId_709[this_395] = 3; }; return this_395; } function error948(string msg161) { $debugPrint170((msg_161 + (" " + #getStackTrace()))); } function alloc_C203() returns integer { local integer this137 if (C_firstFree_200 == 0) { if (C_maxIndex_816 < 32768) { C_maxIndex_816 = (C_maxIndex_816 + 1); this_137 = C_maxIndex_816; C_typeId_881[this_137] = 1; } else { error948("Out of memory: Could not create C."); this_137 = 0; }; } else { C_firstFree_200 = (C_firstFree_200 - 1); this_137 = C_nextFree_116[C_firstFree_200]; C_typeId_881[this_137] = 1; }; return this_137; } function dispatch_C_A_C_map696(integer this180, integer f214) returns integer { if (C_typeId_881[this_180] == 0) { if (this_180 == 0) { error948("Nullpointer exception when calling C.map"); } else { error948("Called C.map on invalid object."); }; } else { }; return C_map505(this_180, f_214); } function dispatch_Func_A_Func_apply440(integer this497, any x742) returns any { if (Func_typeId_709[this_497] == 0) { if (this_497 == 0) { error948("Nullpointer exception when calling Func.apply"); } else { error948("Called Func.apply on invalid object."); }; } else { }; return apply_map_A124(this_497, x_742); }