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 behaviour with undefined conditions #9

Open
wanko opened this issue Jul 3, 2023 · 1 comment
Open

unexpected behaviour with undefined conditions #9

wanko opened this issue Jul 3, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@wanko
Copy link
Member

wanko commented Jul 3, 2023

Example program test.lp:

&fsum{y:p} = 5.

Expected result:

fclingo version 0.1
Reading from test.lp
Solving...
Answer: 1
p val(y,5)
SATISFIABLE

Actual result:

fclingo version 0.1
Reading from test.lp
-:1:9-10: info: atom does not occur in any rule head:
  p

Solving...
UNSATISFIABLE

Workaround:

#external p.
&fsum{y:p} = 5.
@wanko wanko added the bug Something isn't working label Jul 3, 2023
@rkaminsk
Copy link
Member

rkaminsk commented Jul 4, 2023

We defined head aggregates in clingo as shortcuts for choices + body aggregates. You can have a look at the AG paper.. There is an explicit literal that goes into the choice. For theory atoms, there is no such literal. There is just a condition meant to derive the set of elements of the theory atom.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants