![Cédric Pasteur](/assets/img/avatar_default.png)
- 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
6 lines
142 B
Plaintext
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 |