array C_nextFree177 integer C_firstFree104 integer C_maxIndex121 array C_typeId163 array C_i128 integer wurst_stack_depth172 array wurst_stack151 integer C_firstFree104 = 0 integer C_maxIndex121 = 0 integer wurst_stack_depth172 = 0 function initGlobals155() { } function main158() { initGlobals155(); init_test182("when calling init_test in extends_variables, line 1"); } function config781() { } function init_test182(string __wurst_stackPos544) { local integer this212 wurst_stack_151[wurst_stack_depth_172] = __wurst_stackPos_544; wurst_stack_depth_172 = (wurst_stack_depth_172 + 1); this_212 = new_D845("when calling new_D in extends_variables, line 9"); wurst_stack_151[wurst_stack_depth_172] = "when calling foo in extends_variables, line 9"; wurst_stack_depth_172 = (wurst_stack_depth_172 + 1); if (C_typeId_163[this_212] == 0) { if (this_212 == 0) { error233("Nullpointer exception when calling D.foo", "when calling error in extends_variables, line 6"); } else { error233("Called D.foo on invalid object.", "when calling error in extends_variables, line 6"); }; } else { }; this_212 = (C_i_128[this_212] + 1); wurst_stack_depth_172 = (wurst_stack_depth_172 - 1); if (this_212 == 6) { testSuccess139(); } else { }; wurst_stack_depth_172 = (wurst_stack_depth_172 - 1); } IS_NATIVE function testSuccess139() { } function new_D845(string __wurst_stackPos799) returns integer { local integer this960 wurst_stack_151[wurst_stack_depth_172] = __wurst_stackPos_799; wurst_stack_depth_172 = (wurst_stack_depth_172 + 1); wurst_stack_151[wurst_stack_depth_172] = "when calling alloc_D in extends_variables, line 5"; wurst_stack_depth_172 = (wurst_stack_depth_172 + 1); if (C_firstFree_104 == 0) { if (C_maxIndex_121 < 32768) { C_maxIndex_121 = (C_maxIndex_121 + 1); this_960 = C_maxIndex_121; C_typeId_163[this_960] = 2; } else { error233("Out of memory: Could not create D.", "when calling error in extends_variables, line 5"); this_960 = 0; }; } else { C_firstFree_104 = (C_firstFree_104 - 1); this_960 = C_nextFree_177[C_firstFree_104]; C_typeId_163[this_960] = 2; }; wurst_stack_depth_172 = (wurst_stack_depth_172 - 1); C_i_128[this_960] = 5; wurst_stack_depth_172 = (wurst_stack_depth_172 - 1); return this_960; } function error233(string msg212, string __wurst_stackPos147) { local integer stacktraceIndex154 local integer stacktraceLimit212 wurst_stack_151[wurst_stack_depth_172] = __wurst_stackPos_147; wurst_stack_depth_172 = (wurst_stack_depth_172 + 1); __wurst_stackPos_147 = ""; stacktraceIndex_154 = wurst_stack_depth_172; stacktraceLimit_212 = 0; loop { stacktraceIndex_154 = (stacktraceIndex_154 - 1); stacktraceLimit_212 = (stacktraceLimit_212 + 1); exitwhen ((stacktraceLimit_212 > 20) or (stacktraceIndex_154 < 0)); __wurst_stackPos_147 = (__wurst_stackPos_147 + (" " + wurst_stack_151[stacktraceIndex_154])); }; $debugPrint727((msg_212 + (" " + __wurst_stackPos_147))); wurst_stack_depth_172 = (wurst_stack_depth_172 - 1); }