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