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