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