• 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
      • 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
        • Aleobft
        • Aleovm
        • Leo
          • Grammar
          • Early-version
            • Json2ast
            • Testing
            • Definition
              • Flattening
              • Abstract-syntax
                • Expression
                • Syntax-abstraction
                • Statement
                • Files
                • Input-files
                • Identifiers
                • Types
                • Struct-init
                • Branch
                • Statements
                  • Asgop
                  • Constdecl
                  • Console
                    • Console-case
                    • Console-fix
                    • Consolep
                    • Console-equiv
                    • Console-log
                    • Console-error
                    • Console-assert
                      • Console-assert->arg
                      • Make-console-assert
                        • Change-console-assert
                      • Console-kind
                    • Vardecl
                    • Vardecl-result
                    • Statement-result
                    • Statement-list-result
                    • Constdecl-result
                    • Console-result
                    • Branch-result
                    • Branch-list-result
                    • Asgop-result
                    • Asgop-to-binop
                    • Statement-fixtypes
                  • Format-strings
                  • Input-syntax-abstraction
                  • Expressions
                  • Output-files
                  • Addresses
                  • Literals
                  • Characters
                  • Expression-list
                  • Statement-list
                  • Output-syntax-abstraction
                  • Struct-init-list
                  • Branch-list
                  • Annotations
                  • Abstract-syntax-trees
                  • Symbols
                  • Keywords
                  • Programs
                  • Packages
                  • Bit-sizes
                • Dynamic-semantics
                • 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
    • Console-assert

    Make-console-assert

    Basic constructor macro for console-assert structures.

    Syntax
    (make-console-assert [:arg <arg>]) 
    

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

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

    Definition

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

    Macro: make-console-assert

    (defmacro make-console-assert (&rest args)
      (std::make-aggregate 'console-assert
                           args '((:arg))
                           'make-console-assert
                           nil))

    Function: console-assert

    (defun console-assert (arg)
      (declare (xargs :guard (expressionp arg)))
      (declare (xargs :guard t))
      (let ((__function__ 'console-assert))
        (declare (ignorable __function__))
        (b* ((arg (mbe :logic (expression-fix arg)
                       :exec arg)))
          (cons :assert (list arg)))))