Post constraint on \a x
| 84 | } |
| 85 | /// Post constraint on \a x |
| 86 | virtual void post(Gecode::Space& home, Gecode::IntVarArray& x) { |
| 87 | using namespace Gecode; |
| 88 | extensional(home, x, |
| 89 | (REG(-2) + REG(-1) + REG(0) + REG(1)) | |
| 90 | (REG(-2) + REG(-1) + REG(0) + REG(2)) | |
| 91 | (REG(-2) + REG(-1) + REG(1) + REG(2)) | |
| 92 | (REG(-2) + REG(0) + REG(1) + REG(2)) | |
| 93 | (REG(-1) + REG(0) + REG(1) + REG(2))); |
| 94 | } |
| 95 | }; |
| 96 | |
| 97 | /// %Test with simple regular expression |
nothing calls this directly
no test coverage detected