Get the constval field from a vl-vardecl.
(vl-vardecl->constval x) → constval
This is an ordinary field accessor created by defprod.
Function:
(defun vl-vardecl->constval$inline (x) (declare (xargs :guard (vl-vardecl-p x))) (declare (xargs :guard t)) (let ((__function__ 'vl-vardecl->constval)) (declare (ignorable __function__)) (mbe :logic (b* ((x (and t x))) (sv::maybe-4vec-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 maybe-4vec-p-of-vl-vardecl->constval (b* ((constval (vl-vardecl->constval$inline x))) (sv::maybe-4vec-p constval)) :rule-classes :rewrite)
Theorem:
(defthm vl-vardecl->constval$inline-of-vl-vardecl-fix-x (equal (vl-vardecl->constval$inline (vl-vardecl-fix x)) (vl-vardecl->constval$inline x)))
Theorem:
(defthm vl-vardecl->constval$inline-vl-vardecl-equiv-congruence-on-x (implies (vl-vardecl-equiv x x-equiv) (equal (vl-vardecl->constval$inline x) (vl-vardecl->constval$inline x-equiv))) :rule-classes :congruence)