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