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