array E_nextFree165 integer E_firstFree815 integer E_maxIndex571 array E_typeId153 integer wurst_stack_depth296 array wurst_stack283 integer E_firstFree815 = 0 integer E_maxIndex571 = 0 integer wurst_stack_depth296 = 0 function initGlobals432() { } function main135() { initGlobals432(); init_test148("when calling init_test in multi2.wurst, line 1"); } function config156() { } function init_test148(string __wurst_stackPos843) { local integer e181 wurst_stack_283[wurst_stack_depth_296] = __wurst_stackPos_843; wurst_stack_depth_296 = (wurst_stack_depth_296 + 1); e_181 = new_E196("when calling new_E in multi2.wurst, line 34"); wurst_stack_283[wurst_stack_depth_296] = "when calling foo in multi2.wurst, line 38"; wurst_stack_depth_296 = (wurst_stack_depth_296 + 1); if (E_typeId_153[e_181] == 0) { if (e_181 == 0) { error480("Nullpointer exception when calling E.foo", "when calling error in multi2.wurst, line 14"); } else { error480("Called E.foo on invalid object.", "when calling error in multi2.wurst, line 14"); }; } else { }; wurst_stack_depth_296 = (wurst_stack_depth_296 - 1); wurst_stack_283[wurst_stack_depth_296] = "when calling bar in multi2.wurst, line 42"; wurst_stack_depth_296 = (wurst_stack_depth_296 + 1); if (E_typeId_153[e_181] == 0) { if (e_181 == 0) { error480("Nullpointer exception when calling E.bar", "when calling error in multi2.wurst, line 8"); } else { error480("Called E.bar on invalid object.", "when calling error in multi2.wurst, line 8"); }; } else { }; wurst_stack_depth_296 = (wurst_stack_depth_296 - 1); testSuccess620(); wurst_stack_depth_296 = (wurst_stack_depth_296 - 1); } IS_NATIVE function testSuccess620() { } function new_E196(string __wurst_stackPos208) returns integer { local integer this186 wurst_stack_283[wurst_stack_depth_296] = __wurst_stackPos_208; wurst_stack_depth_296 = (wurst_stack_depth_296 + 1); wurst_stack_283[wurst_stack_depth_296] = "when calling alloc_E in multi2.wurst, line 28"; wurst_stack_depth_296 = (wurst_stack_depth_296 + 1); if (E_firstFree_815 == 0) { if (E_maxIndex_571 < 32768) { E_maxIndex_571 = (E_maxIndex_571 + 1); this_186 = E_maxIndex_571; E_typeId_153[this_186] = 1; } else { error480("Out of memory: Could not create E.", "when calling error in multi2.wurst, line 28"); this_186 = 0; }; } else { E_firstFree_815 = (E_firstFree_815 - 1); this_186 = E_nextFree_165[E_firstFree_815]; E_typeId_153[this_186] = 1; }; wurst_stack_depth_296 = ((wurst_stack_depth_296 - 1) - 1); return this_186; } function error480(string msg225, string __wurst_stackPos134) { local integer stacktraceIndex158 local integer stacktraceLimit100 wurst_stack_283[wurst_stack_depth_296] = __wurst_stackPos_134; wurst_stack_depth_296 = (wurst_stack_depth_296 + 1); __wurst_stackPos_134 = ""; stacktraceIndex_158 = wurst_stack_depth_296; stacktraceLimit_100 = 0; loop { stacktraceIndex_158 = (stacktraceIndex_158 - 1); stacktraceLimit_100 = (stacktraceLimit_100 + 1); exitwhen ((stacktraceLimit_100 > 20) or (stacktraceIndex_158 < 0)); __wurst_stackPos_134 = (__wurst_stackPos_134 + (" " + wurst_stack_283[stacktraceIndex_158])); }; $debugPrint194((msg_225 + (" " + __wurst_stackPos_134))); wurst_stack_depth_296 = (wurst_stack_depth_296 - 1); }