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