• 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
          • Syntax-for-tools
          • Atc
            • Atc-implementation
              • Atc-abstract-syntax
              • Atc-pretty-printer
              • Atc-event-and-code-generation
                • Atc-symbolic-computation-states
                • Atc-symbolic-execution-rules
                • Atc-gen-ext-declon-lists
                • Atc-function-and-loop-generation
                • Atc-statement-generation
                  • Stmt-gin
                  • Atc-gen-term-type-formula
                  • Atc-gen-stmt
                  • Stmt-gout
                  • Atc-gen-expr
                  • Atc-gen-block-item-var-asg
                  • Atc-gen-return-stmt
                  • Atc-gen-mbt-block-items
                  • Atc-gen-if/ifelse-stmt
                  • Atc-gen-cfun-call-stmt
                  • Atc-gen-block-item-struct-scalar-asg
                  • Atc-gen-block-item-struct-array-asg
                  • Atc-gen-block-item-list-append
                  • Atc-gen-block-item-integer-asg
                  • Atc-gen-block-item-declon
                  • Atc-gen-block-item-array-asg
                  • Atc-gen-loop-stmt
                  • Atc-gen-block-item-list-cons
                  • Atc-uterm-to-components
                  • Atc-gen-block-item-stmt
                  • Lstmt-gin
                  • Atc-gen-block-item-list-one
                  • Atc-gen-block-item-var-decl
                  • Atc-gen-block-item-asg
                  • Atc-gen-call-result-and-endstate
                  • Lstmt-gout
                    • Lstmt-gout-fix
                    • Make-lstmt-gout
                      • Lstmt-goutp
                      • Lstmt-gout-equiv
                      • Change-lstmt-gout
                      • Lstmt-gout->names-to-avoid
                      • Lstmt-gout->test-term
                      • Lstmt-gout->limit-body
                      • Lstmt-gout->limit-all
                      • Lstmt-gout->events
                      • Lstmt-gout->body-term
                      • Lstmt-gout->thm-name
                      • Lstmt-gout->thm-index
                      • Lstmt-gout->affect
                      • Lstmt-gout->stmt
                    • Atc-ensure-formals-not-lost
                    • Atc-gen-block-item-list-none
                    • Atc-var-assignablep
                    • Atc-gen-uterm-result-and-type-formula
                    • Atc-remove-extobj-args
                    • Atc-affecting-term-for-let-p
                    • Atc-vars-assignablep
                    • Atc-make-lets-of-uterms
                    • Atc-symbolp-list
                    • Atc-make-mv-nth-terms
                    • Atc-make-mv-lets-of-uterms
                    • Atc-update-var-term-alist
                    • Irr-stmt-gout
                    • Irr-lstmt-gout
                  • Atc-gen-fileset
                  • Atc-gen-everything
                  • Atc-gen-obj-declon
                  • Atc-gen-fileset-event
                  • Atc-tag-tables
                  • Atc-expression-generation
                  • Atc-generation-contexts
                  • Atc-gen-wf-thm
                  • Term-checkers-atc
                  • Atc-variable-tables
                  • Term-checkers-common
                  • Atc-gen-init-fun-env-thm
                  • Atc-gen-appconds
                  • Read-write-variables
                  • Atc-gen-thm-assert-events
                  • Test*
                  • Atc-gen-prog-const
                  • Atc-gen-expr-bool
                  • Atc-theorem-generation
                  • Atc-tag-generation
                  • Atc-gen-expr-pure
                  • Atc-function-tables
                  • Atc-object-tables
                • Fty-pseudo-term-utilities
                • Atc-term-recognizers
                • Atc-input-processing
                • Atc-shallow-embedding
                • Atc-process-inputs-and-gen-everything
                • Atc-table
                • Atc-fn
                • Atc-pretty-printing-options
                • Atc-types
                • Atc-macro-definition
              • Atc-tutorial
            • Language
            • Representation
            • Transformation-tools
            • Insertion-sort
            • Pack
          • Bv
          • Imp-language
          • Event-macros
          • Java
          • Bitcoin
          • Ethereum
          • Yul
          • Zcash
          • ACL2-programming-language
          • 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
    • Lstmt-gout

    Make-lstmt-gout

    Basic constructor macro for lstmt-gout structures.

    Syntax
    (make-lstmt-gout [:stmt <stmt>] 
                     [:test-term <test-term>] 
                     [:body-term <body-term>] 
                     [:affect <affect>] 
                     [:limit-body <limit-body>] 
                     [:limit-all <limit-all>] 
                     [:events <events>] 
                     [:thm-name <thm-name>] 
                     [:thm-index <thm-index>] 
                     [:names-to-avoid <names-to-avoid>]) 
    

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

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

    Definition

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

    Macro: make-lstmt-gout

    (defmacro make-lstmt-gout (&rest args)
      (std::make-aggregate 'lstmt-gout
                           args
                           '((:stmt)
                             (:test-term)
                             (:body-term)
                             (:affect)
                             (:limit-body)
                             (:limit-all)
                             (:events)
                             (:thm-name)
                             (:thm-index)
                             (:names-to-avoid))
                           'make-lstmt-gout
                           nil))

    Function: lstmt-gout

    (defun lstmt-gout (stmt test-term body-term
                            affect limit-body limit-all events
                            thm-name thm-index names-to-avoid)
     (declare (xargs :guard (and (stmtp stmt)
                                 (pseudo-termp test-term)
                                 (pseudo-termp body-term)
                                 (symbol-listp affect)
                                 (pseudo-termp limit-body)
                                 (pseudo-termp limit-all)
                                 (pseudo-event-form-listp events)
                                 (symbolp thm-name)
                                 (posp thm-index)
                                 (symbol-listp names-to-avoid))))
     (declare (xargs :guard t))
     (let ((__function__ 'lstmt-gout))
      (declare (ignorable __function__))
      (b* ((stmt (mbe :logic (stmt-fix stmt) :exec stmt))
           (test-term (mbe :logic (pseudo-term-fix test-term)
                           :exec test-term))
           (body-term (mbe :logic (pseudo-term-fix body-term)
                           :exec body-term))
           (affect (mbe :logic (symbol-list-fix affect)
                        :exec affect))
           (limit-body (mbe :logic (pseudo-term-fix limit-body)
                            :exec limit-body))
           (limit-all (mbe :logic (pseudo-term-fix limit-all)
                           :exec limit-all))
           (events (mbe :logic (acl2::pseudo-event-form-list-fix events)
                        :exec events))
           (thm-name (mbe :logic (symbol-fix thm-name)
                          :exec thm-name))
           (thm-index (mbe :logic (pos-fix thm-index)
                           :exec thm-index))
           (names-to-avoid (mbe :logic (symbol-list-fix names-to-avoid)
                                :exec names-to-avoid)))
        (list (cons 'stmt stmt)
              (cons 'test-term test-term)
              (cons 'body-term body-term)
              (cons 'affect affect)
              (cons 'limit-body limit-body)
              (cons 'limit-all limit-all)
              (cons 'events events)
              (cons 'thm-name thm-name)
              (cons 'thm-index thm-index)
              (cons 'names-to-avoid
                    names-to-avoid)))))