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