<!--
RSS generated by JIRA (4.4#649-r158309) at Sat May 25 09:40:18 CDT 2013

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary add field=key&field=summary to the URL of your request.
For example:
http://dev.clojure.org/jira/sr/jira.issueviews:searchrequest-xml/temp/SearchRequest.xml?jqlQuery=project+%3D+10020+AND+labels+%3D+%22%2Bfd%22&tempMax=1000&field=key&field=summary
-->
<!-- If you wish to do custom client-side styling of RSS, uncomment this:
<?xml-stylesheet href="http://dev.clojure.org/jira/styles/jiraxml2html.xsl" type="text/xsl"?>
-->
<rss version="0.92">
    <channel>
        <title>Clojure JIRA</title>
        <link>http://dev.clojure.org/jira/secure/IssueNavigator.jspa?reset=true&amp;jqlQuery=project+%3D+10020+AND+labels+%3D+%22%2Bfd%22</link>
        <description>An XML representation of a search request</description>
                <language>en-us</language>
                        <issue start="0" end="1" total="1"/>
                <build-info>
            <version>4.4</version>
            <build-number>649</build-number>
            <build-date>25-07-2011</build-date>
        </build-info>
<item>
            <title>[LOGIC-52] Bug in finite domains (+fd, infd)</title>
                <link>http://dev.clojure.org/jira/browse/LOGIC-52</link>
                <project id="10020" key="LOGIC">core.logic</project>
                        <description>&lt;p&gt;When running the code:&lt;/p&gt;

&lt;p&gt;(run* &lt;span class=&quot;error&quot;&gt;&amp;#91;q&amp;#93;&lt;/span&gt;&lt;br/&gt;
  (fresh &lt;span class=&quot;error&quot;&gt;&amp;#91;a b c d&amp;#93;&lt;/span&gt;&lt;br/&gt;
    (infd a b c d (domain 1 3 4 5))&lt;br/&gt;
    (+fd b 1 a)&lt;br/&gt;
    (+fd c 1 b)&lt;br/&gt;
    (+fd d 1 c)&lt;br/&gt;
    (== q &lt;span class=&quot;error&quot;&gt;&amp;#91;a b c d&amp;#93;&lt;/span&gt;)))&lt;/p&gt;

&lt;p&gt;I get the ouput:&lt;/p&gt;

&lt;p&gt;(&lt;span class=&quot;error&quot;&gt;&amp;#91;5 4 3 1&amp;#93;&lt;/span&gt;)&lt;/p&gt;

&lt;p&gt;But I would expect:&lt;/p&gt;

&lt;p&gt;()&lt;/p&gt;

&lt;p&gt;Because &lt;span class=&quot;error&quot;&gt;&amp;#91;5 4 3 1&amp;#93;&lt;/span&gt; is no sequence where the next element is always one number higher than the one before.&lt;/p&gt;

&lt;p&gt;It seems to me like +fd behaves as it would take the next element in the domain, instead of taking the next higher number (I hope I didn&apos;t misunderstand +fd or infd).&lt;/p&gt;</description>
                <environment>Clojure 1.4, core.logic 0.8-alpha3</environment>
            <key id="15690">LOGIC-52</key>
            <summary>Bug in finite domains (+fd, infd)</summary>
                <type id="1" iconUrl="http://dev.clojure.org/jira/images/icons/bug.gif">Defect</type>
                                <priority id="3" iconUrl="http://dev.clojure.org/jira/images/icons/priority_major.gif">Major</priority>
                    <status id="5" iconUrl="http://dev.clojure.org/jira/images/icons/status_resolved.gif">Resolved</status>
                    <resolution id="1">Completed</resolution>
                                <assignee username="dnolen">David Nolen</assignee>
                                <reporter username="naeg">naeg</reporter>
                        <labels>
                        <label>+fd</label>
                        <label>bug</label>
                        <label>finite-domains</label>
                        <label>infd</label>
                    </labels>
                <created>Mon, 10 Sep 2012 16:50:28 -0500</created>
                <updated>Fri, 26 Oct 2012 01:03:46 -0500</updated>
                    <resolved>Fri, 26 Oct 2012 01:03:46 -0500</resolved>
                                                                    <due></due>
                    <votes>1</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="29425" author="naeg" created="Tue, 11 Sep 2012 16:48:06 -0500"  >&lt;p&gt;There is workaround using membero:&lt;/p&gt;

&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;(run* [q]
  (fresh [a b c d]
    (everyg #(membero % [1 3 4 5]) [a b c d])
    (+fd b 1 a)
    (+fd c 1 b)
    (+fd d 1 c)
    (== q [a b c d])))&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;=&amp;gt; ()&lt;/p&gt;

&lt;p&gt;Note that this is quite a lot slower than it would be with infd.&lt;/p&gt;</comment>
                    <comment id="29807" author="dnolen" created="Fri, 26 Oct 2012 01:03:46 -0500"  >&lt;p&gt;This is fixed try the latest 0.8.0 beta&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
                <customfields>
                                                                                            <customfield id="customfield_10010" key="com.pyxis.greenhopper.jira:gh-global-rank">
                <customfieldname>Global Rank</customfieldname>
                <customfieldvalues>
                    
                </customfieldvalues>
            </customfield>
                                                                                                            </customfields>
    </item>
</channel>
</rss>