Copyright | (c) Masahiro Sakai 2012 |
---|---|
License | BSD-style |
Maintainer | masahiro.sakai@gmail.com |
Stability | provisional |
Portability | portable |
Safe Haskell | None |
Language | Haskell2010 |
Deprecated: Use ToySolver.FileFormat.CNF instead
Synopsis
- data GCNF = GCNF {
- gcnfNumVars :: !Int
- gcnfNumClauses :: !Int
- gcnfLastGroupIndex :: !GroupIndex
- gcnfClauses :: [GClause]
- type GroupIndex = Int
- type GClause = (GroupIndex, PackedClause)
- parseByteString :: ByteString -> Either String GCNF
- parseFile :: (FileFormat a, MonadIO m) => FilePath -> m (Either String a)
- writeFile :: (FileFormat a, MonadIO m) => FilePath -> a -> m ()
- hPutGCNF :: Handle -> GCNF -> IO ()
- gcnfBuilder :: GCNF -> Builder
Documentation
Group oriented CNF Input Format
This format is used in Group oriented MUS track of the SAT Competition 2011.
References:
GCNF | |
|
type GroupIndex = Int Source #
Component number between 0 and gcnfLastGroupIndex
type GClause = (GroupIndex, PackedClause) Source #
Clause together with component number
Parsing .gcnf files
parseByteString :: ByteString -> Either String GCNF Source #
Parse a GCNF file but returns an error message when parsing fails.
parseFile :: (FileFormat a, MonadIO m) => FilePath -> m (Either String a) Source #
Parse a file but returns an error message when parsing fails.