* Operators * */
| 585 | * |
| 586 | */ |
| 587 | LinIntExpr |
| 588 | operator +(int c, const IntVar& x) { |
| 589 | if (x.assigned() && |
| 590 | Int::Limits::valid(static_cast<long long int>(c)+x.val())) |
| 591 | return LinIntExpr(c+x.val()); |
| 592 | else |
| 593 | return LinIntExpr(x,LinIntExpr::NT_ADD,c); |
| 594 | } |
| 595 | LinIntExpr |
| 596 | operator +(int c, const BoolVar& x) { |
| 597 | if (x.assigned() && |
nothing calls this directly
no test coverage detected