Quiz (1 point)
Given that:
instruction #2 is
store src=5 addr=6 imm=2
the PC at time 2 = 2
value of cell 6 at time 2 = 7
value of cell 5 at time 2 = 20
Prove that:
value of cell 9 at time 3 = 20
The following properties may be helpful:
- 7 + 2 = 9
- 2 + 1 = 3
if the following are true:
- instruction #i is
store src=src addr=addr imm=imm
- the PC at time t = i
then value of cell ((value of cell addr at time t) + imm) at time (t + 1) = value of cell src at time t
- instruction #i is
if a = b, then a + c = b + c
if the following are true:
- a = b
- b = c
then a = c
if (value of cell 6 at time 2) + 2 = 9, then value of cell ((value of cell 6 at time 2) + 2) at time (2 + 1) = value of cell 9 at time (2 + 1)
if 2 + 1 = 3, then value of cell 9 at time (2 + 1) = value of cell 9 at time 3
if the following are true:
- a = b
- b = d
- a = c
then d = c
if the following are true:
- a = b
- b = c
then a = c
Please write your proof in the table below. Each row should contain one claim. The last claim is the statement that you are trying to prove.