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