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