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

Method post

test/int/count.cpp:325–330  ·  view source on GitHub ↗

Post constraint on \a x

Source from the content-addressed store, hash-verified

323 }
324 /// Post constraint on \a x
325 virtual void post(Gecode::Space& home, Gecode::IntVarArray& x) {
326 Gecode::IntVarArgs y(4);
327 for (int i=0; i<4; i++)
328 y[i]=x[i];
329 Gecode::count(home, y, x[1], irt, x[4]);
330 }
331 };
332
333 /// %Test number of equal variables equal to integer variable with sharing

Callers

nothing calls this directly

Calls 1

countFunction · 0.50

Tested by

no test coverage detected