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