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