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