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

Method propagate

gecode/int/circuit/val.hpp:63–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61
62 template<class View, class Offset>
63 ExecStatus
64 Val<View,Offset>::propagate(Space& home, const ModEventDelta&) {
65 GECODE_ES_CHECK((Int::Distinct::prop_val<View,true>(home,y)));
66 ExecStatus esc = connected(home);
67 if (esc != ES_FIX)
68 return esc;
69 /*
70 * One cannot have a single unassigned view as the views constitute
71 * a permutation.
72 */
73 if (y.size() < 2)
74 return home.ES_SUBSUMED(*this);
75 return path(home);
76 }
77
78 template<class View, class Offset>
79 ExecStatus

Callers

nothing calls this directly

Calls 3

pathFunction · 0.85
ES_SUBSUMEDMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected