Skip to main content

initial_graph_of

Function initial_graph_of 

Source
pub fn initial_graph_of(g0: &Graph) -> Option<Graph>
Expand description

The G₀ to record in a trace header.

Returns None for an empty G₀ so the common canonical-init header stays free of a graph blob; a non-empty G₀ is cloned verbatim so the trace stays self-describing (and aria emit, which replays from Graph::empty(), can reject it loudly rather than silently diverge).

Shared by every trace producer (the engine’s run_monitored* loops and the streaming verifier) so the empty-vs-recorded rule lives in exactly one place.