You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a program contains a theory atom with a trivially false body, then there are too many answer sets. I suspect that clasp treats it like a theory atom in a rule body in this case:
#theory bug {
t {};
&x/0: t,head
}.
{c}.
:- c.
&x { c } :- c.
Hiding the false body a bit produces the right results:
```prolog
#theory bug {
t {};
&x/0: t,head
}.
{c,d}.
:- c, d.
:- c, notd.
:- notc, d.
&x { c } :- c.
If a program contains a theory atom with a trivially false body, then there are too many answer sets. I suspect that clasp treats it like a theory atom in a rule body in this case:
Hiding the false body a bit produces the right results:
The aspif of the problematic version is:
And the output of clasp is:
The text was updated successfully, but these errors were encountered: