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