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