Get the name from a vl-idexpr-p.
Guaranteed to return a string.
Function:
(defun vl-idexpr->name$inline (x) (declare (xargs :guard (vl-expr-p x))) (declare (xargs :guard (vl-idexpr-p x))) (let ((__function__ 'vl-idexpr->name)) (declare (ignorable __function__)) (vl-id->name (vl-atom->guts x))))
Theorem:
(defthm stringp-of-vl-idexpr->name (b* ((name (vl-idexpr->name$inline x))) (stringp name)) :rule-classes :type-prescription)
Theorem:
(defthm vl-idexpr->name$inline-of-vl-expr-fix-x (equal (vl-idexpr->name$inline (vl-expr-fix x)) (vl-idexpr->name$inline x)))
Theorem:
(defthm vl-idexpr->name$inline-vl-expr-equiv-congruence-on-x (implies (vl-expr-equiv x x-equiv) (equal (vl-idexpr->name$inline x) (vl-idexpr->name$inline x-equiv))) :rule-classes :congruence)