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