Get the name field from a vl-genvar.
(vl-genvar->name x) → name
This is an ordinary field accessor created by defprod.
Function:
(defun vl-genvar->name$inline (x) (declare (xargs :guard (vl-genvar-p x))) (declare (xargs :guard t)) (let ((__function__ 'vl-genvar->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-genvar->name (b* ((name (vl-genvar->name$inline x))) (stringp name)) :rule-classes :rewrite)
Theorem:
(defthm vl-genvar->name$inline-of-vl-genvar-fix-x (equal (vl-genvar->name$inline (vl-genvar-fix x)) (vl-genvar->name$inline x)))
Theorem:
(defthm vl-genvar->name$inline-vl-genvar-equiv-congruence-on-x (implies (vl-genvar-equiv x x-equiv) (equal (vl-genvar->name$inline x) (vl-genvar->name$inline x-equiv))) :rule-classes :congruence)