2 unstable releases
Uses old Rust 2015
0.2.0 | Mar 28, 2017 |
---|---|
0.1.0 | Mar 5, 2017 |
#33 in #sat
109 downloads per month
34KB
836 lines
DIMACS Parser
Utilities to parse files in DIMACS .cnf
or .sat
SAT format which is useful in participating in the DIMACS SAT solver competition.
Basically provides the following API:
fn parse_dimacs(input: &str) -> Result<Instance> { .. }
lib.rs
:
The parser facility for parsing .cnf
and .sat
files as specified in the
DIMACS format specification.
The DIMACS format was specified for the DIMACS SAT solver competitions as input file format. Many other DIMACS file formats exist for other competitions, however, this crate currently only supports the formats that are relevant for SAT solvers.
In .cnf
the entire SAT formula is encoded as a conjunction of disjunctions and so mainly stores
a list of clauses consisting of literals.
The .sat
format is slightly more difficult as the formula can be of a different shape and thus
a .sat
file internally looks similar to a Lisp file.
Dependencies
~145KB