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

Function cut

contribs/quacode/examples/nim-fibo.cpp:115–119  ·  view source on GitHub ↗

Adding cut

Source from the content-addressed store, hash-verified

113
114/// Adding cut
115static void cut(Space& home, const BoolExpr& expr) {
116 BoolVar o(home,0,1);
117 rel(home, o == expr);
118 when(home, o, &gf_success, &gf_dummy);
119}
120
121class QCSPNimFibo : public Script, public QSpaceInfo {
122 IntVarArray X;

Callers 1

QCSPNimFiboMethod · 0.70

Calls 2

whenFunction · 0.85
relFunction · 0.50

Tested by

no test coverage detected