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