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