A variable elimination improvement

Lately, I have been thinking about how to improve variable elimination. It’s one of the most important things in SAT solvers, and it’s not exactly easy to do right. Variable elimination Variable elimination simply resolves every occurrence of a literal v1v1v1 with every occurrence of the literal ¬v1\neg v1¬v1 , removes the original clauses and adds the resolvents. For example, let’s take the clauses v1∨v2∨v3v1 \vee v2 \vee v3v1∨v2∨v3 v1∨v4∨v5v1 \vee v4 \vee v5v1∨v4∨v5 ¬v1∨v10∨v11\neg v1 \vee v10 \vee v11¬v1∨v10∨v11 ¬v1∨v12∨v13\neg v1 \vee v12 \vee v13¬v1∨v12∨v13 ...

April 21, 2013 · 3 min · msoos

Why programs fail

I just bought the book with the title of the blogpost by Andreas Zeller. Essentially, it’s about debugging, where the author analyses the chain of program defect leading to infected program state, finally leading to program failure. I bought the book because while working with CryptoMiniSat, I have encountered so many bugs that they could fill a book. The problem with chasing bugs in CryptoMiniSat is that SAT solvers employ a very optimised algorithm that makes a lot of decisions per second, so recording all interesting events makes for a very big dump file. I have per-module verbosity settings, so if I can narrow down what module(s) are causing the failure, there is less debug output to go through, but sometimes I still have to wade through 10-20GB dumps to see how the program state got infected. ...

May 29, 2010 · 3 min · msoos