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