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