angr.analyses.outliner

class angr.analyses.outliner.Outliner

Bases: Analysis

Outliner takes a function and some locations and attempts to outline the blocks within these locations into a separate function.

__init__(func, ail_graph, src_loc, func_entry_loc=None, frontier=None, vvar_id_start=48879, block_addr_start=2864381952, min_step=1, liveness=None)
Parameters:
  • ail_graph (networkx.DiGraph[Block])

  • src_loc (Address)

  • func_entry_loc (Address | None)

  • frontier (set[Address] | None)

  • vvar_id_start (int)

  • block_addr_start (int)

  • min_step (int)

  • liveness (SLivenessAnalysis | None)

dropped_return_values

how many values the region defines for later use beyond the one a call can return; when nonzero, the outlined code loses them and the result is wrong

cleanup_callee_graph(g, func, entry_loc=None)

Remove all phi assignments whose all source variables are undefined in the graph, except those with a source at entry_loc (the callee’s own entry, whose values are the callee’s arguments).

Parameters:
  • g (DiGraph)

  • func (Function)

  • entry_loc (Address | None)

get_interface(g, func, entry_loc=None)

Recover the interface from a function AIL graph. A phi operand sourced from entry_loc is an argument.

Return type:

list[VirtualVariable]

Parameters:
  • g (networkx.DiGraph[Block])

  • func (Function)

  • entry_loc (Address | None)

Submodules