• 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
      • Riscv
      • Taspi
      • 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
        • Aleobft
        • Aleovm
        • Leo
          • Grammar
          • Early-version
            • Json2ast
            • Testing
            • Definition
              • Flattening
              • Abstract-syntax
              • Dynamic-semantics
                • Execution
                • Values
                • Dynamic-environments
                  • Call-dinfo
                  • Denv
                  • Update-var/const-dinfo-in-scope-list
                  • Update-var/const-dinfo-in-scope
                  • Var/const-dinfo
                    • Var/const-dinfo-fix
                    • Var/const-dinfo-equiv
                    • Make-var/const-dinfo
                      • Var/const-dinfo->value
                      • Var/const-dinfo->constp
                      • Change-var/const-dinfo
                      • Var/const-dinfop
                    • Update-var/const-dinfo
                    • Add-var/const-dinfo-to-scope
                    • Add-var/const-dinfo
                    • Var/const-dinfo-option
                    • Get-var/const-dinfo-from-scope-list
                    • Denv-option
                    • Get-var/const-dinfo-from-scope
                    • Vcscope-dinfo-option
                    • Vcscope-dinfo-list-option
                    • Vcscope-dinfo
                    • Screens
                    • Get-var/const-dinfo
                    • Vcscope-dinfo-option-result
                    • Vcscope-dinfo-list-result
                    • Vcscope-dinfo-result
                    • Dynamic-struct-environments
                    • Dynamic-function-environments
                    • Denv-result
                    • Init-denv
                    • Vcscope-dinfo-list
                    • Call-dinfo-list
                  • Arithmetic-operations
                  • Curve-parameterization
                  • Shift-operations
                  • Errors
                  • Value-expressions
                  • Locations
                  • Input-execution
                  • Edwards-bls12-generator
                  • Equality-operations
                  • Logical-operations
                  • Program-execution
                  • Ordering-operations
                  • Bitwise-operations
                  • Literal-evaluation
                  • Type-maps-for-struct-components
                  • Output-execution
                  • Tuple-operations
                  • Struct-operations
                • Compilation
                • Static-semantics
                • Concrete-syntax
        • Bigmems
        • Builtins
        • Execloader
        • Solidity
        • Paco
        • Concurrent-programs
        • Bls12-377-curves
      • Debugging
      • Community
      • Std
      • Proof-automation
      • Macro-libraries
      • ACL2
      • Interfacing-tools
      • Hardware-verification
      • Software-verification
      • Math
      • Testing-utilities
    • Var/const-dinfo

    Make-var/const-dinfo

    Basic constructor macro for var/const-dinfo structures.

    Syntax
    (make-var/const-dinfo [:value <value>] 
                          [:constp <constp>]) 
    

    This is the usual way to construct var/const-dinfo structures. It simply conses together a structure with the specified fields.

    This macro generates a new var/const-dinfo structure from scratch. See also change-var/const-dinfo, which can "change" an existing structure, instead.

    Definition

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

    Macro: make-var/const-dinfo

    (defmacro make-var/const-dinfo (&rest args)
      (std::make-aggregate 'var/const-dinfo
                           args '((:value) (:constp))
                           'make-var/const-dinfo
                           nil))

    Function: var/const-dinfo

    (defun var/const-dinfo (value constp)
      (declare (xargs :guard (and (valuep value) (booleanp constp))))
      (declare (xargs :guard t))
      (let ((__function__ 'var/const-dinfo))
        (declare (ignorable __function__))
        (b* ((value (mbe :logic (value-fix value)
                         :exec value))
             (constp (mbe :logic (acl2::bool-fix constp)
                          :exec constp)))
          (list (cons 'value value)
                (cons 'constp constp)))))