Proof: Pc 24
Let's prove the following theorem:
if the following are true:
    
    - instruction #6 is addi dst=2 src=3 imm=0
- the PC at time 24 = 6
then the PC at time 25 = 7
Instructions
        
    | Memory Cells | 
|---|
| Program Counter | Time | 
|---|---|
| 0 | 0 | 
  
  
LW Computer Simulator
Proof:
  
      
      Given
      
    
    
      
  
  
| 1 | instruction #6 is addi dst=2 src=3 imm=0 | 
|---|---|
| 2 | the PC at time 24 = 6 | 
| # | Claim | Reason | 
|---|---|---|
| 1 | the PC at time (24 + 1) = 6 + 1 | if instruction #6 is addi dst=2 src=3 imm=0and the PC at time 24 = 6, then the PC at time (24 + 1) = 6 + 1 | 
| 2 | 24 + 1 = 25 | 24 + 1 = 25 | 
| 3 | 6 + 1 = 7 | 6 + 1 = 7 | 
| 4 | the PC at time (24 + 1) = the PC at time 25 | if 24 + 1 = 25, then the PC at time (24 + 1) = the PC at time 25 | 
| 5 | the PC at time 25 = 7 | if the PC at time (24 + 1) = 6 + 1 and the PC at time (24 + 1) = the PC at time 25 and 6 + 1 = 7, then the PC at time 25 = 7 | 
Comments
Please log in to add comments