GCC 4.5.2 at the SAT Competition'13

(Note update below) Just a short note. All MiniSat-derived SAT solvers might give wrong results during the competition. No, MiniSat doesn’t have a bug. GCC has a giant bug. Vegard reported this years ago – I personally put about 12h tracking it down, posted it to the CryptoMiniSat mailing list, and Vegard took it up, stripped it down and reported it. This is a well-known bug, there is a thread about it on the MiniSat mailing list and I personally asked the competition organizers back in 2011 not to use the 4.5.2(or .3?) they wanted to use. I used to have code to check for this bug (there is a handy check attached to the bug report), but I removed it, though maybe I should add it back. It’s fixed in 4.5.4+, still present in 4.5.3 where Vegard&me found it. I hope I will be able to convince the organisers this time around, too :) By the way, the option you need to pass to gcc to avoid the bug is “-fno-tree-pre” — though of course this turns off an optimisation and so slows down the final executable. ...

April 26, 2013 · 2 min · msoos

Certified UNSAT and CryptoMiniSat

Marijn Heule kindly sent me an email on the 10th of April about DRUP, the new system used this year in the SAT Competition'13 for the UNSAT track. He kindly encouraged me to implement the DRUP system. He personally implemented it into Minisat which was a very helpful lead for me. In this post I will talk about my experiences in implementing DRUP into CryptoMiniSat within a span of 3 days. Implementation complexity It took only 3 days, about 1400 lines of code to implement DRUP: ...

April 25, 2013 · 4 min · msoos

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