angr.analyses.decompiler.semantic_naming.pointer_naming

Semantic variable naming for pointer variables.

This module detects variables used as pointers and names them appropriately (e.g., ptr, p, cur, next, prev).

class angr.analyses.decompiler.semantic_naming.pointer_naming.PointerNaming

Bases: ClinicNamingBase

Detects variables used as pointers and renames them.

Pointer patterns detected: - Variables used as addresses in Load/Store operations - Variables involved in pointer arithmetic - Variables passed to functions expecting pointers - Variables receiving pointer-returning function results - Variables used in linked-list patterns (next/prev access)

PRIORITY: int = 45
__init__(*args, **kwargs)
analyze()

Analyze the graph for pointer variable patterns.

Return type:

dict[SimVariable, str]

Returns:

Dictionary mapping SimVariable to new name