Skip to main content

BDDModelChecker

Struct BDDModelChecker 

Source
pub struct BDDModelChecker {
    pub mgr: BDDManager,
    pub num_vars: usize,
    pub init_bdd: usize,
    pub trans_bdd: usize,
}
Expand description

A symbolic model checker that uses BDDs to verify CTL properties.

Fields§

§mgr: BDDManager

The BDD manager.

§num_vars: usize

Number of state variables (state encoded as num_vars bits).

§init_bdd: usize

BDD id representing the initial states.

§trans_bdd: usize

BDD id representing the transition relation T(s, s’).

Implementations§

Source§

impl BDDModelChecker

Source

pub fn new(num_vars: usize) -> Self

Create a new BDD model checker.

Source

pub fn set_init(&mut self, bdd: usize)

Set the initial state BDD.

Source

pub fn set_trans(&mut self, bdd: usize)

Set the transition relation BDD.

Source

pub fn post(&mut self, states: usize) -> usize

Compute the set of states reachable from states in one step.

Source

pub fn pre(&mut self, states: usize) -> usize

Compute the set of states that can reach states in one step.

Source

pub fn reachable(&mut self) -> usize

Compute the set of all reachable states (forward BFS via BDDs).

Source

pub fn check_ag_safe(&mut self, safe: usize) -> bool

Check AG(safe): all reachable states satisfy the safe BDD predicate.

Source

pub fn check_ef(&mut self, target: usize) -> bool

Check EF(target): some reachable state satisfies target.

Trait Implementations§

Source§

impl Clone for BDDModelChecker

Source§

fn clone(&self) -> BDDModelChecker

Returns a duplicate of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for BDDModelChecker

Source§

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

Formats the value using the given formatter. Read more

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> 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 = Infallible

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.