• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
    • Software-verification
      • Kestrel-books
        • Crypto-hdwallet
        • Apt
        • Error-checking
        • Fty-extensions
        • Isar
        • Kestrel-utilities
        • Set
        • Soft
        • C
        • Bv
          • Byte-to-bits
          • Bits-to-byte-little
          • Bits-to-byte
          • Byte-to-bits-little
          • Bvchop
          • Bvuminus
          • Bvplus
          • Bvminus
          • Imp-language
          • Event-macros
          • Java
          • Bitcoin
          • Ethereum
          • Yul
          • Zcash
          • ACL2-programming-language
          • Prime-fields
          • Json
          • Syntheto
          • File-io-light
          • Cryptography
          • Number-theory
          • Lists-light
          • Axe
          • Builtins
          • Solidity
          • Helpers
          • Htclient
          • Typed-lists-light
          • Arithmetic-light
        • X86isa
        • Axe
        • Execloader
      • Math
      • Testing-utilities
    • Bv

    Bvminus

    Bit-vector difference.

    ;; Compute the (modular) difference of X and Y.
    ;; TODO: Consider defining this in terms of bvplus and bvuminus.
    (defund bvminus (size x y)
      (declare (type (integer 0 *) size))
      (bvchop size (- (ifix x) (ifix y))))