• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Community
    • 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
        • C
        • Soft
        • Bv
        • Imp-language
        • Ethereum
          • Mmp-trees
          • Semaphore
          • Database
          • Cryptography
          • Rlp
            • Rlp-tree
              • Rlp-tree-case
              • Rlp-tree-equiv
              • Rlp-treep
              • Rlp-tree-leaf
                • Rlp-tree-leaf->bytes
                • Make-rlp-tree-leaf
                  • Change-rlp-tree-leaf
                • Rlp-tree-branch
                • Rlp-tree-kind
                • Rlp-tree-list
                • Rlp-tree-fix
                • Rlp-tree-count
              • Rlp-decoding-executable
              • Rlp-decodability
              • Rlp-encoding
              • Rlp-decoding-declarative
              • Rlp-big-endian-representations
            • Transactions
            • Hex-prefix
            • Basics
            • Addresses
          • Event-macros
          • Java
          • Riscv
          • Bitcoin
          • Zcash
          • Yul
          • ACL2-programming-language
          • Prime-fields
          • Json
          • Syntheto
          • File-io-light
          • Cryptography
          • Number-theory
          • Axe
          • Lists-light
          • Builtins
          • Solidity
          • Helpers
          • Htclient
          • Typed-lists-light
          • Arithmetic-light
        • X86isa
        • Axe
        • Execloader
      • Math
      • Testing-utilities
    • Rlp-tree-leaf

    Make-rlp-tree-leaf

    Basic constructor macro for rlp-tree-leaf structures.

    Syntax
    (make-rlp-tree-leaf [:bytes <bytes>]) 
    

    This is the usual way to construct rlp-tree-leaf structures. It simply conses together a structure with the specified fields.

    This macro generates a new rlp-tree-leaf structure from scratch. See also change-rlp-tree-leaf, which can "change" an existing structure, instead.

    Definition

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

    Macro: make-rlp-tree-leaf

    (defmacro make-rlp-tree-leaf (&rest args)
      (std::make-aggregate 'rlp-tree-leaf
                           args '((:bytes))
                           'make-rlp-tree-leaf
                           nil))

    Function: rlp-tree-leaf

    (defun rlp-tree-leaf (bytes)
      (declare (xargs :guard (byte-listp bytes)))
      (declare (xargs :guard t))
      (let ((__function__ 'rlp-tree-leaf))
        (declare (ignorable __function__))
        (b* ((bytes (mbe :logic (byte-list-fix bytes)
                         :exec bytes)))
          (cons :leaf (list bytes)))))