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

Method propagate

gecode/int/exec/when.cpp:43–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41 }
42
43 ExecStatus
44 When::propagate(Space& home, const ModEventDelta&) {
45 if (x0.zero()) {
46 GECODE_VALID_FUNCTION(e());
47 e()(home);
48 } else {
49 assert(x0.one());
50 GECODE_VALID_FUNCTION(t());
51 t()(home);
52 }
53 if (home.failed())
54 return ES_FAILED;
55 return home.ES_SUBSUMED(*this);
56 }
57
58 size_t
59 When::dispose(Space& home) {

Callers

nothing calls this directly

Calls 6

tFunction · 0.85
ES_SUBSUMEDMethod · 0.80
eFunction · 0.50
zeroMethod · 0.45
oneMethod · 0.45
failedMethod · 0.45

Tested by

no test coverage detected