• 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
        • Sdm-instruction-set-summary
        • Tlb
        • Running-linux
        • Introduction
        • Asmtest
        • X86isa-build-instructions
        • Publications
        • Contributors
        • Machine
          • X86isa-state
          • Syscalls
          • Cpuid
          • Linear-memory
          • Rflag-specifications
          • Characterizing-undefined-behavior
          • Top-level-memory
          • App-view
          • X86-decoder
          • Physical-memory
          • Decoding-and-spec-utils
          • Instructions
            • Two-byte-opcodes
            • One-byte-opcodes
            • Fp-opcodes
            • Instruction-semantic-functions
              • Sar-spec
              • Shr-spec
              • Sal/shl-spec
              • Rol-spec
              • Ror-spec
              • Rcl-spec
              • Rcr-spec
              • Simd-sub-spec
              • Simd-add-spec
              • Imul-spec
              • Mul-spec
              • Idiv-spec
              • Div-spec
              • Shrd-spec
              • Shld-spec
              • Gpr-arith/logic-spec
              • Shrx-spec
              • Shlx-spec
              • Sarx-spec
              • Floating-point-specifications
                • Floating-point-converts
                • Floating-point-arithmetic-specifications
                • Basic-floating-point-utilities
                  • Fp-decode
                  • Make-special-bp
                    • Fp-round-overflow-generic
                    • Fp-to-rat
                    • Fp-encode-integer
                    • Sse-daz
                    • Denormal-exception
                    • Convert-rc-to-mode
                  • Floating-point-comparison-specifications
              • X86-illegal-instruction
              • Implemented-opcodes
              • Opcode-maps
              • X86-general-protection
              • X86-device-not-available
              • X86-step-unimplemented
              • Privileged-opcodes
              • Three-byte-opcodes
            • Register-readers-and-writers
            • X86-modes
            • Segmentation
            • Other-non-deterministic-computations
            • Environment
            • Paging
          • Implemented-opcodes
          • To-do
          • Proof-utilities
          • Peripherals
          • Model-validation
          • Modelcalls
          • Concrete-simulation-examples
          • Utils
          • Debugging-code-proofs
        • Axe
        • Execloader
      • Math
      • Testing-utilities
    • Basic-floating-point-utilities

    Make-special-bp

    Signature
    (make-special-bp kind nan-frac-bits sign exp-width frac-width) 
      → 
    (mv * * * *)
    Arguments
    nan-frac-bits — Guard (integerp nan-frac-bits).
    sign — Guard (integerp sign).
    exp-width — Guard (posp exp-width).
    frac-width — Guard (posp frac-width).

    Definitions and Theorems

    Function: make-special-bp

    (defun make-special-bp
           (kind nan-frac-bits sign exp-width frac-width)
      (declare (xargs :guard (and (integerp nan-frac-bits)
                                  (integerp sign)
                                  (posp exp-width)
                                  (posp frac-width))))
      (let ((__function__ 'make-special-bp))
        (declare (ignorable __function__))
        (case kind
          (indef (mv 1 (1- (ash 1 exp-width))
                     1 (ash 1 (1- frac-width))))
          (qnan (mv sign (1- (ash 1 exp-width))
                    1
                    (+ (ash 1 (1- frac-width))
                       nan-frac-bits)))
          (snan (mv sign (1- (ash 1 exp-width))
                    1 nan-frac-bits))
          (inf (mv sign (1- (ash 1 exp-width)) 1 0))
          (zero (mv sign 0 0 0))
          (denormal (mv 0 0 0 1))
          (otherwise (mv 0 1 1 0)))))

    Theorem: integerp-make-special-bp-0

    (defthm integerp-make-special-bp-0
     (implies
        (integerp sign)
        (integerp (mv-nth 0
                          (make-special-bp kind nan-frac-bits
                                           sign exp-width frac-width))))
     :rule-classes :type-prescription)

    Theorem: integerp-make-special-bp-1

    (defthm integerp-make-special-bp-1
      (integerp (mv-nth 1
                        (make-special-bp kind nan-frac-bits
                                         sign exp-width frac-width)))
      :rule-classes :type-prescription)

    Theorem: integerp-make-special-bp-2

    (defthm integerp-make-special-bp-2
      (integerp (mv-nth 2
                        (make-special-bp kind nan-frac-bits
                                         sign exp-width frac-width)))
      :rule-classes :type-prescription)

    Theorem: integerp-make-special-bp-3

    (defthm integerp-make-special-bp-3
     (implies
        (integerp nan-frac-bits)
        (integerp (mv-nth 3
                          (make-special-bp kind nan-frac-bits
                                           sign exp-width frac-width))))
     :rule-classes :type-prescription)