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

Failed literal probing and UIP

I have just realised that CryptoMiniSat, having won a number of medals, does one of the most basic things, failed literal probing, all wrong. Let me tell you why it’s all wrong. In essence, failed literal probing is trivial. We enqueue a fact, such as a, and then propagate it. If this fails, i.e. if two opposing facts such as g and -g are derived, we know that a cannot be true, so we set -a. Easy. Or maybe not so easy. ...

August 4, 2011 · 3 min · msoos