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