Check whether \a x is solution
| 113 | : Test("Bool::Bin::XYX::"+str(op0),2,0,1), op(op0) {} |
| 114 | /// Check whether \a x is solution |
| 115 | virtual bool solution(const Assignment& x) const { |
| 116 | return check(x[0],op,x[1]) == x[0]; |
| 117 | } |
| 118 | /// Post constraint |
| 119 | virtual void post(Gecode::Space& home, Gecode::IntVarArray& x) { |
| 120 | using namespace Gecode; |