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