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

Method post

test/int/count.cpp:192–197  ·  view source on GitHub ↗

Post constraint on \a x

Source from the content-addressed store, hash-verified

190 }
191 /// Post constraint on \a x
192 virtual void post(Gecode::Space& home, Gecode::IntVarArray& x) {
193 Gecode::IntVarArgs y(4);
194 for (int i=0; i<4; i++)
195 y[i]=x[i];
196 Gecode::count(home, y, ints, irt, 2);
197 }
198 };
199
200 /// %Test number of several equal integers equal to integer variable

Callers

nothing calls this directly

Calls 1

countFunction · 0.50

Tested by

no test coverage detected