array C_nextFree100 integer C_firstFree157 integer C_maxIndex114 array C_typeId109 array SimpleFunc_nextFree142 integer SimpleFunc_firstFree925 integer SimpleFunc_maxIndex125 array SimpleFunc_typeId128 array C_y184 array this946 integer wurst_stack_depth201 array wurst_stack156 integer C_firstFree157 = 0 integer C_maxIndex114 = 0 integer SimpleFunc_firstFree925 = 0 integer SimpleFunc_maxIndex125 = 0 integer wurst_stack_depth201 = 0 function initGlobals226() { } function main152() { local integer c508 initGlobals226(); wurst_stack_156[wurst_stack_depth_201] = "when calling init_test in captureThis2, line 1"; wurst_stack_depth_201 = (wurst_stack_depth_201 + 1); new_C156("when calling new_C in captureThis2, line 15"); c_508 = new_C156("when calling new_C in captureThis2, line 16"); C_y_184[c_508] = 4; wurst_stack_156[wurst_stack_depth_201] = "when calling foo in captureThis2, line 18"; wurst_stack_depth_201 = (wurst_stack_depth_201 + 1); if (C_typeId_109[c_508] == 0) { if (c_508 == 0) { error149("Nullpointer exception when calling C.foo", "when calling error in captureThis2, line 7"); } else { error149("Called C.foo on invalid object.", "when calling error in captureThis2, line 7"); }; } else { }; C_foo111(c_508, "when calling foo in captureThis2, line 7"); wurst_stack_depth_201 = ((wurst_stack_depth_201 - 1) - 1); } function config211() { } IS_NATIVE function testSuccess127() { } function C_foo111(integer this759, string __wurst_stackPos207) { local integer this284 wurst_stack_156[wurst_stack_depth_201] = __wurst_stackPos_207; wurst_stack_depth_201 = (wurst_stack_depth_201 + 1); wurst_stack_156[wurst_stack_depth_201] = "when calling alloc_SimpleFunc_bar_C_test in captureThis2, line 8"; wurst_stack_depth_201 = (wurst_stack_depth_201 + 1); if (SimpleFunc_firstFree_925 == 0) { if (SimpleFunc_maxIndex_125 < 32768) { SimpleFunc_maxIndex_125 = (SimpleFunc_maxIndex_125 + 1); this_284 = SimpleFunc_maxIndex_125; SimpleFunc_typeId_128[this_284] = 3; } else { error149("Out of memory: Could not create SimpleFunc_bar_C_test.", "when calling error in captureThis2, line 8"); this_284 = 0; }; } else { SimpleFunc_firstFree_925 = (SimpleFunc_firstFree_925 - 1); this_284 = SimpleFunc_nextFree_142[SimpleFunc_firstFree_925]; SimpleFunc_typeId_128[this_284] = 3; }; wurst_stack_depth_201 = (wurst_stack_depth_201 - 1); this_946[this_284] = this_759; wurst_stack_156[wurst_stack_depth_201] = "when calling bar in captureThis2, line 8"; wurst_stack_depth_201 = (wurst_stack_depth_201 + 1); if (C_typeId_109[this_759] == 0) { if (this_759 == 0) { error149("Nullpointer exception when calling C.bar", "when calling error in captureThis2, line 9"); } else { error149("Called C.bar on invalid object.", "when calling error in captureThis2, line 9"); }; } else { }; wurst_stack_156[wurst_stack_depth_201] = "when calling bar in captureThis2, line 9"; wurst_stack_depth_201 = (wurst_stack_depth_201 + 1); if (dispatch_SimpleFunc_test_SimpleFunc_apply145(this_284, "when calling apply in captureThis2, line 10") == 7) { testSuccess127(); } else { }; wurst_stack_depth_201 = (((wurst_stack_depth_201 - 1) - 1) - 1); } function new_C156(string __wurst_stackPos373) returns integer { local integer this687 wurst_stack_156[wurst_stack_depth_201] = __wurst_stackPos_373; wurst_stack_depth_201 = (wurst_stack_depth_201 + 1); wurst_stack_156[wurst_stack_depth_201] = "when calling alloc_C in captureThis2, line 5"; wurst_stack_depth_201 = (wurst_stack_depth_201 + 1); if (C_firstFree_157 == 0) { if (C_maxIndex_114 < 32768) { C_maxIndex_114 = (C_maxIndex_114 + 1); this_687 = C_maxIndex_114; C_typeId_109[this_687] = 1; } else { error149("Out of memory: Could not create C.", "when calling error in captureThis2, line 5"); this_687 = 0; }; } else { C_firstFree_157 = (C_firstFree_157 - 1); this_687 = C_nextFree_100[C_firstFree_157]; C_typeId_109[this_687] = 1; }; wurst_stack_depth_201 = ((wurst_stack_depth_201 - 1) - 1); return this_687; } function error149(string msg203, string __wurst_stackPos203) { local integer stacktraceIndex841 local integer stacktraceLimit200 wurst_stack_156[wurst_stack_depth_201] = __wurst_stackPos_203; wurst_stack_depth_201 = (wurst_stack_depth_201 + 1); __wurst_stackPos_203 = ""; stacktraceIndex_841 = wurst_stack_depth_201; stacktraceLimit_200 = 0; loop { stacktraceIndex_841 = (stacktraceIndex_841 - 1); stacktraceLimit_200 = (stacktraceLimit_200 + 1); exitwhen ((stacktraceLimit_200 > 20) or (stacktraceIndex_841 < 0)); __wurst_stackPos_203 = (__wurst_stackPos_203 + (" " + wurst_stack_156[stacktraceIndex_841])); }; $debugPrint473((msg_203 + (" " + __wurst_stackPos_203))); wurst_stack_depth_201 = (wurst_stack_depth_201 - 1); } function dispatch_SimpleFunc_test_SimpleFunc_apply145(integer this144, string __wurst_stackPos207) returns integer { local integer this114 wurst_stack_156[wurst_stack_depth_201] = __wurst_stackPos_207; wurst_stack_depth_201 = (wurst_stack_depth_201 + 1); if (SimpleFunc_typeId_128[this_144] == 0) { if (this_144 == 0) { error149("Nullpointer exception when calling SimpleFunc.apply", "when calling error in captureThis2, line 4"); } else { error149("Called SimpleFunc.apply on invalid object.", "when calling error in captureThis2, line 4"); }; } else { }; wurst_stack_156[wurst_stack_depth_201] = "when calling apply_bar_C_test in captureThis2, line 4"; wurst_stack_depth_201 = (wurst_stack_depth_201 + 1); this_114 = this_946[this_144]; wurst_stack_156[wurst_stack_depth_201] = "when calling x in captureThis2, line 8"; wurst_stack_depth_201 = (wurst_stack_depth_201 + 1); if (C_typeId_109[this_114] == 0) { if (this_114 == 0) { error149("Nullpointer exception when calling C.x", "when calling error in captureThis2, line 12"); } else { error149("Called C.x on invalid object.", "when calling error in captureThis2, line 12"); }; } else { }; wurst_stack_depth_201 = (wurst_stack_depth_201 - 1); this_144 = (3 + C_y_184[this_946[this_144]]); wurst_stack_depth_201 = ((wurst_stack_depth_201 - 1) - 1); return this_144; }