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