Proof: Pc 9
Let's prove the following theorem:
if the following are true:
- subtract immediate instruction with dst: 1 src: 1 and immediate: 1 at 15
- the PC at time 9 = 15
then the PC at time 10 = 16
Proof:
Given
1 | subtract immediate instruction with dst: 1 src: 1 and immediate: 1 at 15 |
---|---|
2 | the PC at time 9 = 15 |
# | Claim | Reason |
---|---|---|
1 | the PC at time (9 + 1) = 15 + 1 | if subtract immediate instruction with dst: 1 src: 1 and immediate: 1 at 15 and the PC at time 9 = 15, then the PC at time (9 + 1) = 15 + 1 |
2 | 9 + 1 = 10 | 9 + 1 = 10 |
3 | 15 + 1 = 16 | 15 + 1 = 16 |
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 = 16 | if the PC at time (9 + 1) = 15 + 1 and the PC at time (9 + 1) = the PC at time 10 and 15 + 1 = 16, then the PC at time 10 = 16 |
Comments
Please log in to add comments