integer test_x748 array A_nextFree204 integer A_firstFree417 integer A_maxIndex170 array A_typeId190 integer wurst_stack_depth191 array wurst_stack733 integer test_x748 = 2 integer A_firstFree417 = 0 integer A_maxIndex170 = 0 integer wurst_stack_depth191 = 0 function initGlobals174() { } function main168() { initGlobals174(); wurst_stack_733[wurst_stack_depth_191] = "when calling init_test in testtest, line 1"; wurst_stack_depth_191 = (wurst_stack_depth_191 + 1); test_x_748 = 2; dispatch_A_test_A_foo196(new_B379("when calling new_B in testtest, line 15"), "when calling foo in testtest, line 16"); if (test_x_748 == 5) { testSuccess167(); } else { }; wurst_stack_depth_191 = (wurst_stack_depth_191 - 1); } function config783() { } IS_NATIVE function testSuccess167() { } function new_B379(string __wurst_stackPos149) returns integer { local integer this610 wurst_stack_733[wurst_stack_depth_191] = __wurst_stackPos_149; wurst_stack_depth_191 = (wurst_stack_depth_191 + 1); wurst_stack_733[wurst_stack_depth_191] = "when calling alloc_B in testtest, line 8"; wurst_stack_depth_191 = (wurst_stack_depth_191 + 1); if (A_firstFree_417 == 0) { if (A_maxIndex_170 < 32768) { A_maxIndex_170 = (A_maxIndex_170 + 1); this_610 = A_maxIndex_170; A_typeId_190[this_610] = 2; } else { error153("Out of memory: Could not create B.", "when calling error in testtest, line 8"); this_610 = 0; }; } else { A_firstFree_417 = (A_firstFree_417 - 1); this_610 = A_nextFree_204[A_firstFree_417]; A_typeId_190[this_610] = 2; }; wurst_stack_depth_191 = ((wurst_stack_depth_191 - 1) - 1); return this_610; } function error153(string msg268, string __wurst_stackPos167) { local integer stacktraceIndex776 local integer stacktraceLimit128 wurst_stack_733[wurst_stack_depth_191] = __wurst_stackPos_167; wurst_stack_depth_191 = (wurst_stack_depth_191 + 1); __wurst_stackPos_167 = ""; stacktraceIndex_776 = wurst_stack_depth_191; stacktraceLimit_128 = 0; loop { stacktraceIndex_776 = (stacktraceIndex_776 - 1); stacktraceLimit_128 = (stacktraceLimit_128 + 1); exitwhen ((stacktraceLimit_128 > 20) or (stacktraceIndex_776 < 0)); __wurst_stackPos_167 = (__wurst_stackPos_167 + (" " + wurst_stack_733[stacktraceIndex_776])); }; $debugPrint374((msg_268 + (" " + __wurst_stackPos_167))); wurst_stack_depth_191 = (wurst_stack_depth_191 - 1); } function dispatch_A_test_A_foo196(integer this133, string __wurst_stackPos145) { wurst_stack_733[wurst_stack_depth_191] = __wurst_stackPos_145; wurst_stack_depth_191 = (wurst_stack_depth_191 + 1); if (A_typeId_190[this_133] == 0) { if (this_133 == 0) { error153("Nullpointer exception when calling A.foo", "when calling error in testtest, line 6"); } else { error153("Called A.foo on invalid object.", "when calling error in testtest, line 6"); }; } else { }; if (A_typeId_190[this_133] <= 2) { if (A_typeId_190[this_133] <= 1) { test_x_748 = 4; } else { test_x_748 = 5; }; } else { test_x_748 = 6; }; wurst_stack_depth_191 = (wurst_stack_depth_191 - 1); }