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