• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Debugging
    • Projects
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
    • Software-verification
      • Kestrel-books
      • X86isa
      • Axe
      • Execloader
        • Elf-reader
        • Mach-o-reader
          • Read-load_commands
          • Read-section_data_sz_structures
          • Mach-o-section-header
            • Mach-o-section-header-fix
            • Make-mach-o-section-header
            • Mach-o-section-header-equiv
            • Mach-o-section-header-p
            • Change-mach-o-section-header
            • Mach-o-section-header->segname
            • Mach-o-section-header->sectname
            • Mach-o-section-header->reserved3
            • Mach-o-section-header->reserved2
            • Mach-o-section-header->reserved1
            • Mach-o-section-header->reloff
              • Mach-o-section-header->offset
              • Mach-o-section-header->nreloc
              • Mach-o-section-header->size
              • Mach-o-section-header->flags
              • Mach-o-section-header->align
              • Mach-o-section-header->addr
            • Mach-o-header
            • Populate-mach-o-contents
            • Good-mach-o-p
            • Fill-data-segment-bytes
            • Fill-text-text-section-bytes
            • Fill-text-segment-bytes
            • Fill-text-cstring-section-bytes
            • Fill-text-const-section-bytes
            • Fill-data-dyld-section-bytes
            • Fill-data-data-section-bytes
            • Fill-data-const-section-bytes
            • Fill-data-common-section-bytes
            • Fill-data-bss-section-bytes
            • Read-mach_header
            • Populate-mach-o
            • Mach-o-section-headers
          • Merge-first-split-bytes
          • Split-bytes
          • Take-till-zero
          • Charlist->bytes
          • Merge-bytes
          • Bytes->charlist
          • String->bytes
          • Bytes->string
      • Math
      • Testing-utilities
    • Mach-o-section-header

    Mach-o-section-header->reloff

    Get the reloff field from a mach-o-section-header.

    Signature
    (mach-o-section-header->reloff x) → reloff
    Arguments
    x — Guard (mach-o-section-header-p x).
    Returns
    reloff — Type (natp reloff).

    This is an ordinary field accessor created by defprod.

    Definitions and Theorems

    Function: mach-o-section-header->reloff$inline

    (defun mach-o-section-header->reloff$inline (x)
      (declare (xargs :guard (mach-o-section-header-p x)))
      (declare (xargs :guard t))
      (let ((__function__ 'mach-o-section-header->reloff))
        (declare (ignorable __function__))
        (mbe :logic
             (b* ((x (and t x)))
               (nfix (cdr (std::da-nth 6 x))))
             :exec (cdr (std::da-nth 6 x)))))

    Theorem: natp-of-mach-o-section-header->reloff

    (defthm natp-of-mach-o-section-header->reloff
      (b* ((reloff (mach-o-section-header->reloff$inline x)))
        (natp reloff))
      :rule-classes :rewrite)

    Theorem: mach-o-section-header->reloff$inline-of-mach-o-section-header-fix-x

    (defthm
     mach-o-section-header->reloff$inline-of-mach-o-section-header-fix-x
     (equal (mach-o-section-header->reloff$inline
                 (mach-o-section-header-fix x))
            (mach-o-section-header->reloff$inline x)))

    Theorem: mach-o-section-header->reloff$inline-mach-o-section-header-equiv-congruence-on-x

    (defthm
     mach-o-section-header->reloff$inline-mach-o-section-header-equiv-congruence-on-x
     (implies (mach-o-section-header-equiv x x-equiv)
              (equal (mach-o-section-header->reloff$inline x)
                     (mach-o-section-header->reloff$inline x-equiv)))
     :rule-classes :congruence)