array C_nextFree388 integer C_firstFree292 integer C_maxIndex151 array C_typeId686 array SimpleFunc_nextFree112 integer SimpleFunc_firstFree151 integer SimpleFunc_maxIndex175 array SimpleFunc_typeId101 array C_y128 array this384 integer wurst_stack_depth929 array wurst_stack170 integer C_firstFree292 = 0 integer C_maxIndex151 = 0 integer SimpleFunc_firstFree151 = 0 integer SimpleFunc_maxIndex175 = 0 integer wurst_stack_depth929 = 0 function initGlobals664() { } function main520() { local integer c573 initGlobals664(); wurst_stack_170[wurst_stack_depth_929] = "when calling init_test in captureThis, line 1"; wurst_stack_depth_929 = (wurst_stack_depth_929 + 1); new_C870("when calling new_C in captureThis, line 15"); c_573 = new_C870("when calling new_C in captureThis, line 16"); C_y_128[c_573] = 4; wurst_stack_170[wurst_stack_depth_929] = "when calling foo in captureThis, line 18"; wurst_stack_depth_929 = (wurst_stack_depth_929 + 1); if (C_typeId_686[c_573] == 0) { if (c_573 == 0) { error110("Nullpointer exception when calling C.foo", "when calling error in captureThis, line 7"); } else { error110("Called C.foo on invalid object.", "when calling error in captureThis, line 7"); }; } else { }; C_foo231(c_573, "when calling foo in captureThis, line 7"); wurst_stack_depth_929 = ((wurst_stack_depth_929 - 1) - 1); } function config164() { } IS_NATIVE function testSuccess154() { } function C_foo231(integer this152, string __wurst_stackPos526) { local integer this130 wurst_stack_170[wurst_stack_depth_929] = __wurst_stackPos_526; wurst_stack_depth_929 = (wurst_stack_depth_929 + 1); wurst_stack_170[wurst_stack_depth_929] = "when calling alloc_SimpleFunc_bar_C_test in captureThis, line 8"; wurst_stack_depth_929 = (wurst_stack_depth_929 + 1); if (SimpleFunc_firstFree_151 == 0) { if (SimpleFunc_maxIndex_175 < 32768) { SimpleFunc_maxIndex_175 = (SimpleFunc_maxIndex_175 + 1); this_130 = SimpleFunc_maxIndex_175; SimpleFunc_typeId_101[this_130] = 3; } else { error110("Out of memory: Could not create SimpleFunc_bar_C_test.", "when calling error in captureThis, line 8"); this_130 = 0; }; } else { SimpleFunc_firstFree_151 = (SimpleFunc_firstFree_151 - 1); this_130 = SimpleFunc_nextFree_112[SimpleFunc_firstFree_151]; SimpleFunc_typeId_101[this_130] = 3; }; wurst_stack_depth_929 = (wurst_stack_depth_929 - 1); this_384[this_130] = this_152; wurst_stack_170[wurst_stack_depth_929] = "when calling bar in captureThis, line 8"; wurst_stack_depth_929 = (wurst_stack_depth_929 + 1); if (C_typeId_686[this_152] == 0) { if (this_152 == 0) { error110("Nullpointer exception when calling C.bar", "when calling error in captureThis, line 9"); } else { error110("Called C.bar on invalid object.", "when calling error in captureThis, line 9"); }; } else { }; wurst_stack_170[wurst_stack_depth_929] = "when calling bar in captureThis, line 9"; wurst_stack_depth_929 = (wurst_stack_depth_929 + 1); if (dispatch_SimpleFunc_test_SimpleFunc_apply149(this_130, "when calling apply in captureThis, line 10") == 7) { testSuccess154(); } else { }; wurst_stack_depth_929 = (((wurst_stack_depth_929 - 1) - 1) - 1); } function new_C870(string __wurst_stackPos163) returns integer { local integer this532 wurst_stack_170[wurst_stack_depth_929] = __wurst_stackPos_163; wurst_stack_depth_929 = (wurst_stack_depth_929 + 1); wurst_stack_170[wurst_stack_depth_929] = "when calling alloc_C in captureThis, line 5"; wurst_stack_depth_929 = (wurst_stack_depth_929 + 1); if (C_firstFree_292 == 0) { if (C_maxIndex_151 < 32768) { C_maxIndex_151 = (C_maxIndex_151 + 1); this_532 = C_maxIndex_151; C_typeId_686[this_532] = 1; } else { error110("Out of memory: Could not create C.", "when calling error in captureThis, line 5"); this_532 = 0; }; } else { C_firstFree_292 = (C_firstFree_292 - 1); this_532 = C_nextFree_388[C_firstFree_292]; C_typeId_686[this_532] = 1; }; wurst_stack_depth_929 = ((wurst_stack_depth_929 - 1) - 1); return this_532; } function error110(string msg293, string __wurst_stackPos974) { local integer stacktraceIndex133 local integer stacktraceLimit182 wurst_stack_170[wurst_stack_depth_929] = __wurst_stackPos_974; wurst_stack_depth_929 = (wurst_stack_depth_929 + 1); __wurst_stackPos_974 = ""; stacktraceIndex_133 = wurst_stack_depth_929; stacktraceLimit_182 = 0; loop { stacktraceIndex_133 = (stacktraceIndex_133 - 1); stacktraceLimit_182 = (stacktraceLimit_182 + 1); exitwhen ((stacktraceLimit_182 > 20) or (stacktraceIndex_133 < 0)); __wurst_stackPos_974 = (__wurst_stackPos_974 + (" " + wurst_stack_170[stacktraceIndex_133])); }; $debugPrint146((msg_293 + (" " + __wurst_stackPos_974))); wurst_stack_depth_929 = (wurst_stack_depth_929 - 1); } function dispatch_SimpleFunc_test_SimpleFunc_apply149(integer this109, string __wurst_stackPos420) returns integer { local integer this173 wurst_stack_170[wurst_stack_depth_929] = __wurst_stackPos_420; wurst_stack_depth_929 = (wurst_stack_depth_929 + 1); if (SimpleFunc_typeId_101[this_109] == 0) { if (this_109 == 0) { error110("Nullpointer exception when calling SimpleFunc.apply", "when calling error in captureThis, line 4"); } else { error110("Called SimpleFunc.apply on invalid object.", "when calling error in captureThis, line 4"); }; } else { }; wurst_stack_170[wurst_stack_depth_929] = "when calling apply_bar_C_test in captureThis, line 4"; wurst_stack_depth_929 = (wurst_stack_depth_929 + 1); this_173 = this_384[this_109]; wurst_stack_170[wurst_stack_depth_929] = "when calling x in captureThis, line 8"; wurst_stack_depth_929 = (wurst_stack_depth_929 + 1); if (C_typeId_686[this_173] == 0) { if (this_173 == 0) { error110("Nullpointer exception when calling C.x", "when calling error in captureThis, line 12"); } else { error110("Called C.x on invalid object.", "when calling error in captureThis, line 12"); }; } else { }; wurst_stack_depth_929 = (wurst_stack_depth_929 - 1); this_109 = (3 + C_y_128[this_384[this_109]]); wurst_stack_depth_929 = ((wurst_stack_depth_929 - 1) - 1); return this_109; }