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

Method post

test/int/unshare.cpp:108–116  ·  view source on GitHub ↗

Post constraint on \a x

Source from the content-addressed store, hash-verified

106 }
107 /// Post constraint on \a x
108 virtual void post(Gecode::Space& home, Gecode::IntVarArray& x) {
109 using namespace Gecode;
110 home.fail();
111 IntVarArgs y(2);
112 y[0]=x[0]; y[1]=x[0];
113 unshare(home, y);
114 REG r(1);
115 extensional(home, y, r);
116 }
117 };
118
119 Int i_bnd(Gecode::IPL_BND);

Callers

nothing calls this directly

Calls 3

unshareFunction · 0.85
extensionalFunction · 0.50
failMethod · 0.45

Tested by

no test coverage detected