Reachability

Struct Reachability 

Source
pub struct Reachability {
    precondition_par: Vec<BooleanExpression<Parameter>>,
    precondition_loc: Vec<BooleanExpression<Location>>,
    precondition_var: Vec<BooleanExpression<Variable>>,
    target: DisjunctionTargetConfig,
}
Expand description

Formula of the form (preconditions) => <>(target)

A reachability constraint specifies

  • a set of starting configurations
  • a set of target configurations

The set of starting configurations is a subset of the threshold automaton. This type allows these restriction to be arbitrary boolean conditions on parameters, variables and locations (mostly since they appear in benchmarks of the ByMC tool).

Target constraints are more restricted. We only allow for lower bounds on the number of processes, or specifying that a location should not be covered. These constraints match the formal definition of ELTL formulas in the related literature (e.g., see paper “A Short Counterexample Property for Safety and Liveness Verification of Fault-Tolerant Distributed Algorithms” by Konnov et al.). Other constraints, such as upper bounds, can be seen as pathological and decision procedures may be incomplete for these specifications.

To handle these conditions, add them to the initial constraints of the threshold automaton, preferably before transforming the automaton in a necessary intermediate format.

Fields§

§precondition_par: Vec<BooleanExpression<Parameter>>

Conjunction of conditions on the parameter evaluation

§precondition_loc: Vec<BooleanExpression<Location>>

Conjunction of conditions on the initial distribution of processes in the threshold automaton

§precondition_var: Vec<BooleanExpression<Variable>>

Conjunction of conditions on the initial valuation of the shared variables

§target: DisjunctionTargetConfig

Conditions on the configuration to reach

Implementations§

Source§

impl Reachability

Source

fn new_unconstrained(name: String) -> Self

Create a new reachability constraint that has no constraints

Source

fn new_with_parameter_constr( name: String, lhs: Box<IntegerExpression<Parameter>>, op: ComparisonOp, rhs: Box<IntegerExpression<Parameter>>, ) -> Self

Create a new reachability constraint with only a single parameter constraint

Source

fn new_with_initial_loc_constr( name: String, lhs: Box<IntegerExpression<Location>>, op: ComparisonOp, rhs: Box<IntegerExpression<Location>>, ) -> Self

Create a new reachability constraint with only a single initial location constraint

Source

fn new_with_initial_var_constr( name: String, lhs: Box<IntegerExpression<Variable>>, op: ComparisonOp, rhs: Box<IntegerExpression<Variable>>, ) -> Self

Create a new reachability constraint with only a single initial variable constraint

Source

fn new_with_eventual_reach(disj: DisjunctionTargetConfig) -> Self

Create a new reachability constraint with only an eventual constraint

Source

pub fn contains_reachability_constraint(&self) -> bool

Check whether this constraint contains a reachability constraint

A reachability constraint requires at least one location to be empty.

Source

pub fn get_target_conditions(&self) -> &DisjunctionTargetConfig

Get the target specification of the reachability specification

A Reachability object is a specification of the form (preconditions) => <>(target) This function returns the target as a DisjunctionTargetConfig

Source

fn try_from_eltl( name: String, spec: NonNegatedELTLExpression, ) -> Result<Vec<Self>, ReachabilityTransformationError>

Try to construct a reachability constraint from a an ELTL formula

Source

fn parse_in_eventually( name: String, expr: NonNegatedELTLExpression, ) -> Result<DisjunctionTargetConfig, ReachabilityTransformationError>

Try to parse the constraints behind an eventually operator into a disjunction of upwards closed sets

Trait Implementations§

Source§

impl And for Reachability

Source§

fn and(self, other: Reachability) -> Self

Get the conjunction of self and other
Source§

impl Clone for Reachability

Source§

fn clone(&self) -> Reachability

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 Reachability

Source§

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

Formats the value using the given formatter. Read more
Source§

impl<D: Into<DisjunctionTargetConfig>> From<D> for Reachability

Source§

fn from(value: D) -> Self

Converts to this type from the input type.
Source§

impl PartialEq for Reachability

Source§

fn eq(&self, other: &Reachability) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl StructuralPartialEq for Reachability

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> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
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.