| 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*) { |
nothing calls this directly
no test coverage detected