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