| 38 | using namespace Int; |
| 39 | |
| 40 | void |
| 41 | linear(Home home, |
| 42 | const IntVarArgs& x, IntRelType irt, int c, |
| 43 | IntPropLevel ipl) { |
| 44 | GECODE_POST; |
| 45 | Region re; |
| 46 | Linear::Term<IntView>* t = re.alloc<Linear::Term<IntView>>(x.size()); |
| 47 | for (int i=0; i<x.size(); i++) { |
| 48 | t[i].a=1; t[i].x=x[i]; |
| 49 | } |
| 50 | Linear::post(home,t,x.size(),irt,c,ipl); |
| 51 | } |
| 52 | |
| 53 | void |
| 54 | linear(Home home, |
no test coverage detected