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

Function p_bool_lin_CMP

gecode/flatzinc/registry.cpp:325–333  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

323 }
324
325 void p_bool_lin_CMP(FlatZincSpace& s, IntRelType irt, const ConExpr& ce,
326 AST::Node* ann) {
327 IntArgs ia = s.arg2intargs(ce[0]);
328 BoolVarArgs iv = s.arg2boolvarargs(ce[1]);
329 if (ce[2]->isIntVar())
330 linear(s, ia, iv, irt, s.iv[ce[2]->getIntVar()], s.ann2ipl(ann));
331 else
332 linear(s, ia, iv, irt, ce[2]->getInt(), s.ann2ipl(ann));
333 }
334 void p_bool_lin_CMP_reif(FlatZincSpace& s, IntRelType irt, ReifyMode rm,
335 const ConExpr& ce, AST::Node* ann) {
336 if (rm == RM_EQV && ce[2]->isBool()) {

Callers 7

p_bool_lin_CMP_reifFunction · 0.85
p_bool_lin_eqFunction · 0.85
p_bool_lin_neFunction · 0.85
p_bool_lin_leFunction · 0.85
p_bool_lin_ltFunction · 0.85
p_bool_lin_geFunction · 0.85
p_bool_lin_gtFunction · 0.85

Calls 7

arg2intargsMethod · 0.80
arg2boolvarargsMethod · 0.80
isIntVarMethod · 0.80
getIntVarMethod · 0.80
ann2iplMethod · 0.80
getIntMethod · 0.80
linearFunction · 0.50

Tested by

no test coverage detected