Post constraint on \a x
| 216 | } |
| 217 | /// Post constraint on \a x |
| 218 | virtual void post(Gecode::Space& home, Gecode::IntVarArray& x) { |
| 219 | Gecode::IntVarArgs y(4); |
| 220 | for (int i=0; i<4; i++) |
| 221 | y[i]=x[i]; |
| 222 | Gecode::count(home, y, ints, irt, x[4]); |
| 223 | } |
| 224 | }; |
| 225 | |
| 226 | /// %Test number of equal integers equal to integer variable with sharing |