array I_nextFree142 integer I_firstFree956 integer I_maxIndex825 array I_typeId742 integer wurst_stack_depth196 array wurst_stack513 integer I_firstFree956 = 0 integer I_maxIndex825 = 0 integer wurst_stack_depth196 = 0 function initGlobals410() { } function main420() { initGlobals410(); init_test103("when calling init_test in implGap, line 12"); } function config101() { } function init_test103(string __wurst_stackPos153) { local integer c1131 local integer c2115 wurst_stack_513[wurst_stack_depth_196] = __wurst_stackPos_153; wurst_stack_depth_196 = (wurst_stack_depth_196 + 1); c1_131 = new_C103("when calling new_C in implGap, line 17"); c2_115 = new_D171("when calling new_D in implGap, line 18"); wurst_stack_513[wurst_stack_depth_196] = "when calling foo in implGap, line 19"; wurst_stack_depth_196 = (wurst_stack_depth_196 + 1); if (I_typeId_742[c1_131] == 0) { if (c1_131 == 0) { error434("Nullpointer exception when calling B.foo", "when calling error in implGap, line 5"); } else { error434("Called B.foo on invalid object.", "when calling error in implGap, line 5"); }; } else { }; wurst_stack_depth_196 = (wurst_stack_depth_196 - 1); wurst_stack_513[wurst_stack_depth_196] = "when calling foo in implGap, line 19"; wurst_stack_depth_196 = (wurst_stack_depth_196 + 1); if (I_typeId_742[c2_115] == 0) { if (c2_115 == 0) { error434("Nullpointer exception when calling B.foo", "when calling error in implGap, line 5"); } else { error434("Called B.foo on invalid object.", "when calling error in implGap, line 5"); }; } else { }; wurst_stack_depth_196 = (wurst_stack_depth_196 - 1); testSuccess113(); wurst_stack_depth_196 = (wurst_stack_depth_196 - 1); } IS_NATIVE function testSuccess113() { } function new_C103(string __wurst_stackPos399) returns integer { local integer this987 wurst_stack_513[wurst_stack_depth_196] = __wurst_stackPos_399; wurst_stack_depth_196 = (wurst_stack_depth_196 + 1); wurst_stack_513[wurst_stack_depth_196] = "when calling alloc_C in implGap, line 10"; wurst_stack_depth_196 = (wurst_stack_depth_196 + 1); if (I_firstFree_956 == 0) { if (I_maxIndex_825 < 32768) { I_maxIndex_825 = (I_maxIndex_825 + 1); this_987 = I_maxIndex_825; I_typeId_742[this_987] = 3; } else { error434("Out of memory: Could not create C.", "when calling error in implGap, line 10"); this_987 = 0; }; } else { I_firstFree_956 = (I_firstFree_956 - 1); this_987 = I_nextFree_142[I_firstFree_956]; I_typeId_742[this_987] = 3; }; wurst_stack_depth_196 = ((wurst_stack_depth_196 - 1) - 1); return this_987; } function new_D171(string __wurst_stackPos186) returns integer { local integer this173 wurst_stack_513[wurst_stack_depth_196] = __wurst_stackPos_186; wurst_stack_depth_196 = (wurst_stack_depth_196 + 1); wurst_stack_513[wurst_stack_depth_196] = "when calling alloc_D in implGap, line 15"; wurst_stack_depth_196 = (wurst_stack_depth_196 + 1); if (I_firstFree_956 == 0) { if (I_maxIndex_825 < 32768) { I_maxIndex_825 = (I_maxIndex_825 + 1); this_173 = I_maxIndex_825; I_typeId_742[this_173] = 4; } else { error434("Out of memory: Could not create D.", "when calling error in implGap, line 15"); this_173 = 0; }; } else { I_firstFree_956 = (I_firstFree_956 - 1); this_173 = I_nextFree_142[I_firstFree_956]; I_typeId_742[this_173] = 4; }; wurst_stack_depth_196 = ((wurst_stack_depth_196 - 1) - 1); return this_173; } function error434(string msg565, string __wurst_stackPos127) { local integer stacktraceIndex172 local integer stacktraceLimit118 wurst_stack_513[wurst_stack_depth_196] = __wurst_stackPos_127; wurst_stack_depth_196 = (wurst_stack_depth_196 + 1); __wurst_stackPos_127 = ""; stacktraceIndex_172 = wurst_stack_depth_196; stacktraceLimit_118 = 0; loop { stacktraceIndex_172 = (stacktraceIndex_172 - 1); stacktraceLimit_118 = (stacktraceLimit_118 + 1); exitwhen ((stacktraceLimit_118 > 20) or (stacktraceIndex_172 < 0)); __wurst_stackPos_127 = (__wurst_stackPos_127 + (" " + wurst_stack_513[stacktraceIndex_172])); }; $debugPrint895((msg_565 + (" " + __wurst_stackPos_127))); wurst_stack_depth_196 = (wurst_stack_depth_196 - 1); }