eo icon indicating copy to clipboard operation
eo copied to clipboard

0+1=0

Open dours opened this issue 3 years ago • 2 comments

This fails

[] > infinite-loop
  cage > x
  cage > tmp
  [value] > pyint
    [y] > add
      pyint (value.plus (y.value)) > @
  seq > @
    x.write (pyint 0)
    tmp.write (x.add (pyint 1))
    tmp.value.eq 1

This one (without cage x) passes

[] > infinite-loop
  cage > tmp
  [value] > pyint
    [y] > add
      pyint (value.plus (y.value)) > @
  pyint 0 > x
  seq > @
    tmp.write (x.add (pyint 1))
    tmp.value.eq 1

This one (without cage tmp) passes as well

[] > infinite-loop
  cage > x
  [value] > pyint
    [y] > add
      pyint (value.plus (y.value)) > @
  seq > @
    x.write (pyint 0)
    (x.add (pyint 1)).value.eq 1

dours avatar Jul 25 '22 11:07 dours

@dours which version of EO do you use?

yegor256 avatar Jul 26 '22 05:07 yegor256

@yegor256 I checked yesterday on 0.25.2

dours avatar Jul 26 '22 08:07 dours

@Graur please, check this one

yegor256 avatar Sep 08 '22 15:09 yegor256