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