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

Method getMaxAccessSize

ir/instr.cpp:2350–2362  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2348}
2349
2350uint64_t FnCall::getMaxAccessSize() const {
2351 uint64_t sz = attrs.has(FnAttrs::Dereferenceable) ? attrs.derefBytes : 0;
2352 if (attrs.has(FnAttrs::DereferenceableOrNull))
2353 sz = max(sz, attrs.derefOrNullBytes);
2354
2355 for (auto &[arg, attrs] : args) {
2356 if (attrs.has(ParamAttrs::Dereferenceable))
2357 sz = max(sz, attrs.derefBytes);
2358 if (attrs.has(ParamAttrs::DereferenceableOrNull))
2359 sz = max(sz, attrs.derefOrNullBytes);
2360 }
2361 return sz;
2362}
2363
2364MemInstr::ByteAccessInfo FnCall::getByteAccessInfo() const {
2365 if (attrs.has(AllocKind::Uninitialized) || attrs.has(AllocKind::Free))

Callers 1

Calls 4

getIntOrFunction · 0.85
round_upFunction · 0.85
getGlobalVarSizeFunction · 0.85
hasMethod · 0.45

Tested by

no test coverage detected