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