Semantics of the instructions with the
Function:
(defun exec64-store (funct rs1 rs2 imm stat) (declare (xargs :guard (and (store-funct-p funct) (ubyte5p rs1) (ubyte5p rs2) (ubyte12p imm) (state64p stat)))) (let ((__function__ 'exec64-store)) (declare (ignorable __function__)) (store-funct-case funct :sb (exec64-sb rs1 rs2 imm stat) :sh (exec64-sh rs1 rs2 imm stat) :sw (exec64-sw rs1 rs2 imm stat) :sd (exec64-sd rs1 rs2 imm stat))))
Theorem:
(defthm state64p-of-exec64-store (b* ((new-stat (exec64-store funct rs1 rs2 imm stat))) (state64p new-stat)) :rule-classes :rewrite)
Theorem:
(defthm exec64-store-of-store-funct-fix-funct (equal (exec64-store (store-funct-fix funct) rs1 rs2 imm stat) (exec64-store funct rs1 rs2 imm stat)))
Theorem:
(defthm exec64-store-store-funct-equiv-congruence-on-funct (implies (store-funct-equiv funct funct-equiv) (equal (exec64-store funct rs1 rs2 imm stat) (exec64-store funct-equiv rs1 rs2 imm stat))) :rule-classes :congruence)
Theorem:
(defthm exec64-store-of-ubyte5-fix-rs1 (equal (exec64-store funct (ubyte5-fix rs1) rs2 imm stat) (exec64-store funct rs1 rs2 imm stat)))
Theorem:
(defthm exec64-store-ubyte5-equiv-congruence-on-rs1 (implies (ubyte5-equiv rs1 rs1-equiv) (equal (exec64-store funct rs1 rs2 imm stat) (exec64-store funct rs1-equiv rs2 imm stat))) :rule-classes :congruence)
Theorem:
(defthm exec64-store-of-ubyte5-fix-rs2 (equal (exec64-store funct rs1 (ubyte5-fix rs2) imm stat) (exec64-store funct rs1 rs2 imm stat)))
Theorem:
(defthm exec64-store-ubyte5-equiv-congruence-on-rs2 (implies (ubyte5-equiv rs2 rs2-equiv) (equal (exec64-store funct rs1 rs2 imm stat) (exec64-store funct rs1 rs2-equiv imm stat))) :rule-classes :congruence)
Theorem:
(defthm exec64-store-of-ubyte12-fix-imm (equal (exec64-store funct rs1 rs2 (ubyte12-fix imm) stat) (exec64-store funct rs1 rs2 imm stat)))
Theorem:
(defthm exec64-store-ubyte12-equiv-congruence-on-imm (implies (acl2::ubyte12-equiv imm imm-equiv) (equal (exec64-store funct rs1 rs2 imm stat) (exec64-store funct rs1 rs2 imm-equiv stat))) :rule-classes :congruence)
Theorem:
(defthm exec64-store-of-state64-fix-stat (equal (exec64-store funct rs1 rs2 imm (state64-fix stat)) (exec64-store funct rs1 rs2 imm stat)))
Theorem:
(defthm exec64-store-state64-equiv-congruence-on-stat (implies (state64-equiv stat stat-equiv) (equal (exec64-store funct rs1 rs2 imm stat) (exec64-store funct rs1 rs2 imm stat-equiv))) :rule-classes :congruence)