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

Function p_maximum_arg_bool

gecode/flatzinc/registry.cpp:1149–1154  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1147 }
1148
1149 void p_maximum_arg_bool(FlatZincSpace& s, const ConExpr& ce, AST::Node* ann) {
1150 BoolVarArgs bv = s.arg2boolvarargs(ce[0]);
1151 unshare(s, bv);
1152 int offset = ce[1]->getInt();
1153 argmax(s, bv, offset, s.arg2IntVar(ce[2]), true, s.ann2ipl(ann));
1154 }
1155
1156 void p_regular(FlatZincSpace& s, IntVarArgs iv, int q, int symbols_min,
1157 int symbols_max, IntArgs d, int q0, AST::SetLit* finals,

Callers

nothing calls this directly

Calls 6

unshareFunction · 0.85
argmaxFunction · 0.85
arg2boolvarargsMethod · 0.80
getIntMethod · 0.80
arg2IntVarMethod · 0.80
ann2iplMethod · 0.80

Tested by

no test coverage detected