Get the op field from a instruction-commit.
(instruction-commit->op x) → op
This is an ordinary field accessor created by fty::defprod.
Function:
(defun instruction-commit->op$inline (x) (declare (xargs :guard (instructionp x))) (declare (xargs :guard (equal (instruction-kind x) :commit))) (let ((__function__ 'instruction-commit->op)) (declare (ignorable __function__)) (mbe :logic (b* ((x (and (equal (instruction-kind x) :commit) x))) (commit-op-fix (std::da-nth 0 (cdr x)))) :exec (std::da-nth 0 (cdr x)))))
Theorem:
(defthm commit-opp-of-instruction-commit->op (b* ((op (instruction-commit->op$inline x))) (commit-opp op)) :rule-classes :rewrite)
Theorem:
(defthm instruction-commit->op$inline-of-instruction-fix-x (equal (instruction-commit->op$inline (instruction-fix x)) (instruction-commit->op$inline x)))
Theorem:
(defthm instruction-commit->op$inline-instruction-equiv-congruence-on-x (implies (instruction-equiv x x-equiv) (equal (instruction-commit->op$inline x) (instruction-commit->op$inline x-equiv))) :rule-classes :congruence)
Theorem:
(defthm instruction-commit->op-when-wrong-kind (implies (not (equal (instruction-kind x) :commit)) (equal (instruction-commit->op x) (commit-op-fix nil))))