Contents Menu Expand Light mode Dark mode Auto light/dark, in light mode Auto light/dark, in dark mode Skip to content
angr documentation
angr documentation
  • Introduction
  • Getting Started
  • Core Concepts
  • Build-in Analyses
  • Advanced Topics
  • Extending angr
  • angr examples
  • Frequently Asked Questions
  • Appendix
  • API Reference
    • angr.ail_callable
    • angr.ailment
    • angr.analyses
    • angr.angrdb
    • angr.annocfg
    • angr.blade
    • angr.block
    • angr.callable
    • angr.calling_conventions
    • angr.code_location
    • angr.codenode
    • angr.concretization_strategies
    • angr.distributed
    • angr.emulator
    • angr.engines
    • angr.errors
    • angr.exploration_techniques
    • angr.factory
    • angr.flirt
    • angr.keyed_region
    • angr.knowledge_base
    • angr.knowledge_plugins
    • angr.llm_client
    • angr.llm_models
    • angr.mcp
    • angr.misc
    • angr.procedures
    • angr.project
    • angr.protos
    • angr.rust
      • angr.rust.analyses
      • angr.rust.knowledge_plugins
      • angr.rust.mixins
      • angr.rust.optimization_passes
        • angr.rust.optimization_passes.cleanup_code_remover
        • angr.rust.optimization_passes.combo_register_rewriter
        • angr.rust.optimization_passes.deref_coercion_simplifier
        • angr.rust.optimization_passes.deref_coercion_simplifier_uninlined
        • angr.rust.optimization_passes.error_propagation_simplifier
        • angr.rust.optimization_passes.function_prototype_inference
        • angr.rust.optimization_passes.macro
        • angr.rust.optimization_passes.outliners
        • angr.rust.optimization_passes.pattern_match_simplifier
        • angr.rust.optimization_passes.pre_pattern_match_simplifier
        • angr.rust.optimization_passes.redundant_block_remover
        • angr.rust.optimization_passes.ret_expr_rewriter
        • angr.rust.optimization_passes.rust_calling_convention
        • angr.rust.optimization_passes.security_check_remover
        • angr.rust.optimization_passes.str_argument_simplifier
        • angr.rust.optimization_passes.struct_instantiation_simplifier
        • angr.rust.optimization_passes.struct_return_simplifier
        • angr.rust.optimization_passes.utils
      • angr.rust.sim_type
      • angr.rust.structuring
      • angr.rust.typehoon
      • angr.rust.utils
    • angr.rustylib
    • angr.serializable
    • angr.sim_manager
    • angr.sim_options
    • angr.sim_procedure
    • angr.sim_state
    • angr.sim_state_options
    • angr.sim_type
    • angr.sim_variable
    • angr.simos
    • angr.slicer
    • angr.state_hierarchy
    • angr.state_plugins
    • angr.storage
    • angr.tablespecs
    • angr.utils
    • angr.vaults
Back to top
View this page

angr.rust.optimization_passes.cleanup_code_remover¶

class angr.rust.optimization_passes.cleanup_code_remover.CleanupCodeRemover¶

Bases: OptimizationPass, CFGTransformationMixin, CFAMixin, SRDAMixin

Remove cleanup code such as deallocation and drop calls.

ARCHES = None¶
PLATFORMS = None¶
STAGE: OptimizationPassStage = 7¶
NAME = 'Remove cleanup code'¶
__init__(func, manager, **kwargs)¶
Parameters:

manager (Manager)

Next
angr.rust.optimization_passes.combo_register_rewriter
Previous
angr.rust.optimization_passes
Copyright © 2026, The angr Project contributors
Made with Sphinx and @pradyunsg's Furo
On this page
  • angr.rust.optimization_passes.cleanup_code_remover
    • CleanupCodeRemover
      • CleanupCodeRemover.ARCHES
      • CleanupCodeRemover.PLATFORMS
      • CleanupCodeRemover.STAGE
      • CleanupCodeRemover.NAME
      • CleanupCodeRemover.__init__()