Function instruction #i is jal imm=jump_to
the jump-and-link (jal) instruction saves the value of the program counter + 1 to the return register and sets the PC to jump_to
Format:
instruction #i is jal imm=jump_to
Input:
number i -
number jump_to -
Output:
boolean - None
Conditional properties that reference this function:
if the following are true:
- instruction #i is a JAL instruction with jump to: jump_to
- the PC at time t = i
then the PC at time (t + 1) = jump_to
(link)if the following are true:
- instruction #i is a JAL instruction with jump to: jump_to
- the PC at time t = i
- not (x = 2)
then value of cell x at time (t + 1) = value of cell x at time t
(link)if the following are true:
- instruction #i is a JAL instruction with jump to: jump_to
- the PC at time t = i
then value of cell 2 at time (t + 1) = i + 1
(link)
Comments
Please log in to add comments