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

Function operator *

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

Source from the content-addressed store, hash-verified

822 }
823
824 LinIntExpr
825 operator *(int a, const IntVar& x) {
826 if (a == 0)
827 return LinIntExpr(0);
828 else if (x.assigned() &&
829 Int::Limits::valid(static_cast<long long int>(a)*x.val()))
830 return LinIntExpr(a*x.val());
831 else
832 return LinIntExpr(x,a);
833 }
834 LinIntExpr
835 operator *(int a, const BoolVar& x) {
836 if (a == 0)

Callers

nothing calls this directly

Calls 4

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

Tested by

no test coverage detected