• 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
            • Constant-propagation
            • Split-fn
            • Copy-fn
            • Specialize
            • Split-all-gso
            • Rename
              • Ident-ident-subst
              • Rename-filepath-transunit-map
              • Rename-transunit-ensemble
              • Rename-fundef
              • Rename-extdecl-list
              • Rename-transunit
              • Rename-ident-list
              • Rename-extdecl
              • Rename-ident
              • Rename-const
              • Ident-ident-alist
            • 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
  • Transformation-tools

Rename

A C-to-C transformation to rename identifiers.

This transformation will rename all identifiers according to a provided alist. Note, it does nothing to ensure substitutions preserve semantic equivalence. For instance, a substitution might introduce variable names which conflict with existing variables.

Eventually we may wish for a renaming transformation with options to limit substitution by type of identifier, scope, restrict to free variables, etc.

Subtopics

Ident-ident-subst
Rename-filepath-transunit-map
Rename-transunit-ensemble
Transform a translation unit ensemble.
Rename-fundef
Rename-extdecl-list
Rename-transunit
Rename-ident-list
Rename-extdecl
Rename-ident
Rename-const
Ident-ident-alist
An alist mapping identp to identp.