$ make -j$(nproc)
SAT solver
$ bin/sat dpll <SAT file>
$ bin/sat cdcl <SAT file> [SAT file for learned clauses]
Sudoku solver
$ bin/sudoku dpll <sudoku file>
$ bin/sudoku cdcl <sudoku file> [SAT file for learned clauses]
To see algorithm runs, compile with -DDEBUG
flag (WARNING large amount of text on stdout).
Tests in
- test/sudoku taken from rkkautsar/sudoku-solver
- test/sat taken from sgomber/CDCL-SAT