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