Debian Codegraph @

tests/spec/unit/compilation/call_root_ctx.mzn

raw
1 /***
2 !Test
3 type: compile
4 solvers: [gecode]
5 expected: !FlatZinc call_root_ctx.fzn
6 ***/
7
8 % This used to produce a set_in due to the lets flattening with unknown partiality
9 function var int: foo() = let {
10 var 1..2: bar = let { var 1..3: x } in x
11 } in bar;
12
13 var int: y :: add_to_output = foo();