[Swift-devel] Fold tests fail.

Yadu Nand yadudoc1729 at gmail.com
Thu Mar 7 05:44:13 CST 2013


Hi,

I am trying to do fold of results in swift, and I see some very weird
results/errors.

Here's my code :
https://github.com/yadudoc/swift-basics/blob/master/stress/patterns/x_treefold.swift
I've also attached it, in case that's easier.

On 0.93, Here's a clip of the output showing that integer equality is
failing
Start, Mid : (0, 1)  Mid+1, End : (2, 2)
Equal start != mid  0 : 1
Equal mid+1 == end
Equal start != mid  3 : 3        <--- This should'nt happen ?
Equal start != mid  4 : 4        <--- This should'nt happen ?
Start, Mid : (3, 3)  Mid+1, End : (4, 4)
Equal start != mid  3 : 3         <--- This should'nt happen ?

On 0.94, I get an runtime error :
Execution failed:
 Equal start != mid  0 : 2
Equal start != mid  3 : 4
Internal type error. Expected a Integer. Got null

On Swift-faster, The code does not get past compilation as a circular
dependency
is detected. Do we not support recursion on swift-faster branch ?

org.griphyn.vdl.karajan.CompilationException: Circular procedure dependency
detected
 at org.griphyn.vdl.engine.Karajan.visit(Karajan.java:308)
at org.griphyn.vdl.engine.Karajan.visit(Karajan.java:320)
 at org.griphyn.vdl.engine.Karajan.processProcedures(Karajan.java:296)
at org.griphyn.vdl.engine.Karajan.program(Karajan.java:358)
 at org.griphyn.vdl.engine.Karajan.compile(Karajan.java:138)
at org.griphyn.vdl.karajan.Loader.compile(Loader.java:340)
 at org.griphyn.vdl.karajan.Loader.main(Loader.java:165)
Could not start execution:
org.griphyn.vdl.karajan.CompilationException: Circular procedure dependency
detected

I would really appreciate help in understanding what is going on here.

-- 
Thanks and Regards,
Yadu Nand B
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/swift-devel/attachments/20130307/f319cf73/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: x_treefold.swift
Type: application/octet-stream
Size: 1357 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/swift-devel/attachments/20130307/f319cf73/attachment.obj>


More information about the Swift-devel mailing list