array C_nextFree479 integer C_firstFree873 integer C_maxIndex121 array C_typeId195 integer wurst_stack_depth187 array wurst_stack308 integer C_firstFree873 = 0 integer C_maxIndex121 = 0 integer wurst_stack_depth187 = 0 function initGlobals311() { } function main186() { initGlobals311(); init_test516("when calling init_test in override2.wurst, line 1"); } function config192() { } function init_test516(string __wurst_stackPos209) { wurst_stack_308[wurst_stack_depth_187] = __wurst_stackPos_209; wurst_stack_depth_187 = (wurst_stack_depth_187 + 1); if (dispatch_C_test_C_A_getBar178(new_C287("when calling new_C in override2.wurst, line 30"), "when calling getBar in override2.wurst, line 32") != 3) { testFail370("fail"); } else { }; testSuccess733(); wurst_stack_depth_187 = (wurst_stack_depth_187 - 1); } IS_NATIVE function testFail370(string msg106) { } IS_NATIVE function testSuccess733() { } function new_C287(string __wurst_stackPos992) returns integer { local integer this161 wurst_stack_308[wurst_stack_depth_187] = __wurst_stackPos_992; wurst_stack_depth_187 = (wurst_stack_depth_187 + 1); wurst_stack_308[wurst_stack_depth_187] = "when calling alloc_C in override2.wurst, line 17"; wurst_stack_depth_187 = (wurst_stack_depth_187 + 1); if (C_firstFree_873 == 0) { if (C_maxIndex_121 < 32768) { C_maxIndex_121 = (C_maxIndex_121 + 1); this_161 = C_maxIndex_121; C_typeId_195[this_161] = 1; } else { error185("Out of memory: Could not create C.", "when calling error in override2.wurst, line 17"); this_161 = 0; }; } else { C_firstFree_873 = (C_firstFree_873 - 1); this_161 = C_nextFree_479[C_firstFree_873]; C_typeId_195[this_161] = 1; }; wurst_stack_depth_187 = ((wurst_stack_depth_187 - 1) - 1); return this_161; } function error185(string msg152, string __wurst_stackPos203) { local integer stacktraceIndex128 local integer stacktraceLimit175 wurst_stack_308[wurst_stack_depth_187] = __wurst_stackPos_203; wurst_stack_depth_187 = (wurst_stack_depth_187 + 1); __wurst_stackPos_203 = ""; stacktraceIndex_128 = wurst_stack_depth_187; stacktraceLimit_175 = 0; loop { stacktraceIndex_128 = (stacktraceIndex_128 - 1); stacktraceLimit_175 = (stacktraceLimit_175 + 1); exitwhen ((stacktraceLimit_175 > 20) or (stacktraceIndex_128 < 0)); __wurst_stackPos_203 = (__wurst_stackPos_203 + (" " + wurst_stack_308[stacktraceIndex_128])); }; $debugPrint208((msg_152 + (" " + __wurst_stackPos_203))); wurst_stack_depth_187 = (wurst_stack_depth_187 - 1); } function dispatch_C_test_C_A_getBar178(integer this203, string __wurst_stackPos164) returns integer { wurst_stack_308[wurst_stack_depth_187] = __wurst_stackPos_164; wurst_stack_depth_187 = (wurst_stack_depth_187 + 1); if (C_typeId_195[this_203] == 0) { if (this_203 == 0) { error185("Nullpointer exception when calling C.getBar", "when calling error in override2.wurst, line 12"); } else { error185("Called C.getBar on invalid object.", "when calling error in override2.wurst, line 12"); }; } else { }; wurst_stack_308[wurst_stack_depth_187] = "when calling getBar in override2.wurst, line 12"; wurst_stack_depth_187 = (wurst_stack_depth_187 + 1); wurst_stack_308[wurst_stack_depth_187] = "when calling getFoo in override2.wurst, line 13"; wurst_stack_depth_187 = (wurst_stack_depth_187 + 1); if (C_typeId_195[this_203] == 0) { if (this_203 == 0) { error185("Nullpointer exception when calling C.getFoo", "when calling error in override2.wurst, line 20"); } else { error185("Called C.getFoo on invalid object.", "when calling error in override2.wurst, line 20"); }; } else { }; wurst_stack_depth_187 = (((wurst_stack_depth_187 - 1) - 1) - 1); return 3; }