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