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

Method solution

test/int/bool.cpp:72–74  ·  view source on GitHub ↗

Check whether \a x is solution

Source from the content-addressed store, hash-verified

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;

Callers

nothing calls this directly

Calls 1

checkFunction · 0.70

Tested by

no test coverage detected