Skip to main content

Plan

Struct Plan 

Source
pub struct Plan {
Show 17 fields pub code: Code, pub vars: Vec<String>, pub init: Vec<Action>, pub next: Vec<Action>, pub invariants: Vec<Check>, pub constraints: Vec<Check>, pub action_constraints: Vec<Check>, pub implied_inits: Vec<Check>, pub implied_actions: Vec<Check>, pub check_deadlock: bool, pub symmetry: Option<Symmetry>, pub effects: Effects, pub view: Option<Check>, pub stats: CompileStats, pub bound_preset: Vec<(u32, Handle)>, pub startup_assumptions: Vec<DefId>, pub startup_assumption_false: Option<DefId>,
}
Expand description

The compiled specification.

Fields§

§code: Code

The node arrays.

§vars: Vec<String>

State variable names, by index.

§init: Vec<Action>

The initial predicates.

§next: Vec<Action>

The next-state actions, in TLC’s order.

§invariants: Vec<Check>

INVARIANTs.

§constraints: Vec<Check>

CONSTRAINTs.

§action_constraints: Vec<Check>

ACTION_CONSTRAINTs.

§implied_inits: Vec<Check>

Implied initial predicates (PROPERTY parts checked on the initial states).

§implied_actions: Vec<Check>

Implied actions ([A]_v of [][A]_v in PROPERTYs), step predicates.

§check_deadlock: bool

Whether deadlock is checked.

§symmetry: Option<Symmetry>

SYMMETRY: states are keyed by their canonical image.

§effects: Effects

The plan’s effects: the engine then runs one worker, in TLC’s order.

§view: Option<Check>

VIEW: its value, the one conjunct, keys the state.

§stats: CompileStats

Compile statistics.

§bound_preset: Vec<(u32, Handle)>

The frame slots a bound optional atom’s role binds (crate::compile::compile_bound_test: \E variables and inlined parameters of its scope), with their values, which the caller installs after entering the check’s frame; empty otherwise.

§startup_assumptions: Vec<DefId>

The pure ASSUMEs (crate::compile::Handoff::assumptions) the compiler evaluated to TRUE, in order.

§startup_assumption_false: Option<DefId>

The pure ASSUME after Self::startup_assumptions that the compiler evaluated to FALSE, where it stopped; None when it found them all TRUE or stopped at one it did not evaluate to a Boolean.

Trait Implementations§

Source§

impl Clone for Plan

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Plan

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl !RefUnwindSafe for Plan

§

impl !UnwindSafe for Plan

§

impl Forget for Plan

§

impl Freeze for Plan

§

impl Move for Plan

§

impl Send for Plan

§

impl Sync for Plan

§

impl Unpin for Plan

§

impl UnsafeUnpin for Plan

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.