array Func_nextFree205 integer Func_firstFree159 integer Func_maxIndex187 array Func_typeId781 array C_nextFree745 integer C_firstFree368 integer C_maxIndex145 array C_typeId369 array C_x661 integer wurst_stack_depth455 array wurst_stack833 integer Func_firstFree159 = 0 integer Func_maxIndex187 = 0 integer C_firstFree368 = 0 integer C_maxIndex145 = 0 integer wurst_stack_depth455 = 0 function initGlobals150() { } function main975() { initGlobals150(); init_A190("when calling init_A in generic2, line 1"); } function config149() { } function init_A190(string __wurst_stackPos124) { local integer a158 local integer this193 wurst_stack_833[wurst_stack_depth_455] = __wurst_stackPos_124; wurst_stack_depth_455 = (wurst_stack_depth_455 + 1); a_158 = new_C108(5, "when calling new_C in generic2, line 12"); wurst_stack_833[wurst_stack_depth_455] = "when calling alloc_Func_map_A in generic2, line 13"; wurst_stack_depth_455 = (wurst_stack_depth_455 + 1); if (Func_firstFree_159 == 0) { if (Func_maxIndex_187 < 32768) { Func_maxIndex_187 = (Func_maxIndex_187 + 1); this_193 = Func_maxIndex_187; Func_typeId_781[this_193] = 3; } else { error181("Out of memory: Could not create Func_map_A.", "when calling error in generic2, line 13"); this_193 = 0; }; } else { Func_firstFree_159 = (Func_firstFree_159 - 1); this_193 = Func_nextFree_205[Func_firstFree_159]; Func_typeId_781[this_193] = 3; }; wurst_stack_depth_455 = (wurst_stack_depth_455 - 1); if (C_x_661[dispatch_C_A_C_map140(a_158, this_193, "when calling map in generic2, line 13")] == 10) { testSuccess146(); } else { }; wurst_stack_depth_455 = (wurst_stack_depth_455 - 1); } IS_NATIVE function testSuccess146() { } function new_C108(any x163, string __wurst_stackPos156) returns integer { local integer this393 wurst_stack_833[wurst_stack_depth_455] = __wurst_stackPos_156; wurst_stack_depth_455 = (wurst_stack_depth_455 + 1); wurst_stack_833[wurst_stack_depth_455] = "when calling alloc_C in generic2, line 7"; wurst_stack_depth_455 = (wurst_stack_depth_455 + 1); if (C_firstFree_368 == 0) { if (C_maxIndex_145 < 32768) { C_maxIndex_145 = (C_maxIndex_145 + 1); this_393 = C_maxIndex_145; C_typeId_369[this_393] = 1; } else { error181("Out of memory: Could not create C.", "when calling error in generic2, line 5"); this_393 = 0; }; } else { C_firstFree_368 = (C_firstFree_368 - 1); this_393 = C_nextFree_745[C_firstFree_368]; C_typeId_369[this_393] = 1; }; wurst_stack_depth_455 = (wurst_stack_depth_455 - 1); C_x_661[this_393] = x_163; wurst_stack_depth_455 = (wurst_stack_depth_455 - 1); return this_393; } function error181(string msg165, string __wurst_stackPos111) { local integer stacktraceIndex920 local integer stacktraceLimit670 wurst_stack_833[wurst_stack_depth_455] = __wurst_stackPos_111; wurst_stack_depth_455 = (wurst_stack_depth_455 + 1); __wurst_stackPos_111 = ""; stacktraceIndex_920 = wurst_stack_depth_455; stacktraceLimit_670 = 0; loop { stacktraceIndex_920 = (stacktraceIndex_920 - 1); stacktraceLimit_670 = (stacktraceLimit_670 + 1); exitwhen ((stacktraceLimit_670 > 20) or (stacktraceIndex_920 < 0)); __wurst_stackPos_111 = (__wurst_stackPos_111 + (" " + wurst_stack_833[stacktraceIndex_920])); }; $debugPrint305((msg_165 + (" " + __wurst_stackPos_111))); wurst_stack_depth_455 = (wurst_stack_depth_455 - 1); } function dispatch_C_A_C_map140(integer this170, integer f175, string __wurst_stackPos421) returns integer { local any x557 wurst_stack_833[wurst_stack_depth_455] = __wurst_stackPos_421; wurst_stack_depth_455 = (wurst_stack_depth_455 + 1); if (C_typeId_369[this_170] == 0) { if (this_170 == 0) { error181("Nullpointer exception when calling C.map", "when calling error in generic2, line 9"); } else { error181("Called C.map on invalid object.", "when calling error in generic2, line 9"); }; } else { }; wurst_stack_833[wurst_stack_depth_455] = "when calling map in generic2, line 9"; wurst_stack_depth_455 = (wurst_stack_depth_455 + 1); x_557 = C_x_661[this_170]; wurst_stack_833[wurst_stack_depth_455] = "when calling apply in generic2, line 10"; wurst_stack_depth_455 = (wurst_stack_depth_455 + 1); if (Func_typeId_781[f_175] == 0) { if (f_175 == 0) { error181("Nullpointer exception when calling Func.apply", "when calling error in generic2, line 4"); } else { error181("Called Func.apply on invalid object.", "when calling error in generic2, line 4"); }; } else { }; wurst_stack_depth_455 = (wurst_stack_depth_455 - 1); this_170 = new_C108((2 * x_557), "when calling new_C in generic2, line 10"); wurst_stack_depth_455 = ((wurst_stack_depth_455 - 1) - 1); return this_170; }