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

Function p_among_seq_int

gecode/flatzinc/registry.cpp:1503–1512  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1501 }
1502
1503 void p_among_seq_int(FlatZincSpace& s, const ConExpr& ce,
1504 AST::Node* ann) {
1505 IntVarArgs x = s.arg2intvarargs(ce[0]);
1506 IntSet S = s.arg2intset(ce[1]);
1507 int q = ce[2]->getInt();
1508 int l = ce[3]->getInt();
1509 int u = ce[4]->getInt();
1510 unshare(s, x);
1511 sequence(s, x, S, q, l, u, s.ann2ipl(ann));
1512 }
1513
1514 void p_among_seq_bool(FlatZincSpace& s, const ConExpr& ce,
1515 AST::Node* ann) {

Callers

nothing calls this directly

Calls 6

unshareFunction · 0.85
arg2intvarargsMethod · 0.80
arg2intsetMethod · 0.80
getIntMethod · 0.80
ann2iplMethod · 0.80
sequenceFunction · 0.50

Tested by

no test coverage detected