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

order of arithemtic expression matter #44

Open
vale1410 opened this issue Apr 30, 2022 · 0 comments
Open

order of arithemtic expression matter #44

vale1410 opened this issue Apr 30, 2022 · 0 comments

Comments

@vale1410
Copy link
Owner

following program gives an error message: Fatal error: exception Failure("Error: variable X is unbound in an arithmetical expression when grounding p[X \\+ 1].")

#ground p[1], t[2].                                                                                                                       
p[X+1], p[X] :: #ground q[X]. 

it works correctly if order in the generator is swapped:

#ground p[1], t[2].                                                                                                                       
p[X], p[X+1]  :: #ground q[X]. 
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