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

Method post

test/int/bool.cpp:428–437  ·  view source on GitHub ↗

Post constraint

Source from the content-addressed store, hash-verified

426 }
427 /// Post constraint
428 virtual void post(Gecode::Space& home, Gecode::IntVarArray& x) {
429 using namespace Gecode;
430 int n = x.size() / 2;
431 BoolVarArgs a(n), b(n);
432 for (int i=n; i--; ) {
433 a[i]=channel(home,x[i]);
434 b[i]=channel(home,x[i+n]);
435 }
436 clause(home, op, a, b, c);
437 }
438 };
439
440 /// %Test for if-then-else-constraint

Callers

nothing calls this directly

Calls 3

clauseFunction · 0.85
channelFunction · 0.50
sizeMethod · 0.45

Tested by

no test coverage detected