Get the loc field from a vl-alias.
(vl-alias->loc x) → loc
This is an ordinary field accessor created by defprod.
Function:
(defun vl-alias->loc$inline (x) (declare (xargs :guard (vl-alias-p x))) (declare (xargs :guard t)) (let ((__function__ 'vl-alias->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-alias->loc (b* ((loc (vl-alias->loc$inline x))) (vl-location-p loc)) :rule-classes :rewrite)
Theorem:
(defthm vl-alias->loc$inline-of-vl-alias-fix-x (equal (vl-alias->loc$inline (vl-alias-fix x)) (vl-alias->loc$inline x)))
Theorem:
(defthm vl-alias->loc$inline-vl-alias-equiv-congruence-on-x (implies (vl-alias-equiv x x-equiv) (equal (vl-alias->loc$inline x) (vl-alias->loc$inline x-equiv))) :rule-classes :congruence)