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