Proof: Pc 7

Let's prove the following theorem:

if the following are true:
  • instruction #13 is store src=3 addr=1 imm=0
  • the PC at time 7 = 13

then the PC at time 8 = 14

Proof:

View as a tree | View dependent proofs | Try proving it

Given
1 instruction #13 is store src=3 addr=1 imm=0
2 the PC at time 7 = 13
Proof Table
# Claim Reason
1 the PC at time (7 + 1) = 13 + 1 if instruction #13 is store src=3 addr=1 imm=0 and the PC at time 7 = 13, then the PC at time (7 + 1) = 13 + 1
2 7 + 1 = 8 7 + 1 = 8
3 13 + 1 = 14 13 + 1 = 14
4 the PC at time (7 + 1) = the PC at time 8 if 7 + 1 = 8, then the PC at time (7 + 1) = the PC at time 8
5 the PC at time 8 = 14 if the PC at time (7 + 1) = 13 + 1 and the PC at time (7 + 1) = the PC at time 8 and 13 + 1 = 14, then the PC at time 8 = 14

Comments

Please log in to add comments