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

defined and introduced variables #43

Open
MaxOstrowski opened this issue Feb 28, 2022 · 0 comments
Open

defined and introduced variables #43

MaxOstrowski opened this issue Feb 28, 2022 · 0 comments

Comments

@MaxOstrowski
Copy link
Member

Check out example:
tests/mzn/bool_clause_imp_1.mzn
with -O0

var bool: X_INTRODUCED_0_ ::var_is_introduced :: is_defined_var;
constraint bool_clause([X_INTRODUCED_0_],[r]);
constraint bool_clause([a1,a2,a3,a4],[a5,a6,a7,a8,a9,X_INTRODUCED_0_]):: defines_var(X_INTRODUCED_0_);

and -O2

constraint bool_clause([a4,a3,a2,a1],[r,a9,a8,a7,a6,a5]);

It seems that minizinc is allowed to introduce symmetries into the solutions.
Maybe we can avoid them somehow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant