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

Function getMinValue

lib/infer.cpp:379–384  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

377}
378
379std::vector<MathLib::bigint> getMinValue(const ValuePtr<InferModel>& model, const std::list<ValueFlow::Value>& values)
380{
381 return Interval::fromValues(values, [&](const ValueFlow::Value& v) {
382 return model->match(v);
383 }).minvalue;
384}
385std::vector<MathLib::bigint> getMaxValue(const ValuePtr<InferModel>& model, const std::list<ValueFlow::Value>& values)
386{
387 return Interval::fromValues(values, [&](const ValueFlow::Value& v) {

Callers 1

extractForLoopValuesFunction · 0.85

Calls 1

matchMethod · 0.45

Tested by

no test coverage detected