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

Method propagate

gecode/flatzinc/complete.hh:58–64  ·  view source on GitHub ↗

Perform propagation

Source from the content-addressed store, hash-verified

56 virtual PropCost cost(const Space& /* home */, const ModEventDelta& /* med */) const { return PropCost::record(); }
57 /// Perform propagation
58 virtual ExecStatus propagate(Space& home, const ModEventDelta& /* med */) {
59 assert(x0.assigned());
60 if (x0.val()) {
61 static_cast<FlatZincSpace&>(home).restart_data().mark_complete = true;
62 }
63 return home.ES_SUBSUMED(*this);
64 }
65
66 static ExecStatus post(FlatZincSpace& home, BoolView x0) {
67 if (x0.assigned()) {

Callers

nothing calls this directly

Calls 3

ES_SUBSUMEDMethod · 0.80
assignedMethod · 0.45
valMethod · 0.45

Tested by

no test coverage detected