tests/spec/unit/visualisation/test_vis_ann.mzn
raw| 1 | include "ide/vis.mzn"; |
| 2 | |
| 3 | int: n = 4; |
| 4 | var 1..3: x; |
| 5 | var 1..3: y; |
| 6 | constraint x + y > n; |
| 7 | |
| 8 | function ann: vis_foo(int: n, var int: x, var int: y) = let { |
| 9 | constraint output_to_json_section( |
| 10 | mzn_vis_server("foo.html", (n: n)), |
| 11 | (x: x, y: y) |
| 12 | ); |
| 13 | } in output_only; |
| 14 | |
| 15 | output vis_foo(n, x, y); |