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