MCPcopy Create free account
hub / github.com/AliveToolkit/alive2 / isLargerThanInclReads

Method isLargerThanInclReads

ir/state.cpp:205–224  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

203}
204
205bool State::ValueAnalysis::FnCallRanges::isLargerThanInclReads(
206 const FnCallRanges &other) const {
207 for (auto &[fn, pair] : *this) {
208 auto &[calls, access] = pair;
209 auto I = other.find(fn);
210 if (I == other.end())
211 continue;
212
213 auto first_val = calls.begin()->first;
214 auto other_last_val = I->second.first.rbegin()->first;
215 if (first_val < other_last_val)
216 return false;
217 }
218
219 for (auto &[fn, pair] : other) {
220 if (!count(fn))
221 return false;
222 }
223 return true;
224}
225
226State::ValueAnalysis::FnCallRanges
227State::ValueAnalysis::FnCallRanges::project(const string &name) const {

Callers 1

copyUBFromBBMethod · 0.80

Calls 3

findMethod · 0.80
endMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected