Debian Codegraph @

tests/spec/unit/regression/int2float_subst.mzn

raw
1 /***
2 !Test
3 solvers: [gecode]
4 options:
5 all_solutions: true
6 expected: !Result
7 status: ALL_SOLUTIONS
8 solution: !SolutionSet
9 - !Solution
10 x_int: 1
11 y_int: 2
12 ***/
13
14 var int: x_int;
15 constraint x_int = 1;
16 var float: x_float = int2float(x_int);
17 var int: y_int;
18 var float: y_float = int2float(y_int);
19 constraint y_float = x_float + 1.0;