minisat-0.1.3: A Haskell bundle of the Minisat SAT solver
Safe HaskellNone
LanguageHaskell2010

MiniSat

Synopsis

Documentation

withNewSolverAsync :: (Solver -> IO a) -> IO a Source #

Run a minisat instance in such a way that it is interruptable (by sending killThread). cf. https://github.com/niklasso/minisat-haskell-bindings/issues/1

withNewSolver :: (Solver -> IO a) -> IO a Source #

setFrozen :: Solver -> Var -> Bool -> IO () Source #

newtype Solver Source #

Constructors

MkSolver (Ptr ()) 

newtype Var Source #

Constructors

MkVar CInt 

Instances

Instances details
Eq Var Source # 
Instance details

Defined in MiniSat

Methods

(==) :: Var -> Var -> Bool #

(/=) :: Var -> Var -> Bool #

Ord Var Source # 
Instance details

Defined in MiniSat

Methods

compare :: Var -> Var -> Ordering #

(<) :: Var -> Var -> Bool #

(<=) :: Var -> Var -> Bool #

(>) :: Var -> Var -> Bool #

(>=) :: Var -> Var -> Bool #

max :: Var -> Var -> Var #

min :: Var -> Var -> Var #

Show Var Source # 
Instance details

Defined in MiniSat

Methods

showsPrec :: Int -> Var -> ShowS #

show :: Var -> String #

showList :: [Var] -> ShowS #

newtype Lit Source #

Constructors

MkLit CInt 

Instances

Instances details
Eq Lit Source # 
Instance details

Defined in MiniSat

Methods

(==) :: Lit -> Lit -> Bool #

(/=) :: Lit -> Lit -> Bool #

Ord Lit Source # 
Instance details

Defined in MiniSat

Methods

compare :: Lit -> Lit -> Ordering #

(<) :: Lit -> Lit -> Bool #

(<=) :: Lit -> Lit -> Bool #

(>) :: Lit -> Lit -> Bool #

(>=) :: Lit -> Lit -> Bool #

max :: Lit -> Lit -> Lit #

min :: Lit -> Lit -> Lit #

Show Lit Source # 
Instance details

Defined in MiniSat

Methods

showsPrec :: Int -> Lit -> ShowS #

show :: Lit -> String #

showList :: [Lit] -> ShowS #

newtype LBool Source #

Constructors

MkLBool CInt 

Instances

Instances details
Eq LBool Source # 
Instance details

Defined in MiniSat

Methods

(==) :: LBool -> LBool -> Bool #

(/=) :: LBool -> LBool -> Bool #

Ord LBool Source # 
Instance details

Defined in MiniSat

Methods

compare :: LBool -> LBool -> Ordering #

(<) :: LBool -> LBool -> Bool #

(<=) :: LBool -> LBool -> Bool #

(>) :: LBool -> LBool -> Bool #

(>=) :: LBool -> LBool -> Bool #

max :: LBool -> LBool -> LBool #

min :: LBool -> LBool -> LBool #

Show LBool Source # 
Instance details

Defined in MiniSat

Methods

showsPrec :: Int -> LBool -> ShowS #

show :: LBool -> String #

showList :: [LBool] -> ShowS #