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