what4-1.6.3: Solver-agnostic symbolic values support for issuing queries

Copyright | (c) Galois Inc 2015-2020
License | BSD3
Maintainer | Rob Dockins <rdockins@galois.com>
Stability | provisional
Safe Haskell | None
Language | Haskell2010

What4.Solver.CVC4

Description

CVC4-specific tweaks to the basic SMTLib2 solver interface.

Synopsis

- data CVC4 = CVC4
- cvc4Features :: ProblemFeatures
- cvc4Adapter :: forall (st :: Type -> Type). SolverAdapter st
- cvc4Path :: ConfigOption (BaseStringType Unicode)
- cvc4Timeout :: ConfigOption BaseIntegerType
- cvc4Options :: [ConfigDesc]
- runCVC4InOverride :: forall t (st :: Type -> Type) fs a. ExprBuilder t st fs -> LogData -> [BoolExpr t] -> (SatResult (GroundEvalFn t, Maybe (ExprRangeBindings t)) () -> IO a) -> IO a
- withCVC4 :: forall t (st :: Type -> Type) fs a. ExprBuilder t st fs -> FilePath -> LogData -> (Session t CVC4 -> IO a) -> IO a
- writeCVC4SMT2File :: forall t (st :: Type -> Type) fs. ExprBuilder t st fs -> Handle -> [BoolExpr t] -> IO ()
- writeMultiAsmpCVC4SMT2File :: forall t (st :: Type -> Type) fs. ExprBuilder t st fs -> Handle -> [BoolExpr t] -> IO ()

# Documentation

data CVC4 Source #

Constructors

CVC4 |

#### Instances

Instances details

Show CVC4 Source # |
Instance details Defined in What4.Solver.CVC4 Methods showsPrec :: Int -> CVC4 -> ShowS Source # show :: CVC4 -> String Source # showList :: [CVC4] -> ShowS Source #
SMTLib2GenericSolver CVC4 Source # |

Instance details

Defined in What4.Solver.CVC4

Methods

defaultSolverPath :: forall t (st :: Type -> Type) fs. CVC4 -> ExprBuilder t st fs -> IO FilePath Source #

defaultSolverArgs :: forall t (st :: Type -> Type) fs. CVC4 -> ExprBuilder t st fs -> IO [String] Source #

defaultFeatures :: CVC4 -> ProblemFeatures Source #

getErrorBehavior :: CVC4 -> WriterConn t (Writer CVC4) -> IO ErrorBehavior Source #

supportsResetAssertions :: CVC4 -> Bool Source #

setDefaultLogicAndOptions :: WriterConn t (Writer CVC4) -> IO () Source #

newDefaultWriter :: forall t (st :: Type -> Type) fs. CVC4 -> AcknowledgementAction t (Writer CVC4) -> ProblemFeatures -> Maybe (ConfigOption BaseBoolType) -> ExprBuilder t st fs -> OutputStream Text -> InputStream Text -> IO (WriterConn t (Writer CVC4)) Source #

withSolver :: forall t (st :: Type -> Type) fs b. CVC4 -> AcknowledgementAction t (Writer CVC4) -> ProblemFeatures -> Maybe (ConfigOption BaseBoolType) -> ExprBuilder t st fs -> FilePath -> LogData -> (Session t CVC4 -> IO b) -> IO b Source #

runSolverInOverride :: forall t (st :: Type -> Type) fs b. CVC4 -> AcknowledgementAction t (Writer CVC4) -> ProblemFeatures -> Maybe (ConfigOption BaseBoolType) -> ExprBuilder t st fs -> LogData -> [BoolExpr t] -> (SatResult (GroundEvalFn t, Maybe (ExprRangeBindings t)) () -> IO b) -> IO b Source #

SMTLib2Tweaks CVC4 Source # |

Instance details

Defined in What4.Solver.CVC4

Methods

smtlib2tweaks :: CVC4 Source #

smtlib2exitCommand :: Maybe Command Source #

smtlib2arrayType :: [Sort] -> Sort -> Sort Source #

smtlib2arrayConstant :: Maybe ([Sort] -> Sort -> Term -> Term) Source #

smtlib2arraySelect :: Term -> [Term] -> Term Source #

smtlib2arrayUpdate :: Term -> [Term] -> Term -> Term Source #

smtlib2StringSort :: Sort Source #

smtlib2StringTerm :: Text -> Term Source #

smtlib2StringLength :: Term -> Term Source #

smtlib2StringAppend :: [Term] -> Term Source #

smtlib2StringContains :: Term -> Term -> Term Source #

smtlib2StringIndexOf :: Term -> Term -> Term -> Term Source #

smtlib2StringIsPrefixOf :: Term -> Term -> Term Source #

smtlib2StringIsSuffixOf :: Term -> Term -> Term Source #

smtlib2StringSubstring :: Term -> Term -> Term -> Term Source #

smtlib2StructSort :: [Sort] -> Sort Source #

smtlib2StructCtor :: [Term] -> Term Source #

smtlib2StructProj :: Int -> Int -> Term -> Term Source #

smtlib2declareStructCmd :: Int -> Maybe Command Source #

OnlineSolver (Writer CVC4) Source # |
Instance details Defined in What4.Solver.CVC4 Methods startSolverProcess :: forall scope (st :: Type -> Type) fs. ProblemFeatures -> Maybe Handle -> ExprBuilder scope st fs -> IO (SolverProcess scope (Writer CVC4)) Source # shutdownSolverProcess :: SolverProcess scope (Writer CVC4) -> IO (ExitCode, Text) Source #

cvc4Features :: ProblemFeatures Source #

cvc4Adapter :: forall (st :: Type -> Type). SolverAdapter st Source #

cvc4Path :: ConfigOption (BaseStringType Unicode) Source #

Path to cvc4

cvc4Timeout :: ConfigOption BaseIntegerType Source #

Per-check timeout, in milliseconds (zero is none)

cvc4Options :: [ConfigDesc] Source #

runCVC4InOverride :: forall t (st :: Type -> Type) fs a. ExprBuilder t st fs -> LogData -> [BoolExpr t] -> (SatResult (GroundEvalFn t, Maybe (ExprRangeBindings t)) () -> IO a) -> IO a Source #

withCVC4 Source #

Arguments

:: forall t (st :: Type -> Type) fs a. ExprBuilder t st fs |
-> FilePath | Path to CVC4 executable
-> LogData |
-> (Session t CVC4 -> IO a) | Action to run
-> IO a |

Run CVC4 in a session. CVC4 will be configured to produce models, but otherwise left with the default configuration.

writeCVC4SMT2File :: forall t (st :: Type -> Type) fs. ExprBuilder t st fs -> Handle -> [BoolExpr t] -> IO () Source #

writeMultiAsmpCVC4SMT2File :: forall t (st :: Type -> Type) fs. ExprBuilder t st fs -> Handle -> [BoolExpr t] -> IO () Source #