Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
JSON-output of two-dimensional arrays isn't usable as input. #156
Using current HEAD on develop ( eb53665 ):
If I pass the sudoku.mzn model from the MiniZinc tutorial to mzn2fzn with --output-mode json, I get JSON-output that I can't then use as input to mzn2fzn. (If I do the same with --output-mode dzn, the resulting output IS usable as input).
Note that I manually had to remove the trailing right parenthesis, as mentioned in #154.
sudoku.mzn (from the tutorial)
sudoku.dzn (also from tutorial):
Result from running:
If I trim away the ---------- line and the right parenthesis, and then attempt to run:
While if I do the same with --output-mode dzn, I get a result like:
Which after trimming away the ---------- line works fine as input to mzn2fzn.