<?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>SAT on Wonderings of a SAT geek</title>
    <link>https://www.msoos.org/categories/sat/</link>
    <description>Recent content in SAT on Wonderings of a SAT geek</description>
    <generator>Hugo</generator>
    <language>en-US</language>
    <lastBuildDate>Sun, 13 Sep 2026 19:54:33 +0000</lastBuildDate>
    <atom:link href="https://www.msoos.org/categories/sat/feed.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>CryptoMiniSat on XNF Benchmarks, Revisited</title>
      <link>https://www.msoos.org/2026/09/cryptominisat-on-xnf-benchmarks-revisited/</link>
      <pubDate>Sun, 13 Sep 2026 19:54:33 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/?p=3656</guid> 
      <description>&lt;p&gt;I was quite hopeful when I first saw the XNF solver &lt;a href=&#34;https://github.com/j-danner/2-Xornado&#34;&gt;2-Xornado&lt;/a&gt;, and then &lt;a href=&#34;https://github.com/j-danner/Xorricane/&#34;&gt;Xorricane&lt;/a&gt;, which solve so-called XOR-OR-AND (XNF) problems, i.e. problems written in the format &amp;ldquo;(a XOR b XOR c) or (f XOR NOT g)&amp;rdquo;. The two papers about this family of solvers were [ &lt;a href=&#34;https://arxiv.org/pdf/2311.00733&#34;&gt;PDF1&lt;/a&gt;][ &lt;a href=&#34;https://dl.acm.org/doi/epdf/10.1613/jair.1.20298&#34;&gt;PDF2&lt;/a&gt;], and the results looked impressive. They could outdo &lt;a href=&#34;https://github.com/msoos/cryptominisat&#34;&gt;CryptoMiniSat&lt;/a&gt;, my CNF-XOR solver, on a bunch of instance families. To be honest, I suspected a cutoff being fired, but I was also hopeful and didn&amp;rsquo;t want to be the annoying person in the way of new research. Then the Xorcle paper dropped [ &lt;a href=&#34;https://arxiv.org/pdf/2605.15002&#34;&gt;PDF&lt;/a&gt;] and my collaborator asked me to take a look. This led me down a rabbit hole of figuring out that in fact, all these years, XNF solvers have been comparing against CryptoMiniSat in a somewhat unflattering way.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Ganakv2 Released</title>
      <link>https://www.msoos.org/2025/05/ganakv2-released/</link>
      <pubDate>Mon, 12 May 2025 02:17:50 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/?p=3612</guid> 
      <description>&lt;p&gt;Finally, after many months of waiting for our paper to be accepted (preliminary &lt;a href=&#34;https://www.msoos.org/wordpress/wp-content/uploads/2025/05/ganak2.pdf&#34;&gt;PDF here&lt;/a&gt;), Ganak2 is finally released (&lt;a href=&#34;https://github.com/meelgroup/ganak/&#34;&gt;GitHub code,&lt;/a&gt; released &lt;a href=&#34;https://github.com/meelgroup/ganak/releases/latest&#34;&gt;binaries&lt;/a&gt;) and easily accessible and modifiable. I wish this release had come earlier, but double-blind requirements didn&amp;rsquo;t allow us to release the code any sooner.&lt;/p&gt;
&lt;p&gt;Basically, Ganakv2 has been re-written in many ways. Some of the original ideas by Thurley for SharpSAT has been kept alive, but many-many things are completely different and completely re-written &amp;ndash; well over 10&#39;000 lines of change in total. This set of changes has allowed Ganak2 to &lt;a href=&#34;https://mccompetition.org/assets/files/2024/MC2024_awards.pdf&#34;&gt;win every available track&lt;/a&gt; at the Model Counting Competition of 2024. In other words, Ganak2 is incredibly fast, making it a state-of-the-art tool.&lt;/p&gt;</description>
    </item>
    <item>
      <title>On SAT/SMT Model Counting</title>
      <link>https://www.msoos.org/2024/10/on-sat-smt-model-counting/</link>
      <pubDate>Thu, 24 Oct 2024 22:18:14 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/?p=3539</guid> 
      <description>&lt;p&gt;I have recently had a few discussions with people who wanted to do some form of model counting, and I decided to put my thoughts about this problem into a single blog post, hopefully bringing some light to this area. Firstly, when talking about model counting, it&amp;rsquo;s very important to think through what one actually needs to achieve. When people talk about a model, they often mean a solution to a problem, described as a set of constraints over either purely boolean variables (so-called propositional model counting) expressed in so-called &lt;a href=&#34;https://en.wikipedia.org/wiki/Conjunctive_normal_form&#34;&gt;CNF&lt;/a&gt;, or over higher-level constraints, often expressed in &lt;a href=&#34;https://smt-lib.org/examples.shtml&#34;&gt;SMT-LIB&lt;/a&gt; format.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Our tools for solving, counting and sampling</title>
      <link>https://www.msoos.org/2024/02/our-tools-for-solving-counting-and-sampling/</link>
      <pubDate>Sun, 18 Feb 2024 20:46:58 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/?p=3520</guid> 
      <description>&lt;p&gt;This post is just a bit of a recap of what we have developed over the years as part of our toolset of SAT solvers, counters, and samplers. Many of these tools depend on each other, and have taken greatly from other tools, papers, and ideas. These dependencies are too long to list here, but the list is long, probably starting somewhere around the &lt;a href=&#34;https://en.wikipedia.org/wiki/Thales_of_Miletus#Mathematics&#34;&gt;Greek period&lt;/a&gt;, and goes all the way to recent work such as &lt;a href=&#34;https://github.com/Laakeri/sharpsat-td&#34;&gt;SharpSAT-td&lt;/a&gt; or &lt;a href=&#34;http://www.cril.univ-artois.fr/KC/bpe2.html&#34;&gt;B+E&lt;/a&gt;. My personal work stretches back to the beginning of &lt;a href=&#34;https://github.com/msoos/cryptominisat&#34;&gt;CryptoMiniSat&lt;/a&gt; in 2009, and the last addition to our list is &lt;a href=&#34;https://github.com/meelgroup/pepin&#34;&gt;Pepin&lt;/a&gt;.&lt;/p&gt;</description>
    </item>
    <item>
      <title>The Inprocessing API of CryptoMiniSat</title>
      <link>https://www.msoos.org/2023/10/the-inprocessing-api-of-cryptominisat/</link>
      <pubDate>Sun, 01 Oct 2023 14:08:37 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/?p=3512</guid> 
      <description>&lt;p&gt;Many modern SAT solvers do a lot of what&amp;rsquo;s called inprocessing. These steps simplify the CNF into something that is easier to solve. In the compiler world, these are called &lt;a href=&#34;https://en.wikipedia.org/wiki/Rewriting&#34;&gt;rewritngs&lt;/a&gt; since the effectively rewrite (parts of) the formula to something else that retain certain properties, such as satisfiability. One of the most successful such rewrite rules for CNF is Bounded Variable Elimination (BVE, &lt;a href=&#34;https://fmv.jku.at/papers/EenBiere-SAT05.pdf&#34;&gt;classic paper here&lt;/a&gt;), but there are many others. These rewrites are usually done by modern SAT solvers in a particular order that was found to be working well for their particular use-case, but they are not normally accessible from the outside.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Checking Uniform-Like Samplers</title>
      <link>https://www.msoos.org/2022/06/checking-uniform-like-samplers/</link>
      <pubDate>Thu, 23 Jun 2022 09:53:56 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/?p=3410</guid> 
      <description>&lt;p&gt;Uniform sampling is pretty simple: there are a set of solutions to a set of equations, and I want you to give me N solutions uniformly at random. Say, I have a set of equations that only has the solutions x=1&amp;hellip;6, and I ask you to give me solutions uniformly at random. In this case, if the system is not cheating, it should give me solutions exactly like a random dice would give: 1..6, each with the same probability of 1/6. Now, if you give me nothing but 1&amp;rsquo;s I&amp;rsquo;d be slightly confused, and eventually would think you may be trying to cheat.&lt;/p&gt;</description>
    </item>
    <item>
      <title>CMSGen, a Fast Uniform-Like Sampler</title>
      <link>https://www.msoos.org/2021/09/cmsgen-a-fast-uniform-like-sampler/</link>
      <pubDate>Sat, 18 Sep 2021 09:03:22 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/?p=3379</guid> 
      <description>&lt;p&gt;Uniform sampling is a problem where you are given a solution space and you have to present solutions uniformly, at random. In some cases, this is quite simple, say, for the lotto. Just pick 5 random numbers from a box and we are done! For the lotto the solution space is very easy to generate. However, when there are constraints on the solution space, it starts to get tricky.&lt;/p&gt;
&lt;p&gt;Let&amp;rsquo;s say that I have a function I want to test, but the input to the function has some real-world constraints like e.g. the 1st parameter must be larger than the second, the 2nd parameter must be divisible by the 3rd etc. If I want to test that this function operates correctly, one way to do it is to generate 100 uniformly random inputs that don&amp;rsquo;t violate any of the constraints, run the function, and see if all is OK. For this, I need a fast way of generating uniform samples given the constraints on the solution space.&lt;/p&gt;</description>
    </item>
    <item>
      <title>CryptoMiniSat 5.8.0 Released</title>
      <link>https://www.msoos.org/2020/07/cryptominisat-5-8-0-released/</link>
      <pubDate>Sun, 26 Jul 2020 21:05:19 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/?p=3350</guid> 
      <description>&lt;p&gt;After many months of work, CryptoMiniSat 5.8.0 has been &lt;a href=&#34;https://github.com/msoos/cryptominisat/releases/tag/5.8.0&#34;&gt;released&lt;/a&gt;. In this post I&amp;rsquo;ll go through the most important changes, and how they helped the solver to be faster and &lt;a href=&#34;https://satcompetition.github.io/2020/results.html&#34;&gt;win a few awards&lt;/a&gt;, among them 1st place at the SAT incremental track, 3rd place SAT Main track, and 2nd&amp;amp;3d place in the SMT BitVector tracks together with the STP and MinkeyRink solvers.&lt;/p&gt;
&lt;h2 id=&#34;gauss-jordan-elimination&#34;&gt;Gauss-Jordan Elimination&lt;/h2&gt;
&lt;p&gt;First and foremost, Gauss-Jordan elimination at all levels of the search is now enabled by default. This is thanks to the work detailed in the CAV 2020 &lt;a href=&#34;https://www.comp.nus.edu.sg/~meel/Papers/cav20-sgm.pdf&#34;&gt;paper&lt;/a&gt; (video &lt;a href=&#34;https://youtu.be/C3YCFnNPD4Y?t=3068&#34;&gt;here&lt;/a&gt;). The gist of the paper is that we take advantage of the bit-packed matrix and some clever bit field filters to quickly check whether an XOR constraint is propagating, conflicting, or neither. This, and a variety of other improvements lead to about 3-10x speedup for the Gauss-Jordan elimination procedure.&lt;/p&gt;</description>
    </item>
    <item>
      <title>SAT Solvers as Smart Search Engines</title>
      <link>https://www.msoos.org/2019/02/sat-solvers-as-smart-search-engines/</link>
      <pubDate>Wed, 13 Feb 2019 21:47:15 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/?p=3263</guid> 
      <description>&lt;p&gt;&lt;a href=&#34;https://en.wikipedia.org/wiki/Boolean_satisfiability_problem&#34;&gt;Satisfiability problem solvers,&lt;/a&gt; or SAT solvers for short, try to find a solution to decidable, finite problems such as cryptography, planning, scheduling, and the like. They are very finely tuned engines that can be looked at in two main ways . One is to see them as proof generators, where the SAT solver is building a proof of unsatisfiability as it runs, i.e. it tries to prove that there is no solution to the problem. Another way is to see SAT solvers as smart search engines. In this blog post, I&amp;rsquo;ll take this latter view and try to explain why I think intermediary variables are important. So, for the sake of argument, let&amp;rsquo;s forget that SAT solvers sometimes restart the search (forgetting where they were before) and learn clauses (cutting down the search space and remembering where not go again). Let&amp;rsquo;s just pretend all they do is search.&lt;/p&gt;</description>
    </item>
    <item>
      <title>How Approximate Model Counting Works</title>
      <link>https://www.msoos.org/2018/12/how-approximate-model-counting-works/</link>
      <pubDate>Sun, 09 Dec 2018 14:39:21 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/?p=3229</guid> 
      <description>&lt;p&gt;Approximate model counting allows to count the number of solutions (or &amp;ldquo;models&amp;rdquo;) to propositional satisfiability problems. This problem seems trivial at first given a propositional solver that can find a single solution: find one solution, ban it, ask for another one, ban it, etc. until all solutions are counted. The issue is that sometimes, the number of solutions is 2^50 and so counting this way is too slow. There are about 2^266 atoms in the universe, so counting anywhere near that is impossible using this method.&lt;/p&gt;</description>
    </item>
    <item>
      <title>ApproxMCv3, a modern approximate model counter</title>
      <link>https://www.msoos.org/2018/11/approxmcv3-a-modern-approximate-model-counter/</link>
      <pubDate>Sun, 25 Nov 2018 20:33:16 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/?p=3213</guid> 
      <description>&lt;p&gt;This blogpost and its underlying work has been brewing for many years, and I&amp;rsquo;m extremely happy to be able to share it with you now. Kuldeep Meel and myself have been working very hard on speeding up approximate model counting for SAT and I think we have made real progress. The research paper, accepted at AAAI-19 is available &lt;a href=&#34;https://www.comp.nus.edu.sg/~meel/Papers/aaai19-sm.pdf&#34;&gt;here&lt;/a&gt;. The code is available &lt;a href=&#34;https://github.com/meelgroup/ApproxMC&#34;&gt;here&lt;/a&gt; (release with static binary &lt;a href=&#34;https://github.com/meelgroup/ApproxMC/releases&#34;&gt;here&lt;/a&gt;). The main result is that we can solve a &lt;strong&gt;lot&lt;/strong&gt; more problems than before. The speed of solving is orders(!) of magnitude faster than the previous best system:&lt;/p&gt;</description>
    </item>
    <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>CryptoMiniSat 5.6.3 Released</title>
      <link>https://www.msoos.org/2018/06/cryptominisat-5-6-3-released/</link>
      <pubDate>Mon, 11 Jun 2018 07:21:29 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/?p=3166</guid> 
      <description>&lt;p&gt;The latest CryptoMiniSat, version 5.6.3 has been &lt;a href=&#34;https://github.com/msoos/cryptominisat/releases/tag/5.6.3&#34;&gt;released&lt;/a&gt;. This release marks the 12&#39;000th commit to this solver that has weathered more than I originally intended it to weather. It&amp;rsquo;s been an interesting ride, and I have a lot to thank &lt;a href=&#34;http://www.comp.nus.edu.sg/~meel/&#34;&gt;Kuldeep&lt;/a&gt; and &lt;a href=&#34;https://www.nscc.sg/&#34;&gt;NSCC&lt;/a&gt;&amp;rsquo;s ASPIRE-1 cluster for this release. I have burned over 200k CPU hours to make this release, so it&amp;rsquo;s a pretty well-performing release (out-performing anything out there, by a wide margin), though I&amp;rsquo;m working &lt;em&gt;very&lt;/em&gt; 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.&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 5.0.0 released</title>
      <link>https://www.msoos.org/2016/07/cryptominisat-5-0-0-released/</link>
      <pubDate>Wed, 06 Jul 2016 12:28:59 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/?p=2976</guid> 
      <description>CryptoMiniSat 5.0.0, after winning the incremental track at &lt;a href=&#34;http://baldur.iti.kit.edu/sat-competition-2016/index.php?cat=results&#34;&gt;SAT Competition 2016&lt;/a&gt; and getting 3rd place at the parallel track, has been &lt;a href=&#34;https://github.com/msoos/cryptominisat/releases/tag/cryptominisat-5.0.0&#34;&gt;released&lt;/a&gt;. The new solver contains a number of important additions. The most important are that the solver can now be used as a preprocessor and Gauss-Jordan Elimination is back.</description>
    </item>
    <item>
      <title>Memory layout of clauses in MiniSat</title>
      <link>https://www.msoos.org/2016/03/memory-layout-of-clauses-in-minisat/</link>
      <pubDate>Wed, 30 Mar 2016 00:30:12 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/?p=2925</guid> 
      <description>&lt;p&gt;I have been trying to debug why some &lt;a href=&#34;https://github.com/niklasso/minisat&#34;&gt;MiniSat&lt;/a&gt;-based solvers perform better at &lt;a href=&#34;https://en.wikipedia.org/wiki/Unit_propagation&#34;&gt;unit propagation&lt;/a&gt; than CryptoMiniSat. It took me exactly 3 full days to find out and I&amp;rsquo;d like to share this tidbit of information with everyone, as I think it might be of interest and I hardly believe many understand it.&lt;/p&gt;
&lt;p&gt;The mystery of the faster unit propagation was that I tried my best to make my solver behave exactly as MiniSat to debug the issue, but even though it was behaving almost identically, it was still slower. It made no sense and I had to dig deeper. You have to understand that both solvers use their own memory managers. In fact, CryptoMiniSat had a memory manager before MiniSat. Memory managers are used so that the clauses are put close to one another so there is a chance that they are in the same memory page, or even better, close enough for them not to waste memory in the cache. This means that a contiguous memory space is reserved where the clauses are placed.&lt;/p&gt;
</description>
    </item>
    <item>
      <title>Testing CryptoMiniSat using GoogleTest</title>
      <link>https://www.msoos.org/2015/11/testing-cryptominisat-using-googletest/</link>
      <pubDate>Sun, 01 Nov 2015 22:13:46 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/?p=2830</guid> 
      <description>&lt;p&gt;Lately, I have been working quite hard on writing module tests for CryptoMinisat using &lt;a href=&#34;https://code.google.com/p/googletest/&#34;&gt;GoogleTest&lt;/a&gt;. I&amp;rsquo;d like to share what I&amp;rsquo;ve learnt and what surprised me most about this exercise.&lt;/p&gt;
&lt;h2 id=&#34;an-example&#34;&gt;An example&lt;/h2&gt;
&lt;p&gt;First of all, let me show how a typical test looks like:&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-fallback&#34; data-lang=&#34;fallback&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;TEST_F(intree, fail_1)
&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;    s-&amp;gt;add_clause_outer(str_to_cl(&amp;#34; 1,  2&amp;#34;));
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    s-&amp;gt;add_clause_outer(str_to_cl(&amp;#34;-2,  3&amp;#34;));
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    s-&amp;gt;add_clause_outer(str_to_cl(&amp;#34;-2, -3&amp;#34;));
&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;    inp-&amp;gt;intree_probe();
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    check_zero_assigned_lits_contains(s, &amp;#34;-2&amp;#34;);
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;}
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Here we are checking that &lt;a href=&#34;http://www.cs.utexas.edu/~marijn/cpaior2013.pdf&#34;&gt;intree probing&lt;/a&gt; finds that the set of three binary clauses cause a failure and it enqueues &amp;ldquo;-2&amp;rdquo; at top level. If one looks at it, it&amp;rsquo;s a fairly trivial test. It turns out that most are in fact, fairly trivial if the system is set up well. This test&amp;rsquo;s setup is the following test fixture:&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-gdscript3&#34; data-lang=&#34;gdscript3&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;struct intree : public ::testing::Test {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    intree()
&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;        must_inter &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;        s &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; new Solver(NULL, &lt;span style=&#34;color:#f92672&#34;&gt;&amp;amp;&lt;/span&gt;must_inter);
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        s&lt;span style=&#34;color:#f92672&#34;&gt;-&amp;gt;&lt;/span&gt;new_vars(&lt;span style=&#34;color:#ae81ff&#34;&gt;30&lt;/span&gt;);
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        inp &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; s&lt;span style=&#34;color:#f92672&#34;&gt;-&amp;gt;&lt;/span&gt;intree;
&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;    &lt;span style=&#34;color:#f92672&#34;&gt;~&lt;/span&gt;intree()
&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;        delete s;
&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;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    Solver&lt;span style=&#34;color:#f92672&#34;&gt;*&lt;/span&gt; s;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    InTree&lt;span style=&#34;color:#f92672&#34;&gt;*&lt;/span&gt; inp;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#a6e22e&#34;&gt;bool&lt;/span&gt; must_inter;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&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>Machine Learning and SAT</title>
      <link>https://www.msoos.org/2015/08/machine-learning-and-sat/</link>
      <pubDate>Sun, 09 Aug 2015 10:25:47 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/?p=2755</guid> 
      <description>&lt;p&gt;I have lately been digging myself into a deep hole with machine learning. While doing that it occurred to me that the SAT community has essentially been trying to imitate some of ML in a somewhat poor way. Let me explain.&lt;/p&gt;
&lt;h3 id=&#34;cryptominisat-and-clause-cleaning-strategy-selection&#34;&gt;CryptoMiniSat and clause cleaning strategy selection&lt;/h3&gt;
&lt;p&gt;When CryptoMiniSat won the &lt;a href=&#34;http://baldur.iti.uka.de/sat-race-2010/results.html&#34;&gt;SAT Race of 2010&lt;/a&gt;, it was in large part because I realized that glucose at the time was &lt;a href=&#34;http://www.cril.univ-artois.fr/SAT09/results/globalbybench.php?idev=29&amp;amp;idcat=62&#34;&gt;essentially unable&lt;/a&gt; to solve cryptographic problems. I devised a system where I could &lt;a href=&#34;https://github.com/msoos/cryptominisat/blob/cryptominisat-2.9.7/cmsat/RestartTypeChooser.cpp&#34;&gt;detect which problems were cryptographic&lt;/a&gt;. It checked the activity stability of variables and if they were more stable than a threshold, it was decided that the problem was cryptographic. Cryptographic problems were then solved using a geometric restart strategy with clause activities for learnt database cleaning. Without this hack, it would have been impossible to win the competition.&lt;/p&gt;
</description>
    </item>
    <item>
      <title>Towards CryptoMiniSat 5.0</title>
      <link>https://www.msoos.org/2015/06/towards-cryptominisat-5/</link>
      <pubDate>Sun, 14 Jun 2015 15:42:40 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/?p=2733</guid> 
      <description>&lt;p&gt;I have worked a lot on CryptoMiniSat 5.0 in the past months so I thought I&amp;rsquo;d write a little bit about what I spent my time on.&lt;/p&gt;
&lt;h3 id=&#34;amazon-aws&#34;&gt;Amazon AWS&lt;/h3&gt;
&lt;p&gt;I have put lots of effort into use &lt;a href=&#34;https://en.wikipedia.org/wiki/Amazon_Web_Services&#34;&gt;Amazon AWS&lt;/a&gt; service to run CMS. This is necessary in order to compete at the SAT competition where my competitors have access to massive resources, some to clusters having over 20k CPU cores. Competing against that with a 4-core machine like I did last year will simply not cut it.&lt;/p&gt;</description>
    </item>
    <item>
      <title>The past half year of SAT and SMT</title>
      <link>https://www.msoos.org/2015/05/the-past-half-year-of-sat-and-smt/</link>
      <pubDate>Mon, 25 May 2015 17:52:45 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/?p=2711</guid> 
      <description>&lt;p&gt;It&amp;rsquo;s been a while I have blogged. Lots of things happened on the way, I met people, changed countries, jobs, etc. In the meanwhile, I have been trying to bite the bullet of what has become of CryptoMiniSat: last year, it didn&amp;rsquo;t perform too well in the &lt;a href=&#34;http://www.satcompetition.org/2014/results.shtml&#34;&gt;SAT competition&lt;/a&gt;. In the past half year I have tried to fix the underlying issues. Let me try to explain what and how exactly.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Faster cleaning of the learnt clause database</title>
      <link>https://www.msoos.org/2014/11/cleaning-the-learnt-clause-database-faster/</link>
      <pubDate>Sun, 16 Nov 2014 17:46:28 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/?p=2674</guid> 
      <description>&lt;p&gt;In SAT solvers, removing unneeded learnt clauses from the clause database sounds like a trivial task: we somehow determine which clauses are not needed and we call remove() on them. However, in case performance is an issue, it can get a bit more more complicated.&lt;/p&gt;
&lt;h3 id=&#34;the-problem&#34;&gt;The problem&lt;/h3&gt;
&lt;p&gt;The issue at hand is that clauses are stored in two places: as a list of pointers to the clauses and in a list of lists called the watchlist. Removing clauses from either list can be an &lt;span class=&#34;katex&#34;&gt;&lt;span class=&#34;katex-mathml&#34;&gt;&lt;math xmlns=&#34;http://www.w3.org/1998/Math/MathML&#34;&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mi&gt;O&lt;/mi&gt;&lt;mo stretchy=&#34;false&#34;&gt;(&lt;/mo&gt;&lt;msup&gt;&lt;mi&gt;n&lt;/mi&gt;&lt;mn&gt;2&lt;/mn&gt;&lt;/msup&gt;&lt;mo stretchy=&#34;false&#34;&gt;)&lt;/mo&gt;&lt;/mrow&gt;&lt;annotation encoding=&#34;application/x-tex&#34;&gt;O(n^2)&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;&lt;/span&gt;&lt;span class=&#34;katex-html&#34; aria-hidden=&#34;true&#34;&gt;&lt;span class=&#34;katex-base&#34;&gt;&lt;span class=&#34;katex-strut&#34; style=&#34;height:1.0641em;vertical-align:-0.25em;&#34;&gt;&lt;/span&gt;&lt;span class=&#34;mord mathnormal&#34; style=&#34;margin-right:0.0278em;&#34;&gt;O&lt;/span&gt;&lt;span class=&#34;mopen&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;mord&#34;&gt;&lt;span class=&#34;mord mathnormal&#34;&gt;n&lt;/span&gt;&lt;span class=&#34;msupsub&#34;&gt;&lt;span class=&#34;vlist-t&#34;&gt;&lt;span class=&#34;vlist-r&#34;&gt;&lt;span class=&#34;vlist&#34; style=&#34;height:0.8141em;&#34;&gt;&lt;span style=&#34;top:-3.063em;margin-right:0.05em;&#34;&gt;&lt;span class=&#34;pstrut&#34; style=&#34;height:2.7em;&#34;&gt;&lt;/span&gt;&lt;span class=&#34;katex-sizing reset-size6 size3 mtight&#34;&gt;&lt;span class=&#34;mord mtight&#34;&gt;2&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;mclose&#34;&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; operation if we e.g. remove every element from the list, one by one. In fact, an old version of the most popular SAT solver, &lt;a href=&#34;http://minisat.se/downloads/minisat2-070721.zip&#34;&gt;MiniSat2&lt;/a&gt;, used to do exactly this:&lt;/p&gt;</description>
    </item>
    <item>
      <title>TreeLook and transitive reduction</title>
      <link>https://www.msoos.org/2014/08/treelook-and-transitive-reduction/</link>
      <pubDate>Sat, 23 Aug 2014 16:53:28 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/?p=2653</guid> 
      <description>&lt;p&gt;The &lt;a href=&#34;http://link.springer.com/chapter/10.1007%2F978-3-642-38171-3_6&#34;&gt;paper by Heule et al.&lt;/a&gt; about hyper-binary resolution using intree-based lookahead is pretty funky. The idea is actually quite simple (and as usual, not exactly trivial to come up with): we re-use past propagations by reversing the order in which literals are normally enqueued.&lt;/p&gt;
&lt;h3 id=&#34;a-simple-example&#34;&gt;A simple example&lt;/h3&gt;
&lt;p&gt;First, a queue is built that starts with a leaf literal and then follows it up through binary clauses until it can. Then it backtracks (adds to the queue a special, * element) and continues. The point of the queue is to have an example order that we can use to dequeue literals from in reverse propagation order. Obviously, there are many different orders in which we can build this queue and I wouldn&amp;rsquo;t be surprised if there are some nice heuristics one can use. Let&amp;rsquo;s just assume we have such a queue.&lt;/p&gt;</description>
    </item>
    <item>
      <title>On using less memory for binary clauses in lingeling&#39;s watchlists</title>
      <link>https://www.msoos.org/2014/08/on-using-less-memory-for-binary-clauses-in-lingeling/</link>
      <pubDate>Mon, 18 Aug 2014 18:28:06 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/?p=2592</guid> 
      <description>&lt;p&gt;&lt;a href=&#34;http://fmv.jku.at/biere/&#34;&gt;Armin Biere&lt;/a&gt; gave a lecture at the &lt;a href=&#34;http://www.pragmaticsofsat.org/2014/&#34;&gt;Pragmatics of SAT workshop&lt;/a&gt; (proceeedings &lt;a href=&#34;http://www.easychair.org/publications/?page=624307&#34;&gt;here&lt;/a&gt;) in Vienna about all the things inside &lt;a href=&#34;http://fmv.jku.at/lingeling/&#34;&gt;lingeling&lt;/a&gt; which won a lot of awards[ &lt;a href=&#34;http://satcompetition.org/2014/SAT-COMP.pdf&#34;&gt;PDF&lt;/a&gt;] this year. If you weren&amp;rsquo;t there, you missed an amazing presentation. In this blog post I&amp;rsquo;ll reflect on a particular part of the presentation dealing with a memory trickery that has been intriguing me for a long while but I did not implement. Before I begin let me say: the presentation was awesome, and it&amp;rsquo;s not by chance that lingeling won so many awards.&lt;/p&gt;</description>
    </item>
    <item>
      <title>CryptoMiniSat 4.2 released</title>
      <link>https://www.msoos.org/2014/07/cryptominisat-4-2-released/</link>
      <pubDate>Thu, 17 Jul 2014 00:43:07 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/?p=2576</guid> 
      <description>&lt;p&gt;CryptoMiniSat 4.2 has been &lt;a href=&#34;https://www.msoos.org/cryptominisat4/&#34;&gt;released&lt;/a&gt;. This release brings multi-threading, some bug fixes, and a lot of code cleanup.&lt;/p&gt;
&lt;h3 id=&#34;multi-threading&#34;&gt;Multi-threading&lt;/h3&gt;
&lt;p&gt;Multi-threading has been implemented using the &lt;a href=&#34;http://en.cppreference.com/w/cpp/thread/thread&#34;&gt;std::thread&lt;/a&gt; class of C++11. This makes it very portable and at the same time easy to use. Multi-threading is very simple and only shares unitary and binary learnt clauses. This is in comparison to other approaches that have some form of &lt;a href=&#34;http://www.cril.univ-artois.fr/~jabbour/PDF/cp10.pdf&#34;&gt;complex clause-sharing algorithms&lt;/a&gt;, sometimes even sharing clause databases. However, this system works when it&amp;rsquo;s used as a library, even with assumptions. Simply call set_num_threads(N) before calling any other functions.&lt;/p&gt;</description>
    </item>
    <item>
      <title>SMT Competition&#39;14 and STP</title>
      <link>https://www.msoos.org/2014/06/smt-competition14-and-stp/</link>
      <pubDate>Tue, 24 Jun 2014 22:27:18 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/?p=2532</guid> 
      <description>&lt;p&gt;The &lt;a href=&#34;http://www.smtcomp.org/&#34;&gt;2014 SMT competition&lt;/a&gt;&amp;rsquo;s QF_BV divison is over (benchmark tarball &lt;a href=&#34;www.msoos.org/largefiles/QF_BV_smt_comp_2014.tar.gz&#34; title=&#34;QF_BV SAT-COMP&#39;14 benchmarks&#34;&gt;here&lt;/a&gt;), and the results are (copied from &lt;a href=&#34;http://smtcomp.sourceforge.net/2014/results-QF_BV.shtml?v=1403260059&#34;&gt;here&lt;/a&gt;):&lt;/p&gt;
&lt;table&gt;
	&lt;thead&gt;
			&lt;tr&gt;
					&lt;th&gt;&lt;/th&gt;
					&lt;th&gt;&lt;/th&gt;
					&lt;th&gt;&lt;/th&gt;
					&lt;th&gt;&lt;/th&gt;
					&lt;th&gt;&lt;/th&gt;
			&lt;/tr&gt;
	&lt;/thead&gt;
	&lt;tbody&gt;
			&lt;tr&gt;
					&lt;td&gt;&lt;strong&gt;Solver&lt;/strong&gt;&lt;/td&gt;
					&lt;td&gt;&lt;strong&gt;Errors&lt;/strong&gt;&lt;/td&gt;
					&lt;td&gt;&lt;strong&gt;Solved&lt;/strong&gt;&lt;/td&gt;
					&lt;td&gt;&lt;strong&gt;Not Solved&lt;/strong&gt;&lt;/td&gt;
					&lt;td&gt;&lt;strong&gt;CPU time (solved instances)&lt;/strong&gt;&lt;/td&gt;
			&lt;/tr&gt;
			&lt;tr&gt;
					&lt;td&gt;&lt;a href=&#34;http://fmv.jku.at/boolector/&#34;&gt;Boolector&lt;/a&gt;&lt;/td&gt;
					&lt;td&gt;0&lt;/td&gt;
					&lt;td&gt;2361&lt;/td&gt;
					&lt;td&gt;127&lt;/td&gt;
					&lt;td&gt;138077.59&lt;/td&gt;
			&lt;/tr&gt;
			&lt;tr&gt;
					&lt;td&gt;&lt;a href=&#34;https://github.com/stp/stp&#34;&gt;STP-CryptoMiniSat4&lt;/a&gt;&lt;/td&gt;
					&lt;td&gt;0&lt;/td&gt;
					&lt;td&gt;2283&lt;/td&gt;
					&lt;td&gt;205&lt;/td&gt;
					&lt;td&gt;190660.82&lt;/td&gt;
			&lt;/tr&gt;
			&lt;tr&gt;
					&lt;td&gt;[ &lt;a href=&#34;http://mathsat.fbk.eu/&#34;&gt;MathSAT&lt;/a&gt;]&lt;/td&gt;
					&lt;td&gt;0&lt;/td&gt;
					&lt;td&gt;2199&lt;/td&gt;
					&lt;td&gt;289&lt;/td&gt;
					&lt;td&gt;262349.39&lt;/td&gt;
			&lt;/tr&gt;
			&lt;tr&gt;
					&lt;td&gt;[ &lt;a href=&#34;http://z3.codeplex.com/&#34;&gt;Z3&lt;/a&gt;]&lt;/td&gt;
					&lt;td&gt;0&lt;/td&gt;
					&lt;td&gt;2180&lt;/td&gt;
					&lt;td&gt;308&lt;/td&gt;
					&lt;td&gt;214087.66&lt;/td&gt;
			&lt;/tr&gt;
			&lt;tr&gt;
					&lt;td&gt;&lt;a href=&#34;http://cvc4.cs.nyu.edu/web/&#34;&gt;CVC4&lt;/a&gt;&lt;/td&gt;
					&lt;td&gt;0&lt;/td&gt;
					&lt;td&gt;2166&lt;/td&gt;
					&lt;td&gt;322&lt;/td&gt;
					&lt;td&gt;87954.62&lt;/td&gt;
			&lt;/tr&gt;
			&lt;tr&gt;
					&lt;td&gt;4Simp&lt;/td&gt;
					&lt;td&gt;0&lt;/td&gt;
					&lt;td&gt;2121&lt;/td&gt;
					&lt;td&gt;367&lt;/td&gt;
					&lt;td&gt;187966.86&lt;/td&gt;
			&lt;/tr&gt;
			&lt;tr&gt;
					&lt;td&gt;&lt;a href=&#34;http://www.informatik.uni-bremen.de/agbs/florian/sonolar/&#34;&gt;SONOLAR&lt;/a&gt;&lt;/td&gt;
					&lt;td&gt;0&lt;/td&gt;
					&lt;td&gt;2026&lt;/td&gt;
					&lt;td&gt;462&lt;/td&gt;
					&lt;td&gt;174134.49&lt;/td&gt;
			&lt;/tr&gt;
			&lt;tr&gt;
					&lt;td&gt;&lt;a href=&#34;http://yices.csl.sri.com/&#34;&gt;Yices2&lt;/a&gt;&lt;/td&gt;
					&lt;td&gt;0&lt;/td&gt;
					&lt;td&gt;1770&lt;/td&gt;
					&lt;td&gt;718&lt;/td&gt;
					&lt;td&gt;159991.55&lt;/td&gt;
			&lt;/tr&gt;
			&lt;tr&gt;
					&lt;td&gt;abziz_min_features&lt;/td&gt;
					&lt;td&gt;9&lt;/td&gt;
					&lt;td&gt;2155&lt;/td&gt;
					&lt;td&gt;324&lt;/td&gt;
					&lt;td&gt;134385.22&lt;/td&gt;
			&lt;/tr&gt;
			&lt;tr&gt;
					&lt;td&gt;abziz_all_features&lt;/td&gt;
					&lt;td&gt;9&lt;/td&gt;
					&lt;td&gt;2093&lt;/td&gt;
					&lt;td&gt;386&lt;/td&gt;
					&lt;td&gt;122540.04&lt;/td&gt;
			&lt;/tr&gt;
	&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;First, let me congratulate &lt;a href=&#34;http://fmv.jku.at/boolector/&#34;&gt;Boolector&lt;/a&gt; by Armin Biere. &lt;a href=&#34;https://github.com/stp/stp&#34;&gt;STP&lt;/a&gt; came a not-so-close second. STP was meant to be submitted twice, once with MiniSat and once with CyrptoMiniSat4 &amp;ndash; this is the &lt;em&gt;only&lt;/em&gt; reason why the STP submission is called STP-CryptoMiniSat4. Unfortunately, the other submission could not be made because of some compilation problems.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Multi-threading and startup speed</title>
      <link>https://www.msoos.org/2014/05/multi-threading-and-startup-speed/</link>
      <pubDate>Fri, 16 May 2014 16:10:31 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/?p=2521</guid> 
      <description>&lt;p&gt;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&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-fallback&#34; data-lang=&#34;fallback&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;void add_clause_to_all_threads(Clause clause) {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  for(int i = 0; i &amp;lt; threads; i++) {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    solver[i].add_clause(clause);
&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;}
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;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&amp;rsquo;s suddenly more than half a minute.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Final polish of my SAT competition entry</title>
      <link>https://www.msoos.org/2014/05/final-polish-of-sat-competition-2014-entry/</link>
      <pubDate>Mon, 05 May 2014 18:01:20 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/?p=2505</guid> 
      <description>&lt;p&gt;[wpdm_file id=2] UPDATE: Fixed crash, UPDATE2: fixed looking for Gaussian elimination library&lt;/p&gt;
&lt;p&gt;In the last days of the competition deadline, I have improved the following on the SAT solver:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Adding N new variables is now possible in one go. This reduces variable addition overhead, especially when having many threads.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Diversified the threads&amp;rsquo; parameters. Also, I reduced the number of threads to 8. I wanted to run with 12, but it&amp;rsquo;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.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;</description>
    </item>
    <item>
      <title>My SAT Competition 2014 entry</title>
      <link>https://www.msoos.org/2014/04/my-sat-competition-2014-entry/</link>
      <pubDate>Tue, 29 Apr 2014 06:13:09 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/?p=2498</guid> 
      <description>&lt;p&gt;[wpdm_file id=2]&lt;/p&gt;
&lt;p&gt;In case you want to download my SAT competition 2014 zipfile, you can do it now. You can port the changes that you added to CryptoMiniSatv4 &amp;ndash; it should work out of the box. Nothing really important changed except some timeout fixes, bug fixes, threading, and fixing &lt;a href=&#34;http://www.cs.utexas.edu/~marijn/drat-trim/&#34;&gt;DRAT&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Unfortunately the SAT Competition&#39;14 setup doesn&amp;rsquo;t have Boost&amp;rsquo;s &lt;a href=&#34;http://www.boost.org/doc/libs/1_55_0/doc/html/program_options.html&#34;&gt;program options&lt;/a&gt;, so I had to create a main_simple.cpp that compiles without Boost. It only supports options &amp;ldquo;&amp;ndash;drat=1&amp;rdquo;, &amp;ldquo;&amp;ndash;threads=N&amp;rdquo;, &amp;ldquo;&amp;ndash;verbosity=N&amp;rdquo; and reading plain CNF files (not gzipped). This means you will have to edit SolverConf.cpp in case your changeset involves command line options. The command line options and their corresponding class variables are easy to look up in main.cpp, so changing SolverConf.cpp appropriately should not be difficult.&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>Why it&#39;s hard to eliminate variables</title>
      <link>https://www.msoos.org/2014/04/why-its-hard-to-eliminate-variables/</link>
      <pubDate>Wed, 16 Apr 2014 15:39:47 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/?p=2434</guid> 
      <description>&lt;p&gt;Let&amp;rsquo;s examine why it&amp;rsquo;s hard to eliminate variables. I remember the code I looked at in &lt;a href=&#34;http://minisat.se/SatELite.html&#34;&gt;SatElite&lt;/a&gt; that did it: it was crazy clean code and looked like it was pretty easy to perform. In this post I&amp;rsquo;ll examine how that simple code became more than a 1&#39;000 lines of code today.&lt;/p&gt;
&lt;h3 id=&#34;what-needs-to-be-done-at-first-sight&#34;&gt;What needs to be done, at first sight&lt;/h3&gt;
&lt;p&gt;At first sight, variable elimination is easy. We just:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Build occurrence lists&lt;/li&gt;
&lt;li&gt;Pick a variable to eliminate&lt;/li&gt;
&lt;li&gt;Resolve every clause having the positive literal of the variable with negative ones.&lt;/li&gt;
&lt;li&gt;Add newly resolved clauses into the system&lt;/li&gt;
&lt;li&gt;Remove original clauses.&lt;/li&gt;
&lt;li&gt;Goto 2.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;These are all pretty simple steps at first sight, and one can imagine that implementing them is maybe 50-100 lines of code, no more. So, let&amp;rsquo;s examine them one-by-one to see how they get complicated.&lt;/p&gt;</description>
    </item>
    <item>
      <title>CryptoMiniSat 4 released</title>
      <link>https://www.msoos.org/2014/04/cryptominisat-4-released/</link>
      <pubDate>Wed, 09 Apr 2014 20:07:20 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/?p=2374</guid> 
      <description>&lt;p&gt;[wpdm_file id=1]
CryptoMiniSat 4 is now available for download. This version brings a number of substantial improvements and picks up speed to be as good as the best solvers out there. It now has a much improved library interface as well as a simple but powerful python interface.&lt;/p&gt;
&lt;h3 id=&#34;sat-competition-2014&#34;&gt;SAT Competition 2014&lt;/h3&gt;
&lt;p&gt;This release is made ahead of the &lt;a href=&#34;http://www.satcompetition.org/2014/&#34;&gt;SAT competition 2014&lt;/a&gt; deadlines so anybody can compete and actually have a chance to win. Unfortunately, the way I see it, it&amp;rsquo;s not possible to use newer versions of &lt;a href=&#34;http://fmv.jku.at/lingeling/&#34;&gt;lingeling&lt;/a&gt; or &lt;a href=&#34;http://tools.computational-logic.org/content/riss3g.php?run=eight&#34;&gt;riss&lt;/a&gt; (see license for for details), &lt;a href=&#34;http://minisat.se/&#34;&gt;MiniSat&lt;/a&gt; is rather old and &lt;a href=&#34;http://www.labri.fr/perso/lsimon/glucose/&#34;&gt;glucose&lt;/a&gt; doesn&amp;rsquo;t have new simplification techniques. If you feel the same way, and you rather not write 30K LoC of code, you might enjoy playing with CryptoMiniSat v4 and submitting it to the competition. You can change as much as you like, it&amp;rsquo;s LGPLv2 &amp;ndash; just don&amp;rsquo;t call it CryptoMiniSat.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Speeding up MiniSat with a one-liner</title>
      <link>https://www.msoos.org/2014/03/speeding-up-minisat-with-a-one-liner/</link>
      <pubDate>Wed, 12 Mar 2014 22:31:28 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/?p=2343</guid> 
      <description>&lt;p&gt;All SAT solvers must have a tri-state class that can hold the values `true`, `false`, and `undefined`. Although it&amp;rsquo;s not hard to write code to represent such a class, it&amp;rsquo;s hard to write such it so that all typical operations are fast. In this blog post I will compare three different ways of doing it.&lt;/p&gt;
&lt;h3 id=&#34;the-original-minisat-20-code&#34;&gt;The original MiniSat 2.0 code&lt;/h3&gt;
&lt;p&gt;The &lt;a href=&#34;http://minisat.se/downloads/minisat2-070721.zip&#34;&gt;original MiniSat 2.0&lt;/a&gt; used the following code for such a class:&lt;/p&gt;</description>
    </item>
    <item>
      <title>On variable renumbering</title>
      <link>https://www.msoos.org/2013/12/on-variable-renumbering/</link>
      <pubDate>Wed, 18 Dec 2013 01:34:15 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/?p=2198</guid> 
      <description>&lt;p&gt;Variable renumbering in SAT solvers keeps a mapping between the external variable numbers that is visible to the users and the internal variable numbers that is visible the to the system. The trivial mapping that most SAT solvers use is the one-to-one mapping where there is no difference between outer and internal variables. A smart mapping doesn&amp;rsquo;t keep track of all data related to variables that have been set or eliminated internally, so the internal datastructures can be smaller.&lt;/p&gt;</description>
    </item>
    <item>
      <title>A note on learnt clauses</title>
      <link>https://www.msoos.org/2013/12/a-note-on-learnt-clauses/</link>
      <pubDate>Fri, 06 Dec 2013 17:29:24 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/?p=2172</guid> 
      <description>&lt;p&gt;Learnt clauses are clauses derived while searching for a solution with a &lt;a href=&#34;https://en.wikipedia.org/wiki/Boolean_satisfiability_problem&#34;&gt;SAT solver&lt;/a&gt; in a &lt;a href=&#34;https://en.wikipedia.org/wiki/Conjunctive_normal_form&#34;&gt;CNF&lt;/a&gt;. They are at the heart of every modern so-called &amp;ldquo;CDCL&amp;rdquo; or &amp;ldquo;&lt;a href=&#34;https://en.wikipedia.org/wiki/Conflict_Driven_Clause_Learning&#34;&gt;Conflict-Driven Clause-Learning&lt;/a&gt;&amp;rdquo; SAT solver. SAT solver writers make a very important difference between learnt and original clauses. In this blog post I&amp;rsquo;ll talk a little bit about this distinction, why it is important to make it, and why we might want to relax that distinction in the future.&lt;/p&gt;</description>
    </item>
    <item>
      <title>MiniSat in your browser</title>
      <link>https://www.msoos.org/2013/09/minisat-in-your-browser/</link>
      <pubDate>Sun, 29 Sep 2013 19:37:34 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/?p=2082</guid> 
      <description>&lt;h2 id=&#34;click-hereto-run-cyrptominisat-in-your-browser&#34;&gt;**&lt;a href=&#34;http://msoos.github.io/cryptominisat_web/&#34;&gt;CLICK HERE&lt;/a&gt;**to run CyrptoMiniSat in your browser&lt;/h2&gt;
&lt;p&gt;Lately, I have become an &lt;a href=&#34;http://llvm.org/&#34;&gt;LLVM&lt;/a&gt; nut. LLVM is amazing, it can do a lot, and, weirdly enough, a system developed from it is probably one of the biggest users of SAT solvers. I&amp;rsquo;m talking about &lt;a href=&#34;http://ccadar.github.io/klee/&#34;&gt;KLEE&lt;/a&gt;, the symbolic virtual execution machine. It takes a source, compiles it with LLVM, then translates the &lt;a href=&#34;http://llvm.org/docs/LangRef.html#abstract&#34;&gt;LLVM IR&lt;/a&gt; into SMT, runs &lt;a href=&#34;https://sites.google.com/site/stpfastprover/&#34;&gt;STP&lt;/a&gt; on it, which in turn runs &lt;a href=&#34;https://www.msoos.org/cryptominisat2/&#34;&gt;CryptoMiniSat&lt;/a&gt;, and voila&amp;hellip; the user gets back a free bug report. Or &lt;a href=&#34;http://lists.debian.org/debian-devel/2013/06/msg00720.html&#34;&gt;1&#39;200 bug reports&lt;/a&gt;.&lt;/p&gt;</description>
    </item>
    <item>
      <title>My SAT solver fuzzing setup</title>
      <link>https://www.msoos.org/2013/08/my-sat-solver-fuzzing-setup/</link>
      <pubDate>Sun, 25 Aug 2013 15:12:03 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/?p=2023</guid> 
      <description>&lt;p&gt;Since the SAT solver &lt;a href=&#34;https://en.wikipedia.org/wiki/Fuzz_testing&#34;&gt;fuzzing&lt;/a&gt; &lt;a href=&#34;http://fmv.jku.at/papers/BrummayerLonsingBiere-SAT10.pdf&#34;&gt;paper&lt;/a&gt; by Brummayer, Lonsing and Biere, SAT solver fuzzing has been quite the thing in the SAT community. Many bugs have since been discovered in almost all SAT solvers, including those of this author. In this blog post I will detail my SAT fuzzing setup: what fuzzers I use and how I use them.&lt;/p&gt;
&lt;h3 id=&#34;my-fuzzers&#34;&gt;My fuzzers&lt;/h3&gt;
&lt;p&gt;The most obvious fuzzers to use are those present in the paper and accompanying &lt;a href=&#34;http://fmv.jku.at/fuzzddtools/&#34;&gt;website&lt;/a&gt;: CNFFuzz and FuzzSAT. These fuzzers randomly genereate high-quality structured problem instances. The emphasis here is on the word structured. Randomly generated instances, as the authors of the original paper note, do not excercise SAT solvers enough. SAT solvers are written with very specific problem types in mind: problems containing long chains of binary clauses, gates, etc.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Why CryptoMiniSat 3.3 doesn&#39;t have XORs</title>
      <link>https://www.msoos.org/2013/08/why-cryptominisat-3-3-doesnt-have-xors/</link>
      <pubDate>Thu, 01 Aug 2013 10:23:12 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/?p=1910</guid> 
      <description>&lt;p&gt;I&amp;rsquo;ve had a number of inquiries about why CryptoMiniSat 3.3 doesn&amp;rsquo;t have native &lt;a href=&#34;https://www.msoos.org/xor-clauses/&#34;&gt;XOR clause&lt;/a&gt; support. Let me explain what I think the benefits and the drawbacks are of having native XOR support and why I made the choice of removing them.&lt;/p&gt;
&lt;h3 id=&#34;benefits&#34;&gt;Benefits&lt;/h3&gt;
&lt;p&gt;The most trivial benefit is that users don&amp;rsquo;t have to translate XORs into plain CNF. Although transforming is rather easy, some prefer not to go through the hassle. The principle is to cut the XOR into smaller XORs by introducing new variables and then representing the cut-down XORs by banning all the wrong combinations. For example the the XOR &lt;span class=&#34;katex&#34;&gt;&lt;span class=&#34;katex-mathml&#34;&gt;&lt;math xmlns=&#34;http://www.w3.org/1998/Math/MathML&#34;&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mi&gt;x&lt;/mi&gt;&lt;mo&gt;+&lt;/mo&gt;&lt;mi&gt;y&lt;/mi&gt;&lt;mo&gt;+&lt;/mo&gt;&lt;mi&gt;z&lt;/mi&gt;&lt;mo&gt;+&lt;/mo&gt;&lt;mi&gt;w&lt;/mi&gt;&lt;mo&gt;=&lt;/mo&gt;&lt;mn&gt;0&lt;/mn&gt;&lt;/mrow&gt;&lt;annotation encoding=&#34;application/x-tex&#34;&gt;x+y+z+w=0&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;&lt;/span&gt;&lt;span class=&#34;katex-html&#34; aria-hidden=&#34;true&#34;&gt;&lt;span class=&#34;katex-base&#34;&gt;&lt;span class=&#34;katex-strut&#34; style=&#34;height:0.6667em;vertical-align:-0.0833em;&#34;&gt;&lt;/span&gt;&lt;span class=&#34;mord mathnormal&#34;&gt;x&lt;/span&gt;&lt;span class=&#34;mspace&#34; style=&#34;margin-right:0.2222em;&#34;&gt;&lt;/span&gt;&lt;span class=&#34;mbin&#34;&gt;+&lt;/span&gt;&lt;span class=&#34;mspace&#34; style=&#34;margin-right:0.2222em;&#34;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;katex-base&#34;&gt;&lt;span class=&#34;katex-strut&#34; style=&#34;height:0.7778em;vertical-align:-0.1944em;&#34;&gt;&lt;/span&gt;&lt;span class=&#34;mord mathnormal&#34; style=&#34;margin-right:0.0359em;&#34;&gt;y&lt;/span&gt;&lt;span class=&#34;mspace&#34; style=&#34;margin-right:0.2222em;&#34;&gt;&lt;/span&gt;&lt;span class=&#34;mbin&#34;&gt;+&lt;/span&gt;&lt;span class=&#34;mspace&#34; style=&#34;margin-right:0.2222em;&#34;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;katex-base&#34;&gt;&lt;span class=&#34;katex-strut&#34; style=&#34;height:0.6667em;vertical-align:-0.0833em;&#34;&gt;&lt;/span&gt;&lt;span class=&#34;mord mathnormal&#34; style=&#34;margin-right:0.044em;&#34;&gt;z&lt;/span&gt;&lt;span class=&#34;mspace&#34; style=&#34;margin-right:0.2222em;&#34;&gt;&lt;/span&gt;&lt;span class=&#34;mbin&#34;&gt;+&lt;/span&gt;&lt;span class=&#34;mspace&#34; style=&#34;margin-right:0.2222em;&#34;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;katex-base&#34;&gt;&lt;span class=&#34;katex-strut&#34; style=&#34;height:0.4306em;&#34;&gt;&lt;/span&gt;&lt;span class=&#34;mord mathnormal&#34; style=&#34;margin-right:0.0269em;&#34;&gt;w&lt;/span&gt;&lt;span class=&#34;mspace&#34; style=&#34;margin-right:0.2778em;&#34;&gt;&lt;/span&gt;&lt;span class=&#34;mrel&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;mspace&#34; style=&#34;margin-right:0.2778em;&#34;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;katex-base&#34;&gt;&lt;span class=&#34;katex-strut&#34; style=&#34;height:0.6444em;&#34;&gt;&lt;/span&gt;&lt;span class=&#34;mord&#34;&gt;0&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; is cut into two XORs &lt;span class=&#34;katex&#34;&gt;&lt;span class=&#34;katex-mathml&#34;&gt;&lt;math xmlns=&#34;http://www.w3.org/1998/Math/MathML&#34;&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mi&gt;x&lt;/mi&gt;&lt;mo&gt;+&lt;/mo&gt;&lt;mi&gt;y&lt;/mi&gt;&lt;mo&gt;+&lt;/mo&gt;&lt;mi&gt;r&lt;/mi&gt;&lt;mo&gt;=&lt;/mo&gt;&lt;mn&gt;0&lt;/mn&gt;&lt;/mrow&gt;&lt;annotation encoding=&#34;application/x-tex&#34;&gt;x+y+r=0&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;&lt;/span&gt;&lt;span class=&#34;katex-html&#34; aria-hidden=&#34;true&#34;&gt;&lt;span class=&#34;katex-base&#34;&gt;&lt;span class=&#34;katex-strut&#34; style=&#34;height:0.6667em;vertical-align:-0.0833em;&#34;&gt;&lt;/span&gt;&lt;span class=&#34;mord mathnormal&#34;&gt;x&lt;/span&gt;&lt;span class=&#34;mspace&#34; style=&#34;margin-right:0.2222em;&#34;&gt;&lt;/span&gt;&lt;span class=&#34;mbin&#34;&gt;+&lt;/span&gt;&lt;span class=&#34;mspace&#34; style=&#34;margin-right:0.2222em;&#34;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;katex-base&#34;&gt;&lt;span class=&#34;katex-strut&#34; style=&#34;height:0.7778em;vertical-align:-0.1944em;&#34;&gt;&lt;/span&gt;&lt;span class=&#34;mord mathnormal&#34; style=&#34;margin-right:0.0359em;&#34;&gt;y&lt;/span&gt;&lt;span class=&#34;mspace&#34; style=&#34;margin-right:0.2222em;&#34;&gt;&lt;/span&gt;&lt;span class=&#34;mbin&#34;&gt;+&lt;/span&gt;&lt;span class=&#34;mspace&#34; style=&#34;margin-right:0.2222em;&#34;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;katex-base&#34;&gt;&lt;span class=&#34;katex-strut&#34; style=&#34;height:0.4306em;&#34;&gt;&lt;/span&gt;&lt;span class=&#34;mord mathnormal&#34; style=&#34;margin-right:0.0278em;&#34;&gt;r&lt;/span&gt;&lt;span class=&#34;mspace&#34; style=&#34;margin-right:0.2778em;&#34;&gt;&lt;/span&gt;&lt;span class=&#34;mrel&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;mspace&#34; style=&#34;margin-right:0.2778em;&#34;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;katex-base&#34;&gt;&lt;span class=&#34;katex-strut&#34; style=&#34;height:0.6444em;&#34;&gt;&lt;/span&gt;&lt;span class=&#34;mord&#34;&gt;0&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;, &lt;span class=&#34;katex&#34;&gt;&lt;span class=&#34;katex-mathml&#34;&gt;&lt;math xmlns=&#34;http://www.w3.org/1998/Math/MathML&#34;&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mi&gt;z&lt;/mi&gt;&lt;mo&gt;+&lt;/mo&gt;&lt;mi&gt;w&lt;/mi&gt;&lt;mo&gt;+&lt;/mo&gt;&lt;mi&gt;r&lt;/mi&gt;&lt;mo&gt;=&lt;/mo&gt;&lt;mn&gt;0&lt;/mn&gt;&lt;/mrow&gt;&lt;annotation encoding=&#34;application/x-tex&#34;&gt;z+w+r=0&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;&lt;/span&gt;&lt;span class=&#34;katex-html&#34; aria-hidden=&#34;true&#34;&gt;&lt;span class=&#34;katex-base&#34;&gt;&lt;span class=&#34;katex-strut&#34; style=&#34;height:0.6667em;vertical-align:-0.0833em;&#34;&gt;&lt;/span&gt;&lt;span class=&#34;mord mathnormal&#34; style=&#34;margin-right:0.044em;&#34;&gt;z&lt;/span&gt;&lt;span class=&#34;mspace&#34; style=&#34;margin-right:0.2222em;&#34;&gt;&lt;/span&gt;&lt;span class=&#34;mbin&#34;&gt;+&lt;/span&gt;&lt;span class=&#34;mspace&#34; style=&#34;margin-right:0.2222em;&#34;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;katex-base&#34;&gt;&lt;span class=&#34;katex-strut&#34; style=&#34;height:0.6667em;vertical-align:-0.0833em;&#34;&gt;&lt;/span&gt;&lt;span class=&#34;mord mathnormal&#34; style=&#34;margin-right:0.0269em;&#34;&gt;w&lt;/span&gt;&lt;span class=&#34;mspace&#34; style=&#34;margin-right:0.2222em;&#34;&gt;&lt;/span&gt;&lt;span class=&#34;mbin&#34;&gt;+&lt;/span&gt;&lt;span class=&#34;mspace&#34; style=&#34;margin-right:0.2222em;&#34;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;katex-base&#34;&gt;&lt;span class=&#34;katex-strut&#34; style=&#34;height:0.4306em;&#34;&gt;&lt;/span&gt;&lt;span class=&#34;mord mathnormal&#34; style=&#34;margin-right:0.0278em;&#34;&gt;r&lt;/span&gt;&lt;span class=&#34;mspace&#34; style=&#34;margin-right:0.2778em;&#34;&gt;&lt;/span&gt;&lt;span class=&#34;mrel&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;mspace&#34; style=&#34;margin-right:0.2778em;&#34;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;katex-base&#34;&gt;&lt;span class=&#34;katex-strut&#34; style=&#34;height:0.6444em;&#34;&gt;&lt;/span&gt;&lt;span class=&#34;mord&#34;&gt;0&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; and then &lt;span class=&#34;katex&#34;&gt;&lt;span class=&#34;katex-mathml&#34;&gt;&lt;math xmlns=&#34;http://www.w3.org/1998/Math/MathML&#34;&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mi&gt;x&lt;/mi&gt;&lt;mo&gt;+&lt;/mo&gt;&lt;mi&gt;y&lt;/mi&gt;&lt;mo&gt;+&lt;/mo&gt;&lt;mi&gt;r&lt;/mi&gt;&lt;mo&gt;=&lt;/mo&gt;&lt;mn&gt;0&lt;/mn&gt;&lt;/mrow&gt;&lt;annotation encoding=&#34;application/x-tex&#34;&gt;x+y+r=0&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;&lt;/span&gt;&lt;span class=&#34;katex-html&#34; aria-hidden=&#34;true&#34;&gt;&lt;span class=&#34;katex-base&#34;&gt;&lt;span class=&#34;katex-strut&#34; style=&#34;height:0.6667em;vertical-align:-0.0833em;&#34;&gt;&lt;/span&gt;&lt;span class=&#34;mord mathnormal&#34;&gt;x&lt;/span&gt;&lt;span class=&#34;mspace&#34; style=&#34;margin-right:0.2222em;&#34;&gt;&lt;/span&gt;&lt;span class=&#34;mbin&#34;&gt;+&lt;/span&gt;&lt;span class=&#34;mspace&#34; style=&#34;margin-right:0.2222em;&#34;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;katex-base&#34;&gt;&lt;span class=&#34;katex-strut&#34; style=&#34;height:0.7778em;vertical-align:-0.1944em;&#34;&gt;&lt;/span&gt;&lt;span class=&#34;mord mathnormal&#34; style=&#34;margin-right:0.0359em;&#34;&gt;y&lt;/span&gt;&lt;span class=&#34;mspace&#34; style=&#34;margin-right:0.2222em;&#34;&gt;&lt;/span&gt;&lt;span class=&#34;mbin&#34;&gt;+&lt;/span&gt;&lt;span class=&#34;mspace&#34; style=&#34;margin-right:0.2222em;&#34;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;katex-base&#34;&gt;&lt;span class=&#34;katex-strut&#34; style=&#34;height:0.4306em;&#34;&gt;&lt;/span&gt;&lt;span class=&#34;mord mathnormal&#34; style=&#34;margin-right:0.0278em;&#34;&gt;r&lt;/span&gt;&lt;span class=&#34;mspace&#34; style=&#34;margin-right:0.2778em;&#34;&gt;&lt;/span&gt;&lt;span class=&#34;mrel&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;mspace&#34; style=&#34;margin-right:0.2778em;&#34;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;katex-base&#34;&gt;&lt;span class=&#34;katex-strut&#34; style=&#34;height:0.6444em;&#34;&gt;&lt;/span&gt;&lt;span class=&#34;mord&#34;&gt;0&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; is represented as &lt;span class=&#34;katex&#34;&gt;&lt;span class=&#34;katex-mathml&#34;&gt;&lt;math xmlns=&#34;http://www.w3.org/1998/Math/MathML&#34;&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mi&gt;x&lt;/mi&gt;&lt;mo&gt;∨&lt;/mo&gt;&lt;mi&gt;y&lt;/mi&gt;&lt;mo&gt;∨&lt;/mo&gt;&lt;mi&gt;r&lt;/mi&gt;&lt;mo separator=&#34;true&#34;&gt;,&lt;/mo&gt;&lt;mi&gt;x&lt;/mi&gt;&lt;mo&gt;∨&lt;/mo&gt;&lt;mi mathvariant=&#34;normal&#34;&gt;¬&lt;/mi&gt;&lt;mi&gt;y&lt;/mi&gt;&lt;mo&gt;∨&lt;/mo&gt;&lt;mi mathvariant=&#34;normal&#34;&gt;¬&lt;/mi&gt;&lt;mi&gt;r&lt;/mi&gt;&lt;mo separator=&#34;true&#34;&gt;,&lt;/mo&gt;&lt;mo&gt;…&lt;/mo&gt;&lt;/mrow&gt;&lt;annotation encoding=&#34;application/x-tex&#34;&gt;x \vee y \vee r, x \vee \neg y \vee \neg r, \ldots&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;&lt;/span&gt;&lt;span class=&#34;katex-html&#34; aria-hidden=&#34;true&#34;&gt;&lt;span class=&#34;katex-base&#34;&gt;&lt;span class=&#34;katex-strut&#34; style=&#34;height:0.5556em;&#34;&gt;&lt;/span&gt;&lt;span class=&#34;mord mathnormal&#34;&gt;x&lt;/span&gt;&lt;span class=&#34;mspace&#34; style=&#34;margin-right:0.2222em;&#34;&gt;&lt;/span&gt;&lt;span class=&#34;mbin&#34;&gt;∨&lt;/span&gt;&lt;span class=&#34;mspace&#34; style=&#34;margin-right:0.2222em;&#34;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;katex-base&#34;&gt;&lt;span class=&#34;katex-strut&#34; style=&#34;height:0.75em;vertical-align:-0.1944em;&#34;&gt;&lt;/span&gt;&lt;span class=&#34;mord mathnormal&#34; style=&#34;margin-right:0.0359em;&#34;&gt;y&lt;/span&gt;&lt;span class=&#34;mspace&#34; style=&#34;margin-right:0.2222em;&#34;&gt;&lt;/span&gt;&lt;span class=&#34;mbin&#34;&gt;∨&lt;/span&gt;&lt;span class=&#34;mspace&#34; style=&#34;margin-right:0.2222em;&#34;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;katex-base&#34;&gt;&lt;span class=&#34;katex-strut&#34; style=&#34;height:0.75em;vertical-align:-0.1944em;&#34;&gt;&lt;/span&gt;&lt;span class=&#34;mord mathnormal&#34; style=&#34;margin-right:0.0278em;&#34;&gt;r&lt;/span&gt;&lt;span class=&#34;mpunct&#34;&gt;,&lt;/span&gt;&lt;span class=&#34;mspace&#34; style=&#34;margin-right:0.1667em;&#34;&gt;&lt;/span&gt;&lt;span class=&#34;mord mathnormal&#34;&gt;x&lt;/span&gt;&lt;span class=&#34;mspace&#34; style=&#34;margin-right:0.2222em;&#34;&gt;&lt;/span&gt;&lt;span class=&#34;mbin&#34;&gt;∨&lt;/span&gt;&lt;span class=&#34;mspace&#34; style=&#34;margin-right:0.2222em;&#34;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;katex-base&#34;&gt;&lt;span class=&#34;katex-strut&#34; style=&#34;height:0.75em;vertical-align:-0.1944em;&#34;&gt;&lt;/span&gt;&lt;span class=&#34;mord&#34;&gt;¬&lt;/span&gt;&lt;span class=&#34;mord mathnormal&#34; style=&#34;margin-right:0.0359em;&#34;&gt;y&lt;/span&gt;&lt;span class=&#34;mspace&#34; style=&#34;margin-right:0.2222em;&#34;&gt;&lt;/span&gt;&lt;span class=&#34;mbin&#34;&gt;∨&lt;/span&gt;&lt;span class=&#34;mspace&#34; style=&#34;margin-right:0.2222em;&#34;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;katex-base&#34;&gt;&lt;span class=&#34;katex-strut&#34; style=&#34;height:0.625em;vertical-align:-0.1944em;&#34;&gt;&lt;/span&gt;&lt;span class=&#34;mord&#34;&gt;¬&lt;/span&gt;&lt;span class=&#34;mord mathnormal&#34; style=&#34;margin-right:0.0278em;&#34;&gt;r&lt;/span&gt;&lt;span class=&#34;mpunct&#34;&gt;,&lt;/span&gt;&lt;span class=&#34;mspace&#34; style=&#34;margin-right:0.1667em;&#34;&gt;&lt;/span&gt;&lt;span class=&#34;minner&#34;&gt;…&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Handling disconnected components</title>
      <link>https://www.msoos.org/2013/07/handling-disconnected-components/</link>
      <pubDate>Wed, 31 Jul 2013 12:06:52 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/?p=1842</guid> 
      <description>&lt;p&gt;In CryptoMiniSat 3.2 and above there is a disconnected component finding&amp;amp;solving system. This finds toplevel disconnected components regularly and solves them by launching an instance of the solver itself. If the component is unsatisfiable (UNSAT), the whole system is UNSAT and solving can be immediately aborted. If the component is satisfiable (SAT) the component&amp;rsquo;s solution is saved and later when printing the solution to the whole problem the component&amp;rsquo;s satisfying assignment is also printed.&lt;/p&gt;</description>
    </item>
    <item>
      <title>CryptoMiniSat 3.3 released</title>
      <link>https://www.msoos.org/2013/07/cryptominisat-3-3-released/</link>
      <pubDate>Wed, 10 Jul 2013 18:52:36 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/?p=1812</guid> 
      <description>&lt;p&gt;This is just a short note that CryptoMiniSat 3.3 has been &lt;a href=&#34;https://gforge.inria.fr/frs/?group_id=1992&#34;&gt;released&lt;/a&gt;. This is mainly a bugfix release. I have managed to make a fuzzer that simulates library usage of the system by interspersing the CNF with &amp;ldquo;c Solver::solve()&amp;rdquo; calls and then checking the intermediate solutions. Checking is either performed by verifying that all clauses are satisfied, or if the solution is UNSAT, by using a standard SAT solver (I use &lt;a href=&#34;http://fmv.jku.at/lingeling/&#34;&gt;lingeling&lt;/a&gt;). This turned up a surprising number of bugs. I have also fixed the web-based statistics printing which should now work without a hitch.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Clause glues are a mystery to me</title>
      <link>https://www.msoos.org/2013/07/clause-glues-are-a-mystery-to-me/</link>
      <pubDate>Mon, 08 Jul 2013 16:48:41 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/?p=988</guid> 
      <description>&lt;p&gt;&lt;em&gt;Note: the work below has been done in collaboration with &lt;a href=&#34;http://folk.uio.no/vegardno/&#34;&gt;Vegard Nossum&lt;/a&gt;, but the wording and some of the (mis-)conculsions are mine. If you are interested, check out his &lt;a href=&#34;https://www.duo.uio.no/handle/10852/34912&#34;&gt;master thesis&lt;/a&gt;, it&amp;rsquo;s quite incredible&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Anyone who has ever tried to &lt;em&gt;really&lt;/em&gt; understand clause &lt;a href=&#34;http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.150.1911&amp;amp;rep=rep1&amp;amp;type=pdf&#34;&gt;glues&lt;/a&gt; in SAT solvers have probably wondered what they really mean. Their definition is simple: the number of variables in the final conflict clause that come from different decision levels. An explanation of these terms can be found &lt;a href=&#34;https://www.msoos.org/understanding-implication-graphs&#34;&gt;here&lt;/a&gt;. On the surface, this sounds very simple and clean: the number of different decision levels should somehow be connected to the number of variables that need to be set before the learnt clause activates itself, i.e. it causes a propagation or a conflict. Unfortunately, this is just the surface, because if you try to draw 2-3 implication graphs, you will see that in fact the gap between the number of variables needed to be set (let&amp;rsquo;s call this &amp;lsquo;activation number&amp;rsquo;) and the glue can be virtually &lt;em&gt;anything&lt;/em&gt;, making the glue a potentially bad indicator of the activation number.&lt;/p&gt;</description>
    </item>
    <item>
      <title>CryptoMiniSat 3.2.0 released</title>
      <link>https://www.msoos.org/2013/04/cryptominisat-3-2-0-released/</link>
      <pubDate>Mon, 29 Apr 2013 20:12:58 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/?p=1715</guid> 
      <description>&lt;p&gt;CyptoMinSat 3.2.0 has been &lt;a href=&#34;https://gforge.inria.fr/frs/?group_id=1992&#34;&gt;released&lt;/a&gt;. This code should be extremely stable and should contain no bugs. In case it does, CryptoMiniSat will fail quite bady at the &lt;a href=&#34;http://www.satcompetition.org/2013/&#34;&gt;competition&lt;/a&gt;. I have fuzzed the solver for about 2-3000 CPU hours, with some sophisticated fuzzers (all available &lt;a href=&#34;https://github.com/msoos/cnf-utils&#34;&gt;here&lt;/a&gt; --- most of them not mine) so all should be fine, but fingers are crossed.&lt;/p&gt;
&lt;h3 id=&#34;additions-and-fixes&#34;&gt;Additions and fixes&lt;/h3&gt;
&lt;p&gt;The main addition this time is &lt;a href=&#34;https://www.msoos.org/2013/04/certified-unsat-and-cryptominisat/&#34;&gt;certification proofs&lt;/a&gt; for UNSAT through the use of &lt;a href=&#34;http://www.cs.utexas.edu/~marijn/drup/&#34;&gt;DRUP&lt;/a&gt;. This allows for use of the solver where certainty of the UNSAT result is a necessity &amp;mdash; e.g. where lives could potentially depend on it. Unfortunately, proof checking is relatively slow through any system, though DRUP seems to be the best and fastest method. Other than the implementation of DRUP, I have fixed some issues with variable replacement.&lt;/p&gt;</description>
    </item>
    <item>
      <title>GCC 4.5.2 at the SAT Competition&#39;13</title>
      <link>https://www.msoos.org/2013/04/gcc-4-5-2-at-sat-competition-201/</link>
      <pubDate>Fri, 26 Apr 2013 23:17:35 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/?p=1700</guid> 
      <description>&lt;p&gt;(Note &lt;em&gt;update&lt;/em&gt; below)&lt;/p&gt;
&lt;p&gt;Just a short note. All MiniSat-derived SAT solvers might give wrong results during the competition. No, MiniSat doesn&amp;rsquo;t have a bug. GCC has a giant &lt;a href=&#34;http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47365&#34;&gt;bug&lt;/a&gt;. Vegard reported this years ago &amp;ndash; I personally put about 12h tracking it down, &lt;a href=&#34;http://lists.gforge.inria.fr/pipermail/cryptominisat-devel/2011-January/000052.html&#34;&gt;posted it&lt;/a&gt; to the CryptoMiniSat mailing list, and &lt;a href=&#34;http://folk.uio.no/vegardno/&#34;&gt;Vegard&lt;/a&gt; took it up, stripped it down and reported it.&lt;/p&gt;
&lt;p&gt;This is a well-known bug, there is a thread about it on the &lt;a href=&#34;https://groups.google.com/forum/?fromgroups=#!topic/minisat/YHEWCFqxyFg&#34;&gt;MiniSat mailing list&lt;/a&gt; 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&amp;rsquo;s fixed in 4.5.4+, still present in 4.5.3 where Vegard&amp;amp;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 &amp;ldquo;-fno-tree-pre&amp;rdquo; &amp;mdash; though of course this turns off an optimisation and so slows down the final executable.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Certified UNSAT and CryptoMiniSat</title>
      <link>https://www.msoos.org/2013/04/certified-unsat-and-cryptominisat/</link>
      <pubDate>Thu, 25 Apr 2013 19:49:13 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/?p=1667</guid> 
      <description>&lt;p&gt;&lt;a href=&#34;http://www.cs.utexas.edu/~marijn/&#34;&gt;Marijn Heule&lt;/a&gt; kindly sent me an email on the 10th of April about &lt;a href=&#34;http://www.cs.utexas.edu/~marijn/drup/&#34;&gt;DRUP&lt;/a&gt;, the new system used this year in the &lt;a href=&#34;http://satcompetition.org/2013/&#34;&gt;SAT Competition&#39;13&lt;/a&gt; for the UNSAT track. He kindly encouraged me to implement the DRUP system. He personally implemented it into Minisat which was a &lt;em&gt;very&lt;/em&gt; helpful lead for me. In this post I will talk about my experiences in implementing DRUP into CryptoMiniSat within a span of 3 days.&lt;/p&gt;
&lt;h3 id=&#34;implementation-complexity&#34;&gt;Implementation complexity&lt;/h3&gt;
&lt;p&gt;It took only 3 days, about 1400 lines of code to implement DRUP:&lt;/p&gt;</description>
    </item>
    <item>
      <title>A variable elimination improvement</title>
      <link>https://www.msoos.org/2013/04/a-variable-elimination-improvement/</link>
      <pubDate>Sun, 21 Apr 2013 15:55:57 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/?p=1643</guid> 
      <description>&lt;p&gt;Lately, I have been thinking about how to improve &lt;a href=&#34;http://link.springer.com/chapter/10.1007%2F11499107_5&#34;&gt;variable elimination&lt;/a&gt;. It&amp;rsquo;s one of the most important things in SAT solvers, and it&amp;rsquo;s not exactly easy to do right.&lt;/p&gt;
&lt;h3 id=&#34;variable-elimination&#34;&gt;Variable elimination&lt;/h3&gt;
&lt;p&gt;Variable elimination simply resolves every occurrence of a literal &lt;span class=&#34;katex&#34;&gt;&lt;span class=&#34;katex-mathml&#34;&gt;&lt;math xmlns=&#34;http://www.w3.org/1998/Math/MathML&#34;&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mi&gt;v&lt;/mi&gt;&lt;mn&gt;1&lt;/mn&gt;&lt;/mrow&gt;&lt;annotation encoding=&#34;application/x-tex&#34;&gt;v1&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;&lt;/span&gt;&lt;span class=&#34;katex-html&#34; aria-hidden=&#34;true&#34;&gt;&lt;span class=&#34;katex-base&#34;&gt;&lt;span class=&#34;katex-strut&#34; style=&#34;height:0.6444em;&#34;&gt;&lt;/span&gt;&lt;span class=&#34;mord mathnormal&#34; style=&#34;margin-right:0.0359em;&#34;&gt;v&lt;/span&gt;&lt;span class=&#34;mord&#34;&gt;1&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; with every occurrence of the literal &lt;span class=&#34;katex&#34;&gt;&lt;span class=&#34;katex-mathml&#34;&gt;&lt;math xmlns=&#34;http://www.w3.org/1998/Math/MathML&#34;&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mi mathvariant=&#34;normal&#34;&gt;¬&lt;/mi&gt;&lt;mi&gt;v&lt;/mi&gt;&lt;mn&gt;1&lt;/mn&gt;&lt;/mrow&gt;&lt;annotation encoding=&#34;application/x-tex&#34;&gt;\neg v1&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;&lt;/span&gt;&lt;span class=&#34;katex-html&#34; aria-hidden=&#34;true&#34;&gt;&lt;span class=&#34;katex-base&#34;&gt;&lt;span class=&#34;katex-strut&#34; style=&#34;height:0.6444em;&#34;&gt;&lt;/span&gt;&lt;span class=&#34;mord&#34;&gt;¬&lt;/span&gt;&lt;span class=&#34;mord mathnormal&#34; style=&#34;margin-right:0.0359em;&#34;&gt;v&lt;/span&gt;&lt;span class=&#34;mord&#34;&gt;1&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; , removes the original clauses and adds the resolvents. For example, let&amp;rsquo;s take the clauses&lt;/p&gt;
&lt;p&gt;&lt;span class=&#34;katex&#34;&gt;&lt;span class=&#34;katex-mathml&#34;&gt;&lt;math xmlns=&#34;http://www.w3.org/1998/Math/MathML&#34;&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mi&gt;v&lt;/mi&gt;&lt;mn&gt;1&lt;/mn&gt;&lt;mo&gt;∨&lt;/mo&gt;&lt;mi&gt;v&lt;/mi&gt;&lt;mn&gt;2&lt;/mn&gt;&lt;mo&gt;∨&lt;/mo&gt;&lt;mi&gt;v&lt;/mi&gt;&lt;mn&gt;3&lt;/mn&gt;&lt;/mrow&gt;&lt;annotation encoding=&#34;application/x-tex&#34;&gt;v1 \vee v2 \vee v3&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;&lt;/span&gt;&lt;span class=&#34;katex-html&#34; aria-hidden=&#34;true&#34;&gt;&lt;span class=&#34;katex-base&#34;&gt;&lt;span class=&#34;katex-strut&#34; style=&#34;height:0.6444em;&#34;&gt;&lt;/span&gt;&lt;span class=&#34;mord mathnormal&#34; style=&#34;margin-right:0.0359em;&#34;&gt;v&lt;/span&gt;&lt;span class=&#34;mord&#34;&gt;1&lt;/span&gt;&lt;span class=&#34;mspace&#34; style=&#34;margin-right:0.2222em;&#34;&gt;&lt;/span&gt;&lt;span class=&#34;mbin&#34;&gt;∨&lt;/span&gt;&lt;span class=&#34;mspace&#34; style=&#34;margin-right:0.2222em;&#34;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;katex-base&#34;&gt;&lt;span class=&#34;katex-strut&#34; style=&#34;height:0.6444em;&#34;&gt;&lt;/span&gt;&lt;span class=&#34;mord mathnormal&#34; style=&#34;margin-right:0.0359em;&#34;&gt;v&lt;/span&gt;&lt;span class=&#34;mord&#34;&gt;2&lt;/span&gt;&lt;span class=&#34;mspace&#34; style=&#34;margin-right:0.2222em;&#34;&gt;&lt;/span&gt;&lt;span class=&#34;mbin&#34;&gt;∨&lt;/span&gt;&lt;span class=&#34;mspace&#34; style=&#34;margin-right:0.2222em;&#34;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;katex-base&#34;&gt;&lt;span class=&#34;katex-strut&#34; style=&#34;height:0.6444em;&#34;&gt;&lt;/span&gt;&lt;span class=&#34;mord mathnormal&#34; style=&#34;margin-right:0.0359em;&#34;&gt;v&lt;/span&gt;&lt;span class=&#34;mord&#34;&gt;3&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&#34;katex&#34;&gt;&lt;span class=&#34;katex-mathml&#34;&gt;&lt;math xmlns=&#34;http://www.w3.org/1998/Math/MathML&#34;&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mi&gt;v&lt;/mi&gt;&lt;mn&gt;1&lt;/mn&gt;&lt;mo&gt;∨&lt;/mo&gt;&lt;mi&gt;v&lt;/mi&gt;&lt;mn&gt;4&lt;/mn&gt;&lt;mo&gt;∨&lt;/mo&gt;&lt;mi&gt;v&lt;/mi&gt;&lt;mn&gt;5&lt;/mn&gt;&lt;/mrow&gt;&lt;annotation encoding=&#34;application/x-tex&#34;&gt;v1 \vee v4 \vee v5&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;&lt;/span&gt;&lt;span class=&#34;katex-html&#34; aria-hidden=&#34;true&#34;&gt;&lt;span class=&#34;katex-base&#34;&gt;&lt;span class=&#34;katex-strut&#34; style=&#34;height:0.6444em;&#34;&gt;&lt;/span&gt;&lt;span class=&#34;mord mathnormal&#34; style=&#34;margin-right:0.0359em;&#34;&gt;v&lt;/span&gt;&lt;span class=&#34;mord&#34;&gt;1&lt;/span&gt;&lt;span class=&#34;mspace&#34; style=&#34;margin-right:0.2222em;&#34;&gt;&lt;/span&gt;&lt;span class=&#34;mbin&#34;&gt;∨&lt;/span&gt;&lt;span class=&#34;mspace&#34; style=&#34;margin-right:0.2222em;&#34;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;katex-base&#34;&gt;&lt;span class=&#34;katex-strut&#34; style=&#34;height:0.6444em;&#34;&gt;&lt;/span&gt;&lt;span class=&#34;mord mathnormal&#34; style=&#34;margin-right:0.0359em;&#34;&gt;v&lt;/span&gt;&lt;span class=&#34;mord&#34;&gt;4&lt;/span&gt;&lt;span class=&#34;mspace&#34; style=&#34;margin-right:0.2222em;&#34;&gt;&lt;/span&gt;&lt;span class=&#34;mbin&#34;&gt;∨&lt;/span&gt;&lt;span class=&#34;mspace&#34; style=&#34;margin-right:0.2222em;&#34;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;katex-base&#34;&gt;&lt;span class=&#34;katex-strut&#34; style=&#34;height:0.6444em;&#34;&gt;&lt;/span&gt;&lt;span class=&#34;mord mathnormal&#34; style=&#34;margin-right:0.0359em;&#34;&gt;v&lt;/span&gt;&lt;span class=&#34;mord&#34;&gt;5&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&#34;katex&#34;&gt;&lt;span class=&#34;katex-mathml&#34;&gt;&lt;math xmlns=&#34;http://www.w3.org/1998/Math/MathML&#34;&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mi mathvariant=&#34;normal&#34;&gt;¬&lt;/mi&gt;&lt;mi&gt;v&lt;/mi&gt;&lt;mn&gt;1&lt;/mn&gt;&lt;mo&gt;∨&lt;/mo&gt;&lt;mi&gt;v&lt;/mi&gt;&lt;mn&gt;10&lt;/mn&gt;&lt;mo&gt;∨&lt;/mo&gt;&lt;mi&gt;v&lt;/mi&gt;&lt;mn&gt;11&lt;/mn&gt;&lt;/mrow&gt;&lt;annotation encoding=&#34;application/x-tex&#34;&gt;\neg v1 \vee v10 \vee v11&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;&lt;/span&gt;&lt;span class=&#34;katex-html&#34; aria-hidden=&#34;true&#34;&gt;&lt;span class=&#34;katex-base&#34;&gt;&lt;span class=&#34;katex-strut&#34; style=&#34;height:0.6444em;&#34;&gt;&lt;/span&gt;&lt;span class=&#34;mord&#34;&gt;¬&lt;/span&gt;&lt;span class=&#34;mord mathnormal&#34; style=&#34;margin-right:0.0359em;&#34;&gt;v&lt;/span&gt;&lt;span class=&#34;mord&#34;&gt;1&lt;/span&gt;&lt;span class=&#34;mspace&#34; style=&#34;margin-right:0.2222em;&#34;&gt;&lt;/span&gt;&lt;span class=&#34;mbin&#34;&gt;∨&lt;/span&gt;&lt;span class=&#34;mspace&#34; style=&#34;margin-right:0.2222em;&#34;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;katex-base&#34;&gt;&lt;span class=&#34;katex-strut&#34; style=&#34;height:0.6444em;&#34;&gt;&lt;/span&gt;&lt;span class=&#34;mord mathnormal&#34; style=&#34;margin-right:0.0359em;&#34;&gt;v&lt;/span&gt;&lt;span class=&#34;mord&#34;&gt;10&lt;/span&gt;&lt;span class=&#34;mspace&#34; style=&#34;margin-right:0.2222em;&#34;&gt;&lt;/span&gt;&lt;span class=&#34;mbin&#34;&gt;∨&lt;/span&gt;&lt;span class=&#34;mspace&#34; style=&#34;margin-right:0.2222em;&#34;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;katex-base&#34;&gt;&lt;span class=&#34;katex-strut&#34; style=&#34;height:0.6444em;&#34;&gt;&lt;/span&gt;&lt;span class=&#34;mord mathnormal&#34; style=&#34;margin-right:0.0359em;&#34;&gt;v&lt;/span&gt;&lt;span class=&#34;mord&#34;&gt;11&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&#34;katex&#34;&gt;&lt;span class=&#34;katex-mathml&#34;&gt;&lt;math xmlns=&#34;http://www.w3.org/1998/Math/MathML&#34;&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mi mathvariant=&#34;normal&#34;&gt;¬&lt;/mi&gt;&lt;mi&gt;v&lt;/mi&gt;&lt;mn&gt;1&lt;/mn&gt;&lt;mo&gt;∨&lt;/mo&gt;&lt;mi&gt;v&lt;/mi&gt;&lt;mn&gt;12&lt;/mn&gt;&lt;mo&gt;∨&lt;/mo&gt;&lt;mi&gt;v&lt;/mi&gt;&lt;mn&gt;13&lt;/mn&gt;&lt;/mrow&gt;&lt;annotation encoding=&#34;application/x-tex&#34;&gt;\neg v1 \vee v12 \vee v13&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;&lt;/span&gt;&lt;span class=&#34;katex-html&#34; aria-hidden=&#34;true&#34;&gt;&lt;span class=&#34;katex-base&#34;&gt;&lt;span class=&#34;katex-strut&#34; style=&#34;height:0.6444em;&#34;&gt;&lt;/span&gt;&lt;span class=&#34;mord&#34;&gt;¬&lt;/span&gt;&lt;span class=&#34;mord mathnormal&#34; style=&#34;margin-right:0.0359em;&#34;&gt;v&lt;/span&gt;&lt;span class=&#34;mord&#34;&gt;1&lt;/span&gt;&lt;span class=&#34;mspace&#34; style=&#34;margin-right:0.2222em;&#34;&gt;&lt;/span&gt;&lt;span class=&#34;mbin&#34;&gt;∨&lt;/span&gt;&lt;span class=&#34;mspace&#34; style=&#34;margin-right:0.2222em;&#34;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;katex-base&#34;&gt;&lt;span class=&#34;katex-strut&#34; style=&#34;height:0.6444em;&#34;&gt;&lt;/span&gt;&lt;span class=&#34;mord mathnormal&#34; style=&#34;margin-right:0.0359em;&#34;&gt;v&lt;/span&gt;&lt;span class=&#34;mord&#34;&gt;12&lt;/span&gt;&lt;span class=&#34;mspace&#34; style=&#34;margin-right:0.2222em;&#34;&gt;&lt;/span&gt;&lt;span class=&#34;mbin&#34;&gt;∨&lt;/span&gt;&lt;span class=&#34;mspace&#34; style=&#34;margin-right:0.2222em;&#34;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;katex-base&#34;&gt;&lt;span class=&#34;katex-strut&#34; style=&#34;height:0.6444em;&#34;&gt;&lt;/span&gt;&lt;span class=&#34;mord mathnormal&#34; style=&#34;margin-right:0.0359em;&#34;&gt;v&lt;/span&gt;&lt;span class=&#34;mord&#34;&gt;13&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;</description>
    </item>
    <item>
      <title>CryptoMinisat 3.1 released</title>
      <link>https://www.msoos.org/2013/04/cryptominisat-3-1-released/</link>
      <pubDate>Sun, 14 Apr 2013 17:29:50 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/?p=1624</guid> 
      <description>&lt;p&gt;CryptoMinisat 3.1 has been &lt;a href=&#34;https://gforge.inria.fr/frs/?group_id=1992&amp;amp;release_id=8008&#34;&gt;released&lt;/a&gt;. The short changelog is:&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-fallback&#34; data-lang=&#34;fallback&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;$ git diff cryptoms-3.0 cryptoms-3.1 --shortstat
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt; 84 files changed, 3079 insertions(+), 2751 deletions(-)
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;The changes made were threefold. First, memory usage has been greatly reduced. This is crucial, because memory usage was over 7GB on certain instances. Secondly, the implication cache wasn&amp;rsquo;t very well-used and an idea that came to my mind &lt;em&gt;greatly&lt;/em&gt; improved performance on most problems. Finally, time limiting of some inprocessing techniques on certain types of problems has been improved.&lt;/p&gt;</description>
    </item>
    <item>
      <title>CryptoMiniSat 3.0 released</title>
      <link>https://www.msoos.org/2013/04/cryptominisat-3-0-released/</link>
      <pubDate>Mon, 01 Apr 2013 15:57:57 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/?p=1541</guid> 
      <description>&lt;p&gt;CryptoMiniSat 3.0 has been &lt;a href=&#34;https://gforge.inria.fr/frs/?group_id=1992&#34;&gt;released&lt;/a&gt;. I could talk about how it&amp;rsquo;s got a dynamic, web-based statistics interface, how it has more than 80 options, how it uses no glues for clause-cleaning and all the other goodies, but unfortunately these don&amp;rsquo;t much matter if the speed is not up to par. So, here is the result for the &lt;a href=&#34;http://www.satcompetition.org/2009/&#34;&gt;2009 SAT Competition&lt;/a&gt; problems on a 1000s timeout with two competing solvers, &lt;a href=&#34;http://fmv.jku.at/lingeling/&#34;&gt;lingeling&lt;/a&gt; and &lt;a href=&#34;https://www.lri.fr/~simon/?page=glucose&#34;&gt;glucose&lt;/a&gt;:&lt;/p&gt;
&lt;p&gt;&lt;img alt=&#34;cryptoms_speed&#34; loading=&#34;lazy&#34; src=&#34;https://www.msoos.org/wordpress/wp-content/uploads/2013/04/lingeling-glucose-cryptoms.png&#34;&gt;&lt;/p&gt;
&lt;p&gt;This of course does not mean that CryptoMiniSat is faster than the other solvers in general. In fact it is slower on a number of instances. What it means is that in general it&amp;rsquo;s OK and that&amp;rsquo;s good enough for the moment. It would be awesome to run the above experiment (or a similar one) with a longer timeout. Unfortunately, I don&amp;rsquo;t have a cluster to do that. However, if you have access to one, and would be willing to help with running the 3 solvers on a larger timeout, please do, I will post the updated graph here.&lt;/p&gt;</description>
    </item>
    <item>
      <title>On benchmark randomization</title>
      <link>https://www.msoos.org/2013/03/on-benchmark-randomization/</link>
      <pubDate>Sun, 10 Mar 2013 14:10:11 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/?p=1497</guid> 
      <description>&lt;p&gt;As many of you have heard, the SAT Competition for this year has been &lt;a href=&#34;http://satcompetition.org/2013/&#34;&gt;announced&lt;/a&gt;. You can send in your benchmarks between the 12th and the 22nd of April, so get started. I have a &lt;a href=&#34;https://gforge.inria.fr/frs/?group_id=1476&amp;amp;release_id=5351&#34;&gt;bunch of benchmarks&lt;/a&gt; I have already submitted about 2 years ago, still waiting for any reply from those organizers &amp;ndash; but the organizers are different this year, so fingers crossed.&lt;/p&gt;
&lt;p&gt;What I want to talk about today is benchmark randomization. This is a very-very touchy topic. However, I fear that it&amp;rsquo;s touchy for the wrong reasons, and so I think it&amp;rsquo;s important to talk about it in detail.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Collecting solver data</title>
      <link>https://www.msoos.org/2012/11/collecting-solver-data/</link>
      <pubDate>Wed, 21 Nov 2012 16:02:09 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/?p=1456</guid> 
      <description>&lt;p&gt;Lately, I have been putting a lot of effort into collecting data about solver behaviour and dumping it on-the-fly to a MySQL database. Some of this data is then presented by a PHP&amp;amp;javascript interface, such as &lt;a href=&#34;https://www.msoos.org/sat_visualization/&#34;&gt;this&lt;/a&gt;.The goal is to better understand how solving works, and thus to possibly come up with better strategies for solving. The requirements of the data gathered are: speed to calculate, size to store and usefulness.&lt;/p&gt;</description>
    </item>
    <item>
      <title>How to use CryptoMiniSat 2.9 as a library</title>
      <link>https://www.msoos.org/2012/06/how-to-use-cryptominisat-2-9-as-a-library/</link>
      <pubDate>Wed, 20 Jun 2012 10:43:29 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/?p=1271</guid> 
      <description>&lt;p&gt;There have been some questions asked about how to use CryptoMiniSat as a library. Here, I give a simple example usage to help any future potential users. If there are any question that seems unanswered, please feel free to add them as a comment to this post.&lt;/p&gt;
&lt;p&gt;First, we initialize the solver with high verbosity:&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:#75715e&#34;&gt;#include&lt;/span&gt; &lt;span style=&#34;color:#75715e&#34;&gt;&amp;#34;cmsat/Solver.h&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#75715e&#34;&gt;
&lt;/span&gt;&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;using&lt;/span&gt; &lt;span style=&#34;color:#66d9ef&#34;&gt;namespace&lt;/span&gt; CMSat;
&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;SolverConf conf;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;conf.verbosity &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#ae81ff&#34;&gt;2&lt;/span&gt;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Solver &lt;span style=&#34;color:#a6e22e&#34;&gt;solver&lt;/span&gt;(conf);
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Then we add the variables 0..9:&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-fallback&#34; data-lang=&#34;fallback&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;for(int i = 0; i &amp;lt; 10; i++) {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  solver.newVar();
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;}
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;And add a clause that would look in the &lt;a href=&#34;http://people.sc.fsu.edu/%7Ejburkardt/data/cnf/cnf.html&#34;&gt;DIMACS&lt;/a&gt; input format as &amp;ldquo;2 -5 10 0&amp;rdquo;:&lt;/p&gt;</description>
    </item>
    <item>
      <title>On hyper-binary resolution</title>
      <link>https://www.msoos.org/2012/05/on-hyper-binary-resolution/</link>
      <pubDate>Thu, 17 May 2012 09:34:01 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/?p=1196</guid> 
      <description>&lt;p&gt;Hyper-binary resolution is actually quite straightforward, or at least appears to be. Let&amp;rsquo;s take the following example. The clauses in our database are the following:&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-fallback&#34; data-lang=&#34;fallback&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;-a V b
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;-a V c
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;-b V -c V g
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;-b V -c V d
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;-d V g
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Let&amp;rsquo;s set &lt;code&gt;a&lt;/code&gt; to true, and see what happens. Immediately, &lt;code&gt;b&lt;/code&gt; and &lt;code&gt;c&lt;/code&gt; get set to true through binary clauses. If we now propagate &lt;code&gt;g&lt;/code&gt; through the clause &lt;code&gt;-b V -c V g&lt;/code&gt;, we ought to do hyper-binary resolution straight away, and add the clause &lt;code&gt;-a V g&lt;/code&gt; -- some call this &lt;a href=&#34;http://fmv.jku.at/biere/talks/Biere-Dagstuhl09-talk.pdf&#34;&gt;lazy hyper-binary resolution&lt;/a&gt;. Good, one more binary clause!&lt;/p&gt;</description>
    </item>
    <item>
      <title>Thoughts on SAT@home</title>
      <link>https://www.msoos.org/2011/12/thoughts-on-sat-at-home/</link>
      <pubDate>Sun, 11 Dec 2011 21:05:58 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/?p=1066</guid> 
      <description>&lt;p&gt;&lt;a href=&#34;http://sat.isa.ru/pdsat/&#34;&gt;&lt;img loading=&#34;lazy&#34; src=&#34;https://www.msoos.org/wordpress/wp-content/uploads/2011/12/sat_at_home_logo.png&#34;&gt;&lt;/a&gt; If you have ever wondered how your multi-month SAT problem could be solved, the answer is here: &lt;a href=&#34;http://sat.isa.ru/pdsat/&#34;&gt;SAT@home&lt;/a&gt; by some kind Russian researchers! This idea has been brewing in my head, we even started a mini-project with a  friendly &lt;a href=&#34;http://www.american.edu/cas/faculty/mblack.cfm&#34;&gt;American researcher&lt;/a&gt;, but we never got it into a working condition :(. It&amp;rsquo;s great that someone took the time to do it, though. Creating such a setup has some easier and harder parts. Setting up a &lt;a href=&#34;http://boinc.berkeley.edu/&#34;&gt;BOINC&lt;/a&gt; server is not that hard, but it needs to run 24/7, which is difficult, unless you are department head at a university or you have a company behind you. Then the scripts need to be written, which is relatively easy to do, but testing and debugging is time-consuming. The &lt;em&gt;really&lt;/em&gt; hard part, though, is how to distribute the workload. Treatises could be written on that, and the one above uses the simplest method, that of cutting up the problem along a couple of variables. It&amp;rsquo;s a good start, I think: starting easy is always the best way to start &amp;ndash; the first automobile didn&amp;rsquo;t try to achieve 300km/h speeds, and it didn&amp;rsquo;t have to.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Failed literal probing and UIP</title>
      <link>https://www.msoos.org/2011/08/failed-literal-probing-and-uip/</link>
      <pubDate>Thu, 04 Aug 2011 09:50:02 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/?p=957</guid> 
      <description>&lt;p&gt;I have just realised that &lt;a href=&#34;https://www.msoos.org/cryptominisat2&#34;&gt;CryptoMiniSat&lt;/a&gt;, having won a number of medals, does one of the most basic things, &lt;a href=&#34;http://citeseerx.ist.psu.edu/viewdoc/download;jsessionid=CF33EFCD2F8DC2595B3CB93AB4B02833?doi=10.1.1.1.1941&amp;amp;rep=rep1&amp;amp;type=pdf&#34;&gt;failed literal probing&lt;/a&gt;, &lt;em&gt;all wrong&lt;/em&gt;. Let me tell you why it&amp;rsquo;s all wrong. In essence, failed literal probing is trivial. We enqueue a fact, such as &lt;code&gt;a&lt;/code&gt;, and then propagate it. If this fails, i.e. if two opposing facts such as &lt;code&gt;g&lt;/code&gt; and &lt;code&gt;-g&lt;/code&gt; are derived, we know that &lt;code&gt;a&lt;/code&gt; cannot be true, so we set &lt;code&gt;-a&lt;/code&gt;. Easy. Or maybe not so easy.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Note to self: higher level autarkies</title>
      <link>https://www.msoos.org/2011/07/note-to-self-higher-level-autarkies/</link>
      <pubDate>Sat, 16 Jul 2011 11:22:46 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/?p=937</guid> 
      <description>&lt;p&gt;While reading &lt;a href=&#34;http://www.st.ewi.tudelft.nl/sat/theses/heule_phd.pdf&#34;&gt;this&lt;/a&gt; thesis, I have had a thought about autarkies. Let me first define what an autarky in SAT solving is:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;A partial assignment &lt;code&gt;phi&lt;/code&gt; is called a weak autarky for &lt;code&gt;F&lt;/code&gt; if &amp;quot; &lt;code&gt;phi*F&lt;/code&gt; is a subset of &lt;code&gt;F&lt;/code&gt;&amp;quot; holds, while &lt;code&gt;phi&lt;/code&gt; is an autarky for &lt;code&gt;F&lt;/code&gt; if &lt;code&gt;phi&lt;/code&gt; is a weak autarky for all sub-clause-sets &lt;code&gt;F&#39;&lt;/code&gt; of &lt;code&gt;F&lt;/code&gt;. (Handbook of Satisfiability, p. 355)&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;What does this mean? Well, it means that in the clause-set &lt;code&gt;{x V y, x}&lt;/code&gt; the assignment &lt;code&gt;y=False&lt;/code&gt; is a weak autarky, because assigning &lt;code&gt;y&lt;/code&gt; to &lt;code&gt;False&lt;/code&gt; will lead to a clause that is already in the clause set (the clause &lt;code&gt;x&lt;/code&gt;), while the assignment of &lt;code&gt;x=True&lt;/code&gt; is a (normal) autarky, because it will satisfy all clauses that &lt;code&gt;x&lt;/code&gt; is in. The point of autarkies is that we can remove clauses from the clause set by assigning values to a set of variables, while not changing the (un)satisfiability property of the original problem. In other words, autarkies are a cheap way of reducing the problem size. The only problem is that it seems to be relatively expensive to search for them, so conflict-driven SAT solvers don&amp;rsquo;t normally search for them (but, some lookahead solvers such as &lt;a href=&#34;http://www.cril.univ-artois.fr/SAT11/results/solver.php?idev=46&amp;amp;idsolver=1913&#34;&gt;march&lt;/a&gt; by Marijn Heule do).&lt;/p&gt;</description>
    </item>
    <item>
      <title>Learnt clause graphs</title>
      <link>https://www.msoos.org/2011/07/learnt-clause-graphs/</link>
      <pubDate>Thu, 07 Jul 2011 15:31:19 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/?p=894</guid> 
      <description>&lt;p&gt;&lt;em&gt;&amp;ldquo;Stay hungry. Stay foolish.&amp;rdquo;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;In my &lt;a href=&#34;https://www.msoos.org/fun-facts-about-sat-solving-part-1&#34;&gt;last post&lt;/a&gt;, I talked a little bit about learnt clause size distributions (histograms, really), and after a long chat with &lt;a href=&#34;http://folk.uio.no/vegardno/&#34;&gt;Vegard Nossum&lt;/a&gt;, we came up with some nice 3D graphs of learnt clause size distributions et al. It&amp;rsquo;s basically a lot of brainstorming that is quite entertaining I think. First of all, instead of &lt;a href=&#34;http://en.wikipedia.org/wiki/Waiting_for_Godot&#34;&gt;waiting for Godot&lt;/a&gt; (i.e. someone to tell me that is has been done already), we got down an dirty with time-sliced histograms, so we can see how a specific problem gets solved. Again, I won&amp;rsquo;t go into much analysis, as I think it&amp;rsquo;s quite detrimental to novel ways of interpretation, instead, I will simply display the graphs. All simplification algorithms have been switched off for these graphs, though interestingly, they look pretty similar even if simplifications are turned on. Before we start, let me note that all tools to generate these simply and easily will be available in CryptoMS-2.9.2 (and are already available from the &lt;a href=&#34;http://gitorious.org/cryptominisat/&#34;&gt;git repository&lt;/a&gt; of course &amp;ndash; nothing I do on CMS is secret)&lt;/p&gt;</description>
    </item>
    <item>
      <title>Fun facts about SAT solving (part 1)</title>
      <link>https://www.msoos.org/2011/07/fun-facts-about-sat-solving-part-1/</link>
      <pubDate>Fri, 01 Jul 2011 14:33:49 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/?p=875</guid> 
      <description>&lt;p&gt;Last time I gave a &lt;a href=&#34;https://www.msoos.org/wordpress/wp-content/uploads/2011/06/soos_summerschool.pdf&#34;&gt;talk&lt;/a&gt;, I got some quite deserved fire about the way I approach SAT solving: in a more practical than scientific way. So, to give some food for thought for those who wish to approach SAT from a more scientific viewpoint, and to demonstrate to what lengths I have gone to give (at least to myself) a scientific viewpoint, let me talk a little bit about a fun fact that I have found. The fun fact, as is quite usual for SAT, seems entirely trivial, even banal, but has somehow (so far) eluded proper explanation for me. Maybe you will be the one to give the right explanation :)&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>Understanding Implication Graphs</title>
      <link>https://www.msoos.org/2011/05/understanding-implication-graphs/</link>
      <pubDate>Fri, 27 May 2011 22:18:17 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/?p=738</guid> 
      <description>&lt;p&gt;Having won the &lt;a href=&#34;http://baldur.iti.uka.de/sat-race-2010/results.html&#34;&gt;SAT Race&lt;/a&gt; with CryptoMiniSat, I think I can now confess that I still don&amp;rsquo;t understand conflict generation. So today, I sat down and I tried to understand it. The result is some fun code, a lot of reading, and great pictures. Let me share with you these auto-generated graphs &amp;ndash; the generator will be released with CMSat 3.0.0, so you will be able to generate them, too. These graphs show something called an &amp;lsquo;implication graph&amp;rsquo;, which is nothing more than a graphical way to show how propagations were made by the reasoning engine. For instance, if variable x1 and x2 are both FALSE, then clause &amp;lsquo;x1 V x2 V x3&amp;rsquo; will force x3 to be TRUE to satisfy the clause. Okay, so much for talk, let&amp;rsquo;s see the graphs!&lt;/p&gt;</description>
    </item>
    <item>
      <title>Presentation at Hackito Ergo Sum</title>
      <link>https://www.msoos.org/2011/04/presentation-at-hackito-ergo-sum/</link>
      <pubDate>Wed, 13 Apr 2011 18:04:56 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/?p=723</guid> 
      <description>&lt;p&gt;The &lt;a href=&#34;http://hackitoergosum.org/&#34;&gt;HES&#39;11&lt;/a&gt; event was great: I had the pleasure of listening to some awesome presentations, and to meet some great people. The most interesting &lt;a href=&#34;http://www.youtube.com/watch?v=ovfYBa1EHm4&#34;&gt;presentation&lt;/a&gt; from a non-technical point of view was the attacks at the automount feature of Linux, which everybody thinks is completely secure, but is in fact very flawed due to some buggy rendering libraries. It&amp;rsquo;s quite interesting that almost everyone thinks that their Linux installation is secure, when in fact if Linux was mainstream, viruses would be abound &amp;ndash; but Linux is only a minor player, so malicious software is rarely written for it.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Come to Hackito Ergo Sum&#39;11</title>
      <link>https://www.msoos.org/2011/03/come-to-hackito-ergo-sum11/</link>
      <pubDate>Mon, 28 Mar 2011 12:07:06 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/?p=714</guid> 
      <description>&lt;p&gt;&lt;a href=&#34;http://hackitoergosum.org/&#34;&gt;&lt;img loading=&#34;lazy&#34; src=&#34;https://www.msoos.org/wordpress/wp-content/uploads/2011/03/hes2011.jpg&#34;&gt;&lt;/a&gt; There is going to be a nice hacker conference in Paris real soon now: &lt;a href=&#34;http://hackitoergosum.org/&#34;&gt;Hackito Ergo Sum&lt;/a&gt;, between the 7th and the 11th of April. There will be plenty of interesting talks, among them, I will also be presenting some fun crypto-breaking :) The schedule is &lt;a href=&#34;http://hackitoergosum.org/schedule/&#34;&gt;here&lt;/a&gt;, I am scheduled for the first day, on Thursday at 11:30 AM. If you are in or near Paris, come around for the conference, I am sure it will be a really nice one :) If you are interested in meeting me, we can also meet in Paris, just drop me a mail, but better yet, come and chat with me at the conf, I will be there all day long.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Recovering XORs from a CNF</title>
      <link>https://www.msoos.org/2011/03/recovering-xors-from-a-cnf/</link>
      <pubDate>Wed, 16 Mar 2011 17:53:33 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/?p=699</guid> 
      <description>&lt;p&gt;Let&amp;rsquo;s suppose you are looking to recover XORs. It&amp;rsquo;s fun to recover XORs, because you could try to XOR the XORs together to obtain new information, like this:&lt;/p&gt;
&lt;p&gt;&lt;span class=&#34;katex&#34;&gt;&lt;span class=&#34;katex-mathml&#34;&gt;&lt;math xmlns=&#34;http://www.w3.org/1998/Math/MathML&#34;&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mi&gt;a&lt;/mi&gt;&lt;mo&gt;⊕&lt;/mo&gt;&lt;mi&gt;b&lt;/mi&gt;&lt;mo&gt;⊕&lt;/mo&gt;&lt;mi&gt;c&lt;/mi&gt;&lt;mo&gt;=&lt;/mo&gt;&lt;mn&gt;0&lt;/mn&gt;&lt;/mrow&gt;&lt;annotation encoding=&#34;application/x-tex&#34;&gt;a \oplus b \oplus c = 0&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;&lt;/span&gt;&lt;span class=&#34;katex-html&#34; aria-hidden=&#34;true&#34;&gt;&lt;span class=&#34;katex-base&#34;&gt;&lt;span class=&#34;katex-strut&#34; style=&#34;height:0.6667em;vertical-align:-0.0833em;&#34;&gt;&lt;/span&gt;&lt;span class=&#34;mord mathnormal&#34;&gt;a&lt;/span&gt;&lt;span class=&#34;mspace&#34; style=&#34;margin-right:0.2222em;&#34;&gt;&lt;/span&gt;&lt;span class=&#34;mbin&#34;&gt;⊕&lt;/span&gt;&lt;span class=&#34;mspace&#34; style=&#34;margin-right:0.2222em;&#34;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;katex-base&#34;&gt;&lt;span class=&#34;katex-strut&#34; style=&#34;height:0.7778em;vertical-align:-0.0833em;&#34;&gt;&lt;/span&gt;&lt;span class=&#34;mord mathnormal&#34;&gt;b&lt;/span&gt;&lt;span class=&#34;mspace&#34; style=&#34;margin-right:0.2222em;&#34;&gt;&lt;/span&gt;&lt;span class=&#34;mbin&#34;&gt;⊕&lt;/span&gt;&lt;span class=&#34;mspace&#34; style=&#34;margin-right:0.2222em;&#34;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;katex-base&#34;&gt;&lt;span class=&#34;katex-strut&#34; style=&#34;height:0.4306em;&#34;&gt;&lt;/span&gt;&lt;span class=&#34;mord mathnormal&#34;&gt;c&lt;/span&gt;&lt;span class=&#34;mspace&#34; style=&#34;margin-right:0.2778em;&#34;&gt;&lt;/span&gt;&lt;span class=&#34;mrel&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;mspace&#34; style=&#34;margin-right:0.2778em;&#34;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;katex-base&#34;&gt;&lt;span class=&#34;katex-strut&#34; style=&#34;height:0.6444em;&#34;&gt;&lt;/span&gt;&lt;span class=&#34;mord&#34;&gt;0&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&#34;katex&#34;&gt;&lt;span class=&#34;katex-mathml&#34;&gt;&lt;math xmlns=&#34;http://www.w3.org/1998/Math/MathML&#34;&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mi&gt;a&lt;/mi&gt;&lt;mo&gt;⊕&lt;/mo&gt;&lt;mi&gt;d&lt;/mi&gt;&lt;mo&gt;⊕&lt;/mo&gt;&lt;mi&gt;b&lt;/mi&gt;&lt;mo&gt;=&lt;/mo&gt;&lt;mn&gt;0&lt;/mn&gt;&lt;/mrow&gt;&lt;annotation encoding=&#34;application/x-tex&#34;&gt;a \oplus d \oplus b = 0&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;&lt;/span&gt;&lt;span class=&#34;katex-html&#34; aria-hidden=&#34;true&#34;&gt;&lt;span class=&#34;katex-base&#34;&gt;&lt;span class=&#34;katex-strut&#34; style=&#34;height:0.6667em;vertical-align:-0.0833em;&#34;&gt;&lt;/span&gt;&lt;span class=&#34;mord mathnormal&#34;&gt;a&lt;/span&gt;&lt;span class=&#34;mspace&#34; style=&#34;margin-right:0.2222em;&#34;&gt;&lt;/span&gt;&lt;span class=&#34;mbin&#34;&gt;⊕&lt;/span&gt;&lt;span class=&#34;mspace&#34; style=&#34;margin-right:0.2222em;&#34;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;katex-base&#34;&gt;&lt;span class=&#34;katex-strut&#34; style=&#34;height:0.7778em;vertical-align:-0.0833em;&#34;&gt;&lt;/span&gt;&lt;span class=&#34;mord mathnormal&#34;&gt;d&lt;/span&gt;&lt;span class=&#34;mspace&#34; style=&#34;margin-right:0.2222em;&#34;&gt;&lt;/span&gt;&lt;span class=&#34;mbin&#34;&gt;⊕&lt;/span&gt;&lt;span class=&#34;mspace&#34; style=&#34;margin-right:0.2222em;&#34;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;katex-base&#34;&gt;&lt;span class=&#34;katex-strut&#34; style=&#34;height:0.6944em;&#34;&gt;&lt;/span&gt;&lt;span class=&#34;mord mathnormal&#34;&gt;b&lt;/span&gt;&lt;span class=&#34;mspace&#34; style=&#34;margin-right:0.2778em;&#34;&gt;&lt;/span&gt;&lt;span class=&#34;mrel&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;mspace&#34; style=&#34;margin-right:0.2778em;&#34;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;katex-base&#34;&gt;&lt;span class=&#34;katex-strut&#34; style=&#34;height:0.6444em;&#34;&gt;&lt;/span&gt;&lt;span class=&#34;mord&#34;&gt;0&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
therefore,
&lt;span class=&#34;katex&#34;&gt;&lt;span class=&#34;katex-mathml&#34;&gt;&lt;math xmlns=&#34;http://www.w3.org/1998/Math/MathML&#34;&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mi&gt;c&lt;/mi&gt;&lt;mo&gt;⊕&lt;/mo&gt;&lt;mi&gt;d&lt;/mi&gt;&lt;mo&gt;=&lt;/mo&gt;&lt;mn&gt;0&lt;/mn&gt;&lt;/mrow&gt;&lt;annotation encoding=&#34;application/x-tex&#34;&gt;c \oplus d = 0&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;&lt;/span&gt;&lt;span class=&#34;katex-html&#34; aria-hidden=&#34;true&#34;&gt;&lt;span class=&#34;katex-base&#34;&gt;&lt;span class=&#34;katex-strut&#34; style=&#34;height:0.6667em;vertical-align:-0.0833em;&#34;&gt;&lt;/span&gt;&lt;span class=&#34;mord mathnormal&#34;&gt;c&lt;/span&gt;&lt;span class=&#34;mspace&#34; style=&#34;margin-right:0.2222em;&#34;&gt;&lt;/span&gt;&lt;span class=&#34;mbin&#34;&gt;⊕&lt;/span&gt;&lt;span class=&#34;mspace&#34; style=&#34;margin-right:0.2222em;&#34;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;katex-base&#34;&gt;&lt;span class=&#34;katex-strut&#34; style=&#34;height:0.6944em;&#34;&gt;&lt;/span&gt;&lt;span class=&#34;mord mathnormal&#34;&gt;d&lt;/span&gt;&lt;span class=&#34;mspace&#34; style=&#34;margin-right:0.2778em;&#34;&gt;&lt;/span&gt;&lt;span class=&#34;mrel&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;mspace&#34; style=&#34;margin-right:0.2778em;&#34;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;katex-base&#34;&gt;&lt;span class=&#34;katex-strut&#34; style=&#34;height:0.6444em;&#34;&gt;&lt;/span&gt;&lt;span class=&#34;mord&#34;&gt;0&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
therefore,
&lt;span class=&#34;katex&#34;&gt;&lt;span class=&#34;katex-mathml&#34;&gt;&lt;math xmlns=&#34;http://www.w3.org/1998/Math/MathML&#34;&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mi&gt;c&lt;/mi&gt;&lt;mo&gt;=&lt;/mo&gt;&lt;mi&gt;d&lt;/mi&gt;&lt;/mrow&gt;&lt;annotation encoding=&#34;application/x-tex&#34;&gt;c = d&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;&lt;/span&gt;&lt;span class=&#34;katex-html&#34; aria-hidden=&#34;true&#34;&gt;&lt;span class=&#34;katex-base&#34;&gt;&lt;span class=&#34;katex-strut&#34; style=&#34;height:0.4306em;&#34;&gt;&lt;/span&gt;&lt;span class=&#34;mord mathnormal&#34;&gt;c&lt;/span&gt;&lt;span class=&#34;mspace&#34; style=&#34;margin-right:0.2778em;&#34;&gt;&lt;/span&gt;&lt;span class=&#34;mrel&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;mspace&#34; style=&#34;margin-right:0.2778em;&#34;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;katex-base&#34;&gt;&lt;span class=&#34;katex-strut&#34; style=&#34;height:0.6944em;&#34;&gt;&lt;/span&gt;&lt;span class=&#34;mord mathnormal&#34;&gt;d&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;h3 id=&#34;simple-xor-recovery&#34;&gt;Simple XOR recovery&lt;/h3&gt;
&lt;p&gt;The simplest way to recover an XOR clause is to look for clauses that encode it, which is the following set of clauses:&lt;/p&gt;</description>
    </item>
    <item>
      <title>CryptoMiniSat in SAT Competition&#39;11</title>
      <link>https://www.msoos.org/2011/03/cryptominisat-in-sat-competition11/</link>
      <pubDate>Sun, 06 Mar 2011 18:21:47 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/?p=687</guid> 
      <description>&lt;p&gt;I have submitted three versions of &lt;a href=&#34;http://gitorious.org/cryptominisat/&#34;&gt;CryptoMiniSat&lt;/a&gt; to the 2011 &lt;a href=&#34;http://www.satcompetition.org/2011/&#34;&gt;SAT Competition&lt;/a&gt;, all available &lt;a href=&#34;https://gforge.inria.fr/frs/download.php/28312/StrangeNight.tar.gz&#34;&gt;here&lt;/a&gt;. The releases are commonly called &amp;ldquo;Strange Night&amp;rdquo;, after the music track of the same &lt;a href=&#34;http://www.youtube.com/watch?v=jqmT7Fpfhp4&#34;&gt;name&lt;/a&gt;. Inside the archive you will find 5 binaries and a PDF description. The five binaries are made up of two single-threaded, two multi-threaded, and a unified single- and multi-threaded binary. This latter is called &lt;em&gt;techdemo&lt;/em&gt;, as it is more of a technological demonstrator than anything else, and was developed in collaboration with &lt;a href=&#34;http://www.cs.toronto.edu/~gkatsi/&#34;&gt;George Katsirelos&lt;/a&gt; and &lt;a href=&#34;http://www.lri.fr/~simon/&#34;&gt;Laurent Simon&lt;/a&gt;. All versions are collaborative, however, as they all have the hands of some people from the CryptoMiniSat development mailing &lt;a href=&#34;http://lists.gforge.inria.fr/pipermail/cryptominisat-devel/&#34;&gt;list&lt;/a&gt; on them.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Visiting Linz</title>
      <link>https://www.msoos.org/2011/02/visiting-linz/</link>
      <pubDate>Tue, 15 Feb 2011 13:52:40 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/?p=682</guid> 
      <description>&lt;p&gt;&lt;a href=&#34;https://www.msoos.org/wordpress/wp-content/uploads/2011/06/Linz.png&#34;&gt;&lt;img loading=&#34;lazy&#34; src=&#34;https://www.msoos.org/wordpress/wp-content/uploads/2011/06/Linz.png&#34;&gt;&lt;/a&gt; Lately I had the pleasure of visiting Linz, Armin Biere&amp;rsquo;s workplace, where I gave a quick &lt;a href=&#34;https://www.msoos.org/wordpress/wp-content/uploads/2011/02/SAT_solver_architectures_Linz.pdf&#34;&gt;talk&lt;/a&gt; on SAT solver architectures. To me, it was really interesting to think through that presentation &amp;mdash; not because it was entirely new or exciting, but because it recapped on many issues that have been bothering me lately. Namely, that it&amp;rsquo;s difficult to make a really versatile SAT solver, because the low-level choices that must be made (e.g. watchlist scheme) determines so many things when one must make higher-level architectural decisions such as &lt;a href=&#34;https://www.msoos.org/changing-the-watchlist-scheme&#34;&gt;clause sharing&lt;/a&gt; or even something as simple as &lt;a href=&#34;https://www.msoos.org/hyper-binary-resolution-i-was-wrong-again&#34;&gt;hyper-binary resolution&lt;/a&gt;. As for this latter, thanks to Armin Biere&amp;rsquo;s thoughts I have finally managed to realise why my hyper-binary resolution was so slow: I lately took the decision not to fully propagate binary clauses before propagating normal (i.e. larger) clauses, which meant that doing hyper-binary resolution was much slower as I had to re-calculate the binary graph. The fact of not fully propagating binary clauses before normal clauses seemed also to influence my much higher-level choice of using cached implications, as they (intuitively, and also in practice) help much more if binary clauses are not fully propagated before normal clauses. This latter influence is interesting to think through, as something this trivial shouldn&amp;rsquo;t &amp;ndash; at least in principle &amp;ndash; influence such a high-level decision.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Delayed updates</title>
      <link>https://www.msoos.org/2011/02/delayed-updates/</link>
      <pubDate>Sat, 05 Feb 2011 21:38:50 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/?p=652</guid> 
      <description>&lt;p&gt;In this post I will try to explain how &lt;a href=&#34;http://en.wikipedia.org/wiki/Locality_of_reference&#34;&gt;locality of reference&lt;/a&gt; could be exploited by grouping operations that access different memory locations. In the SAT solver program I write, there is a loop that does a something called propagation. The goal of propagation is to set a number of variables to a given value through a pretty cache-intensive process. While doing this, as the variables are set, some statistics are calculated. For example, I used to have something like this called for every variable set:&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>CryptoMiniSat 2.9.0 released</title>
      <link>https://www.msoos.org/2011/01/cryptominisat-2-9-0-released/</link>
      <pubDate>Thu, 20 Jan 2011 22:41:57 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/?p=623</guid> 
      <description>&lt;p&gt;After a long break, CryptoMiniSat 2.9.0 has finally been &lt;a href=&#34;https://gforge.inria.fr/frs/?group_id=1992&amp;amp;release_id=5810&#34;&gt;released&lt;/a&gt;. The Windows executables need &lt;a href=&#34;http://www.google.com/search?q=Microsoft+Visual+C%2B%2B+2008+SP1+Redistributable+Package&#34;&gt;this&lt;/a&gt; to work, and the Linux binaries need a recent (&amp;gt;=2.6.26) kernel version. The program has evolved substantially since the last release &amp;ndash; more than half of its codebase has been changed. It now works in multi-threaded mode, and uses &lt;a href=&#34;https://www.msoos.org/caching&#34;&gt;lazy cached implications&lt;/a&gt; for all sorts of interesting purposes from simple &lt;a href=&#34;https://www.msoos.org/transitive-otf-self-subsuming-resolution&#34;&gt;transitive on-the-fly self-subsuming resolution&lt;/a&gt; to very efficient &lt;a href=&#34;https://www.msoos.org/dependent-literals&#34;&gt;literal dependency analysis&lt;/a&gt;. Currently, the program solves ~225 problems from the &lt;a href=&#34;http://www.cril.univ-artois.fr/SAT09/&#34;&gt;2009 SAT Competition&lt;/a&gt; examples given the same time and similar computing power. This is a nice improvement over other SAT solvers such as &lt;a href=&#34;http://minisat.se/MiniSat.html&#34;&gt;MiniSat&lt;/a&gt; (205), &lt;a href=&#34;http://fmv.jku.at/precosat/&#34;&gt;PrecoSat&lt;/a&gt; (210) or &lt;a href=&#34;http://fmv.jku.at/lingeling/&#34;&gt;lingeling&lt;/a&gt; (207).&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>
    <item>
      <title>The variable speed of SAT solving</title>
      <link>https://www.msoos.org/2011/01/the-variable-speed-of-sat-solving/</link>
      <pubDate>Sun, 02 Jan 2011 22:37:46 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/?p=588</guid> 
      <description>&lt;figure&gt;
    &lt;img loading=&#34;lazy&#34; src=&#34;https://www.msoos.org/wordpress/wp-content/uploads/2011/01/Attacking-Bivium-Using-SAT-Solvers.png&#34;
         alt=&#34;Timings from the article &amp;ldquo;Attacking Bivium Using SAT Solvers&amp;rdquo;. The authors didn&amp;rsquo;t seem to have randomised the problems enough: the time to solve should increase exponentially, but instead it goes up and down like a roller coaster&#34;/&gt; &lt;figcaption&gt;
            &lt;p&gt;Timings from the article &amp;ldquo;Attacking Bivium Using SAT Solvers&amp;rdquo;. The authors didn&amp;rsquo;t seem to have randomised the problems enough: the time to solve should increase exponentially, but instead it goes up and down like a roller coaster&lt;/p&gt;
        &lt;/figcaption&gt;
&lt;/figure&gt;</description>
    </item>
    <item>
      <title>Extended resolution is working!</title>
      <link>https://www.msoos.org/2010/12/extended-resolution-is-working/</link>
      <pubDate>Tue, 28 Dec 2010 22:13:08 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/?p=577</guid> 
      <description>&lt;p&gt;The subtitle of this post should really say: &lt;em&gt;and I was wrong, again&lt;/em&gt;. First, let me explain what I have been wrong about &amp;ndash; wrong assumptions are always the most instructive.&lt;/p&gt;
&lt;p&gt;I have been convinced for the past year that it&amp;rsquo;s best to have two type of restart and corresponding learnt clause usefulness strategies: the glue-based restart&amp;amp;garbage collection of &lt;a href=&#34;http://www.lri.fr/~simon/glucose/downloads/glucose-compet-report.pdf&#34;&gt;Glucose&lt;/a&gt; and a variation of the geometric restart and activity-based garbage collection of &lt;a href=&#34;http://minisat.se&#34;&gt;MiniSat&lt;/a&gt;. The glue-based variation was observed to be very good for industrial instances with many variables, many of which can be fixed easily, and the MiniSat-type variation was observed to be good for cryptography-type instances with typically low number of variables, almost none of which can be fixed. However, I had the chance to talk to &lt;a href=&#34;http://fmv.jku.at/biere/&#34;&gt;Armin Biere&lt;/a&gt; a couple of weeks ago, and while talking with him, I have realised that maybe one of Lingeling&amp;rsquo;s advantages was its very interesting single restart strategy, based on agility (&lt;a href=&#34;http://fmv.jku.at/biere/talks/Biere-SAT08-talk.pdf&#34;&gt;presentation&lt;/a&gt;, &lt;a href=&#34;http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.161.8085&amp;amp;rep=rep1&amp;amp;type=pdf&#34;&gt;PDF&lt;/a&gt;) which seemed to let it use glue-based garbage collection all the time, succeeding to solve both types of instances. So, inspired by the &lt;a href=&#34;http://events.ccc.de/congress/2010/wiki/Welcome&#34;&gt;CCC&lt;/a&gt; crowd, in only 10 minutes I have implemented a simple version of this restart strategy into CryptoMiniSat, and voilá, it seems to work on both type of instances, using only glues!&lt;/p&gt;</description>
    </item>
    <item>
      <title>CCC madness</title>
      <link>https://www.msoos.org/2010/12/ccc-madness/</link>
      <pubDate>Sun, 26 Dec 2010 23:04:47 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/?p=557</guid> 
      <description>&lt;p&gt;&lt;a href=&#34;https://www.msoos.org/wordpress/wp-content/uploads/2010/12/27c3.jpg&#34;&gt;&lt;img loading=&#34;lazy&#34; src=&#34;https://www.msoos.org/wordpress/wp-content/uploads/2010/12/27c3.jpg&#34;&gt;&lt;/a&gt; The Chaos Computer Club (CCC) is having its yearly &lt;a href=&#34;http://events.ccc.de/category/27c3/&#34;&gt;conference&lt;/a&gt; starting today. It&amp;rsquo;s a madhouse here, which is great for ideas, so I have been having this rush of ideas implemented. First off, it seems that complex problems with few variables are way too difficult to solve even with distributed solving. I have been trying to solve some difficult problems, but no matter how much computer power I throw at them (and I have been throwing &amp;gt;2 years&amp;rsquo; worth, with &amp;gt;300 CPU cores running), not much progress is being made. I have lately been attributing this &amp;ldquo;failure&amp;rdquo; to one prime problem: lack of expressiveness.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Distributed SAT solving is fun</title>
      <link>https://www.msoos.org/2010/12/distributed-sat-solving-is-fun/</link>
      <pubDate>Mon, 20 Dec 2010 17:45:33 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/?p=551</guid> 
      <description>&lt;p&gt;&lt;a href=&#34;https://www.msoos.org/wordpress/wp-content/uploads/2010/12/LogoGrid5000.png&#34;&gt;&lt;img loading=&#34;lazy&#34; src=&#34;https://www.msoos.org/wordpress/wp-content/uploads/2010/12/LogoGrid5000.png&#34;&gt;&lt;/a&gt; I have lately been trying to keep my promise I made on the &lt;a href=&#34;https://www.msoos.org/cryptominisat2&#34;&gt;webpage&lt;/a&gt; of CryptoMiniSat: &amp;ldquo;The long-term goals of CryptoMiniSat are to be an efficient sequential, parallel and distributed solver&amp;rdquo;. The first step was to make a relatively efficient sequential solver. With the winning of the SAT Race&#39;10, that was at least partially accomplished. The next step was to make the program parallel. Now, I have made it distributed. The parallel version was made using &lt;a href=&#34;http://www.openmp.org/&#34;&gt;OpenMP&lt;/a&gt;, and you can try it using the &amp;ldquo;master&amp;rdquo; branch from the git &lt;a href=&#34;http://gitorious.com/cryptominisat/&#34;&gt;repository&lt;/a&gt;. The distributed version uses &lt;a href=&#34;http://www.mcs.anl.gov/research/projects/mpi/&#34;&gt;MPI&lt;/a&gt;, which means it can probably work on most cluster/supercomputer architectures. This distributed version is currently alpha, and is not yet in the git repo.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Hyper-binary resolution: I was wrong, again</title>
      <link>https://www.msoos.org/2010/12/hyper-binary-resolution-i-was-wrong-again/</link>
      <pubDate>Thu, 16 Dec 2010 19:42:26 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/?p=541</guid> 
      <description>&lt;p&gt;I am not perfect, so I make mistakes. One of the more memorable mistakes I have made has been regarding &lt;a href=&#34;https://www.msoos.org/i-must-be-dumb&#34;&gt;hyper-binary resolution&lt;/a&gt;. More specifically, in &lt;a href=&#34;https://www.msoos.org/being-dumb-is-part-of-the-deal&#34;&gt;this&lt;/a&gt; post I wrote that I cannot add as many binary clauses using hyper-binary resolution as &lt;a href=&#34;http://fmv.jku.at/biere/&#34;&gt;Armin Biere&lt;/a&gt;, one of the leading SAT solver experts, and I proposed a reason that would have meant that CryptoMiniSat was doing things differently and thus better. Well, I was wrong, on multiple accounts.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Dependent Literals</title>
      <link>https://www.msoos.org/2010/12/dependent-literals/</link>
      <pubDate>Tue, 07 Dec 2010 22:15:41 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/?p=535</guid> 
      <description>&lt;p&gt;I have lately been trying to work on branching heuristics. The idea is relatively simple. If we have a &lt;a href=&#34;https://www.msoos.org/caching&#34;&gt;cache&lt;/a&gt; of what propagates what, we can try to branch on literals that propagate a lot of other literals. The algorithm boils down to the following:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;For each literal L, we select a literal DL that propagates L and has the largest tree of propagated literals.. We call this DL the dominating literal. Naturally, some literals don&amp;rsquo;t have a dominating literal, and some literals appear as dominating literals for many other literals.&lt;/li&gt;
&lt;li&gt;When branching, if we are supposed to branch on a literal that has a dominator, we pick the dominator instead of the literal. This not only ensures that the literal will be set, but it will probably also set a number of other literals.&lt;/li&gt;
&lt;li&gt;Using the heuristic of step 2, we should reach a conflict earlier, with less decisions taken. This should lead to faster conflicting, and thus faster solving.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Of course things aren&amp;rsquo;t as simple as they seem. First of all, as &lt;a href=&#34;http://www.informatik.uni-trier.de/~ley/db/indices/a-tree/k/Katsirelos:George.html&#34;&gt;George&lt;/a&gt; has indicated to me, Jarvisalo and Junttila have published  a &lt;a href=&#34;http://dx.doi.org/10.1007/s10601-008-9062-z&#34;&gt;paper&lt;/a&gt; entitled &lt;em&gt;Limitations of restricted branching in clause learning&lt;/em&gt;, which deals with issues related to this branching heursitic. The baseline of that paper is that it&amp;rsquo;s a bad idea to branch only on dependent (they call them &lt;em&gt;input&lt;/em&gt;) variables. I haven&amp;rsquo;t really got very deep into this, but there are some subtle differences between the heuristic above and dependent variables, notably that I have treated dependent &lt;em&gt;literals&lt;/em&gt; above, while Matti and Tommi are treating dependent &lt;em&gt;variables&lt;/em&gt;.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Caching</title>
      <link>https://www.msoos.org/2010/11/caching/</link>
      <pubDate>Tue, 23 Nov 2010 13:43:50 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/?p=524</guid> 
      <description>&lt;p&gt;&amp;ldquo;Representation &lt;em&gt;is&lt;/em&gt; the essence of programming&amp;rdquo;
Frederic P. Brooks Jr., &amp;ldquo;The Mythical Man-month&amp;rdquo;&lt;/p&gt;
&lt;p&gt;&lt;a href=&#34;https://www.msoos.org/wordpress/wp-content/uploads/2010/11/memory.png&#34;&gt;&lt;img loading=&#34;lazy&#34; src=&#34;https://www.msoos.org/wordpress/wp-content/uploads/2010/11/memory.png&#34;&gt;&lt;/a&gt; Looking through the literature on SAT solvers, it is rare to find any algorithm that uses a form of time-memory trade-off. In fact, it is rare to find any algorithm that uses too much memory. This also shows up in practice, as it&amp;rsquo;s rare to find a SAT solver using too much memory. This translates to the following: if a SAT solver can in an effective way utilize the typically abundant memory, that SAT solver will have an advantage. Based on this logic, I think CryptoMiniSat is doing good.&lt;/p&gt;</description>
    </item>
    <item>
      <title>The Cathedral</title>
      <link>https://www.msoos.org/2010/11/the-cathedral/</link>
      <pubDate>Sun, 07 Nov 2010 20:09:59 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/?p=514</guid> 
      <description>&lt;figure&gt;&lt;a href=&#34;http://www.flickr.com/photos/paukrus/&#34;&gt;
    &lt;img loading=&#34;lazy&#34; src=&#34;https://www.msoos.org/wordpress/wp-content/uploads/2010/11/cathedral1.jpg&#34;
         alt=&#34;Cathedral of Transfiguration in Habarovsk (picture credit: paukrus)&#34;/&gt; &lt;/a&gt;&lt;figcaption&gt;
            &lt;p&gt;Cathedral of Transfiguration in Habarovsk (picture credit: paukrus)&lt;/p&gt;
        &lt;/figcaption&gt;
&lt;/figure&gt;

&lt;p&gt;Last week I visited &lt;a href=&#34;http://research.microsoft.com/en-us/labs/cambridge/&#34;&gt;Micosoft Reasearch&lt;/a&gt; in Cambridge, where I gave a &lt;a href=&#34;https://www.msoos.org/wordpress/wp-content/uploads/2010/11/soos_microsoft_pres.pdf&#34;&gt;talk&lt;/a&gt; on SAT solvers, Grobner basis algorithms, and Cryptography. It was nice to visit Microsoft, and in particular I enjoyed seeing how &amp;ldquo;the cathedral&amp;rdquo; works. The kind of software development carried out at Microsoft and almost all large software companies is called the cathedral model due to the book &amp;ldquo;&lt;a href=&#34;http://en.wikipedia.org/wiki/The_Mythical_Man-Month&#34;&gt;The Mythical Man-Month&lt;/a&gt;&amp;rdquo;. It&amp;rsquo;s a very interesting book that talks about how software (and in particular, a &amp;ldquo;Programming Systems Product&amp;rdquo;) is developed. All Windows variants, and e.g. the IBM System/360 fall into the category of programming systems products: they are all tested, documented, extensible, have predefined inputs and outputs, come with predefined interfaces, etc. The development of these software is called the cathedral model simply because that&amp;rsquo;s the example the book uses, and it got stuck in the literature.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Implicit binary clauses</title>
      <link>https://www.msoos.org/2010/10/implicit-binary-clauses/</link>
      <pubDate>Wed, 27 Oct 2010 22:14:57 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/?p=508</guid> 
      <description>&lt;p&gt;I have lately been trying to get CryptoMiniSat to use implicit binary clauses. The idea is that since binary clauses are very trivial (just two literals), and they don&amp;rsquo;t really need to keep state (like clause activity), they don&amp;rsquo;t really need to be stored at a separate location. Instead, they can be stored &lt;a href=&#34;https://www.msoos.org/propagating-faster&#34;&gt;directly&lt;/a&gt; in the watchlists. There are a number of advantages and disadvantages that come with this approach.&lt;/p&gt;
&lt;p&gt;&lt;a href=&#34;https://www.msoos.org/wordpress/wp-content/uploads/2010/10/implicit_bin_clauses1.png&#34;&gt;&lt;img loading=&#34;lazy&#34; src=&#34;https://www.msoos.org/wordpress/wp-content/uploads/2010/10/implicit_bin_clauses1.png&#34;&gt;&lt;/a&gt; The main advantage is a notable reduction of memory usage and memory fragmentation. The first is obvious: since we don&amp;rsquo;t allocate space for binary clauses separately, the memory usage of the program should go down. This is especially true since SAT problems usually contain a huge number of binary clauses. The secondary benefit, that of reduced memory fragmentation is not really that much of an advantage if someone uses, e.g. the &lt;a href=&#34;http://www.boost.org/doc/libs/release/libs/pool/doc/&#34;&gt;boost pool&lt;/a&gt; library.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Wasting cluster time</title>
      <link>https://www.msoos.org/2010/10/wasting-cluster-time/</link>
      <pubDate>Fri, 15 Oct 2010 21:54:20 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/?p=502</guid> 
      <description>&lt;p&gt;Today marked the 100th cluster experiment I have conducted on the Grid&#39;5000 &lt;a href=&#34;http://www.grid5000.fr/mediawiki/index.php/Grenoble:Hardware&#34;&gt;cluster&lt;/a&gt; in Grenoble. The computers in this cluster are very powerful beasts, equipped with two Xeon Core i7-based processors, each with 4 cores for 8 cores in total with some impressive memory size and connectivity. The sad part is that since CryptoMiniSat is sequential software, I only use 1 core from the 8 total, since I cannot allow to have fluctuating test results due to memory-bandwidth problems when running multiple instances of the solver on the same physical computer. I have just counted, and using a very conservative estimate, I have wasted 41.8 years of  CPU core time to get CryptoMiniSat up to &lt;a href=&#34;https://www.msoos.org/cryptominisat-2-7-1-released&#34;&gt;speed&lt;/a&gt;.&lt;/p&gt;</description>
    </item>
    <item>
      <title>CryptoMiniSat 2.7.1 released</title>
      <link>https://www.msoos.org/2010/10/cryptominisat-2-7-1-released/</link>
      <pubDate>Wed, 13 Oct 2010 16:46:18 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/?p=490</guid> 
      <description>&lt;p&gt;It has been a long and winding road, but finally, CryptoMiniSat 2.7.1 has been &lt;a href=&#34;https://gforge.inria.fr/frs/shownotes.php?release_id=5507&#34;&gt;released&lt;/a&gt;. The main additions relative to version 2.6.0 are:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Lots of &lt;a href=&#34;https://www.msoos.org/documentation/cryptominisat/&#34;&gt;documentation&lt;/a&gt;. I have added ~1&#39;500 lines of comments to aid developers and user alike&lt;/li&gt;
&lt;li&gt;Transitive on-the-fly self-subsuming resolution &amp;ndash; an optimisation I have &lt;a href=&#34;../../transitive-otf-self-subsuming-resolution&#34;&gt;blogged about&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Memory allocator has been fixed and updated&lt;/li&gt;
&lt;li&gt;DIMACS parsing is now much better, which should allow for very interesting usage scenarios&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Although the above list doesn&amp;rsquo;t seem to talk about performance, let me talk about it first. My personal point of view on performance is that different applications have different needs, so even if overall some solver is the best, it might not mean that it is the best for a particular application. I compared the performance of CryptoMiniSat 2.7.1 to the other mainline solvers, namely &lt;a href=&#34;http://minisat.se/&#34;&gt;MiniSat 2.2&lt;/a&gt;, &lt;a href=&#34;http://fmv.jku.at/precosat/&#34;&gt;PrecoSat465&lt;/a&gt;, and &lt;a href=&#34;http://fmv.jku.at/lingeling/&#34;&gt;lingeling&lt;/a&gt;. I ran the problem instances of the 2009 SAT Competition, with a timeout of 6&#39;000 seconds on some &lt;a href=&#34;http://www.grid5000.fr/mediawiki/index.php/Grenoble:Hardware&#34;&gt;powerful&lt;/a&gt; computers. The results are the following:&lt;/p&gt;</description>
    </item>
    <item>
      <title>Configuration management at IRILL days</title>
      <link>https://www.msoos.org/2010/10/configuration-management-at-irill-days/</link>
      <pubDate>Mon, 04 Oct 2010 16:17:42 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/?p=481</guid> 
      <description>&lt;p&gt;&lt;a href=&#34;https://www.msoos.org/wordpress/wp-content/uploads/2010/10/Logotype-IRILL.jpg&#34;&gt;&lt;img loading=&#34;lazy&#34; src=&#34;https://www.msoos.org/wordpress/wp-content/uploads/2010/10/Logotype-IRILL.jpg&#34;&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Today I attended the &lt;a href=&#34;http://www.irill.org/events/irill-days-2010&#34;&gt;IRILL days&lt;/a&gt; here in Paris. IRILL&amp;rsquo;s goal is to bring together high level researchers and scientists, FOSS (Free and Open Source) developers, and FOSS industry players to tackle the three fundamental challenges that FOSS poses:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;em&gt;scientific&lt;/em&gt;: study problems raised by the development and maintenance of FOSS code&lt;/li&gt;
&lt;li&gt;&lt;em&gt;educational&lt;/em&gt;: adapt the teaching curriculum to FOSS&lt;/li&gt;
&lt;li&gt;&lt;em&gt;economic&lt;/em&gt;: help create a sustainable ecosystem for FOSS innovations&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The most interesting part of the conference for me was Debian &lt;a href=&#34;http://www.debian.org/doc/FAQ/ch-pkgtools.en.html&#34;&gt;package dependency management&lt;/a&gt;, which currently is done by a number of ad-hoc algorithms, a problem that the &lt;a href=&#34;http://mancoosi.org/&#34;&gt;Mancoosi Project&lt;/a&gt; is tacking. Essentially, there are a number of program packages that need different libraries and services, and we need to decide which ones we need to install in order to satisfy those dependencies when installing/upgrading a package. This dependency graph and the package to be installed/upgraded is capture in a language called &lt;a href=&#34;http://www.mancoosi.org/cudf/primer/&#34;&gt;CUDF&lt;/a&gt; (complete PDF description &lt;a href=&#34;http://www.mancoosi.org/reports/tr3.pdf&#34;&gt;here&lt;/a&gt;). When deciding which packages to retain,upgrade or install, there are some goals which we must achieve, such as minimising the number of new packages as much a possible: the different optimisation criterias are described &lt;a href=&#34;http://www.mancoosi.org/misc-2010/criteria/&#34;&gt;here&lt;/a&gt;. There is a competition associated with this computationally difficult problem, the &lt;a href=&#34;http://www.mancoosi.org/misc-2010/&#34;&gt;MISC Competition&lt;/a&gt;, which was first conducted this year, during the &lt;a href=&#34;http://www.floc-conference.org/&#34;&gt;FLoC&lt;/a&gt; conference.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Open source software? Free software?</title>
      <link>https://www.msoos.org/2010/09/open-source-software-free-software/</link>
      <pubDate>Thu, 30 Sep 2010 18:40:27 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/?p=472</guid> 
      <description>&lt;p&gt;&lt;a href=&#34;http://www.nuxeo.com/en/about/events/owf2010&#34;&gt;&lt;img loading=&#34;lazy&#34; src=&#34;https://www.msoos.org/wordpress/wp-content/uploads/2010/09/owf2010.jpg&#34;&gt;&lt;/a&gt; Today I attended the &lt;a href=&#34;http://www.openworldforum.org/&#34;&gt;Open World Forum&lt;/a&gt; conference here in Paris. Basically, it&amp;rsquo;s a business-oriented conference to do networking for folks in the free/open source industry. Some of the panelists were sometimes really boring, such as the &amp;ldquo;French Secretary of State responsible for the Digital Economy&amp;rdquo; who seemed to have deeply confused &amp;ldquo;&lt;a href=&#34;http://en.wikipedia.org/wiki/Free_software&#34;&gt;free as in speech&lt;/a&gt;&amp;rdquo; and &amp;ldquo;&lt;a href=&#34;http://en.wikipedia.org/wiki/Open_source_software&#34;&gt;open source&lt;/a&gt;&amp;rdquo; software &amp;ndash; a &lt;em&gt;grave&lt;/em&gt; mistake by my book. The panelist, who knew the difference of course, regularly overemphasised the use of &amp;ldquo;open source&amp;rdquo; software, but the notion of &amp;ldquo;free as in speech&amp;rdquo; was lost, and mentioned rarely, with the notable exception of the &lt;a href=&#34;http://www.redhat.com/&#34;&gt;Red Hat&lt;/a&gt; folks. With the release of CryptoMiniSat, which I explicitly released under a free software licence, &lt;a href=&#34;http://www.gnu.org/licenses/gpl.html&#34;&gt;GPLv3&lt;/a&gt;, I of course disagreed.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Documenting CryptoMiniSat</title>
      <link>https://www.msoos.org/2010/09/documenting-cryptominisat/</link>
      <pubDate>Wed, 29 Sep 2010 16:59:36 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/?p=466</guid> 
      <description>&lt;p&gt;&lt;img loading=&#34;lazy&#34; src=&#34;https://www.msoos.org/wordpress/wp-content/uploads/2010/09/documentation.jpg&#34;&gt;Documenting code is not always so much fun. However, in order for the code to be extended by others, documentation needs to exist. Since I conceived &lt;a href=&#34;https://www.msoos.org/cryptominisat2&#34;&gt;CryptoMiniSat&lt;/a&gt; as a program to be extended by others, documentation was a must. So now, after investing about 2 weeks into documentation, it is finally ready. All major classes have been documented, along with all major functions and internal data structures. The number of comment lines I added is around a thousand, all in the Doxygen format. A preliminary HTML version is available &lt;a href=&#34;https://www.msoos.org/documentation/cryptominisat/index.html&#34;&gt;here&lt;/a&gt;. I hope the quality of the documentation will improve with time, and that others might correct and add more documentation as they update the program.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Transitive OTF self-subsuming resolution</title>
      <link>https://www.msoos.org/2010/09/transitive-otf-self-subsuming-resolution/</link>
      <pubDate>Tue, 28 Sep 2010 16:26:51 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/?p=451</guid> 
      <description>&lt;p&gt;The title may be a bit long, but its essence is very simple: we try to shorten learnt clauses. The basic idea was described in &lt;a href=&#34;https://www.msoos.org/on-the-fly-self-subsuming-resolution&#34;&gt;this&lt;/a&gt; post: there is a clause we just derived, e.g.&lt;/p&gt;
&lt;p&gt;&lt;code&gt;d V -e V f V g&lt;/code&gt; (1)&lt;/p&gt;
&lt;p&gt;where &lt;code&gt;d,e,f,g&lt;/code&gt; are binary variables, &lt;code&gt;-&lt;/code&gt; is binary negation, and &lt;code&gt;V&lt;/code&gt; is the binary OR operator. We can remove a literal from this using &lt;a href=&#34;https://www.msoos.org/self-subsuming-resolution&#34;&gt;self-subsuming resolution&lt;/a&gt; with e.g. the 2-long clause:&lt;/p&gt;</description>
    </item>
    <item>
      <title>anf2cnf script released</title>
      <link>https://www.msoos.org/2010/09/anf2cnf-script-released/</link>
      <pubDate>Fri, 24 Sep 2010 15:38:29 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/?p=440</guid> 
      <description>&lt;p&gt;I have finally managed to fix the script that converts ANF problems to CNF format in the &lt;a href=&#34;http://www.sagemath.org/&#34;&gt;Sage&lt;/a&gt; math system. The &lt;a href=&#34;http://bitbucket.org/malb/algebraic_attacks/src/abd22969c7b5/anf2cnf.py&#34;&gt;original script&lt;/a&gt; was having some problems that I &lt;a href=&#34;https://www.msoos.org/anf2cnf-hell-in-sage&#34;&gt;blogged about&lt;/a&gt;. The new script has corrected most of the shortcomings of the original script, as well as added some textual help for the user.&lt;/p&gt;
&lt;p&gt;For instance, the equations&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-fallback&#34; data-lang=&#34;fallback&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;sage: print two_polynoms
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;[x0*x1 + 1, x0*x1 + x1]
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;that last time required 13 clauses and 4 variables in CNF, now look like this:&lt;/p&gt;</description>
    </item>
    <item>
      <title>anf2cnf hell in Sage</title>
      <link>https://www.msoos.org/2010/09/anf2cnf-hell-in-sage/</link>
      <pubDate>Wed, 22 Sep 2010 23:38:20 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/?p=416</guid> 
      <description>&lt;p&gt;&lt;img loading=&#34;lazy&#34; src=&#34;https://www.msoos.org/wordpress/wp-content/uploads/2010/09/HieronymusBoschHellD1.jpg&#34;&gt;There is an &lt;a href=&#34;http://en.wikipedia.org/wiki/Algebraic_normal_form&#34;&gt;ANF&lt;/a&gt; (Algebraic Normal Form) to &lt;a href=&#34;http://en.wikipedia.org/wiki/Conjunctive_normal_form&#34;&gt;CNF&lt;/a&gt; (Conjunctive Normal Form) &lt;a href=&#34;http://bitbucket.org/malb/algebraic_attacks/src/ce81112bbce4/anf2cnf.py&#34;&gt;converter&lt;/a&gt; by Martin Albrecht in &lt;a href=&#34;http://www.sagemath.org/&#34;&gt;Sage&lt;/a&gt;. Essentially, it performs the ANF to CNF conversion that I have described previously in &lt;a href=&#34;https://www.msoos.org/anf-to-cnf-conversion&#34;&gt;this&lt;/a&gt; blog entry. Me, as unsuspecting as anyone else, have been using this for a couple of days now. It seemed to do its job. However, today, I wanted to backport some of my &lt;a href=&#34;https://www.msoos.org/wordpress/wp-content/uploads/2010/09/GrainofSalt-desc-1.0.pdf&#34;&gt;ideas&lt;/a&gt; to this converter. And then it hit me.&lt;/p&gt;
&lt;p&gt;Let me illustrate with a short example why I think something is wrong with this converter. We will try to encode that &lt;code&gt;variable 0&lt;/code&gt; and &lt;code&gt;variable 1&lt;/code&gt; cannot both be TRUE. This is as simple as saying &lt;code&gt;x0*x1 = 0&lt;/code&gt; in plain old math. In Sage this is done like this:&lt;/p&gt;</description>
    </item>
    <item>
      <title>Reinventing the wheel</title>
      <link>https://www.msoos.org/2010/09/reinventing-the-wheel/</link>
      <pubDate>Sat, 18 Sep 2010 16:29:45 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/?p=412</guid> 
      <description>&lt;p&gt;I have lately been describing two techniques to speed up SAT solving: &lt;a href=&#34;https://www.msoos.org/on-the-fly-self-subsuming-resolution&#34;&gt;on-the-fly self-subsuming resolution&lt;/a&gt;, and an interesting way to apply &lt;a href=&#34;https://www.msoos.org/asymmetric-branching&#34;&gt;asymmetric branching&lt;/a&gt;. It turns out, the first was already used in &lt;a href=&#34;http://fmv.jku.at/precosat/&#34;&gt;PrecoSat&lt;/a&gt; (by Armin Biere) under the name &amp;ldquo;strong minimization&amp;rdquo;, and the second was already published as &lt;a href=&#34;http://research.microsoft.com/en-us/people/youssefh/vivification.pdf&#34;&gt;Vivification&lt;/a&gt; by Piette, Hamadi and Sais. As far as I could tell, both optimisations bring tangible benefits to SAT solving. I have tried solving the problem instances of the 2009 SAT competition with and without both optimisations, and it turns out that using both is the fastest.&lt;/p&gt;</description>
    </item>
    <item>
      <title>FPGA programming and SAT</title>
      <link>https://www.msoos.org/2010/09/fpga-programming-and-sat/</link>
      <pubDate>Mon, 13 Sep 2010 21:06:08 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/?p=401</guid> 
      <description>&lt;p&gt;&lt;img loading=&#34;lazy&#34; src=&#34;https://www.msoos.org/wordpress/wp-content/uploads/2010/09/FPGA-pic-e1307467256310-150x117.jpg&#34;&gt;I have lately been trying to implement a cryptographic protocol (&lt;a href=&#34;http://ieeexplore.ieee.org/xpls/abs_all.jsp?arnumber=4253016&#34;&gt;CryptoGPS&lt;/a&gt;) on an FPGA. First impressions are that &lt;a href=&#34;http://en.wikipedia.org/wiki/VHDL&#34;&gt;VHDL&lt;/a&gt; is a difficult language, but once understood, it&amp;rsquo;s not all that difficult to work with it. It took me ~2 weeks to get a hold on the language, but now it feels relatively easy to program in it. I have been looking forward to getting down and dirty with FPGAs, because it&amp;rsquo;s one of my long-term goals to somehow integrate SAT solvers with FPGAs.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Creating a SAT solver from scratch</title>
      <link>https://www.msoos.org/2010/09/creating-a-sat-solver-from-scratch/</link>
      <pubDate>Sun, 05 Sep 2010 16:53:28 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/wordpress/?p=348</guid> 
      <description>&lt;p&gt;I have lately been having a small chat with &lt;a href=&#34;http://www.spirtech.com/fgr/index.htm&#34;&gt;Francois Grieu&lt;/a&gt; and it inspired me to think about how difficult it would be to create a new SAT solver from scratch. Let&amp;rsquo;s take it for granted that the person who embarks on such a difficult task understands the basics well, and wishes to create a (nowadays very popular) Conflict-Driven Clause-Learning (or simply, CDCL) type SAT solver. The main parts of  these solvers are:&lt;/p&gt;</description>
    </item>
    <item>
      <title>Truth table to ANF conversion</title>
      <link>https://www.msoos.org/2010/09/truth-table-to-anf-conversion/</link>
      <pubDate>Fri, 03 Sep 2010 14:00:28 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/wordpress/?p=311</guid> 
      <description>&lt;p&gt;It is sometimes important to be able to quickly convert a binary function, described in as a &lt;a href=&#34;http://en.wikipedia.org/wiki/Truth_table&#34;&gt;truth table&lt;/a&gt;, to its &lt;a href=&#34;http://en.wikipedia.org/wiki/Algebraic_normal_form&#34;&gt;Algebraic Normal Form&lt;/a&gt; (or simply, ANF). The truth table basically lists the points where a function is 1 and when it is 0. For instance, if the function has two variables, and its truth table is &lt;code&gt;0110&lt;/code&gt; or, in hexadecimal form, &lt;code&gt;0x5&lt;/code&gt; then the ANF of this function is simply &lt;code&gt;x0 + x1&lt;/code&gt;, where &lt;code&gt;x0&lt;/code&gt; is the first variable of the function, and &lt;code&gt;x1&lt;/code&gt; is the second.&lt;/p&gt;</description>
    </item>
    <item>
      <title>CryptoMiniSat 2.6.0 released</title>
      <link>https://www.msoos.org/2010/08/cryptominisat-2-6-0-released/</link>
      <pubDate>Mon, 30 Aug 2010 12:30:10 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/wordpress/?p=288</guid> 
      <description>&lt;p&gt;Version 2.6.0 of the CryptoMiniSat SAT solver has been &lt;a href=&#34;https://gforge.inria.fr/frs/?group_id=1992&amp;amp;release_id=5352&#34;&gt;released&lt;/a&gt;. The new release incorporates a number of important additions and discoveries. Additions include a better memory manager and &lt;a href=&#34;https://www.msoos.org/wordpress/?p=7&#34;&gt;better watchlists&lt;/a&gt;, while the discoveries include an interesting use of &lt;a href=&#34;https://www.msoos.org/wordpress/?p=6&#34;&gt;asymmetric branching&lt;/a&gt; and an &lt;a href=&#34;https://www.msoos.org/wordpress/?p=169&#34;&gt;on-the-fly self-subsuming resolution&lt;/a&gt; algorithm.&lt;/p&gt;
&lt;p&gt;The new solver can now solve 221 problems from the &lt;a href=&#34;http://www.cril.univ-artois.fr/SAT09/results/ranking.php?idev=29&#34;&gt;SAT Competition&lt;/a&gt; of 2009 within the same timing&amp;amp;CPU constraints, while the 2.5.0 (i.e. &lt;a href=&#34;http://baldur.iti.uka.de/sat-race-2010/results.html&#34;&gt;SAT Race&lt;/a&gt;) version could only solve 217. Here is a comparison plot:&lt;/p&gt;</description>
    </item>
    <item>
      <title>On-the-fly self-subsuming resolution</title>
      <link>https://www.msoos.org/2010/08/on-the-fly-self-subsuming-resolution/</link>
      <pubDate>Sun, 15 Aug 2010 22:44:16 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/wordpress/?p=169</guid> 
      <description>&lt;p&gt;I have recently been trying a new method of shortening learnt clauses. There is a learnt clause minimisation &lt;a href=&#34;http://dx.doi.org/10.1007/978-3-642-02777-2_23&#34;&gt;paper&lt;/a&gt; by Sörensson and Biere, and I have recently been trying to do more. The trick I use, is that many literals can be removed from learnt clauses, if self-subsuming resolution (see my &lt;a href=&#34;https://www.msoos.org/wordpress/?p=5&#34;&gt;older post&lt;/a&gt;) is applied to them.&lt;/p&gt;
&lt;p&gt;During self-subsuming resolution, under normal circumstances, the clauses used to remove literals with are the short clauses: binary and tertiary clauses. The trick I have discovered, is that since CryptoMiniSat keeps binary and tertiary clauses natively inside the watchlists (see my &lt;a href=&#34;https://www.msoos.org/wordpress/?p=7&#34;&gt;previous post&lt;/a&gt;), so doing self-subsuming resolution can be done extremely fast. We simply need to put the literals of the newly learnt clause into a fast-addressable memory, then go through the watchlists of every literal in the clause, and remove the literals that match.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Self-subsuming resolution</title>
      <link>https://www.msoos.org/2010/08/self-subsuming-resolution/</link>
      <pubDate>Wed, 04 Aug 2010 20:26:00 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/wordpress/?p=5</guid> 
      <description>&lt;p&gt;&lt;a href=&#34;http://minisat.se/downloads/SatELite_slides.pdf&#34;&gt;Self-subsuming resolution&lt;/a&gt; in SAT uses the &lt;a href=&#34;http://en.wikipedia.org/wiki/Resolution_%28logic%29&#34;&gt;resolution operator&lt;/a&gt; to carry out its magic. Resolution can be used on two clauses if they share a variable, but the sign of the variable is inverted, e.g.&lt;br&gt;
&lt;code&gt;v1 V v2&lt;/code&gt;&lt;br&gt;
&lt;code&gt;-v1 V v3 V v4&lt;/code&gt;&lt;br&gt;
(where &lt;code&gt;v1..v4&lt;/code&gt; are binary variables and &amp;quot; &lt;code&gt;V&lt;/code&gt;&amp;quot; means binary OR) can be resolved on &lt;code&gt;v1&lt;/code&gt;, producing the clause:&lt;br&gt;
&lt;code&gt;v2 V v3 V v4&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;In SAT this is used to simplify problems as follows. Let&amp;rsquo;s assume we have many clauses, among which there are these three:&lt;br&gt;
&lt;code&gt;a V c           (1)&lt;/code&gt;&lt;br&gt;
&lt;code&gt;a V -c V d V f  (2)&lt;/code&gt;&lt;br&gt;
&lt;code&gt;a V -c V g      (3)&lt;/code&gt;&lt;br&gt;
In this case, if we use the resolution operator on (1) and (2), we get:&lt;br&gt;
&lt;code&gt;a V d V f       (4)&lt;/code&gt;&lt;br&gt;
The interesting thing about (4) is that it is a strict subset of (2). In other words, we could simply replace (2) with (4), thus shortening clause (2). If we use the resolution operator on (1) and (3) we get:&lt;br&gt;
&lt;code&gt;a V g           (5)&lt;/code&gt;&lt;br&gt;
whose literals form a strict subset of those of (3), so we can replace (3) with (5), again shortening a clause. We shortened 2 clauses, each with one literal. For completeness, this technique can be applied in a recursive manner on all possible clause-pairs.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Asymmetric branching</title>
      <link>https://www.msoos.org/2010/07/asymmetric-branching/</link>
      <pubDate>Wed, 28 Jul 2010 11:38:00 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/wordpress/?p=6</guid> 
      <description>&lt;p&gt;Asymmetric branching is an algorithm that shortens CNF clauses in SAT Solvers. A clause, for instance &lt;code&gt;v1 V v2 V v3 V v4&lt;/code&gt; (where letters are binary variables and &lt;code&gt;V&lt;/code&gt; represents binary OR) could possibly be shortened to &lt;code&gt;v1 V v2 V v3&lt;/code&gt;. To find out if it can be, all we have to do is to put &lt;code&gt;-v1,-v2&lt;/code&gt; and &lt;code&gt;-v3&lt;/code&gt; into the propagation queue and then propagate. If we receive a conflict from the propagation engine, we can learn the clause &lt;code&gt;v1 V v2 V v3&lt;/code&gt;, which (incidentally, though this was the point), subsumes the original clause, so we can simply remove variable &lt;code&gt;v4&lt;/code&gt; from the original clause.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Propagating faster</title>
      <link>https://www.msoos.org/2010/07/propagating-faster/</link>
      <pubDate>Mon, 26 Jul 2010 16:13:00 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/wordpress/?p=7</guid> 
      <description>&lt;p&gt;Propagation (BCP) in SAT is the single most expensive operation. The algorithm essentially does the following:&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-fallback&#34; data-lang=&#34;fallback&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;while (queue_head &amp;lt; trail.size()) {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  Literal p = trail[queue_head];
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  vector&amp;lt;Watch&amp;gt;&amp;amp; thiswatch = watches[p];
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  for (i = thiswatch.begin(); i!=thiswatch[p].end(); i++) {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    confl = prop_confl(i-&amp;gt;clause);
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    if (confl != NULL) return confl;
&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;  queue_head++;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;}
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;where the function &lt;code&gt;prop_confl()&lt;/code&gt; executes the propagation or returns a conflict, if necessary.&lt;/p&gt;
&lt;p&gt;The problem with the above function is that clauses come in all shapes and sizes. In &lt;a href=&#34;http://planete.inrialpes.fr/%7Esoos/CryptoMiniSat2/index.php&#34;&gt;CryptoMiniSat&lt;/a&gt;, there are two kinds of clauses, normal clauses and XOR clauses. Naturally, these need to be handled differently. Furthermore, if the clause&amp;rsquo;s size is small, it is more efficient to handle it differently. The way CryptoMiniSat has done this before was to have a separate &amp;quot; &lt;code&gt;watches&lt;/code&gt;&amp;quot; for each of these. As you can guess, this is very suboptimal.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Stats on CryptoMiniSat’s development</title>
      <link>https://www.msoos.org/2010/07/stats-on-cryptominisats-development/</link>
      <pubDate>Thu, 22 Jul 2010 15:10:00 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/wordpress/?p=8</guid> 
      <description>&lt;p&gt;I have just discovered the &lt;a href=&#34;http://gitstats.sourceforge.net/&#34;&gt;gitstats&lt;/a&gt; tool, and quickly put together a set of statistics on the development of CryptoMiniSat, the SAT solver I have been working on lately. I have been using the GIT repository for most of my work on CryptoMiniSat, doing ~2000 commits since its inception, so it gives a good picture of how things evolved, and how I usually work. Firstly, the hours I usually work:&lt;/p&gt;
&lt;p&gt;&lt;a href=&#34;https://www.msoos.org/wordpress/wp-content/uploads/2010/08/hour_of_day.png&#34;&gt;&lt;img loading=&#34;lazy&#34; src=&#34;https://www.msoos.org/wordpress/wp-content/uploads/2010/08/hour_of_day.png&#34;&gt;&lt;/a&gt;&lt;/p&gt;</description>
    </item>
    <item>
      <title>Winning the SAT Race</title>
      <link>https://www.msoos.org/2010/07/winning-the-sat-race/</link>
      <pubDate>Sat, 17 Jul 2010 18:12:00 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/wordpress/?p=9</guid> 
      <description>&lt;p&gt;The software I developed, &lt;a href=&#34;https://gforge.inria.fr/frs/?group_id=1992&amp;amp;release_id=5231&#34;&gt;CryptoMiniSat 2.5&lt;/a&gt; won the &lt;a href=&#34;http://baldur.iti.uka.de/sat-race-2010/&#34;&gt;SAT Race of 2010&lt;/a&gt;. It is a great honour to win such a difficult race, as there were 19 other solvers submitted from 9 different countries.&lt;/p&gt;
&lt;p&gt;Thinking back and trying to answer the question why CryptoMiniSat won, I think there are no clear answers. Naturally, I put immense effort into it, but that is only one part of the picture. Other important factors include those who supported me: my fiancée, the &lt;a href=&#34;http://planete.inria.fr/&#34;&gt;PLANETE project&lt;/a&gt; of INRIA, and in particular &lt;a href=&#34;http://planete.inrialpes.fr/%7Eccastel/&#34;&gt;Claude Castelluccia&lt;/a&gt; and my colleagues here in Paris, the &lt;a href=&#34;http://www.lip6.fr/?LANG=en&#34;&gt;LIP6&lt;/a&gt; team and my professor here, &lt;a href=&#34;http://www-salsa.lip6.fr/%7Ejcf/&#34;&gt;Jean-Charles Faugere&lt;/a&gt;. As with all randomised algorithms, luck played a good part of winning, too.&lt;/p&gt;</description>
    </item>
    <item>
      <title>The 2010 SAT Conference</title>
      <link>https://www.msoos.org/2010/07/the-2010-sat-conference/</link>
      <pubDate>Mon, 12 Jul 2010 19:04:00 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/wordpress/?p=10</guid> 
      <description>&lt;p&gt;I am currently at the &lt;a href=&#34;http://ie.technion.ac.il/SAT10/&#34;&gt;SAT 2010 conference&lt;/a&gt;, in Edinburgh. It is my second SAT conference, but the first one where I finally have a chance to know who is who. I had a chance to talk to some great researchers. For instance, I talked to (in no particular order) Armin Biere (author of PrecoSat and Lingeling), Niklas Een, Niklas Sörensson (authors of MiniSat &amp;ndash; &lt;a href=&#34;http://minisat.se/downloads/minisat-2.2.0.tar.gz&#34;&gt;new version&lt;/a&gt; is out, btw), Marijn Heule (author of the march_* set of solvers), Matti Järvisalo (one of the authors of Blocked Clause Elimination), the author of MiraXT, and many others. It&amp;rsquo;s really a great place to meet up people and get a grasp on what SAT is really about. It&amp;rsquo;s also a great way to understand the motivation behind certain ideas, and to hear the problems encountered by others.&lt;/p&gt;</description>
    </item>
    <item>
      <title>ANF to CNF conversion</title>
      <link>https://www.msoos.org/2010/07/anf-to-cnf-conversion/</link>
      <pubDate>Tue, 06 Jul 2010 10:25:00 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/wordpress/?p=11</guid> 
      <description>&lt;p&gt;Algebraic Normal Form, or simply &lt;a href=&#34;http://en.wikipedia.org/wiki/Algebraic_normal_form&#34;&gt;ANF&lt;/a&gt;, is the form used to describe cryptographic functions. It looks like this:&lt;/p&gt;
&lt;span class=&#34;katex-display&#34;&gt;&lt;span class=&#34;katex&#34;&gt;&lt;span class=&#34;katex-mathml&#34;&gt;&lt;math xmlns=&#34;http://www.w3.org/1998/Math/MathML&#34; display=&#34;block&#34;&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mi&gt;a&lt;/mi&gt;&lt;mo&gt;∗&lt;/mo&gt;&lt;mi&gt;b&lt;/mi&gt;&lt;mo&gt;⊕&lt;/mo&gt;&lt;mi&gt;b&lt;/mi&gt;&lt;mo&gt;∗&lt;/mo&gt;&lt;mi&gt;c&lt;/mi&gt;&lt;mo&gt;⊕&lt;/mo&gt;&lt;mi&gt;b&lt;/mi&gt;&lt;mo&gt;⊕&lt;/mo&gt;&lt;mi&gt;d&lt;/mi&gt;&lt;mo&gt;=&lt;/mo&gt;&lt;mn&gt;0&lt;/mn&gt;&lt;mspace&gt;&lt;/mspace&gt;&lt;mi&gt;b&lt;/mi&gt;&lt;mo&gt;∗&lt;/mo&gt;&lt;mi&gt;c&lt;/mi&gt;&lt;mo&gt;⊕&lt;/mo&gt;&lt;mi&gt;c&lt;/mi&gt;&lt;mo&gt;⊕&lt;/mo&gt;&lt;mi&gt;a&lt;/mi&gt;&lt;mo&gt;=&lt;/mo&gt;&lt;mn&gt;0&lt;/mn&gt;&lt;mspace&gt;&lt;/mspace&gt;&lt;mo&gt;…&lt;/mo&gt;&lt;/mrow&gt;&lt;annotation encoding=&#34;application/x-tex&#34;&gt;
a*b \oplus b*c \oplus b \oplus d = 0\\
b*c \oplus c \oplus a = 0\\
\ldots
&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;&lt;/span&gt;&lt;span class=&#34;katex-html&#34; aria-hidden=&#34;true&#34;&gt;&lt;span class=&#34;katex-base&#34;&gt;&lt;span class=&#34;katex-strut&#34; style=&#34;height:0.4653em;&#34;&gt;&lt;/span&gt;&lt;span class=&#34;mord mathnormal&#34;&gt;a&lt;/span&gt;&lt;span class=&#34;mspace&#34; style=&#34;margin-right:0.2222em;&#34;&gt;&lt;/span&gt;&lt;span class=&#34;mbin&#34;&gt;∗&lt;/span&gt;&lt;span class=&#34;mspace&#34; style=&#34;margin-right:0.2222em;&#34;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;katex-base&#34;&gt;&lt;span class=&#34;katex-strut&#34; style=&#34;height:0.7778em;vertical-align:-0.0833em;&#34;&gt;&lt;/span&gt;&lt;span class=&#34;mord mathnormal&#34;&gt;b&lt;/span&gt;&lt;span class=&#34;mspace&#34; style=&#34;margin-right:0.2222em;&#34;&gt;&lt;/span&gt;&lt;span class=&#34;mbin&#34;&gt;⊕&lt;/span&gt;&lt;span class=&#34;mspace&#34; style=&#34;margin-right:0.2222em;&#34;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;katex-base&#34;&gt;&lt;span class=&#34;katex-strut&#34; style=&#34;height:0.6944em;&#34;&gt;&lt;/span&gt;&lt;span class=&#34;mord mathnormal&#34;&gt;b&lt;/span&gt;&lt;span class=&#34;mspace&#34; style=&#34;margin-right:0.2222em;&#34;&gt;&lt;/span&gt;&lt;span class=&#34;mbin&#34;&gt;∗&lt;/span&gt;&lt;span class=&#34;mspace&#34; style=&#34;margin-right:0.2222em;&#34;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;katex-base&#34;&gt;&lt;span class=&#34;katex-strut&#34; style=&#34;height:0.6667em;vertical-align:-0.0833em;&#34;&gt;&lt;/span&gt;&lt;span class=&#34;mord mathnormal&#34;&gt;c&lt;/span&gt;&lt;span class=&#34;mspace&#34; style=&#34;margin-right:0.2222em;&#34;&gt;&lt;/span&gt;&lt;span class=&#34;mbin&#34;&gt;⊕&lt;/span&gt;&lt;span class=&#34;mspace&#34; style=&#34;margin-right:0.2222em;&#34;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;katex-base&#34;&gt;&lt;span class=&#34;katex-strut&#34; style=&#34;height:0.7778em;vertical-align:-0.0833em;&#34;&gt;&lt;/span&gt;&lt;span class=&#34;mord mathnormal&#34;&gt;b&lt;/span&gt;&lt;span class=&#34;mspace&#34; style=&#34;margin-right:0.2222em;&#34;&gt;&lt;/span&gt;&lt;span class=&#34;mbin&#34;&gt;⊕&lt;/span&gt;&lt;span class=&#34;mspace&#34; style=&#34;margin-right:0.2222em;&#34;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;katex-base&#34;&gt;&lt;span class=&#34;katex-strut&#34; style=&#34;height:0.6944em;&#34;&gt;&lt;/span&gt;&lt;span class=&#34;mord mathnormal&#34;&gt;d&lt;/span&gt;&lt;span class=&#34;mspace&#34; style=&#34;margin-right:0.2778em;&#34;&gt;&lt;/span&gt;&lt;span class=&#34;mrel&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;mspace&#34; style=&#34;margin-right:0.2778em;&#34;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;katex-base&#34;&gt;&lt;span class=&#34;katex-strut&#34; style=&#34;height:0.6944em;&#34;&gt;&lt;/span&gt;&lt;span class=&#34;mord&#34;&gt;0&lt;/span&gt;&lt;span class=&#34;mspace&#34;&gt;&lt;/span&gt;&lt;span class=&#34;mord mathnormal&#34;&gt;b&lt;/span&gt;&lt;span class=&#34;mspace&#34; style=&#34;margin-right:0.2222em;&#34;&gt;&lt;/span&gt;&lt;span class=&#34;mbin&#34;&gt;∗&lt;/span&gt;&lt;span class=&#34;mspace&#34; style=&#34;margin-right:0.2222em;&#34;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;katex-base&#34;&gt;&lt;span class=&#34;katex-strut&#34; style=&#34;height:0.6667em;vertical-align:-0.0833em;&#34;&gt;&lt;/span&gt;&lt;span class=&#34;mord mathnormal&#34;&gt;c&lt;/span&gt;&lt;span class=&#34;mspace&#34; style=&#34;margin-right:0.2222em;&#34;&gt;&lt;/span&gt;&lt;span class=&#34;mbin&#34;&gt;⊕&lt;/span&gt;&lt;span class=&#34;mspace&#34; style=&#34;margin-right:0.2222em;&#34;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;katex-base&#34;&gt;&lt;span class=&#34;katex-strut&#34; style=&#34;height:0.6667em;vertical-align:-0.0833em;&#34;&gt;&lt;/span&gt;&lt;span class=&#34;mord mathnormal&#34;&gt;c&lt;/span&gt;&lt;span class=&#34;mspace&#34; style=&#34;margin-right:0.2222em;&#34;&gt;&lt;/span&gt;&lt;span class=&#34;mbin&#34;&gt;⊕&lt;/span&gt;&lt;span class=&#34;mspace&#34; style=&#34;margin-right:0.2222em;&#34;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;katex-base&#34;&gt;&lt;span class=&#34;katex-strut&#34; style=&#34;height:0.4306em;&#34;&gt;&lt;/span&gt;&lt;span class=&#34;mord mathnormal&#34;&gt;a&lt;/span&gt;&lt;span class=&#34;mspace&#34; style=&#34;margin-right:0.2778em;&#34;&gt;&lt;/span&gt;&lt;span class=&#34;mrel&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;mspace&#34; style=&#34;margin-right:0.2778em;&#34;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;katex-base&#34;&gt;&lt;span class=&#34;katex-strut&#34; style=&#34;height:0.6444em;&#34;&gt;&lt;/span&gt;&lt;span class=&#34;mord&#34;&gt;0&lt;/span&gt;&lt;span class=&#34;mspace&#34;&gt;&lt;/span&gt;&lt;span class=&#34;mspace&#34; style=&#34;margin-right:0.1667em;&#34;&gt;&lt;/span&gt;&lt;span class=&#34;minner&#34;&gt;…&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;p&gt;Where &lt;span class=&#34;katex&#34;&gt;&lt;span class=&#34;katex-mathml&#34;&gt;&lt;math xmlns=&#34;http://www.w3.org/1998/Math/MathML&#34;&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mi&gt;a&lt;/mi&gt;&lt;mo separator=&#34;true&#34;&gt;,&lt;/mo&gt;&lt;mo&gt;…&lt;/mo&gt;&lt;mi&gt;d&lt;/mi&gt;&lt;/mrow&gt;&lt;annotation encoding=&#34;application/x-tex&#34;&gt;a,\ldots d&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;&lt;/span&gt;&lt;span class=&#34;katex-html&#34; aria-hidden=&#34;true&#34;&gt;&lt;span class=&#34;katex-base&#34;&gt;&lt;span class=&#34;katex-strut&#34; style=&#34;height:0.8889em;vertical-align:-0.1944em;&#34;&gt;&lt;/span&gt;&lt;span class=&#34;mord mathnormal&#34;&gt;a&lt;/span&gt;&lt;span class=&#34;mpunct&#34;&gt;,&lt;/span&gt;&lt;span class=&#34;mspace&#34; style=&#34;margin-right:0.1667em;&#34;&gt;&lt;/span&gt;&lt;span class=&#34;minner&#34;&gt;…&lt;/span&gt;&lt;span class=&#34;mspace&#34; style=&#34;margin-right:0.1667em;&#34;&gt;&lt;/span&gt;&lt;span class=&#34;mord mathnormal&#34;&gt;d&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; are binary variables, the &lt;span class=&#34;katex&#34;&gt;&lt;span class=&#34;katex-mathml&#34;&gt;&lt;math xmlns=&#34;http://www.w3.org/1998/Math/MathML&#34;&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mo&gt;⊕&lt;/mo&gt;&lt;/mrow&gt;&lt;annotation encoding=&#34;application/x-tex&#34;&gt;\oplus&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;&lt;/span&gt;&lt;span class=&#34;katex-html&#34; aria-hidden=&#34;true&#34;&gt;&lt;span class=&#34;katex-base&#34;&gt;&lt;span class=&#34;katex-strut&#34; style=&#34;height:0.6667em;vertical-align:-0.0833em;&#34;&gt;&lt;/span&gt;&lt;span class=&#34;mord&#34;&gt;⊕&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; sign is binary XOR, and the &lt;span class=&#34;katex&#34;&gt;&lt;span class=&#34;katex-mathml&#34;&gt;&lt;math xmlns=&#34;http://www.w3.org/1998/Math/MathML&#34;&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mo&gt;∗&lt;/mo&gt;&lt;/mrow&gt;&lt;annotation encoding=&#34;application/x-tex&#34;&gt;*&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;&lt;/span&gt;&lt;span class=&#34;katex-html&#34; aria-hidden=&#34;true&#34;&gt;&lt;span class=&#34;katex-base&#34;&gt;&lt;span class=&#34;katex-strut&#34; style=&#34;height:0.4653em;&#34;&gt;&lt;/span&gt;&lt;span class=&#34;mord&#34;&gt;∗&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; sign is binary AND. Every item that is connected with the XOR-s is called a &lt;a href=&#34;http://en.wikipedia.org/wiki/Monomial&#34;&gt;monomial&lt;/a&gt;, and its degree is the number of independent variables inside it. So, &lt;span class=&#34;katex&#34;&gt;&lt;span class=&#34;katex-mathml&#34;&gt;&lt;math xmlns=&#34;http://www.w3.org/1998/Math/MathML&#34;&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mi&gt;a&lt;/mi&gt;&lt;mo&gt;∗&lt;/mo&gt;&lt;mi&gt;b&lt;/mi&gt;&lt;/mrow&gt;&lt;annotation encoding=&#34;application/x-tex&#34;&gt;a*b&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;&lt;/span&gt;&lt;span class=&#34;katex-html&#34; aria-hidden=&#34;true&#34;&gt;&lt;span class=&#34;katex-base&#34;&gt;&lt;span class=&#34;katex-strut&#34; style=&#34;height:0.4653em;&#34;&gt;&lt;/span&gt;&lt;span class=&#34;mord mathnormal&#34;&gt;a&lt;/span&gt;&lt;span class=&#34;mspace&#34; style=&#34;margin-right:0.2222em;&#34;&gt;&lt;/span&gt;&lt;span class=&#34;mbin&#34;&gt;∗&lt;/span&gt;&lt;span class=&#34;mspace&#34; style=&#34;margin-right:0.2222em;&#34;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;katex-base&#34;&gt;&lt;span class=&#34;katex-strut&#34; style=&#34;height:0.6944em;&#34;&gt;&lt;/span&gt;&lt;span class=&#34;mord mathnormal&#34;&gt;b&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; is a 2-degree monomial in the first equation, and &lt;span class=&#34;katex&#34;&gt;&lt;span class=&#34;katex-mathml&#34;&gt;&lt;math xmlns=&#34;http://www.w3.org/1998/Math/MathML&#34;&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mi&gt;c&lt;/mi&gt;&lt;/mrow&gt;&lt;annotation encoding=&#34;application/x-tex&#34;&gt;c&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;&lt;/span&gt;&lt;span class=&#34;katex-html&#34; aria-hidden=&#34;true&#34;&gt;&lt;span class=&#34;katex-base&#34;&gt;&lt;span class=&#34;katex-strut&#34; style=&#34;height:0.4306em;&#34;&gt;&lt;/span&gt;&lt;span class=&#34;mord mathnormal&#34;&gt;c&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; is a 1-degree monomial in the second equation.&lt;/p&gt;</description>
    </item>
    <item>
      <title>How to bit-stuff pointers</title>
      <link>https://www.msoos.org/2010/06/how-to-bit-stuff-pointers/</link>
      <pubDate>Wed, 30 Jun 2010 07:22:00 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/wordpress/?p=12</guid> 
      <description>&lt;p&gt;In my &lt;a href=&#34;?p=13&#34;&gt;last post&lt;/a&gt; I have described a small problem I had regarding a C++ union that had to store a pointer and a value at the same time, plus an indicator that told us which of the two was active:&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-fallback&#34; data-lang=&#34;fallback&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;class WhatLeadHere {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;public:
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    bool wasPointer;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    union{Clause* pointer; uint32_t lit;};
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;};
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Martin Maurer has wrote this enlightening email regarding this:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;The Clause * pointer is [..] located at least on a 4 byte boundary (at least when not forced by e.g. #pragma). If it is not at least on a 4 byte boundary, CPU must (at least some of them) do two accesses: one lower DWORD, one upper DWORD, and merge both together, which reduces speed.&lt;/p&gt;
&lt;p&gt;So the lower two bits are always zero :-) Why not move the &amp;ldquo;wasPointer&amp;rdquo; to lower two bits (i think you need only one, have one spare bit). Of course before accessing the &amp;ldquo;pointer&amp;rdquo; (Clause *), you must &amp;ldquo;and&amp;rdquo; the two lower bits back to zero.&lt;/p&gt;
&lt;/blockquote&gt;</description>
    </item>
    <item>
      <title>Propagating binary clauses</title>
      <link>https://www.msoos.org/2010/06/propagating-binary-clauses/</link>
      <pubDate>Sun, 27 Jun 2010 17:48:00 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/wordpress/?p=13</guid> 
      <description>&lt;p&gt;Binary clauses are somewhat special. They are clauses that look like:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;-v1 or v20 = true&lt;/code&gt;&lt;br&gt;
&lt;code&gt;-v1 or v21 = true&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;which basically mean: if &lt;code&gt;v1&lt;/code&gt; is TRUE, then both &lt;code&gt;v20&lt;/code&gt; and &lt;code&gt;v21&lt;/code&gt; must be TRUE. We put these clauses into a special datastructure, that looks like this:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;watchlist[-v1] = v20,v21, ...&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;This makes us all very happy, since this datastructure is very simple: just literals (negated or non-negated variables) one after the other, in a very trivial list. This makes the whole thing very compact, and very efficient.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Optimisations, take two</title>
      <link>https://www.msoos.org/2010/06/optimisations-take-two/</link>
      <pubDate>Sat, 12 Jun 2010 19:50:00 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/wordpress/?p=14</guid> 
      <description>&lt;p&gt;I have talked about &lt;a href=&#34;http://msoos.blogspot.com/2010/04/optimisations.html&#34;&gt;optimisations&lt;/a&gt; before and I mentioned that there are a few left to describe. In this post I will talk about two of them.&lt;/p&gt;
&lt;p&gt;The first optimisation I would like to talk about concerns compilation flags. Somehow, everyone seems obsessed with them, like if they could somehow make a slow program fast. Alas, this is not the case. Firstly, and this is quite funny: the &lt;a href=&#34;http://gcc.gnu.org/&#34;&gt;gcc&lt;/a&gt; flag &amp;ldquo;&lt;a href=&#34;http://gcc.gnu.org/onlinedocs/gcc/Optimize-Options.html&#34;&gt;-O3&lt;/a&gt;&amp;rdquo; usually turns on all extra flags that people tend to give. One should really ponder upon this when looking at desperate attempts to speed up code. However, there is exactly one flag-combo that is very-very useful besides &amp;ldquo;-O3&amp;rdquo;: it&amp;rsquo;s &amp;ldquo;-fprofile-generate&amp;rdquo; and &amp;ldquo;-fprofile-use&amp;rdquo;. To understand why these are useful, we must first understand that one of the challenges faced by an optimising compiler is to try to guess how many times a loop will be executed,and how many times a branch will be taken. Given a good set of guesses, the loop can be unwound (or not) and the branches can be taken by default (or not). If compiled with &amp;ldquo;-fprofile-generate&amp;rdquo;, the program generates such information on-the-fly, which later can be used by &amp;ldquo;-fprofile-use&amp;rdquo;. The speedup achieved with such an approach in the realms of DPLL-based SAT solvers is relatively high, in the order of ~5-10%. I believe many SAT solvers&amp;rsquo; binaries don&amp;rsquo;t use this trick, even though it&amp;rsquo;s cheap to use. I personally compile with &amp;ldquo;-fprofile-generate&amp;rdquo;, then run an example problem like &lt;a href=&#34;http://www.cril.univ-artois.fr/SAT09/results/bench.php?idev=29&amp;amp;idbench=71050&#34;&gt;UTI-20-10p1&lt;/a&gt; on it, and then recompile with &amp;ldquo;-fprofile-use&amp;rdquo;. An important aspect, by the way, is to execute your problem with a very typical scenario: strange or non-normal scenarios will produce spurious branching and loop data which will actually slow down the program most of the time instead of speeding it up.&lt;/p&gt;</description>
    </item>
    <item>
      <title>The Obvious Child</title>
      <link>https://www.msoos.org/2010/06/the-obvious-child/</link>
      <pubDate>Tue, 08 Jun 2010 14:39:00 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/wordpress/?p=15</guid> 
      <description>&lt;p&gt;The new CryptoMiniSat 2.5.1, codenamed &amp;ldquo;The Obvious Child&amp;rdquo; has been &lt;a href=&#34;https://gforge.inria.fr/frs/shownotes.php?release_id=5231&#34;&gt;released&lt;/a&gt;. It&amp;rsquo;s very close to the system that has been sent into the &lt;a href=&#34;http://baldur.iti.uka.de/sat-race-2010/&#34;&gt;SAT Race&#39;10&lt;/a&gt;. This version of CryptoMS is much better than any versions before: I finally corrected a lot of bugs that went into the 2.4.x series, and added new features to treat binary clauses.&lt;/p&gt;
&lt;p&gt;The release name is the &lt;a href=&#34;http://www.paulsimon.com/node/112&#34;&gt;song title&lt;/a&gt; by Paul Simon. I am a fan of the 60&amp;rsquo;s for many reasons. It was the time when &lt;a href=&#34;http://en.wikipedia.org/wiki/R._D._Laing&#34;&gt;Laing&lt;/a&gt; wrote his first books, &lt;a href=&#34;http://www.sciencedirect.com/science?_ob=ArticleURL&amp;amp;_udi=B8H4J-4NRKWK7-2&amp;amp;_user=10&amp;amp;_coverDate=04%2F30%2F1959&amp;amp;_rdoc=2&amp;amp;_fmt=high&amp;amp;_orig=browse&amp;amp;_srch=doc-info%28%23toc%2342608%231959%23999479997%23654711%23FLP%23display%23Volume%29&amp;amp;_cdi=42608&amp;amp;_sort=d&amp;amp;_docanchor=&amp;amp;_ct=29&amp;amp;_acct=C000050221&amp;amp;_version=1&amp;amp;_urlVersion=0&amp;amp;_userid=10&amp;amp;md5=5fe3e6800c80474f03f7e79ea5f84ee9&#34;&gt;empathy&lt;/a&gt; was first scientifically demonstrated for animals, the days of &lt;a href=&#34;http://en.wikipedia.org/wiki/I_Have_a_Dream&#34;&gt;I have a dream&lt;/a&gt;, the &lt;a href=&#34;http://en.wikipedia.org/wiki/Apollo_11&#34;&gt;landing&lt;/a&gt; on the moon, and the take-off of Simon&amp;amp;Garfunkel.; Some interesting times, shall we say.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Why programs fail</title>
      <link>https://www.msoos.org/2010/05/why-programs-fail/</link>
      <pubDate>Sat, 29 May 2010 18:18:00 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/wordpress/?p=16</guid> 
      <description>&lt;p&gt;I just bought the &lt;a href=&#34;http://www.whyprogramsfail.com/&#34;&gt;book&lt;/a&gt; with the title of the blogpost by Andreas Zeller. Essentially, it&amp;rsquo;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.&lt;/p&gt;
&lt;p&gt;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.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Being dumb is part of the deal</title>
      <link>https://www.msoos.org/2010/05/being-dumb-is-part-of-the-deal/</link>
      <pubDate>Wed, 26 May 2010 18:36:00 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/wordpress/?p=17</guid> 
      <description>&lt;p&gt;In my &lt;a href=&#34;?p=18&#34;&gt;last post&lt;/a&gt;, I presented a fast and easy way to add binary clauses to the clause database of &lt;a href=&#34;http://en.wikipedia.org/wiki/Boolean_satisfiability_problem&#34;&gt;SAT solvers&lt;/a&gt;, and I conjectured that since the algorithm was so simple, there must be something wrong with it. I was, in fact, right. I ran a cluster &lt;a href=&#34;https://www.grid5000.fr/mediawiki/index.php/Special:G5KExperiments?menu=renderexperiment&amp;amp;id=643&#34;&gt;experiment&lt;/a&gt;, and it turned out that adding all those binary clauses was slowing down the solving.&lt;/p&gt;
&lt;p&gt;My first reaction was of course: how on Earth? Binary clauses are &amp;ldquo;good&amp;rdquo;: both &lt;a href=&#34;http://minisat.se/&#34;&gt;MiniSat&lt;/a&gt; and &lt;a href=&#34;http://www.cril.univ-artois.fr/%7Eaudemard/&#34;&gt;Glucose&lt;/a&gt; try to amass these clauses as much as possible. So what can possibly be wrong? Well, redundant information, for a start. Let&amp;rsquo;s assume that we know that&lt;/p&gt;</description>
    </item>
    <item>
      <title>I must be dumb</title>
      <link>https://www.msoos.org/2010/05/i-must-be-dumb/</link>
      <pubDate>Sun, 23 May 2010 17:44:00 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/wordpress/?p=18</guid> 
      <description>&lt;p&gt;Apparently, hyper-binary resolution is &lt;a href=&#34;http://fmv.jku.at/biere/talks/Biere-Dagstuhl09-talk.pdf&#34;&gt;not easy&lt;/a&gt;. However, I have been reading the &lt;a href=&#34;http://www.cs.technion.ac.il/%7Egershman/papers/sat05_full.pdf&#34;&gt;paper&lt;/a&gt; by Gershman and Strichman, and they make it sound like it&amp;rsquo;s the easiest thing of all &amp;ndash; especially if you don&amp;rsquo;t do it the way they are doing it, of course.&lt;/p&gt;
&lt;p&gt;Hyper-binary resolution is essentially very easy. Let&amp;rsquo;s say you have three clauses:&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-fallback&#34; data-lang=&#34;fallback&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;-a V b
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;-a V c
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;d V -b V -c
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;(where &lt;code&gt;V&lt;/code&gt; is the binary OR, &lt;code&gt;-&lt;/code&gt; is the binary negation, and each line must be satisfied)&lt;/p&gt;</description>
    </item>
    <item>
      <title>On failed literal probing</title>
      <link>https://www.msoos.org/2010/05/on-failed-literal-probing/</link>
      <pubDate>Mon, 17 May 2010 23:11:00 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/wordpress/?p=19</guid> 
      <description>&lt;p&gt;Apparently, there have been &lt;a href=&#34;http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.24.6395&amp;amp;rep=rep1&amp;amp;type=pdf&#34;&gt;quite&lt;/a&gt; &lt;a href=&#34;http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.25.1063&#34;&gt;some&lt;/a&gt; &lt;a href=&#34;http://www.eecs.umich.edu/%7Evaleria/research/publications/IWLS06SAT.pdf&#34;&gt;work&lt;/a&gt; done on failed literal probing, although I don&amp;rsquo;t think they have all been put into a common package yet.&lt;/p&gt;
&lt;p&gt;The idea is quite simple in its purest form: try to set variable &lt;code&gt;v1&lt;/code&gt; to &lt;code&gt;true&lt;/code&gt; and see if that fails. If it does, variable &lt;code&gt;v1&lt;/code&gt; must be &lt;code&gt;false&lt;/code&gt;. If it doesn&amp;rsquo;t fail, try the other way around: set it to &lt;code&gt;false&lt;/code&gt; and if that fails, it must be &lt;code&gt;true&lt;/code&gt;.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Gaussian elimination is released</title>
      <link>https://www.msoos.org/2010/05/gaussian-elimination-is-released/</link>
      <pubDate>Sun, 09 May 2010 20:33:00 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/wordpress/?p=20</guid> 
      <description>&lt;p&gt;The &lt;a href=&#34;https://gforge.inria.fr/frs/?group_id=1992&#34;&gt;new CryptoMiniSat&lt;/a&gt;, version 2.4.2 now has on-the-fly &lt;a href=&#34;http://en.wikipedia.org/wiki/Gaussian_elimination&#34;&gt;Gaussian elimination&lt;/a&gt; compiled in by default. You can simply use it by issuing e.g.&lt;/p&gt;
&lt;p&gt;&lt;code&gt;./cryptominisat --gaussuntil=100 trivium-cipher.cnf&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;and enjoy outputs such as:&lt;br&gt;
&lt;code&gt;c gauss unit truths     : 0 c gauss called          : 31323 c gauss conflicts       : 5893        (18.81      %) c gauss propagations    : 7823        (24.98      %) c gauss useful          : 43.79       % c conflicts             : 34186       (4073.39   / sec) c decisions             : 39715       (6.86      % random)&lt;/code&gt;&lt;br&gt;
Which basically tells that gaussian elimination was called 31 thousand times out of 39 thousand, and so it was essentially running almost all the time. Out of the 31&#39;323 times it was called, 44% of the cases it found either a conflict or a propagation. This is a very good result, and is typical of the &lt;a href=&#34;http://en.wikipedia.org/wiki/Trivium_%28cipher%29&#34;&gt;Trivium&lt;/a&gt; cipher. Trivium can be speeded up by up to 2x with Gaussian elimination. I will put up lots of CNFs, so you will be able to play around with them and (optionally) verify these results.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Parallelisation</title>
      <link>https://www.msoos.org/2010/05/parallelisation/</link>
      <pubDate>Wed, 05 May 2010 09:01:00 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/wordpress/?p=21</guid> 
      <description>&lt;p&gt;I have lately been reading the book &lt;a href=&#34;http://www.amazon.com/Using-OpenMP-Programming-Engineering-Computation/dp/0262533022&#34;&gt;Using OpenMP&lt;/a&gt; and thinking about how CryptoMiniSat could be &lt;a href=&#34;http://www.eecs.umich.edu/%7Evaleria/research/publications/IWLS06SAT.pdf&#34;&gt;parallelised&lt;/a&gt;. Apparently, there are multiple ways to achieve it. I haven&amp;rsquo;t yet had time to read through all previous approaches, but it seems there are at least two main ways to distribute the solving: through &lt;a href=&#34;http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.40.9517&#34;&gt;guiding paths&lt;/a&gt; and using the idea of &lt;a href=&#34;http://jsat.ewi.tudelft.nl/content/volume6/JSAT6_12_Hamadi.pdf&#34;&gt;ManySat&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;The first approach, guiding paths, decomposes the problem into multiple sub-problems, setting some variables to &lt;code&gt;true&lt;/code&gt; or &lt;code&gt;false&lt;/code&gt;. The problems are then solved completely independently with a master coordinating the effort. I don&amp;rsquo;t like this approach for two reasons. Firstly, for cryptographic problems, the decomposition can be made very well since the problem in its most abstract form (i.e. key, plaintext, ciphertext) is known, and so a very good guiding path can be calculated. However, even with this very good guiding path, the expected total time to solve is far more than if the problem was given to one solver instance. In other words, if we decompose the problem into 4 sub-problems, and each sub-problem takes on average T time to solve, then the total average time is 4T, but if we gave the problem to one solver, it would have found the solution on average in e.g. 2T time. In other words, the gain is not as much as one would hope. I would guess that this ratio (2T/4T = 1/2 in this case) is even worse when the problem&amp;rsquo;s abstract form is totally unknown (which is most of the time), and the solver has to guess a guiding path.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Social coding</title>
      <link>https://www.msoos.org/2010/04/social-coding/</link>
      <pubDate>Thu, 29 Apr 2010 20:04:00 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/wordpress/?p=22</guid> 
      <description>&lt;p&gt;I saw a &lt;a href=&#34;http://www.youtube.com/watch?v=k2h2lvhzMDc&#34;&gt;talk&lt;/a&gt; by Ed Catmull on the problems Pixar had in their early days. The talk is very interesting, and I recommend it. What caught me, is that at Pixar they had a &amp;ldquo;brain trust&amp;rdquo;, a certain group of people who could express their new ideas to one another without fear of backlash. This is actually very difficult to achieve, since early implementations of ideas are always &amp;ldquo;childish&amp;rdquo;, lack maturity, and are therefore not considered good enough to be shared with others. However, if you don&amp;rsquo;t share the idea with the others early, then you will get feedback too late, when you have already invested a lot of time into it. Criticism at this late stage hurts more and what is worse, it might make you so uncomfortable, that you might abandon the idea altogether.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Blocked clause elimination implies dependent variable removal</title>
      <link>https://www.msoos.org/2010/04/blocked-clause-elimination-implies-dependent-variable-removal/</link>
      <pubDate>Wed, 28 Apr 2010 20:50:00 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/wordpress/?p=23</guid> 
      <description>&lt;p&gt;While writing the description of &lt;a href=&#34;http://cryptominisat.gforge.inria.fr/&#34;&gt;CryptoMiniSat&lt;/a&gt; for the &lt;a href=&#34;http://baldur.iti.uka.de/sat-race-2010/&#34;&gt;2010 SAT Race&lt;/a&gt;, I have realised how powerful the &lt;a href=&#34;http://dx.doi.org/10.1007/978-3-642-12002-2_10&#34;&gt;blocked clause elimination&lt;/a&gt; (BCE) technique by Matti Jarvisalo and Armin Biere is. For xor clauses, which represent a simple XOR like&lt;/p&gt;
&lt;p&gt;&lt;code&gt;v1 + v2 + v3 = true&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;there is a technique called &lt;a href=&#34;http://www.satisfiability.org/SAT04/programme/72.pdf&#34;&gt;dependent variable removal&lt;/a&gt; by Heule and Maaren. This technique removes an xor clause if one of its variables appears only in one place: in that xor clause. The idea is that since that variable only appears there, the XOR can always be satisfied. For example, if variable &lt;code&gt;v1&lt;/code&gt; is dependent (i.e. it only appears in this XOR), and&lt;/p&gt;</description>
    </item>
    <item>
      <title>CryptoMiniSat v2 finally released</title>
      <link>https://www.msoos.org/2010/04/cryptominisat-v2-finally-released/</link>
      <pubDate>Tue, 27 Apr 2010 12:49:00 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/wordpress/?p=24</guid> 
      <description>&lt;p&gt;CryptoMiniSat version 2.4.0 is finally &lt;a href=&#34;http://cryptominisat.gforge.inria.fr/&#34;&gt;here&lt;/a&gt;. I decided to use the &lt;a href=&#34;https://gforge.inria.fr/projects/cryptominisat/&#34;&gt;INRIA Gforge system&lt;/a&gt; to coordinate bug-hunting, release management and the forums. However, the source code revision management is coordinated through &lt;a href=&#34;http://gitorious.com/cryptominisat&#34;&gt;Gitorious&lt;/a&gt;. There, you can find all revisions that have been made to CryptoMiniSat since its original SVN revision control was fixed to use trunk and branches. I believe at least a 1000 revisions are up, so you can see how the source evolved. The source now should be pretty stable, but I am looking forward to all bug reports and suggestons.&lt;/p&gt;</description>
    </item>
    <item>
      <title>On PrecoSat</title>
      <link>https://www.msoos.org/2010/04/on-precosat/</link>
      <pubDate>Sun, 25 Apr 2010 19:47:00 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/wordpress/?p=25</guid> 
      <description>&lt;p&gt;Lately, I have been having a poll of who will win the &lt;a href=&#34;http://baldur.iti.uka.de/sat-race-2010/&#34;&gt;SAT Race&#39;10&lt;/a&gt;. Apparently, 5 people voted until now, me included. I voted &lt;a href=&#34;http://fmv.jku.at/precosat/&#34;&gt;PrecoSat&lt;/a&gt;. Not because I didn&amp;rsquo;t want to vote CryptoMiniSat, but because I honestly believe it really will win. The reason is awfully simple: &lt;a href=&#34;http://fmv.jku.at/biere/&#34;&gt;Armin Biere&lt;/a&gt;, the (main) author of PrecoSat has had far more experience and time than me to perfect his solver. This is normal, though I only hope he might notice the amount of effort that was put into CryptoMiniSat.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Optimisations</title>
      <link>https://www.msoos.org/2010/04/optimisations/</link>
      <pubDate>Thu, 22 Apr 2010 12:10:00 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/wordpress/?p=26</guid> 
      <description>&lt;p&gt;There are plenty of optimisations that I have tried with CryptoMiniSat. I will try to list a few that I finally didn&amp;rsquo;t consider using, but could be implemented later to get around 4-8% speedup each.&lt;/p&gt;
&lt;p&gt;It seems a good idea to use a separate &lt;a href=&#34;http://http://en.wikipedia.org/wiki/Conjunctive_normal_form&#34;&gt;CNF&lt;/a&gt; simplifier such as &lt;a href=&#34;http://http://minisat.se/SatELite.html&#34;&gt;SatELite&lt;/a&gt; before executing the SAT solver. The reasoning is, that even though one can import (or copy-paste) the code from SatELite, the memory will stay fragmented: &lt;a href=&#34;http://minisat.se/downloads/SatELite_slides.pdf&#34;&gt;variable elimination&lt;/a&gt; might remove half the variables, and so the arrays that store variable values will have unused bytes in them, using a larger footprint than necessary, thus causing cache misses. Though this is true, SatELite is not exactly perfect. For instance, it can be seen in certain instances of the SAT Competition of 2009 that &lt;a href=&#34;http://www.lri.fr/%7Esimon/glucose/&#34;&gt;GLUCOSE&lt;/a&gt; sometimes had very bad performance in comparison with other solvers exactly because SatELite took, e.g. &lt;a href=&#34;http://www.cril.univ-artois.fr/SAT09/results/trace.php?idev=29&amp;amp;idjob=1774624&#34;&gt;130 seconds&lt;/a&gt;, but the solving only took 2 seconds. So SatELite slowed down the solving of this instance. Also, SatELite has some limitations, e.g. it cannot handle more than 4&#39;800&#39;000 clauses otherwise it might take just too much time. These are huge drawbacks, and in fact CryptoMiniSat (and, e.g. &lt;a href=&#34;http://fmv.jku.at/precosat/&#34;&gt;PrecoSat&lt;/a&gt;) overcomes all of these. The memory fragmentation issue remains, though. It could be treated, but that would require about 2-3 weeks of time to get corrected, and I simply don&amp;rsquo;t have that much time. P.S.: Easy solution: rename the variables everywhere. Hard (but less error-prone) solution: use different datastructure for variable values.&lt;/p&gt;</description>
    </item>
    <item>
      <title>216</title>
      <link>https://www.msoos.org/2010/04/216/</link>
      <pubDate>Sat, 17 Apr 2010 20:14:00 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/wordpress/?p=28</guid> 
      <description>&lt;p&gt;216. I am quite proud of this number. It&amp;rsquo;s the number of instances CryptoMiniSat2 can solve from the 292 problem instances of the &lt;a href=&#34;http://www.cril.univ-artois.fr/SAT09/results/ranking.php?idev=29&#34;&gt;SAT Race&#39;09&lt;/a&gt;, given roughly the same amount of time and computing resources as the solvers of 2009. Last year&amp;rsquo;s &lt;a href=&#34;http://fmv.jku.at/precosat/&#34;&gt;winner&lt;/a&gt; could solve only 204. Total solving time of CryptoMiniSat for the 216 instances was 217&#39;814 sec, in comparison to 180&#39;345 sec (for 12 less instances) of last year&amp;rsquo;s winner &lt;em&gt;.&lt;/em&gt; The distribution of SAT and UNSAT for CryptoMiniSat is 85 SAT and 131 UNSAT instances solved. With this performance, it would have won all three tracks of the competition (SAT, UNSAT and SAT+UNSAT) last year.&lt;/p&gt;</description>
    </item>
    <item>
      <title>The dates of the SAT Race 2010 have been announced!</title>
      <link>https://www.msoos.org/2010/04/the-dates-of-the-sat-race-2010-have-been-announced/</link>
      <pubDate>Mon, 12 Apr 2010 10:15:00 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/wordpress/?p=30</guid> 
      <description>&lt;p&gt;The dates of the SAT Race 2010 have been &lt;a href=&#34;http://baldur.iti.uka.de/sat-race-2010/&#34;&gt;announced&lt;/a&gt;! The deadline is the end of April, so I have to get CryptoMiniSat bug-free by then.&lt;/p&gt;
&lt;p&gt;I have decided to merge the code into STP, the &lt;a href=&#34;http://sourceforge.net/projects/stp-fast-prover/&#34;&gt;Simple Theorem Prover&lt;/a&gt; made by some MIT researchers, among them &lt;a href=&#34;http://people.csail.mit.edu/vganesh/&#34;&gt;Vijay Ganesh&lt;/a&gt;, with whom I have have worked quite a lot during the final months of 2009. Hopefully, with the help of the STP team, CryptoMiniSat will be bug-free by the end of this month, and through testing in STP, fine-tuning of options will be carried out. There are 16 new modules in the solver, and all have heuristic cut-offs, which have to be tuned. Naturally, I tried to use sensible defaults, but problems can vary widely, and different problems need different cut-offs. For instance, if the number of clauses is very low, even O(m^2) algorithms can be executed, while if the number of clauses is extremely large, e.g. 100&#39;000, it might take too much time even to execute O(m*log(m)) algorithms.&lt;/p&gt;</description>
    </item>
    <item>
      <title>On research in general</title>
      <link>https://www.msoos.org/2010/04/on-research-in-general/</link>
      <pubDate>Thu, 01 Apr 2010 19:29:00 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/wordpress/?p=31</guid> 
      <description>&lt;p&gt;I am not sure I am qualified to talk about research in general, but I will try to do my best.&lt;/p&gt;
&lt;p&gt;To me, it seems that the research community of any given topic is pretty small. The reason for this is many-fold. Firstly, I suspect that the number of qualified individuals willing to work for a relatively small pay (but with many benefits, like flexible schedule, less stress, etc.) is relatively small. Secondly, any given topic usually reaches a maturity level where the subdomains are very clear, and it is very difficult to say anything reasonably good about a subdomain that one is not acquainted with. For instance, Knuth&amp;rsquo;s books are brilliant, but even he (someone who is like a semi-god in computer science) acknowledges that he simply cannot be an authority on all the topics covered in the 4th volume of his series. (BTW I just bought Vol4F0 and Vol4F1, wainting for amazon to ship now).&lt;/p&gt;</description>
    </item>
    <item>
      <title>Why CryptoMiniSat can’t use MATLAB to do Gaussian elimination</title>
      <link>https://www.msoos.org/2010/03/why-cryptominisat-cant-use-matlab-to-do-gaussian-elimination/</link>
      <pubDate>Fri, 19 Mar 2010 14:16:00 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/wordpress/?p=32</guid> 
      <description>&lt;p&gt;Some people, who may not have thought through the problem of implementing Gaussian elimination into SAT solvers, seem to think that it&amp;rsquo;s just a matter of pulling a matlab function into a solver, and the job is done. Let met explain why I think this is not the case.&lt;/p&gt;
&lt;p&gt;Firstly, we don&amp;rsquo;t wish to execute Gaussian elimination simply before the solving, instead, we wish to execute it during the solving. This means the matrix&amp;rsquo;s columns need to be changed often, since as we move down the search tree, some variables will be fixed, thus the columns need to be cleared, and the augmented column needs to be updated. But how would a matlab function know which column was changed? These functions are made to work on any given matrix, churn through it, and finish with a result. However, in many cases, the change (=delta) between two matrixes is minimal (i.e. 3rd column from right was changed). In this case, the matlab routine will nevertheless start updating the matrix from the leftmost column, essentially taking far more time than an algorithm that knows that the delta was small.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Could monomials be handled natively from SAT solvers?</title>
      <link>https://www.msoos.org/2010/03/could-monomials-be-handled-natively-from-sat-solvers/</link>
      <pubDate>Wed, 17 Mar 2010 12:05:00 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/wordpress/?p=33</guid> 
      <description>&lt;p&gt;I recently got a question that intrigued me:&lt;/p&gt;
&lt;p&gt;I am new to this SAT solving world but I was wondering whether you thought considerable speedups were possible for crypto type problems (multivariate polys over GF(2)) by simply never converting the problem to cnf at all and thereby avoiding the combinatorial explosion that results in the conversion process. That is using the original xor formulation.&lt;/p&gt;
&lt;p&gt;First of all, the question is a follow-up to xor-clauses: they implement XOR-s natively. Using them avoids a number of problems relating to the increase of variables. Why not implement monomials (i.e. &amp;ldquo;a*b&amp;rdquo; or &amp;ldquo;a*b*c&amp;rdquo;, where &amp;ldquo;*&amp;rdquo; is binary AND and variables are binary) natively? They are the only thing left to do. Personally, I am not overly optimistic about them, though. Let me got through some of my reasons here.&lt;/p&gt;</description>
    </item>
    <item>
      <title>CryptoMiniSat v2</title>
      <link>https://www.msoos.org/2010/03/cryptominisat-v2/</link>
      <pubDate>Thu, 04 Mar 2010 20:58:00 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/wordpress/?p=34</guid> 
      <description>&lt;p&gt;Lately, I have been working a lot with CryptoMiniSat, to get it up and running for the &lt;a href=&#34;http://baldur.iti.uka.de/sat-race-2010/&#34;&gt;2010 SAT Race&lt;/a&gt;, held by Carsten Sinz. Getting CryptoMiniSat fast and bug-free has been a long and winding road. I can now understand the difficulty of choosing magic parameters that these SAT solvers make use of regularly. As I have added ~6000 lines of code to a codebase of ~1500, you can probably imagine the number of magic constants that I had to come up with. Worst of all, these constants interact in non-intuitive and sometimes in a fully &amp;ldquo;magical&amp;rdquo; manner.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
