• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Community
    • 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-limiti-alistp
            • Seg-hidden-basei-alistp
            • !seg-visiblei-from-alist
            • Seg-visiblei-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
            • Read-channel-into-memory
            • Setting-up-page-tables
            • Read-channel-into-byte-list
            • Init-zero-page
            • Linux-load
            • Read-file-into-memory
            • Read-file-into-byte-list
            • Init-sys-view
            • Load-elf-sections
            • Chars-to-c-str
            • String-to-c-str
            • Pack-u64
            • Pack-u32
            • Concrete-simulation-examples
            • Gdt-entry
          • Sdm-instruction-set-summary
          • Tlb
          • Running-linux
          • Introduction
          • Asmtest
          • X86isa-build-instructions
          • Publications
          • Contributors
          • Machine
          • Implemented-opcodes
          • To-do
          • Proof-utilities
          • Peripherals
          • Model-validation
          • Modelcalls
          • Concrete-simulation-examples
          • Utils
          • Debugging-code-proofs
        • Axe
        • Execloader
      • Math
      • Testing-utilities
    • Initialize-x86-state

    !ctri-from-alist

    Update control registers as dictated by ctr-alist, which is required to be a ctri-alistp.

    Signature
    (!ctri-from-alist ctr-alist x86) → x86

    Definitions and Theorems

    Function: !ctri-from-alist

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

    Theorem: x86p-!ctri-from-alist

    (defthm x86p-!ctri-from-alist
      (implies (and (ctri-alistp ctr-alist) (x86p x86))
               (x86p (!ctri-from-alist ctr-alist x86))))