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