toysolver-0.7.0: Assorted decision procedures for SAT, SMT, Max-SAT, PB, MIP, etc
Copyright(c) Masahiro Sakai 2012
LicenseBSD-style
Maintainermasahiro.sakai@gmail.com
Stabilityprovisional
Portabilityportable
Safe HaskellNone
LanguageHaskell2010

ToySolver.Text.GCNF

Description

Deprecated: Use ToySolver.FileFormat.CNF instead

Synopsis

Documentation

data GCNF Source #

Group oriented CNF Input Format

This format is used in Group oriented MUS track of the SAT Competition 2011.

References:

Constructors

GCNF 

Fields

Instances

Instances details
Eq GCNF Source # 
Instance details

Defined in ToySolver.FileFormat.CNF

Methods

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

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

Ord GCNF Source # 
Instance details

Defined in ToySolver.FileFormat.CNF

Methods

compare :: GCNF -> GCNF -> Ordering #

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

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

(>) :: GCNF -> GCNF -> Bool #

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

max :: GCNF -> GCNF -> GCNF #

min :: GCNF -> GCNF -> GCNF #

Read GCNF Source # 
Instance details

Defined in ToySolver.FileFormat.CNF

Show GCNF Source # 
Instance details

Defined in ToySolver.FileFormat.CNF

Methods

showsPrec :: Int -> GCNF -> ShowS #

show :: GCNF -> String #

showList :: [GCNF] -> ShowS #

FileFormat GCNF Source # 
Instance details

Defined in ToySolver.FileFormat.CNF

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.

Generating .gcnf files

writeFile :: (FileFormat a, MonadIO m) => FilePath -> a -> m () Source #

Write a value into a file.

hPutGCNF :: Handle -> GCNF -> IO () Source #

Output a GCNF to a Handle.