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