[Swift-devel] Fold tests fail.
Mihael Hategan
hategan at mcs.anl.gov
Fri Mar 8 13:02:38 CST 2013
I fixed the run-time errors in 0.94 and faster as well as the
compilation errors in faster.
There was an issue in 0.94 (and faster) related to the reference count
code that caused variables in else branches that are assigned from a
procedure call to be closed before they should have been (leading to
them having a value of null).
Mihael
On Thu, 2013-03-07 at 17:14 +0530, Yadu Nand wrote:
> 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.
>
> 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
>
> _______________________________________________
> Swift-devel mailing list
> Swift-devel at ci.uchicago.edu
> https://lists.ci.uchicago.edu/cgi-bin/mailman/listinfo/swift-devel
More information about the Swift-devel
mailing list