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