jukebox-0.3.5: A first-order reasoning toolbox

Safe HaskellNone
LanguageHaskell98

Jukebox.Sat

Documentation

data Solver :: * #

data Lit :: * #

Instances

Eq Lit 

Methods

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

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

Ord Lit 

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 

Methods

showsPrec :: Int -> Lit -> ShowS #

show :: Lit -> String #

showList :: [Lit] -> ShowS #

neg :: Lit -> Lit #

class SatSolver s where Source #

Minimal complete definition

getSolver

Methods

getSolver :: s -> Solver Source #

newLit :: SatSolver s => s -> IO Lit Source #

addClause :: SatSolver s => s -> [Lit] -> IO () Source #

solve :: SatSolver s => s -> [Lit] -> IO Bool Source #

conflict :: SatSolver s => s -> IO [Lit] Source #

value :: SatSolver s => s -> Lit -> IO (Maybe Bool) Source #