| 1944 | } |
| 1945 | |
| 1946 | const ValueFlow::Value * Token::getValueNE(MathLib::bigint val) const |
| 1947 | { |
| 1948 | if (!mImpl->mValues) |
| 1949 | return nullptr; |
| 1950 | const auto it = std::find_if(mImpl->mValues->cbegin(), mImpl->mValues->cend(), [=](const ValueFlow::Value& value) { |
| 1951 | return value.isIntValue() && !value.isImpossible() && value.intvalue != val; |
| 1952 | }); |
| 1953 | return it == mImpl->mValues->end() ? nullptr : &*it; |
| 1954 | } |
| 1955 | |
| 1956 | const ValueFlow::Value * Token::getInvalidValue(const Token *ftok, nonneg int argnr, const Settings &settings) const |
| 1957 | { |
no test coverage detected