| 41 | namespace Bool { |
| 42 | |
| 43 | inline int |
| 44 | check(int x0, Gecode::BoolOpType op, int x1) { |
| 45 | switch (op) { |
| 46 | case Gecode::BOT_AND: return x0 & x1; |
| 47 | case Gecode::BOT_OR: return x0 | x1; |
| 48 | case Gecode::BOT_IMP: return (!x0) | x1; |
| 49 | case Gecode::BOT_EQV: return x0 == x1; |
| 50 | case Gecode::BOT_XOR: return x0 != x1; |
| 51 | default: GECODE_NEVER; |
| 52 | } |
| 53 | GECODE_NEVER; |
| 54 | return 0; |
| 55 | } |
| 56 | |
| 57 | /** |
| 58 | * \defgroup TaskTestIntBool Boolean constraints |
no outgoing calls
no test coverage detected