Get the name field from a vl-id.
This is an ordinary field accessor created by defprod.
Function:
(defun vl-id->name$inline (x) (declare (xargs :guard (vl-id-p x))) (declare (xargs :guard t)) (let ((__function__ 'vl-id->name)) (declare (ignorable __function__)) (mbe :logic (b* ((x (and t x))) (str-fix (cdr x))) :exec (cdr x))))
Theorem:
(defthm stringp-of-vl-id->name (b* ((name (vl-id->name$inline x))) (stringp name)) :rule-classes :type-prescription)
Theorem:
(defthm vl-id->name$inline-of-vl-id-fix-x (equal (vl-id->name$inline (vl-id-fix x)) (vl-id->name$inline x)))
Theorem:
(defthm vl-id->name$inline-vl-id-equiv-congruence-on-x (implies (vl-id-equiv x x-equiv) (equal (vl-id->name$inline x) (vl-id->name$inline x-equiv))) :rule-classes :congruence)