• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Community
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
    • Software-verification
      • Kestrel-books
      • X86isa
      • Axe
      • Execloader
        • Elf-reader
          • Elf64_sym
            • !elf64_sym->value
            • !elf64_sym->shndx
            • !elf64_sym->other
              • !elf64_sym->size
              • !elf64_sym->name
              • !elf64_sym->info
              • Elf64_sym-p
              • Elf64_sym->value
              • Elf64_sym->size
              • Elf64_sym->shndx
              • Elf64_sym->other
              • Elf64_sym->info
              • Elf64_sym-fix
              • Elf64_sym->name
            • Elf32_sym
            • Elf-header
            • Elf-section-header
            • Elf64-segment-header
            • Elf32-segment-header
            • Elf_bits32
            • Elf_bits8
            • Elf_bits64
            • Elf_bits16
            • Section-info
            • Read-section-headers
            • Read-segment-headers-64
            • Read-segment-headers-32
            • Read-section-names
            • Elf64_sym-info
            • Elf32_sym-info
            • Read-elf-header
            • Parse-symtab-entries
            • Populate-elf-contents
            • Is-elf-content-p
            • Get-string-section-data
            • Get-section-info1
            • Set-elf-stobj-fields
            • Get-named-section-headers
            • Elf-read-mem-null-term
            • Get-section-info
            • Get-symtab-entries
            • Find-label-address-from-elf-symtab-info
            • Section-names
            • Populate-elf
            • Get-label-addresses
            • Elf-read-string-null-term
            • Get-label-address
            • Good-elf-p
            • Elf64_sym-equiv-under-mask
            • Elf64-segment-headers
            • Elf32_sym-equiv-under-mask
            • Elf32-segment-headers
            • Section-info-list
            • Elf64_sym-info-list
            • Elf32_sym-info-list
            • Elf-section-headers
            • Elf64_sym-debug
            • Elf32_sym-debug
          • Mach-o-reader
          • Merge-first-split-bytes
          • Split-bytes
          • Take-till-zero
          • Charlist->bytes
          • Merge-bytes
          • Bytes->charlist
          • String->bytes
          • Bytes->string
      • Math
      • Testing-utilities
    • Elf64_sym

    !elf64_sym->other

    Update the |EXLD|::|OTHER| field of a elf64_sym bit structure.

    Signature
    (!elf64_sym->other other x) → new-x
    Arguments
    other — Guard (elf_bits8-p other).
    x — Guard (elf64_sym-p x).
    Returns
    new-x — Type (elf64_sym-p new-x).

    Definitions and Theorems

    Function: !elf64_sym->other

    (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: elf64_sym-p-of-!elf64_sym->other

    (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: !elf64_sym->other-of-elf_bits8-fix-other

    (defthm !elf64_sym->other-of-elf_bits8-fix-other
      (equal (!elf64_sym->other (elf_bits8-fix other)
                                x)
             (!elf64_sym->other other x)))

    Theorem: !elf64_sym->other-elf_bits8-equiv-congruence-on-other

    (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: !elf64_sym->other-of-elf64_sym-fix-x

    (defthm !elf64_sym->other-of-elf64_sym-fix-x
      (equal (!elf64_sym->other other (elf64_sym-fix x))
             (!elf64_sym->other other x)))

    Theorem: !elf64_sym->other-elf64_sym-equiv-congruence-on-x

    (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: !elf64_sym->other-is-elf64_sym

    (defthm !elf64_sym->other-is-elf64_sym
      (equal (!elf64_sym->other other x)
             (change-elf64_sym x :other other)))

    Theorem: elf64_sym->other-of-!elf64_sym->other

    (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: !elf64_sym->other-equiv-under-mask

    (defthm !elf64_sym->other-equiv-under-mask
      (b* ((?new-x (!elf64_sym->other other x)))
        (elf64_sym-equiv-under-mask new-x x -280375465082881)))