module Data.SBV.Provers.Boolector(boolector) where
import Data.SBV.Core.Data
import Data.SBV.SMT.SMT
boolector :: SMTSolver
boolector = SMTSolver {
name = Boolector
, executable = "boolector"
, options = ["--smt2", "--smt2-model", "--no-exit-codes"]
, engine = standardEngine "SBV_BOOLECTOR" "SBV_BOOLECTOR_OPTIONS" id addTimeOut standardModel
, capabilities = SolverCapabilities {
capSolverName = "Boolector"
, mbDefaultLogic = const Nothing
, supportsDefineFun = False
, supportsProduceModels = True
, supportsQuantifiers = False
, supportsUninterpretedSorts = False
, supportsUnboundedInts = False
, supportsReals = False
, supportsFloats = False
, supportsDoubles = False
, supportsOptimization = False
, supportsPseudoBooleans = False
, supportsUnsatCores = False
}
}
where addTimeOut o i | i < 0 = error $ "Boolector: Timeout value must be non-negative, received: " ++ show i
| True = o ++ ["-t=" ++ show i]