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