array Func_nextFree904 integer Func_firstFree144 integer Func_maxIndex137 array Func_typeId129 array C_nextFree944 integer C_firstFree105 integer C_maxIndex436 array C_typeId149 array C_x141 integer wurst_stack_depth310 array wurst_stack121 integer Func_firstFree144 = 0 integer Func_maxIndex137 = 0 integer C_firstFree105 = 0 integer C_maxIndex436 = 0 integer wurst_stack_depth310 = 0 function initGlobals181() { } function main111() { initGlobals181(); init_A122("when calling init_A in generic1, line 1"); } function config201() { } function init_A122(string __wurst_stackPos588) { local integer a113 local integer this341 wurst_stack_121[wurst_stack_depth_310] = __wurst_stackPos_588; wurst_stack_depth_310 = (wurst_stack_depth_310 + 1); a_113 = new_C105(5, "when calling new_C in generic1, line 12"); wurst_stack_121[wurst_stack_depth_310] = "when calling alloc_Func_map_A in generic1, line 13"; wurst_stack_depth_310 = (wurst_stack_depth_310 + 1); if (Func_firstFree_144 == 0) { if (Func_maxIndex_137 < 32768) { Func_maxIndex_137 = (Func_maxIndex_137 + 1); this_341 = Func_maxIndex_137; Func_typeId_129[this_341] = 3; } else { error113("Out of memory: Could not create Func_map_A.", "when calling error in generic1, line 13"); this_341 = 0; }; } else { Func_firstFree_144 = (Func_firstFree_144 - 1); this_341 = Func_nextFree_904[Func_firstFree_144]; Func_typeId_129[this_341] = 3; }; wurst_stack_depth_310 = (wurst_stack_depth_310 - 1); if (C_x_141[dispatch_C_A_C_map120(a_113, this_341, "when calling map in generic1, line 13")] == 10) { testSuccess609(); } else { }; wurst_stack_depth_310 = (wurst_stack_depth_310 - 1); } IS_NATIVE function testSuccess609() { } function new_C105(any x133, string __wurst_stackPos186) returns integer { local integer this119 wurst_stack_121[wurst_stack_depth_310] = __wurst_stackPos_186; wurst_stack_depth_310 = (wurst_stack_depth_310 + 1); wurst_stack_121[wurst_stack_depth_310] = "when calling alloc_C in generic1, line 7"; wurst_stack_depth_310 = (wurst_stack_depth_310 + 1); if (C_firstFree_105 == 0) { if (C_maxIndex_436 < 32768) { C_maxIndex_436 = (C_maxIndex_436 + 1); this_119 = C_maxIndex_436; C_typeId_149[this_119] = 1; } else { error113("Out of memory: Could not create C.", "when calling error in generic1, line 5"); this_119 = 0; }; } else { C_firstFree_105 = (C_firstFree_105 - 1); this_119 = C_nextFree_944[C_firstFree_105]; C_typeId_149[this_119] = 1; }; wurst_stack_depth_310 = (wurst_stack_depth_310 - 1); C_x_141[this_119] = x_133; wurst_stack_depth_310 = (wurst_stack_depth_310 - 1); return this_119; } function error113(string msg172, string __wurst_stackPos187) { local integer stacktraceIndex175 local integer stacktraceLimit184 wurst_stack_121[wurst_stack_depth_310] = __wurst_stackPos_187; wurst_stack_depth_310 = (wurst_stack_depth_310 + 1); __wurst_stackPos_187 = ""; stacktraceIndex_175 = wurst_stack_depth_310; stacktraceLimit_184 = 0; loop { stacktraceIndex_175 = (stacktraceIndex_175 - 1); stacktraceLimit_184 = (stacktraceLimit_184 + 1); exitwhen ((stacktraceLimit_184 > 20) or (stacktraceIndex_175 < 0)); __wurst_stackPos_187 = (__wurst_stackPos_187 + (" " + wurst_stack_121[stacktraceIndex_175])); }; $debugPrint191((msg_172 + (" " + __wurst_stackPos_187))); wurst_stack_depth_310 = (wurst_stack_depth_310 - 1); } function dispatch_C_A_C_map120(integer this515, integer f192, string __wurst_stackPos203) returns integer { local any x155 wurst_stack_121[wurst_stack_depth_310] = __wurst_stackPos_203; wurst_stack_depth_310 = (wurst_stack_depth_310 + 1); if (C_typeId_149[this_515] == 0) { if (this_515 == 0) { error113("Nullpointer exception when calling C.map", "when calling error in generic1, line 9"); } else { error113("Called C.map on invalid object.", "when calling error in generic1, line 9"); }; } else { }; wurst_stack_121[wurst_stack_depth_310] = "when calling map in generic1, line 9"; wurst_stack_depth_310 = (wurst_stack_depth_310 + 1); x_155 = C_x_141[this_515]; wurst_stack_121[wurst_stack_depth_310] = "when calling apply in generic1, line 10"; wurst_stack_depth_310 = (wurst_stack_depth_310 + 1); if (Func_typeId_129[f_192] == 0) { if (f_192 == 0) { error113("Nullpointer exception when calling Func.apply", "when calling error in generic1, line 4"); } else { error113("Called Func.apply on invalid object.", "when calling error in generic1, line 4"); }; } else { }; wurst_stack_depth_310 = (wurst_stack_depth_310 - 1); this_515 = new_C105((2 * x_155), "when calling new_C in generic1, line 10"); wurst_stack_depth_310 = ((wurst_stack_depth_310 - 1) - 1); return this_515; }