rsat 0.1.4

SolHOP SAT and MaxSAT Solver
Documentation

rsat

SolHop SAT and MaxSAT Solver.

Crates.io Crates.io Crates.io Docs Build Status

Currently, a stochastic local search based on probSAT and a CDCL solver based on MiniSAT has been implemented. More algorithms will be available soon.

Install and Run

Install

$ cargo install rsat

Help

$ rsat --help

Usage

$ rsat input.cnf -a 1

where input.cnf is the input SAT instance in DIMACS format. Use -a 2 to invoke the SLS solver. Also see help for some options.

Below are some examples:

Example 1

Input
c comment
p cnf 3 4
1 0
-1 -2 0
2 -3 0
-3 0
Output
SAT
1 -2 -3 0

Example 2

Input
c comment
p cnf 3 4
1 0
-1 -2 0
2 -3 0
3 0
Output
UNSAT

Note: The SLS solver will never be available to prove UNSAT. It will give the best model that has been found so far.

UNKNOWN
-1 2 3 0

License

MIT