• 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
        • 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
          • Values
            • Integer-values
              • Integer-operations
              • Bit-size
              • Uint
                • Uintp
                • Uint-fix
                • Uint-equiv
                • Make-uint
                • Change-uint
                  • Uint->value
                  • Uint->size
                • Int
              • Boolean-values
          • Helpers
          • Htclient
          • Typed-lists-light
          • Arithmetic-light
        • X86isa
        • Axe
        • Execloader
      • Math
      • Testing-utilities
    • Uint

    Change-uint

    Modifying constructor for uint structures.

    Syntax
    (change-uint x 
                 [:size <size>] 
                 [:value <value>]) 
    

    This is an often useful alternative to make-uint.

    We construct a new uint structure that is a copy of x, except that you can explicitly change some particular fields. Any fields you don't mention just keep their values from x.

    Definition

    This is an ordinary change- macro introduced by fty::defprod.

    Macro: change-uint

    (defmacro change-uint (x &rest args)
      (std::change-aggregate 'uint
                             x args
                             '((:size . uint->size)
                               (:value . uint->value))
                             'change-uint
                             'nil))