MCPcopy Create free account
hub / github.com/Gecode/gecode / overflow

Function overflow

gecode/float/linear/post.cpp:63–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61 }
62
63 forceinline bool
64 overflow(Term* t, int n, FloatVal c) {
65 FloatVal est = c;
66 for (int i=n; i--; )
67 est += t[i].a * t[i].x.domain();
68 FloatNum min = est.min();
69 FloatNum max = est.max();
70 return ((min < Limits::min) || (min > Limits::max) ||
71 (max < Limits::min) || (max > Limits::max));
72 }
73
74 /// Sort linear terms by view
75 class TermLess {

Callers 1

dopostFunction · 0.85

Calls 3

domainMethod · 0.45
minMethod · 0.45
maxMethod · 0.45

Tested by

no test coverage detected