sha1-sat icon indicating copy to clipboard operation
sha1-sat copied to clipboard

Wrong number of clauses in CNF header

Open olegzaikin opened this issue 2 years ago • 2 comments

The command ./main --cnf --rounds=80 --hash-bits=160 > instance.cnf builds a CNF with the header p cnf 13408 478924 However, in fact the CNF contains 478636 clauses. That is why some solvers, e.g. kissat, throw errors when parsing the CNF. Is it the case that some clauses are not written or just the header is wrong?

olegzaikin avatar Dec 27 '22 04:12 olegzaikin

I believe I have fixed this in my version, check it out:

https://github.com/msoos/sha1-sat/

Mate

msoos avatar Dec 29 '22 13:12 msoos

Thanks, Mate!

Do you remember what was the reason of this issue?

Oleg

olegzaikin avatar Apr 25 '23 10:04 olegzaikin