Get the vl-timeunit-p corresponding to a time unit string like
(vl-timeunit-lookup x) → unit
Function:
(defun vl-timeunit-lookup$inline (x) (declare (xargs :guard (stringp x))) (let ((__function__ 'vl-timeunit-lookup)) (declare (ignorable __function__)) (cdr (assoc-equal x '(("s" . :vl-s) ("ms" . :vl-ms) ("us" . :vl-us) ("ns" . :vl-ns) ("ps" . :vl-ps) ("fs" . :vl-fs))))))
Theorem:
(defthm return-type-of-vl-timeunit-lookup (b* ((unit (vl-timeunit-lookup$inline x))) (equal (vl-timeunit-p unit) (if unit t nil))) :rule-classes :rewrite)