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