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

Method check_update_min

gecode/int/gcc/bnd-sup.hpp:431–442  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

429
430 template<class Card>
431 inline bool
432 PartialSum<Card>::check_update_min(ViewArray<Card>& k) {
433 int j = 0;
434 for (int i = 3; i < size - 2; i++) {
435 int min = 0;
436 if (k[j].card() == i+firstValue)
437 min = k[j++].min();
438 if ((sum[i] - sum[i - 1]) != min)
439 return true;
440 }
441 return false;
442 }
443
444
445 /**

Callers 1

propagateMethod · 0.80

Calls 2

cardMethod · 0.45
minMethod · 0.45

Tested by

no test coverage detected