MCPcopy Create free account
hub / github.com/Gecode/gecode / solution

Method solution

test/int/bool.cpp:157–159  ·  view source on GitHub ↗

Check whether \a x is solution

Source from the content-addressed store, hash-verified

155 : Test("Bool::Bin::XXX::"+str(op0),1,0,1), op(op0) {}
156 /// Check whether \a x is solution
157 virtual bool solution(const Assignment& x) const {
158 return check(x[0],op,x[0]) == x[0];
159 }
160 /// Post constraint
161 virtual void post(Gecode::Space& home, Gecode::IntVarArray& x) {
162 using namespace Gecode;

Callers

nothing calls this directly

Calls 1

checkFunction · 0.70

Tested by

no test coverage detected