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

Method post

test/int/bool.cpp:456–462  ·  view source on GitHub ↗

Post constraint

Source from the content-addressed store, hash-verified

454 }
455 /// Post constraint
456 virtual void post(Gecode::Space& home, Gecode::IntVarArray& x) {
457 using namespace Gecode;
458 if (_rand(2) != 0)
459 ite(home,channel(home,x[0]),x[1],x[2],x[3]);
460 else
461 rel(home, ite(channel(home,x[0]),x[1],x[2]) == x[3]);
462 }
463 };
464
465 /// %Test for if-then-else-constraint

Callers

nothing calls this directly

Calls 3

iteFunction · 0.50
channelFunction · 0.50
relFunction · 0.50

Tested by

no test coverage detected