array I_nextFree120 integer I_firstFree148 integer I_maxIndex187 array I_typeId419 integer wurst_stack_depth130 array wurst_stack120 integer I_firstFree148 = 0 integer I_maxIndex187 = 0 integer wurst_stack_depth130 = 0 function initGlobals193() { } function main866() { initGlobals193(); init_test898("when calling init_test in implGap, line 12"); } function config175() { } function init_test898(string __wurst_stackPos280) { local integer c1504 local integer c2171 wurst_stack_120[wurst_stack_depth_130] = __wurst_stackPos_280; wurst_stack_depth_130 = (wurst_stack_depth_130 + 1); c1_504 = new_C776("when calling new_C in implGap, line 17"); c2_171 = new_D182("when calling new_D in implGap, line 18"); wurst_stack_120[wurst_stack_depth_130] = "when calling foo in implGap, line 19"; wurst_stack_depth_130 = (wurst_stack_depth_130 + 1); if (I_typeId_419[c1_504] == 0) { if (c1_504 == 0) { error190("Nullpointer exception when calling B.foo", "when calling error in implGap, line 5"); } else { error190("Called B.foo on invalid object.", "when calling error in implGap, line 5"); }; } else { }; wurst_stack_depth_130 = (wurst_stack_depth_130 - 1); wurst_stack_120[wurst_stack_depth_130] = "when calling foo in implGap, line 19"; wurst_stack_depth_130 = (wurst_stack_depth_130 + 1); if (I_typeId_419[c2_171] == 0) { if (c2_171 == 0) { error190("Nullpointer exception when calling B.foo", "when calling error in implGap, line 5"); } else { error190("Called B.foo on invalid object.", "when calling error in implGap, line 5"); }; } else { }; wurst_stack_depth_130 = (wurst_stack_depth_130 - 1); testSuccess193(); wurst_stack_depth_130 = (wurst_stack_depth_130 - 1); } IS_NATIVE function testSuccess193() { } function new_C776(string __wurst_stackPos396) returns integer { local integer this166 wurst_stack_120[wurst_stack_depth_130] = __wurst_stackPos_396; wurst_stack_depth_130 = (wurst_stack_depth_130 + 1); wurst_stack_120[wurst_stack_depth_130] = "when calling alloc_C in implGap, line 10"; wurst_stack_depth_130 = (wurst_stack_depth_130 + 1); if (I_firstFree_148 == 0) { if (I_maxIndex_187 < 32768) { I_maxIndex_187 = (I_maxIndex_187 + 1); this_166 = I_maxIndex_187; I_typeId_419[this_166] = 3; } else { error190("Out of memory: Could not create C.", "when calling error in implGap, line 10"); this_166 = 0; }; } else { I_firstFree_148 = (I_firstFree_148 - 1); this_166 = I_nextFree_120[I_firstFree_148]; I_typeId_419[this_166] = 3; }; wurst_stack_depth_130 = ((wurst_stack_depth_130 - 1) - 1); return this_166; } function new_D182(string __wurst_stackPos247) returns integer { local integer this498 wurst_stack_120[wurst_stack_depth_130] = __wurst_stackPos_247; wurst_stack_depth_130 = (wurst_stack_depth_130 + 1); wurst_stack_120[wurst_stack_depth_130] = "when calling alloc_D in implGap, line 15"; wurst_stack_depth_130 = (wurst_stack_depth_130 + 1); if (I_firstFree_148 == 0) { if (I_maxIndex_187 < 32768) { I_maxIndex_187 = (I_maxIndex_187 + 1); this_498 = I_maxIndex_187; I_typeId_419[this_498] = 4; } else { error190("Out of memory: Could not create D.", "when calling error in implGap, line 15"); this_498 = 0; }; } else { I_firstFree_148 = (I_firstFree_148 - 1); this_498 = I_nextFree_120[I_firstFree_148]; I_typeId_419[this_498] = 4; }; wurst_stack_depth_130 = ((wurst_stack_depth_130 - 1) - 1); return this_498; } function error190(string msg968, string __wurst_stackPos226) { local integer stacktraceIndex312 local integer stacktraceLimit179 wurst_stack_120[wurst_stack_depth_130] = __wurst_stackPos_226; wurst_stack_depth_130 = (wurst_stack_depth_130 + 1); __wurst_stackPos_226 = ""; stacktraceIndex_312 = wurst_stack_depth_130; stacktraceLimit_179 = 0; loop { stacktraceIndex_312 = (stacktraceIndex_312 - 1); stacktraceLimit_179 = (stacktraceLimit_179 + 1); exitwhen ((stacktraceLimit_179 > 20) or (stacktraceIndex_312 < 0)); __wurst_stackPos_226 = (__wurst_stackPos_226 + (" " + wurst_stack_120[stacktraceIndex_312])); }; $debugPrint611((msg_968 + (" " + __wurst_stackPos_226))); wurst_stack_depth_130 = (wurst_stack_depth_130 - 1); }