array Cell_nextFree850 integer Cell_firstFree178 integer Cell_maxIndex161 array Cell_typeId161 array Cell_elem198 integer wurst_stack_depth876 array wurst_stack184 integer Cell_firstFree178 = 0 integer Cell_maxIndex161 = 0 integer wurst_stack_depth876 = 0 function initGlobals180() { } function main205() { initGlobals180(); init_test148("when calling init_test in implicitConversions2, line 1"); } function config783() { } function init_test148(string __wurst_stackPos875) { local integer c131 local any test_Cell_get_result117 wurst_stack_184[wurst_stack_depth_876] = __wurst_stackPos_875; wurst_stack_depth_876 = (wurst_stack_depth_876 + 1); c_131 = new_Cell104("when calling new_Cell in implicitConversions2, line 16"); wurst_stack_184[wurst_stack_depth_876] = "when calling set in implicitConversions2, line 17"; wurst_stack_depth_876 = (wurst_stack_depth_876 + 1); if (Cell_typeId_161[c_131] == 0) { if (c_131 == 0) { error195("Nullpointer exception when calling Cell.set", "when calling error in implicitConversions2, line 5"); } else { error195("Called Cell.set on invalid object.", "when calling error in implicitConversions2, line 5"); }; } else { }; Cell_elem_198[c_131] = 5; wurst_stack_depth_876 = (wurst_stack_depth_876 - 1); wurst_stack_184[wurst_stack_depth_876] = "when calling get in implicitConversions2, line 18"; wurst_stack_depth_876 = (wurst_stack_depth_876 + 1); if (Cell_typeId_161[c_131] == 0) { if (c_131 == 0) { error195("Nullpointer exception when calling Cell.get", "when calling error in implicitConversions2, line 7"); } else { error195("Called Cell.get on invalid object.", "when calling error in implicitConversions2, line 7"); }; } else { }; test_Cell_get_result_117 = Cell_elem_198[c_131]; wurst_stack_depth_876 = (wurst_stack_depth_876 - 1); wurst_stack_184[wurst_stack_depth_876] = "when calling set in implicitConversions2, line 18"; wurst_stack_depth_876 = (wurst_stack_depth_876 + 1); if (Cell_typeId_161[c_131] == 0) { if (c_131 == 0) { error195("Nullpointer exception when calling Cell.set", "when calling error in implicitConversions2, line 5"); } else { error195("Called Cell.set on invalid object.", "when calling error in implicitConversions2, line 5"); }; } else { }; Cell_elem_198[c_131] = test_Cell_get_result_117; wurst_stack_depth_876 = (wurst_stack_depth_876 - 1); wurst_stack_184[wurst_stack_depth_876] = "when calling get in implicitConversions2, line 19"; wurst_stack_depth_876 = (wurst_stack_depth_876 + 1); if (Cell_typeId_161[c_131] == 0) { if (c_131 == 0) { error195("Nullpointer exception when calling Cell.get", "when calling error in implicitConversions2, line 7"); } else { error195("Called Cell.get on invalid object.", "when calling error in implicitConversions2, line 7"); }; } else { }; test_Cell_get_result_117 = Cell_elem_198[c_131]; wurst_stack_depth_876 = (wurst_stack_depth_876 - 1); if (test_Cell_get_result_117 == 5) { testSuccess119(); } else { }; wurst_stack_depth_876 = (wurst_stack_depth_876 - 1); } IS_NATIVE function testSuccess119() { } function new_Cell104(string __wurst_stackPos997) returns integer { local integer this940 wurst_stack_184[wurst_stack_depth_876] = __wurst_stackPos_997; wurst_stack_depth_876 = (wurst_stack_depth_876 + 1); wurst_stack_184[wurst_stack_depth_876] = "when calling alloc_Cell in implicitConversions2, line 3"; wurst_stack_depth_876 = (wurst_stack_depth_876 + 1); if (Cell_firstFree_178 == 0) { if (Cell_maxIndex_161 < 32768) { Cell_maxIndex_161 = (Cell_maxIndex_161 + 1); this_940 = Cell_maxIndex_161; Cell_typeId_161[this_940] = 1; } else { error195("Out of memory: Could not create Cell.", "when calling error in implicitConversions2, line 3"); this_940 = 0; }; } else { Cell_firstFree_178 = (Cell_firstFree_178 - 1); this_940 = Cell_nextFree_850[Cell_firstFree_178]; Cell_typeId_161[this_940] = 1; }; wurst_stack_depth_876 = ((wurst_stack_depth_876 - 1) - 1); return this_940; } function error195(string msg101, string __wurst_stackPos459) { local integer stacktraceIndex309 local integer stacktraceLimit185 wurst_stack_184[wurst_stack_depth_876] = __wurst_stackPos_459; wurst_stack_depth_876 = (wurst_stack_depth_876 + 1); __wurst_stackPos_459 = ""; stacktraceIndex_309 = wurst_stack_depth_876; stacktraceLimit_185 = 0; loop { stacktraceIndex_309 = (stacktraceIndex_309 - 1); stacktraceLimit_185 = (stacktraceLimit_185 + 1); exitwhen ((stacktraceLimit_185 > 20) or (stacktraceIndex_309 < 0)); __wurst_stackPos_459 = (__wurst_stackPos_459 + (" " + wurst_stack_184[stacktraceIndex_309])); }; $debugPrint148((msg_101 + (" " + __wurst_stackPos_459))); wurst_stack_depth_876 = (wurst_stack_depth_876 - 1); }