<?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>library on Wonderings of a SAT geek</title>
    <link>https://www.msoos.org/tags/library/</link>
    <description>Recent content in library on Wonderings of a SAT geek</description>
    <generator>Hugo</generator>
    <language>en-US</language>
    <lastBuildDate>Sun, 25 Aug 2013 15:12:03 +0000</lastBuildDate>
    <atom:link href="https://www.msoos.org/tags/library/feed.xml" rel="self" type="application/rss+xml" />
    <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>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>
  </channel>
</rss>
