| 27 | |
| 28 | namespace ValueFlow { |
| 29 | Value::Value(const Token *c, MathLib::bigint val, Bound b) |
| 30 | : bound(b), |
| 31 | safe(false), |
| 32 | conditional(false), |
| 33 | macro(false), |
| 34 | defaultArg(false), |
| 35 | intvalue(val), |
| 36 | varvalue(val), |
| 37 | condition(c) { |
| 38 | errorPath.emplace_back(c, "Assuming that condition '" + c->expressionString() + "' is not redundant"); |
| 39 | } |
| 40 | |
| 41 | void Value::assumeCondition(const Token *tok) { |
| 42 | condition = tok; |
no test coverage detected