array A_nextFree125 integer A_firstFree174 integer A_maxIndex599 array A_typeId107 array B_nextFree814 integer B_firstFree260 integer B_maxIndex758 array B_typeId757 array A_b158 integer wurst_stack_depth189 array wurst_stack166 integer A_firstFree174 = 0 integer A_maxIndex599 = 0 integer B_firstFree260 = 0 integer B_maxIndex758 = 0 integer wurst_stack_depth189 = 0 function initGlobals735() { } function main818() { initGlobals735(); wurst_stack_166[wurst_stack_depth_189] = "when calling init_test in initialization_static_inner2, line 1"; wurst_stack_depth_189 = (wurst_stack_depth_189 + 1); if (dispatch_A_test_A_get637(new_A197("when calling new_A in initialization_static_inner2, line 11"), "when calling get in initialization_static_inner2, line 12") == 1) { testSuccess932(); } else { }; wurst_stack_depth_189 = (wurst_stack_depth_189 - 1); } function config155() { } IS_NATIVE function testSuccess932() { } function new_A197(string __wurst_stackPos797) returns integer { local integer this201 wurst_stack_166[wurst_stack_depth_189] = __wurst_stackPos_797; wurst_stack_depth_189 = (wurst_stack_depth_189 + 1); wurst_stack_166[wurst_stack_depth_189] = "when calling alloc_A in initialization_static_inner2, line 3"; wurst_stack_depth_189 = (wurst_stack_depth_189 + 1); if (A_firstFree_174 == 0) { if (A_maxIndex_599 < 32768) { A_maxIndex_599 = (A_maxIndex_599 + 1); this_201 = A_maxIndex_599; A_typeId_107[this_201] = 1; } else { error142("Out of memory: Could not create A.", "when calling error in initialization_static_inner2, line 3"); this_201 = 0; }; } else { A_firstFree_174 = (A_firstFree_174 - 1); this_201 = A_nextFree_125[A_firstFree_174]; A_typeId_107[this_201] = 1; }; wurst_stack_depth_189 = (wurst_stack_depth_189 - 1); wurst_stack_166[wurst_stack_depth_189] = "when calling construct_A in initialization_static_inner2, line 3"; wurst_stack_depth_189 = (wurst_stack_depth_189 + 1); wurst_stack_166[wurst_stack_depth_189] = "when calling A_init in initialization_static_inner2, line 3"; wurst_stack_depth_189 = (wurst_stack_depth_189 + 1); A_b_158[this_201] = new_B728("when calling new_B in initialization_static_inner2, line 4"); wurst_stack_depth_189 = (((wurst_stack_depth_189 - 1) - 1) - 1); return this_201; } function new_B728(string __wurst_stackPos159) returns integer { local integer this914 wurst_stack_166[wurst_stack_depth_189] = __wurst_stackPos_159; wurst_stack_depth_189 = (wurst_stack_depth_189 + 1); wurst_stack_166[wurst_stack_depth_189] = "when calling alloc_B in initialization_static_inner2, line 7"; wurst_stack_depth_189 = (wurst_stack_depth_189 + 1); if (B_firstFree_260 == 0) { if (B_maxIndex_758 < 32768) { B_maxIndex_758 = (B_maxIndex_758 + 1); this_914 = B_maxIndex_758; B_typeId_757[this_914] = 2; } else { error142("Out of memory: Could not create B.", "when calling error in initialization_static_inner2, line 7"); this_914 = 0; }; } else { B_firstFree_260 = (B_firstFree_260 - 1); this_914 = B_nextFree_814[B_firstFree_260]; B_typeId_757[this_914] = 2; }; wurst_stack_depth_189 = ((wurst_stack_depth_189 - 1) - 1); return this_914; } function error142(string msg696, string __wurst_stackPos935) { local integer stacktraceIndex848 local integer stacktraceLimit175 wurst_stack_166[wurst_stack_depth_189] = __wurst_stackPos_935; wurst_stack_depth_189 = (wurst_stack_depth_189 + 1); __wurst_stackPos_935 = ""; stacktraceIndex_848 = wurst_stack_depth_189; stacktraceLimit_175 = 0; loop { stacktraceIndex_848 = (stacktraceIndex_848 - 1); stacktraceLimit_175 = (stacktraceLimit_175 + 1); exitwhen ((stacktraceLimit_175 > 20) or (stacktraceIndex_848 < 0)); __wurst_stackPos_935 = (__wurst_stackPos_935 + (" " + wurst_stack_166[stacktraceIndex_848])); }; $debugPrint112((msg_696 + (" " + __wurst_stackPos_935))); wurst_stack_depth_189 = (wurst_stack_depth_189 - 1); } function dispatch_A_test_A_get637(integer this173, string __wurst_stackPos161) returns integer { wurst_stack_166[wurst_stack_depth_189] = __wurst_stackPos_161; wurst_stack_depth_189 = (wurst_stack_depth_189 + 1); if (A_typeId_107[this_173] == 0) { if (this_173 == 0) { error142("Nullpointer exception when calling A.get", "when calling error in initialization_static_inner2, line 5"); } else { error142("Called A.get on invalid object.", "when calling error in initialization_static_inner2, line 5"); }; } else { }; wurst_stack_166[wurst_stack_depth_189] = "when calling get in initialization_static_inner2, line 5"; wurst_stack_depth_189 = (wurst_stack_depth_189 + 1); this_173 = A_b_158[this_173]; wurst_stack_166[wurst_stack_depth_189] = "when calling get in initialization_static_inner2, line 6"; wurst_stack_depth_189 = (wurst_stack_depth_189 + 1); if (B_typeId_757[this_173] == 0) { if (this_173 == 0) { error142("Nullpointer exception when calling B.get", "when calling error in initialization_static_inner2, line 8"); } else { error142("Called B.get on invalid object.", "when calling error in initialization_static_inner2, line 8"); }; } else { }; wurst_stack_depth_189 = (((wurst_stack_depth_189 - 1) - 1) - 1); return 1; }