array C_nextFree167 integer C_firstFree167 integer C_maxIndex595 array C_typeId202 integer wurst_stack_depth194 array wurst_stack131 integer C_firstFree167 = 0 integer C_maxIndex595 = 0 integer wurst_stack_depth194 = 0 function initGlobals164() { } function main134() { initGlobals164(); init_test810("when calling init_test in multi.wurst, line 1"); } function config672() { } function init_test810(string __wurst_stackPos107) { local integer c118 wurst_stack_131[wurst_stack_depth_194] = __wurst_stackPos_107; wurst_stack_depth_194 = (wurst_stack_depth_194 + 1); c_118 = new_C352("when calling new_C in multi.wurst, line 29"); wurst_stack_131[wurst_stack_depth_194] = "when calling foo in multi.wurst, line 33"; wurst_stack_depth_194 = (wurst_stack_depth_194 + 1); if (C_typeId_202[c_118] == 0) { if (c_118 == 0) { error213("Nullpointer exception when calling C.foo", "when calling error in multi.wurst, line 16"); } else { error213("Called C.foo on invalid object.", "when calling error in multi.wurst, line 16"); }; } else { }; wurst_stack_depth_194 = (wurst_stack_depth_194 - 1); wurst_stack_131[wurst_stack_depth_194] = "when calling bar in multi.wurst, line 37"; wurst_stack_depth_194 = (wurst_stack_depth_194 + 1); if (C_typeId_202[c_118] == 0) { if (c_118 == 0) { error213("Nullpointer exception when calling C.bar", "when calling error in multi.wurst, line 8"); } else { error213("Called C.bar on invalid object.", "when calling error in multi.wurst, line 8"); }; } else { }; wurst_stack_depth_194 = (wurst_stack_depth_194 - 1); testSuccess218(); wurst_stack_depth_194 = (wurst_stack_depth_194 - 1); } IS_NATIVE function testSuccess218() { } function new_C352(string __wurst_stackPos384) returns integer { local integer this157 wurst_stack_131[wurst_stack_depth_194] = __wurst_stackPos_384; wurst_stack_depth_194 = (wurst_stack_depth_194 + 1); wurst_stack_131[wurst_stack_depth_194] = "when calling alloc_C in multi.wurst, line 22"; wurst_stack_depth_194 = (wurst_stack_depth_194 + 1); if (C_firstFree_167 == 0) { if (C_maxIndex_595 < 32768) { C_maxIndex_595 = (C_maxIndex_595 + 1); this_157 = C_maxIndex_595; C_typeId_202[this_157] = 1; } else { error213("Out of memory: Could not create C.", "when calling error in multi.wurst, line 22"); this_157 = 0; }; } else { C_firstFree_167 = (C_firstFree_167 - 1); this_157 = C_nextFree_167[C_firstFree_167]; C_typeId_202[this_157] = 1; }; wurst_stack_depth_194 = ((wurst_stack_depth_194 - 1) - 1); return this_157; } function error213(string msg282, string __wurst_stackPos674) { local integer stacktraceIndex127 local integer stacktraceLimit120 wurst_stack_131[wurst_stack_depth_194] = __wurst_stackPos_674; wurst_stack_depth_194 = (wurst_stack_depth_194 + 1); __wurst_stackPos_674 = ""; stacktraceIndex_127 = wurst_stack_depth_194; stacktraceLimit_120 = 0; loop { stacktraceIndex_127 = (stacktraceIndex_127 - 1); stacktraceLimit_120 = (stacktraceLimit_120 + 1); exitwhen ((stacktraceLimit_120 > 20) or (stacktraceIndex_127 < 0)); __wurst_stackPos_674 = (__wurst_stackPos_674 + (" " + wurst_stack_131[stacktraceIndex_127])); }; $debugPrint122((msg_282 + (" " + __wurst_stackPos_674))); wurst_stack_depth_194 = (wurst_stack_depth_194 - 1); }