<!-- 
RSS generated by JIRA (4.4#649-r158309) at Sat May 25 04:01:27 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/si/jira.issueviews:issue-xml/LOGIC-81/LOGIC-81.xml?field=key&field=summary
-->
<rss version="0.92" >
<channel>
    <title>Clojure JIRA</title>
    <link>http://dev.clojure.org/jira</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>4.4</version>
        <build-number>649</build-number>
        <build-date>25-07-2011</build-date>
    </build-info>

<item>
            <title>[LOGIC-81] predc constraint is not enforced when it could be</title>
                <link>http://dev.clojure.org/jira/browse/LOGIC-81</link>
                <project id="10020" key="LOGIC">core.logic</project>
                        <description>&lt;p&gt;The predc number constraint fails to be enforced here.&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;(is (= (run* [q]
           (fresh [x]
             (== q x)
             (predc q number? `number?)
             (== x &lt;span class=&quot;code-quote&quot;&gt;&quot;foo&quot;&lt;/span&gt;)))
        ())) ;; &lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt; -- actual is ((_0 :- number?))&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Inverting the first two goals gives the expected result.&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;(is (= (run* [q]
           (fresh [x]
             (predc q number? `number?)
             (== q x)
             (== x &lt;span class=&quot;code-quote&quot;&gt;&quot;foo&quot;&lt;/span&gt;)))
        ())) ;; OK&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
            <key id="15908">LOGIC-81</key>
            <summary>predc constraint is not enforced when it could be</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="namin">Nada Amin</reporter>
                        <labels>
                    </labels>
                <created>Wed, 19 Dec 2012 07:27:15 -0600</created>
                <updated>Thu, 20 Dec 2012 09:43:08 -0600</updated>
                    <resolved>Thu, 20 Dec 2012 09:43:08 -0600</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="30267" author="namin" created="Wed, 19 Dec 2012 09:12:18 -0600"  >&lt;p&gt;Actually, the problem is not specific to predc. It&apos;s an issue that addcg can overwrite a precious binding. Here is another example without predc:&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;(is (= (run* [q]
           (fresh [x y z]
             (== q x)
             (distinctfd [q y])
             (== y x)
             (infd q x y (interval 1 3))))
        ()) ;; &lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt; -- actual is [1 2 3]&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;I have a fix that I&apos;ll submit shortly.&lt;/p&gt;</comment>
                    <comment id="30268" author="namin" created="Wed, 19 Dec 2012 09:20:43 -0600"  >&lt;p&gt;Let&apos;s discuss on GitHub first: &lt;a href=&quot;https://github.com/namin/core.logic/compare/logic-81&quot;&gt;https://github.com/namin/core.logic/compare/logic-81&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="30270" author="namin" created="Thu, 20 Dec 2012 09:25:37 -0600"  >&lt;p&gt;logic-81.diff include fix and tests. Since the interface for the constraint store has been modified, some tests needed to be udpated.&lt;/p&gt;

&lt;p&gt;discussion: &lt;a href=&quot;https://github.com/clojure/core.logic/pull/14&quot;&gt;https://github.com/clojure/core.logic/pull/14&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;rebase:&lt;br/&gt;
&lt;a href=&quot;https://github.com/namin/core.logic/compare/logic-81-base&quot;&gt;https://github.com/namin/core.logic/compare/logic-81-base&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="30271" author="dnolen" created="Thu, 20 Dec 2012 09:43:08 -0600"  >&lt;p&gt;fixed, &lt;a href=&quot;http://github.com/clojure/core.logic/commit/0f7de6ed7125df65f4450d5507341a98b151001a&quot;&gt;http://github.com/clojure/core.logic/commit/0f7de6ed7125df65f4450d5507341a98b151001a&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                    <attachment id="11770" name="logic-81.diff" size="8615" author="namin" created="Thu, 20 Dec 2012 09:25:37 -0600" />
                </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>