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