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

Function p_bool_and_imp

gecode/flatzinc/registry.cpp:601–607  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

599 BOOL_OP(BOT_AND);
600 }
601 void p_bool_and_imp(FlatZincSpace& s, const ConExpr& ce, AST::Node* ann) {
602 BoolVar b0 = s.arg2BoolVar(ce[0]);
603 BoolVar b1 = s.arg2BoolVar(ce[1]);
604 BoolVar b2 = s.arg2BoolVar(ce[2]);
605 rel(s, b2, BOT_IMP, b0, 1, s.ann2ipl(ann));
606 rel(s, b2, BOT_IMP, b1, 1, s.ann2ipl(ann));
607 }
608 void p_array_bool_and(FlatZincSpace& s, const ConExpr& ce, AST::Node* ann)
609 {
610 BOOL_ARRAY_OP(BOT_AND);

Callers

nothing calls this directly

Calls 3

arg2BoolVarMethod · 0.80
ann2iplMethod · 0.80
relFunction · 0.50

Tested by

no test coverage detected