array A_nextFree116 integer A_firstFree173 integer A_maxIndex167 array Func_nextFree143 integer Func_firstFree758 integer Func_maxIndex125 array Func_typeId393 array A_f114 integer wurst_stack_depth114 array wurst_stack654 integer A_firstFree173 = 0 integer A_maxIndex167 = 0 integer Func_firstFree758 = 0 integer Func_maxIndex125 = 0 integer wurst_stack_depth114 = 0 function initGlobals932() { } function main104() { initGlobals932(); init_test107("when calling init_test in closureInClassInit, line 1"); } function config140() { } function init_test107(string __wurst_stackPos147) { local integer this128 wurst_stack_654[wurst_stack_depth_114] = __wurst_stackPos_147; wurst_stack_depth_114 = (wurst_stack_depth_114 + 1); this_128 = A_f_114[new_A326("when calling new_A in closureInClassInit, line 10")]; wurst_stack_654[wurst_stack_depth_114] = "when calling apply in closureInClassInit, line 11"; wurst_stack_depth_114 = (wurst_stack_depth_114 + 1); if (Func_typeId_393[this_128] == 0) { if (this_128 == 0) { error431("Nullpointer exception when calling Func.apply", "when calling error in closureInClassInit, line 4"); } else { error431("Called Func.apply on invalid object.", "when calling error in closureInClassInit, line 4"); }; } else { }; wurst_stack_depth_114 = (wurst_stack_depth_114 - 1); testSuccess148(); wurst_stack_depth_114 = (wurst_stack_depth_114 - 1); } IS_NATIVE function testSuccess148() { } function new_A326(string __wurst_stackPos176) returns integer { local integer this154 local integer this155 wurst_stack_654[wurst_stack_depth_114] = __wurst_stackPos_176; wurst_stack_depth_114 = (wurst_stack_depth_114 + 1); wurst_stack_654[wurst_stack_depth_114] = "when calling alloc_A in closureInClassInit, line 7"; wurst_stack_depth_114 = (wurst_stack_depth_114 + 1); if (A_firstFree_173 == 0) { if (A_maxIndex_167 < 32768) { A_maxIndex_167 = (A_maxIndex_167 + 1); this_154 = A_maxIndex_167; } else { error431("Out of memory: Could not create A.", "when calling error in closureInClassInit, line 5"); this_154 = 0; }; } else { A_firstFree_173 = (A_firstFree_173 - 1); this_154 = A_nextFree_116[A_firstFree_173]; }; wurst_stack_depth_114 = (wurst_stack_depth_114 - 1); wurst_stack_654[wurst_stack_depth_114] = "when calling construct_A in closureInClassInit, line 7"; wurst_stack_depth_114 = (wurst_stack_depth_114 + 1); wurst_stack_654[wurst_stack_depth_114] = "when calling A_init in closureInClassInit, line 7"; wurst_stack_depth_114 = (wurst_stack_depth_114 + 1); wurst_stack_654[wurst_stack_depth_114] = "when calling alloc_Func_A_test in closureInClassInit, line 6"; wurst_stack_depth_114 = (wurst_stack_depth_114 + 1); if (Func_firstFree_758 == 0) { if (Func_maxIndex_125 < 32768) { Func_maxIndex_125 = (Func_maxIndex_125 + 1); this_155 = Func_maxIndex_125; Func_typeId_393[this_155] = 3; } else { error431("Out of memory: Could not create Func_A_test.", "when calling error in closureInClassInit, line 6"); this_155 = 0; }; } else { Func_firstFree_758 = (Func_firstFree_758 - 1); this_155 = Func_nextFree_143[Func_firstFree_758]; Func_typeId_393[this_155] = 3; }; wurst_stack_depth_114 = (wurst_stack_depth_114 - 1); A_f_114[this_154] = this_155; wurst_stack_depth_114 = (((wurst_stack_depth_114 - 1) - 1) - 1); return this_154; } function error431(string msg155, string __wurst_stackPos104) { local integer stacktraceIndex612 local integer stacktraceLimit564 wurst_stack_654[wurst_stack_depth_114] = __wurst_stackPos_104; wurst_stack_depth_114 = (wurst_stack_depth_114 + 1); __wurst_stackPos_104 = ""; stacktraceIndex_612 = wurst_stack_depth_114; stacktraceLimit_564 = 0; loop { stacktraceIndex_612 = (stacktraceIndex_612 - 1); stacktraceLimit_564 = (stacktraceLimit_564 + 1); exitwhen ((stacktraceLimit_564 > 20) or (stacktraceIndex_612 < 0)); __wurst_stackPos_104 = (__wurst_stackPos_104 + (" " + wurst_stack_654[stacktraceIndex_612])); }; $debugPrint159((msg_155 + (" " + __wurst_stackPos_104))); wurst_stack_depth_114 = (wurst_stack_depth_114 - 1); }