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