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

Function inferNotEqual

lib/infer.cpp:279–284  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

277}
278
279static bool inferNotEqual(const std::list<ValueFlow::Value>& values, MathLib::bigint x)
280{
281 return std::any_of(values.cbegin(), values.cend(), [&](const ValueFlow::Value& value) {
282 return value.isImpossible() && value.intvalue == x;
283 });
284}
285
286std::vector<ValueFlow::Value> infer(const ValuePtr<InferModel>& model,
287 const std::string& op,

Callers 1

inferFunction · 0.85

Calls 1

isImpossibleMethod · 0.80

Tested by

no test coverage detected