MCPcopy Create free account
hub / github.com/Gecode/gecode / operator +

Function operator +

gecode/minimodel/int-expr.cpp:587–594  ·  view source on GitHub ↗

* Operators * */

Source from the content-addressed store, hash-verified

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() &&

Callers

nothing calls this directly

Calls 4

validFunction · 0.85
LinIntExprClass · 0.85
assignedMethod · 0.45
valMethod · 0.45

Tested by

no test coverage detected