pub enum ActionComposition {
Off,
Tlc,
Tla,
}Expand description
Action composition modes (--action-composition).
Whether and how A \cdot B (action composition) is evaluated.
TLC refuses action composition unless the JVM runs with
-Dtlc2.tool.impl.Tool.cdot=true, which enables what TLC calls an
incomplete implementation (Tool.java, OPCODE_cdot). dive implements the
operator by default, with its TLA+ meaning: s -(A \cdot B)-> u iff some
state t has s -A-> t and t -B-> u.
Variants§
Off
TLC without the switch: every use is TLC’s error
(--action-composition=off; part of --compat=tlc).
Tlc
TLC with -Dtlc2.tool.impl.Tool.cdot=true, reproduced exactly
(--action-composition=tlc): the intermediate states count as
generated (so a state whose only A steps have no B step is not a
deadlock), the rest of an enclosing conjunction is evaluated after A
as well as after B, and a variable the conjunction already assigned
is pre-set in the intermediate state to its current value.
Tla
The TLA+ meaning (--action-composition=tla, the default profile’s
setting): only composed successors are generated, and a composition
whose result TLC’s algorithm would distort (one with a continuation or
with variables already assigned) is refused by name, never
approximated.
Trait Implementations§
Source§impl Clone for ActionComposition
impl Clone for ActionComposition
Source§fn clone(&self) -> ActionComposition
fn clone(&self) -> ActionComposition
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more