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