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