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

Function pair

gecode/int/element.cpp:291–297  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

289
290 namespace {
291 IntVar
292 pair(Home home, IntVar x, int w, IntVar y, int h) {
293 IntVar xy(home,0,w*h-1);
294 if (Int::Element::Pair::post(home,x,y,xy,w,h) != ES_OK)
295 home.fail();
296 return xy;
297 }
298
299 IntVar
300 pairWithOffsets(Home home, IntVar x, int xoff, int w, IntVar y, int yoff, int h) {

Callers 1

elementFunction · 0.70

Calls 2

postFunction · 0.50
failMethod · 0.45

Tested by

no test coverage detected