Debian Codegraph @

tests/spec/unit/optional/test-opt-bool-1.mzn

raw
1 /***
2 !Test
3 expected: !Result
4 solution: !Solution
5 conjunction: [true, false, true, false, false, false, true, false, true]
6 disjunction: [false, false, true, false, false, true, true, true, true]
7 negation: [null, true, false]
8 status: SATISFIED
9 ***/
10
11 % conjunction of var opt bool
12 array [1..9] of bool: conjunction :: add_to_output = [x /\ y | x, y in [<>, false, true]];
13
14 % disjunction of var opt bool
15 array [1..9] of bool: disjunction :: add_to_output = [x \/ y | x, y in [<>, false, true]];
16
17 % not of var opt bool
18 array [1..3] of opt bool: negation:: add_to_output = [not x | x in [<>, false, true]];
19
20 solve satisfy;