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

Serial filter(...) expr: In some cases this breaks semantics #90

Open
maxkratz opened this issue Dec 15, 2022 · 0 comments
Open

Serial filter(...) expr: In some cases this breaks semantics #90

maxkratz opened this issue Dec 15, 2022 · 0 comments
Labels
bug Something isn't working still broken Issue/Bug is not resolved when adding this label

Comments

@maxkratz
Copy link
Member

In some cases, serial filter(...) expressions break the filter semantics.
Example: Echtzeitsysteme/gips-tests#31

constraint -> global {
	mappings.n2n
	->filter(m | m.nodes().vnode.resourceDemand == 0)
	->filter(m | m.nodes().snode.resourceAmountTotal == 0)
	->count() == 0
}

Problem (if I understand it correctly):
If the first filter expression (in this case ->filter(m | m.nodes().vnode.resourceDemand == 0)) filters nothing out, i.e., the result should not be an empty set, the second filter(...) operation could not be triggered and, therefore, the count() does not evaluate to 0?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working still broken Issue/Bug is not resolved when adding this label
Projects
None yet
Development

No branches or pull requests

1 participant