(vl-genelement->blockname x) → blockname
Function:
(defun vl-genelement->blockname (x) (declare (xargs :guard (vl-genelement-p x))) (let ((__function__ 'vl-genelement->blockname)) (declare (ignorable __function__)) (vl-genelement-case x :vl-genblock x.name :vl-genarray x.name :otherwise nil)))
Theorem:
(defthm maybe-stringp-of-vl-genelement->blockname (b* ((blockname (vl-genelement->blockname x))) (maybe-stringp blockname)) :rule-classes :rewrite)
Theorem:
(defthm vl-genelement->blockname-of-vl-genelement-fix-x (equal (vl-genelement->blockname (vl-genelement-fix x)) (vl-genelement->blockname x)))
Theorem:
(defthm vl-genelement->blockname-vl-genelement-equiv-congruence-on-x (implies (vl-genelement-equiv x x-equiv) (equal (vl-genelement->blockname x) (vl-genelement->blockname x-equiv))) :rule-classes :congruence)