MCPcopy Create free account
hub / github.com/Gecode/gecode / check

Function check

test/int/bool.cpp:43–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 13

solutionMethod · 0.70
solutionMethod · 0.70
solutionMethod · 0.70
solutionMethod · 0.70
solutionMethod · 0.70
solutionMethod · 0.70
solutionMethod · 0.70
solutionMethod · 0.70
solutionMethod · 0.70
solutionMethod · 0.70
solutionMethod · 0.70
solutionMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected