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