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