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

Function min

gecode/int/arithmetic.cpp:77–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75 }
76
77 void
78 min(Home home, IntVar x0, IntVar x1, IntVar x2,
79 IntPropLevel ipl) {
80 using namespace Int;
81 GECODE_POST;
82 MinusView m0(x0); MinusView m1(x1); MinusView m2(x2);
83 if (vbd(ipl) == IPL_DOM) {
84 GECODE_ES_FAIL(Arithmetic::MaxDom<MinusView>::post(home,m0,m1,m2));
85 } else {
86 GECODE_ES_FAIL(Arithmetic::MaxBnd<MinusView>::post(home,m0,m1,m2));
87 }
88 }
89
90 void
91 min(Home home, const IntVarArgs& x, IntVar y,

Callers 15

distinctFunction · 0.70
sequenceFunction · 0.70
compareMethod · 0.70
subsetMethod · 0.70
widthMethod · 0.70
normalizeFunction · 0.50
ExecStatus post_intFunction · 0.50
propagateMethod · 0.50
ExecStatus notlastFunction · 0.50
pruneMethod · 0.50
propagateMethod · 0.50
minMethod · 0.50

Calls 3

MinusViewClass · 0.70
postFunction · 0.50
sizeMethod · 0.45

Tested by

no test coverage detected