On Wed, Jan 23, 2013 at 02:38:53AM +0100, Pietro Braione wrote:by transforming x++ in x = x + 1, etc.
CIL already does that for you automatically.
17. One of the most significant transformations is that expressions that
contain side-effects are separated into statements.
int x, f(int);
return (x ++ + f(x));
See the CIL output for this code fragment
#line 2 tmp = x; #line 2 x ++; //NONONO! #line 2 tmp___0 = f(x); #line 2 return (tmp + tmp___0);