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