SMT Competition'14 and STP

The 2014 SMT competition’s QF_BV divison is over (benchmark tarball here), and the results are (copied from here): Solver Errors Solved Not Solved CPU time (solved instances) Boolector 0 2361 127 138077.59 STP-CryptoMiniSat4 0 2283 205 190660.82 [ MathSAT] 0 2199 289 262349.39 [ Z3] 0 2180 308 214087.66 CVC4 0 2166 322 87954.62 4Simp 0 2121 367 187966.86 SONOLAR 0 2026 462 174134.49 Yices2 0 1770 718 159991.55 abziz_min_features 9 2155 324 134385.22 abziz_all_features 9 2093 386 122540.04 First, let me congratulate Boolector by Armin Biere. STP came a not-so-close second. STP was meant to be submitted twice, once with MiniSat and once with CyrptoMiniSat4 – this is the only reason why the STP submission is called STP-CryptoMiniSat4. Unfortunately, the other submission could not be made because of some compilation problems. ...

June 24, 2014 · 3 min · msoos

Multi-threading and startup speed

When doing multi-threading, parsing the input and inserting it into the solver threads is actually one of the most tricky part. Of course one can simply do void add_clause_to_all_threads(Clause clause) { for(int i = 0; i < threads; i++) { solver[i].add_clause(clause); } } It works and my SAT solver entry to the competition used this method. However, if we have 12 threads, the startup time will be 12x more than usual since only one thread is adding the clauses to all the solvers. If startup used to be 3s, it’s suddenly more than half a minute. ...

May 16, 2014 · 2 min · msoos

Final polish of my SAT competition entry

[wpdm_file id=2] UPDATE: Fixed crash, UPDATE2: fixed looking for Gaussian elimination library In the last days of the competition deadline, I have improved the following on the SAT solver: Adding N new variables is now possible in one go. This reduces variable addition overhead, especially when having many threads. Memory allocation overhead per new clause addition is now much smaller thanks to judicious use of globally allocated temporaries. Using such temporaries is very dangerous as CryptoMiniSat uses addClause() from multiple places in the code in a recursive manner. However, I only use the temporaries for add_clause_outer(), so things should be fine. If more than 0.5M variables or 1.5M binary clauses are in the problem, on-the-fly hyper-binary resolution and transitive reduction is turned off during 1st-decision-level search. This is kind of like probing, but during search. However, unlike probing, it cannot time-out and switch off these systems in case they takes too much time. Diversified the threads’ parameters. Also, I reduced the number of threads to 8. I wanted to run with 12, but it’s a bit dangerous from a memory-usage perspective: there is only 24GB available for 12 cores, which means 2GB/core. Some problems take more than 2GB just to parse into the watchlists. Check total memory usage at startup of threads and if too much, halve the total number of threads. This is an emergency measure in case things go wild due to very weird CNF. ...

May 5, 2014 · 2 min · msoos