| 185 | } |
| 186 | |
| 187 | static std::vector<int> equal(const Interval& lhs, |
| 188 | const Interval& rhs, |
| 189 | std::vector<const ValueFlow::Value*>* ref = nullptr) |
| 190 | { |
| 191 | if (!lhs.isScalar()) |
| 192 | return {}; |
| 193 | if (!rhs.isScalar()) |
| 194 | return {}; |
| 195 | if (ref) |
| 196 | *ref = merge(lhs.getScalarRef(), rhs.getScalarRef()); |
| 197 | return {lhs.minvalue == rhs.minvalue}; |
| 198 | } |
| 199 | |
| 200 | static std::vector<int> compare(const Interval& lhs, |
| 201 | const Interval& rhs, |
nothing calls this directly
no test coverage detected