(vl-atts-find-paramname atts) → paramname
Function:
(defun vl-atts-find-paramname (atts) (declare (xargs :guard (vl-atts-p atts))) (let ((__function__ 'vl-atts-find-paramname)) (declare (ignorable __function__)) (b* ((look (hons-assoc-equal "VL_PARAMNAME" (vl-atts-fix atts))) ((unless look) nil) (val (cdr look)) ((unless val) nil)) (vl-expr-case val :vl-literal (vl-value-case val.val :vl-string val.val.value :otherwise nil) :otherwise nil))))
Theorem:
(defthm maybe-stringp-of-vl-atts-find-paramname (b* ((paramname (vl-atts-find-paramname atts))) (maybe-stringp paramname)) :rule-classes :type-prescription)
Theorem:
(defthm vl-atts-find-paramname-of-vl-atts-fix-atts (equal (vl-atts-find-paramname (vl-atts-fix atts)) (vl-atts-find-paramname atts)))
Theorem:
(defthm vl-atts-find-paramname-vl-atts-equiv-congruence-on-atts (implies (vl-atts-equiv atts atts-equiv) (equal (vl-atts-find-paramname atts) (vl-atts-find-paramname atts-equiv))) :rule-classes :congruence)