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

Method post

test/int/count.cpp:270–275  ·  view source on GitHub ↗

Post constraint on \a x

Source from the content-addressed store, hash-verified

268 }
269 /// Post constraint on \a x
270 virtual void post(Gecode::Space& home, Gecode::IntVarArray& x) {
271 Gecode::IntVarArgs y(3);
272 for (int i=0; i<3; i++)
273 y[i]=x[i];
274 Gecode::count(home, y, x[3], irt, x[4], ipl);
275 }
276 };
277
278 /// %Test number of equal variables equal to integer

Callers

nothing calls this directly

Calls 1

countFunction · 0.50

Tested by

no test coverage detected