• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Debugging
    • Projects
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
      • Theories
      • Rule-classes
      • Proof-builder
      • Recursion-and-induction
      • Hons-and-memoization
      • Events
      • Parallelism
      • History
      • Programming
        • Defun
        • Declare
        • System-utilities
        • Stobj
        • State
        • Memoize
        • Mbe
        • Io
        • Defpkg
        • Apply$
        • Mutual-recursion
        • Loop$
        • Programming-with-state
        • Arrays
        • Characters
        • Time$
        • Loop$-primer
        • Fast-alists
        • Defmacro
        • Defconst
        • Evaluation
        • Guard
        • Equality-variants
        • Compilation
        • Hons
        • ACL2-built-ins
        • Developers-guide
        • System-attachments
        • Advanced-features
        • Set-check-invariant-risk
        • Numbers
        • Irrelevant-formals
        • Efficiency
        • Introduction-to-programming-in-ACL2-for-those-who-know-lisp
        • Redefining-programs
        • Lists
        • Invariant-risk
        • Errors
        • Defabbrev
        • Conses
        • Alists
        • Set-register-invariant-risk
        • Strings
        • Program-wrapper
        • Get-internal-time
        • Basics
          • Let
          • Return-last
          • Mv-let
          • Or
          • Flet
          • Mv
          • And
          • Booleanp
          • If
          • Not
          • Equal
          • Implies
          • Iff
          • Quote
            • Create-inst-doc
            • Opcode
            • Select-insts
            • Inst
            • Op/en-p
            • Operands
            • Operand-type-p
            • Strict-opcode-p
            • Opcode-extension-group-p
            • Create-insts-doc
            • Create-insts-doc-aux
            • Superscripts-p
            • Maybe-operands-p
            • Inst-list-p
            • Exception-desc-p
            • Count-avx-pfx-cases
            • Mnemonic-p
            • Maybe-3bits-p
            • Op-pfx-p
            • Maybe-vex-p
            • Maybe-evex-p
            • Fn-desc-p
            • Chk-exc-fn
            • Remove-insts-with-feat
            • Op-mode-p
            • Keep-insts-with-feat
            • Rex-p
            • Mod-p
            • Gen-operand-type-code-doc
            • Gen-addressing-method-code-doc
            • Create-arg-doc
            • Create-extra-info-doc
              • Avx-pfx-well-formed-p
              • Create-extra-info-doc-string
              • Create-args-doc
              • Symbol-list-to-string
              • Get-operand-type-code-doc
              • Get-addressing-method-doc
              • Unquote
              • Any-present-in
              • Eval-pre-map
              • Superscripts-fix
              • Strict-opcode-fix
              • Operand-type-fix
              • Opcode-extension-group-fix
              • Maybe-operands-fix
              • Maybe-evex-fix
              • Maybe-3bits-fix
              • Keyword-list-fix
              • Exception-desc-fix
              • Rex-fix
              • Op-pfx-fix
              • Op-mode-fix
              • Mod-fix
              • Mnemonic-fix
              • Maybe-vex-fix
              • Fn-desc-fix
              • Vex-p
              • Evex-p
            • Macrolet
            • Let*
            • Case-match
            • ACL2-count
            • Good-bye
            • Case
            • Cond
            • Null
            • Progn$
            • Identity
            • Xor
          • Packages
          • Oracle-eval
          • Defmacro-untouchable
          • Primitive
          • <<
          • Revert-world
          • Set-duplicate-keys-action
          • Unmemoize
          • Symbols
          • Def-list-constructor
          • Easy-simplify-term
          • Defiteration
          • Fake-oracle-eval
          • Defopen
          • Sleep
        • Real
        • Start-here
        • Debugging
        • Miscellaneous
        • Output-controls
        • Macros
        • Interfacing-tools
      • Interfacing-tools
      • Hardware-verification
      • Software-verification
      • Math
      • Testing-utilities
    • Quote
    • Opcode-maps

    Create-extra-info-doc

    Signature
    (create-extra-info-doc opcode) → doc
    Arguments
    opcode — Guard (strict-opcode-p opcode).
    Returns
    doc — Type (stringp doc), given the guard.

    Definitions and Theorems

    Function: create-extra-info-doc

    (defun create-extra-info-doc (opcode)
     (declare (xargs :guard (strict-opcode-p opcode)))
     (let ((__function__ 'create-extra-info-doc))
       (declare (ignorable __function__))
       (b*
         (((opcode opcode))
          (feat-doc (create-extra-info-doc-string opcode.feat ":FEAT "))
          (vex-doc (create-extra-info-doc-string opcode.vex ":VEX "))
          (evex-doc (create-extra-info-doc-string opcode.evex ":EVEX "))
          (pfx-doc (create-extra-info-doc-string opcode.pfx ":PFX "))
          (mode-doc (create-extra-info-doc-string opcode.mode ":MODE "))
          (reg-doc (create-extra-info-doc-string opcode.reg ":REG "))
          (mod-doc (create-extra-info-doc-string opcode.mod ":MOD "))
          (r/m-doc (create-extra-info-doc-string opcode.r/m ":R/M "))
          (rex-doc (create-extra-info-doc-string opcode.rex ":REX "))
          (extra-info (str::cat "<table>" mode-doc
                                pfx-doc reg-doc mod-doc r/m-doc rex-doc
                                vex-doc evex-doc feat-doc "</table>")))
         extra-info)))

    Theorem: stringp-of-create-extra-info-doc

    (defthm stringp-of-create-extra-info-doc
      (implies (and (strict-opcode-p opcode))
               (b* ((doc (create-extra-info-doc opcode)))
                 (stringp doc)))
      :rule-classes :rewrite)