• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
      • Apt
      • Zfc
      • Acre
      • Milawa
      • Smtlink
      • Abnf
      • Vwsim
      • Isar
      • Wp-gen
      • Dimacs-reader
      • Pfcs
      • Legacy-defrstobj
      • C
      • Proof-checker-array
      • Soft
      • Farray
      • Rp-rewriter
      • Instant-runoff-voting
      • Imp-language
        • Semantics
        • Abstract-syntax
          • Aexp
          • Bexp
            • Bexp-case
            • Bexp-fix
            • Bexpp
            • Bexp-count
            • Bexp-equiv
            • Bexp-less
            • Bexp-equal
            • Bexp-and
            • Bexp-const
              • Make-bexp-const
                • Bexp-const->value
                • Change-bexp-const
              • Bexp-not
              • Bexp-kind
            • Comm
            • Comm-list
            • Command-fixtypes
          • Interpreter
        • Sidekick
        • Ethereum
        • Leftist-trees
        • Java
        • Riscv
        • Taspi
        • Bitcoin
        • Zcash
        • Des
        • X86isa
        • Sha-2
        • Yul
        • Proof-checker-itp13
        • Regex
        • ACL2-programming-language
        • Json
        • Jfkr
        • Equational
        • Cryptography
        • Axe
        • Poseidon
        • Where-do-i-place-my-book
        • Aleo
        • 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
    • Bexp-const

    Make-bexp-const

    Basic constructor macro for bexp-const structures.

    Syntax
    (make-bexp-const [:value <value>]) 
    

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

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

    Definition

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

    Macro: make-bexp-const

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

    Function: bexp-const

    (defun bexp-const (value)
      (declare (xargs :guard (booleanp value)))
      (declare (xargs :guard t))
      (let ((__function__ 'bexp-const))
        (declare (ignorable __function__))
        (b* ((value (mbe :logic (acl2::bool-fix value)
                         :exec value)))
          (cons :const (list value)))))