array Func_nextFree757 integer Func_firstFree197 integer Func_maxIndex190 array Func_typeId140 array C_nextFree879 integer C_firstFree106 integer C_maxIndex201 array C_typeId123 array C_x153 integer Func_firstFree197 = 0 integer Func_maxIndex190 = 0 integer C_firstFree106 = 0 integer C_maxIndex201 = 0 function initGlobals165() { } function main182() { initGlobals165(); init_A109(); } function config896() { } function init_A109() { local integer this518 local integer this731 if (C_firstFree_106 == 0) { if (C_maxIndex_201 < 32768) { C_maxIndex_201 = (C_maxIndex_201 + 1); this_518 = C_maxIndex_201; C_typeId_123[this_518] = 1; } else { error112("Out of memory: Could not create C."); this_518 = 0; }; } else { C_firstFree_106 = (C_firstFree_106 - 1); this_518 = C_nextFree_879[C_firstFree_106]; C_typeId_123[this_518] = 1; }; C_x_153[this_518] = 5; if (Func_firstFree_197 == 0) { if (Func_maxIndex_190 < 32768) { Func_maxIndex_190 = (Func_maxIndex_190 + 1); this_731 = Func_maxIndex_190; Func_typeId_140[this_731] = 3; } else { error112("Out of memory: Could not create Func_map_A."); this_731 = 0; }; } else { Func_firstFree_197 = (Func_firstFree_197 - 1); this_731 = Func_nextFree_757[Func_firstFree_197]; Func_typeId_140[this_731] = 3; }; if (C_typeId_123[this_518] == 0) { if (this_518 == 0) { error112("Nullpointer exception when calling C.map"); } else { error112("Called C.map on invalid object."); }; } else { }; this_518 = C_map109(this_518, this_731); if (C_x_153[this_518] == 10) { testSuccess605(); } else { }; } IS_NATIVE function testSuccess605() { } function C_map109(integer this132, integer f474) returns integer { local any x908 x_908 = C_x_153[this_132]; if (Func_typeId_140[f_474] == 0) { if (f_474 == 0) { error112("Nullpointer exception when calling Func.apply"); } else { error112("Called Func.apply on invalid object."); }; } else { }; return new_C167((2 * x_908)); } function new_C167(any x188) returns integer { local integer this185 if (C_firstFree_106 == 0) { if (C_maxIndex_201 < 32768) { C_maxIndex_201 = (C_maxIndex_201 + 1); this_185 = C_maxIndex_201; C_typeId_123[this_185] = 1; } else { error112("Out of memory: Could not create C."); this_185 = 0; }; } else { C_firstFree_106 = (C_firstFree_106 - 1); this_185 = C_nextFree_879[C_firstFree_106]; C_typeId_123[this_185] = 1; }; C_x_153[this_185] = x_188; return this_185; } function error112(string msg213) { $debugPrint234((msg_213 + (" " + #getStackTrace()))); }