<?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>Development on Wonderings of a SAT geek</title>
    <link>https://www.msoos.org/categories/development/</link>
    <description>Recent content in Development on Wonderings of a SAT geek</description>
    <generator>Hugo</generator>
    <language>en-US</language>
    <lastBuildDate>Sun, 01 Mar 2026 18:34:45 +0000</lastBuildDate>
    <atom:link href="https://www.msoos.org/categories/development/feed.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Ganak: The Making of a Versatile, High Performance Model Counter</title>
      <link>https://www.msoos.org/2026/03/ganak-the-making-of-a-versatile-high-performance-model-counter/</link>
      <pubDate>Sun, 01 Mar 2026 18:34:45 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/?p=3631</guid> 
      <description>&lt;p&gt;Ganak (&lt;a href=&#34;https://github.com/meelgroup/ganak&#34;&gt;github&lt;/a&gt;), our propositional model counter, has won every single model counting competition track for the past two years. Perhaps it&amp;rsquo;s time to explain how that came about, and what are the ingredients of such a tool. Firstly, a propositional model counter is a tool that counts how many solutions there are to a set of boolean constraints of the form:&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;b V -c
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;This set of constraints has the following possible solutions:&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>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>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>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>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>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>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>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>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>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>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>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>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>A nifty way of saving time with OpenCL</title>
      <link>https://www.msoos.org/2012/01/a-nifty-way-of-saving-time-with-opencl/</link>
      <pubDate>Tue, 17 Jan 2012 21:14:17 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/?p=1128</guid> 
      <description>&lt;p&gt;In &lt;a href=&#34;http://en.wikipedia.org/wiki/OpenCL&#34;&gt;OpenCL&lt;/a&gt;, the platform for using the graphics card as a form of &lt;a href=&#34;http://en.wikipedia.org/wiki/GPGPU&#34;&gt;highly parallelised machine&lt;/a&gt;, reading and writing to the memory of the card is very expensive. For this reason, the OpenCL &lt;a href=&#34;http://www.khronos.org/registry/cl/specs/opencl-1.2.pdf&#34;&gt;standard&lt;/a&gt; offers a set of highly flexible ways of writing and reading data to- and from the OpenCL device. Using these flexible systems takes time to get used to, but seem to be necessary to get the most out of the graphics card.&lt;/p&gt;</description>
    </item>
    <item>
      <title>AMD&#39;s OpenCL heaven and hell</title>
      <link>https://www.msoos.org/2012/01/amds-opencl-heaven-and-hell/</link>
      <pubDate>Thu, 05 Jan 2012 21:01:17 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/?p=1079</guid> 
      <description>&lt;p&gt;&lt;img loading=&#34;lazy&#34; src=&#34;https://www.msoos.org/wordpress/wp-content/uploads/2012/01/OpenCL_Logo.png&#34;&gt;I have been using the AMD&amp;rsquo;s &lt;a href=&#34;http://en.wikipedia.org/wiki/OpenCL&#34;&gt;OpenCL&lt;/a&gt; platform for a while now, so I&amp;rsquo;ll try to write a little overview of what I think is good and bad about OpenCL in general and AMD&amp;rsquo;s OpenCL implementation in particular.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;Update:&lt;/strong&gt; AMD was working on the issues below, and temporarily fixed some of them. They are broken again, and I gave up trying to help them. They would need more engineers to fix these issues on a permanent basis.&lt;/em&gt;&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
