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