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

2.8.1: Compiler produces invalid ozn files #759

Closed
informarte opened this issue Dec 1, 2023 · 0 comments
Closed

2.8.1: Compiler produces invalid ozn files #759

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

Comments

@informarte
Copy link

I noticed that the MiniZinc 2.8.1 compiler produces invalid ozn files for some problems from past MiniZinc challenges:

vaccine:

> minizinc -c vaccine.mzn v946.dzn
> minizinc --ozn-file vaccine.ozn
Error: type error: no function or predicate with name `\0@_toString__constrId_0_VACCINE' found, did you mean `_0@_toString__constrId_0_VACCINE'?

travelling-thief:

> minizinc -c ttp.mzn data/n10_k3_c5000_l10000_u10100_r46.dzn
> minizinc --ozn-file ttp.ozn
Error: type error: field access of a record must use a field identifier

generalized-peacable-queens:

> minizinc -c peaceable_queens.mzn n8_q3.json
> minizinc --ozn-file peaceable_queens.ozn
Error: type error: no function or predicate with name `\5@_toString__constrId_0_Armies' found, did you mean `_5@_toString__constrId_0_Armies'?

(MiniZinc 2.7.6 produces bad ozn files, too, but the error messages are different.)

@Dekker1 Dekker1 added the bug label Dec 4, 2023
guidotack pushed a commit that referenced this issue Dec 6, 2023
@cyderize cyderize added the resolved Issue is resolved and the feature or fix will be part of next release label Dec 6, 2023
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

3 participants