• 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
          • Implementation
            • Jenkins-hash
              • Jenkins-acc-string-nonfixnum-index
              • Jenkins-acc-string-fixnum-index
              • Jenkins-acc-true-list
              • Jenkins-acc-nat
              • Jenkins-acc-ACL2-number
              • Jenkins-acc-string
              • Jenkins-acc-integer
              • Jenkins-acc-complex-rational
              • Jenkins-acc-atom
              • Jenkins-acc-symbol
              • Jenkins-acc-rational
              • Jenkins-acc-character
              • Jenkins-acc-byte
                • U32-+
                • U32-ash
              • Binary-tree
              • Tree-split
              • Heap<
              • Tree-join
              • Tree-delete
              • Rotations
              • Tree-insert
              • Tree-intersect
              • Tree-join-at
              • Tree-union
              • Hash
              • Tree-in
              • Tree-diff
              • Tree-nodes-count
            • Setp
            • Right
            • Left
            • Head
            • Double-containment
            • Subset
            • Intersect
            • Insert
            • In
            • Delete
            • Union
            • Diff
            • From-list
            • To-list
            • Set-equiv
            • Sfix
            • Pick-a-point
            • Cardinality
            • Set-induct
            • Set-bi-induct
            • Emptyp
          • Soft
          • C
          • Bv
          • 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
    • Jenkins-hash

    Jenkins-acc-byte

    Signature
    (jenkins-acc-byte byte acc) → acc$
    Returns
    acc$ — Type (unsigned-byte-p 32 acc$).

    Definitions and Theorems

    Function: jenkins-acc-byte$inline

    (defun jenkins-acc-byte$inline (byte acc)
      (declare
           (type (unsigned-byte 8) byte)
           (type (unsigned-byte 32) acc)
           (xargs :type-prescription (natp (jenkins-acc-byte byte acc)))
           (optimize (speed 3) (safety 0)))
      (declare (xargs :guard t))
      (the (unsigned-byte 32)
           (let* ((acc (u32-+ acc byte))
                  (acc (u32-+ acc (u32-ash acc 10))))
             (logxor acc (u32-ash acc -6)))))

    Theorem: return-type-of-jenkins-acc-byte

    (defthm return-type-of-jenkins-acc-byte
      (b* ((acc$ (jenkins-acc-byte$inline byte acc)))
        (unsigned-byte-p 32 acc$))
      :rule-classes :rewrite)