• 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-alistp

    Recognizer for pairs of segment register indices and values for the visible portions of the registers

    Signature
    (seg-visiblei-alistp alst) → *

    Note that the register values are required to be n16p

    Definitions and Theorems

    Function: seg-visiblei-alistp

    (defun seg-visiblei-alistp (alst)
      (declare (xargs :guard t))
      (let ((__function__ 'seg-visiblei-alistp))
        (declare (ignorable __function__))
        (if (atom alst)
            (equal alst nil)
          (if (atom (car alst))
              nil
            (let ((index (caar alst))
                  (value (cdar alst))
                  (rest (cdr alst)))
              (and (natp index)
                   (< index *segment-register-names-len*)
                   (unsigned-byte-p 16 value)
                   (seg-visiblei-alistp rest)))))))