IOTasks-2.2.0
Safe HaskellSafe-Inferred
LanguageHaskell2010

Test.IOTasks.ValueSet

Synopsis

Documentation

data ValueSet a Source #

Instances

Instances details
Eq (ValueSet a) Source # 
Instance details

Defined in Test.IOTasks.Internal.ValueSet

Methods

(==) :: ValueSet a -> ValueSet a -> Bool #

(/=) :: ValueSet a -> ValueSet a -> Bool #

Ord (ValueSet a) Source # 
Instance details

Defined in Test.IOTasks.Internal.ValueSet

Methods

compare :: ValueSet a -> ValueSet a -> Ordering #

(<) :: ValueSet a -> ValueSet a -> Bool #

(<=) :: ValueSet a -> ValueSet a -> Bool #

(>) :: ValueSet a -> ValueSet a -> Bool #

(>=) :: ValueSet a -> ValueSet a -> Bool #

max :: ValueSet a -> ValueSet a -> ValueSet a #

min :: ValueSet a -> ValueSet a -> ValueSet a #

(\\) :: ValueSet Integer -> ValueSet Integer -> ValueSet Integer Source #

The (\\) operator computes set difference. It returns a ValueSet containing all integers of the first set that are not present in the second set.

isEmpty :: Var Integer -> Map SomeVar [AST] -> ValueSet Integer -> IO Bool Source #

Check if a given ValueSet of integers is empty.

This function uses an external SMT solver to check the constraints defined by the ValueSet.

random value generation

valueOf :: Var a -> ValueMap -> ValueSet a -> Size -> Gen a Source #

data Size Source #

Constructors

Size 

Fields

standard value sets