| 47 | |
| 48 | template<class View0, class View1> |
| 49 | ExecStatus |
| 50 | Eq<View0,View1>::post(Home home, View0 x0, View1 x1){ |
| 51 | if (x0.assigned()) { |
| 52 | GECODE_ME_CHECK(x1.eq(home,x0.val())); |
| 53 | } else if (x1.assigned()) { |
| 54 | GECODE_ME_CHECK(x0.eq(home,x1.val())); |
| 55 | } else if (x0 != x1) { |
| 56 | GECODE_ME_CHECK(x0.lq(home,x1.max())); |
| 57 | GECODE_ME_CHECK(x1.lq(home,x0.max())); |
| 58 | GECODE_ME_CHECK(x0.gq(home,x1.min())); |
| 59 | GECODE_ME_CHECK(x1.gq(home,x0.min())); |
| 60 | (void) new (home) Eq<View0,View1>(home,x0,x1); |
| 61 | } |
| 62 | return ES_OK; |
| 63 | } |
| 64 | |
| 65 | template<class View0, class View1> |
| 66 | forceinline |