Table of Contents

Class FlowGraphBuilderExtensions

Namespace
Echo.ControlFlow.Construction
Assembly
Echo.ControlFlow.dll

Provides extensions to control flow graph builder implementations.

public static class FlowGraphBuilderExtensions
Inheritance
FlowGraphBuilderExtensions
Inherited Members

Methods

ConstructFlowGraph<TInstruction>(IFlowGraphBuilder<TInstruction>, long)

Constructs a control flow graph, starting at the provided entrypoint address.

public static ControlFlowGraph<TInstruction> ConstructFlowGraph<TInstruction>(this IFlowGraphBuilder<TInstruction> self, long entrypoint) where TInstruction : notnull

Parameters

self IFlowGraphBuilder<TInstruction>

The control flow graph builder to use.

entrypoint long

The address of the first instruction to traverse.

Returns

ControlFlowGraph<TInstruction>

The constructed control flow graph, with the entrypoint set to the node containing the entrypoint address provided in entrypoint.

Type Parameters

TInstruction

ConstructFlowGraph<TInstruction>(IFlowGraphBuilder<TInstruction>, long, IEnumerable<ExceptionHandlerRange>)

Constructs a control flow graph from a collection of instructions, starting at the provided entrypoint address.

public static ControlFlowGraph<TInstruction> ConstructFlowGraph<TInstruction>(this IFlowGraphBuilder<TInstruction> self, long entrypoint, IEnumerable<ExceptionHandlerRange> exceptionHandlers) where TInstruction : notnull

Parameters

self IFlowGraphBuilder<TInstruction>

The control flow graph builder to use.

entrypoint long

The address of the first instruction to traverse.

exceptionHandlers IEnumerable<ExceptionHandlerRange>

The set of exception handler ranges.

Returns

ControlFlowGraph<TInstruction>

The constructed control flow graph, with the entrypoint set to the node containing the entrypoint address provided in entrypoint.

Type Parameters

TInstruction