<?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>failed literal probing on Wonderings of a SAT geek</title>
    <link>https://www.msoos.org/tags/failed-literal-probing/</link>
    <description>Recent content in failed literal probing on Wonderings of a SAT geek</description>
    <generator>Hugo</generator>
    <language>en-US</language>
    <lastBuildDate>Mon, 11 Jun 2018 07:21:29 +0000</lastBuildDate>
    <atom:link href="https://www.msoos.org/tags/failed-literal-probing/feed.xml" rel="self" type="application/rss+xml" />
    <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>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>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>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>
  </channel>
</rss>
