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