• 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
          • Syntax-for-tools
          • Atc
          • Transformation-tools
            • Simpadd0
            • Proof-generation
            • Split-gso
            • Wrap-fn
              • Wrap-fn-implementation
                • Initdeclor-list-wrap-fn-add-wrapper-def
                • Declor-wrap-fn-add-wrapper-def
                • Fundef-wrap-fn-add-wrapper-def
                • Extdecl-wrap-fn-add-wrapper-def
                • Decl-wrap-fn-add-wrapper-def
                • Extdecl-list-wrap-fn
                • Wrap-fn-process-param-declon-list-loop
                • Filepath-transunit-map-wrap-fn
                • Wrap-fn-process-param-declon-list
                • Transunit-wrap-fn
                • Transunit-ensemble-wrap-fn
                • Code-ensemble-wrap-fn
                • Code-ensemble-wrap-fn-multiple
                • Declor-wrap-fn-make-wrapper
                  • Dirdeclor-wrap-fn-make-wrapper
                  • Wrap-fn-input-processing
                  • Wrap-fn-event-generation
              • Constant-propagation
              • Specialize
              • Split-fn
              • Split-fn-when
              • Split-all-gso
              • Copy-fn
              • Variables-in-computation-states
              • Rename
              • Utilities
              • Proof-generation-theorems
              • Input-processing
            • Language
            • Representation
            • Insertion-sort
            • Pack
          • Soft
          • Bv
          • Imp-language
          • Ethereum
          • Event-macros
          • Java
          • 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
    • Wrap-fn-implementation

    Declor-wrap-fn-make-wrapper

    Make the wrapper function declarator if the parameter list is supported.

    Signature
    (declor-wrap-fn-make-wrapper declor 
                                 wrapper-name arg-base-name blacklist) 
     
      → 
    (mv blacklist found-paramsp can-create-wrapperp declor$ idents)
    Arguments
    declor — Guard (declorp declor).
    wrapper-name — Guard (identp wrapper-name).
    arg-base-name — Guard (identp arg-base-name).
    blacklist — Guard (ident-setp blacklist).
    Returns
    blacklist — Type (ident-setp blacklist).
    found-paramsp — Type (booleanp found-paramsp).
    can-create-wrapperp — Type (booleanp can-create-wrapperp).
    declor$ — Type (declorp declor$).
    idents — Type (ident-listp idents).

    Also returns an updated blacklist and identifier list corresponding to the parameters.

    The found-paramsp return value is t iff function parameters were found, as expected. The can-create-wrapperp return is t iff the parameter list was in the supported set.

    Definitions and Theorems

    Theorem: true-listp-of-declor-wrap-fn-make-wrapper.idents

    (defthm true-listp-of-declor-wrap-fn-make-wrapper.idents
      (b* (((mv ?blacklist ?found-paramsp
                ?can-create-wrapperp ?declor$ ?idents)
            (declor-wrap-fn-make-wrapper
                 declor
                 wrapper-name arg-base-name blacklist)))
        (true-listp idents))
      :rule-classes :type-prescription)