mios-1.6.0: A Minisat-based CDCL SAT solver in Haskell

Safe HaskellSafe
LanguageHaskell2010

SAT.Mios.Util.DIMACS.Reader

Contents

Description

Read a CNF file without haskell-platform

Synopsis

Interface

fromFile :: FilePath -> IO (Maybe ((Int, Int), [[Int]])) Source #

read a CNF file and return: ((numbefOfVariables, numberOfClauses), [Literal])

>>> fromFile "acnf"
((3, 4), [[1, 2], [-2, 3], [-1, 2, -3], [3]]

clauseListFromFile :: FilePath -> IO [[Int]] Source #

return clauses as [[Int]] from file

>>> clauseListFromFile "a.cnf"
[[1, 2], [-2, 3], [-1, 2, -3], [3]]