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