| 53 | } |
| 54 | |
| 55 | void CountableSet::init(const Gecode::IntSet& d0) { |
| 56 | d = d0; |
| 57 | cur = 0; |
| 58 | Gecode::IntSetRanges isr(d); |
| 59 | lubmax = |
| 60 | static_cast<unsigned int>(pow(static_cast<double>(2.0), |
| 61 | static_cast<int>(Gecode::Iter::Ranges::size(isr)))); |
| 62 | } |
| 63 | |
| 64 | int CountableSet::val(void) const { |
| 65 | return cur; |
no test coverage detected