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

atom in disjunction visible in answer set although it is not visible in grounding (and should not be true) #45

Closed
peschue opened this issue Jun 28, 2017 · 2 comments
Assignees
Labels

Comments

@peschue
Copy link

peschue commented Jun 28, 2017

In the attached minimal.lp there is a fact
sequence (0,"Volkstheater").
and a rule with the disjunctive head
sequence(I,L) | nsequence (I,L)

There is no other rule defining sequence/2 or nsequence/2.

Therefore nsequence(0,"Volkstheater") can never become true.

However if I run minimal.lp with clingo 5.2.0 or with clingo 01dffb (quite recent master branch hash) then some answer sets contain this atom. If I pipe gringo output into clasp directly this also happens.

If I use gringo --text on minimal.lp then the rule with nsequence(0,"Volkstheater") in the head is not even shown, it seems to be optimized away (which is correct, because it is satisfied by the fact).

minimal.zip

@rkaminsk
Copy link
Member

Will be fixed in next release.

@peschue
Copy link
Author

peschue commented Jul 1, 2017

Thank you, it is solved!

@peschue peschue closed this as completed Jul 1, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants