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

Method checkIntegrity

contribs/qecode/Strategy.cc:241–251  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

239}
240
241int Strategy::checkIntegrity() {
242 int ret=0;
243 for (unsigned int i=0;i < (this->degree());i++) {
244 if ( (((imp->nodes[i]).imp)->father) != imp) {
245 ret++;
246 cout<< (((imp->nodes[i]).imp)->father) << " should be " << imp <<endl;
247 }
248 ret += (getChild(i).checkIntegrity());
249 }
250 return ret;
251}
252
253

Callers

nothing calls this directly

Calls 1

degreeMethod · 0.45

Tested by

no test coverage detected