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

Function evaluateCondition

lib/programmemory.cpp:267–275  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

265static ValueFlow::Value execute(const Token* expr, ProgramMemory& pm, const Settings& settings);
266
267static bool evaluateCondition(MathLib::bigint r, const Token* condition, ProgramMemory& pm, const Settings& settings)
268{
269 if (!condition)
270 return false;
271 MathLib::bigint result = 0;
272 bool error = false;
273 execute(condition, pm, &result, &error, settings);
274 return !error && result == r;
275}
276
277bool conditionIsFalse(const Token* condition, ProgramMemory pm, const Settings& settings)
278{

Callers 2

conditionIsFalseFunction · 0.85
conditionIsTrueFunction · 0.85

Calls 1

executeFunction · 0.85

Tested by

no test coverage detected