array A_nextFree210 integer A_firstFree113 integer A_maxIndex172 array A_typeId804 array A_pos_x169 integer wurst_stack_depth623 array wurst_stack107 integer A_firstFree113 = 0 integer A_maxIndex172 = 0 integer wurst_stack_depth623 = 0 function initGlobals156() { } function main142() { initGlobals156(); init_test133("when calling init_test in inClass, line 1"); } function config852() { } function init_test133(string __wurst_stackPos137) { local integer a685 wurst_stack_107[wurst_stack_depth_623] = __wurst_stackPos_137; wurst_stack_depth_623 = (wurst_stack_depth_623 + 1); a_685 = new_A270("when calling new_A in inClass, line 11"); wurst_stack_107[wurst_stack_depth_623] = "when calling foo in inClass, line 12"; wurst_stack_depth_623 = (wurst_stack_depth_623 + 1); if (A_typeId_804[a_685] == 0) { if (a_685 == 0) { error325("Nullpointer exception when calling A.foo", "when calling error in inClass, line 8"); } else { error325("Called A.foo on invalid object.", "when calling error in inClass, line 8"); }; } else { }; A_pos_x_169[a_685] = 3.; wurst_stack_depth_623 = (wurst_stack_depth_623 - 1); if (A_pos_x_169[a_685] == 3.) { testSuccess125(); } else { }; wurst_stack_depth_623 = (wurst_stack_depth_623 - 1); } IS_NATIVE function testSuccess125() { } function new_A270(string __wurst_stackPos279) returns integer { local integer this910 wurst_stack_107[wurst_stack_depth_623] = __wurst_stackPos_279; wurst_stack_depth_623 = (wurst_stack_depth_623 + 1); wurst_stack_107[wurst_stack_depth_623] = "when calling alloc_A in inClass, line 6"; wurst_stack_depth_623 = (wurst_stack_depth_623 + 1); if (A_firstFree_113 == 0) { if (A_maxIndex_172 < 32768) { A_maxIndex_172 = (A_maxIndex_172 + 1); this_910 = A_maxIndex_172; A_typeId_804[this_910] = 1; } else { error325("Out of memory: Could not create A.", "when calling error in inClass, line 4"); this_910 = 0; }; } else { A_firstFree_113 = (A_firstFree_113 - 1); this_910 = A_nextFree_210[A_firstFree_113]; A_typeId_804[this_910] = 1; }; wurst_stack_depth_623 = (wurst_stack_depth_623 - 1); A_pos_x_169[this_910] = 1.; wurst_stack_depth_623 = (wurst_stack_depth_623 - 1); return this_910; } function error325(string msg318, string __wurst_stackPos111) { local integer stacktraceIndex695 local integer stacktraceLimit148 wurst_stack_107[wurst_stack_depth_623] = __wurst_stackPos_111; wurst_stack_depth_623 = (wurst_stack_depth_623 + 1); __wurst_stackPos_111 = ""; stacktraceIndex_695 = wurst_stack_depth_623; stacktraceLimit_148 = 0; loop { stacktraceIndex_695 = (stacktraceIndex_695 - 1); stacktraceLimit_148 = (stacktraceLimit_148 + 1); exitwhen ((stacktraceLimit_148 > 20) or (stacktraceIndex_695 < 0)); __wurst_stackPos_111 = (__wurst_stackPos_111 + (" " + wurst_stack_107[stacktraceIndex_695])); }; $debugPrint744((msg_318 + (" " + __wurst_stackPos_111))); wurst_stack_depth_623 = (wurst_stack_depth_623 - 1); }