CryptoMiniSat and Parallel SAT Solving

Since CryptoMiniSat has been getting quite a number of awards with parallel SAT solving, it’s about time I talk about how it does that.There is a ton of literature on parallel SAT solving, and I unfortunately I have barely had time to read any of them. The only research within the parallel SAT solving area that I think has truly weathered the test of time is Plingeling and Treengeling -- and they are really interesting to play with. The rest most likely has some merit too, but I am usually suspect as the results are often –unintentionally – skewed to show how well the new idea performs and in the end they rarely win too many awards, especially not in the long run (this is where Plingeling and Treengeling truly shine). I personally haven’t published what I do in this scene because I have always found it to be a bit too easy and to hence have little merit for publication – but maybe one day I will. ...

July 15, 2018 · 4 min · msoos

CryptoMiniSat 5.6.3 Released

The latest CryptoMiniSat, version 5.6.3 has been released. This release marks the 12'000th commit to this solver that has weathered more than I originally intended it to weather. It’s been an interesting ride, and I have a lot to thank Kuldeep and NSCC’s ASPIRE-1 cluster for this release. I have burned over 200k CPU hours to make this release, so it’s a pretty well-performing release (out-performing anything out there, by a wide margin), though I’m working very hard to make sure that neither I nor anyone else will have to burn anything close to that to make a well-performing SAT solver. ...

June 11, 2018 · 3 min · msoos

Testing CryptoMiniSat using GoogleTest

Lately, I have been working quite hard on writing module tests for CryptoMinisat using GoogleTest. I’d like to share what I’ve learnt and what surprised me most about this exercise. An example First of all, let me show how a typical test looks like: TEST_F(intree, fail_1) { s->add_clause_outer(str_to_cl(" 1, 2")); s->add_clause_outer(str_to_cl("-2, 3")); s->add_clause_outer(str_to_cl("-2, -3")); inp->intree_probe(); check_zero_assigned_lits_contains(s, "-2"); } Here we are checking that intree probing finds that the set of three binary clauses cause a failure and it enqueues “-2” at top level. If one looks at it, it’s a fairly trivial test. It turns out that most are in fact, fairly trivial if the system is set up well. This test’s setup is the following test fixture: struct intree : public ::testing::Test { intree() { must_inter = false; s = new Solver(NULL, &must_inter); s->new_vars(30); inp = s->intree; } ~intree() { delete s; } Solver* s; InTree* inp; bool must_inter; };

November 1, 2015 · 3 min · msoos