array Func_nextFree113 integer Func_firstFree148 integer Func_maxIndex213 array Func_typeId922 array C_nextFree157 integer C_firstFree111 integer C_maxIndex207 array C_typeId526 array C_x166 integer wurst_stack_depth136 array wurst_stack101 integer Func_firstFree148 = 0 integer Func_maxIndex213 = 0 integer C_firstFree111 = 0 integer C_maxIndex207 = 0 integer wurst_stack_depth136 = 0 function initGlobals173() { } function main267() { initGlobals173(); init_A174("when calling init_A in generic2, line 1"); } function config211() { } function init_A174(string __wurst_stackPos118) { local integer a104 local integer this173 wurst_stack_101[wurst_stack_depth_136] = __wurst_stackPos_118; wurst_stack_depth_136 = (wurst_stack_depth_136 + 1); a_104 = new_C141(5, "when calling new_C in generic2, line 12"); wurst_stack_101[wurst_stack_depth_136] = "when calling alloc_Func_map_A in generic2, line 13"; wurst_stack_depth_136 = (wurst_stack_depth_136 + 1); if (Func_firstFree_148 == 0) { if (Func_maxIndex_213 < 32768) { Func_maxIndex_213 = (Func_maxIndex_213 + 1); this_173 = Func_maxIndex_213; Func_typeId_922[this_173] = 3; } else { error149("Out of memory: Could not create Func_map_A.", "when calling error in generic2, line 13"); this_173 = 0; }; } else { Func_firstFree_148 = (Func_firstFree_148 - 1); this_173 = Func_nextFree_113[Func_firstFree_148]; Func_typeId_922[this_173] = 3; }; wurst_stack_depth_136 = (wurst_stack_depth_136 - 1); if (C_x_166[dispatch_C_A_C_map854(a_104, this_173, "when calling map in generic2, line 13")] == 10) { testSuccess790(); } else { }; wurst_stack_depth_136 = (wurst_stack_depth_136 - 1); } IS_NATIVE function testSuccess790() { } function new_C141(any x465, string __wurst_stackPos801) returns integer { local integer this318 wurst_stack_101[wurst_stack_depth_136] = __wurst_stackPos_801; wurst_stack_depth_136 = (wurst_stack_depth_136 + 1); wurst_stack_101[wurst_stack_depth_136] = "when calling alloc_C in generic2, line 7"; wurst_stack_depth_136 = (wurst_stack_depth_136 + 1); if (C_firstFree_111 == 0) { if (C_maxIndex_207 < 32768) { C_maxIndex_207 = (C_maxIndex_207 + 1); this_318 = C_maxIndex_207; C_typeId_526[this_318] = 1; } else { error149("Out of memory: Could not create C.", "when calling error in generic2, line 5"); this_318 = 0; }; } else { C_firstFree_111 = (C_firstFree_111 - 1); this_318 = C_nextFree_157[C_firstFree_111]; C_typeId_526[this_318] = 1; }; wurst_stack_depth_136 = (wurst_stack_depth_136 - 1); C_x_166[this_318] = x_465; wurst_stack_depth_136 = (wurst_stack_depth_136 - 1); return this_318; } function error149(string msg110, string __wurst_stackPos479) { local integer stacktraceIndex151 local integer stacktraceLimit122 wurst_stack_101[wurst_stack_depth_136] = __wurst_stackPos_479; wurst_stack_depth_136 = (wurst_stack_depth_136 + 1); __wurst_stackPos_479 = ""; stacktraceIndex_151 = wurst_stack_depth_136; stacktraceLimit_122 = 0; loop { stacktraceIndex_151 = (stacktraceIndex_151 - 1); stacktraceLimit_122 = (stacktraceLimit_122 + 1); exitwhen ((stacktraceLimit_122 > 20) or (stacktraceIndex_151 < 0)); __wurst_stackPos_479 = (__wurst_stackPos_479 + (" " + wurst_stack_101[stacktraceIndex_151])); }; $debugPrint102((msg_110 + (" " + __wurst_stackPos_479))); wurst_stack_depth_136 = (wurst_stack_depth_136 - 1); } function dispatch_C_A_C_map854(integer this140, integer f740, string __wurst_stackPos319) returns integer { local any x165 wurst_stack_101[wurst_stack_depth_136] = __wurst_stackPos_319; wurst_stack_depth_136 = (wurst_stack_depth_136 + 1); if (C_typeId_526[this_140] == 0) { if (this_140 == 0) { error149("Nullpointer exception when calling C.map", "when calling error in generic2, line 9"); } else { error149("Called C.map on invalid object.", "when calling error in generic2, line 9"); }; } else { }; wurst_stack_101[wurst_stack_depth_136] = "when calling map in generic2, line 9"; wurst_stack_depth_136 = (wurst_stack_depth_136 + 1); x_165 = C_x_166[this_140]; wurst_stack_101[wurst_stack_depth_136] = "when calling apply in generic2, line 10"; wurst_stack_depth_136 = (wurst_stack_depth_136 + 1); if (Func_typeId_922[f_740] == 0) { if (f_740 == 0) { error149("Nullpointer exception when calling Func.apply", "when calling error in generic2, line 4"); } else { error149("Called Func.apply on invalid object.", "when calling error in generic2, line 4"); }; } else { }; wurst_stack_depth_136 = (wurst_stack_depth_136 - 1); this_140 = new_C141((2 * x_165), "when calling new_C in generic2, line 10"); wurst_stack_depth_136 = ((wurst_stack_depth_136 - 1) - 1); return this_140; }