package tezos-protocol-alpha

  1. Overview
  2. Docs
Tezos/Protocol: economic-protocol definition

Install

Dune Dependency

Authors

Maintainers

Sources

tezos-16.1.tar.gz
sha256=43723d096307603703a1a89ed1b2eb202b365f5e7824b96b0cbf813b343a6cf7
sha512=b2a637f2e965000d3d49ad85277ca24d6cb07a1a7cf2bc69d296d8b03ad78c3eaa8e21e94b9162e62c2e11649cd03bc845b2a3dafe623b91065df69d47dc8e4f

doc/tezos-protocol-alpha.raw/Tezos_raw_protocol_alpha/Cache_memory_helpers/Nodes/index.html

Module Cache_memory_helpers.NodesSource

The Nodes module is used to count the number of computation steps performed when evaluating the size of the in-memory graph corresponding to an OCaml value.

In first approximation, the value of type Nodes.t threaded through expr_size below and through the module Script_typed_ir_size is meant to match the number of recursive calls in the traverse functions of Script_typed_ir and in that of node_size.

The assumption is that there's a bounded amount of work performed between two such recursive calls, hence that the total work is bounded above by something proportional to the Nodes.t accumulator.

Computations on values of type Nodes.t do not overflow, as they are bounded above by the number of nodes traversed when computing an OCaml value.

Sourcetype t = private int
Sourceval zero : t
Sourceval one : t
Sourceval succ : t -> t
Sourceval add : t -> t -> t
Sourceval to_int : t -> int
OCaml

Innovation. Community. Security.