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

Function getMaxValue

lib/infer.cpp:385–390  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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) {
388 return model->match(v);
389 }).maxvalue;
390}
391
392namespace {
393 struct IntegralInferModel : InferModel {

Callers

nothing calls this directly

Calls 1

matchMethod · 0.45

Tested by

no test coverage detected