Table of Contents

Class VmExecutionResult

Namespace
Pl0.Vm
Assembly
Pl0.Vm.dll

Result of executing a P-Code program on the VM.

public sealed class VmExecutionResult
Inheritance
VmExecutionResult
Inherited Members

Constructors

VmExecutionResult(int[], int, IReadOnlyList<VmDiagnostic>)

Creates a new execution result.

public VmExecutionResult(int[] stackSnapshot, int top, IReadOnlyList<VmDiagnostic> diagnostics)

Parameters

stackSnapshot int[]

Captured stack snapshot.

top int

Top-of-stack index.

diagnostics IReadOnlyList<VmDiagnostic>

Diagnostics produced during execution.

Properties

Diagnostics

Gets the execution diagnostics.

public IReadOnlyList<VmDiagnostic> Diagnostics { get; }

Property Value

IReadOnlyList<VmDiagnostic>

StackSnapshot

Gets the stack snapshot.

public int[] StackSnapshot { get; }

Property Value

int[]

Success

Gets a value indicating whether execution completed without diagnostics.

public bool Success { get; }

Property Value

bool

Top

Gets the top-of-stack index.

public int Top { get; }

Property Value

int