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

Method propagate

gecode/int/linear/int-bin.hpp:187–197  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

185
186 template<class Val, class A, class B>
187 ExecStatus
188 EqBin<Val,A,B>::propagate(Space& home, const ModEventDelta&) {
189 int bm = BM_ALL;
190 do {
191 GECODE_INT_PV(BM_X0_MIN, x0.gq(home,c-x1.max()), BM_X1_MAX);
192 GECODE_INT_PV(BM_X1_MIN, x1.gq(home,c-x0.max()), BM_X0_MAX);
193 GECODE_INT_PV(BM_X0_MAX, x0.lq(home,c-x1.min()), BM_X1_MIN);
194 GECODE_INT_PV(BM_X1_MAX, x1.lq(home,c-x0.min()), BM_X0_MIN);
195 } while (bm);
196 return x0.assigned() ? home.ES_SUBSUMED(*this) : ES_FIX;
197 }
198
199#undef GECODE_INT_PV
200

Callers

nothing calls this directly

Calls 13

ES_SUBSUMEDMethod · 0.80
postFunction · 0.70
gqMethod · 0.45
maxMethod · 0.45
lqMethod · 0.45
minMethod · 0.45
assignedMethod · 0.45
zeroMethod · 0.45
oneMethod · 0.45
zero_noneMethod · 0.45
valMethod · 0.45
one_noneMethod · 0.45

Tested by

no test coverage detected