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