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

Warn about assignment aggregates #164

Open
rkaminsk opened this issue Aug 14, 2019 · 0 comments
Open

Warn about assignment aggregates #164

rkaminsk opened this issue Aug 14, 2019 · 0 comments
Assignees
Milestone

Comments

@rkaminsk
Copy link
Member

Often assignment aggregates are used in a very inefficient way. Typical patters are

S = #sum { X : p(X) }, X > 10

or

S = #sum { X : p(X) }, T = #sum { X : q(X) }, S > T.

where p/1 and q/1 are non-domain predicates.

Both examples can easily be rewritten to drastically reduce grounding size. It would be nice to have a warning when assignment aggregates over non-domain predicates are used.

@rkaminsk rkaminsk self-assigned this Aug 14, 2019
@rkaminsk rkaminsk added this to the unknown milestone Dec 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant