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