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

Function getInt

ir/constant.cpp:229–235  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

227}
228
229optional<int64_t> getInt(const Value &val) {
230 if (auto i = dynamic_cast<const IntConst*>(&val)) {
231 if (auto n = i->getInt())
232 return *n;
233 }
234 return {};
235}
236
237uint64_t getIntOr(const Value &val, uint64_t default_value) {
238 if (auto n = getInt(val))

Callers 8

optimize_ptrcmpFunction · 0.85
preprocessMethod · 0.85
getIntOrFunction · 0.85
getMaxAllocSizeMethod · 0.85
getMaxGEPOffsetMethod · 0.85
getExactAlignMethod · 0.85
getByteAccessInfoMethod · 0.85
known_callFunction · 0.85

Calls 1

getIntMethod · 0.45

Tested by

no test coverage detected