<?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>Tools on Wonderings of a SAT geek</title>
    <link>https://www.msoos.org/categories/tools/</link>
    <description>Recent content in Tools 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/tools/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>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>Pepin, our Probabilistic Approximate Volume Counter</title>
      <link>https://www.msoos.org/2023/09/pepin-our-probabilistic-approximate-volume-counter/</link>
      <pubDate>Sat, 23 Sep 2023 19:24:06 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/?p=3484</guid> 
      <description>&lt;p&gt;Let&amp;rsquo;s say you are allowed to have cubes in a 3-dimensional space that happens to be binary. In this space, x1, x2, and x3 are the axis, and for example the cube x1=0 is a cube that happens to have 4 points in it: 000, 001, 010, and 011. So far, so good. Now, let&amp;rsquo;s say we need to calculate the total volume of two cubes in this space. If they don&amp;rsquo;t intersect, it&amp;rsquo;s quite easy, we simply add their volumes. But what if they intersect? Now we need to compute their overlap, and subtract it from their sum of volumes. But there is a better way.&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>Bosphorus, an ANF and CNF simplifier and converter</title>
      <link>https://www.msoos.org/2019/01/bosphorus-an-anf-and-cnf-simplifier-and-converter/</link>
      <pubDate>Fri, 04 Jan 2019 23:46:12 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/?p=3258</guid> 
      <description>&lt;p&gt;I am happy to finally release a piece of work that I have started many years ago at &lt;a href=&#34;https://srlabs.de/&#34;&gt;Security Research Labs&lt;/a&gt; (many thanks to Karsten Nohl there). Back in the days, it helped us to break multiple real-world ciphers. The released system is called &lt;a href=&#34;https://github.com/meelgroup/bosphorus&#34;&gt;Bosphorus&lt;/a&gt; and has been released with major, game-changing work by Davin Choo and Kian Ming A. Chai from &lt;a href=&#34;https://www.dso.org.sg/&#34;&gt;DSO National Laboratories&lt;/a&gt; Singapore and great help by &lt;a href=&#34;https://www.comp.nus.edu.sg/~meel/&#34;&gt;Kuldeep Meel&lt;/a&gt; from NUS. The &lt;a href=&#34;https://www.comp.nus.edu.sg/~meel/Papers/date-cscm19.pdf&#34;&gt;paper&lt;/a&gt; will be published at the &lt;a href=&#34;https://www.date-conference.com/&#34;&gt;DATE 2019&lt;/a&gt; conference.&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>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>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>
  </channel>
</rss>
