mapper
DEFAULT_MAPPER = BUILTIN_MAPPERS['default_mapper']
module-attribute
The default mapping function used to match decompiled functions to source functions.
Mapper = Callable[[DecompiledFunction, SourceFunction], bool]
module-attribute
Callable type describing a mapping function that determines if a decompiled function corresponds to a given source function.
name_mapper(function, uid)
Maps a decompiled function to a source function by comparing their function names.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
function
|
DecompiledFunction
|
The decompiled function to map. |
required |
uid
|
Union[SourceFunction, str]
|
The source function UID or a |
required |
Returns:
| Type | Description |
|---|---|
bool
|
|