array C_nextFree118 integer C_firstFree994 integer C_maxIndex219 array C_typeId165 integer wurst_stack_depth749 array wurst_stack109 integer C_firstFree994 = 0 integer C_maxIndex219 = 0 integer wurst_stack_depth749 = 0 function initGlobals130() { } function main124() { initGlobals130(); init_test545("when calling init_test in genericOverload2, line 1"); } function config169() { } function init_test545(string __wurst_stackPos179) { local integer this200 wurst_stack_109[wurst_stack_depth_749] = __wurst_stackPos_179; wurst_stack_depth_749 = (wurst_stack_depth_749 + 1); this_200 = new_C179(1, "when calling new_C in genericOverload2, line 15"); wurst_stack_109[wurst_stack_depth_749] = "when calling test in genericOverload2, line 15"; wurst_stack_depth_749 = (wurst_stack_depth_749 + 1); if (C_typeId_165[this_200] == 0) { if (this_200 == 0) { error165("Nullpointer exception when calling C.test", "when calling error in genericOverload2, line 11"); } else { error165("Called C.test on invalid object.", "when calling error in genericOverload2, line 11"); }; } else { }; wurst_stack_109[wurst_stack_depth_749] = "when calling test in genericOverload2, line 11"; wurst_stack_depth_749 = (wurst_stack_depth_749 + 1); dispatch_C_test_C_foo631(new_C179(1, "when calling new_C in genericOverload2, line 12"), 1, "when calling foo in genericOverload2, line 13"); wurst_stack_depth_749 = (((wurst_stack_depth_749 - 1) - 1) - 1); } IS_NATIVE function testSuccess205() { } function new_C179(any x117, string __wurst_stackPos524) returns integer { local integer this520 wurst_stack_109[wurst_stack_depth_749] = __wurst_stackPos_524; wurst_stack_depth_749 = (wurst_stack_depth_749 + 1); wurst_stack_109[wurst_stack_depth_749] = "when calling alloc_C in genericOverload2, line 5"; wurst_stack_depth_749 = (wurst_stack_depth_749 + 1); if (C_firstFree_994 == 0) { if (C_maxIndex_219 < 32768) { C_maxIndex_219 = (C_maxIndex_219 + 1); this_520 = C_maxIndex_219; C_typeId_165[this_520] = 1; } else { error165("Out of memory: Could not create C.", "when calling error in genericOverload2, line 3"); this_520 = 0; }; } else { C_firstFree_994 = (C_firstFree_994 - 1); this_520 = C_nextFree_118[C_firstFree_994]; C_typeId_165[this_520] = 1; }; wurst_stack_depth_749 = ((wurst_stack_depth_749 - 1) - 1); return this_520; } function error165(string msg118, string __wurst_stackPos123) { local integer stacktraceIndex193 local integer stacktraceLimit127 wurst_stack_109[wurst_stack_depth_749] = __wurst_stackPos_123; wurst_stack_depth_749 = (wurst_stack_depth_749 + 1); __wurst_stackPos_123 = ""; stacktraceIndex_193 = wurst_stack_depth_749; stacktraceLimit_127 = 0; loop { stacktraceIndex_193 = (stacktraceIndex_193 - 1); stacktraceLimit_127 = (stacktraceLimit_127 + 1); exitwhen ((stacktraceLimit_127 > 20) or (stacktraceIndex_193 < 0)); __wurst_stackPos_123 = (__wurst_stackPos_123 + (" " + wurst_stack_109[stacktraceIndex_193])); }; $debugPrint191((msg_118 + (" " + __wurst_stackPos_123))); wurst_stack_depth_749 = (wurst_stack_depth_749 - 1); } function dispatch_C_test_C_foo631(integer this806, any t311, string __wurst_stackPos139) { wurst_stack_109[wurst_stack_depth_749] = __wurst_stackPos_139; wurst_stack_depth_749 = (wurst_stack_depth_749 + 1); if (C_typeId_165[this_806] == 0) { if (this_806 == 0) { error165("Nullpointer exception when calling C.foo", "when calling error in genericOverload2, line 7"); } else { error165("Called C.foo on invalid object.", "when calling error in genericOverload2, line 7"); }; } else { }; wurst_stack_109[wurst_stack_depth_749] = "when calling foo in genericOverload2, line 7"; wurst_stack_depth_749 = (wurst_stack_depth_749 + 1); new_C179(t_311, "when calling new_C in genericOverload2, line 8"); wurst_stack_109[wurst_stack_depth_749] = "when calling foo in genericOverload2, line 8"; wurst_stack_depth_749 = (wurst_stack_depth_749 + 1); if (C_typeId_165[this_806] == 0) { if (this_806 == 0) { error165("Nullpointer exception when calling C.foo", "when calling error in genericOverload2, line 9"); } else { error165("Called C.foo on invalid object.", "when calling error in genericOverload2, line 9"); }; } else { }; testSuccess205(); wurst_stack_depth_749 = (((wurst_stack_depth_749 - 1) - 1) - 1); }