array C_nextFree156 integer C_firstFree143 integer C_maxIndex140 array C_typeId976 integer wurst_stack_depth390 array wurst_stack210 integer C_firstFree143 = 0 integer C_maxIndex140 = 0 integer wurst_stack_depth390 = 0 function initGlobals107() { } function main192() { initGlobals107(); wurst_stack_210[wurst_stack_depth_390] = "when calling init_test in genericOverload, line 1"; wurst_stack_depth_390 = (wurst_stack_depth_390 + 1); dispatch_C_test_C_foo103(new_C222(1, "when calling new_C in genericOverload, line 12"), 1, "when calling foo in genericOverload, line 13"); wurst_stack_depth_390 = (wurst_stack_depth_390 - 1); } function config129() { } IS_NATIVE function testSuccess147() { } function new_C222(any x213, string __wurst_stackPos294) returns integer { local integer this233 wurst_stack_210[wurst_stack_depth_390] = __wurst_stackPos_294; wurst_stack_depth_390 = (wurst_stack_depth_390 + 1); wurst_stack_210[wurst_stack_depth_390] = "when calling alloc_C in genericOverload, line 5"; wurst_stack_depth_390 = (wurst_stack_depth_390 + 1); if (C_firstFree_143 == 0) { if (C_maxIndex_140 < 32768) { C_maxIndex_140 = (C_maxIndex_140 + 1); this_233 = C_maxIndex_140; C_typeId_976[this_233] = 1; } else { error383("Out of memory: Could not create C.", "when calling error in genericOverload, line 3"); this_233 = 0; }; } else { C_firstFree_143 = (C_firstFree_143 - 1); this_233 = C_nextFree_156[C_firstFree_143]; C_typeId_976[this_233] = 1; }; wurst_stack_depth_390 = ((wurst_stack_depth_390 - 1) - 1); return this_233; } function error383(string msg187, string __wurst_stackPos463) { local integer stacktraceIndex133 local integer stacktraceLimit965 wurst_stack_210[wurst_stack_depth_390] = __wurst_stackPos_463; wurst_stack_depth_390 = (wurst_stack_depth_390 + 1); __wurst_stackPos_463 = ""; stacktraceIndex_133 = wurst_stack_depth_390; stacktraceLimit_965 = 0; loop { stacktraceIndex_133 = (stacktraceIndex_133 - 1); stacktraceLimit_965 = (stacktraceLimit_965 + 1); exitwhen ((stacktraceLimit_965 > 20) or (stacktraceIndex_133 < 0)); __wurst_stackPos_463 = (__wurst_stackPos_463 + (" " + wurst_stack_210[stacktraceIndex_133])); }; $debugPrint429((msg_187 + (" " + __wurst_stackPos_463))); wurst_stack_depth_390 = (wurst_stack_depth_390 - 1); } function dispatch_C_test_C_foo103(integer this195, any t124, string __wurst_stackPos681) { wurst_stack_210[wurst_stack_depth_390] = __wurst_stackPos_681; wurst_stack_depth_390 = (wurst_stack_depth_390 + 1); if (C_typeId_976[this_195] == 0) { if (this_195 == 0) { error383("Nullpointer exception when calling C.foo", "when calling error in genericOverload, line 7"); } else { error383("Called C.foo on invalid object.", "when calling error in genericOverload, line 7"); }; } else { }; wurst_stack_210[wurst_stack_depth_390] = "when calling foo in genericOverload, line 7"; wurst_stack_depth_390 = (wurst_stack_depth_390 + 1); new_C222(t_124, "when calling new_C in genericOverload, line 8"); wurst_stack_210[wurst_stack_depth_390] = "when calling foo in genericOverload, line 8"; wurst_stack_depth_390 = (wurst_stack_depth_390 + 1); if (C_typeId_976[this_195] == 0) { if (this_195 == 0) { error383("Nullpointer exception when calling C.foo", "when calling error in genericOverload, line 9"); } else { error383("Called C.foo on invalid object.", "when calling error in genericOverload, line 9"); }; } else { }; testSuccess147(); wurst_stack_depth_390 = (((wurst_stack_depth_390 - 1) - 1) - 1); }