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

Function p_array_bool_xor_imp

gecode/flatzinc/registry.cpp:635–642  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

633 BOOL_ARRAY_OP(BOT_XOR);
634 }
635 void p_array_bool_xor_imp(FlatZincSpace& s, const ConExpr& ce,
636 AST::Node* ann)
637 {
638 BoolVarArgs bv = s.arg2boolvarargs(ce[0]);
639 BoolVar tmp(s,0,1);
640 rel(s, BOT_XOR, bv, tmp, s.ann2ipl(ann));
641 rel(s, s.arg2BoolVar(ce[1]), BOT_IMP, tmp, 1);
642 }
643 void p_array_bool_clause(FlatZincSpace& s, const ConExpr& ce,
644 AST::Node* ann) {
645 BoolVarArgs bvp = s.arg2boolvarargs(ce[0]);

Callers

nothing calls this directly

Calls 4

arg2boolvarargsMethod · 0.80
ann2iplMethod · 0.80
arg2BoolVarMethod · 0.80
relFunction · 0.50

Tested by

no test coverage detected