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