• 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
          • Primitive-functions
          • Translated-terms
            • Tterm-constant-list->value-list
            • Tterm-free-vars
            • Tterm-option
            • Tterm-constant-list
            • Tterm-case-constant-listp
            • Lift-term
            • Tterms
              • Tterm
                • Tterm-case
                • Tterm-equiv
                • Tterm-call
                • Ttermp
                • Tterm-constant
                  • Tterm-constant->value
                  • Make-tterm-constant
                    • Change-tterm-constant
                  • Tterm-variable
                  • Tterm-kind
                  • Tterm-fix
                  • Tterm-count
                • Tfunction
                • Tterm-list
            • Values
            • Evaluation
            • Program-equivalence
            • Functions
            • Packages
            • Programs
            • Interpreter
            • Evaluation-states
          • 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
    • Tterm-constant

    Make-tterm-constant

    Basic constructor macro for tterm-constant structures.

    Syntax
    (make-tterm-constant [:value <value>]) 
    

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

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

    Definition

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

    Macro: make-tterm-constant

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

    Function: tterm-constant

    (defun tterm-constant (value)
      (declare (xargs :guard (valuep value)))
      (declare (xargs :guard t))
      (let ((__function__ 'tterm-constant))
        (declare (ignorable __function__))
        (b* ((value (mbe :logic (value-fix value)
                         :exec value)))
          (cons :constant (list value)))))