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