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