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

Function p_circuit_cost

gecode/flatzinc/registry.cpp:1557–1563  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1555 circuit(s,c,xv,yv,z,s.ann2ipl(ann));
1556 }
1557 void p_circuit_cost(FlatZincSpace& s, const ConExpr& ce, AST::Node *ann) {
1558 IntArgs c = s.arg2intargs(ce[0]);
1559 IntVarArgs xv = s.arg2intvarargs(ce[1]);
1560 IntVar z = s.arg2IntVar(ce[2]);
1561 unshare(s,xv);
1562 circuit(s,c,xv,z,s.ann2ipl(ann));
1563 }
1564
1565 void p_nooverlap(FlatZincSpace& s, const ConExpr& ce, AST::Node *ann) {
1566 IntVarArgs x0 = s.arg2intvarargs(ce[0]);

Callers

nothing calls this directly

Calls 6

unshareFunction · 0.85
circuitFunction · 0.85
arg2intargsMethod · 0.80
arg2intvarargsMethod · 0.80
arg2IntVarMethod · 0.80
ann2iplMethod · 0.80

Tested by

no test coverage detected