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

Bad flattening with array access with bool2int expression #719

Closed
Dekker1 opened this issue Jul 19, 2023 · 0 comments
Closed

Bad flattening with array access with bool2int expression #719

Dekker1 opened this issue Jul 19, 2023 · 0 comments
Labels
bug resolved Issue is resolved and the feature or fix will be part of next release

Comments

@Dekker1
Copy link
Member

Dekker1 commented Jul 19, 2023

Solving the following fragment using Gecode allows foo = 2, but this should not be allowed as it would make the constraint 9 <= 0.

var 1..2: foo;
constraint 9 <= [10, 0][(foo > 1) + 1];

Playground

This likely seems to be a problem in the context determined for foo > 1 as it results in a half-reified constraint, but should be in a mixed context.

@cyderize cyderize added the bug label Feb 23, 2024
@cyderize cyderize added the resolved Issue is resolved and the feature or fix will be part of next release label May 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug resolved Issue is resolved and the feature or fix will be part of next release
Projects
None yet
Development

No branches or pull requests

2 participants