(vl-direction-string x) → str
Function:
(defun vl-direction-string (x) (declare (xargs :guard (vl-direction-p x))) (let ((__function__ 'vl-direction-string)) (declare (ignorable __function__)) (case (vl-direction-fix x) (:vl-input "input") (:vl-output "output") (:vl-inout "inout") (otherwise (or (impossible) "")))))
Theorem:
(defthm stringp-of-vl-direction-string (b* ((str (vl-direction-string x))) (stringp str)) :rule-classes :type-prescription)
Theorem:
(defthm vl-direction-string-of-vl-direction-fix-x (equal (vl-direction-string (vl-direction-fix x)) (vl-direction-string x)))
Theorem:
(defthm vl-direction-string-vl-direction-equiv-congruence-on-x (implies (vl-direction-equiv x x-equiv) (equal (vl-direction-string x) (vl-direction-string x-equiv))) :rule-classes :congruence)