• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
      • Apt
      • Zfc
      • Acre
      • Milawa
      • Smtlink
      • Abnf
      • Vwsim
      • Isar
      • Wp-gen
      • Dimacs-reader
      • Pfcs
      • Legacy-defrstobj
      • Proof-checker-array
      • Soft
      • C
      • Farray
      • Rp-rewriter
      • Instant-runoff-voting
      • Imp-language
      • Sidekick
      • Leftist-trees
      • Java
      • Taspi
      • Bitcoin
      • Riscv
      • Des
      • Ethereum
      • X86isa
      • Sha-2
      • Yul
      • Zcash
      • Proof-checker-itp13
      • Regex
      • ACL2-programming-language
      • Json
      • Jfkr
      • Equational
      • Cryptography
      • Poseidon
      • Where-do-i-place-my-book
      • Axe
      • Bigmems
      • Builtins
      • Execloader
        • Elf-reader
          • Elf64_sym
          • 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
        • Aleo
        • Solidity
        • Paco
        • Concurrent-programs
        • Bls12-377-curves
      • Debugging
      • Std
      • Proof-automation
      • Macro-libraries
      • ACL2
      • Interfacing-tools
      • Hardware-verification
      • Software-verification
      • Math
      • Testing-utilities
    • Elf-reader

    Get-section-info1

    Signature
    (get-section-info1 name section-info-list section-names) 
      → 
    section-info
    Arguments
    name — Name of a section header; e.g., ".symtab".
        Guard (stringp name).
    section-info-list — Guard (section-info-list-p section-info-list).
    section-names — Guard (string-listp section-names).
    Returns
    section-info — Type (section-info-p section-info), given (section-info-list-p section-info-list).

    Definitions and Theorems

    Function: get-section-info1

    (defun get-section-info1 (name section-info-list section-names)
     (declare (xargs :guard (and (stringp name)
                                 (section-info-list-p section-info-list)
                                 (string-listp section-names))))
     (declare
          (xargs :guard (subsetp-equal (section-names section-info-list)
                                       section-names)))
     (let ((__function__ 'get-section-info1))
      (declare (ignorable __function__))
      (b*
       (((when (atom section-info-list))
         (prog2$
            (raise "Section ~s0 not found! List of sections found: ~x1."
                   name section-names)
            (make-section-info)))
        ((section-info section-info)
         (car section-info-list))
        ((elf-section-header section-info.header))
        ((when (equal (str::trim section-info.header.name-str)
                      (str::trim name)))
         section-info))
       (get-section-info1 name (cdr section-info-list)
                          section-names))))

    Theorem: section-info-p-of-get-section-info1

    (defthm section-info-p-of-get-section-info1
     (implies
       (section-info-list-p section-info-list)
       (b*
        ((section-info
              (get-section-info1 name section-info-list section-names)))
        (section-info-p section-info)))
     :rule-classes :rewrite)