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