Get the name from a vl-hidname-p as a string.
Function:
(defun vl-hidname->name$inline (x) (declare (xargs :guard (vl-expr-p x))) (declare (xargs :guard (vl-hidname-p x))) (let ((__function__ 'vl-hidname->name)) (declare (ignorable __function__)) (b* (((vl-atom x))) (mbe :logic (if (vl-fast-hidpiece-p x.guts) (vl-hidpiece->name x.guts) (vl-id->name x.guts)) :exec (cdr x.guts)))))
Theorem:
(defthm stringp-of-vl-hidname->name (b* ((name (vl-hidname->name$inline x))) (stringp name)) :rule-classes :type-prescription)
Theorem:
(defthm vl-hidname->name$inline-of-vl-expr-fix-x (equal (vl-hidname->name$inline (vl-expr-fix x)) (vl-hidname->name$inline x)))
Theorem:
(defthm vl-hidname->name$inline-vl-expr-equiv-congruence-on-x (implies (vl-expr-equiv x x-equiv) (equal (vl-hidname->name$inline x) (vl-hidname->name$inline x-equiv))) :rule-classes :congruence)