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

Function p_maximum_arg

gecode/flatzinc/registry.cpp:1134–1140  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1132 }
1133
1134 void p_maximum_arg(FlatZincSpace& s, const ConExpr& ce, AST::Node* ann) {
1135 IntVar x = s.arg2IntVar(ce[2]);
1136 IntVarArgs iv = x + s.arg2intvarargs(ce[0]);
1137 unshare(s, iv);
1138 int offset = ce[1]->getInt();
1139 argmax(s, iv.slice(1), offset, x, true, s.ann2ipl(ann));
1140 }
1141
1142 void p_minimum_arg_bool(FlatZincSpace& s, const ConExpr& ce, AST::Node* ann) {
1143 BoolVarArgs bv = s.arg2boolvarargs(ce[0]);

Callers

nothing calls this directly

Calls 7

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

Tested by

no test coverage detected