Let sigma1 be the state {(x, 2), (y, 3)}. Is there a state sigma2 such that
sigma1 |- x = x + y ==> sigma2(that is, where the assignment x = x + y transforms state sigma1 to sigma2)? If so, write sigma2 explicitly as a set of pairs. {(x, 5), (y, 3)}
void p(int & x){
x = x + 1;
y = y + 2;
}
What is the value printed by the following fragment of code, given the above
declaration?
y = 1; p(y); cout << y;4