vendredi 25 août 2017

Is this compiler transformation allowed?

Consider this code, where x and y are integers:

if (x)
    y = 42;

Is the following compiler transformation allowed ?

int tmp = y;
y = 42;

if (!x)
    y = tmp;

Aucun commentaire:

Enregistrer un commentaire