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

Function max

gecode/int/arithmetic.cpp:50–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48
49
50 void
51 max(Home home, IntVar x0, IntVar x1, IntVar x2,
52 IntPropLevel ipl) {
53 using namespace Int;
54 GECODE_POST;
55 if (vbd(ipl) == IPL_DOM) {
56 GECODE_ES_FAIL(Arithmetic::MaxDom<IntView>::post(home,x0,x1,x2));
57 } else {
58 GECODE_ES_FAIL(Arithmetic::MaxBnd<IntView>::post(home,x0,x1,x2));
59 }
60 }
61
62 void
63 max(Home home, const IntVarArgs& x, IntVar y,

Callers 15

distinctFunction · 0.70
sequenceFunction · 0.70
compareMethod · 0.70
subsetMethod · 0.70
widthMethod · 0.70
normalizeMethod · 0.70
bool-int.hppFile · 0.50
propagateMethod · 0.50
ExecStatus post_intFunction · 0.50
propagateMethod · 0.50
updateMethod · 0.50
pruneMethod · 0.50

Calls 2

postFunction · 0.50
sizeMethod · 0.45

Tested by

no test coverage detected