Skip to main content

Accel

Struct Accel 

Source
pub struct Accel { /* private fields */ }
Expand description

The incremental sequence evaluator of one assertion.

Implementations§

Source§

impl Accel

Source

pub fn new( ir: &PropertyIr, n_clocks: usize, has_calls: bool, locals_read: bool, ) -> Option<Accel>

The accelerator for ir, or None when it has a shape the accelerator does not model (see the module docs).

locals_read: some leaf reads a local variable, which makes evaluating it fallible (an unassigned read), so the accelerator then never skips work the reference does (exact).

Source

pub fn set_base(&mut self, base: u64)

The absolute index of the first position of the window the next queries are over.

Source

pub fn evict_before(&mut self, base: u64)

Forgets the searches that started before absolute position base.

Source

pub fn base(&self) -> u64

The absolute index of the window’s first position.

Source

pub fn final_reach(&self, id: PropId) -> Option<u32>

How many ticks past a start the verdict of id can look, when the verdicts of id can be settled and shared across attempts (see [Fin]); None when they cannot.

Source

pub fn final_next(&mut self, id: PropId) -> (u64, bool)

The first absolute tick whose verdict of id is not settled yet, and whether settling stopped there (an error): the settled ticks are base..next.

Source

pub fn final_record(&mut self, id: PropId, at: u64, verdict: Option<bool>)

Settles tick at (which must be Self::final_next) of id: its verdict, or None when evaluating it is an error.

Source

pub fn final_first(&self, id: PropId, v: bool, from: u64) -> Option<u64>

The first settled tick of id at or after from whose verdict is v (only the verdicts the operators ask for are kept: false for the operand of an always or the left of an until, true for eventually and the right of an until).

Source

pub fn matches( &mut self, au: &Automaton, env: &dyn PropEnv, entry: ThreadStateId, real: u32, top: bool, pos: u32, frame: &Frame, ) -> Option<Matches>

Every nonempty match of the sequence starting at entry at position pos with frame, on the word of real samples and the tail top: what Evaluator::matches returns, ascending by (end tick, frame).

Source

pub fn strong( &mut self, au: &Automaton, env: &dyn PropEnv, entry: ThreadStateId, real: u32, top: bool, pos: u32, frame: &Frame, ) -> Option<bool>

Whether the sequence has a match at all (strong(seq)).

Source

pub fn weak( &mut self, au: &Automaton, env: &dyn PropEnv, entry: ThreadStateId, real: u32, top: bool, pos: u32, frame: &Frame, ) -> Option<bool>

weak(seq) from pos (F.5.3.1): every cut of the word, completed with ⊤, has a match.

Trait Implementations§

Source§

impl Clone for Accel

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

Auto Trait Implementations§

§

impl Freeze for Accel

§

impl RefUnwindSafe for Accel

§

impl Send for Accel

§

impl Sync for Accel

§

impl Unpin for Accel

§

impl UnsafeUnpin for Accel

§

impl UnwindSafe for Accel

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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

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> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

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.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V