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

Method post

test/int/extensional.cpp:194–199  ·  view source on GitHub ↗

Post constraint on \a x

Source from the content-addressed store, hash-verified

192 }
193 /// Post constraint on \a x
194 virtual void post(Gecode::Space& home, Gecode::IntVarArray& x) {
195 using namespace Gecode;
196 REG r0(0), r1(1);
197 REG r01 = r0 | r1;
198 extensional(home, x, *r01 + r0 + r01(0,1));
199 }
200 };
201
202 /// %Test with simple regular expression and shared variables (uses unsharing)

Callers

nothing calls this directly

Calls 1

extensionalFunction · 0.50

Tested by

no test coverage detected