QuintConnect.ITF.Trace (quint_connect v0.1.0)

Copy Markdown View Source

Decoder for Informal Trace Format JSON emitted by Quint.

Summary

Functions

Decode ITF JSON binary into QuintConnect.ITF.Trace.

Decode ITF JSON binary and raise on failure.

Decode ITF JSON file.

Types

t()

@type t() :: %QuintConnect.ITF.Trace{
  loop: term(),
  meta: map() | nil,
  states: list() | nil,
  vars: list() | nil
}

Functions

decode(binary)

@spec decode(String.t()) :: {:ok, t()} | {:error, term()}

Decode ITF JSON binary into QuintConnect.ITF.Trace.

decode!(binary)

@spec decode!(String.t()) :: t()

Decode ITF JSON binary and raise on failure.

from_file(path)

@spec from_file(Path.t()) :: {:ok, t()} | {:error, term()}

Decode ITF JSON file.