Get the stmt field from a expr-stmt.
(expr-stmt->stmt x) → stmt
This is an ordinary field accessor created by fty::defprod.
Function:
(defun expr-stmt->stmt$inline (x) (declare (xargs :guard (exprp x))) (declare (xargs :guard (equal (expr-kind x) :stmt))) (mbe :logic (b* ((x (and (equal (expr-kind x) :stmt) x))) (comp-stmt-fix (cdr x))) :exec (cdr x)))
Theorem:
(defthm comp-stmtp-of-expr-stmt->stmt (b* ((stmt (expr-stmt->stmt$inline x))) (comp-stmtp stmt)) :rule-classes :rewrite)
Theorem:
(defthm expr-stmt->stmt$inline-of-expr-fix-x (equal (expr-stmt->stmt$inline (expr-fix x)) (expr-stmt->stmt$inline x)))
Theorem:
(defthm expr-stmt->stmt$inline-expr-equiv-congruence-on-x (implies (expr-equiv x x-equiv) (equal (expr-stmt->stmt$inline x) (expr-stmt->stmt$inline x-equiv))) :rule-classes :congruence)
Theorem:
(defthm expr-stmt->stmt-when-wrong-kind (implies (not (equal (expr-kind x) :stmt)) (equal (expr-stmt->stmt x) (comp-stmt-fix nil))))