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