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