• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Community
    • 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
            • Splitgso
            • Constant-propagation
            • Split-fn
            • Specialize
              • Param-declon-list-remove-param-by-ident
              • Specialize-fundef
              • Specialize-extdecl
              • Specialize-filepath-transunit-map
              • Specialize-transunit-ensemble
              • Specialize-extdecl-list
                • Param-declon-to-decl
                • Specialize-transunit
                • Ident-from-param-declon
              • Split-all-gso
              • Copy-fn
              • 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
    • Specialize

    Specialize-extdecl-list

    Transform a list of external declarations.

    Signature
    (specialize-extdecl-list extdecls target-fn target-param const) 
      → 
    new-extdecls
    Arguments
    extdecls — Guard (extdecl-listp extdecls).
    target-fn — Guard (identp target-fn).
    target-param — Guard (identp target-param).
    const — Guard (exprp const).
    Returns
    new-extdecls — Type (extdecl-listp new-extdecls).

    Definitions and Theorems

    Function: specialize-extdecl-list

    (defun specialize-extdecl-list
           (extdecls target-fn target-param const)
     (declare (xargs :guard (and (extdecl-listp extdecls)
                                 (identp target-fn)
                                 (identp target-param)
                                 (exprp const))))
     (let ((__function__ 'specialize-extdecl-list))
      (declare (ignorable __function__))
      (b* (((when (endp extdecls)) nil)
           ((mv found extdecl)
            (specialize-extdecl (first extdecls)
                                target-fn target-param const)))
       (cons
           extdecl
           (if found (extdecl-list-fix (rest extdecls))
             (specialize-extdecl-list (rest extdecls)
                                      target-fn target-param const))))))

    Theorem: extdecl-listp-of-specialize-extdecl-list

    (defthm extdecl-listp-of-specialize-extdecl-list
      (b* ((new-extdecls (specialize-extdecl-list
                              extdecls target-fn target-param const)))
        (extdecl-listp new-extdecls))
      :rule-classes :rewrite)