integer test_x148 array A_nextFree160 integer A_firstFree190 integer A_maxIndex111 array A_typeId360 integer wurst_stack_depth308 array wurst_stack181 integer test_x148 = 2 integer A_firstFree190 = 0 integer A_maxIndex111 = 0 integer wurst_stack_depth308 = 0 function initGlobals123() { } function main511() { initGlobals123(); wurst_stack_181[wurst_stack_depth_308] = "when calling init_test in testtest, line 1"; wurst_stack_depth_308 = (wurst_stack_depth_308 + 1); test_x_148 = 2; dispatch_A_test_A_foo628(new_B147("when calling new_B in testtest, line 15"), "when calling foo in testtest, line 16"); if (test_x_148 == 5) { testSuccess369(); } else { }; wurst_stack_depth_308 = (wurst_stack_depth_308 - 1); } function config180() { } IS_NATIVE function testSuccess369() { } function new_B147(string __wurst_stackPos447) returns integer { local integer this709 wurst_stack_181[wurst_stack_depth_308] = __wurst_stackPos_447; wurst_stack_depth_308 = (wurst_stack_depth_308 + 1); wurst_stack_181[wurst_stack_depth_308] = "when calling alloc_B in testtest, line 8"; wurst_stack_depth_308 = (wurst_stack_depth_308 + 1); if (A_firstFree_190 == 0) { if (A_maxIndex_111 < 32768) { A_maxIndex_111 = (A_maxIndex_111 + 1); this_709 = A_maxIndex_111; A_typeId_360[this_709] = 2; } else { error133("Out of memory: Could not create B.", "when calling error in testtest, line 8"); this_709 = 0; }; } else { A_firstFree_190 = (A_firstFree_190 - 1); this_709 = A_nextFree_160[A_firstFree_190]; A_typeId_360[this_709] = 2; }; wurst_stack_depth_308 = ((wurst_stack_depth_308 - 1) - 1); return this_709; } function error133(string msg131, string __wurst_stackPos160) { local integer stacktraceIndex307 local integer stacktraceLimit827 wurst_stack_181[wurst_stack_depth_308] = __wurst_stackPos_160; wurst_stack_depth_308 = (wurst_stack_depth_308 + 1); __wurst_stackPos_160 = ""; stacktraceIndex_307 = wurst_stack_depth_308; stacktraceLimit_827 = 0; loop { stacktraceIndex_307 = (stacktraceIndex_307 - 1); stacktraceLimit_827 = (stacktraceLimit_827 + 1); exitwhen ((stacktraceLimit_827 > 20) or (stacktraceIndex_307 < 0)); __wurst_stackPos_160 = (__wurst_stackPos_160 + (" " + wurst_stack_181[stacktraceIndex_307])); }; $debugPrint485((msg_131 + (" " + __wurst_stackPos_160))); wurst_stack_depth_308 = (wurst_stack_depth_308 - 1); } function dispatch_A_test_A_foo628(integer this122, string __wurst_stackPos641) { wurst_stack_181[wurst_stack_depth_308] = __wurst_stackPos_641; wurst_stack_depth_308 = (wurst_stack_depth_308 + 1); if (A_typeId_360[this_122] == 0) { if (this_122 == 0) { error133("Nullpointer exception when calling A.foo", "when calling error in testtest, line 6"); } else { error133("Called A.foo on invalid object.", "when calling error in testtest, line 6"); }; } else { }; if (A_typeId_360[this_122] <= 2) { if (A_typeId_360[this_122] <= 1) { test_x_148 = 4; } else { test_x_148 = 5; }; } else { test_x_148 = 6; }; wurst_stack_depth_308 = (wurst_stack_depth_308 - 1); }