array FoldClosure_nextFree170 integer FoldClosure_firstFree142 integer FoldClosure_maxIndex517 array FoldClosure_typeId151 array Cell_nextFree213 integer Cell_firstFree116 integer Cell_maxIndex401 array Cell_typeId168 array Cell_elem925 integer wurst_stack_depth212 array wurst_stack118 integer FoldClosure_firstFree142 = 0 integer FoldClosure_maxIndex517 = 0 integer Cell_firstFree116 = 0 integer Cell_maxIndex401 = 0 integer wurst_stack_depth212 = 0 function initGlobals561() { } function main122() { initGlobals561(); init_test203("when calling init_test in implicitConversions3, line 1"); } function config581() { } function init_test203(string __wurst_stackPos876) { local integer c125 local integer this117 wurst_stack_118[wurst_stack_depth_212] = __wurst_stackPos_876; wurst_stack_depth_212 = (wurst_stack_depth_212 + 1); c_125 = new_Cell122("when calling new_Cell in implicitConversions3, line 20"); wurst_stack_118[wurst_stack_depth_212] = "when calling set in implicitConversions3, line 21"; wurst_stack_depth_212 = (wurst_stack_depth_212 + 1); if (Cell_typeId_168[c_125] == 0) { if (c_125 == 0) { error340("Nullpointer exception when calling Cell.set", "when calling error in implicitConversions3, line 7"); } else { error340("Called Cell.set on invalid object.", "when calling error in implicitConversions3, line 7"); }; } else { }; Cell_elem_925[c_125] = 5; wurst_stack_depth_212 = (wurst_stack_depth_212 - 1); wurst_stack_118[wurst_stack_depth_212] = "when calling alloc_FoldClosure_fold_test in implicitConversions3, line 22"; wurst_stack_depth_212 = (wurst_stack_depth_212 + 1); if (FoldClosure_firstFree_142 == 0) { if (FoldClosure_maxIndex_517 < 32768) { FoldClosure_maxIndex_517 = (FoldClosure_maxIndex_517 + 1); this_117 = FoldClosure_maxIndex_517; FoldClosure_typeId_151[this_117] = 3; } else { error340("Out of memory: Could not create FoldClosure_fold_test.", "when calling error in implicitConversions3, line 22"); this_117 = 0; }; } else { FoldClosure_firstFree_142 = (FoldClosure_firstFree_142 - 1); this_117 = FoldClosure_nextFree_170[FoldClosure_firstFree_142]; FoldClosure_typeId_151[this_117] = 3; }; wurst_stack_depth_212 = (wurst_stack_depth_212 - 1); if (dispatch_Cell_test_Cell_fold985(c_125, 2, this_117, "when calling fold in implicitConversions3, line 22") == 7) { testSuccess158(); } else { }; wurst_stack_depth_212 = (wurst_stack_depth_212 - 1); } IS_NATIVE function testSuccess158() { } function new_Cell122(string __wurst_stackPos165) returns integer { local integer this234 wurst_stack_118[wurst_stack_depth_212] = __wurst_stackPos_165; wurst_stack_depth_212 = (wurst_stack_depth_212 + 1); wurst_stack_118[wurst_stack_depth_212] = "when calling alloc_Cell in implicitConversions3, line 5"; wurst_stack_depth_212 = (wurst_stack_depth_212 + 1); if (Cell_firstFree_116 == 0) { if (Cell_maxIndex_401 < 32768) { Cell_maxIndex_401 = (Cell_maxIndex_401 + 1); this_234 = Cell_maxIndex_401; Cell_typeId_168[this_234] = 1; } else { error340("Out of memory: Could not create Cell.", "when calling error in implicitConversions3, line 5"); this_234 = 0; }; } else { Cell_firstFree_116 = (Cell_firstFree_116 - 1); this_234 = Cell_nextFree_213[Cell_firstFree_116]; Cell_typeId_168[this_234] = 1; }; wurst_stack_depth_212 = ((wurst_stack_depth_212 - 1) - 1); return this_234; } function error340(string msg174, string __wurst_stackPos261) { local integer stacktraceIndex206 local integer stacktraceLimit729 wurst_stack_118[wurst_stack_depth_212] = __wurst_stackPos_261; wurst_stack_depth_212 = (wurst_stack_depth_212 + 1); __wurst_stackPos_261 = ""; stacktraceIndex_206 = wurst_stack_depth_212; stacktraceLimit_729 = 0; loop { stacktraceIndex_206 = (stacktraceIndex_206 - 1); stacktraceLimit_729 = (stacktraceLimit_729 + 1); exitwhen ((stacktraceLimit_729 > 20) or (stacktraceIndex_206 < 0)); __wurst_stackPos_261 = (__wurst_stackPos_261 + (" " + wurst_stack_118[stacktraceIndex_206])); }; $debugPrint127((msg_174 + (" " + __wurst_stackPos_261))); wurst_stack_depth_212 = (wurst_stack_depth_212 - 1); } function dispatch_Cell_test_Cell_fold985(integer this463, any start209, integer f200, string __wurst_stackPos102) returns any { local any t334 wurst_stack_118[wurst_stack_depth_212] = __wurst_stackPos_102; wurst_stack_depth_212 = (wurst_stack_depth_212 + 1); if (Cell_typeId_168[this_463] == 0) { if (this_463 == 0) { error340("Nullpointer exception when calling Cell.fold", "when calling error in implicitConversions3, line 11"); } else { error340("Called Cell.fold on invalid object.", "when calling error in implicitConversions3, line 11"); }; } else { }; wurst_stack_118[wurst_stack_depth_212] = "when calling fold in implicitConversions3, line 11"; wurst_stack_depth_212 = (wurst_stack_depth_212 + 1); t_334 = Cell_elem_925[this_463]; wurst_stack_118[wurst_stack_depth_212] = "when calling apply in implicitConversions3, line 12"; wurst_stack_depth_212 = (wurst_stack_depth_212 + 1); if (FoldClosure_typeId_151[f_200] == 0) { if (f_200 == 0) { error340("Nullpointer exception when calling FoldClosure.apply", "when calling error in implicitConversions3, line 4"); } else { error340("Called FoldClosure.apply on invalid object.", "when calling error in implicitConversions3, line 4"); }; } else { }; start_209 = (t_334 + start_209); wurst_stack_depth_212 = (((wurst_stack_depth_212 - 1) - 1) - 1); return start_209; }