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

Method commit

gecode/int/branch/cbs.hpp:217–226  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

215
216 template<class View>
217 forceinline ExecStatus
218 CBSBrancher<View>::commit(Space& home, const Choice& c, unsigned int a) {
219 const auto& pvc = static_cast<const PosValChoice<int>&>(c);
220 int pos = pvc.pos().pos;
221 int val = pvc.val();
222 if (a == 0)
223 return me_failed(x[pos].eq(home, val)) ? ES_FAILED : ES_OK;
224 else
225 return me_failed(x[pos].nq(home, val)) ? ES_FAILED : ES_OK;
226 }
227
228 template<class View>
229 forceinline void

Callers 2

branchFunction · 0.45
valselcommitFunction · 0.45

Calls 5

me_failedFunction · 0.85
posMethod · 0.45
valMethod · 0.45
eqMethod · 0.45
nqMethod · 0.45

Tested by

no test coverage detected