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