-----------------------------------------------------------------------------
-- |
-- Module    : Data.SBV.Provers.ABC
-- Copyright : (c) Adam Foltzer
-- License   : BSD3
-- Maintainer: erkokl@gmail.com
-- Stability : experimental
--
-- The connection to the ABC verification and synthesis tool
-----------------------------------------------------------------------------

{-# OPTIONS_GHC -Wall -Werror #-}

module Data.SBV.Provers.ABC(abc) where

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

-- | The description of abc. The default executable is @\"abc\"@,
-- which must be in your path. You can use the @SBV_ABC@ environment
-- variable to point to the executable on your system.  The default
-- options are @-S \"%blast; &sweep -C 5000; &syn4; &cec -s -m -C 2000\"@.
-- You can use the @SBV_ABC_OPTIONS@ environment variable to override the options.
abc :: SMTSolver
abc :: SMTSolver
abc = SMTSolver {
           name :: Solver
name         = Solver
ABC
         , executable :: String
executable   = String
"abc"
         , preprocess :: String -> String
preprocess   = forall a. a -> a
id
         , options :: SMTConfig -> [String]
options      = forall a b. a -> b -> a
const [String
"-S", String
"%blast; &sweep -C 5000; &syn4; &cec -s -m -C 2000"]
         , engine :: SMTEngine
engine       = String -> String -> SMTEngine
standardEngine String
"SBV_ABC" String
"SBV_ABC_OPTIONS"
         , capabilities :: SolverCapabilities
capabilities = SolverCapabilities {
                                supportsQuantifiers :: Bool
supportsQuantifiers        = Bool
False
                              , supportsDefineFun :: Bool
supportsDefineFun          = Bool
True
                              , supportsDistinct :: Bool
supportsDistinct           = Bool
True
                              , supportsBitVectors :: Bool
supportsBitVectors         = Bool
True
                              , supportsUninterpretedSorts :: Bool
supportsUninterpretedSorts = Bool
False
                              , supportsUnboundedInts :: Bool
supportsUnboundedInts      = Bool
False
                              , supportsInt2bv :: Bool
supportsInt2bv             = Bool
False
                              , supportsReals :: Bool
supportsReals              = Bool
False
                              , supportsApproxReals :: Bool
supportsApproxReals        = Bool
False
                              , supportsDeltaSat :: Maybe String
supportsDeltaSat           = 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
False
                              , supportsGlobalDecls :: Bool
supportsGlobalDecls        = Bool
False
                              , supportsDataTypes :: Bool
supportsDataTypes          = Bool
False
                              , supportsDirectAccessors :: Bool
supportsDirectAccessors    = Bool
False
                              , supportsFlattenedModels :: Maybe [String]
supportsFlattenedModels    = forall a. Maybe a
Nothing
                              }
         }