Get the endian field from a feat.
(feat->endian x) → endian
This is an ordinary field accessor created by fty::defprod.
Function:
(defun feat->endian$inline (x) (declare (xargs :guard (featp x))) (declare (xargs :guard t)) (let ((__function__ 'feat->endian)) (declare (ignorable __function__)) (mbe :logic (b* ((x (and t x))) (feat-endian-fix (cdr (std::da-nth 1 x)))) :exec (cdr (std::da-nth 1 x)))))
Theorem:
(defthm feat-endianp-of-feat->endian (b* ((endian (feat->endian$inline x))) (feat-endianp endian)) :rule-classes :rewrite)
Theorem:
(defthm feat->endian$inline-of-feat-fix-x (equal (feat->endian$inline (feat-fix x)) (feat->endian$inline x)))
Theorem:
(defthm feat->endian$inline-feat-equiv-congruence-on-x (implies (feat-equiv x x-equiv) (equal (feat->endian$inline x) (feat->endian$inline x-equiv))) :rule-classes :congruence)