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