angr.analyses.decompiler.structured_codegen.base¶
- class angr.analyses.decompiler.structured_codegen.base.CConstantType¶
Bases:
EnumDescribes the value type of a CConstant class.
- INT = 0¶
- FLOAT = 1¶
- STRING = 2¶
- class angr.analyses.decompiler.structured_codegen.base.PositionMappingElement¶
Bases:
object- __init__(start, length, obj)¶
- start: int
- length: int
- obj
- class angr.analyses.decompiler.structured_codegen.base.PositionMapping¶
Bases:
object- DUPLICATION_CHECK = True¶
- __init__()¶
- items()¶
- add_mapping(start_pos, length, obj)¶
- class angr.analyses.decompiler.structured_codegen.base.InstructionMappingElement¶
Bases:
object- __init__(ins_addr, posmap_pos)¶
- ins_addr: int
- posmap_pos: int
- class angr.analyses.decompiler.structured_codegen.base.InstructionMapping¶
Bases:
object- __init__()¶
- items()¶
- add_mapping(ins_addr, posmap_pos)¶
- class angr.analyses.decompiler.structured_codegen.base.BaseStructuredCodeGenerator¶
Bases:
object- __init__(flavor=None, notes=None, expr_comments=None, stmt_comments=None, const_formats=None)¶
- map_ast_to_pos: dict[SimVariable, set[PositionMappingElement]] | None
- static adjust_mapping_positions(offset, pos_to_node, pos_to_addr, addr_to_pos)¶
Adjust positions in the mappings to account for the notes that are prepended to the text.
- Parameters:
offset (
int) – The length of the notes to prepend.pos_to_node (
PositionMapping) – The position to node mapping.pos_to_addr (
PositionMapping) – The position to address mapping.addr_to_pos (
InstructionMapping) – The address to position mapping.
- Return type:
- Returns:
Adjusted mappings.
- reapply_options(options)¶