Skip to main content

Sequential

Struct Sequential 

Source
pub struct Sequential {
    pub steps: usize,
    pub value_domain_size: u64,
    pub pc: usize,
    pub value: u64,
    pub active: bool,
    pub history: Vec<u64>,
}
Expand description

Totally ordered execution owner.

Fields§

§steps: usize

Total number of steps.

§value_domain_size: u64

Exclusive upper bound of carried values.

§pc: usize

Program counter identifying the next step.

§value: u64

Current carried value.

§active: bool

Whether the current step is active.

§history: Vec<u64>

Values committed by completed steps.

Implementations§

Source§

impl Sequential

Source

pub fn new( steps: usize, value_domain_size: u64, initial_value: u64, ) -> Sequential

Construct an inactive execution at the first step.

Source

pub fn begin_step(&mut self) -> bool

BeginStep, with disabled calls exposed as a stuttering rejection.

Source

pub fn complete_step(&mut self, next_value: u64) -> bool

CompleteStep, including its nondeterministic ValueDomain choice as an explicit caller value. An out-of-domain choice is not an enabled TLA+ action and therefore stutters with false.

Source

pub fn done_stuttering(&mut self) -> bool

DoneStuttering: enabled exactly at the terminal inactive state and never changes carrier state.

Auto Trait Implementations§

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> 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, 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, <T as TryFrom<U>>::Error>

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.