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