(vl-nettypename-string x) → str
Function:
(defun vl-nettypename-string (x) (declare (xargs :guard (vl-nettypename-p x))) (let ((__function__ 'vl-nettypename-string)) (declare (ignorable __function__)) (case (vl-nettypename-fix x) (:vl-wire "wire") (:vl-tri "tri") (:vl-supply0 "supply0") (:vl-supply1 "supply1") (:vl-triand "triand") (:vl-trior "trior") (:vl-tri0 "tri0") (:vl-tri1 "tri1") (:vl-trireg "trireg") (:vl-uwire "uwire") (:vl-wand "wand") (:vl-wor "wor") (otherwise (or (impossible) "")))))
Theorem:
(defthm stringp-of-vl-nettypename-string (b* ((str (vl-nettypename-string x))) (stringp str)) :rule-classes :type-prescription)
Theorem:
(defthm vl-nettypename-string-of-vl-nettypename-fix-x (equal (vl-nettypename-string (vl-nettypename-fix x)) (vl-nettypename-string x)))
Theorem:
(defthm vl-nettypename-string-vl-nettypename-equiv-congruence-on-x (implies (vl-nettypename-equiv x x-equiv) (equal (vl-nettypename-string x) (vl-nettypename-string x-equiv))) :rule-classes :congruence)