• 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
          • Language
          • Representation
          • Transformation-tools
            • Simpadd0
              • Simpadd0-implementation
                • Simpadd0-event-generation
                  • Simpadd0-exprs/decls/stmts
                  • Simpadd0-expr-binary
                  • Simpadd0-fundef
                  • Simpadd0-gen-expr-pure-thm
                  • Simpadd0-gen-block-item-list-thm
                  • Simpadd0-gen-block-item-thm
                  • Simpadd0-gen-from-params
                  • Simpadd0-gen-stmt-thm
                  • Simpadd0-expr-unary
                  • Simpadd0-gout
                    • Simpadd0-goutp
                    • Simpadd0-gout-fix
                    • Make-simpadd0-gout
                      • Simpadd0-gout-equiv
                      • Simpadd0-gout->names-to-avoid
                      • Simpadd0-gout->events
                      • Change-simpadd0-gout
                      • Simpadd0-gout->vartys
                      • Simpadd0-gout->thm-name
                      • Simpadd0-gout->thm-index
                      • Simpadd0-gout->diffp
                    • Simpadd0-expr-const
                    • Simpadd0-gen-param-thms
                    • Simpadd0-block-item-stmt
                    • Simpadd0-block-item-list-one
                    • Simpadd0-expr-ident
                    • Simpadd0-stmt-return
                    • Simpadd0-gen-init-scope-thm
                    • Simpadd0-gin
                    • Simpadd0-expr-paren
                    • Simpadd0-filepath-transunit-map
                    • Simpadd0-extdecl-list
                    • Simpadd0-extdecl
                    • Simpadd0-transunit-ensemble
                    • Simpadd0-tyspecseq-to-type-and-value-kind
                    • Simpadd0-transunit
                    • Simpadd0-gen-var-hyps
                    • Simpadd0-gin-update
                    • Simpadd0-gen-everything
                    • Irr-simpadd0-gout
                  • Simpadd0-process-inputs-and-gen-everything
                  • Simpadd0-fn
                  • Simpadd0-input-processing
                  • Simpadd0-macro-definition
                • Simpadd0-expr-option
                • Simpadd0-structdeclor-list
                • Simpadd0-structdecl-list
                • Simpadd0-spec/qual-list
                • Simpadd0-param-declon-list
                • Simpadd0-initdeclor-list
                • Simpadd0-dirabsdeclor-option
                • Simpadd0-dirabsdeclor
                • Simpadd0-desiniter-list
                • Simpadd0-absdeclor-option
                • Simpadd0-strunispec
                • Simpadd0-structdeclor
                • Simpadd0-structdecl
                • Simpadd0-statassert
                • Simpadd0-spec/qual
                • Simpadd0-param-declor
                • Simpadd0-param-declon
                • Simpadd0-member-designor
                • Simpadd0-initer-option
                • Simpadd0-initdeclor
                • Simpadd0-genassoc-list
                • Simpadd0-genassoc
                • Simpadd0-expr
                • Simpadd0-enumspec
                • Simpadd0-enumer-list
                • Simpadd0-dirdeclor
                • Simpadd0-desiniter
                • Simpadd0-designor-list
                • Simpadd0-designor
                • Simpadd0-declor-option
                • Simpadd0-decl-spec-list
                • Simpadd0-decl-spec
                • Simpadd0-decl-list
                • Simpadd0-const-expr-option
                • Simpadd0-const-expr
                • Simpadd0-block-item-list
                • Simpadd0-align-spec
                • Simpadd0-absdeclor
                • Simpadd0-type-spec
                • Simpadd0-tyname
                • Simpadd0-stmt
                • Simpadd0-label
                • Simpadd0-initer
                • Simpadd0-expr-list
                • Simpadd0-enumer
                • Simpadd0-declor
                • Simpadd0-decl
                • Simpadd0-block-item
              • Deftrans
              • Splitgso
              • Constant-propagation
              • Split-fn
              • Copy-fn
              • Specialize
              • Split-all-gso
              • Rename
              • Utilities
            • 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
    • Simpadd0-gout

    Make-simpadd0-gout

    Basic constructor macro for simpadd0-gout structures.

    Syntax
    (make-simpadd0-gout [:events <events>] 
                        [:thm-name <thm-name>] 
                        [:thm-index <thm-index>] 
                        [:names-to-avoid <names-to-avoid>] 
                        [:vartys <vartys>] 
                        [:diffp <diffp>]) 
    

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

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

    Definition

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

    Macro: make-simpadd0-gout

    (defmacro make-simpadd0-gout (&rest args)
      (std::make-aggregate 'simpadd0-gout
                           args
                           '((:events)
                             (:thm-name)
                             (:thm-index)
                             (:names-to-avoid)
                             (:vartys)
                             (:diffp))
                           'make-simpadd0-gout
                           nil))

    Function: simpadd0-gout

    (defun simpadd0-gout (events thm-name
                                 thm-index names-to-avoid vartys diffp)
     (declare (xargs :guard (and (pseudo-event-form-listp events)
                                 (symbolp thm-name)
                                 (posp thm-index)
                                 (symbol-listp names-to-avoid)
                                 (ident-type-mapp vartys)
                                 (booleanp diffp))))
     (declare (xargs :guard t))
     (let ((__function__ 'simpadd0-gout))
      (declare (ignorable __function__))
      (b* ((events (mbe :logic (acl2::pseudo-event-form-list-fix events)
                        :exec events))
           (thm-name (mbe :logic (acl2::symbol-fix thm-name)
                          :exec thm-name))
           (thm-index (mbe :logic (pos-fix thm-index)
                           :exec thm-index))
           (names-to-avoid
                (mbe :logic (acl2::symbol-list-fix names-to-avoid)
                     :exec names-to-avoid))
           (vartys (mbe :logic (ident-type-map-fix vartys)
                        :exec vartys))
           (diffp (mbe :logic (acl2::bool-fix diffp)
                       :exec diffp)))
        (list (cons 'events events)
              (cons 'thm-name thm-name)
              (cons 'thm-index thm-index)
              (cons 'names-to-avoid names-to-avoid)
              (cons 'vartys vartys)
              (cons 'diffp diffp)))))