array A_nextFree130 integer A_firstFree114 integer A_maxIndex914 array A_typeId157 array B_nextFree628 integer B_firstFree152 integer B_maxIndex202 array B_typeId195 array A_b137 integer wurst_stack_depth105 array wurst_stack159 integer A_firstFree114 = 0 integer A_maxIndex914 = 0 integer B_firstFree152 = 0 integer B_maxIndex202 = 0 integer wurst_stack_depth105 = 0 function initGlobals162() { } function main188() { initGlobals162(); wurst_stack_159[wurst_stack_depth_105] = "when calling init_test in initialization_static_inner2, line 1"; wurst_stack_depth_105 = (wurst_stack_depth_105 + 1); if (dispatch_A_test_A_get118(new_A765("when calling new_A in initialization_static_inner2, line 11"), "when calling get in initialization_static_inner2, line 12") == 1) { testSuccess162(); } else { }; wurst_stack_depth_105 = (wurst_stack_depth_105 - 1); } function config191() { } IS_NATIVE function testSuccess162() { } function new_A765(string __wurst_stackPos103) returns integer { local integer this185 wurst_stack_159[wurst_stack_depth_105] = __wurst_stackPos_103; wurst_stack_depth_105 = (wurst_stack_depth_105 + 1); wurst_stack_159[wurst_stack_depth_105] = "when calling alloc_A in initialization_static_inner2, line 3"; wurst_stack_depth_105 = (wurst_stack_depth_105 + 1); if (A_firstFree_114 == 0) { if (A_maxIndex_914 < 32768) { A_maxIndex_914 = (A_maxIndex_914 + 1); this_185 = A_maxIndex_914; A_typeId_157[this_185] = 1; } else { error127("Out of memory: Could not create A.", "when calling error in initialization_static_inner2, line 3"); this_185 = 0; }; } else { A_firstFree_114 = (A_firstFree_114 - 1); this_185 = A_nextFree_130[A_firstFree_114]; A_typeId_157[this_185] = 1; }; wurst_stack_depth_105 = (wurst_stack_depth_105 - 1); wurst_stack_159[wurst_stack_depth_105] = "when calling construct_A in initialization_static_inner2, line 3"; wurst_stack_depth_105 = (wurst_stack_depth_105 + 1); wurst_stack_159[wurst_stack_depth_105] = "when calling A_init in initialization_static_inner2, line 3"; wurst_stack_depth_105 = (wurst_stack_depth_105 + 1); A_b_137[this_185] = new_B130("when calling new_B in initialization_static_inner2, line 4"); wurst_stack_depth_105 = (((wurst_stack_depth_105 - 1) - 1) - 1); return this_185; } function new_B130(string __wurst_stackPos191) returns integer { local integer this435 wurst_stack_159[wurst_stack_depth_105] = __wurst_stackPos_191; wurst_stack_depth_105 = (wurst_stack_depth_105 + 1); wurst_stack_159[wurst_stack_depth_105] = "when calling alloc_B in initialization_static_inner2, line 7"; wurst_stack_depth_105 = (wurst_stack_depth_105 + 1); if (B_firstFree_152 == 0) { if (B_maxIndex_202 < 32768) { B_maxIndex_202 = (B_maxIndex_202 + 1); this_435 = B_maxIndex_202; B_typeId_195[this_435] = 2; } else { error127("Out of memory: Could not create B.", "when calling error in initialization_static_inner2, line 7"); this_435 = 0; }; } else { B_firstFree_152 = (B_firstFree_152 - 1); this_435 = B_nextFree_628[B_firstFree_152]; B_typeId_195[this_435] = 2; }; wurst_stack_depth_105 = ((wurst_stack_depth_105 - 1) - 1); return this_435; } function error127(string msg197, string __wurst_stackPos100) { local integer stacktraceIndex198 local integer stacktraceLimit717 wurst_stack_159[wurst_stack_depth_105] = __wurst_stackPos_100; wurst_stack_depth_105 = (wurst_stack_depth_105 + 1); __wurst_stackPos_100 = ""; stacktraceIndex_198 = wurst_stack_depth_105; stacktraceLimit_717 = 0; loop { stacktraceIndex_198 = (stacktraceIndex_198 - 1); stacktraceLimit_717 = (stacktraceLimit_717 + 1); exitwhen ((stacktraceLimit_717 > 20) or (stacktraceIndex_198 < 0)); __wurst_stackPos_100 = (__wurst_stackPos_100 + (" " + wurst_stack_159[stacktraceIndex_198])); }; $debugPrint305((msg_197 + (" " + __wurst_stackPos_100))); wurst_stack_depth_105 = (wurst_stack_depth_105 - 1); } function dispatch_A_test_A_get118(integer this195, string __wurst_stackPos142) returns integer { wurst_stack_159[wurst_stack_depth_105] = __wurst_stackPos_142; wurst_stack_depth_105 = (wurst_stack_depth_105 + 1); if (A_typeId_157[this_195] == 0) { if (this_195 == 0) { error127("Nullpointer exception when calling A.get", "when calling error in initialization_static_inner2, line 5"); } else { error127("Called A.get on invalid object.", "when calling error in initialization_static_inner2, line 5"); }; } else { }; wurst_stack_159[wurst_stack_depth_105] = "when calling get in initialization_static_inner2, line 5"; wurst_stack_depth_105 = (wurst_stack_depth_105 + 1); this_195 = A_b_137[this_195]; wurst_stack_159[wurst_stack_depth_105] = "when calling get in initialization_static_inner2, line 6"; wurst_stack_depth_105 = (wurst_stack_depth_105 + 1); if (B_typeId_195[this_195] == 0) { if (this_195 == 0) { error127("Nullpointer exception when calling B.get", "when calling error in initialization_static_inner2, line 8"); } else { error127("Called B.get on invalid object.", "when calling error in initialization_static_inner2, line 8"); }; } else { }; wurst_stack_depth_105 = (((wurst_stack_depth_105 - 1) - 1) - 1); return 1; }