MCPcopy Create free account
hub / github.com/cppcheck-opensource/cppcheck / isLessThan

Method isLessThan

lib/infer.cpp:70–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68 }
69
70 bool isLessThan(MathLib::bigint x, std::vector<const ValueFlow::Value*>* ref = nullptr) const
71 {
72 if (!this->maxvalue.empty() && this->maxvalue.front() < x) {
73 if (ref)
74 *ref = maxRef;
75 return true;
76 }
77 return false;
78 }
79
80 bool isGreaterThan(MathLib::bigint x, std::vector<const ValueFlow::Value*>* ref = nullptr) const
81 {

Callers 1

compareMethod · 0.80

Calls 2

frontMethod · 0.80
emptyMethod · 0.45

Tested by

no test coverage detected