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