Get the string corresponding to a vl-timeunit-p.
(vl-timeunit->string x) → str
Function:
(defun vl-timeunit->string (x) (declare (xargs :guard (vl-timeunit-p x))) (let ((__function__ 'vl-timeunit->string)) (declare (ignorable __function__)) (let ((x (mbe :logic (vl-timeunit-fix x) :exec x))) (case x (:vl-s "s") (:vl-ms "ms") (:vl-us "us") (:vl-ns "ns") (:vl-ps "ps") (:vl-fs "fs") (otherwise (progn$ (impossible) "s"))))))
Theorem:
(defthm stringp-of-vl-timeunit->string (b* ((str (vl-timeunit->string x))) (stringp str)) :rule-classes :type-prescription)
Theorem:
(defthm vl-timeunit->string-of-vl-timeunit-fix-x (equal (vl-timeunit->string (vl-timeunit-fix x)) (vl-timeunit->string x)))
Theorem:
(defthm vl-timeunit->string-vl-timeunit-equiv-congruence-on-x (implies (vl-timeunit-equiv x x-equiv) (equal (vl-timeunit->string x) (vl-timeunit->string x-equiv))) :rule-classes :congruence)