<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Parallel SAT Solving on Wonderings of a SAT geek</title>
    <link>https://www.msoos.org/tags/parallel-sat-solving/</link>
    <description>Recent content in Parallel SAT Solving on Wonderings of a SAT geek</description>
    <generator>Hugo</generator>
    <language>en-US</language>
    <lastBuildDate>Sun, 15 Jul 2018 10:53:15 +0000</lastBuildDate>
    <atom:link href="https://www.msoos.org/tags/parallel-sat-solving/feed.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>CryptoMiniSat and Parallel SAT Solving</title>
      <link>https://www.msoos.org/2018/07/cryptominisat-and-parallel-sat-solving/</link>
      <pubDate>Sun, 15 Jul 2018 10:53:15 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/?p=3176</guid> 
      <description>&lt;p&gt;Since CryptoMiniSat has been getting quite a number of awards with parallel SAT solving, it&amp;rsquo;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 &lt;a href=&#34;http://fmv.jku.at/lingeling/&#34;&gt;Plingeling and Treengeling&lt;/a&gt; -- 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 &amp;ndash;unintentionally &amp;ndash; 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&amp;rsquo;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 &amp;ndash; but maybe one day I will.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Non-reproducible results with MapleCOMSPS</title>
      <link>https://www.msoos.org/2017/02/non-reproducible-maplecomsps/</link>
      <pubDate>Wed, 22 Feb 2017 00:11:31 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/?p=3017</guid> 
      <description>&lt;p&gt;I&amp;rsquo;ve been reading through the source code of the &lt;a href=&#34;http://baldur.iti.kit.edu/sat-competition-2016/index.php?cat=results&#34;&gt;2016 SAT Competition&lt;/a&gt; Main Track winner, &lt;a href=&#34;https://sites.google.com/a/gsd.uwaterloo.ca/maplesat/&#34;&gt;MapleCOMSPS_DRUP&lt;/a&gt;, and I found that it has an important piece of code, regulating its behaviour that depends on timing:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-c++&#34; data-lang=&#34;c++&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#66d9ef&#34;&gt;static&lt;/span&gt; &lt;span style=&#34;color:#66d9ef&#34;&gt;bool&lt;/span&gt; switch_mode &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; false;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#66d9ef&#34;&gt;static&lt;/span&gt; &lt;span style=&#34;color:#66d9ef&#34;&gt;void&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;SIGALRM_switch&lt;/span&gt;(&lt;span style=&#34;color:#66d9ef&#34;&gt;int&lt;/span&gt; signum) { switch_mode &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; true; }
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;lbool Solver&lt;span style=&#34;color:#f92672&#34;&gt;::&lt;/span&gt;solve_()
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;{
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    signal(SIGALRM, SIGALRM_switch);
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    alarm(&lt;span style=&#34;color:#ae81ff&#34;&gt;2500&lt;/span&gt;);
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;</description>
    </item>
    <item>
      <title>CryptoMiniSat: 8000 commits later</title>
      <link>https://www.msoos.org/2015/10/cryptominisat-8000-commits-later/</link>
      <pubDate>Sun, 18 Oct 2015 18:36:23 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/?p=2821</guid> 
      <description>&lt;p&gt;The GitHub &lt;a href=&#34;https://github.com/msoos/cryptominisat&#34;&gt;repository&lt;/a&gt; for CryptoMiniSat just hit 8000 commits. To celebrate this rather weird and crazy fact, let me put together a bit of a history.&lt;/p&gt;
&lt;h2 id=&#34;the-beginnings&#34;&gt;The Beginnings&lt;/h2&gt;
&lt;p&gt;CryptoMiniSat began as a way of trying to prove that a probabilistic cryptographic scheme was not possible to break using SAT solvers. This was the year 2009, and I was working in Grenoble at &lt;a href=&#34;http://www.inria.fr/en/centre/grenoble&#34;&gt;INRIA&lt;/a&gt;. It was a fun time and I was working really hard to prove what I wanted to prove, to the point that I created a probabilistic SAT solver where one could add probability weights to clauses. The propagations and conflict engine would only work if the conflict or propagation was supported by multiple clauses. Thus began a long range of my unpublished work in SAT. This SAT solver, curiously, still works and solves problems quite well. It&amp;rsquo;s a lot of fun, actually &amp;ndash; just add some random clause into the database that bans the only correct solution and the solver will find the correct solution. A bit of a hackery, but hey, it works. Also, it&amp;rsquo;s so much faster than doing that solving with the &amp;ldquo;right&amp;rdquo; systems, it&amp;rsquo;s not even worth comparing.&lt;/p&gt;
</description>
    </item>
    <item>
      <title>Multi-threading</title>
      <link>https://www.msoos.org/2014/04/multi-threading/</link>
      <pubDate>Tue, 22 Apr 2014 23:04:18 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/?p=2478</guid> 
      <description>&lt;p&gt;Just a short note: this Easter holiday I got a bit bored and did a mini-threading system for CryptoMiniSatv4. It will now be able to compete in the multi-threading track after quite a number of years of absence. Last time I did this, CryptoMiniSat won the &lt;a href=&#34;http://www.cril.univ-artois.fr/SAT11/phase2.pdf&#34;&gt;UNSAT multi-threaded&lt;/a&gt; track, which was a bit funny because all I shared were unitary and binary clauses. For the simplicity and the fun, I&amp;rsquo;m doing the same this time around. Let&amp;rsquo;s hope all the super-complicated and &lt;a href=&#34;http://www.cril.univ-artois.fr/~jabbour/PDF/jsatmanysat.pdf&#34;&gt;extra-theoretica&lt;/a&gt; l stuff will get won over.&lt;/p&gt;</description>
    </item>
    <item>
      <title>CryptoMiniSat won two gold medals at SAT Comp&#39;11</title>
      <link>https://www.msoos.org/2011/06/cryptominisat-won-two-gold-medals-at-sat-comp11/</link>
      <pubDate>Mon, 27 Jun 2011 16:49:58 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/?p=864</guid> 
      <description>&lt;p&gt;&lt;em&gt;&lt;a href=&#34;https://www.msoos.org/wordpress/wp-content/uploads/2011/06/cups.jpg&#34;&gt;&lt;img loading=&#34;lazy&#34; src=&#34;https://www.msoos.org/wordpress/wp-content/uploads/2011/06/cups.jpg&#34;&gt;&lt;/a&gt;(Note: the judges made a small mistake, and CryptoMiniSat only won 1 gold and 1 silver medal. Details below.)&lt;/em&gt; &lt;em&gt;CryptoMiniSat&lt;/em&gt;&amp;rsquo;s SAT Competition&#39;11 version, &amp;ldquo;Strange Night&amp;rdquo;&lt;a href=&#34;http://www.cril.univ-artois.fr/SAT11/results/ranking.php?idev=46&amp;amp;seqCpuLimit=5000&amp;amp;parCpuLimit=40000&amp;amp;wcLimit=5000&#34;&gt;won&lt;/a&gt; two gold medals at the &lt;a href=&#34;http://www.cril.univ-artois.fr/SAT11/&#34;&gt;competition&lt;/a&gt;: one shared with &lt;em&gt;&lt;a href=&#34;http://fmv.jku.at/lingeling/&#34;&gt;lingeling&lt;/a&gt;&lt;/em&gt; at the parallel SAT+UNSAT Applications track, and one at the parallel UNSAT Applications track. This is a great result, and I would like to thank everyone who helped me and the solver achieve this result: my fiancée, my current employer, &lt;a href=&#34;http://srlabs.de/&#34;&gt;Security Research Labs&lt;/a&gt; and Karsten Nohl in particular, who started the whole &lt;em&gt;CryptoMiniSat&lt;/em&gt; saga, my former employer, INRIA Rhone-Alpes and in particular &lt;a href=&#34;http://planete.inrialpes.fr/~ccastel/&#34;&gt;Claude Castelluccia&lt;/a&gt;, and finally, all the kind people at the &lt;a href=&#34;http://lists.gforge.inria.fr/mailman/listinfo/cryptominisat-devel&#34;&gt;development mailing list&lt;/a&gt;. Without the help of all these people, CryptoMiniSat would probably never exist in the first place, much less win such distinguished awards.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Dreaming up a parallel SAT architecture</title>
      <link>https://www.msoos.org/2011/06/dreaming-up-a-parallel-sat-architecture/</link>
      <pubDate>Mon, 06 Jun 2011 12:26:15 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/?p=799</guid> 
      <description>&lt;p&gt;When someone looks at the speed of solving when using parallel SAT solvers, it is easy to see that scaling doesn&amp;rsquo;t really work &amp;ndash; especially for the hard UNSAT problems. In the past months I have been struggling to think of an architecture that will enable me to write a SAT solver that solves this problem. Let me share with you where I got. It will be more of a brainstorming than a descriptive blog post, but maybe it will help you avoid pitfalls, or maybe just to get a better picture of parallel SAT solving.&lt;/p&gt;</description>
    </item>
    <item>
      <title>On the New Watchlist Scheme</title>
      <link>https://www.msoos.org/2011/01/on-the-new-watchlist-scheme/</link>
      <pubDate>Sun, 23 Jan 2011 10:12:24 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/?p=640</guid> 
      <description>&lt;p&gt;All right, so I am not so cool because I work on weekends, but I got &lt;a href=&#34;https://www.msoos.org/changing-the-watchlist-scheme&#34;&gt;this&lt;/a&gt; new watchlist scheme implemented. First off, let me say it was relatively easy to implement, which is a testament to the extensibility of CryptoMiniSat: it only took me ~4 hours to get it done. Secondly, I realised that I have forgotten XOR clauses when I thought through the new scheme. I used to store the current value of the XOR clause at the XOR clause itself (using the sings of the literals, being the hacker I am), and update it at every call to propXorClause(). Since we need to keep XOR clauses static just like normal clauses, this is no longer possible, so a separate data-structure needs to be built up for this. However, it won&amp;rsquo;t need too many updates, so all is fine, but it does make things a tad more complicated.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Changing the Watchlist Scheme</title>
      <link>https://www.msoos.org/2011/01/changing-the-watchlist-scheme/</link>
      <pubDate>Fri, 14 Jan 2011 12:18:59 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/?p=613</guid> 
      <description>&lt;p&gt;Okay, what if we changed the &lt;a href=&#34;http://www.ece.ucsb.edu/bears/class/256bd/RCFB256B3450-Zchoff.pdf&#34;&gt;watchlist scheme&lt;/a&gt;&amp;hellip; a bit? The way the watchlist scheme operates in SAT solvers is the following. We have a set of literals &lt;code&gt;lit1, lit2, lit3, lit4&lt;/code&gt; that defines the clause we want to be watched for propagation and conflict. We take two literals from this set of literals, and put them in a datastructure. It&amp;rsquo;s not important which ones we take, but we have to know which are the ones we took. So, we take the 1st and the 2nd (because we are lazy), and we put them in a set of lists called the watchlists. We now have a pointer to the clause in &lt;code&gt;watchlist[~lit1]&lt;/code&gt; and in &lt;code&gt;watchlist[~lit2]&lt;/code&gt;, where &lt;code&gt;~&lt;/code&gt; is the binary negation. If we now set &lt;code&gt;lit1 = false&lt;/code&gt; we have to have a look at the clauses in &lt;code&gt;watchlist[~lit1]&lt;/code&gt;, see if any of the clauses forces a propagation. If not, then we remove the corresponding &lt;code&gt;lit1&lt;/code&gt; from the watchlist, find another literal that is unset, e.g. &lt;code&gt;lit3&lt;/code&gt;, and put that into the watchlist[~lit3]. It is important that &lt;code&gt;lit3&lt;/code&gt; must not be &lt;code&gt;lit1&lt;/code&gt; or &lt;code&gt;lit2&lt;/code&gt;. Obviously, we know what &lt;code&gt;lit1&lt;/code&gt; is (we are visiting its watchlist, after all), but how could we know what &lt;code&gt;lit2&lt;/code&gt; is? Well, we always update the clause such that &lt;code&gt;lit1&lt;/code&gt; and &lt;code&gt;lit2&lt;/code&gt; are the first two literals. We do this for every clause in every watchlist, and until a conflict is found, or all clauses are satisfied.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
