Get the offset field from a elf32-segment-header.
(elf32-segment-header->offset x) → offset
This is an ordinary field accessor created by defprod.
Function:
(defun elf32-segment-header->offset$inline (x) (declare (xargs :guard (elf32-segment-header-p x))) (declare (xargs :guard t)) (let ((__function__ 'elf32-segment-header->offset)) (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-elf32-segment-header->offset (b* ((offset (elf32-segment-header->offset$inline x))) (natp offset)) :rule-classes :rewrite)
Theorem:
(defthm elf32-segment-header->offset$inline-of-elf32-segment-header-fix-x (equal (elf32-segment-header->offset$inline (elf32-segment-header-fix x)) (elf32-segment-header->offset$inline x)))
Theorem:
(defthm elf32-segment-header->offset$inline-elf32-segment-header-equiv-congruence-on-x (implies (elf32-segment-header-equiv x x-equiv) (equal (elf32-segment-header->offset$inline x) (elf32-segment-header->offset$inline x-equiv))) :rule-classes :congruence)