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

Method post

test/int/count.cpp:163–169  ·  view source on GitHub ↗

Post constraint on \a x

Source from the content-addressed store, hash-verified

161 }
162 /// Post constraint on \a x
163 virtual void post(Gecode::Space& home, Gecode::IntVarArray& x) {
164 Gecode::IntVarArgs y(4);
165 for (int i=0; i<4; i++)
166 y[i]=x[i];
167 Gecode::IntSet s(-1,1);
168 Gecode::count(home, y, s, irt, x[4]);
169 }
170 };
171
172 Gecode::IntArgs ints({1,0,3,2});

Callers

nothing calls this directly

Calls 1

countFunction · 0.50

Tested by

no test coverage detected