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

Method post

test/int/extensional.cpp:86–94  ·  view source on GitHub ↗

Post constraint on \a x

Source from the content-addressed store, hash-verified

84 }
85 /// Post constraint on \a x
86 virtual void post(Gecode::Space& home, Gecode::IntVarArray& x) {
87 using namespace Gecode;
88 extensional(home, x,
89 (REG(-2) + REG(-1) + REG(0) + REG(1)) |
90 (REG(-2) + REG(-1) + REG(0) + REG(2)) |
91 (REG(-2) + REG(-1) + REG(1) + REG(2)) |
92 (REG(-2) + REG(0) + REG(1) + REG(2)) |
93 (REG(-1) + REG(0) + REG(1) + REG(2)));
94 }
95 };
96
97 /// %Test with simple regular expression

Callers

nothing calls this directly

Calls 1

extensionalFunction · 0.50

Tested by

no test coverage detected