Semantics of the shift instructions with the
Function:
(defun exec64-op-imms (funct rd rs1 imm stat) (declare (xargs :guard (and (op-imms-funct-p funct) (ubyte5p rd) (ubyte5p rs1) (ubyte6p imm) (state64p stat)))) (let ((__function__ 'exec64-op-imms)) (declare (ignorable __function__)) (op-imms-funct-case funct :slli (exec64-slli rd rs1 imm stat) :srli (exec64-srli rd rs1 imm stat) :srai (exec64-srai rd rs1 imm stat))))
Theorem:
(defthm state64p-of-exec64-op-imms (b* ((new-stat (exec64-op-imms funct rd rs1 imm stat))) (state64p new-stat)) :rule-classes :rewrite)
Theorem:
(defthm exec64-op-imms-of-op-imms-funct-fix-funct (equal (exec64-op-imms (op-imms-funct-fix funct) rd rs1 imm stat) (exec64-op-imms funct rd rs1 imm stat)))
Theorem:
(defthm exec64-op-imms-op-imms-funct-equiv-congruence-on-funct (implies (op-imms-funct-equiv funct funct-equiv) (equal (exec64-op-imms funct rd rs1 imm stat) (exec64-op-imms funct-equiv rd rs1 imm stat))) :rule-classes :congruence)
Theorem:
(defthm exec64-op-imms-of-ubyte5-fix-rd (equal (exec64-op-imms funct (ubyte5-fix rd) rs1 imm stat) (exec64-op-imms funct rd rs1 imm stat)))
Theorem:
(defthm exec64-op-imms-ubyte5-equiv-congruence-on-rd (implies (ubyte5-equiv rd rd-equiv) (equal (exec64-op-imms funct rd rs1 imm stat) (exec64-op-imms funct rd-equiv rs1 imm stat))) :rule-classes :congruence)
Theorem:
(defthm exec64-op-imms-of-ubyte5-fix-rs1 (equal (exec64-op-imms funct rd (ubyte5-fix rs1) imm stat) (exec64-op-imms funct rd rs1 imm stat)))
Theorem:
(defthm exec64-op-imms-ubyte5-equiv-congruence-on-rs1 (implies (ubyte5-equiv rs1 rs1-equiv) (equal (exec64-op-imms funct rd rs1 imm stat) (exec64-op-imms funct rd rs1-equiv imm stat))) :rule-classes :congruence)
Theorem:
(defthm exec64-op-imms-of-ubyte6-fix-imm (equal (exec64-op-imms funct rd rs1 (ubyte6-fix imm) stat) (exec64-op-imms funct rd rs1 imm stat)))
Theorem:
(defthm exec64-op-imms-ubyte6-equiv-congruence-on-imm (implies (acl2::ubyte6-equiv imm imm-equiv) (equal (exec64-op-imms funct rd rs1 imm stat) (exec64-op-imms funct rd rs1 imm-equiv stat))) :rule-classes :congruence)
Theorem:
(defthm exec64-op-imms-of-state64-fix-stat (equal (exec64-op-imms funct rd rs1 imm (state64-fix stat)) (exec64-op-imms funct rd rs1 imm stat)))
Theorem:
(defthm exec64-op-imms-state64-equiv-congruence-on-stat (implies (state64-equiv stat stat-equiv) (equal (exec64-op-imms funct rd rs1 imm stat) (exec64-op-imms funct rd rs1 imm stat-equiv))) :rule-classes :congruence)