• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
      • Apt
      • Zfc
      • Acre
      • Milawa
      • Smtlink
      • Abnf
      • Vwsim
      • Isar
      • Wp-gen
      • Dimacs-reader
      • Pfcs
      • Legacy-defrstobj
      • Proof-checker-array
      • Soft
      • C
      • Farray
      • Rp-rewriter
      • Instant-runoff-voting
      • Imp-language
      • Sidekick
      • Leftist-trees
      • Java
        • Atj
        • Aij
        • Language
          • Syntax
          • Semantics
            • Primitive-function-macros
            • Primitive-values
              • Floating-pointx-value
              • Doublex-value-fns
              • Primitivex-value
              • Floatx-value-fns
              • Primitive-value
              • Numericx-value
              • Numeric-value
              • Integral-value
              • Int-value
              • Char-value
              • Byte-value
                • Byte-value-fix
                • Byte-valuep
                • Byte-value-equiv
                • Make-byte-value
                  • Byte-value->int
                  • Change-byte-value
                • Short-value
                • Long-value
                • Float-value
                • Double-value
                • Boolean-value
                • Floating-point-value
                • Disjoint-primitive-values
                • Short-value-list
                • Long-value-list
                • Int-value-list
                • Float-value-list
                • Double-value-list
                • Char-value-list
                • Byte-value-list
                • Boolean-value-list
              • Floating-point-placeholders
              • Pointers
              • Floating-point-value-set-parameters
              • Values
              • Primitive-operations
              • Primitive-conversions
              • Reference-values
        • Taspi
        • Riscv
        • Bitcoin
        • Des
        • Ethereum
        • X86isa
        • Sha-2
        • Yul
        • Zcash
        • Proof-checker-itp13
        • Regex
        • ACL2-programming-language
        • Json
        • Jfkr
        • Equational
        • Cryptography
        • Poseidon
        • Where-do-i-place-my-book
        • Axe
        • Aleo
        • Bigmems
        • Builtins
        • Execloader
        • Solidity
        • Paco
        • Concurrent-programs
        • Bls12-377-curves
      • Debugging
      • Std
      • Community
      • Proof-automation
      • ACL2
      • Macro-libraries
      • Interfacing-tools
      • Hardware-verification
      • Software-verification
      • Math
      • Testing-utilities
    • Byte-value

    Make-byte-value

    Basic constructor macro for byte-value structures.

    Syntax
    (make-byte-value [:int <int>]) 
    

    This is the usual way to construct byte-value structures. It simply conses together a structure with the specified fields.

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

    Definition

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

    Macro: make-byte-value

    (defmacro make-byte-value (&rest args)
      (std::make-aggregate 'byte-value
                           args '((:int))
                           'make-byte-value
                           nil))

    Function: byte-value

    (defun byte-value (int)
      (declare (xargs :guard (sbyte8p int)))
      (declare (xargs :guard t))
      (let ((__function__ 'byte-value))
        (declare (ignorable __function__))
        (b* ((int (mbe :logic (acl2::sbyte8-fix int)
                       :exec int)))
          (cons :byte (list int)))))