array C_nextFree768 integer C_firstFree116 integer C_maxIndex157 array C_typeId311 integer wurst_stack_depth994 array wurst_stack613 integer C_firstFree116 = 0 integer C_maxIndex157 = 0 integer wurst_stack_depth994 = 0 function initGlobals144() { } function main921() { initGlobals144(); init_test414("when calling init_test in override2.wurst, line 1"); } function config125() { } function init_test414(string __wurst_stackPos141) { wurst_stack_613[wurst_stack_depth_994] = __wurst_stackPos_141; wurst_stack_depth_994 = (wurst_stack_depth_994 + 1); if (dispatch_C_test_C_A_getBar508(new_C206("when calling new_C in override2.wurst, line 30"), "when calling getBar in override2.wurst, line 32") != 3) { testFail794("fail"); } else { }; testSuccess151(); wurst_stack_depth_994 = (wurst_stack_depth_994 - 1); } IS_NATIVE function testFail794(string msg927) { } IS_NATIVE function testSuccess151() { } function new_C206(string __wurst_stackPos440) returns integer { local integer this124 wurst_stack_613[wurst_stack_depth_994] = __wurst_stackPos_440; wurst_stack_depth_994 = (wurst_stack_depth_994 + 1); wurst_stack_613[wurst_stack_depth_994] = "when calling alloc_C in override2.wurst, line 17"; wurst_stack_depth_994 = (wurst_stack_depth_994 + 1); if (C_firstFree_116 == 0) { if (C_maxIndex_157 < 32768) { C_maxIndex_157 = (C_maxIndex_157 + 1); this_124 = C_maxIndex_157; C_typeId_311[this_124] = 1; } else { error209("Out of memory: Could not create C.", "when calling error in override2.wurst, line 17"); this_124 = 0; }; } else { C_firstFree_116 = (C_firstFree_116 - 1); this_124 = C_nextFree_768[C_firstFree_116]; C_typeId_311[this_124] = 1; }; wurst_stack_depth_994 = ((wurst_stack_depth_994 - 1) - 1); return this_124; } function error209(string msg259, string __wurst_stackPos197) { local integer stacktraceIndex471 local integer stacktraceLimit898 wurst_stack_613[wurst_stack_depth_994] = __wurst_stackPos_197; wurst_stack_depth_994 = (wurst_stack_depth_994 + 1); __wurst_stackPos_197 = ""; stacktraceIndex_471 = wurst_stack_depth_994; stacktraceLimit_898 = 0; loop { stacktraceIndex_471 = (stacktraceIndex_471 - 1); stacktraceLimit_898 = (stacktraceLimit_898 + 1); exitwhen ((stacktraceLimit_898 > 20) or (stacktraceIndex_471 < 0)); __wurst_stackPos_197 = (__wurst_stackPos_197 + (" " + wurst_stack_613[stacktraceIndex_471])); }; $debugPrint903((msg_259 + (" " + __wurst_stackPos_197))); wurst_stack_depth_994 = (wurst_stack_depth_994 - 1); } function dispatch_C_test_C_A_getBar508(integer this210, string __wurst_stackPos261) returns integer { wurst_stack_613[wurst_stack_depth_994] = __wurst_stackPos_261; wurst_stack_depth_994 = (wurst_stack_depth_994 + 1); if (C_typeId_311[this_210] == 0) { if (this_210 == 0) { error209("Nullpointer exception when calling C.getBar", "when calling error in override2.wurst, line 12"); } else { error209("Called C.getBar on invalid object.", "when calling error in override2.wurst, line 12"); }; } else { }; wurst_stack_613[wurst_stack_depth_994] = "when calling getBar in override2.wurst, line 12"; wurst_stack_depth_994 = (wurst_stack_depth_994 + 1); wurst_stack_613[wurst_stack_depth_994] = "when calling getFoo in override2.wurst, line 13"; wurst_stack_depth_994 = (wurst_stack_depth_994 + 1); if (C_typeId_311[this_210] == 0) { if (this_210 == 0) { error209("Nullpointer exception when calling C.getFoo", "when calling error in override2.wurst, line 20"); } else { error209("Called C.getFoo on invalid object.", "when calling error in override2.wurst, line 20"); }; } else { }; wurst_stack_depth_994 = (((wurst_stack_depth_994 - 1) - 1) - 1); return 3; }