Skip to content

Commit bbf2b4d

Browse files
committed
Rename local variable t shadowing a global one.
Renamed template parameters as the chosen name did make a lot of sense in the specific context. Reported by Semmle's LGTM (https://lgtm.com/projects/g/diffblue/cbmc/alerts/?mode=list).
1 parent 3d4fc4e commit bbf2b4d

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

jbmc/unit/solvers/refinement/string_constraint_instantiation/instantiate_not_contains.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -100,13 +100,13 @@ std::set<exprt> full_index_set(const array_string_exprt &s)
100100
}
101101

102102
/// Create the cartesian product of two sets.
103-
template<class T, class U>
104-
std::set<std::pair<T, U>> product(const std::set<T> ts, const std::set<U> us)
103+
template <class X, class Y>
104+
std::set<std::pair<X, Y>> product(const std::set<X> xs, const std::set<Y> ys)
105105
{
106-
std::set<std::pair<T, U>> s;
107-
for(const auto &t : ts)
108-
for(const auto &u : us)
109-
s.insert(std::pair<T, U>(t, u));
106+
std::set<std::pair<X, Y>> s;
107+
for(const auto &x : xs)
108+
for(const auto &y : ys)
109+
s.insert(std::pair<X, Y>(x, y));
110110
return s;
111111
}
112112

0 commit comments

Comments
 (0)