array A_nextFree687 integer A_firstFree171 integer A_maxIndex184 array A_typeId495 array B_nextFree469 integer B_firstFree378 integer B_maxIndex193 array B_typeId106 array A_b834 integer wurst_stack_depth907 array wurst_stack198 integer A_firstFree171 = 0 integer A_maxIndex184 = 0 integer B_firstFree378 = 0 integer B_maxIndex193 = 0 integer wurst_stack_depth907 = 0 function initGlobals119() { } function main205() { initGlobals119(); wurst_stack_198[wurst_stack_depth_907] = "when calling init_test in initialization_static_inner1, line 1"; wurst_stack_depth_907 = (wurst_stack_depth_907 + 1); if (dispatch_A_test_A_get209(new_A116("when calling new_A in initialization_static_inner1, line 12"), "when calling get in initialization_static_inner1, line 13") == 1) { testSuccess721(); } else { }; wurst_stack_depth_907 = (wurst_stack_depth_907 - 1); } function config291() { } IS_NATIVE IS_EXTERN @extern function S2I151(string i200) returns integer { } IS_NATIVE function testSuccess721() { } function new_A116(string __wurst_stackPos172) returns integer { local integer this197 wurst_stack_198[wurst_stack_depth_907] = __wurst_stackPos_172; wurst_stack_depth_907 = (wurst_stack_depth_907 + 1); wurst_stack_198[wurst_stack_depth_907] = "when calling alloc_A in initialization_static_inner1, line 4"; wurst_stack_depth_907 = (wurst_stack_depth_907 + 1); if (A_firstFree_171 == 0) { if (A_maxIndex_184 < 32768) { A_maxIndex_184 = (A_maxIndex_184 + 1); this_197 = A_maxIndex_184; A_typeId_495[this_197] = 1; } else { error746("Out of memory: Could not create A.", "when calling error in initialization_static_inner1, line 4"); this_197 = 0; }; } else { A_firstFree_171 = (A_firstFree_171 - 1); this_197 = A_nextFree_687[A_firstFree_171]; A_typeId_495[this_197] = 1; }; wurst_stack_depth_907 = (wurst_stack_depth_907 - 1); wurst_stack_198[wurst_stack_depth_907] = "when calling construct_A in initialization_static_inner1, line 4"; wurst_stack_depth_907 = (wurst_stack_depth_907 + 1); wurst_stack_198[wurst_stack_depth_907] = "when calling A_init in initialization_static_inner1, line 4"; wurst_stack_depth_907 = (wurst_stack_depth_907 + 1); A_b_834[this_197] = new_B161("when calling new_B in initialization_static_inner1, line 5"); wurst_stack_depth_907 = (((wurst_stack_depth_907 - 1) - 1) - 1); return this_197; } function new_B161(string __wurst_stackPos363) returns integer { local integer this199 wurst_stack_198[wurst_stack_depth_907] = __wurst_stackPos_363; wurst_stack_depth_907 = (wurst_stack_depth_907 + 1); wurst_stack_198[wurst_stack_depth_907] = "when calling alloc_B in initialization_static_inner1, line 8"; wurst_stack_depth_907 = (wurst_stack_depth_907 + 1); if (B_firstFree_378 == 0) { if (B_maxIndex_193 < 32768) { B_maxIndex_193 = (B_maxIndex_193 + 1); this_199 = B_maxIndex_193; B_typeId_106[this_199] = 2; } else { error746("Out of memory: Could not create B.", "when calling error in initialization_static_inner1, line 8"); this_199 = 0; }; } else { B_firstFree_378 = (B_firstFree_378 - 1); this_199 = B_nextFree_469[B_firstFree_378]; B_typeId_106[this_199] = 2; }; wurst_stack_depth_907 = ((wurst_stack_depth_907 - 1) - 1); return this_199; } function error746(string msg135, string __wurst_stackPos103) { local integer stacktraceIndex372 local integer stacktraceLimit274 wurst_stack_198[wurst_stack_depth_907] = __wurst_stackPos_103; wurst_stack_depth_907 = (wurst_stack_depth_907 + 1); __wurst_stackPos_103 = ""; stacktraceIndex_372 = wurst_stack_depth_907; stacktraceLimit_274 = 0; loop { stacktraceIndex_372 = (stacktraceIndex_372 - 1); stacktraceLimit_274 = (stacktraceLimit_274 + 1); exitwhen ((stacktraceLimit_274 > 20) or (stacktraceIndex_372 < 0)); __wurst_stackPos_103 = (__wurst_stackPos_103 + (" " + wurst_stack_198[stacktraceIndex_372])); }; $debugPrint354((msg_135 + (" " + __wurst_stackPos_103))); wurst_stack_depth_907 = (wurst_stack_depth_907 - 1); } function dispatch_A_test_A_get209(integer this165, string __wurst_stackPos109) returns integer { wurst_stack_198[wurst_stack_depth_907] = __wurst_stackPos_109; wurst_stack_depth_907 = (wurst_stack_depth_907 + 1); if (A_typeId_495[this_165] == 0) { if (this_165 == 0) { error746("Nullpointer exception when calling A.get", "when calling error in initialization_static_inner1, line 6"); } else { error746("Called A.get on invalid object.", "when calling error in initialization_static_inner1, line 6"); }; } else { }; wurst_stack_198[wurst_stack_depth_907] = "when calling get in initialization_static_inner1, line 6"; wurst_stack_depth_907 = (wurst_stack_depth_907 + 1); this_165 = A_b_834[this_165]; wurst_stack_198[wurst_stack_depth_907] = "when calling get in initialization_static_inner1, line 7"; wurst_stack_depth_907 = (wurst_stack_depth_907 + 1); if (B_typeId_106[this_165] == 0) { if (this_165 == 0) { error746("Nullpointer exception when calling B.get", "when calling error in initialization_static_inner1, line 9"); } else { error746("Called B.get on invalid object.", "when calling error in initialization_static_inner1, line 9"); }; } else { }; wurst_stack_depth_907 = (wurst_stack_depth_907 - 1); this_165 = S2I151("1"); wurst_stack_depth_907 = ((wurst_stack_depth_907 - 1) - 1); return this_165; }