array C_nextFree146 integer C_firstFree459 integer C_maxIndex121 array C_typeId118 integer wurst_stack_depth198 array wurst_stack160 integer C_firstFree459 = 0 integer C_maxIndex121 = 0 integer wurst_stack_depth198 = 0 function initGlobals207() { } function main113() { initGlobals207(); init_test178("when calling init_test in genericOverload2, line 1"); } function config380() { } function init_test178(string __wurst_stackPos140) { local integer this203 wurst_stack_160[wurst_stack_depth_198] = __wurst_stackPos_140; wurst_stack_depth_198 = (wurst_stack_depth_198 + 1); this_203 = new_C206(1, "when calling new_C in genericOverload2, line 15"); wurst_stack_160[wurst_stack_depth_198] = "when calling test in genericOverload2, line 15"; wurst_stack_depth_198 = (wurst_stack_depth_198 + 1); if (C_typeId_118[this_203] == 0) { if (this_203 == 0) { error609("Nullpointer exception when calling C.test", "when calling error in genericOverload2, line 11"); } else { error609("Called C.test on invalid object.", "when calling error in genericOverload2, line 11"); }; } else { }; wurst_stack_160[wurst_stack_depth_198] = "when calling test in genericOverload2, line 11"; wurst_stack_depth_198 = (wurst_stack_depth_198 + 1); dispatch_C_test_C_foo112(new_C206(1, "when calling new_C in genericOverload2, line 12"), 1, "when calling foo in genericOverload2, line 13"); wurst_stack_depth_198 = (((wurst_stack_depth_198 - 1) - 1) - 1); } IS_NATIVE function testSuccess178() { } function new_C206(any x176, string __wurst_stackPos316) returns integer { local integer this534 wurst_stack_160[wurst_stack_depth_198] = __wurst_stackPos_316; wurst_stack_depth_198 = (wurst_stack_depth_198 + 1); wurst_stack_160[wurst_stack_depth_198] = "when calling alloc_C in genericOverload2, line 5"; wurst_stack_depth_198 = (wurst_stack_depth_198 + 1); if (C_firstFree_459 == 0) { if (C_maxIndex_121 < 32768) { C_maxIndex_121 = (C_maxIndex_121 + 1); this_534 = C_maxIndex_121; C_typeId_118[this_534] = 1; } else { error609("Out of memory: Could not create C.", "when calling error in genericOverload2, line 3"); this_534 = 0; }; } else { C_firstFree_459 = (C_firstFree_459 - 1); this_534 = C_nextFree_146[C_firstFree_459]; C_typeId_118[this_534] = 1; }; wurst_stack_depth_198 = ((wurst_stack_depth_198 - 1) - 1); return this_534; } function error609(string msg100, string __wurst_stackPos180) { local integer stacktraceIndex940 local integer stacktraceLimit513 wurst_stack_160[wurst_stack_depth_198] = __wurst_stackPos_180; wurst_stack_depth_198 = (wurst_stack_depth_198 + 1); __wurst_stackPos_180 = ""; stacktraceIndex_940 = wurst_stack_depth_198; stacktraceLimit_513 = 0; loop { stacktraceIndex_940 = (stacktraceIndex_940 - 1); stacktraceLimit_513 = (stacktraceLimit_513 + 1); exitwhen ((stacktraceLimit_513 > 20) or (stacktraceIndex_940 < 0)); __wurst_stackPos_180 = (__wurst_stackPos_180 + (" " + wurst_stack_160[stacktraceIndex_940])); }; $debugPrint358((msg_100 + (" " + __wurst_stackPos_180))); wurst_stack_depth_198 = (wurst_stack_depth_198 - 1); } function dispatch_C_test_C_foo112(integer this169, any t174, string __wurst_stackPos115) { wurst_stack_160[wurst_stack_depth_198] = __wurst_stackPos_115; wurst_stack_depth_198 = (wurst_stack_depth_198 + 1); if (C_typeId_118[this_169] == 0) { if (this_169 == 0) { error609("Nullpointer exception when calling C.foo", "when calling error in genericOverload2, line 7"); } else { error609("Called C.foo on invalid object.", "when calling error in genericOverload2, line 7"); }; } else { }; wurst_stack_160[wurst_stack_depth_198] = "when calling foo in genericOverload2, line 7"; wurst_stack_depth_198 = (wurst_stack_depth_198 + 1); new_C206(t_174, "when calling new_C in genericOverload2, line 8"); wurst_stack_160[wurst_stack_depth_198] = "when calling foo in genericOverload2, line 8"; wurst_stack_depth_198 = (wurst_stack_depth_198 + 1); if (C_typeId_118[this_169] == 0) { if (this_169 == 0) { error609("Nullpointer exception when calling C.foo", "when calling error in genericOverload2, line 9"); } else { error609("Called C.foo on invalid object.", "when calling error in genericOverload2, line 9"); }; } else { }; testSuccess178(); wurst_stack_depth_198 = (((wurst_stack_depth_198 - 1) - 1) - 1); }