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

Method propagate

gecode/int/arithmetic/max.hpp:111–120  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

109
110 template<class View>
111 ExecStatus
112 MaxBnd<View>::propagate(Space& home, const ModEventDelta&) {
113 GECODE_ES_CHECK(prop_max_bnd(home,x0,x1,x2));
114 if ((x0.max() <= x1.min()) || (x0.max() < x2.min()))
115 GECODE_REWRITE(*this,(Rel::EqBnd<View,View>::post(home(*this),x1,x2)));
116 if ((x1.max() <= x0.min()) || (x1.max() < x2.min()))
117 GECODE_REWRITE(*this,(Rel::EqBnd<View,View>::post(home(*this),x0,x2)));
118 return x0.assigned() && x1.assigned() && x2.assigned() ?
119 home.ES_SUBSUMED(*this) : ES_FIX;
120 }
121
122 /*
123 * Nary bounds consistent maximum

Callers

nothing calls this directly

Calls 12

rtest_nq_domFunction · 0.85
HomeClass · 0.85
ES_SUBSUMEDMethod · 0.80
ES_NOFIX_PARTIALMethod · 0.80
ES_FIX_PARTIALMethod · 0.80
postFunction · 0.50
maxMethod · 0.45
minMethod · 0.45
assignedMethod · 0.45
sizeMethod · 0.45
inter_rMethod · 0.45
move_lstMethod · 0.45

Tested by

no test coverage detected