View Source MSSMT.Node protocol (MSSMT v0.1.1)

Protocol defining the behavior for nodes in the MSSMT.

Summary

Types

t()

All the types that implement this protocol.

Functions

Returns a copy of the node.

Computes the node's hash.

Computes the node's sum.

Types

@type t() :: term()

All the types that implement this protocol.

Functions

@spec copy(t()) :: t()

Returns a copy of the node.

Since structs are immutable, this returns the node itself.

@spec node_hash(t()) :: MSSMT.NodeHash.t()

Computes the node's hash.

@spec node_sum(t()) :: non_neg_integer()

Computes the node's sum.