Table of Contents

Class OffsetNodeIdentifier<TInstruction>

Namespace
Echo.ControlFlow.Serialization.Dot
Assembly
Echo.ControlFlow.dll

Provides an implementation of the INodeIdentifier interface, that returns the offset of the basic block as unique identifiers.

public class OffsetNodeIdentifier<TInstruction> : INodeIdentifier where TInstruction : notnull

Type Parameters

TInstruction

The type of instructions stored in the basic block.

Inheritance
OffsetNodeIdentifier<TInstruction>
Implements
Inherited Members

Properties

Instance

Provides a default instance of the OffsetNodeIdentifier<TInstruction> class.

public static OffsetNodeIdentifier<TInstruction> Instance { get; }

Property Value

OffsetNodeIdentifier<TInstruction>

Methods

GetIdentifier(INode)

Gets the identifier assigned to the node.

public long GetIdentifier(INode node)

Parameters

node INode

The node.

Returns

long

The identifier.