Debian Codegraph @

tests/spec/unit/regression/float_ceil_floor.mzn

raw
1 /***
2 !Test
3 check_against: []
4 expected:
5 - !Result
6 solution:
7 - !Solution
8 c: -1
9 f: -1
10 p: -1.0
11 status: ALL_SOLUTIONS
12 extra_files: []
13 markers: []
14 name: ''
15 options:
16 all_solutions: true
17 solvers:
18 - gecode
19 type: solve
20 ***/
21
22 var -1.75..1.75: p;
23 var -2..2: f;
24 var -2..2: c;
25
26 constraint f = floor(p) /\ c = ceil(p) /\ p = -1.0;
27 solve satisfy;