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