Skip to content

Commit 51b980a

Browse files
committed
Rename
1 parent 0d03d02 commit 51b980a

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

‎lib/programmemory.cpp‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1723,10 +1723,10 @@ namespace {
17231723
return stored;
17241724
}
17251725

1726-
// The values of the expression that this expression is symbolically equal to, moved by the
1727-
// offset of the symbolic value, for the symbolic values the predicate accepts
1726+
// The values of the expression as given by its symbolic values that the predicate accepts: the
1727+
// values of the expression a symbolic value refers to, moved by its offset
17281728
template<class Predicate>
1729-
Values aliasedValues(const Token* expr, Predicate accept) const
1729+
Values resolveSymbolicValues(const Token* expr, Predicate accept) const
17301730
{
17311731
Values result;
17321732
for (const ValueFlow::Value& value : expr->values()) {
@@ -1926,7 +1926,7 @@ namespace {
19261926
Values sizes = containerSizeValues(execute(containerTok));
19271927
if (!sizes.empty())
19281928
return sizes;
1929-
return containerSizeValues(aliasedValues(containerTok, [](const ValueFlow::Value& v) {
1929+
return containerSizeValues(resolveSymbolicValues(containerTok, [](const ValueFlow::Value& v) {
19301930
return !v.isImpossible() && v.intvalue == 0;
19311931
}));
19321932
}
@@ -2261,11 +2261,11 @@ namespace {
22612261
}
22622262
}
22632263
// Find symbolic values
2264-
Values aliased = aliasedValues(expr, [](const ValueFlow::Value& v) {
2264+
Values symbolic = resolveSymbolicValues(expr, [](const ValueFlow::Value& v) {
22652265
return v.isKnown();
22662266
});
2267-
if (!aliased.empty())
2268-
return aliased;
2267+
if (!symbolic.empty())
2268+
return symbolic;
22692269
if (!values.empty() && values.front().isIntValue())
22702270
return values;
22712271
if (const ValueFlow::Value* impossible = getImpossibleValue(expr))

0 commit comments

Comments
 (0)