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

Function getGlobalVarSize

ir/instr.cpp:88–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86};
87
88uint64_t getGlobalVarSize(const IR::Value *V) {
89 if (auto *V2 = isNoOp(*V))
90 return getGlobalVarSize(V2);
91 if (auto glb = dynamic_cast<const IR::GlobalVariable *>(V))
92 return glb->size();
93 return UINT64_MAX;
94}
95
96}
97

Callers 1

getMaxAccessSizeMethod · 0.85

Calls 2

isNoOpFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected