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