array Func_nextFree212 integer Func_firstFree144 integer Func_maxIndex174 array Func_typeId397 array C_nextFree490 integer C_firstFree209 integer C_maxIndex169 array C_typeId194 array C_x734 integer wurst_stack_depth135 array wurst_stack289 integer Func_firstFree144 = 0 integer Func_maxIndex174 = 0 integer C_firstFree209 = 0 integer C_maxIndex169 = 0 integer wurst_stack_depth135 = 0 function initGlobals195() { } function main100() { initGlobals195(); init_A155("when calling init_A in generic3, line 1"); } function config198() { } function init_A155(string __wurst_stackPos195) { local integer a895 local integer this499 wurst_stack_289[wurst_stack_depth_135] = __wurst_stackPos_195; wurst_stack_depth_135 = (wurst_stack_depth_135 + 1); a_895 = new_C164(5, "when calling new_C in generic3, line 12"); wurst_stack_289[wurst_stack_depth_135] = "when calling alloc_Func_map_A in generic3, line 13"; wurst_stack_depth_135 = (wurst_stack_depth_135 + 1); if (Func_firstFree_144 == 0) { if (Func_maxIndex_174 < 32768) { Func_maxIndex_174 = (Func_maxIndex_174 + 1); this_499 = Func_maxIndex_174; Func_typeId_397[this_499] = 3; } else { error228("Out of memory: Could not create Func_map_A.", "when calling error in generic3, line 13"); this_499 = 0; }; } else { Func_firstFree_144 = (Func_firstFree_144 - 1); this_499 = Func_nextFree_212[Func_firstFree_144]; Func_typeId_397[this_499] = 3; }; wurst_stack_depth_135 = (wurst_stack_depth_135 - 1); if (C_x_734[dispatch_C_A_C_map879(a_895, this_499, "when calling map in generic3, line 13")] == 10) { testSuccess167(); } else { }; wurst_stack_depth_135 = (wurst_stack_depth_135 - 1); } IS_NATIVE function testSuccess167() { } function new_C164(any x124, string __wurst_stackPos279) returns integer { local integer this362 wurst_stack_289[wurst_stack_depth_135] = __wurst_stackPos_279; wurst_stack_depth_135 = (wurst_stack_depth_135 + 1); wurst_stack_289[wurst_stack_depth_135] = "when calling alloc_C in generic3, line 7"; wurst_stack_depth_135 = (wurst_stack_depth_135 + 1); if (C_firstFree_209 == 0) { if (C_maxIndex_169 < 32768) { C_maxIndex_169 = (C_maxIndex_169 + 1); this_362 = C_maxIndex_169; C_typeId_194[this_362] = 1; } else { error228("Out of memory: Could not create C.", "when calling error in generic3, line 5"); this_362 = 0; }; } else { C_firstFree_209 = (C_firstFree_209 - 1); this_362 = C_nextFree_490[C_firstFree_209]; C_typeId_194[this_362] = 1; }; wurst_stack_depth_135 = (wurst_stack_depth_135 - 1); C_x_734[this_362] = x_124; wurst_stack_depth_135 = (wurst_stack_depth_135 - 1); return this_362; } function error228(string msg417, string __wurst_stackPos182) { local integer stacktraceIndex113 local integer stacktraceLimit172 wurst_stack_289[wurst_stack_depth_135] = __wurst_stackPos_182; wurst_stack_depth_135 = (wurst_stack_depth_135 + 1); __wurst_stackPos_182 = ""; stacktraceIndex_113 = wurst_stack_depth_135; stacktraceLimit_172 = 0; loop { stacktraceIndex_113 = (stacktraceIndex_113 - 1); stacktraceLimit_172 = (stacktraceLimit_172 + 1); exitwhen ((stacktraceLimit_172 > 20) or (stacktraceIndex_113 < 0)); __wurst_stackPos_182 = (__wurst_stackPos_182 + (" " + wurst_stack_289[stacktraceIndex_113])); }; $debugPrint170((msg_417 + (" " + __wurst_stackPos_182))); wurst_stack_depth_135 = (wurst_stack_depth_135 - 1); } function dispatch_C_A_C_map879(integer this120, integer f892, string __wurst_stackPos117) returns integer { local any x196 wurst_stack_289[wurst_stack_depth_135] = __wurst_stackPos_117; wurst_stack_depth_135 = (wurst_stack_depth_135 + 1); if (C_typeId_194[this_120] == 0) { if (this_120 == 0) { error228("Nullpointer exception when calling C.map", "when calling error in generic3, line 9"); } else { error228("Called C.map on invalid object.", "when calling error in generic3, line 9"); }; } else { }; wurst_stack_289[wurst_stack_depth_135] = "when calling map in generic3, line 9"; wurst_stack_depth_135 = (wurst_stack_depth_135 + 1); x_196 = C_x_734[this_120]; wurst_stack_289[wurst_stack_depth_135] = "when calling apply in generic3, line 10"; wurst_stack_depth_135 = (wurst_stack_depth_135 + 1); if (Func_typeId_397[f_892] == 0) { if (f_892 == 0) { error228("Nullpointer exception when calling Func.apply", "when calling error in generic3, line 4"); } else { error228("Called Func.apply on invalid object.", "when calling error in generic3, line 4"); }; } else { }; wurst_stack_depth_135 = (wurst_stack_depth_135 - 1); this_120 = new_C164((2 * x_196), "when calling new_C in generic3, line 10"); wurst_stack_depth_135 = ((wurst_stack_depth_135 - 1) - 1); return this_120; }