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