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