array Func_nextFree130 integer Func_firstFree666 integer Func_maxIndex209 array Func_typeId205 array C_nextFree132 integer C_firstFree213 integer C_maxIndex673 array C_typeId110 array C_x778 integer wurst_stack_depth183 array wurst_stack476 integer Func_firstFree666 = 0 integer Func_maxIndex209 = 0 integer C_firstFree213 = 0 integer C_maxIndex673 = 0 integer wurst_stack_depth183 = 0 function initGlobals944() { } function main238() { initGlobals944(); init_A267("when calling init_A in generic1, line 1"); } function config209() { } function init_A267(string __wurst_stackPos155) { local integer a130 local integer this169 wurst_stack_476[wurst_stack_depth_183] = __wurst_stackPos_155; wurst_stack_depth_183 = (wurst_stack_depth_183 + 1); a_130 = new_C117(5, "when calling new_C in generic1, line 12"); wurst_stack_476[wurst_stack_depth_183] = "when calling alloc_Func_map_A in generic1, line 13"; wurst_stack_depth_183 = (wurst_stack_depth_183 + 1); if (Func_firstFree_666 == 0) { if (Func_maxIndex_209 < 32768) { Func_maxIndex_209 = (Func_maxIndex_209 + 1); this_169 = Func_maxIndex_209; Func_typeId_205[this_169] = 3; } else { error341("Out of memory: Could not create Func_map_A.", "when calling error in generic1, line 13"); this_169 = 0; }; } else { Func_firstFree_666 = (Func_firstFree_666 - 1); this_169 = Func_nextFree_130[Func_firstFree_666]; Func_typeId_205[this_169] = 3; }; wurst_stack_depth_183 = (wurst_stack_depth_183 - 1); if (C_x_778[dispatch_C_A_C_map110(a_130, this_169, "when calling map in generic1, line 13")] == 10) { testSuccess204(); } else { }; wurst_stack_depth_183 = (wurst_stack_depth_183 - 1); } IS_NATIVE function testSuccess204() { } function new_C117(any x818, string __wurst_stackPos123) returns integer { local integer this177 wurst_stack_476[wurst_stack_depth_183] = __wurst_stackPos_123; wurst_stack_depth_183 = (wurst_stack_depth_183 + 1); wurst_stack_476[wurst_stack_depth_183] = "when calling alloc_C in generic1, line 7"; wurst_stack_depth_183 = (wurst_stack_depth_183 + 1); if (C_firstFree_213 == 0) { if (C_maxIndex_673 < 32768) { C_maxIndex_673 = (C_maxIndex_673 + 1); this_177 = C_maxIndex_673; C_typeId_110[this_177] = 1; } else { error341("Out of memory: Could not create C.", "when calling error in generic1, line 5"); this_177 = 0; }; } else { C_firstFree_213 = (C_firstFree_213 - 1); this_177 = C_nextFree_132[C_firstFree_213]; C_typeId_110[this_177] = 1; }; wurst_stack_depth_183 = (wurst_stack_depth_183 - 1); C_x_778[this_177] = x_818; wurst_stack_depth_183 = (wurst_stack_depth_183 - 1); return this_177; } function error341(string msg882, string __wurst_stackPos109) { local integer stacktraceIndex184 local integer stacktraceLimit116 wurst_stack_476[wurst_stack_depth_183] = __wurst_stackPos_109; wurst_stack_depth_183 = (wurst_stack_depth_183 + 1); __wurst_stackPos_109 = ""; stacktraceIndex_184 = wurst_stack_depth_183; stacktraceLimit_116 = 0; loop { stacktraceIndex_184 = (stacktraceIndex_184 - 1); stacktraceLimit_116 = (stacktraceLimit_116 + 1); exitwhen ((stacktraceLimit_116 > 20) or (stacktraceIndex_184 < 0)); __wurst_stackPos_109 = (__wurst_stackPos_109 + (" " + wurst_stack_476[stacktraceIndex_184])); }; $debugPrint132((msg_882 + (" " + __wurst_stackPos_109))); wurst_stack_depth_183 = (wurst_stack_depth_183 - 1); } function dispatch_C_A_C_map110(integer this135, integer f193, string __wurst_stackPos113) returns integer { local any x178 wurst_stack_476[wurst_stack_depth_183] = __wurst_stackPos_113; wurst_stack_depth_183 = (wurst_stack_depth_183 + 1); if (C_typeId_110[this_135] == 0) { if (this_135 == 0) { error341("Nullpointer exception when calling C.map", "when calling error in generic1, line 9"); } else { error341("Called C.map on invalid object.", "when calling error in generic1, line 9"); }; } else { }; wurst_stack_476[wurst_stack_depth_183] = "when calling map in generic1, line 9"; wurst_stack_depth_183 = (wurst_stack_depth_183 + 1); x_178 = C_x_778[this_135]; wurst_stack_476[wurst_stack_depth_183] = "when calling apply in generic1, line 10"; wurst_stack_depth_183 = (wurst_stack_depth_183 + 1); if (Func_typeId_205[f_193] == 0) { if (f_193 == 0) { error341("Nullpointer exception when calling Func.apply", "when calling error in generic1, line 4"); } else { error341("Called Func.apply on invalid object.", "when calling error in generic1, line 4"); }; } else { }; wurst_stack_depth_183 = (wurst_stack_depth_183 - 1); this_135 = new_C117((2 * x_178), "when calling new_C in generic1, line 10"); wurst_stack_depth_183 = ((wurst_stack_depth_183 - 1) - 1); return this_135; }