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