array C_nextFree206 integer C_firstFree103 integer C_maxIndex826 array C_typeId109 array SimpleFunc_nextFree198 integer SimpleFunc_firstFree207 integer SimpleFunc_maxIndex825 array SimpleFunc_typeId121 array C_y171 array this114 integer wurst_stack_depth339 array wurst_stack152 integer C_firstFree103 = 0 integer C_maxIndex826 = 0 integer SimpleFunc_firstFree207 = 0 integer SimpleFunc_maxIndex825 = 0 integer wurst_stack_depth339 = 0 function initGlobals315() { } function main440() { local integer c125 initGlobals315(); wurst_stack_152[wurst_stack_depth_339] = "when calling init_test in captureThis, line 1"; wurst_stack_depth_339 = (wurst_stack_depth_339 + 1); new_C156("when calling new_C in captureThis, line 15"); c_125 = new_C156("when calling new_C in captureThis, line 16"); C_y_171[c_125] = 4; wurst_stack_152[wurst_stack_depth_339] = "when calling foo in captureThis, line 18"; wurst_stack_depth_339 = (wurst_stack_depth_339 + 1); if (C_typeId_109[c_125] == 0) { if (c_125 == 0) { error153("Nullpointer exception when calling C.foo", "when calling error in captureThis, line 7"); } else { error153("Called C.foo on invalid object.", "when calling error in captureThis, line 7"); }; } else { }; C_foo782(c_125, "when calling foo in captureThis, line 7"); wurst_stack_depth_339 = ((wurst_stack_depth_339 - 1) - 1); } function config122() { } IS_NATIVE function testSuccess173() { } function C_foo782(integer this583, string __wurst_stackPos184) { local integer this207 wurst_stack_152[wurst_stack_depth_339] = __wurst_stackPos_184; wurst_stack_depth_339 = (wurst_stack_depth_339 + 1); wurst_stack_152[wurst_stack_depth_339] = "when calling alloc_SimpleFunc_bar_C_test in captureThis, line 8"; wurst_stack_depth_339 = (wurst_stack_depth_339 + 1); if (SimpleFunc_firstFree_207 == 0) { if (SimpleFunc_maxIndex_825 < 32768) { SimpleFunc_maxIndex_825 = (SimpleFunc_maxIndex_825 + 1); this_207 = SimpleFunc_maxIndex_825; SimpleFunc_typeId_121[this_207] = 3; } else { error153("Out of memory: Could not create SimpleFunc_bar_C_test.", "when calling error in captureThis, line 8"); this_207 = 0; }; } else { SimpleFunc_firstFree_207 = (SimpleFunc_firstFree_207 - 1); this_207 = SimpleFunc_nextFree_198[SimpleFunc_firstFree_207]; SimpleFunc_typeId_121[this_207] = 3; }; wurst_stack_depth_339 = (wurst_stack_depth_339 - 1); this_114[this_207] = this_583; wurst_stack_152[wurst_stack_depth_339] = "when calling bar in captureThis, line 8"; wurst_stack_depth_339 = (wurst_stack_depth_339 + 1); if (C_typeId_109[this_583] == 0) { if (this_583 == 0) { error153("Nullpointer exception when calling C.bar", "when calling error in captureThis, line 9"); } else { error153("Called C.bar on invalid object.", "when calling error in captureThis, line 9"); }; } else { }; wurst_stack_152[wurst_stack_depth_339] = "when calling bar in captureThis, line 9"; wurst_stack_depth_339 = (wurst_stack_depth_339 + 1); if (dispatch_SimpleFunc_test_SimpleFunc_apply521(this_207, "when calling apply in captureThis, line 10") == 7) { testSuccess173(); } else { }; wurst_stack_depth_339 = (((wurst_stack_depth_339 - 1) - 1) - 1); } function new_C156(string __wurst_stackPos860) returns integer { local integer this172 wurst_stack_152[wurst_stack_depth_339] = __wurst_stackPos_860; wurst_stack_depth_339 = (wurst_stack_depth_339 + 1); wurst_stack_152[wurst_stack_depth_339] = "when calling alloc_C in captureThis, line 5"; wurst_stack_depth_339 = (wurst_stack_depth_339 + 1); if (C_firstFree_103 == 0) { if (C_maxIndex_826 < 32768) { C_maxIndex_826 = (C_maxIndex_826 + 1); this_172 = C_maxIndex_826; C_typeId_109[this_172] = 1; } else { error153("Out of memory: Could not create C.", "when calling error in captureThis, line 5"); this_172 = 0; }; } else { C_firstFree_103 = (C_firstFree_103 - 1); this_172 = C_nextFree_206[C_firstFree_103]; C_typeId_109[this_172] = 1; }; wurst_stack_depth_339 = ((wurst_stack_depth_339 - 1) - 1); return this_172; } function error153(string msg103, string __wurst_stackPos484) { local integer stacktraceIndex158 local integer stacktraceLimit636 wurst_stack_152[wurst_stack_depth_339] = __wurst_stackPos_484; wurst_stack_depth_339 = (wurst_stack_depth_339 + 1); __wurst_stackPos_484 = ""; stacktraceIndex_158 = wurst_stack_depth_339; stacktraceLimit_636 = 0; loop { stacktraceIndex_158 = (stacktraceIndex_158 - 1); stacktraceLimit_636 = (stacktraceLimit_636 + 1); exitwhen ((stacktraceLimit_636 > 20) or (stacktraceIndex_158 < 0)); __wurst_stackPos_484 = (__wurst_stackPos_484 + (" " + wurst_stack_152[stacktraceIndex_158])); }; $debugPrint169((msg_103 + (" " + __wurst_stackPos_484))); wurst_stack_depth_339 = (wurst_stack_depth_339 - 1); } function dispatch_SimpleFunc_test_SimpleFunc_apply521(integer this138, string __wurst_stackPos192) returns integer { local integer this713 wurst_stack_152[wurst_stack_depth_339] = __wurst_stackPos_192; wurst_stack_depth_339 = (wurst_stack_depth_339 + 1); if (SimpleFunc_typeId_121[this_138] == 0) { if (this_138 == 0) { error153("Nullpointer exception when calling SimpleFunc.apply", "when calling error in captureThis, line 4"); } else { error153("Called SimpleFunc.apply on invalid object.", "when calling error in captureThis, line 4"); }; } else { }; wurst_stack_152[wurst_stack_depth_339] = "when calling apply_bar_C_test in captureThis, line 4"; wurst_stack_depth_339 = (wurst_stack_depth_339 + 1); this_713 = this_114[this_138]; wurst_stack_152[wurst_stack_depth_339] = "when calling x in captureThis, line 8"; wurst_stack_depth_339 = (wurst_stack_depth_339 + 1); if (C_typeId_109[this_713] == 0) { if (this_713 == 0) { error153("Nullpointer exception when calling C.x", "when calling error in captureThis, line 12"); } else { error153("Called C.x on invalid object.", "when calling error in captureThis, line 12"); }; } else { }; wurst_stack_depth_339 = (wurst_stack_depth_339 - 1); this_138 = (3 + C_y_171[this_114[this_138]]); wurst_stack_depth_339 = ((wurst_stack_depth_339 - 1) - 1); return this_138; }