array C_nextFree582 integer C_firstFree161 integer C_maxIndex167 array C_typeId181 array SimpleFunc_nextFree128 integer SimpleFunc_firstFree148 integer SimpleFunc_maxIndex575 array SimpleFunc_typeId126 array C_y274 array this206 integer wurst_stack_depth208 array wurst_stack137 integer C_firstFree161 = 0 integer C_maxIndex167 = 0 integer SimpleFunc_firstFree148 = 0 integer SimpleFunc_maxIndex575 = 0 integer wurst_stack_depth208 = 0 function initGlobals151() { } function main639() { local integer c191 initGlobals151(); wurst_stack_137[wurst_stack_depth_208] = "when calling init_test in captureThis2, line 1"; wurst_stack_depth_208 = (wurst_stack_depth_208 + 1); new_C963("when calling new_C in captureThis2, line 15"); c_191 = new_C963("when calling new_C in captureThis2, line 16"); C_y_274[c_191] = 4; wurst_stack_137[wurst_stack_depth_208] = "when calling foo in captureThis2, line 18"; wurst_stack_depth_208 = (wurst_stack_depth_208 + 1); if (C_typeId_181[c_191] == 0) { if (c_191 == 0) { error175("Nullpointer exception when calling C.foo", "when calling error in captureThis2, line 7"); } else { error175("Called C.foo on invalid object.", "when calling error in captureThis2, line 7"); }; } else { }; C_foo469(c_191, "when calling foo in captureThis2, line 7"); wurst_stack_depth_208 = ((wurst_stack_depth_208 - 1) - 1); } function config160() { } IS_NATIVE function testSuccess184() { } function C_foo469(integer this100, string __wurst_stackPos190) { local integer this126 wurst_stack_137[wurst_stack_depth_208] = __wurst_stackPos_190; wurst_stack_depth_208 = (wurst_stack_depth_208 + 1); wurst_stack_137[wurst_stack_depth_208] = "when calling alloc_SimpleFunc_bar_C_test in captureThis2, line 8"; wurst_stack_depth_208 = (wurst_stack_depth_208 + 1); if (SimpleFunc_firstFree_148 == 0) { if (SimpleFunc_maxIndex_575 < 32768) { SimpleFunc_maxIndex_575 = (SimpleFunc_maxIndex_575 + 1); this_126 = SimpleFunc_maxIndex_575; SimpleFunc_typeId_126[this_126] = 3; } else { error175("Out of memory: Could not create SimpleFunc_bar_C_test.", "when calling error in captureThis2, line 8"); this_126 = 0; }; } else { SimpleFunc_firstFree_148 = (SimpleFunc_firstFree_148 - 1); this_126 = SimpleFunc_nextFree_128[SimpleFunc_firstFree_148]; SimpleFunc_typeId_126[this_126] = 3; }; wurst_stack_depth_208 = (wurst_stack_depth_208 - 1); this_206[this_126] = this_100; wurst_stack_137[wurst_stack_depth_208] = "when calling bar in captureThis2, line 8"; wurst_stack_depth_208 = (wurst_stack_depth_208 + 1); if (C_typeId_181[this_100] == 0) { if (this_100 == 0) { error175("Nullpointer exception when calling C.bar", "when calling error in captureThis2, line 9"); } else { error175("Called C.bar on invalid object.", "when calling error in captureThis2, line 9"); }; } else { }; wurst_stack_137[wurst_stack_depth_208] = "when calling bar in captureThis2, line 9"; wurst_stack_depth_208 = (wurst_stack_depth_208 + 1); if (dispatch_SimpleFunc_test_SimpleFunc_apply771(this_126, "when calling apply in captureThis2, line 10") == 7) { testSuccess184(); } else { }; wurst_stack_depth_208 = (((wurst_stack_depth_208 - 1) - 1) - 1); } function new_C963(string __wurst_stackPos529) returns integer { local integer this183 wurst_stack_137[wurst_stack_depth_208] = __wurst_stackPos_529; wurst_stack_depth_208 = (wurst_stack_depth_208 + 1); wurst_stack_137[wurst_stack_depth_208] = "when calling alloc_C in captureThis2, line 5"; wurst_stack_depth_208 = (wurst_stack_depth_208 + 1); if (C_firstFree_161 == 0) { if (C_maxIndex_167 < 32768) { C_maxIndex_167 = (C_maxIndex_167 + 1); this_183 = C_maxIndex_167; C_typeId_181[this_183] = 1; } else { error175("Out of memory: Could not create C.", "when calling error in captureThis2, line 5"); this_183 = 0; }; } else { C_firstFree_161 = (C_firstFree_161 - 1); this_183 = C_nextFree_582[C_firstFree_161]; C_typeId_181[this_183] = 1; }; wurst_stack_depth_208 = ((wurst_stack_depth_208 - 1) - 1); return this_183; } function error175(string msg518, string __wurst_stackPos105) { local integer stacktraceIndex211 local integer stacktraceLimit512 wurst_stack_137[wurst_stack_depth_208] = __wurst_stackPos_105; wurst_stack_depth_208 = (wurst_stack_depth_208 + 1); __wurst_stackPos_105 = ""; stacktraceIndex_211 = wurst_stack_depth_208; stacktraceLimit_512 = 0; loop { stacktraceIndex_211 = (stacktraceIndex_211 - 1); stacktraceLimit_512 = (stacktraceLimit_512 + 1); exitwhen ((stacktraceLimit_512 > 20) or (stacktraceIndex_211 < 0)); __wurst_stackPos_105 = (__wurst_stackPos_105 + (" " + wurst_stack_137[stacktraceIndex_211])); }; $debugPrint152((msg_518 + (" " + __wurst_stackPos_105))); wurst_stack_depth_208 = (wurst_stack_depth_208 - 1); } function dispatch_SimpleFunc_test_SimpleFunc_apply771(integer this840, string __wurst_stackPos999) returns integer { local integer this999 wurst_stack_137[wurst_stack_depth_208] = __wurst_stackPos_999; wurst_stack_depth_208 = (wurst_stack_depth_208 + 1); if (SimpleFunc_typeId_126[this_840] == 0) { if (this_840 == 0) { error175("Nullpointer exception when calling SimpleFunc.apply", "when calling error in captureThis2, line 4"); } else { error175("Called SimpleFunc.apply on invalid object.", "when calling error in captureThis2, line 4"); }; } else { }; wurst_stack_137[wurst_stack_depth_208] = "when calling apply_bar_C_test in captureThis2, line 4"; wurst_stack_depth_208 = (wurst_stack_depth_208 + 1); this_999 = this_206[this_840]; wurst_stack_137[wurst_stack_depth_208] = "when calling x in captureThis2, line 8"; wurst_stack_depth_208 = (wurst_stack_depth_208 + 1); if (C_typeId_181[this_999] == 0) { if (this_999 == 0) { error175("Nullpointer exception when calling C.x", "when calling error in captureThis2, line 12"); } else { error175("Called C.x on invalid object.", "when calling error in captureThis2, line 12"); }; } else { }; wurst_stack_depth_208 = (wurst_stack_depth_208 - 1); this_840 = (3 + C_y_274[this_206[this_840]]); wurst_stack_depth_208 = ((wurst_stack_depth_208 - 1) - 1); return this_840; }