PropaFP-0.1.2.0: Auto-active verification of floating-point programs
Safe HaskellSafe-Inferred
LanguageHaskell2010

PropaFP.VarMap

Synopsis

Documentation

data VarType Source #

An assosciation list mapping variable names to rational interval domains

Constructors

Real 
Integer 

Instances

Instances details
Show VarType Source # 
Instance details

Defined in PropaFP.VarMap

Eq VarType Source # 
Instance details

Defined in PropaFP.VarMap

Methods

(==) :: VarType -> VarType -> Bool #

(/=) :: VarType -> VarType -> Bool #

Ord VarType Source # 
Instance details

Defined in PropaFP.VarMap

maxWidth :: VarMap -> Rational Source #

Get the width of the widest interval Fixme: maxWidth

taxicabWidth :: VarMap -> Rational Source #

Get the sum of the width of each interval

increaseDiameter :: VarMap -> Rational -> VarMap Source #

Increase the diameter of all variables in a varMap by the given rational

increaseRadius :: VarMap -> Rational -> VarMap Source #

Increase the radius of all variables in a varMap by the given rational

fullBisect :: VarMap -> [VarMap] Source #

Bisect all elements in a given VarMap

bisectInterval :: (String, (Rational, Rational)) -> ((String, (Rational, Rational)), (String, (Rational, Rational))) Source #

Bisect the domain of the given interval, resulting in a pair Vars

bisectN :: Integer -> VarMap -> (VarMap, VarMap) Source #

Bisect the given dimension of the given VarMap, resulting in a pair of VarMaps

contains :: VarMap -> VarMap -> Bool Source #

Check whether or not v1 contain v2.

toSearchBox :: VarMap -> CN MPBall -> SearchBox Source #

Convert VarMap to SearchBox with the provided minimum

unsafeIntersectVarMap :: TypedVarMap -> TypedVarMap -> TypedVarMap Source #

Assumes varMaps have vars appearing in the same order

intersectVarMap :: VarMap -> VarMap -> VarMap Source #

Intersect two varMaps This assumes that both VarMaps have the same variables in the same order

widestInterval :: VarMap -> (String, (Rational, Rational)) -> (String, (Rational, Rational)) Source #

Returns the widest interval in the given VarMap