Get the type field from a svstmt-jump.
This is an ordinary field accessor created by defprod.
Function:
(defun svstmt-jump->type$inline (x) (declare (xargs :guard (svstmt-p x))) (declare (xargs :guard (equal (svstmt-kind x) :jump))) (let ((__function__ 'svstmt-jump->type)) (declare (ignorable __function__)) (mbe :logic (b* ((x (and (equal (svstmt-kind x) :jump) x))) (svjump-fix (std::da-nth 0 (cdr x)))) :exec (std::da-nth 0 (cdr x)))))
Theorem:
(defthm svjump-p-of-svstmt-jump->type (b* ((type (svstmt-jump->type$inline x))) (svjump-p type)) :rule-classes (:rewrite (:forward-chaining :trigger-terms ((svstmt-jump->type x)))))
Theorem:
(defthm svstmt-jump->type$inline-of-svstmt-fix-x (equal (svstmt-jump->type$inline (svstmt-fix x)) (svstmt-jump->type$inline x)))
Theorem:
(defthm svstmt-jump->type$inline-svstmt-equiv-congruence-on-x (implies (svstmt-equiv x x-equiv) (equal (svstmt-jump->type$inline x) (svstmt-jump->type$inline x-equiv))) :rule-classes :congruence)
Theorem:
(defthm svstmt-jump->type-when-wrong-kind (implies (not (equal (svstmt-kind x) :jump)) (equal (svstmt-jump->type x) (svjump-fix nil))))