Update the |EXLD|::|SIZE| field of a elf32_sym bit structure.
(!elf32_sym->size size x) → new-x
Function:
(defun !elf32_sym->size (size x) (declare (xargs :guard (and (elf_bits32-p size) (elf32_sym-p x)))) (mbe :logic (b* ((size (mbe :logic (elf_bits32-fix size) :exec size)) (x (elf32_sym-fix x))) (part-install size x :width 32 :low 64)) :exec (the (unsigned-byte 128) (logior (the (unsigned-byte 128) (logand (the (unsigned-byte 128) x) (the (signed-byte 97) -79228162495817593519834398721))) (the (unsigned-byte 96) (ash (the (unsigned-byte 32) size) 64))))))
Theorem:
(defthm elf32_sym-p-of-!elf32_sym->size (b* ((new-x (!elf32_sym->size size x))) (elf32_sym-p new-x)) :rule-classes :rewrite)
Theorem:
(defthm !elf32_sym->size-of-elf_bits32-fix-size (equal (!elf32_sym->size (elf_bits32-fix size) x) (!elf32_sym->size size x)))
Theorem:
(defthm !elf32_sym->size-elf_bits32-equiv-congruence-on-size (implies (elf_bits32-equiv size size-equiv) (equal (!elf32_sym->size size x) (!elf32_sym->size size-equiv x))) :rule-classes :congruence)
Theorem:
(defthm !elf32_sym->size-of-elf32_sym-fix-x (equal (!elf32_sym->size size (elf32_sym-fix x)) (!elf32_sym->size size x)))
Theorem:
(defthm !elf32_sym->size-elf32_sym-equiv-congruence-on-x (implies (elf32_sym-equiv x x-equiv) (equal (!elf32_sym->size size x) (!elf32_sym->size size x-equiv))) :rule-classes :congruence)
Theorem:
(defthm !elf32_sym->size-is-elf32_sym (equal (!elf32_sym->size size x) (change-elf32_sym x :size size)))
Theorem:
(defthm elf32_sym->size-of-!elf32_sym->size (b* ((?new-x (!elf32_sym->size size x))) (equal (elf32_sym->size new-x) (elf_bits32-fix size))))
Theorem:
(defthm !elf32_sym->size-equiv-under-mask (b* ((?new-x (!elf32_sym->size size x))) (elf32_sym-equiv-under-mask new-x x -79228162495817593519834398721)))