Update the |EXLD|::|OTHER| field of a elf64_sym bit structure.
(!elf64_sym->other other x) → new-x
Function:
(defun !elf64_sym->other (other x) (declare (xargs :guard (and (elf_bits8-p other) (elf64_sym-p x)))) (mbe :logic (b* ((other (mbe :logic (elf_bits8-fix other) :exec other)) (x (elf64_sym-fix x))) (part-install other x :width 8 :low 40)) :exec (the (unsigned-byte 192) (logior (the (unsigned-byte 192) (logand (the (unsigned-byte 192) x) (the (signed-byte 49) -280375465082881))) (the (unsigned-byte 48) (ash (the (unsigned-byte 8) other) 40))))))
Theorem:
(defthm elf64_sym-p-of-!elf64_sym->other (b* ((new-x (!elf64_sym->other other x))) (elf64_sym-p new-x)) :rule-classes :rewrite)
Theorem:
(defthm !elf64_sym->other-of-elf_bits8-fix-other (equal (!elf64_sym->other (elf_bits8-fix other) x) (!elf64_sym->other other x)))
Theorem:
(defthm !elf64_sym->other-elf_bits8-equiv-congruence-on-other (implies (elf_bits8-equiv other other-equiv) (equal (!elf64_sym->other other x) (!elf64_sym->other other-equiv x))) :rule-classes :congruence)
Theorem:
(defthm !elf64_sym->other-of-elf64_sym-fix-x (equal (!elf64_sym->other other (elf64_sym-fix x)) (!elf64_sym->other other x)))
Theorem:
(defthm !elf64_sym->other-elf64_sym-equiv-congruence-on-x (implies (elf64_sym-equiv x x-equiv) (equal (!elf64_sym->other other x) (!elf64_sym->other other x-equiv))) :rule-classes :congruence)
Theorem:
(defthm !elf64_sym->other-is-elf64_sym (equal (!elf64_sym->other other x) (change-elf64_sym x :other other)))
Theorem:
(defthm elf64_sym->other-of-!elf64_sym->other (b* ((?new-x (!elf64_sym->other other x))) (equal (elf64_sym->other new-x) (elf_bits8-fix other))))
Theorem:
(defthm !elf64_sym->other-equiv-under-mask (b* ((?new-x (!elf64_sym->other other x))) (elf64_sym-equiv-under-mask new-x x -280375465082881)))