• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Community
    • Proof-automation
    • ACL2
    • Macro-libraries
    • 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
                  • Sse-max/min-special
                  • Sse-max/min
                  • Sp-sse-add/sub/mul/div/max/min
                  • Dp-sse-add/sub/mul/div/max/min
                  • Sp-sse-max/min
                  • Dp-sse-max/min
                  • Sse-max/min-sign
                  • Floating-point-add-mul
                  • Floating-point-sqrt-specifications
                    • Sp-sse-sqrt
                      • Dp-sse-sqrt
                  • Basic-floating-point-utilities
                  • 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
    • Floating-point-sqrt-specifications

    Sp-sse-sqrt

    Signature
    (sp-sse-sqrt x mxcsr) → (mv * * *)

    Definitions and Theorems

    Function: sp-sse-sqrt

    (defun sp-sse-sqrt (x mxcsr)
      (declare (type (unsigned-byte 32) x)
               (type (unsigned-byte 32) mxcsr))
      (let ((__function__ 'sp-sse-sqrt))
        (declare (ignorable __function__))
        (sse-sqrt x mxcsr 8 23)))

    Theorem: n32p-result-sp-sse-sqrt

    (defthm n32p-result-sp-sse-sqrt
     (unsigned-byte-p 32 (mv-nth 1 (sp-sse-sqrt x mxcsr)))
     :rule-classes
     (:rewrite
      (:type-prescription
          :corollary (natp (mv-nth 1 (sp-sse-sqrt x mxcsr)))
          :hints
          (("Goal" :in-theory '(unsigned-byte-p integer-range-p natp))))
      (:linear
       :corollary (and (<= 0 (mv-nth 1 (sp-sse-sqrt x mxcsr)))
                       (< (mv-nth 1 (sp-sse-sqrt x mxcsr))
                          4294967296))
       :hints
       (("Goal"
            :in-theory '(unsigned-byte-p integer-range-p (:e expt)))))))

    Theorem: n32p-mxcsr-sp-sse-sqrt

    (defthm n32p-mxcsr-sp-sse-sqrt
     (unsigned-byte-p 32 (mv-nth 2 (sp-sse-sqrt x mxcsr)))
     :rule-classes
     (:rewrite
      (:type-prescription
          :corollary (natp (mv-nth 2 (sp-sse-sqrt x mxcsr)))
          :hints
          (("Goal" :in-theory '(unsigned-byte-p integer-range-p natp))))
      (:linear
       :corollary (and (<= 0 (mv-nth 2 (sp-sse-sqrt x mxcsr)))
                       (< (mv-nth 2 (sp-sse-sqrt x mxcsr))
                          4294967296))
       :hints
       (("Goal"
            :in-theory '(unsigned-byte-p integer-range-p (:e expt)))))))