-----------------------------------------------------------------------------
-- |
-- Module    : Data.SBV.Provers.OpenSMT
-- Copyright : (c) Levent Erkok
-- License   : BSD3
-- Maintainer: erkokl@gmail.com
-- Stability : experimental
--
-- The connection to the OpenSMT SMT solver
-----------------------------------------------------------------------------

{-# OPTIONS_GHC -Wall -Werror #-}

module Data.SBV.Provers.OpenSMT(openSMT) where

import Data.SBV.Core.Data
import Data.SBV.SMT.SMT

-- | The description of the OpenSMT SMT solver.
-- The default executable is @\"opensmt\"@, which must be in your path. You can use the @SBV_OpenSMT@ environment variable to point to the executable on your system.
-- You can use the @SBV_OpenSMT_OPTIONS@ environment variable to override the options.
openSMT :: SMTSolver
openSMT :: SMTSolver
openSMT = SMTSolver {
           name :: Solver
name         = Solver
OpenSMT
         , executable :: String
executable   = String
"openSMT"
         , preprocess :: String -> String
preprocess   = String -> String
forall a. a -> a
id
         , options :: SMTConfig -> [String]
options      = [String] -> SMTConfig -> [String]
modConfig []
         , engine :: SMTEngine
engine       = String -> String -> SMTEngine
standardEngine String
"SBV_OpenSMT" String
"SBV_OpenSMT_OPTIONS"
         , capabilities :: SolverCapabilities
capabilities = SolverCapabilities {
                                supportsQuantifiers :: Bool
supportsQuantifiers        = Bool
False
                              , supportsDefineFun :: Bool
supportsDefineFun          = Bool
True
                              , supportsDistinct :: Bool
supportsDistinct           = Bool
True
                              , supportsBitVectors :: Bool
supportsBitVectors         = Bool
False
                              , supportsUninterpretedSorts :: Bool
supportsUninterpretedSorts = Bool
True
                              , supportsUnboundedInts :: Bool
supportsUnboundedInts      = Bool
True
                              , supportsInt2bv :: Bool
supportsInt2bv             = Bool
False
                              , supportsReals :: Bool
supportsReals              = Bool
True
                              , supportsApproxReals :: Bool
supportsApproxReals        = Bool
False
                              , supportsDeltaSat :: Maybe String
supportsDeltaSat           = Maybe String
forall a. Maybe a
Nothing
                              , supportsIEEE754 :: Bool
supportsIEEE754            = Bool
False
                              , supportsSets :: Bool
supportsSets               = Bool
False
                              , supportsOptimization :: Bool
supportsOptimization       = Bool
False
                              , supportsPseudoBooleans :: Bool
supportsPseudoBooleans     = Bool
False
                              , supportsCustomQueries :: Bool
supportsCustomQueries      = Bool
True
                              , supportsGlobalDecls :: Bool
supportsGlobalDecls        = Bool
True
                              , supportsDataTypes :: Bool
supportsDataTypes          = Bool
False
                              , supportsFoldAndMap :: Bool
supportsFoldAndMap         = Bool
False
                              , supportsSpecialRels :: Bool
supportsSpecialRels        = Bool
False
                              , supportsDirectAccessors :: Bool
supportsDirectAccessors    = Bool
False
                              , supportsFlattenedModels :: Maybe [String]
supportsFlattenedModels    = Maybe [String]
forall a. Maybe a
Nothing
                              }
         }

 where modConfig :: [String] -> SMTConfig -> [String]
       modConfig :: [String] -> SMTConfig -> [String]
modConfig [String]
opts SMTConfig
_cfg = [String]
opts