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