Get the magic field from a mach-o-header.
(mach-o-header->magic x) → magic
This is an ordinary field accessor created by defprod.
Function:
(defun mach-o-header->magic$inline (x) (declare (xargs :guard (mach-o-header-p x))) (declare (xargs :guard t)) (let ((__function__ 'mach-o-header->magic)) (declare (ignorable __function__)) (mbe :logic (b* ((x (and t x))) (nfix (cdr (std::da-nth 0 x)))) :exec (cdr (std::da-nth 0 x)))))
Theorem:
(defthm natp-of-mach-o-header->magic (b* ((magic (mach-o-header->magic$inline x))) (natp magic)) :rule-classes :rewrite)
Theorem:
(defthm mach-o-header->magic$inline-of-mach-o-header-fix-x (equal (mach-o-header->magic$inline (mach-o-header-fix x)) (mach-o-header->magic$inline x)))
Theorem:
(defthm mach-o-header->magic$inline-mach-o-header-equiv-congruence-on-x (implies (mach-o-header-equiv x x-equiv) (equal (mach-o-header->magic$inline x) (mach-o-header->magic$inline x-equiv))) :rule-classes :congruence)