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

Function p_link_set_to_booleans

gecode/flatzinc/registry.cpp:2009–2018  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2007 }
2008
2009 void p_link_set_to_booleans(FlatZincSpace& s, const ConExpr& ce,
2010 AST::Node *) {
2011 SetVar x = s.arg2SetVar(ce[0]);
2012 int idx = ce[2]->getInt();
2013 assert(idx >= 0);
2014 rel(s, x || IntSet(Set::Limits::min,idx-1));
2015 BoolVarArgs y = s.arg2boolvarargs(ce[1],idx);
2016 unshare(s, y);
2017 channel(s, y, x);
2018 }
2019
2020 void p_array_set_element(FlatZincSpace& s, const ConExpr& ce,
2021 AST::Node*) {

Callers

nothing calls this directly

Calls 7

IntSetClass · 0.85
unshareFunction · 0.85
arg2SetVarMethod · 0.80
getIntMethod · 0.80
arg2boolvarargsMethod · 0.80
relFunction · 0.50
channelFunction · 0.50

Tested by

no test coverage detected