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