• 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
            • Deftrans
            • Splitgso
              • Splitgso-implementation
                • Replace-field-access-filepath-transunit-map
                • Replace-field-access-transunit-ensemble
                • Replace-field-access-fundef
                • Replace-field-access-extdecl-list
                • Replace-field-access-ident-list
                • Replace-field-access-extdecl
                • Replace-field-access-transunit
                • Splitgso-process-inputs-and-gen-everything
                • Replace-field-access-ident
                • Replace-field-access-const
                • Splitgso-fn
                  • Match-simple-declor-ident
                  • Splitgso-input-processing
                  • Splitgso-event-generation
                  • Splitgso-macro-definition
              • 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
    • Splitgso-implementation

    Splitgso-fn

    Event expansion of splitgso.

    Signature
    (splitgso-fn const-old 
                 const-new object-name object-filepath 
                 new-object1 new-object2 new-type1 
                 new-type2 split-members ctx state) 
     
      → 
    (mv erp event state)
    Arguments
    ctx — Guard (ctxp ctx).
    Returns
    event — Type (pseudo-event-formp event).

    Definitions and Theorems

    Function: splitgso-fn

    (defun splitgso-fn (const-old const-new object-name object-filepath
                                  new-object1 new-object2 new-type1
                                  new-type2 split-members ctx state)
      (declare (xargs :stobjs (state)))
      (declare (xargs :guard (ctxp ctx)))
      (let ((__function__ 'splitgso-fn))
        (declare (ignorable __function__))
        (b* (((mv erp event)
              (splitgso-process-inputs-and-gen-everything
                   const-old
                   const-new object-name object-filepath
                   new-object1 new-object2 new-type1
                   new-type2 split-members (w state)))
             ((when erp)
              (er-soft+ ctx t '(_) "~@0" erp)))
          (value event))))

    Theorem: pseudo-event-formp-of-splitgso-fn.event

    (defthm pseudo-event-formp-of-splitgso-fn.event
      (b* (((mv acl2::?erp acl2::?event acl2::?state)
            (splitgso-fn const-old
                         const-new object-name object-filepath
                         new-object1 new-object2 new-type1
                         new-type2 split-members ctx state)))
        (pseudo-event-formp event))
      :rule-classes :rewrite)