array C_nextFree100 integer C_firstFree126 integer C_maxIndex123 array C_typeId527 integer wurst_stack_depth987 array wurst_stack110 integer C_firstFree126 = 0 integer C_maxIndex123 = 0 integer wurst_stack_depth987 = 0 function initGlobals196() { } function main208() { initGlobals196(); init_test107("when calling init_test in multi.wurst, line 1"); } function config855() { } function init_test107(string __wurst_stackPos129) { local integer c112 wurst_stack_110[wurst_stack_depth_987] = __wurst_stackPos_129; wurst_stack_depth_987 = (wurst_stack_depth_987 + 1); c_112 = new_C110("when calling new_C in multi.wurst, line 29"); wurst_stack_110[wurst_stack_depth_987] = "when calling foo in multi.wurst, line 33"; wurst_stack_depth_987 = (wurst_stack_depth_987 + 1); if (C_typeId_527[c_112] == 0) { if (c_112 == 0) { error915("Nullpointer exception when calling C.foo", "when calling error in multi.wurst, line 16"); } else { error915("Called C.foo on invalid object.", "when calling error in multi.wurst, line 16"); }; } else { }; wurst_stack_depth_987 = (wurst_stack_depth_987 - 1); wurst_stack_110[wurst_stack_depth_987] = "when calling bar in multi.wurst, line 37"; wurst_stack_depth_987 = (wurst_stack_depth_987 + 1); if (C_typeId_527[c_112] == 0) { if (c_112 == 0) { error915("Nullpointer exception when calling C.bar", "when calling error in multi.wurst, line 8"); } else { error915("Called C.bar on invalid object.", "when calling error in multi.wurst, line 8"); }; } else { }; wurst_stack_depth_987 = (wurst_stack_depth_987 - 1); testSuccess198(); wurst_stack_depth_987 = (wurst_stack_depth_987 - 1); } IS_NATIVE function testSuccess198() { } function new_C110(string __wurst_stackPos283) returns integer { local integer this323 wurst_stack_110[wurst_stack_depth_987] = __wurst_stackPos_283; wurst_stack_depth_987 = (wurst_stack_depth_987 + 1); wurst_stack_110[wurst_stack_depth_987] = "when calling alloc_C in multi.wurst, line 22"; wurst_stack_depth_987 = (wurst_stack_depth_987 + 1); if (C_firstFree_126 == 0) { if (C_maxIndex_123 < 32768) { C_maxIndex_123 = (C_maxIndex_123 + 1); this_323 = C_maxIndex_123; C_typeId_527[this_323] = 1; } else { error915("Out of memory: Could not create C.", "when calling error in multi.wurst, line 22"); this_323 = 0; }; } else { C_firstFree_126 = (C_firstFree_126 - 1); this_323 = C_nextFree_100[C_firstFree_126]; C_typeId_527[this_323] = 1; }; wurst_stack_depth_987 = ((wurst_stack_depth_987 - 1) - 1); return this_323; } function error915(string msg115, string __wurst_stackPos188) { local integer stacktraceIndex193 local integer stacktraceLimit201 wurst_stack_110[wurst_stack_depth_987] = __wurst_stackPos_188; wurst_stack_depth_987 = (wurst_stack_depth_987 + 1); __wurst_stackPos_188 = ""; stacktraceIndex_193 = wurst_stack_depth_987; stacktraceLimit_201 = 0; loop { stacktraceIndex_193 = (stacktraceIndex_193 - 1); stacktraceLimit_201 = (stacktraceLimit_201 + 1); exitwhen ((stacktraceLimit_201 > 20) or (stacktraceIndex_193 < 0)); __wurst_stackPos_188 = (__wurst_stackPos_188 + (" " + wurst_stack_110[stacktraceIndex_193])); }; $debugPrint118((msg_115 + (" " + __wurst_stackPos_188))); wurst_stack_depth_987 = (wurst_stack_depth_987 - 1); }