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