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