array A_nextFree159 integer A_firstFree411 integer A_maxIndex214 array A_typeId244 array B_nextFree911 integer B_firstFree704 integer B_maxIndex147 array B_typeId175 array A_b167 integer wurst_stack_depth172 array wurst_stack186 integer A_firstFree411 = 0 integer A_maxIndex214 = 0 integer B_firstFree704 = 0 integer B_maxIndex147 = 0 integer wurst_stack_depth172 = 0 function initGlobals976() { } function main206() { initGlobals976(); wurst_stack_186[wurst_stack_depth_172] = "when calling init_test in initialization_static_inner1, line 1"; wurst_stack_depth_172 = (wurst_stack_depth_172 + 1); if (dispatch_A_test_A_get399(new_A111("when calling new_A in initialization_static_inner1, line 12"), "when calling get in initialization_static_inner1, line 13") == 1) { testSuccess205(); } else { }; wurst_stack_depth_172 = (wurst_stack_depth_172 - 1); } function config572() { } IS_NATIVE IS_EXTERN @extern function S2I736(string i772) returns integer { } IS_NATIVE function testSuccess205() { } function new_A111(string __wurst_stackPos848) returns integer { local integer this511 wurst_stack_186[wurst_stack_depth_172] = __wurst_stackPos_848; wurst_stack_depth_172 = (wurst_stack_depth_172 + 1); wurst_stack_186[wurst_stack_depth_172] = "when calling alloc_A in initialization_static_inner1, line 4"; wurst_stack_depth_172 = (wurst_stack_depth_172 + 1); if (A_firstFree_411 == 0) { if (A_maxIndex_214 < 32768) { A_maxIndex_214 = (A_maxIndex_214 + 1); this_511 = A_maxIndex_214; A_typeId_244[this_511] = 1; } else { error307("Out of memory: Could not create A.", "when calling error in initialization_static_inner1, line 4"); this_511 = 0; }; } else { A_firstFree_411 = (A_firstFree_411 - 1); this_511 = A_nextFree_159[A_firstFree_411]; A_typeId_244[this_511] = 1; }; wurst_stack_depth_172 = (wurst_stack_depth_172 - 1); wurst_stack_186[wurst_stack_depth_172] = "when calling construct_A in initialization_static_inner1, line 4"; wurst_stack_depth_172 = (wurst_stack_depth_172 + 1); wurst_stack_186[wurst_stack_depth_172] = "when calling A_init in initialization_static_inner1, line 4"; wurst_stack_depth_172 = (wurst_stack_depth_172 + 1); A_b_167[this_511] = new_B194("when calling new_B in initialization_static_inner1, line 5"); wurst_stack_depth_172 = (((wurst_stack_depth_172 - 1) - 1) - 1); return this_511; } function new_B194(string __wurst_stackPos747) returns integer { local integer this101 wurst_stack_186[wurst_stack_depth_172] = __wurst_stackPos_747; wurst_stack_depth_172 = (wurst_stack_depth_172 + 1); wurst_stack_186[wurst_stack_depth_172] = "when calling alloc_B in initialization_static_inner1, line 8"; wurst_stack_depth_172 = (wurst_stack_depth_172 + 1); if (B_firstFree_704 == 0) { if (B_maxIndex_147 < 32768) { B_maxIndex_147 = (B_maxIndex_147 + 1); this_101 = B_maxIndex_147; B_typeId_175[this_101] = 2; } else { error307("Out of memory: Could not create B.", "when calling error in initialization_static_inner1, line 8"); this_101 = 0; }; } else { B_firstFree_704 = (B_firstFree_704 - 1); this_101 = B_nextFree_911[B_firstFree_704]; B_typeId_175[this_101] = 2; }; wurst_stack_depth_172 = ((wurst_stack_depth_172 - 1) - 1); return this_101; } function error307(string msg186, string __wurst_stackPos766) { local integer stacktraceIndex334 local integer stacktraceLimit616 wurst_stack_186[wurst_stack_depth_172] = __wurst_stackPos_766; wurst_stack_depth_172 = (wurst_stack_depth_172 + 1); __wurst_stackPos_766 = ""; stacktraceIndex_334 = wurst_stack_depth_172; stacktraceLimit_616 = 0; loop { stacktraceIndex_334 = (stacktraceIndex_334 - 1); stacktraceLimit_616 = (stacktraceLimit_616 + 1); exitwhen ((stacktraceLimit_616 > 20) or (stacktraceIndex_334 < 0)); __wurst_stackPos_766 = (__wurst_stackPos_766 + (" " + wurst_stack_186[stacktraceIndex_334])); }; $debugPrint627((msg_186 + (" " + __wurst_stackPos_766))); wurst_stack_depth_172 = (wurst_stack_depth_172 - 1); } function dispatch_A_test_A_get399(integer this119, string __wurst_stackPos207) returns integer { wurst_stack_186[wurst_stack_depth_172] = __wurst_stackPos_207; wurst_stack_depth_172 = (wurst_stack_depth_172 + 1); if (A_typeId_244[this_119] == 0) { if (this_119 == 0) { error307("Nullpointer exception when calling A.get", "when calling error in initialization_static_inner1, line 6"); } else { error307("Called A.get on invalid object.", "when calling error in initialization_static_inner1, line 6"); }; } else { }; wurst_stack_186[wurst_stack_depth_172] = "when calling get in initialization_static_inner1, line 6"; wurst_stack_depth_172 = (wurst_stack_depth_172 + 1); this_119 = A_b_167[this_119]; wurst_stack_186[wurst_stack_depth_172] = "when calling get in initialization_static_inner1, line 7"; wurst_stack_depth_172 = (wurst_stack_depth_172 + 1); if (B_typeId_175[this_119] == 0) { if (this_119 == 0) { error307("Nullpointer exception when calling B.get", "when calling error in initialization_static_inner1, line 9"); } else { error307("Called B.get on invalid object.", "when calling error in initialization_static_inner1, line 9"); }; } else { }; wurst_stack_depth_172 = (wurst_stack_depth_172 - 1); this_119 = S2I736("1"); wurst_stack_depth_172 = ((wurst_stack_depth_172 - 1) - 1); return this_119; }