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