Proof: Pc 19
Let's prove the following theorem:
if the following are true:
- instruction #6 is
store src=3 addr=1 imm=0
- the PC at time 19 = 6
then the PC at time 20 = 7
Proof:
Given
1 | instruction #6 is store src=3 addr=1 imm=0 |
---|---|
2 | the PC at time 19 = 6 |
# | Claim | Reason |
---|---|---|
1 | the PC at time (19 + 1) = 6 + 1 | if instruction #6 is store src=3 addr=1 imm=0 and the PC at time 19 = 6, then the PC at time (19 + 1) = 6 + 1 |
2 | 19 + 1 = 20 | 19 + 1 = 20 |
3 | 6 + 1 = 7 | 6 + 1 = 7 |
4 | the PC at time (19 + 1) = the PC at time 20 | if 19 + 1 = 20, then the PC at time (19 + 1) = the PC at time 20 |
5 | the PC at time 20 = 7 | if the PC at time (19 + 1) = 6 + 1 and the PC at time (19 + 1) = the PC at time 20 and 6 + 1 = 7, then the PC at time 20 = 7 |
Comments
Please log in to add comments