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