Get the right field from a vl-repetition.
(vl-repetition->right x) → right
This is an ordinary field accessor created by defprod.
Function:
(defun vl-repetition->right$inline (x) (declare (xargs :guard (vl-repetition-p x))) (declare (xargs :guard t)) (let ((__function__ 'vl-repetition->right)) (declare (ignorable __function__)) (mbe :logic (b* ((x (and t x))) (vl-maybe-expr-fix (std::prod-cdr (std::prod-cdr (cdr x))))) :exec (std::prod-cdr (std::prod-cdr (cdr x))))))
Theorem:
(defthm vl-maybe-expr-p-of-vl-repetition->right (b* ((right (vl-repetition->right$inline x))) (vl-maybe-expr-p right)) :rule-classes :rewrite)
Theorem:
(defthm vl-repetition->right$inline-of-vl-repetition-fix-x (equal (vl-repetition->right$inline (vl-repetition-fix x)) (vl-repetition->right$inline x)))
Theorem:
(defthm vl-repetition->right$inline-vl-repetition-equiv-congruence-on-x (implies (vl-repetition-equiv x x-equiv) (equal (vl-repetition->right$inline x) (vl-repetition->right$inline x-equiv))) :rule-classes :congruence)