• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Debugging
    • Projects
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
    • Software-verification
      • Kestrel-books
      • X86isa
        • Program-execution
          • Dynamic-instrumentation
          • Initialize-x86-state
            • Init-x86-state-64
            • Load-program-into-memory
            • Init-x86-state
            • !seg-hidden-limiti-from-alist
            • !seg-hidden-basei-from-alist
            • !seg-hidden-attri-from-alist
            • Seg-hidden-basei-alistp
            • !seg-visiblei-from-alist
              • Seg-visiblei-alistp
              • Seg-hidden-limiti-alistp
              • Seg-hidden-attri-alistp
              • Rgfi-alistp
              • N64p-byte-alistp
              • !rgfi-from-alist
              • !msri-from-alist
              • !ctri-from-alist
              • Msri-alistp
              • Ctri-alistp
            • Binary-file-load-fn
            • Setting-up-page-tables
            • Init-sys-view
            • Load-elf-sections
            • Concrete-simulation-examples
          • Introduction
          • X86isa-build-instructions
          • Publications
          • Contributors
          • Machine
          • Implemented-opcodes
          • Proof-utilities
          • To-do
          • Concrete-simulation-examples
          • Model-validation
          • Utils
          • Debugging-code-proofs
        • Axe
        • Execloader
      • Math
      • Testing-utilities
    • Initialize-x86-state

    !seg-visiblei-from-alist

    Update visible portion of segment registers as dictated by seg-visible-alist, which is required to be a seg-visiblei-alistp.

    Signature
    (!seg-visiblei-from-alist seg-visible-alist x86) → x86

    Definitions and Theorems

    Function: !seg-visiblei-from-alist

    (defun !seg-visiblei-from-alist (seg-visible-alist x86)
      (declare (xargs :stobjs (x86)))
      (declare (xargs :guard (seg-visiblei-alistp seg-visible-alist)))
      (let ((__function__ '!seg-visiblei-from-alist))
        (declare (ignorable __function__))
        (cond ((endp seg-visible-alist) x86)
              (t (let ((x86 (!seg-visiblei (caar seg-visible-alist)
                                           (cdar seg-visible-alist)
                                           x86)))
                   (!seg-visiblei-from-alist (cdr seg-visible-alist)
                                             x86))))))

    Theorem: x86p-!seg-visiblei-from-alist

    (defthm x86p-!seg-visiblei-from-alist
      (implies (and (seg-visiblei-alistp alist)
                    (x86p x86))
               (x86p (!seg-visiblei-from-alist alist x86))))