Hi,<div><br></div><div>I am trying to do fold of results in swift, and I see some very weird results/errors.</div><div><br></div><div>Here's my code : <a href="https://github.com/yadudoc/swift-basics/blob/master/stress/patterns/x_treefold.swift">https://github.com/yadudoc/swift-basics/blob/master/stress/patterns/x_treefold.swift</a></div>

<div>I've also attached it, in case that's easier.</div><div><br></div><div>On 0.93, Here's a clip of the output showing that integer equality is failing</div><div><div>Start, Mid : (0, 1)  Mid+1, End : (2, 2) </div>

<div>Equal start != mid  0 : 1 </div><div>Equal mid+1 == end </div><div>Equal start != mid  3 : 3        <--- This should'nt happen ?</div><div>Equal start != mid  4 : 4        <--- This should'nt happen ?         </div>

<div>Start, Mid : (3, 3)  Mid+1, End : (4, 4) </div><div>Equal start != mid  3 : 3         <--- This should'nt happen ?</div></div><div><br></div><div>On 0.94, I get an runtime error :</div><div><div>Execution failed:</div>

<div><span class="Apple-tab-span" style="white-space:pre">      </span>Equal start != mid  0 : 2 </div><div>Equal start != mid  3 : 4 </div><div>Internal type error. Expected a Integer. Got null</div></div><div><br></div><div>

On Swift-faster, The code does not get past compilation as a circular dependency </div><div>is detected. Do we not support recursion on swift-faster branch ?</div><div><br></div><div><div>org.griphyn.vdl.karajan.CompilationException: Circular procedure dependency detected</div>

<div><span class="Apple-tab-span" style="white-space:pre">      </span>at org.griphyn.vdl.engine.Karajan.visit(Karajan.java:308)</div><div><span class="Apple-tab-span" style="white-space:pre">    </span>at org.griphyn.vdl.engine.Karajan.visit(Karajan.java:320)</div>

<div><span class="Apple-tab-span" style="white-space:pre">      </span>at org.griphyn.vdl.engine.Karajan.processProcedures(Karajan.java:296)</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>at org.griphyn.vdl.engine.Karajan.program(Karajan.java:358)</div>

<div><span class="Apple-tab-span" style="white-space:pre">      </span>at org.griphyn.vdl.engine.Karajan.compile(Karajan.java:138)</div><div><span class="Apple-tab-span" style="white-space:pre">  </span>at org.griphyn.vdl.karajan.Loader.compile(Loader.java:340)</div>

<div><span class="Apple-tab-span" style="white-space:pre">      </span>at org.griphyn.vdl.karajan.Loader.main(Loader.java:165)</div><div>Could not start execution:</div><div><span class="Apple-tab-span" style="white-space:pre">     </span>org.griphyn.vdl.karajan.CompilationException: Circular procedure dependency detected</div>

</div><div><br></div><div>I would really appreciate help in understanding what is going on here.</div><div><div><br></div>-- <br>Thanks and Regards,<br>Yadu Nand B<br>
</div>