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