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

Function p_minimum_arg

gecode/flatzinc/registry.cpp:1126–1132  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1124 }
1125
1126 void p_minimum_arg(FlatZincSpace& s, const ConExpr& ce, AST::Node* ann) {
1127 IntVar x = s.arg2IntVar(ce[2]);
1128 IntVarArgs iv = x + s.arg2intvarargs(ce[0]);
1129 unshare(s, iv);
1130 int offset = ce[1]->getInt();
1131 argmin(s, iv.slice(1), offset, x, true, s.ann2ipl(ann));
1132 }
1133
1134 void p_maximum_arg(FlatZincSpace& s, const ConExpr& ce, AST::Node* ann) {
1135 IntVar x = s.arg2IntVar(ce[2]);

Callers

nothing calls this directly

Calls 7

unshareFunction · 0.85
argminFunction · 0.85
arg2IntVarMethod · 0.80
arg2intvarargsMethod · 0.80
getIntMethod · 0.80
ann2iplMethod · 0.80
sliceMethod · 0.45

Tested by

no test coverage detected