Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unexpected stack overflow #3

Open
pbaille opened this issue Mar 6, 2022 · 0 comments
Open

unexpected stack overflow #3

pbaille opened this issue Mar 6, 2022 · 0 comments

Comments

@pbaille
Copy link

pbaille commented Mar 6, 2022

Hello,

I was playing with spock (which is awesome!) and found this:

(with-open [rules (with-rules '[(g [:a :b :c] [(or (and :a :b) :c)])])]
   (solve {:rules rules} '(g (= :x 1) (= :y 2) (= :y 3))))

Execution error (StackOverflowError) at org.jpl7.Term/getTerm (Term.java:282).

When I do the same globally, no problem:

(assert-rules '[(g [:a :b :c] [(or (and :a :b) :c)])])
(solve '(g (= :x 1) (= :y 2) (= :y 3)))

[{:x 1, :y 2} {:x _101, :y 3}]

Any idea ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant