We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3f15b8e commit 4569295Copy full SHA for 4569295
1 file changed
lib/vf_analyzers.cpp
@@ -675,6 +675,8 @@ struct ValueFlowAnalyzer : Analyzer {
675
template<class F>
676
std::vector<MathLib::bigint> evaluateInt(const Token* tok, F getProgramMemory) const
677
{
678
+ if (const ValueFlow::Value* v = tok->getKnownValue(ValueFlow::Value::ValueType::INT))
679
+ return {v->intvalue};
680
std::vector<MathLib::bigint> result;
681
ProgramMemory pm = getProgramMemory();
682
if (Token::Match(tok, "&&|%oror%")) {
0 commit comments