Just clone me, and cargo install
.
Two executables will be installed:
splr
-- SAT solverdmcr
-- A model checker to verify assignments which are generated by splr
.Splr is a standalone program, taking an CNF file. The result will be saved to a file.
``` $ splr tests/sample.cnf sample.cnf 250,1065 |time: 0.35, Mode: Initial #conflict: 19242, #decision: 22518, #propagate: 866681 Assignment|#rem: 243, #fix: 1, #elm: 6, prg%: 2.8000 Clause Kind|Remv: 11255, LBD2: 61, Binc: 0, Perm: 1056 Restart|#BLK: 276, #RST: 0, eASG: 0.4211, eLBD: 1.0312 Conflicts|aLBD: 9.37, bjmp: 9.21, cnfl: 11.66 |blkR: 1.4000 Clause DB|#rdc: 4, #sce: 2, #exe: 1 |frcK: 0.6100 SATISFIABLE: sample.cnf. The answer was dumped to .ans_sample.cnf.
$ cat .ans_sample.cnf c An assignment generated by splr-0.1.0 for SATISFIABLE tests/sample.cnf c c sample.cnf , v: 250, c: 1065, time: 0.35 c #conflict: 19242, #decision: 22518, #propagate: 866681 c Assignment|#rem: 243, #fix: 1, #elm: 6, prg%: 2.8000 c Clause Kind|Remv: 11255, LBD2: 61, Binc: 0, Perm: 1056 c Restart|#BLK: 276, #RST: 0, eASG: 0.4211, eLBD: 1.0312 c Conflicts|aLBD: 9.37, bjmp: 9.21, cnfl: 11.66 |blkR: 1.4000 c Clause DB|#rdc: 4, #sce: 2, #exe: 1 |frcK: 0.6100 c 1 2 3 4 -5 6 7 -8 -9 10 -11 -12 -13 -14 15 16 -17 18 -19 -20 -21 -22 ... 0
$ dmcr tests/sample.cnf Valid assignment for tests/sample.cnf found in .ans_sample.cnf. ```
While Splr comes with ABSOLUTELY NO WARRANTY, Splr version 0.1.0 (splr-0.1.0) was verified with the following problems:
2019, Shuji Narazaki