pub struct St {
pub s0: StateRef,
pub s1: StateRef,
/* private fields */
}Expand description
The states and control flags an expression is evaluated under: TLC’s
(s0, s1, control).
Fields§
§s0: StateRefThe current state (s0).
s1: StateRefThe successor (s1).
Implementations§
Source§impl St
impl St
Sourcepub fn diagnostic(&self) -> Self
pub fn diagnostic(&self) -> Self
Re-evaluates this context with TLC’s diagnostic source-attachment hook.
Only receivers actually constructed in the evaluation acquire a source; previously computed or stored values retain their original provenance.
Sourcepub fn constant() -> Self
pub fn constant() -> Self
Constant-level evaluation, as TLC evaluates ASSUMEs
(Tool.isValid(expr): Empty, Empty, EvalControl.Const).
Sourcepub fn empty() -> Self
pub fn empty() -> Self
TLC’s (TLCState.Empty, TLCState.Empty, EvalControl.Clear): what
Tool.getActions evaluates the arguments of inlined operators and the
domains of split \Es in.
Sourcepub fn state(state: Arc<[Option<Value>]>) -> Self
pub fn state(state: Arc<[Option<Value>]>) -> Self
A state predicate in state (Empty successor, Clear).
Sourcepub fn initial(state: Arc<[Option<Value>]>) -> Self
pub fn initial(state: Arc<[Option<Value>]>) -> Self
An initial predicate on a supplied state (Empty successor, Init).
Unlike ordinary state checks, this evaluates TLCGet("level") as 0.
Use Self::state for invariants and implied initial properties,
which are checked after the initial state has been generated.
use dive_eval::St;
use std::sync::Arc;
let initial = St::initial(Arc::from([Some(0.into())]));Sourcepub fn action(s0: Arc<[Option<Value>]>, s1: Arc<[Option<Value>]>) -> Self
pub fn action(s0: Arc<[Option<Value>]>, s1: Arc<[Option<Value>]>) -> Self
An action between s0 and s1 (Clear).
Sourcepub fn enabled_candidate(&self, successor: Arc<NamedState>) -> Self
pub fn enabled_candidate(&self, successor: Arc<NamedState>) -> Self
Evaluates a query relation in the supplied partial named successor while retaining the current state.
Sourcepub fn enabled_current(&self) -> Self
pub fn enabled_current(&self) -> Self
Reads the current side of an ENABLED query, preserving its cutoff control.
Sourcepub fn primed_successor(&self) -> Self
pub fn primed_successor(&self) -> Self
Moves the whole successor into the current position for primed evaluation. Hidden named assignments are retained.