• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Community
    • 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
        • C
        • Soft
        • Bv
        • Imp-language
        • Ethereum
        • Event-macros
        • Java
          • Atj
            • Atj-implementation
              • Atj-types
              • Atj-java-primitive-array-model
              • Atj-java-abstract-syntax
              • Atj-input-processing
              • Atj-java-pretty-printer
              • Atj-code-generation
                • Atj-gen-test-method
                • Atj-shallow-code-generation
                • Atj-common-code-generation
                • Atj-shallow-quoted-constant-generation
                • Atj-pre-translation
                  • Atj-pre-translation-array-analysis
                  • Atj-pre-translation-type-annotation
                  • Atj-pre-translation-var-reuse
                  • Atj-pre-translate
                  • Atj-pre-translation-multiple-values
                    • Atj-restore-mv-calls-in-term
                    • Atj-restore-mv-calls-in-body
                    • Atj-pre-translation-no-aij-types-analysis
                    • Atj-pre-translation-var-renaming
                    • Atj-pre-translation-remove-return-last
                    • Atj-pre-translation-disjunctions
                    • Atj-pre-translation-trivial-vars
                    • Atj-pre-translation-conjunctions
                    • Atj-pre-translation-unused-vars
                    • Atj-pre-translation-remove-dead-if-branches
                  • Atj-gen-everything
                  • Atj-name-translation
                  • Atj-gen-test-cunit
                  • Atj-gen-test-class
                  • Atj-gen-main-file
                  • Atj-post-translation
                  • Atj-deep-code-generation
                  • Atj-gen-test-methods
                  • Atj-gen-test-file
                  • Atj-gen-env-file
                  • Atj-gen-output-subdir
                • Atj-java-primitives
                • Atj-java-primitive-arrays
                • Atj-type-macros
                • Atj-java-syntax-operations
                • Atj-fn
                • Atj-library-extensions
                • Atj-java-input-types
                • Atj-test-structures
                • Aij-notions
                • Atj-macro-definition
              • Atj-tutorial
            • Aij
            • Language
          • Riscv
          • Bitcoin
          • Zcash
          • Yul
          • ACL2-programming-language
          • Prime-fields
          • Json
          • Syntheto
          • File-io-light
          • Cryptography
          • Number-theory
          • Axe
          • Lists-light
          • Builtins
          • Solidity
          • Helpers
          • Htclient
          • Typed-lists-light
          • Arithmetic-light
        • X86isa
        • Axe
        • Execloader
      • Math
      • Testing-utilities
    • Atj-pre-translation-multiple-values

    Atj-restore-mv-calls-in-body

    Restore mv calls in a translated function body.

    Signature
    (atj-restore-mv-calls-in-body body out-types wrld) → new-body
    Arguments
    body — Guard (pseudo-termp body).
    out-types — Guard (atj-type-listp out-types).
    wrld — Guard (plist-worldp wrld).
    Returns
    new-body — Type (pseudo-termp new-body), given (pseudo-termp body).

    This is the top-level call of atj-restore-mv-calls-in-term: see that function for details. We initialize numres with the number of output types of the function whose body we are processing.

    Definitions and Theorems

    Function: atj-restore-mv-calls-in-body

    (defun atj-restore-mv-calls-in-body (body out-types wrld)
      (declare (xargs :guard (and (pseudo-termp body)
                                  (atj-type-listp out-types)
                                  (plist-worldp wrld))))
      (let ((__function__ 'atj-restore-mv-calls-in-body))
        (declare (ignorable __function__))
        (b* ((numres (len out-types))
             ((unless (> numres 0))
              (raise "Internal error: no output types.")))
          (atj-restore-mv-calls-in-term body (len out-types)
                                        wrld))))

    Theorem: pseudo-termp-of-atj-restore-mv-calls-in-body

    (defthm pseudo-termp-of-atj-restore-mv-calls-in-body
     (implies
       (pseudo-termp body)
       (b*
         ((new-body (atj-restore-mv-calls-in-body body out-types wrld)))
         (pseudo-termp new-body)))
     :rule-classes :rewrite)