| 133 | } |
| 134 | |
| 135 | static bool refsContain(const std::vector<TempVariableRef> &refs, |
| 136 | const TempVariableRef &ref) |
| 137 | { |
| 138 | for (const auto &r : refs) { |
| 139 | if (r == ref) { |
| 140 | return true; |
| 141 | } |
| 142 | } |
| 143 | return false; |
| 144 | } |
| 145 | |
| 146 | template<typename T> |
| 147 | static bool segmentsReferTo(const T &segments, const TempVariableRef &ref) |