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

Method post

test/int/mm-arithmetic.cpp:171–174  ·  view source on GitHub ↗

Post constraint on \a x

Source from the content-addressed store, hash-verified

169 }
170 /// Post constraint on \a x
171 virtual void post(Gecode::Space& home, Gecode::IntVarArray& x) {
172 using namespace Gecode;
173 rel(home, expr(home, sqr(x[0])), IRT_EQ, x[1], IPL_DOM);
174 }
175 };
176
177 /// %Test for sqrt constraint

Callers

nothing calls this directly

Calls 3

relFunction · 0.50
exprFunction · 0.50
sqrFunction · 0.50

Tested by

no test coverage detected