mirror of
https://github.com/sampletext32/ParkanPlayground.git
synced 2025-07-01 12:40:25 +03:00
22 lines
553 B
C#
22 lines
553 B
C#
namespace X86Disassembler.Analysers;
|
|
|
|
/// <summary>
|
|
/// Represents a disassembled function with its control flow graph
|
|
/// </summary>
|
|
public class AsmFunction
|
|
{
|
|
/// <summary>
|
|
/// The starting address of the function
|
|
/// </summary>
|
|
public ulong Address { get; set; }
|
|
|
|
/// <summary>
|
|
/// The list of basic blocks that make up the function
|
|
/// </summary>
|
|
public List<InstructionBlock> Blocks { get; set; } = [];
|
|
|
|
public override string ToString()
|
|
{
|
|
return $"{Address:X8}\n{string.Join("\n", Blocks)}";
|
|
}
|
|
} |