array C_nextFree585 integer C_firstFree351 integer C_maxIndex176 array C_typeId123 integer wurst_stack_depth281 array wurst_stack139 integer C_firstFree351 = 0 integer C_maxIndex176 = 0 integer wurst_stack_depth281 = 0 function initGlobals150() { } function main400() { initGlobals150(); init_test102("when calling init_test in override.wurst, line 1"); } function config505() { } function init_test102(string __wurst_stackPos161) { local integer c201 wurst_stack_139[wurst_stack_depth_281] = __wurst_stackPos_161; wurst_stack_depth_281 = (wurst_stack_depth_281 + 1); c_201 = new_C141("when calling new_C in override.wurst, line 32"); wurst_stack_139[wurst_stack_depth_281] = "when calling foo in override.wurst, line 36"; wurst_stack_depth_281 = (wurst_stack_depth_281 + 1); if (C_typeId_123[c_201] == 0) { if (c_201 == 0) { error530("Nullpointer exception when calling C.foo", "when calling error in override.wurst, line 23"); } else { error530("Called C.foo on invalid object.", "when calling error in override.wurst, line 23"); }; } else { }; wurst_stack_depth_281 = (wurst_stack_depth_281 - 1); testSuccess858(); wurst_stack_depth_281 = (wurst_stack_depth_281 - 1); } IS_NATIVE function testSuccess858() { } function new_C141(string __wurst_stackPos100) returns integer { local integer this608 wurst_stack_139[wurst_stack_depth_281] = __wurst_stackPos_100; wurst_stack_depth_281 = (wurst_stack_depth_281 + 1); wurst_stack_139[wurst_stack_depth_281] = "when calling alloc_C in override.wurst, line 19"; wurst_stack_depth_281 = (wurst_stack_depth_281 + 1); if (C_firstFree_351 == 0) { if (C_maxIndex_176 < 32768) { C_maxIndex_176 = (C_maxIndex_176 + 1); this_608 = C_maxIndex_176; C_typeId_123[this_608] = 1; } else { error530("Out of memory: Could not create C.", "when calling error in override.wurst, line 19"); this_608 = 0; }; } else { C_firstFree_351 = (C_firstFree_351 - 1); this_608 = C_nextFree_585[C_firstFree_351]; C_typeId_123[this_608] = 1; }; wurst_stack_depth_281 = ((wurst_stack_depth_281 - 1) - 1); return this_608; } function error530(string msg926, string __wurst_stackPos196) { local integer stacktraceIndex202 local integer stacktraceLimit779 wurst_stack_139[wurst_stack_depth_281] = __wurst_stackPos_196; wurst_stack_depth_281 = (wurst_stack_depth_281 + 1); __wurst_stackPos_196 = ""; stacktraceIndex_202 = wurst_stack_depth_281; stacktraceLimit_779 = 0; loop { stacktraceIndex_202 = (stacktraceIndex_202 - 1); stacktraceLimit_779 = (stacktraceLimit_779 + 1); exitwhen ((stacktraceLimit_779 > 20) or (stacktraceIndex_202 < 0)); __wurst_stackPos_196 = (__wurst_stackPos_196 + (" " + wurst_stack_139[stacktraceIndex_202])); }; $debugPrint167((msg_926 + (" " + __wurst_stackPos_196))); wurst_stack_depth_281 = (wurst_stack_depth_281 - 1); }