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