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