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