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