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

Method isGreaterThan

lib/infer.cpp:80–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78 }
79
80 bool isGreaterThan(MathLib::bigint x, std::vector<const ValueFlow::Value*>* ref = nullptr) const
81 {
82 if (!this->minvalue.empty() && this->minvalue.front() > x) {
83 if (ref)
84 *ref = minRef;
85 return true;
86 }
87 return false;
88 }
89
90 bool isScalar() const {
91 return minvalue.size() == 1 && minvalue == maxvalue;

Callers 1

compareMethod · 0.80

Calls 2

frontMethod · 0.80
emptyMethod · 0.45

Tested by

no test coverage detected