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

Function p_bool_l_imp

gecode/flatzinc/registry.cpp:675–683  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

673 s.ann2ipl(ann));
674 }
675 void p_bool_l_imp(FlatZincSpace& s, const ConExpr& ce, AST::Node* ann) {
676 BoolVar b0 = s.arg2BoolVar(ce[0]);
677 BoolVar b1 = s.arg2BoolVar(ce[1]);
678 if (ce[2]->isBool()) {
679 rel(s, b1, BOT_IMP, b0, ce[2]->getBool(), s.ann2ipl(ann));
680 } else {
681 rel(s, b1, BOT_IMP, b0, s.bv[ce[2]->getBoolVar()], s.ann2ipl(ann));
682 }
683 }
684 void p_bool_r_imp(FlatZincSpace& s, const ConExpr& ce, AST::Node* ann) {
685 BOOL_OP(BOT_IMP);
686 }

Callers

nothing calls this directly

Calls 6

arg2BoolVarMethod · 0.80
isBoolMethod · 0.80
getBoolMethod · 0.80
ann2iplMethod · 0.80
getBoolVarMethod · 0.80
relFunction · 0.50

Tested by

no test coverage detected