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