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

Function p_int_div

gecode/flatzinc/registry.cpp:468–475  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

466 pow(s, x0, ce[1]->getInt(), x2, s.ann2ipl(ann));
467 }
468 void p_int_div(FlatZincSpace& s, const ConExpr& ce, AST::Node* ann) {
469 IntVar x0 = s.arg2IntVar(ce[0]);
470 IntVar x1 = s.arg2IntVar(ce[1]);
471 IntVar x2 = s.arg2IntVar(ce[2]);
472 IntVarArgs x = {x0, x1, x2};
473 unshare(s, x);
474 div(s,x[0],x[1],x[2], s.ann2ipl(ann));
475 }
476 void p_int_mod(FlatZincSpace& s, const ConExpr& ce, AST::Node* ann) {
477 IntVar x0 = s.arg2IntVar(ce[0]);
478 IntVar x1 = s.arg2IntVar(ce[1]);

Callers

nothing calls this directly

Calls 4

unshareFunction · 0.85
arg2IntVarMethod · 0.80
ann2iplMethod · 0.80
divFunction · 0.50

Tested by

no test coverage detected