Function:
(defun vl-atomicportexpr->internalname (x) (declare (xargs :guard (vl-expr-p x))) (declare (xargs :guard (vl-atomicportexpr-p x))) (let ((__function__ 'vl-atomicportexpr->internalname)) (declare (ignorable __function__)) (if (vl-fast-atom-p x) (vl-idexpr->name x) (vl-idexpr->name (first (vl-nonatom->args x))))))
Theorem:
(defthm stringp-of-vl-atomicportexpr->internalname (b* ((name (vl-atomicportexpr->internalname x))) (stringp name)) :rule-classes :type-prescription)
Theorem:
(defthm vl-atomicportexpr->internalname-of-vl-expr-fix-x (equal (vl-atomicportexpr->internalname (vl-expr-fix x)) (vl-atomicportexpr->internalname x)))
Theorem:
(defthm vl-atomicportexpr->internalname-vl-expr-equiv-congruence-on-x (implies (vl-expr-equiv x x-equiv) (equal (vl-atomicportexpr->internalname x) (vl-atomicportexpr->internalname x-equiv))) :rule-classes :congruence)