• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
      • Apt
      • Zfc
      • Acre
      • Milawa
      • Smtlink
      • Abnf
      • Vwsim
      • Isar
      • Wp-gen
      • Dimacs-reader
      • Pfcs
      • Legacy-defrstobj
      • Proof-checker-array
      • Soft
      • C
        • Syntax-for-tools
        • Atc
        • Language
        • Transformation-tools
          • Simpadd0
          • Splitgso
          • Constant-propagation
          • Specialize
            • Specialize-implementation
              • Param-declon-list-remove-param-by-ident
              • Specialize-fundef
              • Specialize-extdecl
              • Specialize-filepath-transunit-map
              • Specialize-extdecl-list
              • Specialize-transunit-ensemble
                • Param-declon-to-decl
                • Specialize-transunit
                • Ident-from-param-declon
                • Specialize-event-generation
                • Specialize-input-processing
            • Split-fn
            • Split-fn-when
            • Split-all-gso
            • Copy-fn
            • Rename
            • Utilities
          • Representation
          • Insertion-sort
          • Pack
        • Farray
        • Rp-rewriter
        • Instant-runoff-voting
        • Imp-language
        • Sidekick
        • Leftist-trees
        • Java
        • Riscv
        • Taspi
        • Bitcoin
        • Des
        • Ethereum
        • X86isa
        • Sha-2
        • Yul
        • Zcash
        • Proof-checker-itp13
        • Regex
        • ACL2-programming-language
        • Json
        • Jfkr
        • Equational
        • Cryptography
        • Poseidon
        • Where-do-i-place-my-book
        • Axe
        • Aleo
        • Bigmems
        • Builtins
        • Execloader
        • Solidity
        • Paco
        • Concurrent-programs
        • Bls12-377-curves
      • Debugging
      • Community
      • Std
      • Proof-automation
      • Macro-libraries
      • ACL2
      • Interfacing-tools
      • Hardware-verification
      • Software-verification
      • Math
      • Testing-utilities
    • Specialize-implementation

    Specialize-transunit-ensemble

    Transform a translation unit ensemble.

    Signature
    (specialize-transunit-ensemble tunits target-fn target-param const) 
      → 
    new-tunits
    Arguments
    tunits — Guard (transunit-ensemblep tunits).
    target-fn — Guard (identp target-fn).
    target-param — Guard (identp target-param).
    const — Guard (exprp const).
    Returns
    new-tunits — Type (transunit-ensemblep new-tunits).

    Definitions and Theorems

    Function: specialize-transunit-ensemble

    (defun specialize-transunit-ensemble
           (tunits target-fn target-param const)
      (declare (xargs :guard (and (transunit-ensemblep tunits)
                                  (identp target-fn)
                                  (identp target-param)
                                  (exprp const))))
      (b* (((transunit-ensemble tunits) tunits))
        (transunit-ensemble (specialize-filepath-transunit-map
                                 tunits.unwrap
                                 target-fn target-param const))))

    Theorem: transunit-ensemblep-of-specialize-transunit-ensemble

    (defthm transunit-ensemblep-of-specialize-transunit-ensemble
      (b* ((new-tunits (specialize-transunit-ensemble
                            tunits target-fn target-param const)))
        (transunit-ensemblep new-tunits))
      :rule-classes :rewrite)