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