pub struct CtlModelChecker {
pub kripke: KripkeStructure,
}Expand description
CTL model checker: fixpoint computation.
Fields§
§kripke: KripkeStructureThe Kripke structure to check.
Implementations§
Source§impl CtlModelChecker
impl CtlModelChecker
Sourcepub fn new(kripke: KripkeStructure) -> Self
pub fn new(kripke: KripkeStructure) -> Self
Create a new CTL model checker.
Sourcepub fn sat_ex(&self, phi_states: &HashSet<usize>) -> HashSet<usize>
pub fn sat_ex(&self, phi_states: &HashSet<usize>) -> HashSet<usize>
Compute sat(EX φ): states with at least one φ-successor.
Sourcepub fn sat_eu(
&self,
phi_states: &HashSet<usize>,
psi_states: &HashSet<usize>,
) -> HashSet<usize>
pub fn sat_eu( &self, phi_states: &HashSet<usize>, psi_states: &HashSet<usize>, ) -> HashSet<usize>
Compute sat(EU(φ, ψ)): least fixpoint of ψ ∨ (φ ∧ EX(EU)).
Sourcepub fn sat_eg(&self, phi_states: &HashSet<usize>) -> HashSet<usize>
pub fn sat_eg(&self, phi_states: &HashSet<usize>) -> HashSet<usize>
Compute sat(EG φ): greatest fixpoint of φ ∧ EX(EG).
Sourcepub fn sat(&self, formula: &CtlFormula) -> HashSet<usize>
pub fn sat(&self, formula: &CtlFormula) -> HashSet<usize>
Evaluate a CTL formula and return the set of satisfying states.
Sourcepub fn check_ctl(&self, formula: &CtlFormula) -> bool
pub fn check_ctl(&self, formula: &CtlFormula) -> bool
Check whether all initial states satisfy the CTL formula.
Sourcepub fn find_counterexample(
&self,
formula: &CtlFormula,
) -> Option<CounterExample>
pub fn find_counterexample( &self, formula: &CtlFormula, ) -> Option<CounterExample>
Find a counterexample state for a CTL formula.
Trait Implementations§
Source§impl Clone for CtlModelChecker
impl Clone for CtlModelChecker
Source§fn clone(&self) -> CtlModelChecker
fn clone(&self) -> CtlModelChecker
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CtlModelChecker
impl RefUnwindSafe for CtlModelChecker
impl Send for CtlModelChecker
impl Sync for CtlModelChecker
impl Unpin for CtlModelChecker
impl UnsafeUnpin for CtlModelChecker
impl UnwindSafe for CtlModelChecker
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more