hermod-recon-framework
Safe HaskellSafe-Inferred
LanguageHaskell2010

Hermod.ReCon.LTL.Satisfy

Synopsis

Documentation

data SatisfactionResult event ty Source #

The result of checking satisfaction of a formula against a timeline. If unsatisfied, stores points in the timeline "relevant" to the formula.

Constructors

Satisfied 
Unsatisfied (Relevance event ty) 

Instances

Instances details
(Show event, Show ty) => Show (SatisfactionResult event ty) Source # 
Instance details

Defined in Hermod.ReCon.LTL.Satisfy

(Eq event, Eq ty) => Eq (SatisfactionResult event ty) Source # 
Instance details

Defined in Hermod.ReCon.LTL.Satisfy

Methods

(==) :: SatisfactionResult event ty -> SatisfactionResult event ty -> Bool Source #

(/=) :: SatisfactionResult event ty -> SatisfactionResult event ty -> Bool Source #

satisfies :: (Event event ty, Ord event, Ord ty, Show ty, Foldable f) => OnMissingKey -> Formula event ty -> f event -> SatisfactionResult event ty Source #

Check if the formula is satisfied in the given event timeline.

satisfiesS :: (Event event ty, Ord event, Ord ty, Show ty) => OnMissingKey -> Formula event ty -> Stream (Of event) IO () -> IORef (SatisfyMetrics event ty) -> IO (SatisfactionResult event ty) Source #

Given a formula and a stream of events, forms an IO computation that returns a SatisfactionResult once the formula is equivalent to ⊤ or ⊥. This may happen either once the stream terminates or if the formula is falsified early by some prefix of the stream.