Hsmtlib-0.2.0.6: Haskell library for easy interaction with SMT-LIB 2 compliant solvers.

Safe HaskellSafe-Inferred

Hsmtlib.Solvers.Cmd.Parser.CmdResult

Synopsis

Documentation

getBitVec :: ValuationPair -> Maybe GValResultSource

Retrives the value of a BitVector. Works with: - Z3.

getBitVec' :: Maybe String -> Maybe String -> Maybe GValResultSource

getFun :: ValuationPair -> Maybe GValResultSource

Retrives the value of a function. Works with: - Z3.

getFun' :: Maybe String -> Maybe Value -> Maybe GValResultSource

getVar :: ValuationPair -> Maybe GValResultSource

Retrives the value of a variable. Works with: - Z3.

getVar' :: Maybe String -> Maybe Integer -> Maybe GValResultSource

getArray :: ValuationPair -> Maybe GValResultSource

Retrives the value of an array. Works with: - Z3.

getArray' :: Maybe String -> Maybe Integer -> Maybe String -> Maybe Integer -> Maybe ArraysSource

isArray :: ValuationPair -> Maybe BoolSource

isArray' :: String -> Maybe BoolSource

Verifies if the string correspond to a certain notation that indicates that is an Array. For example Z3 would have the keyword select therefor it's an array. If it isn't an array then returns nothing

arrayName :: ValuationPair -> Maybe StringSource

Retrives the name of the array. Works with: - Z3.

arrayIntPos :: ValuationPair -> Maybe IntegerSource

Retrives the position of the array if it is an Integer. Works with: - Z3.

arrayVarPos :: ValuationPair -> Maybe StringSource

Retrives the position of the array if it is a String. Works with: - Z3.

arrayVal :: ValuationPair -> Maybe IntegerSource

Retrives the value of an array. Works with: - Z3.

getVarName :: ValuationPair -> Maybe StringSource

Retrive the name of a variable. Works with: - Z3.

getVarValue :: ValuationPair -> Maybe IntegerSource

Retrive the variable of a variable. Works with: - Z3.

getFunName :: ValuationPair -> Maybe StringSource

Retrives the name of a function. Works with: - Z3

getFunResult :: ValuationPair -> Maybe ValueSource

Retrives the result of a function if it is a Integer. Works with: - Z3.

(<#>) :: Functor m => (b -> c) -> (a -> m b) -> a -> m cSource

toBool :: String -> Maybe BoolSource

getHexVal :: ValuationPair -> Maybe StringSource

Retrives the result of a bitvector. Works with: - Z3

fstTerm :: ValuationPair -> Maybe TermSource

Returns the first term of a valuation pair.

sndTerm :: ValuationPair -> Maybe TermSource

Returns the second term of a valuation pair.

sndTermQualIdentierT :: Term -> Maybe [Term]Source

Returns the list of terms from TermQualIdeintifierT

symbol :: Identifier -> Maybe StringSource

numeral :: SpecConstant -> Maybe IntegerSource

hex :: SpecConstant -> Maybe StringSource