• 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
                • Int-valuep
                • Int-value-fix
                • Int-value-equiv
                • Make-int-value
                  • Int-value->int
                  • Change-int-value
                • Char-value
                • 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
    • Int-value

    Make-int-value

    Basic constructor macro for int-value structures.

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

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

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

    Definition

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

    Macro: make-int-value

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

    Function: int-value

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