• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Community
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
    • Software-verification
      • Kestrel-books
      • X86isa
      • Axe
      • Execloader
        • Elf-reader
          • Elf64_sym
          • Elf32_sym
            • !elf32_sym->value
            • !elf32_sym->size
            • !elf32_sym->shndx
            • !elf32_sym->other
            • Elf32_sym-p
            • !elf32_sym->name
            • !elf32_sym->info
            • Elf32_sym->value
            • Elf32_sym->size
            • Elf32_sym->shndx
            • Elf32_sym->other
              • Elf32_sym->info
              • Elf32_sym-fix
              • Elf32_sym->name
            • 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
    • Elf32_sym

    Elf32_sym->other

    Access the |EXLD|::|OTHER| field of a elf32_sym bit structure.

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

    Definitions and Theorems

    Function: elf32_sym->other

    (defun elf32_sym->other (x)
      (declare (xargs :guard (elf32_sym-p x)))
      (mbe :logic
           (let ((x (elf32_sym-fix x)))
             (part-select x :low 104 :width 8))
           :exec (the (unsigned-byte 8)
                      (logand (the (unsigned-byte 8) 255)
                              (the (unsigned-byte 24)
                                   (ash (the (unsigned-byte 128) x)
                                        -104))))))

    Theorem: elf_bits8-p-of-elf32_sym->other

    (defthm elf_bits8-p-of-elf32_sym->other
      (b* ((other (elf32_sym->other x)))
        (elf_bits8-p other))
      :rule-classes :rewrite)

    Theorem: elf32_sym->other-of-elf32_sym-fix-x

    (defthm elf32_sym->other-of-elf32_sym-fix-x
      (equal (elf32_sym->other (elf32_sym-fix x))
             (elf32_sym->other x)))

    Theorem: elf32_sym->other-elf32_sym-equiv-congruence-on-x

    (defthm elf32_sym->other-elf32_sym-equiv-congruence-on-x
      (implies (elf32_sym-equiv x x-equiv)
               (equal (elf32_sym->other x)
                      (elf32_sym->other x-equiv)))
      :rule-classes :congruence)

    Theorem: elf32_sym->other-of-elf32_sym

    (defthm elf32_sym->other-of-elf32_sym
     (equal
         (elf32_sym->other (elf32_sym name value size info other shndx))
         (elf_bits8-fix other)))

    Theorem: elf32_sym->other-of-write-with-mask

    (defthm elf32_sym->other-of-write-with-mask
      (implies (and (fty::bitstruct-read-over-write-hyps
                         x elf32_sym-equiv-under-mask)
                    (elf32_sym-equiv-under-mask x y fty::mask)
                    (equal (logand (lognot fty::mask)
                                   5172014448931175958106549077934080)
                           0))
               (equal (elf32_sym->other x)
                      (elf32_sym->other y))))