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