| 66 | |
| 67 | template<class VX, class VY, class VZ, bool shr> |
| 68 | ExecStatus |
| 69 | LqView<VX,VY,VZ,shr>::propagate(Space& home, const ModEventDelta&) { |
| 70 | count(home); |
| 71 | GECODE_ME_CHECK(z.gq(home,atleast())); |
| 72 | |
| 73 | if (z.max() == atleast()) { |
| 74 | GECODE_ES_CHECK(post_false(home,x,y)); |
| 75 | return home.ES_SUBSUMED(*this); |
| 76 | } |
| 77 | |
| 78 | if (x.size() == 0) |
| 79 | return home.ES_SUBSUMED(*this); |
| 80 | |
| 81 | if (z.assigned()) { |
| 82 | VY yc(y); |
| 83 | GECODE_REWRITE(*this,(LqInt<VX,VY>::post(home(*this),x,yc,z.val()+c))); |
| 84 | } |
| 85 | |
| 86 | return shr ? ES_NOFIX : ES_FIX; |
| 87 | } |
| 88 | |
| 89 | }}} |
| 90 | |