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