heptagon/test/good/memalloc_clocks.ept
Cédric Pasteur 8815a2cd03 Better handling of clocks in memalloc
- We can do a better allocation if we take into
account 'when' in extvalues 
(test/good/memalloc_clocks.ept shows the
improvement)
- Fixed a bug with memalloc on records: if we 
translate:
o = { a with .f = u }
to
o = a; o.f = u
then we cannot share u and o.f
2012-06-20 09:17:13 +02:00

6 lines
142 B
Plaintext

node f(c:bool) = (o:int)
var last t:int^100 = 1^100;
let
t = merge c ((last t) when c) ([((last t) whenot c) with [0] = 0]);
o = t[0];
tel