array Func_nextFree939 integer Func_firstFree202 integer Func_maxIndex673 array Func_typeId332 array C_nextFree981 integer C_firstFree194 integer C_maxIndex118 array C_typeId195 array C_x878 integer Func_firstFree202 = 0 integer Func_maxIndex673 = 0 integer C_firstFree194 = 0 integer C_maxIndex118 = 0 function initGlobals601() { } function main194() { initGlobals601(); init_A110(); } function config752() { } function init_A110() { local integer this414 local integer this518 if (C_firstFree_194 == 0) { if (C_maxIndex_118 < 32768) { C_maxIndex_118 = (C_maxIndex_118 + 1); this_414 = C_maxIndex_118; C_typeId_195[this_414] = 1; } else { error735("Out of memory: Could not create C."); this_414 = 0; }; } else { C_firstFree_194 = (C_firstFree_194 - 1); this_414 = C_nextFree_981[C_firstFree_194]; C_typeId_195[this_414] = 1; }; C_x_878[this_414] = 5; if (Func_firstFree_202 == 0) { if (Func_maxIndex_673 < 32768) { Func_maxIndex_673 = (Func_maxIndex_673 + 1); this_518 = Func_maxIndex_673; Func_typeId_332[this_518] = 3; } else { error735("Out of memory: Could not create Func_map_A."); this_518 = 0; }; } else { Func_firstFree_202 = (Func_firstFree_202 - 1); this_518 = Func_nextFree_939[Func_firstFree_202]; Func_typeId_332[this_518] = 3; }; if (C_typeId_195[this_414] == 0) { if (this_414 == 0) { error735("Nullpointer exception when calling C.map"); } else { error735("Called C.map on invalid object."); }; } else { }; this_414 = C_map185(this_414, this_518); if (C_x_878[this_414] == 10) { testSuccess177(); } else { }; } IS_NATIVE function testSuccess177() { } function C_map185(integer this552, integer f137) returns integer { local any x106 x_106 = C_x_878[this_552]; if (Func_typeId_332[f_137] == 0) { if (f_137 == 0) { error735("Nullpointer exception when calling Func.apply"); } else { error735("Called Func.apply on invalid object."); }; } else { }; return new_C101((2 * x_106)); } function new_C101(any x100) returns integer { local integer this148 if (C_firstFree_194 == 0) { if (C_maxIndex_118 < 32768) { C_maxIndex_118 = (C_maxIndex_118 + 1); this_148 = C_maxIndex_118; C_typeId_195[this_148] = 1; } else { error735("Out of memory: Could not create C."); this_148 = 0; }; } else { C_firstFree_194 = (C_firstFree_194 - 1); this_148 = C_nextFree_981[C_firstFree_194]; C_typeId_195[this_148] = 1; }; C_x_878[this_148] = x_100; return this_148; } function error735(string msg211) { $debugPrint414((msg_211 + (" " + #getStackTrace()))); }