array Func_nextFree122 integer Func_firstFree520 integer Func_maxIndex543 array Func_typeId198 array C_nextFree193 integer C_firstFree266 integer C_maxIndex815 array C_typeId212 array C_x728 integer wurst_stack_depth158 array wurst_stack191 integer Func_firstFree520 = 0 integer Func_maxIndex543 = 0 integer C_firstFree266 = 0 integer C_maxIndex815 = 0 integer wurst_stack_depth158 = 0 function initGlobals250() { } function main192() { initGlobals250(); init_A467("when calling init_A in generic1, line 1"); } function config387() { } function init_A467(string __wurst_stackPos210) { local integer a130 local integer this550 wurst_stack_191[wurst_stack_depth_158] = __wurst_stackPos_210; wurst_stack_depth_158 = (wurst_stack_depth_158 + 1); a_130 = new_C888(5, "when calling new_C in generic1, line 12"); wurst_stack_191[wurst_stack_depth_158] = "when calling alloc_Func_map_A in generic1, line 13"; wurst_stack_depth_158 = (wurst_stack_depth_158 + 1); if (Func_firstFree_520 == 0) { if (Func_maxIndex_543 < 32768) { Func_maxIndex_543 = (Func_maxIndex_543 + 1); this_550 = Func_maxIndex_543; Func_typeId_198[this_550] = 3; } else { error100("Out of memory: Could not create Func_map_A.", "when calling error in generic1, line 13"); this_550 = 0; }; } else { Func_firstFree_520 = (Func_firstFree_520 - 1); this_550 = Func_nextFree_122[Func_firstFree_520]; Func_typeId_198[this_550] = 3; }; wurst_stack_depth_158 = (wurst_stack_depth_158 - 1); if (C_x_728[dispatch_C_A_C_map975(a_130, this_550, "when calling map in generic1, line 13")] == 10) { testSuccess122(); } else { }; wurst_stack_depth_158 = (wurst_stack_depth_158 - 1); } IS_NATIVE function testSuccess122() { } function new_C888(any x180, string __wurst_stackPos194) returns integer { local integer this954 wurst_stack_191[wurst_stack_depth_158] = __wurst_stackPos_194; wurst_stack_depth_158 = (wurst_stack_depth_158 + 1); wurst_stack_191[wurst_stack_depth_158] = "when calling alloc_C in generic1, line 7"; wurst_stack_depth_158 = (wurst_stack_depth_158 + 1); if (C_firstFree_266 == 0) { if (C_maxIndex_815 < 32768) { C_maxIndex_815 = (C_maxIndex_815 + 1); this_954 = C_maxIndex_815; C_typeId_212[this_954] = 1; } else { error100("Out of memory: Could not create C.", "when calling error in generic1, line 5"); this_954 = 0; }; } else { C_firstFree_266 = (C_firstFree_266 - 1); this_954 = C_nextFree_193[C_firstFree_266]; C_typeId_212[this_954] = 1; }; wurst_stack_depth_158 = (wurst_stack_depth_158 - 1); C_x_728[this_954] = x_180; wurst_stack_depth_158 = (wurst_stack_depth_158 - 1); return this_954; } function error100(string msg141, string __wurst_stackPos519) { local integer stacktraceIndex942 local integer stacktraceLimit250 wurst_stack_191[wurst_stack_depth_158] = __wurst_stackPos_519; wurst_stack_depth_158 = (wurst_stack_depth_158 + 1); __wurst_stackPos_519 = ""; stacktraceIndex_942 = wurst_stack_depth_158; stacktraceLimit_250 = 0; loop { stacktraceIndex_942 = (stacktraceIndex_942 - 1); stacktraceLimit_250 = (stacktraceLimit_250 + 1); exitwhen ((stacktraceLimit_250 > 20) or (stacktraceIndex_942 < 0)); __wurst_stackPos_519 = (__wurst_stackPos_519 + (" " + wurst_stack_191[stacktraceIndex_942])); }; $debugPrint853((msg_141 + (" " + __wurst_stackPos_519))); wurst_stack_depth_158 = (wurst_stack_depth_158 - 1); } function dispatch_C_A_C_map975(integer this738, integer f737, string __wurst_stackPos681) returns integer { local any x583 wurst_stack_191[wurst_stack_depth_158] = __wurst_stackPos_681; wurst_stack_depth_158 = (wurst_stack_depth_158 + 1); if (C_typeId_212[this_738] == 0) { if (this_738 == 0) { error100("Nullpointer exception when calling C.map", "when calling error in generic1, line 9"); } else { error100("Called C.map on invalid object.", "when calling error in generic1, line 9"); }; } else { }; wurst_stack_191[wurst_stack_depth_158] = "when calling map in generic1, line 9"; wurst_stack_depth_158 = (wurst_stack_depth_158 + 1); x_583 = C_x_728[this_738]; wurst_stack_191[wurst_stack_depth_158] = "when calling apply in generic1, line 10"; wurst_stack_depth_158 = (wurst_stack_depth_158 + 1); if (Func_typeId_198[f_737] == 0) { if (f_737 == 0) { error100("Nullpointer exception when calling Func.apply", "when calling error in generic1, line 4"); } else { error100("Called Func.apply on invalid object.", "when calling error in generic1, line 4"); }; } else { }; wurst_stack_depth_158 = (wurst_stack_depth_158 - 1); this_738 = new_C888((2 * x_583), "when calling new_C in generic1, line 10"); wurst_stack_depth_158 = ((wurst_stack_depth_158 - 1) - 1); return this_738; }