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

Function p_bool_xor_imp

gecode/flatzinc/registry.cpp:666–674  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

664 BOOL_OP(BOT_XOR);
665 }
666 void p_bool_xor_imp(FlatZincSpace& s, const ConExpr& ce, AST::Node* ann) {
667 BoolVar b0 = s.arg2BoolVar(ce[0]);
668 BoolVar b1 = s.arg2BoolVar(ce[1]);
669 BoolVar b2 = s.arg2BoolVar(ce[2]);
670 clause(s, BOT_OR, BoolVarArgs()<<b0<<b1, BoolVarArgs()<<b2, 1,
671 s.ann2ipl(ann));
672 clause(s, BOT_OR, BoolVarArgs(), BoolVarArgs()<<b0<<b1<<b2, 1,
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]);

Callers

nothing calls this directly

Calls 4

clauseFunction · 0.85
arg2BoolVarMethod · 0.80
ann2iplMethod · 0.80
BoolVarArgsClass · 0.50

Tested by

no test coverage detected