array Func_nextFree148 integer Func_firstFree939 integer Func_maxIndex751 array Func_typeId113 array C_nextFree957 integer C_firstFree937 integer C_maxIndex854 array C_typeId986 array C_x120 integer Func_firstFree939 = 0 integer Func_maxIndex751 = 0 integer C_firstFree937 = 0 integer C_maxIndex854 = 0 function initGlobals156() { } function main183() { initGlobals156(); init_A871(); } function config844() { } function init_A871() { local integer this142 local integer this211 if (C_firstFree_937 == 0) { if (C_maxIndex_854 < 32768) { C_maxIndex_854 = (C_maxIndex_854 + 1); this_142 = C_maxIndex_854; C_typeId_986[this_142] = 1; } else { error720("Out of memory: Could not create C."); this_142 = 0; }; } else { C_firstFree_937 = (C_firstFree_937 - 1); this_142 = C_nextFree_957[C_firstFree_937]; C_typeId_986[this_142] = 1; }; C_x_120[this_142] = 5; if (Func_firstFree_939 == 0) { if (Func_maxIndex_751 < 32768) { Func_maxIndex_751 = (Func_maxIndex_751 + 1); this_211 = Func_maxIndex_751; Func_typeId_113[this_211] = 3; } else { error720("Out of memory: Could not create Func_map_A."); this_211 = 0; }; } else { Func_firstFree_939 = (Func_firstFree_939 - 1); this_211 = Func_nextFree_148[Func_firstFree_939]; Func_typeId_113[this_211] = 3; }; if (C_typeId_986[this_142] == 0) { if (this_142 == 0) { error720("Nullpointer exception when calling C.map"); } else { error720("Called C.map on invalid object."); }; } else { }; this_142 = C_map310(this_142, this_211); if (C_x_120[this_142] == 10) { testSuccess109(); } else { }; } IS_NATIVE function testSuccess109() { } function C_map310(integer this192, integer f149) returns integer { local any x123 x_123 = C_x_120[this_192]; if (Func_typeId_113[f_149] == 0) { if (f_149 == 0) { error720("Nullpointer exception when calling Func.apply"); } else { error720("Called Func.apply on invalid object."); }; } else { }; return new_C194((2 * x_123)); } function new_C194(any x947) returns integer { local integer this292 if (C_firstFree_937 == 0) { if (C_maxIndex_854 < 32768) { C_maxIndex_854 = (C_maxIndex_854 + 1); this_292 = C_maxIndex_854; C_typeId_986[this_292] = 1; } else { error720("Out of memory: Could not create C."); this_292 = 0; }; } else { C_firstFree_937 = (C_firstFree_937 - 1); this_292 = C_nextFree_957[C_firstFree_937]; C_typeId_986[this_292] = 1; }; C_x_120[this_292] = x_947; return this_292; } function error720(string msg117) { $debugPrint686((msg_117 + (" " + #getStackTrace()))); }