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