We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b5a0a1c commit c333910Copy full SHA for c333910
include/phasar/Utils/BitVectorSet.h
@@ -177,9 +177,9 @@ template <typename T> class BitVectorSet {
177
}
178
179
[[nodiscard]] BitVectorSet<T> setUnion(const BitVectorSet<T> &Other) const {
180
- BitVectorSet<T> Res = Bits.size() < Other.Bits.size() ? Other : *this;
181
- const BitVectorSet &Smaller =
182
- Bits.size() < Other.Bits.size() ? *this : Other;
+ const bool ThisSetIsSmaller = Bits.size() < Other.Bits.size();
+ BitVectorSet<T> Res = ThisSetIsSmaller ? Other : *this;
+ const BitVectorSet &Smaller = ThisSetIsSmaller ? *this : Other;
183
184
Res.Bits |= Smaller.Bits;
185
return Res;
0 commit comments