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

Function p_distinct

gecode/flatzinc/registry.cpp:77–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75 namespace {
76
77 void p_distinct(FlatZincSpace& s, const ConExpr& ce, AST::Node* ann) {
78 IntVarArgs va = s.arg2intvarargs(ce[0]);
79 IntPropLevel ipl = s.ann2ipl(ann);
80 unshare(s, va);
81 distinct(s, va, ipl == IPL_DEF ? IPL_BND : ipl);
82 }
83
84 void p_distinctOffset(FlatZincSpace& s, const ConExpr& ce, AST::Node* ann) {
85 IntVarArgs va = s.arg2intvarargs(ce[1]);

Callers

nothing calls this directly

Calls 4

unshareFunction · 0.85
distinctFunction · 0.85
arg2intvarargsMethod · 0.80
ann2iplMethod · 0.80

Tested by

no test coverage detected