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