array F_nextFree765 integer F_firstFree527 integer F_maxIndex656 array F_typeId168 array Cell_nextFree530 integer Cell_firstFree137 integer Cell_maxIndex161 array Cell_typeId201 array Cell_elem641 integer wurst_stack_depth186 array wurst_stack957 integer F_firstFree527 = 0 integer F_maxIndex656 = 0 integer Cell_firstFree137 = 0 integer Cell_maxIndex161 = 0 integer wurst_stack_depth186 = 0 function initGlobals174() { } function main212() { initGlobals174(); init_test406("when calling init_test in implicitConversions5, line 1"); } function config339() { } function init_test406(string __wurst_stackPos149) { local integer a273 local integer this180 local real this610 local any test_Cell_get_result184 wurst_stack_957[wurst_stack_depth_186] = __wurst_stackPos_149; wurst_stack_depth_186 = (wurst_stack_depth_186 + 1); a_273 = new_Cell330(5, "when calling new_Cell in implicitConversions5, line 26"); wurst_stack_957[wurst_stack_depth_186] = "when calling alloc_F_map_test in implicitConversions5, line 27"; wurst_stack_depth_186 = (wurst_stack_depth_186 + 1); if (F_firstFree_527 == 0) { if (F_maxIndex_656 < 32768) { F_maxIndex_656 = (F_maxIndex_656 + 1); this_180 = F_maxIndex_656; F_typeId_168[this_180] = 3; } else { error217("Out of memory: Could not create F_map_test.", "when calling error in implicitConversions5, line 27"); this_180 = 0; }; } else { F_firstFree_527 = (F_firstFree_527 - 1); this_180 = F_nextFree_765[F_firstFree_527]; F_typeId_168[this_180] = 3; }; wurst_stack_depth_186 = (wurst_stack_depth_186 - 1); wurst_stack_957[wurst_stack_depth_186] = "when calling map in implicitConversions5, line 27"; wurst_stack_depth_186 = (wurst_stack_depth_186 + 1); if (Cell_typeId_201[a_273] == 0) { if (a_273 == 0) { error217("Nullpointer exception when calling Cell.map", "when calling error in implicitConversions5, line 18"); } else { error217("Called Cell.map on invalid object.", "when calling error in implicitConversions5, line 18"); }; } else { }; a_273 = Cell_map452(a_273, this_180, "when calling map in implicitConversions5, line 18"); wurst_stack_depth_186 = (wurst_stack_depth_186 - 1); wurst_stack_957[wurst_stack_depth_186] = "when calling get in implicitConversions5, line 28"; wurst_stack_depth_186 = (wurst_stack_depth_186 + 1); if (Cell_typeId_201[a_273] == 0) { if (a_273 == 0) { error217("Nullpointer exception when calling Cell.get", "when calling error in implicitConversions5, line 16"); } else { error217("Called Cell.get on invalid object.", "when calling error in implicitConversions5, line 16"); }; } else { }; test_Cell_get_result_184 = Cell_elem_641[a_273]; wurst_stack_depth_186 = (wurst_stack_depth_186 - 1); this_610 = (test_Cell_get_result_184 / 1000.); if (this_610 == 50.) { testSuccess122(); } else { println597(R2S840(this_610)); }; wurst_stack_depth_186 = (wurst_stack_depth_186 - 1); } IS_NATIVE IS_EXTERN @extern function R2I200(real r297) returns integer { } IS_NATIVE function testSuccess122() { } IS_NATIVE IS_EXTERN @extern function R2S840(real r900) returns string { } IS_NATIVE function println597(string s185) { } function Cell_map452(integer this158, integer f969, string __wurst_stackPos835) returns integer { local any a212 wurst_stack_957[wurst_stack_depth_186] = __wurst_stackPos_835; wurst_stack_depth_186 = (wurst_stack_depth_186 + 1); a_212 = Cell_elem_641[this_158]; wurst_stack_957[wurst_stack_depth_186] = "when calling apply in implicitConversions5, line 19"; wurst_stack_depth_186 = (wurst_stack_depth_186 + 1); if (F_typeId_168[f_969] == 0) { if (f_969 == 0) { error217("Nullpointer exception when calling F.apply", "when calling error in implicitConversions5, line 11"); } else { error217("Called F.apply on invalid object.", "when calling error in implicitConversions5, line 11"); }; } else { }; a_212 = R2I200(((a_212 * 10.) * 1000.)); wurst_stack_depth_186 = (wurst_stack_depth_186 - 1); this_158 = new_Cell330(a_212, "when calling new_Cell in implicitConversions5, line 19"); wurst_stack_depth_186 = (wurst_stack_depth_186 - 1); return this_158; } function new_Cell330(any t964, string __wurst_stackPos193) returns integer { local integer this122 wurst_stack_957[wurst_stack_depth_186] = __wurst_stackPos_193; wurst_stack_depth_186 = (wurst_stack_depth_186 + 1); wurst_stack_957[wurst_stack_depth_186] = "when calling alloc_Cell in implicitConversions5, line 14"; wurst_stack_depth_186 = (wurst_stack_depth_186 + 1); if (Cell_firstFree_137 == 0) { if (Cell_maxIndex_161 < 32768) { Cell_maxIndex_161 = (Cell_maxIndex_161 + 1); this_122 = Cell_maxIndex_161; Cell_typeId_201[this_122] = 1; } else { error217("Out of memory: Could not create Cell.", "when calling error in implicitConversions5, line 12"); this_122 = 0; }; } else { Cell_firstFree_137 = (Cell_firstFree_137 - 1); this_122 = Cell_nextFree_530[Cell_firstFree_137]; Cell_typeId_201[this_122] = 1; }; wurst_stack_depth_186 = (wurst_stack_depth_186 - 1); Cell_elem_641[this_122] = t_964; wurst_stack_depth_186 = (wurst_stack_depth_186 - 1); return this_122; } function error217(string msg102, string __wurst_stackPos184) { local integer stacktraceIndex717 local integer stacktraceLimit878 wurst_stack_957[wurst_stack_depth_186] = __wurst_stackPos_184; wurst_stack_depth_186 = (wurst_stack_depth_186 + 1); __wurst_stackPos_184 = ""; stacktraceIndex_717 = wurst_stack_depth_186; stacktraceLimit_878 = 0; loop { stacktraceIndex_717 = (stacktraceIndex_717 - 1); stacktraceLimit_878 = (stacktraceLimit_878 + 1); exitwhen ((stacktraceLimit_878 > 20) or (stacktraceIndex_717 < 0)); __wurst_stackPos_184 = (__wurst_stackPos_184 + (" " + wurst_stack_957[stacktraceIndex_717])); }; $debugPrint580((msg_102 + (" " + __wurst_stackPos_184))); wurst_stack_depth_186 = (wurst_stack_depth_186 - 1); }