Check whether \a x is solution
| 70 | : Test("Bool::Bin::XYZ::"+str(op0),3,0,1), op(op0) {} |
| 71 | /// Check whether \a x is solution |
| 72 | virtual bool solution(const Assignment& x) const { |
| 73 | return check(x[0],op,x[1]) == x[2]; |
| 74 | } |
| 75 | /// Post constraint |
| 76 | virtual void post(Gecode::Space& home, Gecode::IntVarArray& x) { |
| 77 | using namespace Gecode; |