Get the unwrap field from a block-item-stmt.
(block-item-stmt->unwrap x) → unwrap
This is an ordinary field accessor created by fty::defprod.
Function:
(defun block-item-stmt->unwrap$inline (x) (declare (xargs :guard (block-itemp x))) (declare (xargs :guard (equal (block-item-kind x) :stmt))) (let ((__function__ 'block-item-stmt->unwrap)) (declare (ignorable __function__)) (mbe :logic (b* ((x (and (equal (block-item-kind x) :stmt) x))) (stmt-fix (std::da-nth 0 (cdr x)))) :exec (std::da-nth 0 (cdr x)))))
Theorem:
(defthm stmtp-of-block-item-stmt->unwrap (b* ((unwrap (block-item-stmt->unwrap$inline x))) (stmtp unwrap)) :rule-classes :rewrite)
Theorem:
(defthm block-item-stmt->unwrap$inline-of-block-item-fix-x (equal (block-item-stmt->unwrap$inline (block-item-fix x)) (block-item-stmt->unwrap$inline x)))
Theorem:
(defthm block-item-stmt->unwrap$inline-block-item-equiv-congruence-on-x (implies (block-item-equiv x x-equiv) (equal (block-item-stmt->unwrap$inline x) (block-item-stmt->unwrap$inline x-equiv))) :rule-classes :congruence)
Theorem:
(defthm block-item-stmt->unwrap-when-wrong-kind (implies (not (equal (block-item-kind x) :stmt)) (equal (block-item-stmt->unwrap x) (stmt-fix nil))))