array Func_nextFree140 integer Func_firstFree959 integer Func_maxIndex870 array Func_typeId123 array C_nextFree146 integer C_firstFree140 integer C_maxIndex468 array C_typeId810 array C_x179 integer Func_firstFree959 = 0 integer Func_maxIndex870 = 0 integer C_firstFree140 = 0 integer C_maxIndex468 = 0 function initGlobals238() { } function main188() { initGlobals238(); init_A657(); } function config165() { } function init_A657() { local integer this176 local integer this535 if (C_firstFree_140 == 0) { if (C_maxIndex_468 < 32768) { C_maxIndex_468 = (C_maxIndex_468 + 1); this_176 = C_maxIndex_468; C_typeId_810[this_176] = 1; } else { error184("Out of memory: Could not create C."); this_176 = 0; }; } else { C_firstFree_140 = (C_firstFree_140 - 1); this_176 = C_nextFree_146[C_firstFree_140]; C_typeId_810[this_176] = 1; }; C_x_179[this_176] = 5; if (Func_firstFree_959 == 0) { if (Func_maxIndex_870 < 32768) { Func_maxIndex_870 = (Func_maxIndex_870 + 1); this_535 = Func_maxIndex_870; Func_typeId_123[this_535] = 3; } else { error184("Out of memory: Could not create Func_map_A."); this_535 = 0; }; } else { Func_firstFree_959 = (Func_firstFree_959 - 1); this_535 = Func_nextFree_140[Func_firstFree_959]; Func_typeId_123[this_535] = 3; }; if (C_typeId_810[this_176] == 0) { if (this_176 == 0) { error184("Nullpointer exception when calling C.map"); } else { error184("Called C.map on invalid object."); }; } else { }; this_176 = C_map148(this_176, this_535); if (C_x_179[this_176] == 10) { testSuccess228(); } else { }; } IS_NATIVE function testSuccess228() { } function C_map148(integer this479, integer f202) returns integer { local any x103 x_103 = C_x_179[this_479]; if (Func_typeId_123[f_202] == 0) { if (f_202 == 0) { error184("Nullpointer exception when calling Func.apply"); } else { error184("Called Func.apply on invalid object."); }; } else { }; return new_C134((2 * x_103)); } function new_C134(any x162) returns integer { local integer this169 if (C_firstFree_140 == 0) { if (C_maxIndex_468 < 32768) { C_maxIndex_468 = (C_maxIndex_468 + 1); this_169 = C_maxIndex_468; C_typeId_810[this_169] = 1; } else { error184("Out of memory: Could not create C."); this_169 = 0; }; } else { C_firstFree_140 = (C_firstFree_140 - 1); this_169 = C_nextFree_146[C_firstFree_140]; C_typeId_810[this_169] = 1; }; C_x_179[this_169] = x_162; return this_169; } function error184(string msg194) { $debugPrint124((msg_194 + (" " + #getStackTrace()))); }