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

Method post

test/int/extensional.cpp:287–295  ·  view source on GitHub ↗

Post constraint on \a x

Source from the content-addressed store, hash-verified

285 }
286 /// Post constraint on \a x
287 virtual void post(Gecode::Space& home, Gecode::IntVarArray& x) {
288 using namespace Gecode;
289 Gecode::BoolVarArgs y(12);
290 for (int i=0; i<4; i++)
291 y[i]=y[i+4]=y[i+8]=channel(home,x[i]);
292 unshare(home, y);
293 extensional(home, y,
294 ((REG(0) | REG(1)) + REG(1) + REG(0) + REG(1))(3,3));
295 }
296 };
297
298 /// %Test for empty DFA

Callers

nothing calls this directly

Calls 3

unshareFunction · 0.85
channelFunction · 0.50
extensionalFunction · 0.50

Tested by

no test coverage detected