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

Function operator -

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

Source from the content-addressed store, hash-verified

694 }
695
696 LinIntExpr
697 operator -(int c, const IntVar& x) {
698 if (x.assigned() &&
699 Int::Limits::valid(static_cast<long long int>(c)-x.val()))
700 return LinIntExpr(c-x.val());
701 else
702 return LinIntExpr(x,LinIntExpr::NT_SUB,c);
703 }
704 LinIntExpr
705 operator -(int c, const BoolVar& x) {
706 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