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

Method equal

lib/infer.cpp:187–198  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

185 }
186
187 static std::vector<int> equal(const Interval& lhs,
188 const Interval& rhs,
189 std::vector<const ValueFlow::Value*>* ref = nullptr)
190 {
191 if (!lhs.isScalar())
192 return {};
193 if (!rhs.isScalar())
194 return {};
195 if (ref)
196 *ref = merge(lhs.getScalarRef(), rhs.getScalarRef());
197 return {lhs.minvalue == rhs.minvalue};
198 }
199
200 static std::vector<int> compare(const Interval& lhs,
201 const Interval& rhs,

Callers

nothing calls this directly

Calls 2

isScalarMethod · 0.80
getScalarRefMethod · 0.80

Tested by

no test coverage detected