Consider the following functions $f$ and $g$.
f(){
x = x-50;
y = y+50;
}
|
g( ) {
a = a+x;
a = a+y;
}
|
Suppose we start with initial values of $100$ for $x, 200$ for $y$, and $0$ for $a$, and then execute $f$ and $g$ in parallel - that is, at each step we either execute one statement from $f$ or one statement from $g$. Which of the following is not a possible final value of $a$?
- $300$
- $250$
- $350$
- $200$